:root{
  color-scheme: dark;

  /* 바탕·면 */
  --bg:            #0F1923;  /* 앱 Background */
  --surface:       #16212D;  /* 카드 */
  --surface-2:     #1C2836;  /* 보기 행, 칩, 알림 */
  --surface-3:     #243243;  /* 호버/눌림, 오답 칸 */
  --line:          rgba(172,185,200,.14);
  --line-strong:   rgba(172,185,200,.30);

  /* 글자 */
  --text:          #F5F3EF;  /* bg 대비 16:1 */
  --text-2:        #ACB9C8;  /* surface 대비 7.9:1 */
  --text-3:        #8FA1B5;  /* surface-2 대비 5.6:1, 12px까지 */

  /* 강조 (앱 Main) */
  --accent:        #FF4454;  /* 채움·선·아이콘·큰 글자. bg 대비 5.24:1, surface-2 대비 4.4:1 */
  --accent-text:   #FF8A8D;  /* 18px 미만 빨간 글자는 전부 이것 (surface-2 대비 6.6:1) */
  --accent-ink:    #0F1923;  /* 빨간 채움 위 글자 5.24:1. 흰 글자 금지(3.38:1) */
  --accent-hover:  #FF5E6C;
  --accent-soft:   rgba(255,68,84,.12);
  --accent-line:   rgba(255,68,84,.40);
  --correct:       #5AD19A;  /* surface-2 대비 7.9:1 */
  --correct-ink:   #0F1923;
  --correct-soft:  rgba(90,209,154,.12);
  --correct-line:  rgba(90,209,154,.45);
  --focus:         #F5F3EF;  /* D7 */

  /* 타입 */
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --fs-12: .75rem;  --fs-13: .8125rem; --fs-14: .875rem; --fs-15: .9375rem;
  --fs-16: 1rem;    --fs-18: 1.125rem; --fs-20: 1.25rem;
  --fs-h1:    clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);     /* 24 → 36 */
  --fs-q:     clamp(1.25rem, 1.05rem + .9vw, 1.625rem);   /* 20 → 26 */
  --fs-score: clamp(3.5rem, 2.8rem + 3vw, 4.5rem);        /* 56 → 72 */
  --lh-tight: 1.3; --lh-q: 1.45; --lh-body: 1.6;
  --ls-title: -0.02em; --ls-body: -0.005em;
  --fw-regular: 450; --fw-medium: 550; --fw-bold: 700; --fw-heavy: 800;

  /* 간격 */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-14: 56px;
  --gutter: 16px;         /* ≥768: 24px, ≥1024: 32px (아래 미디어쿼리) */
  --container: 1008px;    /* ≥1024: 본문 640 + 간격 32 + 기록 열 336 */
  --main-col: 640px;
  --side-col: 336px;

  /* 반경 */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px;

  /* 그림자 */
  --shadow-card: 0 12px 32px rgba(0,0,0,.28);

  /* 모션 */
  --dur-fast: var(--ys-dur-micro); --dur: var(--ys-dur-short); --dur-slow: var(--ys-dur-medium);
  --ease: var(--ys-ease-standard); --ease-out: var(--ys-ease-emphasized);

  /* 터치 */
  --tap: 44px; --tap-lg: 52px;

  /* 공통 바닥(base.css) 연결 */
  --ys-skip-bg: var(--text); --ys-skip-fg: var(--bg);
  --ys-line: var(--line); --ys-muted: var(--text-3); --ys-ink: var(--text);
  --ys-container: var(--container); --ys-gutter: var(--gutter);
}
@media (min-width: 768px){ :root{ --gutter: 24px; } }
@media (min-width: 1024px){ :root{ --gutter: 32px; } }
@media (prefers-reduced-motion: reduce){ :root{ --dur-fast: 0ms; --dur: 0ms; --dur-slow: 0ms; } }

