/* kahoot-cf — warm pastel modern edition
   Palette inspired by voting-topic.sportsmedicine.tw/vote
   Warm orange/amber/rose backgrounds, slate text, generous whitespace. */

:root {
  /* Brand */
  --primary:        #ff6b35;
  --primary-dark:   #ea580c;
  --primary-soft:   rgba(255, 107, 53, 0.10);
  --primary-ring:   rgba(255, 107, 53, 0.20);

  /* Warm accents */
  --amber:          #f59e0b;
  --amber-light:    #ffc107;
  --rose:           #fb7185;
  --light-orange:   #fb923c;

  /* Soft warm backgrounds */
  --bg-1:           #fff7ed;
  --bg-2:           #fff1f2;
  --bg-3:           #fffbeb;
  --bg-4:           #fefce8;
  --surface:        #ffffff;
  --surface-soft:   #fffaf5;

  /* Slate text */
  --text:           #0f172a;
  --text-body:      #475569;
  --text-muted:     #94a3b8;

  /* Borders */
  --border:         #e5e7eb;
  --border-soft:    #f1f5f9;
  --border-strong:  #cbd5e1;

  /* Status */
  --success:        #2eb872;
  --success-bg:     #ecfdf5;
  --success-bg-2:   #d1fae5;
  --danger:         #ef4444;
  --danger-bg:      #fef2f2;
  --warning:        #f59e0b;

  /* Answer tile palette — warm tones (lean warm per design ref) */
  --opt-0:          #ff6b35; /* primary orange */
  --opt-1:          #f59e0b; /* amber */
  --opt-2:          #ea580c; /* deep orange */
  --opt-3:          #fb923c; /* light orange */

  /* Visual language */
  --radius-sm:      8px;
  --radius:         12px;
  --radius-lg:      16px;
  --radius-pill:    999px;

  --shadow-sm:      0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-card:    0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px -8px rgba(255, 107, 53, 0.12);
  --shadow-card-hover: 0 4px 6px rgba(0, 0, 0, 0.05), 0 14px 30px -10px rgba(255, 107, 53, 0.20);
  --shadow-lift:    0 12px 32px -8px rgba(255, 107, 53, 0.28);

  /* Type */
  --font-stack:     'Noto Sans TC', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

html, body {
  font-family: var(--font-stack);
  background:
    linear-gradient(135deg, #fff7ed 0%, #fff1f2 50%, #fffbeb 100%);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

::selection { background: var(--primary-ring); color: var(--text); }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 900; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 700; margin-bottom: 12px; }
h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
h4 { font-size: 16px; font-weight: 700; }

p { color: var(--text-body); }

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.18s ease;
}
a:hover { color: var(--primary-dark); }

/* Utility */
.muted { color: var(--text-muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
.err {
  color: var(--danger);
  margin: 8px 0 0;
  min-height: 1.2em;
  font-weight: 500;
  font-size: 14px;
}

/* Focus visible */
:focus-visible {
  outline: 3px solid var(--primary-ring);
  outline-offset: 2px;
  border-radius: 6px;
}
