/* TodayMemory: warm newspaper look, phone-shaped on every screen. */
:root {
  --desk: #d9cfbd;
  --desk-2: #cbbfa9;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: radial-gradient(circle at 30% 20%, var(--desk) 0, var(--desk-2) 70%);
  font-family: 'Lexend', 'Noto Sans KR', system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
  overflow: hidden;
}
/* The shared account controller's floating chip is replaced by the account bar in the menu. */
#cynnx-game-chip { display: none !important; }

.desk { height: 100dvh; display: grid; place-items: center; }
.phone {
  /* Themes */
  --paper: #f6efdf; --paper-2: #efe5cf; --ink: #1f1b16; --ink-soft: #5a5146; --rule: #c9bba0;
  --accent: #8a2c1d; --accent-ink: #fffaf0; --good: #2f6b3a; --good-bg: #dcebd5; --bad: #9b2d20; --bad-bg: #f6dcd6;
  --card: #fffaf0; --shadow: 0 2px 0 #00000014, 0 8px 24px #3b2a1418;
  --head-font: 'Source Serif 4', 'Noto Serif KR', Georgia, serif;
  --mast-font: 'Playfair Display', 'Noto Serif KR', Georgia, serif;

  position: relative;
  container-type: size;
  height: 100dvh;
  width: min(100vw, calc(100dvh * 9 / 19.5));
  background: var(--paper);
  color: var(--ink);
  font-size: 20px;
  line-height: 1.45;
  overflow: hidden;
  box-shadow: 0 0 0 1px #00000010, 0 30px 80px #3b2a1440;
}
@media (min-width: 600px) and (min-height: 600px) {
  .phone { height: min(100dvh - 32px, 940px); width: calc(min(100dvh - 32px, 940px) * 9 / 19.5); border-radius: 34px; border: 10px solid #2b2620; }
}
/* A phone turned sideways is too short for the portrait shape: keep a readable phone-width column and let it scroll. */
@media (orientation: landscape) and (max-height: 599px) {
  .phone { width: min(100vw, 430px); }
}
.phone[data-size="l"] { font-size: 23px; }
.phone[data-size="xl"] { font-size: 26px; }
.phone[data-theme="sepia"] { --paper: #f1e3c6; --paper-2: #e8d6b2; --card: #fbf1dc; --accent: #7a4a1e; --rule: #c4a978; }
.phone[data-theme="evening"] { --paper: #1f2430; --paper-2: #2a3040; --ink: #f2ecdf; --ink-soft: #c2bbad; --rule: #4a5266; --card: #2b3242; --accent: #e7b75f; --accent-ink: #1f2430; --good: #9fd8a6; --good-bg: #2c4a35; --bad: #f2a395; --bad-bg: #4e2c2a; --shadow: 0 8px 24px #0006; }
.phone[data-theme="sunday"] { --paper: #fdf6ea; --paper-2: #f8e8cf; --card: #fffdf7; --accent: #1f5f8b; --rule: #e0c49a; }
.phone[data-theme="garden"] { --paper: #eef2e4; --paper-2: #e0e8d0; --card: #fbfdf5; --accent: #3f6b2a; --rule: #b9c9a0; }

.app { height: 100%; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.screen { padding: 0 1.1em 2em; min-height: 100%; display: flex; flex-direction: column; gap: .7em; }
.screen.center { justify-content: center; align-items: stretch; text-align: center; padding-top: 2em; }

/* Boot */
.boot { height: 100%; display: grid; place-content: center; text-align: center; gap: 1em; }
.boot-text { color: var(--ink-soft); }
.masthead-big { font-family: var(--mast-font); font-weight: 900; font-size: 11cqw; letter-spacing: -.01em; text-align: center; border-bottom: 3px double var(--ink); padding-bottom: .15em; margin-top: .6em; }
.tagline { text-align: center; color: var(--ink-soft); margin: 0; font-style: italic; }

/* Buttons */
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, [role=button]:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.primary-btn, .secondary-btn {
  display: block; width: 100%; min-height: 3em; padding: .6em 1em; border-radius: 14px; font-weight: 700; font-size: 1.05em;
  border: 2px solid var(--accent); text-align: center; line-height: 1.25;
}
.primary-btn { background: var(--accent); color: var(--accent-ink); box-shadow: 0 3px 0 #00000030; }
.primary-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #00000030; }
.secondary-btn { background: transparent; color: var(--accent); }
.secondary-btn.narrow { width: auto; flex: 0 0 auto; font-size: .95em; }
.small-btn { border: 2px solid var(--accent); background: transparent; color: var(--accent); border-radius: 10px; padding: .3em .7em; font-weight: 700; min-height: 2.4em; }
.pulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 3px 0 #00000030, 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent); } }
@media (prefers-reduced-motion: reduce) { .pulse, .spinner { animation: none !important; } }
.row-btns, .bottom-btns { display: flex; gap: .6em; margin-top: auto; padding-top: .8em; }
.bottom-btns.column { flex-direction: column; }
/* While reading and answering, the Next button stays pinned to the bottom of the phone. */
.screen.play { padding-bottom: 0; }
.play .bottom-btns { position: sticky; bottom: 0; z-index: 4; margin: auto -1.1em 0; padding: 1.1em 1.1em .9em; background: linear-gradient(to bottom, transparent, var(--paper) 1em); }
.play .feedback { scroll-margin-bottom: 5.5em; }
.row-btns > *, .bottom-btns > .primary-btn { flex: 1; }
.icon-btn { background: none; border: 2px solid var(--rule); border-radius: 50%; width: 2.3em; height: 2.3em; font-size: 1em; display: grid; place-items: center; flex: 0 0 auto; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: .5em; padding: .6em 0; background: var(--paper); border-bottom: 2px solid var(--ink); margin: 0 -.1em .3em; }
.back-btn { background: none; border: none; color: var(--accent); font-weight: 700; padding: .4em .2em; min-height: 2.4em; white-space: nowrap; }
.topbar-title { flex: 1; margin: 0; font-family: var(--head-font); font-size: 1.05em; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Menu */
.paper-head { border-bottom: 3px double var(--ink); padding-top: .6em; }
.paper-top { display: flex; align-items: center; justify-content: space-between; gap: .4em; }
.masthead { font-family: var(--mast-font); font-weight: 900; font-size: 8.4cqw; letter-spacing: -.01em; line-height: 1.1; text-align: center; flex: 1; }
.flag-small { font-size: 1.4em; width: 1.6em; text-align: center; }
.dateline { text-align: center; font-size: .78em; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); border-top: 1px solid var(--ink); margin-top: .35em; padding: .2em 0; }
.account-bar { display: flex; align-items: center; gap: .5em; padding: .15em 0; font-size: .78em; color: var(--ink-soft); min-height: 2.6em; }
.acct-name { font-weight: 700; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-bar.signed .acct-name { color: var(--good); flex: 0 1 auto; }
.account-bar.signed .acct-note { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-link { background: none; border: none; color: var(--accent); font-weight: 700; text-decoration: underline; padding: .4em .2em; }
.signin-pill { display: inline-flex; align-items: center; gap: .35em; background: var(--card); border: 1.5px solid var(--rule); border-radius: 2em; padding: .35em .8em .35em .5em; font-weight: 700; color: var(--ink); min-height: 2.5em; flex: 0 0 auto; }
.logo { width: 1.25em; height: 1.25em; flex: 0 0 auto; }
.player-strip { display: flex; align-items: center; gap: .7em; cursor: pointer; }
.player-info { flex: 1; }
.player-level { font-weight: 700; }
.streak { color: var(--accent); }
.xp-bar { height: .6em; border-radius: 1em; background: var(--paper-2); border: 1px solid var(--rule); overflow: hidden; margin-top: .25em; }
.xp-bar.big { height: 1em; }
.xp-bar span { display: block; height: 100%; background: var(--accent); border-radius: 1em; }
.main-card { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: .9em; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .6em; }
.edition-line { font-size: .8em; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 700; }
.teaser { display: flex; flex-direction: column; gap: .4em; }
.teaser .media { aspect-ratio: 16 / 8; }
.teaser-head { font-family: var(--head-font); font-weight: 700; font-size: 1.15em; line-height: 1.25; margin: 0; }
.done-line { font-weight: 700; color: var(--good); margin: 0; font-size: 1.05em; }
.next-line { margin: 0; color: var(--ink-soft); }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .6em; }
.tile { position: relative; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: .7em .5em; min-height: 4.6em; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2em; font-weight: 700; font-size: .92em; text-align: center; line-height: 1.2; box-shadow: var(--shadow); }
.tile-icon { font-size: 1.5em; }
.dot { position: absolute; top: -.5em; right: -.3em; background: var(--accent); color: var(--accent-ink); font-size: .7em; padding: .15em .5em; border-radius: 1em; }

/* Avatar */
.avatar { position: relative; display: inline-grid; place-items: center; width: 2.6em; height: 2.6em; font-size: 1.1em; border-radius: 50%; background: var(--paper-2); border: 2px solid var(--rule); flex: 0 0 auto; }
.avatar.big { width: 3.6em; height: 3.6em; font-size: 1.5em; }
.avatar.small { width: 1.9em; height: 1.9em; font-size: .9em; }
.avatar[data-frame="gold"] { border: 4px solid #c9a227; box-shadow: 0 0 0 2px #f3df8a inset; }
.avatar[data-frame="laurel"] { border: 4px dashed #4f7a3a; }
.avatar[data-frame="ink"] { border: 4px solid var(--ink); }
.avatar[data-frame="stamp"] { border: 4px dotted var(--accent); border-radius: 18%; }
.badge-mini { position: absolute; right: -.35em; bottom: -.35em; font-size: .6em; background: var(--card); border-radius: 50%; padding: .1em; border: 1px solid var(--rule); }

/* Onboarding */
.onboard { padding-top: .5em; }
.q-title { font-family: var(--head-font); font-size: 1.35em; line-height: 1.25; margin: .4em 0 .1em; }
.lead { font-size: 1.05em; }
.note { color: var(--ink-soft); font-size: .9em; margin: .1em 0; }
.note.warn { background: var(--paper-2); border-radius: 10px; padding: .5em .7em; color: var(--ink); }
.choice-list { display: flex; flex-direction: column; gap: .6em; }
.big-choice { display: flex; align-items: center; gap: .7em; min-height: 3.2em; padding: .6em .9em; background: var(--card); border: 2px solid var(--rule); border-radius: 14px; font-size: 1.1em; font-weight: 700; text-align: left; }
.big-choice.tall { align-items: flex-start; }
.big-choice small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .82em; margin-top: .15em; }
.big-choice strong { display: block; }
.big-choice .flag { font-size: 1.6em; line-height: 1; }
.big-choice.selected { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--card)); box-shadow: 0 0 0 2px var(--accent) inset; }
.big-choice[disabled] { opacity: .5; cursor: default; }
.rec { display: inline-block; margin-top: .3em; font-style: normal; font-size: .72em; background: var(--accent); color: var(--accent-ink); border-radius: 1em; padding: .1em .6em; }
.photo-picks { display: grid; grid-template-columns: 1fr 1fr; gap: .55em; }
.photo-pick { position: relative; display: flex; flex-direction: column; text-align: left; background: var(--card); border: 2px solid var(--rule); border-radius: 14px; padding: 0; overflow: hidden; }
.photo-pick .media.tile { border-radius: 0; aspect-ratio: 4 / 3; }
.photo-pick .media.tile .media-icon { font-size: 2em; }
.photo-head { padding: .4em .5em .5em; font-family: var(--head-font); font-weight: 700; font-size: .78em; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.photo-check { position: absolute; top: .35em; right: .35em; width: 1.5em; height: 1.5em; border-radius: 50%; background: #fffc; border: 2px solid #fff; display: grid; place-items: center; font-weight: 700; color: var(--accent-ink); box-shadow: 0 1px 4px #0003; }
.photo-pick.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.photo-pick.selected .photo-check { background: var(--accent); }
.photo-pick:not(.selected) .media.tile img { filter: saturate(.85); }
.pick { display: flex; gap: .6em; align-items: flex-start; text-align: left; background: var(--card); border: 2px solid var(--rule); border-radius: 12px; padding: .6em .7em; font-family: var(--head-font); font-weight: 600; font-size: .98em; line-height: 1.3; }
.pick.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.pick-check { flex: 0 0 1.4em; height: 1.4em; border: 2px solid var(--rule); border-radius: 6px; display: grid; place-items: center; font-family: system-ui; color: var(--accent-ink); }
.pick.selected .pick-check { background: var(--accent); border-color: var(--accent); }
.topic-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: .45em; }
.topic-toggles .pick { font-family: inherit; font-size: .9em; align-items: center; gap: .45em; padding: .55em .6em; }
.topic-toggles .pick-check { flex-basis: 1.2em; height: 1.2em; }
.topic-toggles .pick:not(.selected) { opacity: .7; }
.loading-line { color: var(--ink-soft); }
.tut-steps { text-align: left; }
.tut-step { display: flex; gap: .7em; align-items: flex-start; background: var(--card); border-radius: 14px; padding: .8em; border: 1px solid var(--rule); }
.tut-step span { font-size: 1.8em; }
.tut-step p { margin: 0; font-size: 1.02em; }
.screen.center .primary-btn { margin-top: .8em; }
.not-interested { align-self: center; background: none; border: 2px solid var(--rule); border-radius: 2em; color: var(--ink-soft); font-weight: 700; font-size: .85em; padding: .4em 1em; min-height: 2.6em; }
.not-interested.done { border-color: transparent; color: var(--ink); }
.hint { color: var(--ink-soft); font-size: .9em; text-align: center; margin: 0; }

/* Reading */
.step-label { font-size: .85em; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }
.dots { display: flex; gap: .3em; }
.dots span { flex: 1; height: .35em; border-radius: 1em; background: var(--paper-2); border: 1px solid var(--rule); }
.dots span.past { background: var(--ink-soft); }
.dots span.now { background: var(--accent); border-color: var(--accent); }
.story-card { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; padding: .9em; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: .5em; }
.phone[data-card="clipping"] .story-card, .phone[data-card="clipping"] .main-card { border: 2px dashed var(--ink-soft); border-radius: 4px; }
.phone[data-card="ruled"] .story-card, .phone[data-card="ruled"] .main-card { background-image: repeating-linear-gradient(var(--card) 0 1.9em, var(--paper-2) 1.9em 2em); }
.phone[data-card="postcard"] .story-card, .phone[data-card="postcard"] .main-card { border: 6px solid var(--card); outline: 2px solid var(--accent); outline-offset: -10px; padding: 1.1em; }
.media { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--m1, #d8c7a6), var(--m2, #b89b6c)); display: grid; place-items: center; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.media-icon { font-size: 2.6em; opacity: .9; filter: drop-shadow(0 2px 4px #0003); }
.media.thumb .media-icon { font-size: 1.4em; }
.media.hero { margin: -.9em -.9em .1em; border-radius: 16px 16px 0 0; aspect-ratio: 16 / 10; }
.media[data-topic="politics"] { --m1: #c9d3e3; --m2: #7d8fb0; }
.media[data-topic="economy"] { --m1: #d9e6c8; --m2: #8aa86a; }
.media[data-topic="health"] { --m1: #cfe7e4; --m2: #6fa9a2; }
.media[data-topic="sports"] { --m1: #f2d9b8; --m2: #d08a4a; }
.media[data-topic="culture"] { --m1: #e7d0e3; --m2: #a776a0; }
.media[data-topic="science_tech"] { --m1: #d3dcf0; --m2: #6f86c4; }
.media[data-topic="local_life"] { --m1: #ecdcc0; --m2: #b98f57; }
.media[data-topic="good_news"] { --m1: #f6e7a9; --m2: #e0b84a; }
.media[data-topic="world"] { --m1: #cfe2ef; --m2: #5f93b8; }
.trend-tag { background: var(--accent); color: var(--accent-ink); border-radius: 1em; padding: .05em .6em; font-weight: 700; }
.story-meta { display: flex; flex-wrap: wrap; gap: .4em .8em; font-size: .82em; color: var(--ink-soft); align-items: center; }
.topic-chip { border: 1px solid var(--rule); border-radius: 1em; padding: 0 .6em; }
.headline { font-family: var(--head-font); font-weight: 700; font-size: 1.4em; line-height: 1.2; margin: 0; }
.summary { margin: 0; font-size: 1.05em; line-height: 1.55; }
.source-link { color: var(--accent); font-size: .85em; font-weight: 700; padding: .3em 0; }
.practice-tag { align-self: flex-start; background: var(--accent); color: var(--accent-ink); font-size: .75em; font-weight: 700; padding: .1em .6em; border-radius: 1em; text-transform: uppercase; letter-spacing: .05em; }
.banner { background: var(--paper-2); border-left: 5px solid var(--accent); padding: .6em .8em; border-radius: 8px; font-size: .95em; }

/* Questions */
.q-context { display: flex; gap: .6em; align-items: center; background: var(--paper-2); border-radius: 12px; padding: .5em; min-height: 3em; }
.q-context .media.thumb { flex: 0 0 5em; height: 3.6em; aspect-ratio: auto; border-radius: 8px; }
.story-ref, .earlier-label { font-size: .8em; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.q-head { font-family: var(--head-font); font-weight: 600; font-size: .92em; line-height: 1.25; }
.prompt { font-family: var(--head-font); font-size: 1.3em; line-height: 1.3; margin: .2em 0; }
.answers { display: flex; flex-direction: column; gap: .55em; }
.answer { display: flex; align-items: center; gap: .7em; min-height: 3.2em; padding: .55em .8em; text-align: left; background: var(--card); border: 2px solid var(--rule); border-radius: 14px; font-size: 1.05em; line-height: 1.3; }
.answer .letter { flex: 0 0 1.8em; height: 1.8em; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font-weight: 700; font-size: .85em; }
.answer .mark { margin-left: auto; font-size: 1.3em; font-weight: 700; }
.answer.right { border-color: var(--good); background: var(--good-bg); color: var(--ink); }
.answer.right .letter { background: var(--good); color: #fff; }
.answer.wrong { border-color: var(--bad); background: var(--bad-bg); }
.answer.wrong .letter { background: var(--bad); color: #fff; }
.answer.faded { opacity: .55; min-height: 0; padding-block: .4em; font-size: .9em; }
.answer[disabled] { cursor: default; }
.feedback { border-radius: 12px; padding: .6em .8em; font-size: 1em; }
.feedback.good { background: var(--good-bg); color: var(--good); }
.feedback.bad { background: var(--bad-bg); color: var(--bad); }
.feedback div { color: var(--ink); }
.explain { margin-top: .2em; font-size: .92em; }

/* Results */
.result-hero { text-align: center; display: flex; flex-direction: column; gap: .3em; align-items: center; padding: .5em 0; }
.big-score { font-family: var(--mast-font); font-weight: 900; font-size: 3em; line-height: 1; color: var(--accent); }
.score-sub { color: var(--ink-soft); }
.xp-gain { font-weight: 700; font-size: 1.2em; background: var(--paper-2); border-radius: 1em; padding: .1em .8em; }
.level-up, .streak-line, .unlock-line, .ach-line { font-weight: 700; }
.section-title { font-family: var(--head-font); font-size: 1.1em; margin: .8em 0 .1em; border-bottom: 1px solid var(--ink); padding-bottom: .15em; }
.answer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .4em; font-size: .9em; }
.answer-list li { display: flex; gap: .5em; background: var(--card); border-radius: 10px; padding: .45em .6em; border: 1px solid var(--rule); }
.answer-list li > span:first-child { font-weight: 700; }
.answer-list li.ok > span:first-child { color: var(--good); }
.answer-list li.no > span:first-child { color: var(--bad); }
.answer-list small { display: block; color: var(--ink-soft); }
.week-summary { display: flex; flex-direction: column; gap: .5em; }
.week-date { font-weight: 700; font-size: .85em; text-transform: uppercase; color: var(--accent); letter-spacing: .04em; }
.week-day ul { margin: .1em 0 0; padding-left: 1.1em; font-family: var(--head-font); font-size: .95em; }
.waiting { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1em; padding-top: 2em; }
.spinner { width: 2.4em; height: 2.4em; border-radius: 50%; border: 4px solid var(--rule); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Progress */
.stat-hero { display: flex; align-items: center; gap: .8em; padding-top: .3em; }
.big-level { font-family: var(--head-font); font-weight: 700; font-size: 1.4em; word-break: break-word; }
.xp-text { color: var(--ink-soft); }
.trend { display: flex; align-items: flex-end; gap: .3em; height: 7em; padding: .4em; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; }
.trend .bar { flex: 1; max-width: 2.6em; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: .1em; }
.trend .bar span { width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; opacity: .85; }
.trend .bar em { font-style: normal; font-size: .6em; color: var(--ink-soft); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5em; margin-top: .5em; }
.stat { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: .6em .3em; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .1em; }
.stat span { font-size: 1.4em; }
.stat small { color: var(--ink-soft); font-size: .72em; line-height: 1.2; }

/* Achievements */
.ach-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .6em; }
.ach-list li { display: flex; gap: .7em; background: var(--card); border: 1px solid var(--rule); border-radius: 14px; padding: .7em; opacity: .7; }
.ach-list li.got { opacity: 1; border: 2px solid var(--accent); }
.ach-icon { font-size: 1.9em; filter: grayscale(1); }
.ach-list li.got .ach-icon { filter: none; }
.ach-list p { margin: .1em 0; font-size: .9em; }
.ach-list small { color: var(--accent); font-weight: 700; }

/* Leaderboard */
.my-score { font-weight: 700; font-size: 1.1em; }
.lb-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .35em; }
.lb-list li { display: flex; align-items: center; gap: .6em; background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: .5em .7em; }
.lb-list li.me { border: 2px solid var(--accent); }
.rank { font-weight: 900; font-family: var(--mast-font); width: 1.6em; color: var(--accent); }
.lb-name { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.lb-score { font-weight: 700; }

/* Calendar: four rows of seven */
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: .25em; }
.cal-cell { position: relative; aspect-ratio: 1 / 1.15; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .78em; }
.cal-day { font-size: .75em; color: var(--ink-soft); font-weight: 700; }
.cal-icon { font-size: 1.25em; line-height: 1.1; }
.cal-cell.milestone { border-width: 2px; border-color: var(--accent); }
.cal-cell.claimed { background: var(--paper-2); }
.cal-cell.claimed .cal-icon { opacity: .45; }
.cal-check { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.6em; color: var(--good); font-weight: 900; }
.cal-cell.missed { opacity: .35; }
.cal-cell.today { background: color-mix(in srgb, var(--accent) 18%, var(--card)); border: 3px solid var(--accent); }
.cal-status { font-weight: 700; color: var(--accent); }
.got-box { background: var(--good-bg); color: var(--good); border-radius: 12px; padding: .6em .8em; font-weight: 700; text-align: center; }
.locked-box { text-align: center; font-size: 1.1em; display: flex; flex-direction: column; gap: .6em; align-items: center; padding-top: 2em; }
.locked-box > :first-child { font-size: 2em; }
.center-text { text-align: center; }

/* Profile */
.opt-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .35em; }
.opt-list { display: flex; flex-direction: column; gap: .4em; }
.opt { position: relative; display: flex; align-items: center; gap: .6em; background: var(--card); border: 2px solid var(--rule); border-radius: 12px; padding: .45em .6em; min-height: 2.8em; text-align: left; font-size: .95em; }
.opt-grid .opt { justify-content: center; padding: .3em; aspect-ratio: 1; min-height: 0; }
.opt-emoji { font-size: 1.3em; }
.opt.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.opt.locked { opacity: .45; }
.opt .lock { position: absolute; right: .2em; top: .1em; font-size: .7em; }
.swatch { width: 1.6em; height: 1.6em; border-radius: 50%; border: 2px solid #0003; flex: 0 0 auto; }
.swatch[data-swatch="classic"] { background: linear-gradient(135deg, #f6efdf 50%, #8a2c1d 50%); }
.swatch[data-swatch="sepia"] { background: linear-gradient(135deg, #f1e3c6 50%, #7a4a1e 50%); }
.swatch[data-swatch="evening"] { background: linear-gradient(135deg, #1f2430 50%, #e7b75f 50%); }
.swatch[data-swatch="sunday"] { background: linear-gradient(135deg, #fdf6ea 50%, #1f5f8b 50%); }
.swatch[data-swatch="garden"] { background: linear-gradient(135deg, #eef2e4 50%, #3f6b2a 50%); }
.card-sample { width: 1.8em; height: 1.4em; background: var(--card); border: 1px solid var(--rule); border-radius: 4px; flex: 0 0 auto; }
.card-sample[data-card-sample="clipping"] { border: 2px dashed var(--ink-soft); }
.card-sample[data-card-sample="ruled"] { background-image: repeating-linear-gradient(var(--card) 0 .25em, var(--rule) .25em .32em); }
.card-sample[data-card-sample="postcard"] { outline: 2px solid var(--accent); outline-offset: -4px; }

/* Settings */
.segmented { display: flex; flex-wrap: wrap; gap: .35em; }
.segmented button { flex: 1 1 auto; min-height: 2.8em; padding: .3em .6em; background: var(--card); border: 2px solid var(--rule); border-radius: 12px; font-weight: 700; font-size: .92em; }
.segmented button.selected { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.big-toggle { min-height: 3em; border-radius: 14px; border: 2px solid var(--rule); background: var(--card); font-weight: 700; }
.slider { display: flex; flex-direction: column; gap: .2em; font-weight: 700; }
.slider input { width: 100%; height: 2.2em; accent-color: var(--accent); }
.field-label { margin: .3em 0 0; font-weight: 700; font-size: .9em; }
.screen .secondary-btn + .secondary-btn { margin-top: .1em; }

/* Toast */
.toast { position: absolute; left: 1em; right: 1em; bottom: 1.2em; background: var(--ink); color: var(--paper); padding: .7em 1em; border-radius: 12px; text-align: center; font-weight: 700; z-index: 20; box-shadow: var(--shadow); }

/* ===== 2026-11-01 refresh: more color, more play, more "made for me" ===== */
.phone { --pop-blue: #2e6fb7; --pop-red: #c8452c; --pop-green: #2f8a4c; --pop-gold: #c98a12; --pop-purple: #7b4fa6; --pop-teal: #1d8a8a; --pop-grey: #6b6357; }
.primary-btn { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 82%, #fff) 0, var(--accent) 55%); border-color: color-mix(in srgb, var(--accent) 80%, #000); box-shadow: 0 4px 0 color-mix(in srgb, var(--accent) 60%, #000); }
.primary-btn:active { box-shadow: 0 1px 0 color-mix(in srgb, var(--accent) 60%, #000); }
.primary-btn.big { min-height: 3.4em; font-size: 1.15em; }

/* Topic art: bold color, soft pattern and a big icon, so a story without a photo still looks like a picture */
.media { background:
  radial-gradient(circle at 18% 22%, #ffffff40 0 .5em, transparent .55em),
  radial-gradient(circle at 82% 75%, #ffffff30 0 1.6em, transparent 1.65em),
  radial-gradient(circle at 70% 18%, #ffffff22 0 .9em, transparent .95em),
  repeating-linear-gradient(135deg, #ffffff12 0 10px, transparent 10px 22px),
  linear-gradient(135deg, var(--m1), var(--m2)); }
.media-icon { font-size: 3.4em; filter: drop-shadow(0 4px 8px #0004); }
.media.thumb .media-icon, .media.mini .media-icon { font-size: 1.5em; }
.media[data-topic="politics"] { --m1: #6d8fd6; --m2: #2f4a8a; }
.media[data-topic="economy"] { --m1: #7fcf8a; --m2: #2c7a46; }
.media[data-topic="health"] { --m1: #6fd3c6; --m2: #1f7f86; }
.media[data-topic="sports"] { --m1: #ffb36b; --m2: #d9541e; }
.media[data-topic="culture"] { --m1: #e59ad6; --m2: #8a3c8f; }
.media[data-topic="science_tech"] { --m1: #8fa8ff; --m2: #4b3fb0; }
.media[data-topic="local_life"] { --m1: #f2c57c; --m2: #b06a2c; }
.media[data-topic="good_news"] { --m1: #ffe27a; --m2: #f08c2b; }
.media[data-topic="world"] { --m1: #6cc4f0; --m2: #1f6aa8; }

/* Menu: greeting, hero card, today's tracker, colored tiles */
.hello { font-family: var(--head-font); font-weight: 700; font-size: 1.15em; line-height: 1.2; }
.player-level { display: flex; flex-wrap: wrap; gap: .35em; margin-top: .2em; font-size: .8em; }
.lvl-pill, .streak-pill { border-radius: 2em; padding: .1em .6em; font-weight: 700; }
.lvl-pill { background: color-mix(in srgb, var(--pop-gold) 18%, var(--card)); color: color-mix(in srgb, var(--pop-gold) 70%, var(--ink)); }
.streak-pill { background: color-mix(in srgb, var(--pop-red) 15%, var(--card)); color: var(--pop-red); }
.xp-bar span { background: linear-gradient(90deg, var(--pop-gold), var(--accent)); }
.hero-card { padding: 0; overflow: hidden; gap: .7em; padding-bottom: .9em; }
.hero-card > :not(.teaser) { margin-inline: .9em; }
.hero-card > .primary-btn { width: auto; }
.hero-card .teaser { position: relative; }
.hero-card .media.cover { aspect-ratio: 16 / 10; border-radius: 0; }
.teaser-overlay { position: absolute; inset: auto 0 0 0; padding: 2.2em .9em .7em; background: linear-gradient(to top, #000000c8, #00000080 60%, transparent); color: #fff; display: flex; flex-direction: column; gap: .3em; align-items: flex-start; }
.teaser-overlay .teaser-head { color: #fff; text-shadow: 0 1px 3px #0008; font-size: 1.2em; }
.edition-pill { background: var(--accent); color: var(--accent-ink); font-size: .7em; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-radius: 2em; padding: .15em .7em; }
.mine-row { display: flex; flex-direction: column; gap: .35em; }
.mine-label { font-weight: 700; font-size: .9em; }
.mine-dots { display: flex; gap: .4em; }
.mine-dot { width: 2.3em; height: 2.3em; border-radius: 50%; display: grid; place-items: center; font-size: 1.05em; background: linear-gradient(135deg, var(--m1), var(--m2)); box-shadow: 0 2px 4px #0002; border: 2px solid var(--card); }
.mine-dot[data-topic="politics"] { --m1: #6d8fd6; --m2: #2f4a8a; } .mine-dot[data-topic="economy"] { --m1: #7fcf8a; --m2: #2c7a46; }
.mine-dot[data-topic="health"] { --m1: #6fd3c6; --m2: #1f7f86; } .mine-dot[data-topic="sports"] { --m1: #ffb36b; --m2: #d9541e; }
.mine-dot[data-topic="culture"] { --m1: #e59ad6; --m2: #8a3c8f; } .mine-dot[data-topic="science_tech"] { --m1: #8fa8ff; --m2: #4b3fb0; }
.mine-dot[data-topic="local_life"] { --m1: #f2c57c; --m2: #b06a2c; } .mine-dot[data-topic="good_news"] { --m1: #ffe27a; --m2: #f08c2b; }
.mine-dot[data-topic="world"] { --m1: #6cc4f0; --m2: #1f6aa8; }
.for-you { font-size: .82em; color: var(--pop-gold); font-weight: 700; color: color-mix(in srgb, var(--pop-gold) 75%, var(--ink)); }
.day-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45em; }
.day-slot { display: flex; flex-direction: column; align-items: center; gap: .05em; background: var(--card); border: 2px solid var(--rule); border-radius: 14px; padding: .4em .2em; font-size: .82em; text-align: center; }
.day-slot.now { border-color: var(--accent); }
.day-slot.done { background: var(--good-bg); border-color: var(--good); }
.day-ico { font-size: 1.4em; line-height: 1.2; }
.day-slot.done .day-ico { color: var(--good); font-weight: 900; }
.day-name { font-weight: 700; }
.day-score { color: var(--ink-soft); font-size: .9em; }
.tile { --c: var(--pop-grey); border-top: 4px solid var(--c); }
.tile[data-color="blue"] { --c: var(--pop-blue); } .tile[data-color="red"] { --c: var(--pop-red); } .tile[data-color="green"] { --c: var(--pop-green); }
.tile[data-color="gold"] { --c: var(--pop-gold); } .tile[data-color="purple"] { --c: var(--pop-purple); } .tile[data-color="teal"] { --c: var(--pop-teal); }
.tile-icon { width: 2em; height: 2em; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, var(--card)); font-size: 1.35em; }
.tile:active { transform: translateY(2px); }

/* Interest picker: name the topic on each photo */
.photo-topic { position: absolute; left: .4em; top: .4em; background: #000000a0; color: #fff; font-size: .62em; font-weight: 700; padding: .15em .55em; border-radius: 2em; }

/* Reading: why this story is here, and quick reactions */
.hero-wrap { position: relative; margin: -.9em -.9em .1em; }
.hero-wrap .media.hero { margin: 0; }
.why-tag { position: absolute; left: .7em; bottom: .7em; background: var(--card); color: var(--ink); font-weight: 700; font-size: .78em; border-radius: 2em; padding: .2em .75em; box-shadow: 0 2px 8px #0004; }
.why-tag[data-why="trending"] { background: var(--pop-red); color: #fff; }
.why-tag[data-why="forYou"] { background: var(--pop-gold); color: #fff; }
.why-tag[data-why="top"] { background: var(--ink); color: var(--paper); }
.why-tag[data-why="world"] { background: var(--pop-blue); color: #fff; }
.react-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; }
.react-btn { background: var(--card); border: 2px solid var(--rule); border-radius: 2em; font-weight: 700; font-size: .85em; min-height: 2.8em; padding: .3em .6em; color: var(--ink-soft); }
.react-btn.like { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, var(--rule)); }
.not-interested.liked { color: var(--good); }

/* Quiz: score, colored letters, hint, combo, celebrations */
.quiz-hud { display: flex; justify-content: space-between; align-items: center; }
.score-chip { background: color-mix(in srgb, var(--pop-gold) 18%, var(--card)); color: color-mix(in srgb, var(--pop-gold) 70%, var(--ink)); border: 2px solid color-mix(in srgb, var(--pop-gold) 50%, transparent); font-weight: 700; border-radius: 2em; padding: .05em .7em; font-size: .9em; }
.answer { position: relative; transition: transform .1s; }
.answer:not([disabled]):active { transform: scale(.98); }
.answer .letter { color: #fff; }
.answer[data-letter="0"] .letter { background: var(--pop-blue); } .answer[data-letter="1"] .letter { background: var(--pop-gold); }
.answer[data-letter="2"] .letter { background: var(--pop-purple); } .answer[data-letter="3"] .letter { background: var(--pop-teal); }
.answer.right { animation: pop .35s ease-out; }
.answer.wrong { animation: shake .4s ease-in-out; }
.answer.removed { opacity: .25; text-decoration: line-through; min-height: 0; padding-block: .35em; font-size: .85em; }
@keyframes pop { 40% { transform: scale(1.04); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.plus-pop { position: absolute; right: 2.2em; top: -.2em; font-weight: 900; color: var(--pop-gold); font-size: 1.1em; animation: floatUp 1.1s ease-out forwards; text-shadow: 0 1px 0 #fff; }
@keyframes floatUp { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-1.6em); } }
.hint-btn { align-self: center; background: color-mix(in srgb, var(--pop-gold) 12%, var(--card)); border: 2px dashed color-mix(in srgb, var(--pop-gold) 60%, var(--rule)); border-radius: 2em; padding: .4em 1em; font-weight: 700; font-size: .85em; min-height: 2.6em; }
.hint-btn small { color: var(--ink-soft); font-weight: 400; }
.combo-pop { align-self: center; background: linear-gradient(90deg, var(--pop-red), var(--pop-gold)); color: #fff; font-weight: 900; border-radius: 2em; padding: .25em 1em; animation: pop .5s ease-out; box-shadow: 0 3px 10px #c8452c55; }
.feedback.good strong { font-size: 1.15em; }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 30; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--dx), 105cqh) rotate(var(--rot)); opacity: .9; } }

/* Results: face, stars, story thumbnails */
.result-face { font-size: 3.2em; line-height: 1; animation: pop .6s ease-out; }
.stars { display: flex; gap: .2em; font-size: 2.4em; line-height: 1; }
.stars span { color: var(--rule); }
.stars span.on { color: #f5b301; text-shadow: 0 2px 0 #c98a12; animation: starIn .45s ease-out both; }
@keyframes starIn { from { transform: scale(0) rotate(-40deg); opacity: 0; } 70% { transform: scale(1.3); } to { transform: scale(1); opacity: 1; } }
.best-line, .sharp-line { font-weight: 700; border-radius: 2em; padding: .2em .9em; }
.best-line { background: color-mix(in srgb, var(--pop-gold) 22%, var(--card)); }
.sharp-line { background: color-mix(in srgb, var(--pop-blue) 14%, var(--card)); font-size: .9em; }
.next-ed { text-align: center; color: var(--ink-soft); margin: 0; font-size: .9em; }
.answer-list li { align-items: center; }
.answer-list .media.mini { flex: 0 0 3.2em; height: 3.2em; aspect-ratio: 1; border-radius: 8px; }
.ans-mark { font-weight: 900; font-size: 1.2em; }
.answer-list li.ok .ans-mark { color: var(--good); }
.answer-list li.no .ans-mark { color: var(--bad); }

/* ===== Motion (2026-11-01): smooth, calm, everywhere ===== */
:root { --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.56, .64, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes slideL { from { opacity: 0; transform: translateX(42px); } }
@keyframes slideR { from { opacity: 0; transform: translateX(-42px); } }
@keyframes popIn { from { opacity: 0; transform: scale(.6); } 70% { transform: scale(1.06); } }
@keyframes grow { from { width: 0; } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-3deg); } }
@keyframes zoomSlow { from { transform: scale(1); } to { transform: scale(1.12); } }
@keyframes shine { 0%, 70% { transform: translateX(-120%) skewX(-20deg); } 100% { transform: translateX(260%) skewX(-20deg); } }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(8deg); } 95% { transform: rotate(-4deg); } }
@keyframes glow { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent), var(--shadow); } }

/* Screen entrances: each block rises in, one after another */
.screen.enter > * { animation: rise .5s var(--ease) both; }
.screen.enter > :nth-child(2) { animation-delay: .05s; } .screen.enter > :nth-child(3) { animation-delay: .1s; }
.screen.enter > :nth-child(4) { animation-delay: .15s; } .screen.enter > :nth-child(5) { animation-delay: .2s; }
.screen.enter > :nth-child(6) { animation-delay: .25s; } .screen.enter > :nth-child(7) { animation-delay: .3s; }
.screen.enter > :nth-child(8) { animation-delay: .35s; } .screen.enter > :nth-child(n+9) { animation-delay: .4s; }
.screen.enter > .topbar, .screen.enter > .bottom-btns { animation-name: fadeIn; animation-delay: 0s; }
/* Moving through stories and questions slides sideways, like turning a page */
.screen.enter-fwd > :not(.topbar):not(.bottom-btns) { animation-name: slideL; }
.screen.enter-back > :not(.topbar):not(.bottom-btns) { animation-name: slideR; }
/* Lists pop in one by one */
.enter :is(.tiles, .answers, .mine-dots, .day-track, .answer-list, .photo-picks, .ach-list, .choice-list, .stat-grid, .lb-list, .topic-toggles) > * { animation: rise .45s var(--ease) both; }
.enter :is(.tiles, .answers, .mine-dots, .day-track, .answer-list, .photo-picks, .ach-list, .choice-list, .stat-grid, .lb-list, .topic-toggles) > :nth-child(1) { animation-delay: .2s; }
.enter :is(.tiles, .answers, .mine-dots, .day-track, .answer-list, .photo-picks, .ach-list, .choice-list, .stat-grid, .lb-list, .topic-toggles) > :nth-child(2) { animation-delay: .27s; }
.enter :is(.tiles, .answers, .mine-dots, .day-track, .answer-list, .photo-picks, .ach-list, .choice-list, .stat-grid, .lb-list, .topic-toggles) > :nth-child(3) { animation-delay: .34s; }
.enter :is(.tiles, .answers, .mine-dots, .day-track, .answer-list, .photo-picks, .ach-list, .choice-list, .stat-grid, .lb-list, .topic-toggles) > :nth-child(4) { animation-delay: .41s; }
.enter :is(.tiles, .answers, .mine-dots, .day-track, .answer-list, .photo-picks, .ach-list, .choice-list, .stat-grid, .lb-list, .topic-toggles) > :nth-child(5) { animation-delay: .48s; }
.enter :is(.tiles, .answers, .mine-dots, .day-track, .answer-list, .photo-picks, .ach-list, .choice-list, .stat-grid, .lb-list, .topic-toggles) > :nth-child(6) { animation-delay: .55s; }
.enter :is(.tiles, .answers, .mine-dots, .day-track, .answer-list, .photo-picks, .ach-list, .choice-list, .stat-grid, .lb-list, .topic-toggles) > :nth-child(n+7) { animation-delay: .62s; }
.enter .mine-dots > * { animation-name: popIn; animation-timing-function: var(--spring); }
.enter .cal-cell { animation: popIn .35s var(--spring) both; }
.enter .cal-cell:nth-child(7n+2) { animation-delay: .04s; } .enter .cal-cell:nth-child(7n+3) { animation-delay: .08s; } .enter .cal-cell:nth-child(7n+4) { animation-delay: .12s; }
.enter .cal-cell:nth-child(7n+5) { animation-delay: .16s; } .enter .cal-cell:nth-child(7n+6) { animation-delay: .2s; } .enter .cal-cell:nth-child(7n) { animation-delay: .24s; }

/* Bars fill up when a screen opens */
.enter .xp-bar span { animation: grow 1.1s var(--ease) .35s both; }
.enter .trend .bar span { animation: rise .8s var(--ease) both; }
.dots span { transition: background .4s, border-color .4s; }
.enter .dots span.now { animation: grow .5s var(--ease) both; }

/* Living pictures: the topic icon floats gently, the menu cover slowly zooms */
.media-icon { animation: bob 3.6s ease-in-out infinite; }
.hero-card .media.cover > * { animation: zoomSlow 14s ease-in-out infinite alternate; }
.hero-card .media.cover .media-icon { animation: bob 3.6s ease-in-out infinite; }
.teaser-overlay { animation: rise .6s var(--ease) .3s both; }

/* Buttons respond to the finger */
button, .tile, [role=button] { transition: transform .15s var(--ease), box-shadow .15s, background-color .2s, border-color .2s, opacity .2s; }
button:not([disabled]):active, .tile:active, .player-strip:active { transform: scale(.96); }
.primary-btn { position: relative; overflow: hidden; }
.primary-btn.pulse::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 40%; background: linear-gradient(90deg, transparent, #ffffff55, transparent); animation: shine 3.2s ease-in-out infinite; pointer-events: none; }
.dot { animation: wiggle 2.6s ease-in-out infinite; transform-origin: 70% 100%; }
.cal-cell.today { animation: glow 2s ease-in-out infinite; }
.photo-pick.just { animation: popIn .35s var(--spring); }
.photo-pick.just .photo-check { animation: popIn .35s var(--spring); }

/* Answer reveal: wrong options fade back, the explanation slides up */
.answer.faded { animation: fadeIn .4s both; }
.feedback { animation: rise .45s var(--ease) both; }
.answer .mark { animation: popIn .4s var(--spring) both; }
.answer.removed { animation: fadeIn .4s both; }
.why-tag { animation: popIn .5s var(--spring) .35s both; }

/* Results: the celebration plays in order */
.enter .result-hero > * { animation: popIn .55s var(--spring) both; }
.enter .result-hero > :nth-child(1) { animation-delay: .1s; } .enter .result-hero > :nth-child(3) { animation-delay: .5s; }
.enter .result-hero > :nth-child(4) { animation-delay: .7s; } .enter .result-hero > :nth-child(5) { animation-delay: .9s; }
.enter .result-hero > :nth-child(6) { animation-delay: 1.1s; } .enter .result-hero > :nth-child(7) { animation-delay: 1.3s; }
.enter .result-hero > :nth-child(8) { animation-delay: 1.5s; } .enter .result-hero > :nth-child(n+9) { animation-delay: 1.7s; }
.enter .result-hero > .stars { animation: none; }
.result-face { display: inline-block; }
.enter .result-face { animation: popIn .7s var(--spring) .1s both, bob 3s ease-in-out 1s infinite; }

/* Toasts slide up */
.toast:not([hidden]) { animation: rise .35s var(--ease); }

/* Calmer motion for players who ask for it: soft fades only, no sliding, bouncing or confetti */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-name: fadeIn !important; animation-iteration-count: 1 !important; animation-duration: .4s !important; }
  .media-icon, .hero-card .media.cover > *, .dot, .primary-btn.pulse::after, .cal-cell.today { animation: none !important; }
  button:not([disabled]):active, .tile:active { transform: none; }
}

/* Korean: wrap between words, not inside them */
:lang(ko) .phone { word-break: keep-all; overflow-wrap: anywhere; }

/* Link from Achievements to the CYNNX leaderboard (CYNNX new-game standard). */
.cynnx-lb { display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; margin-top: 1em; }
