/* Quiet cream design values; each application owns its styles and release. */
:root {
    --page: #fff8ed;
    --ink: #17334c;
    --brand: #b94032;
    --accent: #9c392e;
    --line: #e7dfd2;
    --secondary: #4a5661;
    --muted: #616d75;
    --soft: #fbf8f2;
}
:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--ink); background: var(--page); }
#connection:not(:empty) { max-width: 476px; margin: 0 auto 16px; padding: 14px; background: #faf4e9; border-radius: 12px; }
#connection button { margin: 8px 6px 0 0; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; background: var(--page); }
button, input, select { font: inherit; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; min-height: 44px; background: white; color: var(--ink); font-weight: 600; }
button:hover { background: #fff4ec; }
button:disabled { opacity: .45; cursor: not-allowed; }
:focus-visible { outline: 3px solid #16777d; outline-offset: 3px; }
.primary { background: var(--ink); color: white; border-color: var(--ink); }
.primary:hover { background: #254a67; }
.secondary { background: var(--soft); }
.sheet > button, form > button { width: 100%; margin-top: 10px; }
input, select { display: block; width: 100%; min-height: 48px; margin-top: 8px; border: 1px solid #b6adb4; border-radius: 9px; padding: 12px; background: white; color: inherit; }
input::placeholder { font-style: italic; color: #777; }
input:focus::placeholder { color: transparent; }
label { display: block; font-weight: 600; margin-top: 20px; }
.review { background: #282735; color: #fff; font-size: 12px; padding: 8px 14px; }
.review > details { max-width: 760px; margin: auto; }
.review summary { min-height: 32px; padding: 7px 0; font-weight: 600; cursor: pointer; }
.review p { color: #eee; }
.review-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.review button { font-size: 12px; padding: 8px; }
.review select { max-width: 100%; font-size: 14px; }
.review label { font-size: 13px; }
.game-menu { text-align: right; margin-bottom: 14px; }
.game-menu button { display: block; width: 100%; margin-top: 8px; }
.game-menu .hint { text-align: left; }
.manage { margin-top: 24px; border-top: 1px solid #dfd3d4; }
.participant { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #eee; }
.participant > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.participant small { display: block; color: var(--muted); margin-top: 5px; }
.notification { padding: 16px; background: #f1f6f2; border-radius: 12px; margin: 20px 0; }
.notification h2 { margin-top: 0; }
.notification button { width: 100%; }
.winners ul { text-align: left; padding-left: 22px; overflow-wrap: anywhere; }
.winners li { margin: 8px 0; }
.brand { text-align: center; padding: 22px 16px 18px; }
.brand a { font-weight: 800; color: var(--brand); text-decoration: none; }
.brand .game-home { font-size: 32px; letter-spacing: -.8px; }
.brand .parent-site { display: block; width: fit-content; margin: 4px auto 0; padding: 4px; font-size: 11px; letter-spacing: 1.3px; text-transform: uppercase; }
.brand a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
main { max-width: 488px; margin: auto; padding: 0 14px; outline: none; }
.sheet { padding: 22px 20px; border-radius: 22px; background: white; border: 1px solid var(--line); box-shadow: 0 4px 16px #17334c06; }
h1 { font-size: 25px; line-height: 1.2; letter-spacing: -.6px; margin: 0 0 14px; overflow-wrap: anywhere; }
h2 { font-size: 19px; margin: 26px 0 12px; overflow-wrap: anywhere; }
p { line-height: 1.5; margin: 12px 0; overflow-wrap: anywhere; }
.intro { color: var(--secondary); margin-bottom: 22px; }
.hint, .small-print { font-size: 13px; color: var(--muted); line-height: 1.5; }
.small-print li { margin: 10px 0; }
.preview-note { font-size: 12px; color: #665b64; border-left: 3px solid #b9a3ae; padding-left: 10px; }
.centered { text-align: center; }
.eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.3px; color: #7c6671; }
.steps { padding: 0; list-style: none; margin: 24px 0; }
.steps li { display: flex; gap: 14px; align-items: start; margin: 20px 0; line-height: 1.5; }
.steps span { flex: 0 0 30px; text-align: center; border-radius: 50%; background: #faf0e4; color: var(--accent); line-height: 30px; font-weight: 700; }
.game-list { display: grid; gap: 10px; }
.game-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 26px 0 16px; border-bottom: 2px solid var(--line); }
.game-tabs button { min-width: 0; padding: 12px 8px; border: 0; border-bottom: 3px solid transparent; border-radius: 10px 10px 0 0; font-size: 14px; }
.game-tabs button[aria-selected="true"] { color: var(--accent); background: #fcf1e6; border-bottom-color: var(--brand); }
.game-entry { text-align: left; display: grid; gap: 7px; overflow-wrap: anywhere; }
.game-entry span { font-size: 13px; font-weight: 400; }
.text-link { background: transparent; border: none; color: var(--ink); text-decoration: underline; padding: 8px 0; }
.callout, .finding { padding: 14px 16px; background: #faf4e9; border-radius: 12px; margin: 20px 0; }
.callout p { margin: 8px 0 0; }
.callout .eyebrow { margin: 0 0 8px; }
.announcement button { width: 100%; margin-top: 12px; }
.announcement button:first-child { margin-top: 0; }
.submitted-guessers ul { padding: 0; list-style: none; margin: 8px 0; }
.submitted-guessers li { padding: 10px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.reminder-prompt { margin-top: 24px; }
#reveal-remaining { display: block; font-weight: 600; margin-bottom: 4px; }
.next-game { padding: 16px; background: #faf4e9; border-radius: 12px; margin-top: 24px; text-align: center; }
.next-game-prompt { margin: 0 0 12px; font-weight: 600; }
.next-game button { width: 100%; }
.finding { background: #f7f4eb; }
.finding h2 { margin-top: 0; }
.item-list { list-style: none; padding: 0; }
.item-list li { font-size: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.item-list li:last-child { border: none; }
.compact li { font-size: 16px; padding: 10px 0; }
.list-card { padding: 14px 22px; background: #fff4e9; border: 1px solid #f4d9c7; border-radius: 16px; }
.carousel { display: flex; justify-content: space-between; align-items: center; margin: 15px 0; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #d8c8c8; margin: 0 4px; }
.dot.active { background: #af334b; }
.order-list { padding-left: 28px; }
.order-list li { padding: 8px 0 8px 6px; border-bottom: 1px solid #f1e9e4; overflow-wrap: anywhere; }
.order-list li::marker { color: #a84056; font-weight: 600; }
.inline-actions { display: flex; gap: 8px; }
.inline-actions button { flex: 1; font-size: 13px; }
.slot-row { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.slot-number { width: 24px; color: #897d84; text-align: center; font-size: 13px; flex-shrink: 0; }
.slot-space { min-height: 46px; flex: 1; min-width: 0; background: #fcf8f4; border: 1px dashed #8a969f; border-radius: 8px; }
.slot-space.drag-over { border-color: var(--ink); background: #edf2f5; transform: scale(1.02); }
.pool.drag-over { background: #edf2f5; }
.pool { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; min-height: 50px; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.item { min-height: 44px; padding: 10px; background: white; border: 1px solid #e5d7d8; border-radius: 7px; font-size: 14px; display: flex; align-items: center; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; overflow-wrap: anywhere; }
.slot-space .item { border: 0; }
.dragging { opacity: .4; }
.drag-ghost { position: fixed; pointer-events: none; z-index: 20; width: 160px; padding: 12px; background: white; border: 2px solid var(--ink); border-radius: 8px; box-shadow: 0 5px 18px #0003; }
.drag-ghost.left-attach { text-align: right; }
.drag-ghost.right-attach { text-align: left; }
.pill { background: #f7eeee; border-radius: 20px; padding: 6px 12px; font-size: 13px; display: inline-block; }
.message-preview { padding: 18px; border-radius: 16px 16px 16px 3px; background: #f0f3ed; line-height: 1.6; overflow-wrap: anywhere; }
summary { cursor: pointer; min-height: 44px; padding: 12px 0; }
.answer { border-bottom: 1px solid var(--line); margin: 18px 0; }
.personal { border-radius: 16px; padding: 15px; background: #fdf0e8; text-align: center; }
.personal > p { margin: 6px 0; }
.big-score { font-size: 58px; color: #a62d46; }
.winners { text-align: center; background: #fff0c7; border-radius: 16px; padding: 9px 12px; margin: 22px 0; display: flex; flex-direction: column; justify-content: center; }
.winners .eyebrow { font-size: 14px; letter-spacing: 1px; margin: 3px 0; }
.winners h2 { font-size: 24px; margin: 5px 0; line-height: 1.15; }
.winners div > p { font-size: 18px; margin: 4px 0; }
.comparison-labels { display: flex; justify-content: space-between; gap: 20px; font-size: 12px; margin-top: 18px; }
.comparison-labels strong { max-width: 45%; overflow-wrap: anywhere; }
.comparison { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); gap: 6px; margin-top: 10px; }
.comparison .order-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-rows: repeat(5, 64px); text-align: left; }
.comparison .order-list:last-child { text-align: right; }
.comparison li { padding: 5px 0; display: flex; align-items: center; font-size: 12px; line-height: 1.3; border-bottom: 1px solid #eee; }
.comparison .order-list:last-child li { justify-content: flex-end; }
.comparison svg { height: 320px; width: 100%; overflow: visible; }
.comparison line { stroke-width: 2; opacity: .85; }
.line-0 { stroke: #ac354f; }.line-1 { stroke: #338583; }.line-2 { stroke: #99700b; }.line-3 { stroke: #6d64a9; }.line-4 { stroke: #b76028; }
/* Saved-game comparisons port Aligned's compact, numbered color groups. */
.saved-personal { padding: 12px; }
.saved-personal > p { margin: 4px 0; }
.saved-personal .big-score { font-size: 40px; line-height: 1.1; }
/* Keep the spectrum hue, darkening text for readability on light backgrounds. */
.score-value { color: color-mix(in srgb, var(--score-color) 60%, #111); }
.saved-labels { margin-top: 10px; gap: 16px; }
.saved-labels strong { flex: 1; max-width: none; text-align: center; padding: 2px; background: #f8f8f8; border-radius: 6px; }
.comparison.saved-comparison { position: relative; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 4px; align-items: start; }
.saved-comparison ol { list-style: none; margin: 0; padding: 4px; background: #fafafa; border-radius: 6px; display: flex; flex-direction: column; gap: 3px; }
.saved-comparison li { min-height: 28px; padding: 5px 6px; border: 0; border-radius: 4px; background: var(--item-background); color: #222; text-align: left; overflow-wrap: anywhere; }
.comparison-number { flex: 0 0 16px; height: 16px; line-height: 16px; margin-right: 6px; border-radius: 50%; background: white; color: var(--item-color); text-align: center; font-size: 9px; font-weight: 600; }
.comparison-text { min-width: 0; }
.saved-comparison svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.saved-comparison + p { margin: 8px 0; font-size: 12px; }
.hamburger-menu { position: fixed; top: 8px; right: 8px; z-index: 1000; }
.hamburger-menu .menu-toggle { width: 44px; height: 44px; min-height: 44px; padding: 0; margin: 0; border: 0; border-radius: 8px; background: #ffffff99; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu-toggle span { width: 20px; height: 2px; background: var(--brand); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-45deg); }
.hamburger-menu [role="menu"] { position: absolute; top: 52px; right: 0; min-width: 180px; width: max-content; max-width: calc(100vw - 16px); max-height: calc(100dvh - 68px); overflow: auto; background: white; border-radius: 12px; box-shadow: 0 8px 24px #00000026; }
.hamburger-menu [role="menuitem"] { display: block; width: 100%; min-height: 44px; padding: 14px 18px; margin: 0; border: 0; border-bottom: 1px solid #f0f0f0; border-radius: 0; background: white; color: #333; text-align: left; font-size: 14px; font-weight: 500; }
.hamburger-menu [role="menuitem"]:last-child { border-bottom: 0; }
.hamburger-menu a[role="menuitem"] { text-decoration: none; }
.hamburger-menu [role="menuitem"]:hover, .hamburger-menu [role="menuitem"]:focus-visible { background: #f5f5f5; }
.hamburger-menu [role="menuitem"]:focus-visible { outline-offset: -3px; }
.menu-overlay { position: fixed; inset: 0; z-index: 999; }
.histogram { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 3px; margin: 24px 0; }
.bar-column { text-align: center; font-size: 11px; border-radius: 4px; padding: 4px 1px; }
.bar-column > span { display: block; min-height: 16px; }
.bar-space { height: 100px; display: flex; align-items: flex-end; }
.bar { width: 100%; background: #ca6172; border-radius: 4px 4px 0 0; }
.your-bar { outline: 2px solid #207b7b; background: #e8f4f0; }
.score-histogram { margin: 29px 0 0; }
.score-histogram .bar-column { position: relative; padding-top: 5px; }
.score-histogram .bar { display: flex; align-items: flex-start; justify-content: center; color: #241d28; font-weight: 700; font-size: 13px; line-height: 15px; }
/* Keep exact counts readable even when one vote makes a very short bar. */
.score-histogram .bar:not(:empty) { min-height: 20px; padding-top: 5px; }
.score-histogram .you-label { position: absolute; top: -23px; left: 50%; transform: translateX(-50%); color: #166869; font-size: 12px; font-weight: 700; }
.score-axis { margin: 5px 0 18px; text-align: center; font-size: 13px; color: var(--secondary); }
.troublesome-item { margin: 18px 0; padding-bottom: 18px; border-bottom: 1px solid #d8d9cb; }
.troublesome-item h3 { font-size: 17px; font-weight: 400; line-height: 1.5; margin: 0; overflow-wrap: anywhere; }
.troublesome-item figcaption p { font-size: 14px; margin: 8px 0 13px; }
.item-histogram { display: grid; grid-template-columns: 1fr; gap: 3px; }
.placement-row { display: grid; grid-template-columns: minmax(0, 1fr) 87px; column-gap: 9px; align-items: stretch; }
.placement-box { display: grid; grid-template-columns: 25px minmax(0, 1fr); align-items: stretch; gap: 6px; min-height: 28px; padding: 0 4px; border-radius: 4px; }
.placement-label { font-size: 13px; text-align: right; align-self: center; }
.placement-track { display: flex; align-items: stretch; min-width: 0; }
.placement-bar { display: flex; align-items: center; justify-content: flex-end; min-height: 28px; background: var(--ink); border-radius: 3px; }
.placement-bar:not(:empty) { min-width: 26px; }
.placement-count { padding: 0 6px; font-size: 13px; font-weight: 700; color: white; }
.placement-note { font-size: 12px; line-height: 13px; color: #166869; font-weight: 600; overflow-wrap: anywhere; align-self: center; }
.placement-note.own-placement { color: #7a4e58; }
.host-position { outline: 2px solid #207b7b; }
.placement-box.host-position { background: #e8f4f0; }
.observations { list-style: none; margin: 0; padding: 0; }
.observation { display: grid; grid-template-columns: 21px minmax(0, 1fr); column-gap: 9px; margin: 18px 0; }
.observation:last-child { margin-bottom: 0; }
.observation-icon { font-size: 18px; line-height: 1.5; }
.correct-observation .observation-icon { font-family: sans-serif; font-size: 23px; line-height: 1.1; font-weight: 700; color: #268140; }
.observation p { margin: 0; line-height: 1.5; }
.observation-lead { display: block; margin-bottom: 5px; }
.finding strong { font-weight: 700; }
.guess-card { border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; margin: 10px 0; }
.guess-card summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.guess-card summary::after { content: '⌄'; }
.guess-card summary > span { flex: 1; overflow-wrap: anywhere; }
.guess-card[open] summary::after { content: '⌃'; }
.error { color: #ac233d; }
.error:empty { display: none; }
footer { text-align: center; font-size: 11px; padding: 22px 12px; color: #71424d; }
dialog { width: min(440px, calc(100% - 28px)); max-height: 85dvh; padding: 24px; border: none; border-radius: 18px; color: var(--ink); }
dialog::backdrop { background: #25152688; }
dialog h2 { margin-top: 0; }
dialog form button, dialog #confirm-action, dialog #confirm-attachment { width: 100%; }
dialog.alignment-info { width: min(360px, calc(100% - 28px)); }
.alignment-info h2 { font-size: 18px; }
.alignment-info p { font-size: 14px; line-height: 1.5; }
.alignment-info img { display: block; width: 100%; border-radius: 12px; box-shadow: 0 2px 8px #0000001a; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 390px) { .sheet { padding: 18px; } h1 { font-size: 24px; } .brand { padding: 14px; } .brand .game-home { font-size: 28px; } .comparison { grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr); } }
@media (prefers-reduced-motion: no-preference) { button { transition: background .15s; } }

.game-notification { margin-top: .35rem; font-size: .9rem; }
.notification-link { display: inline; width: auto; min-height: 44px; margin: 0; padding: .5rem .2rem; border: 0; background: transparent; color: inherit; font: inherit; text-decoration: underline; box-shadow: none; }
.notification-dialog .channel { border-top: 1px solid var(--line); padding: 16px 0; }
.notification-dialog .channel h3 { font-size: 17px; margin: 0; }
.notification-dialog .channel p { margin: 6px 0; }
.notification-dialog .email-address { overflow-wrap: anywhere; font-size: 14px; }
.notification-dialog .form-error:empty { display: none; }
.notification-dialog .form-error { color: #254a67; border-left: 3px solid var(--ink); padding-left: 10px; }
.notification-dialog .code-input { letter-spacing: 6px; font-size: 22px; text-align: center; }
.notification-dialog .code-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.notification-dialog .code-actions button { font-size: 14px; }
.notification-dialog .channel .notification-link { margin-right: 12px; }

/* Requesting the next host, shared results and home notices. */
.request-placement { margin: 20px 0 6px; text-align: center; }
.request-placement .text-link { font-weight: 650; padding: 10px 8px; }
.request-placement + h2 { margin-top: 14px; }
.next-game .requested-by { font-size: 15px; margin: 0 0 14px; }
.home-request { display: flex; align-items: start; gap: 10px; margin: 22px 0 8px; padding: 14px; background: #faf4e9; border-radius: 12px; }
.home-request p { margin: 0; font-size: 15px; }
.request-list { list-style: none; margin: 16px 0 8px; padding: 0; }
.request-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; align-items: center; border-top: 1px solid var(--line); padding: 8px 0; }
.request-row:last-child { border-bottom: 1px solid var(--line); }
.request-row strong { font-size: 16px; overflow-wrap: anywhere; }
.request-row > button { font-size: 13px; padding: 9px 10px; min-height: 44px; }
.request-row > button[aria-pressed="true"] { color: #256444; border-color: #b8d6c2; background: #edf6ef; }
.request-row .nudge-link { grid-column: 2; justify-self: end; margin-top: -8px; font-size: 12px; padding: 8px 0; min-height: 36px; }
.request-dialog { padding: 22px; }
.request-dialog h2 { font-size: 22px; margin-bottom: 8px; }
.request-dialog .intro { font-size: 14px; margin: 0 0 8px; }
.request-dialog .hint { font-size: 12px; margin: 8px 0; }
.request-dialog form > button { margin-top: 8px; }
.request-message { white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); line-height: 1.55; font-size: 15px; }

.request-dialog .primary { width: 100%; margin-top: 12px; }
.request-dialog { max-height: 85vh; overflow-y: auto; }
.home-request .requested-by { margin: 0; }
@media (max-width: 390px) {
  .request-dialog { padding: 18px; }
  .request-row { gap: 6px 10px; padding: 6px 0; }
}

/* One conversation about the host's order, independent of score cards. */
.while-waiting { margin-top: 26px; }
.while-waiting h2 { font-size: 1.15rem; }
.waiting-ranking .answer { margin-bottom: 4px; min-width: 0; flex: 1; }
.waiting-ranking > .text-link { margin-top: 0; }
.waiting-discussion .saved-explanation { background: #fff8ed; padding: 12px; border-radius: 10px; }
.discussion-card { margin: 24px 0; padding: 16px; border: 1px solid #e7dccf; border-radius: 14px; background: #fffaf2; }
.discussion-card h2 { font-size: 1.25rem; margin: 0 0 4px; }
.discussion-card > .answer { margin: 4px 0 8px; }
.discussion-message { padding: 8px 0; border-bottom: 1px solid #e7dccf; }
.discussion-deleted { margin: 0; padding: 8px 0; border-bottom: 1px solid #e7dccf; color: var(--muted); font-size: .85rem; }
.discussion-heading { display: flex; align-items: center; gap: 4px; }
.discussion-byline { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.discussion-byline strong { min-width: 0; overflow-wrap: anywhere; }
.discussion-explanation .discussion-byline { flex-direction: column; align-items: flex-start; }
.discussion-byline small { color: #657078; font-size: .75rem; }
.discussion-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 6px 0; }
.discussion-actions { position: relative; flex: 0 0 44px; align-self: flex-start; }
.discussion-actions > summary { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border-radius: 8px; color: var(--muted); font-size: 24px; list-style: none; }
.discussion-actions > summary::-webkit-details-marker { display: none; }
.discussion-actions > summary:hover, .discussion-actions[open] > summary { background: #f2e8de; }
.discussion-controls { position: absolute; top: 44px; right: 0; z-index: 2; min-width: 112px; padding: 4px; background: white; border: 1px solid #e7dccf; border-radius: 10px; box-shadow: 0 3px 12px var(--ink)20; }
.discussion-controls button { display: block; width: 100%; margin: 0; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 6px; text-align: left; font-weight: 400; background: transparent; }
.discussion-controls button:hover { background: #fff4ec; }
.discussion-controls [data-delete] { color: var(--ink); }
.discussion-comments { margin-top: 10px; }
.discussion-comments > summary { cursor: pointer; padding: 8px 0; font-weight: 600; }
.discussion-dialog { width: min(460px, calc(100vw - 28px)); max-height: calc(100dvh - 32px); overflow-y: auto; border: 0; border-radius: 16px; padding: 20px; color: #17334c; }
.discussion-dialog::backdrop { background: #0008; }
.discussion-dialog textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 10px; border: 1px solid #8e9ba6; border-radius: 8px; resize: vertical; margin-top: 6px; }
.discussion-dialog-actions { display: flex; gap: 10px; }
.discussion-dialog-actions button { flex: 1; width: 0; min-height: 44px; }
.discussion-error { color: #a52424; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (min-width: 400px) { .waiting-ranking { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; } .waiting-ranking > .text-link { width: auto; } }

.initial-loading { opacity: 0; animation: show-initial-loading 0s 1s forwards; }
@keyframes show-initial-loading { to { opacity: 1; } }

.account-notice { position: fixed; top: max(12px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 10000; width: max-content; max-width: calc(100vw - 24px); box-sizing: border-box; margin: 0; padding: 12px 18px; border-radius: 12px; background: #17334c; color: white; box-shadow: 0 4px 18px #0003; font: 16px/1.4 system-ui, sans-serif; text-align: center; }
.account-notice button { display: block; margin: 8px auto 0; padding: 8px 16px; border: 0; border-radius: 8px; background: white; color: #17334c; font: inherit; cursor: pointer; }

.brand .game-home { font-size: 30px; }
.brand .parent-site { color: var(--ink); }
.hamburger-menu .menu-toggle { border-radius: 12px; background: #ffffffcc; }
.menu-toggle span { background: var(--ink); }
a { color: var(--ink); text-underline-offset: 4px; }
.home-illustration { display: block; width: 190px; height: 95px; max-width: 100%; object-fit: contain; margin: 0 auto 9px; }
.home-sheet .steps { margin: 18px 0; }
.home-sheet .steps li { gap: 11px; margin: 15px 0; font-size: 15px; line-height: 1.45; }
.home-sheet .steps span { flex-basis: 28px; line-height: 28px; font-size: 14px; }
.home-sheet .primary { min-height: 48px; }
@media (max-width: 400px) { .sheet { padding: 20px 18px; } h1 { font-size: 24px; } }
