:root {
    --ntf-ink: #111827;
    --ntf-muted: #64748b;
    --ntf-line: #dbe3ef;
    --ntf-panel: #ffffff;
    --ntf-bg: #f4f7fb;
    --ntf-yellow: #facc15;
    --ntf-green: #16a34a;
    --ntf-red: #dc2626;
    --ntf-blue: #2563eb;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Nunito', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-weight: 700;
    color: var(--ntf-ink);
    background:
        linear-gradient(135deg, rgba(250, 204, 21, 0.16), transparent 32%),
        linear-gradient(225deg, rgba(37, 99, 235, 0.12), transparent 36%),
        var(--ntf-bg);
}
a { color: inherit; }
button, input { font: inherit; }
button { appearance: none; }
img, svg { display: block; }
table { text-indent: 0; border-color: inherit; }
th { font-weight: inherit; }
p, h1, h2, dl, dd, fieldset { margin: 0; }
fieldset { padding: 0; border: 0; }

.ntf-shell { width: min(1120px, calc(100% - 24px)); margin: 0 auto; }
.ntf-card {
    border: 1px solid var(--ntf-line);
    border-radius: 8px;
    background: rgba(255,255,255,0.94);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}
.ntf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    border-radius: 8px;
    border: 1px solid #0f172a;
    padding: 0.72rem 1rem;
    background: #111827;
    color: white;
    font-weight: 900;
    cursor: pointer;
    touch-action: manipulation;
}
.ntf-button:hover { transform: translateY(-1px); }
.ntf-button.secondary {
    border-color: var(--ntf-line);
    background: white;
    color: var(--ntf-ink);
}
.ntf-button.yellow {
    border-color: #b45309;
    background: linear-gradient(180deg, #fde68a, #facc15);
    color: #111827;
}
.ntf-answer {
    width: 100%;
    min-height: 56px;
    border: 1px solid var(--ntf-line);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    background: white;
    color: #111827;
    text-align: left;
    font-weight: 900;
    cursor: pointer;
}
.ntf-answer:hover,
.ntf-answer:focus-visible {
    border-color: var(--ntf-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
    outline: none;
}
.ntf-stat {
    border: 1px solid var(--ntf-line);
    border-radius: 8px;
    background: white;
    padding: 0.7rem 0.8rem;
}
.ntf-kicker {
    color: var(--ntf-blue);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 900;
}
.ntf-question-choice {
    position: relative;
    display: block;
}
.ntf-question-choice input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.ntf-question-choice span {
    display: grid;
    min-height: 44px;
    place-items: center;
    border: 1px solid var(--ntf-line);
    border-radius: 8px;
    background: white;
    color: var(--ntf-ink);
    font-weight: 900;
}
.ntf-question-choice input:checked + span {
    border-color: #0f172a;
    background: #111827;
    color: white;
}
.ntf-question-choice input:focus-visible + span {
    border-color: var(--ntf-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
.ntf-game-round { scroll-margin-top: 12px; }

.flex { display: flex; }
.grid { display: grid; }
.inline-grid { display: inline-grid; }
.block { display: block; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.content-start { align-content: start; }
.place-items-center { place-items: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2 / span 2; }

.m-0 { margin: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.ml-2 { margin-left: 0.5rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-8 { padding-bottom: 2rem; }
.pt-4 { padding-top: 1rem; }
.pr-3 { padding-right: 0.75rem; }

.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.w-10 { width: 2.5rem; }
.w-14 { width: 3.5rem; }
.w-36 { width: 9rem; }
.w-full { width: 100%; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-10 { height: 2.5rem; }
.h-24 { height: 6rem; }
.min-h-11 { min-height: 2.75rem; }
.min-h-12 { min-height: 3rem; }
.min-h-48 { min-height: 12rem; }
.min-w-40 { min-width: 10rem; }
.max-w-sm { max-width: 24rem; }
.max-w-2xl { max-width: 42rem; }
.max-h-48 { max-height: 12rem; }
[class~="min-w-[640px]"] { min-width: 640px; }

.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 8px; }
.rounded-full { border-radius: 9999px; }
.border { border-width: 1px; border-style: solid; border-color: var(--ntf-line); }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-dashed { border-style: dashed; }
.border-collapse { border-collapse: collapse; }
.border-slate-100 { border-color: #f1f5f9; }
.border-slate-200 { border-color: #e2e8f0; }
[class~="border-slate-200/80"] { border-color: rgba(226, 232, 240, 0.8); }
.border-slate-300 { border-color: #cbd5e1; }
.border-slate-900 { border-color: #0f172a; }
.border-red-200 { border-color: #fecaca; }
.border-emerald-200 { border-color: #a7f3d0; }
.border-amber-200 { border-color: #fde68a; }
.hover\:border-blue-500:hover { border-color: #3b82f6; }

.bg-white { background-color: #fff; }
[class~="bg-white/80"] { background-color: rgba(255, 255, 255, 0.8); }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-900 { background-color: #0f172a; }
.bg-red-50 { background-color: #fef2f2; }
.bg-emerald-50 { background-color: #ecfdf5; }
.bg-amber-50 { background-color: #fffbeb; }
.hover\:bg-slate-100:hover { background-color: #f1f5f9; }

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-tight { letter-spacing: 0; }
.text-white { color: #fff; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-900 { color: #0f172a; }
.text-red-700 { color: #b91c1c; }
.text-red-800 { color: #991b1b; }
.text-emerald-700 { color: #047857; }
.text-emerald-800 { color: #065f46; }
.text-amber-900 { color: #78350f; }

.no-underline { text-decoration: none; }
.underline { text-decoration: underline; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.object-contain { object-fit: contain; }
.shadow-sm { box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08); }
.drop-shadow-sm { filter: drop-shadow(0 1px 1px rgba(15, 23, 42, 0.15)); }
.backdrop-blur { backdrop-filter: blur(8px); }

@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
    .sm\:items-center { align-items: center; }
    .sm\:items-start { align-items: flex-start; }
    .sm\:items-end { align-items: flex-end; }
    .sm\:justify-between { justify-content: space-between; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:p-6 { padding: 1.5rem; }
    .sm\:py-8 { padding-top: 2rem; padding-bottom: 2rem; }
    .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .sm\:text-5xl { font-size: 3rem; line-height: 1; }
    .sm\:min-h-64 { min-height: 16rem; }
    .sm\:max-h-60 { max-height: 15rem; }
    .sm\:min-w-60 { min-width: 15rem; }
    [class~="sm:w-44"] { width: 11rem; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:items-center { align-items: center; }
    [class~="lg:grid-cols-[minmax(0,1fr)_320px]"] { grid-template-columns: minmax(0, 1fr) 320px; }
    [class~="lg:grid-cols-[minmax(0,0.92fr)_minmax(0,1fr)]"] { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr); }
}