html{ background: var(--bg); }
body{ background: var(--bg); color: var(--text); font-size: var(--fs-16); line-height: var(--lh-body); letter-spacing: var(--ls-body); font-weight: var(--fw-regular); }
:where(.tabular, time, .q-count, .score, .record-value, #nextCountdown){ font-variant-numeric: tabular-nums; }
:focus-visible{ outline: 2px solid var(--focus); outline-offset: 2px; }
.wrap{ width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }

span,time{word-break:keep-all;overflow-wrap:anywhere;line-break:strict}
a{color:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}
button,a,input,select,summary{transition:background-color var(--dur-fast) var(--ease),border-color var(--dur-fast) var(--ease),opacity var(--dur-fast) var(--ease)}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 20px;border:1px solid var(--line-strong);border-radius:var(--r-md);background:transparent;color:var(--text);font-size:15px;font-weight:700;white-space:nowrap;text-decoration:none;line-height:1.4}
.button.primary{min-height:52px;border:0;background:var(--accent);color:var(--accent-ink);font-size:16px}
.button:disabled{color:var(--text-3);border-color:var(--line)}.button.primary:disabled{background:var(--surface-3);color:var(--text-3)}
.button:active{background:var(--surface-3)}.button.primary:active{background:var(--accent-hover);scale:var(--ys-press-scale)}
.action-icon{width:18px;height:18px;flex:none}.text-button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 4px;border:0;background:none;color:var(--accent-text);font-size:14px;font-weight:600;white-space:nowrap}
.tag{display:inline-flex;align-items:center;height:26px;padding:0 8px;border:1px solid var(--line-strong);border-radius:var(--r-sm);font-size:12px;font-weight:600;color:var(--text-2);white-space:nowrap}.tag-first{border-color:var(--accent-line);color:var(--accent-text)}.tag-archive{border-color:var(--correct-line);color:var(--correct)}
.chip{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border:1px solid var(--line);border-radius:var(--r-pill);background:var(--surface-2);font-size:12px;font-weight:600;color:var(--text-2);white-space:nowrap}
.card{background:var(--surface);border-radius:var(--r-lg);box-shadow:var(--shadow-card)}
.site-header{border-bottom:1px solid var(--line);background:var(--bg);padding-top:env(safe-area-inset-top)}.header-row{display:flex;align-items:center;justify-content:space-between;height:56px}.brand{display:flex;align-items:center;gap:8px;min-height:44px;color:var(--text);text-decoration:none;white-space:nowrap}.brand-symbol{width:28px;height:28px;border-radius:8px}.brand-name{font-size:16px;font-weight:800;letter-spacing:-.01em}.brand-divider{width:1px;height:16px;background:var(--line-strong)}.brand-context{font-size:14px;font-weight:700;color:var(--text-2)}.header-actions{display:flex;align-items:center;gap:16px}.header-nav{display:none;gap:4px}.header-nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 12px;font-size:14px;font-weight:600;color:var(--text-2);white-space:nowrap;text-decoration:none}
.language-control{position:relative}.language-control select{height:44px;padding:0 30px 0 34px;appearance:none;border:1px solid var(--line);border-radius:var(--r-md);background:var(--bg);font-size:14px;font-weight:600;white-space:nowrap;cursor:pointer}.language-control select:disabled{opacity:.6}.language-icon{position:absolute;left:12px;top:13px;width:18px;height:18px;pointer-events:none}.language-control::after{content:"";position:absolute;right:12px;top:18px;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);pointer-events:none}
main{padding-top:16px}.daily-layout{display:grid;gap:32px}.quiz-column{min-width:0}.intro{margin-bottom:16px}.date-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:26px}#date{white-space:nowrap;font-size:13px;font-weight:600;color:var(--text-2)}.streak-chip{margin-left:auto;color:var(--accent-text);border-color:var(--accent-line)}#title{margin-top:4px;font-size:var(--fs-h1);font-weight:800;line-height:var(--lh-tight);letter-spacing:var(--ls-title)}
#received{margin-bottom:12px;padding:14px 16px;border:1px solid var(--accent-line);border-radius:var(--r-md);background:var(--accent-soft)}#receivedTitle{font-size:18px;font-weight:800;line-height:1.4}.received-body{font-size:14px;line-height:1.55;color:var(--text-2)}.received-help{font-size:12px;line-height:1.5;color:var(--text-3)}
#notice{margin-bottom:12px;padding:12px 14px;border-radius:var(--r-md);background:var(--surface-2);box-shadow:inset 3px 0 0 var(--text-3);font-size:14px;line-height:1.55}#notice[data-tone="error"]{box-shadow:inset 3px 0 0 var(--accent)}
.quiz-card{position:relative;overflow:clip;padding:20px}.quiz-card::before,.entry-page::before{content:"";position:absolute;inset:0 0 auto;height:3px;background:var(--accent)}.deck-note{margin-top:12px;font-size:13px;line-height:1.55;color:var(--text-3)}
.q-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;min-height:28px;margin-bottom:12px}.q-count{font-size:13px;font-weight:700;color:var(--text-2);white-space:nowrap}.result-date{margin-left:auto;white-space:nowrap;font-size:13px;font-weight:600;color:var(--text-3);text-align:right}#backToFirst{margin:-4px 0 8px}.rule-chips{display:flex;flex-wrap:wrap;gap:6px;padding:0;margin-bottom:14px;list-style:none}
#questionTitle{margin:16px 0;font-size:var(--fs-q);font-weight:700;line-height:var(--lh-q);letter-spacing:-.01em}.choices{display:grid;gap:8px}.choice{display:grid;grid-template-columns:28px 1fr auto;align-items:center;gap:12px;min-height:56px;width:100%;padding:12px 14px;border:1px solid var(--line-strong);border-radius:var(--r-md);background:var(--surface-2);font-size:16px;font-weight:550;line-height:1.5;text-align:left}.choice-number{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--line-strong);border-radius:var(--r-sm);font-size:13px;font-weight:700;color:var(--text-2)}.choice.is-selected,.choice.is-incorrect{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:var(--accent-soft)}.choice.is-selected .choice-number,.choice.is-incorrect .choice-number{background:var(--accent);color:var(--accent-ink);border-color:var(--accent)}.choice.is-correct{border-color:var(--correct);box-shadow:inset 0 0 0 1px var(--correct);background:var(--correct-soft)}.choice.is-correct .choice-number{background:var(--correct);border-color:var(--correct);color:var(--correct-ink)}.choice:disabled{opacity:1}.choices.is-revealed .choice:not(.is-correct):not(.is-incorrect){opacity:.55}.choice-state{font-size:13px;font-weight:700;color:var(--correct);white-space:nowrap}.choice.is-incorrect .choice-state{color:var(--accent-text)}
.q-actions{margin-top:16px;display:flex;justify-content:flex-end;align-items:center;gap:16px}.q-actions .button{width:100%}.key-hint{display:none;font-size:13px;color:var(--text-3)}.feedback{margin-top:16px;padding:14px 16px;border-radius:var(--r-md);background:var(--correct-soft);box-shadow:inset 3px 0 0 var(--correct)}.feedback.is-wrong{background:var(--accent-soft);box-shadow:inset 3px 0 0 var(--accent)}#feedbackTitle{font-size:15px;font-weight:700;color:var(--correct)}.feedback.is-wrong #feedbackTitle{color:var(--accent-text)}#feedbackExplanation{font-size:15px;line-height:1.65}
.result-hero{text-align:center;margin-top:8px}#resultTitle{font-size:15px;font-weight:600;color:var(--text-2)}.score{margin-top:4px;font-size:var(--fs-score);font-weight:800;line-height:1}.score-denominator{font-size:24px;font-weight:700;color:var(--text-3)}.versus{margin-top:14px;font-size:14px;font-weight:700}.versus-verdict{display:block;font-size:13px;font-weight:500;color:var(--text-2)}.result-message{margin-top:12px;font-size:16px;line-height:1.6}.record-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:14px;padding:0;list-style:none}.record-chips .chip{height:36px;padding:0 14px;font-size:14px;color:var(--text)}.actions{display:flex;flex-direction:column;gap:8px;margin-top:20px}.actions .button{width:100%}.share-fallback{margin-top:12px;font-size:13px;color:var(--text-2)}.share-fallback label{display:block;min-height:44px;line-height:1.5}.share-fallback input{width:100%;min-height:44px;padding:10px 12px;background:var(--bg);border:1px solid var(--line-strong);border-radius:10px;font-size:13px;font-family:var(--ys-mono)}.result-help{margin-top:12px;font-size:13px;line-height:1.55;text-align:center;color:var(--text-3)}
.review{margin-top:24px;padding-top:16px;border-top:1px solid var(--line)}#reviewTitle{font-size:15px;font-weight:700}.review-list{padding:0;list-style:none}.review-item{display:grid;grid-template-columns:24px 1fr;gap:12px;padding:12px 0;border-top:1px solid var(--line)}.review-item:first-child{border-top:0}.review-mark{display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--accent);color:var(--accent-ink);font-size:12px;font-weight:800}.review-item[data-correct="true"] .review-mark{background:var(--correct);color:var(--correct-ink)}.review-q{font-size:14px;font-weight:600;line-height:1.5}.review-a{font-size:13px;line-height:1.5;color:var(--text-2)}.review-a.correct-answer{color:var(--correct)}.review-explain summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;font-size:13px;font-weight:600;color:var(--accent-text);cursor:pointer;list-style:none}.review-explain summary::-webkit-details-marker{display:none}.review-explain summary::after{content:"";width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(-45deg)}.review-explain[open] summary::after{transform:rotate(45deg)}.review-explain p{font-size:14px;line-height:1.65;color:var(--text-2)}.next-day{margin-top:20px;padding:14px 16px;border-radius:var(--r-md);background:var(--surface-2)}.next-row{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;font-weight:600;color:var(--text-2)}#nextCountdown{font-size:20px;font-weight:800;color:var(--text)}.next-note{font-size:12px;line-height:1.5;color:var(--text-3)}.next-ready{font-size:14px;font-weight:700}.next-day .button{margin-top:8px;width:100%}
.empty-state{text-align:center;padding:24px 0}.empty-icon{display:grid;place-items:center;width:40px;height:40px;margin:auto;border-radius:50%;background:var(--accent-soft);color:var(--accent)}.empty-icon svg{width:22px;height:22px}.empty-state h3{margin-top:14px;font-size:18px;font-weight:700}.empty-state p{margin-top:6px;font-size:15px;line-height:1.6;color:var(--text-2)}.empty-state .button{margin-top:18px;min-width:200px}.daily-layout.is-single{max-width:640px;grid-template-columns:1fr}.daily-layout.is-single .routine-column{display:none}
#recordsTitle{margin-bottom:12px;font-size:16px;font-weight:700}.record-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.record-tile{min-height:72px;padding:12px 14px;border:1px solid var(--line);border-radius:var(--r-md);background:var(--surface)}.record-tile.is-streak{box-shadow:inset 0 3px 0 var(--accent);border-color:var(--accent-line)}.record-label{font-size:12px;font-weight:600;color:var(--text-3)}.record-value{margin-top:2px;font-size:13px;font-weight:600;color:var(--text-2)}.record-value strong{font-size:24px;font-weight:800;color:var(--text)}.record-note{margin-top:2px;font-size:12px;line-height:1.4;color:var(--text-3)}.week-card{margin-top:12px;padding:16px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface)}#weekSummary{margin-bottom:12px;font-size:15px;font-weight:700}.week-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;padding:0;list-style:none}.week-days a,.week-days li>span{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:60px;min-width:40px;padding:6px 0;border-radius:10px;text-decoration:none;gap:2px}.day-name{font-size:12px;font-weight:600;color:var(--text-3)}.day-number{font-size:15px;font-weight:700}.day-dot{width:18px;height:18px;border:1px solid var(--line-strong);border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:800}.day-complete>a{background:var(--correct-soft)}.day-complete .day-dot{background:var(--correct);border-color:var(--correct);color:var(--correct-ink)}.day-today>a{box-shadow:inset 0 0 0 1px var(--text-2)}.day-viewed>a{box-shadow:inset 0 -2px 0 var(--accent)}.day-viewed.day-today>a{box-shadow:inset 0 0 0 1px var(--text-2),inset 0 -2px 0 var(--accent)}.day-future{opacity:.45}.week-help{margin-top:10px;font-size:12px;line-height:1.5;color:var(--text-3)}
.app-banner{margin-top:48px;padding:20px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface)}.app-icon{width:48px;height:48px;border-radius:12px}#appTitle{margin-top:14px;font-size:18px;font-weight:700;line-height:1.35}.app-benefits{margin-top:12px;padding:0;list-style:none}.app-benefits li{display:flex;gap:10px;padding:6px 0;font-size:15px;line-height:1.5;color:var(--text-2)}.app-benefits .action-icon{width:20px;height:20px;color:var(--accent);margin-top:1px}.app-actions{margin-top:18px}#nativeOpen{width:100%}.app-help{font-size:13px;line-height:1.55;color:var(--text-3)}#appHelp{margin-top:8px}html:not(.is-phone) #nativeOpen,html:not(.is-phone) #appHelp{display:none}html.is-phone #appDesktopHelp{display:none}.store-links{display:flex;flex-direction:column;gap:8px;margin-top:12px}.store-links .button{width:100%}.app-shot{display:none;width:200px;height:416px;border:1px solid var(--line-strong);border-radius:28px;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.35)}.app-shot img{width:100%;height:100%;object-fit:cover}
.related{margin-top:48px}#relatedTitle{font-size:18px;font-weight:700;margin-bottom:12px}.related-grid{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden}.feature+.feature{border-top:1px solid var(--line)}.feature-link{display:grid;grid-template-columns:24px minmax(0,1fr) 20px;gap:14px;align-items:center;min-height:72px;padding:16px;text-decoration:none}.feature-icon{width:24px;height:24px;color:var(--accent)}.feature-icon svg{width:24px;height:24px}.feature-kicker{font-size:12px;font-weight:600;color:var(--text-3)}.feature-link h3{font-size:15px;font-weight:700;line-height:1.4}.feature-link p{margin-top:2px;font-size:13px;line-height:1.5;color:var(--text-2)}.feature-action{display:block;margin-top:6px;font-size:13px;font-weight:600;color:var(--accent-text)}.feature-chevron{width:20px;color:var(--text-3)}.feature-link:focus-visible{outline-offset:-2px}.feature-link:active{background:var(--surface-3)}
.projecta-responsive-ad{margin-top:48px}.ad-wrap{max-width:728px}.ad-label{display:block;margin-bottom:6px;font-size:12px;font-weight:600;color:var(--text-3)}.ad-container{position:relative;min-height:100px}.ProjectADisplayBanner{display:block;width:100%;height:100px}.ad-preview-label{position:absolute;inset:0;display:grid;place-items:center;height:100px;border:1px dashed var(--line-strong);border-radius:var(--r-md);font-size:12px;font-weight:600;color:var(--text-3)}.projecta-responsive-ad[data-ad-state="off"],.projecta-responsive-ad[data-ad-state="blocked"],.projecta-responsive-ad[data-ad-state="unfilled"]{display:none}
.site-footer{margin-top:56px;border-top:1px solid var(--line);padding-bottom:env(safe-area-inset-bottom)}.footer-in{padding:24px 0 8px}.footer-notes{display:grid;gap:4px;padding:0;list-style:none;font-size:13px;line-height:1.6;color:var(--text-3)}.footer-notes li:empty{display:none}.fan-note{margin-top:16px;max-width:720px;font-size:12px;line-height:1.6;color:var(--text-3)}.footer-links{display:flex;flex-wrap:wrap;gap:0 16px;margin-top:12px}.footer-links a{display:inline-flex;align-items:center;min-height:44px;font-size:13px;font-weight:600;color:var(--text-2);text-decoration:none}.noscript-message{width:min(640px,100% - 2 * var(--gutter));margin:16px auto 0;padding:20px;border:1px solid var(--line);border-radius:var(--r-lg);background:var(--surface)}.noscript-message h2{font-size:18px;font-weight:700}.noscript-message p{margin-top:8px;font-size:15px;line-height:1.6;color:var(--text-2)}.noscript-message .button{margin-top:16px;min-height:52px;border:0;background:var(--accent);color:var(--accent-ink);font-size:16px}
.quiz-skeleton{display:grid;gap:8px}.quiz-skeleton>*{display:block;background:var(--surface-2);border-radius:6px}.sk-head{height:26px;width:96px;margin-bottom:4px}.sk-bar{height:36px;margin-bottom:8px}.sk-q{height:22px}.sk-short{width:60%;margin-bottom:8px}.quiz-skeleton b{height:56px;border-radius:var(--r-md)}.sk-btn{height:52px;margin-top:8px}
@media(hover:hover){.button:not(:disabled):hover{background:var(--surface-2)}.button.primary:not(:disabled):hover{background:var(--accent-hover)}.text-button:hover{text-decoration:underline}.choice:not(:disabled):hover{border-color:rgba(172,185,200,.55);background:var(--surface-3)}.choice.is-selected:not(:disabled):hover{border-color:var(--accent);background:var(--accent-soft)}.header-nav a:hover{color:var(--text)}.language-control select:hover{border-color:var(--line-strong)}.week-days a:hover,.feature-link:hover{background:var(--surface-2)}.footer-links a:hover{color:var(--text);text-decoration:underline}}
@media(min-width:768px){.header-row{height:64px}.brand-symbol{width:32px;height:32px}.header-nav{display:flex}main{padding-top:24px}.daily-layout{max-width:640px}.quiz-card{padding:24px}#date{font-size:14px}.actions{flex-direction:row;justify-content:center}.actions .button{width:auto;min-width:200px}.app-banner{padding:28px}.store-links{flex-direction:row}.store-links .button{width:auto}#nativeOpen{width:auto;min-width:260px}}
@media(min-width:1024px){main{padding-top:32px}.daily-layout{max-width:var(--container);grid-template-columns:minmax(0,var(--main-col)) var(--side-col);column-gap:32px;align-items:start}.intro{margin-bottom:24px}.streak-chip{display:none}.quiz-card{padding:32px}.choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.choice{min-height:64px}.q-actions{justify-content:space-between}.q-actions .button{width:240px;margin-left:auto;flex:none}.week-days{gap:4px}.app-banner{display:grid;grid-template-columns:minmax(0,1fr) 200px;align-items:center;gap:40px;margin-top:64px;padding:32px}#appTitle{font-size:22px}.app-shot{display:block}.related{margin-top:64px}#relatedTitle{font-size:20px}.related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;border:0;background:none;overflow:visible}.feature{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden}.feature+.feature{border-top:1px solid var(--line)}.feature-link{display:flex;flex-direction:column;align-items:stretch;padding:20px;height:100%}.feature-text{display:flex;flex-direction:column;flex:1}.feature-action{margin-top:auto;padding-top:6px}.feature-chevron{display:none}.quiz-skeleton{grid-template-columns:repeat(2,1fr)}.quiz-skeleton i{grid-column:1/-1}.quiz-skeleton b{height:64px}}
@media(min-width:1024px) and (min-height:720px){.routine-column{position:sticky;top:24px}}
@media(min-width:1024px) and (hover:hover) and (pointer:fine){.key-hint{display:block}}


.ys-studio a{min-width:44px}

/* Defer the lazy app image until its language-specific source is assigned. */
.app-shot img:not(.is-localized){display:none}

/* Round 2: the actual five answers use the app's stargate card back. */
.steps--cards{display:flex;gap:6px;height:42px;align-items:center;perspective:1280px}
.steps--cards i,.result-grid>span{position:relative;display:grid;place-items:center;flex:none;border-radius:6px;font-style:normal;font-size:16px;font-weight:800;backface-visibility:hidden;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.steps--cards i{width:28px;height:42px}
.steps--cards b,.result-grid b{font:inherit}
.steps--cards [data-face="back"],.result-grid>[data-face="back"]{background:url('/assets/ys/craft/goval/daily/stargate-card_back.webp') center/cover;color:transparent}
.steps--cards [data-face="back"] b,.result-grid>[data-face="back"] b{visibility:hidden}
.steps--cards i.is-current{outline:1px solid var(--accent);outline-offset:-1px}
.steps--cards .is-correct[data-face="front"],.result-grid>.is-correct[data-face="front"]{background:rgba(74,222,128,.16);color:#4ADE80}
.steps--cards .is-wrong[data-face="front"],.result-grid>.is-wrong[data-face="front"]{background:rgba(255,68,84,.14);color:var(--accent-text)}
.result-grid{display:flex;justify-content:center;gap:6px;margin-top:16px;min-height:64px;perspective:1280px;touch-action:pan-y}
.result-grid>span{width:44px;height:64px}
/* Shared tile effects are disabled here: celebration belongs to the hero once. */
.result-grid>[data-ys-flip]::before,.result-grid>[data-ys-flip]::after{display:none}
.result-hero{position:relative;isolation:isolate;border-radius:var(--r-md)}
.result-hero::before,.result-hero::after{content:"";position:absolute;inset:-8px;border-radius:inherit;pointer-events:none;opacity:0}
.result-hero::before{background:#fff;z-index:2}
.result-hero::after{border:2px solid var(--accent)}
.result-hero[data-grade="premium"]{--daily-flash:.28;--daily-rim:.40;--daily-afterglow:1900ms}
.result-hero[data-grade="legendary"]{--daily-flash:.42;--daily-rim:.62;--daily-afterglow:2600ms}
.result-hero[data-grade="legendary"]::after{border-color:#FFE3A0}
.score-digit{display:inline-block;min-width:1ch;height:1em;vertical-align:baseline;font-variant-numeric:tabular-nums}
.result-replay{justify-content:center;margin:8px auto 0;min-width:140px}
.result-replay.is-waiting{color:var(--text-2)}
.q-head{position:relative;padding-right:44px}
.sound-toggle{position:absolute;right:-4px;top:-8px;display:grid;place-items:center;width:44px;height:44px;border:1px solid transparent;border-radius:var(--r-sm);background:transparent;color:var(--text-2)}
.sound-toggle svg{width:20px;height:20px}
.sound-toggle[aria-pressed="false"] svg{opacity:.6}
.web-more{margin-top:48px}
.web-more h2{font-size:18px;font-weight:700;margin-bottom:12px}
.web-more-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.web-more-card{position:relative;display:flex;flex-direction:column;min-width:0;color:var(--text);text-decoration:none}
.web-more-card img{display:block;width:100%;height:auto;aspect-ratio:480/252;object-fit:cover;border:1px solid var(--line);border-radius:var(--r-md)}
.web-more-name{font-size:15px;font-weight:700;line-height:1.4;margin-top:12px;padding-right:24px}
.web-more-desc{font-size:13px;color:var(--text-2);line-height:1.5;margin-top:4px}
.web-more-arrow{width:18px;height:18px;color:var(--accent-text)}
/* Use the shared footer markup and tokens, with compact language-specific wrapping. */
.ys-web__in>a,.ys-web__in>span{min-height:44px;display:inline-flex;align-items:center;white-space:nowrap}
@media(prefers-reduced-motion:no-preference){
  html[data-ys-motion="on"] .steps--cards [data-anim="in"]{animation:ys-flip-in var(--ys-dur-short) var(--ys-ease-exit)}
  html[data-ys-motion="on"] .steps--cards [data-anim="out"]{animation:ys-flip-out var(--ys-dur-short) var(--ys-ease-exit)}
  html[data-ys-motion="on"] .result-hero[data-celebrating="true"]::before{animation:daily-flash var(--ys-dur-short) var(--ys-ease-exit)}
  html[data-ys-motion="on"] .result-hero[data-celebrating="true"]::after{animation:daily-rim var(--daily-afterglow) var(--ys-ease-exit)}
}
@keyframes daily-flash{from{opacity:var(--daily-flash)}to{opacity:0}}
@keyframes daily-rim{from{opacity:var(--daily-rim)}to{opacity:0}}
.result-hero[data-paused="true"] [data-anim],.result-hero[data-paused="true"]::before,.result-hero[data-paused="true"]::after,
.steps--cards [data-paused="true"],html[data-ys-hidden="true"] .steps--cards [data-anim]{animation-play-state:paused!important}
@media(max-width:600px){
  .steps--cards{height:36px}.steps--cards i{width:24px;height:36px}.result-grid{min-height:58px}.result-grid>span{width:40px;height:58px}
  .web-more-grid{gap:12px}.web-more-name{font-size:14px}.web-more-arrow{display:none}
}
@media(min-width:1024px){.web-more{margin-top:64px}.web-more h2{font-size:20px}}
@media(prefers-reduced-motion:reduce),print{.result-hero::before,.result-hero::after{display:none}.steps--cards [data-anim],.result-grid>[data-anim]{animation:none!important;transform:none!important}}
/* count() changes its digit subtree; reserve the line and clip its baseline. */
.score{display:flex;justify-content:center;align-items:flex-end;gap:.12em;height:1em}
.score-digit{display:block;overflow:hidden;line-height:1}
.score-digit .ys-digit{display:block;vertical-align:top}
.score-denominator{line-height:1;padding-bottom:4px}
.ys-web__in>a{min-width:44px}

.quiz-card.is-loading-result{min-height:calc(100vh - 150px)}
@media(max-width:600px){html[lang="en"] #title{min-height:calc(var(--fs-h1) * var(--lh-tight) * 2)}}

.web-more-card{display:grid;grid-template-columns:minmax(0,1fr) 18px}
.web-more-card img,.web-more-desc{grid-column:1/-1}
.web-more-name{grid-column:1;grid-row:2;padding-right:8px}
.web-more-arrow{position:static;grid-column:2;grid-row:2;align-self:start;margin-top:12px}
@media(max-width:600px){.web-more-card{grid-template-columns:1fr}}
@media(max-width:600px){#questionTitle{margin-top:var(--s-3)}}
