@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@600;700&display=swap");

:root {
  --ink: #111427;
  --ink-soft: #36394c;
  --paper: #f5f5ef;
  --panel: #ffffff;
  --line: #d8d9d2;
  --acid: #dfff4f;
  --coral: #ff725e;
  --cyan: #57dbea;
  --violet: #8476ef;
  --yellow: #ffc94c;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(17, 20, 39, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.5 "DM Sans", sans-serif; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
h1, h2, p { margin-top: 0; }
h1, h2, legend, .wordmark { font-family: "Space Grotesk", sans-serif; }
h1 { font-size: clamp(2.5rem, 6vw, 5.5rem); line-height: .98; letter-spacing: -.055em; }
h2 { letter-spacing: -.035em; }
.hidden { display: none !important; }
.muted, .field-note { color: #6e706f; }
.eyebrow { margin-bottom: .7rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; }

.topbar { min-height: 76px; padding: 0 clamp(1rem, 4vw, 4rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); background: rgba(245,245,239,.9); position: relative; z-index: 10; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); border: 0; background: none; text-decoration: none; font-size: 1.05rem; font-weight: 700; letter-spacing: -.03em; cursor: pointer; }
.wordmark small { padding-left: .55rem; border-left: 1px solid var(--line); font: 500 .68rem/1 "DM Sans", sans-serif; letter-spacing: .02em; color: #77796f; }
.brand-dot { width: 17px; aspect-ratio: 1; border-radius: 50%; background: var(--acid); box-shadow: inset 0 0 0 5px var(--ink); }
.account-actions { display: flex; align-items: center; gap: .7rem; }
.public-nav { display: flex; align-items: center; gap: .8rem; }
.site-home-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--ink-soft); text-decoration: none; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.site-home-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.site-home-link:hover { color: var(--ink); }
.account-name { max-width: 26vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); font-size: .85rem; }
.quiet-button, .back-button { border: 0; background: none; color: var(--ink); font-weight: 700; cursor: pointer; }
.quiet-button { border-bottom: 2px solid var(--ink); padding: .45rem .1rem; }
.back-button { padding: .7rem 0; }

.home-view { max-width: 1380px; margin: 0 auto; padding: clamp(3.5rem, 8vw, 7rem) clamp(1rem, 4vw, 4rem) 5rem; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); gap: clamp(2rem, 7vw, 8rem); align-items: center; }
.home-copy p:not(.eyebrow) { max-width: 570px; color: var(--ink-soft); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.home-copy h1 em { color: var(--violet); font-style: normal; }
.primary-button, .secondary-button { min-height: 50px; padding: .8rem 1.25rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 1rem; border: 2px solid var(--ink); font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; }
.primary-button { background: var(--acid); color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.secondary-button { background: var(--panel); color: var(--ink); }
.primary-button:hover:not(:disabled), .secondary-button:hover:not(:disabled) { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--ink); }
.primary-button:disabled { opacity: .56; cursor: not-allowed; box-shadow: none; }
.home-copy .primary-button { margin-top: 1.4rem; }

.home-mask { aspect-ratio: 1; position: relative; overflow: hidden; border: 3px solid var(--ink); border-radius: 30px; background: var(--ink); box-shadow: 18px 18px 0 var(--acid); transform: rotate(2deg); }
.demo-tile { position: absolute; display: grid; place-items: center; color: rgba(17,20,39,.58); font: 700 1.3rem "Space Grotesk"; border: 1.5px solid var(--ink); }
.tile-one { inset: 0 0 60% 0; background: var(--cyan); }
.tile-two { inset: 40% 0 30% 67%; background: var(--coral); }
.tile-three { inset: 70% 0 0 50%; background: var(--yellow); }
.tile-four { inset: 70% 50% 0 0; background: var(--violet); }
.tile-five { inset: 40% 67% 30% 0; background: var(--acid); }
.tile-six { inset: 0 67% 60% 0; background: #fff; }
.demo-centre { position: absolute; inset: 30% 33%; display: grid; place-items: center; background: var(--ink); color: var(--acid); font: 700 clamp(4rem, 10vw, 9rem) "Space Grotesk"; clip-path: polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%); }

.games-panel { grid-column: 1/-1; padding-top: 4rem; border-top: 1px solid var(--line); }
.games-panel h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.games-list { margin-top: 1.5rem; display: grid; gap: .75rem; }
.game-list-item { width: 100%; padding: 1rem 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--ink); }
.game-list-item:hover { border-color: var(--ink); }
.game-list-item > div:first-child { display: grid; gap: .2rem; }
.game-list-item small { color: #74766f; }
.game-actions { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; justify-content: flex-end; }
.compact-button { min-height: 40px; padding: .5rem .85rem; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.host-board-panel { padding-top: 2.5rem; }
.host-leaderboard, .manage-board { margin-top: 1.5rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }

.auth-view, .publish-view, .manage-view { min-height: calc(100vh - 150px); padding: 2rem clamp(1rem, 4vw, 4rem) 5rem; }
.auth-card, .publish-card, .loading-card { max-width: 610px; margin: clamp(2rem, 7vw, 6rem) auto; padding: clamp(1.5rem, 5vw, 3.5rem); border: 2px solid var(--ink); border-radius: 24px; background: var(--panel); box-shadow: 12px 12px 0 var(--violet); }
.auth-card h1, .publish-card h1, .loading-card h1 { font-size: clamp(2.2rem, 7vw, 4.4rem); }
label { display: grid; gap: .45rem; margin-top: 1rem; color: var(--ink-soft); font-weight: 700; }
label small { font-weight: 500; color: #77796f; }
input, select { width: 100%; min-height: 48px; padding: .7rem .8rem; border: 1.5px solid #bfc1bc; border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus { border-color: var(--ink); }
.button-row { margin-top: 1.5rem; display: flex; gap: .9rem; flex-wrap: wrap; }
.form-message { min-height: 1.5rem; margin: 1rem 0 0; color: var(--ink-soft); }
.form-message.error { color: #ae291a; }
.form-message.success { color: #147044; }

.editor-view { max-width: 1460px; margin: 0 auto; padding: 1.2rem clamp(1rem, 4vw, 4rem) 5rem; overflow-x: clip; }
.editor-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.save-state, .stage-pill, .play-label { padding: .38rem .65rem; border-radius: 999px; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .05em; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.editor-layout > * , .creator-form { min-width: 0; }
.editor-intro { padding: 2rem 0; }
.editor-intro h1 { margin-bottom: 1rem; font-size: clamp(2.8rem, 6vw, 5rem); }
.editor-intro > p:last-child { color: var(--ink-soft); font-size: 1.1rem; }
fieldset { margin: 0 0 1.5rem; padding: clamp(1rem, 3vw, 1.7rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
legend { padding: 0 .6rem; font-size: 1.25rem; font-weight: 700; }
legend span { margin-right: .4rem; color: var(--violet); }
.upload-zone { padding: 1.25rem; place-items: center; text-align: center; border: 2px dashed #a9aaa2; border-radius: 14px; background: #fafaf6; cursor: pointer; }
.upload-zone input { max-width: 300px; min-height: 0; padding: .3rem; border: 0; background: transparent; font-size: .85rem; }
.upload-zone span { font-size: .85rem; font-weight: 500; color: #77796f; }
.crop-controls { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.mobile-image-workspace { display: none; }
input[type="range"] { padding: 0; accent-color: var(--violet); }
.field-note { margin: 1rem 0 0; font-size: .88rem; }
.clue-fields { display: grid; gap: .9rem; }
.clue-row { padding: 1rem; display: grid; grid-template-columns: 40px 1fr; gap: .7rem; border-radius: 13px; background: #f5f5ef; }
.clue-number { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--acid); font: 700 .85rem "Space Grotesk"; }
.clue-row label:first-child { margin-top: 0; }
.custom-prompt { margin-top: .65rem; }
.sticky-actions { position: sticky; bottom: 1rem; padding: 1rem; display: flex; justify-content: flex-end; gap: .8rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.93); backdrop-filter: blur(12px); box-shadow: var(--shadow); }

.preview-panel { position: sticky; top: 1.5rem; padding: clamp(1rem, 3vw, 1.6rem); border-radius: 24px; background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.preview-heading { display: flex; justify-content: space-between; align-items: start; gap: 1rem; }
.preview-heading h2 { margin: 0 0 1.2rem; font-size: 1.7rem; }
.preview-heading .eyebrow { color: var(--acid); }
.stage-pill { background: var(--acid); color: var(--ink); white-space: nowrap; }
.image-stage { aspect-ratio: 1; position: relative; overflow: hidden; border-radius: 17px; background-color: #d9dad4; }
.image-layer { position: absolute; inset: 0; background-repeat: no-repeat; background-size: cover; transition: transform .18s, background-position .18s; }
.image-placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #8b8d87; font: 700 clamp(2.5rem, 8vw, 5rem)/.9 "Space Grotesk"; }
.reveal-mask { position: absolute; inset: 0; width: 100%; height: 100%; }
.reveal-piece { stroke: var(--ink); stroke-width: .65; vector-effect: non-scaling-stroke; transition: opacity .34s ease, transform .34s cubic-bezier(.2,.8,.2,1); transform-box: fill-box; transform-origin: center; }
.creator-positioning-mask { pointer-events: none; }
.creator-positioning-mask .reveal-piece { fill-opacity: .22; stroke-width: 1.1; }
.creator-positioning-mask .piece-7 { fill-opacity: .08; stroke: #111427; stroke-width: 1.7; }
.creator-positioning-mask .centre-number { fill: #111427; stroke: #fff; stroke-width: .3; paint-order: stroke; }
.piece-1 { fill: var(--cyan); }.piece-2 { fill: var(--coral); }.piece-3 { fill: var(--yellow); }.piece-4 { fill: var(--violet); }.piece-5 { fill: var(--acid); }.piece-6 { fill: #f8f8f1; }.piece-7 { fill: var(--ink); }
.centre-number { fill: var(--acid); font: 700 10px "Space Grotesk", sans-serif; pointer-events: none; transition: opacity .2s; }
.centre-number.is-open { opacity: 0; }
.reveal-piece.is-open { opacity: 0; }
.piece-1.is-open { transform: translateY(-18%) rotate(-2deg); }
.piece-2.is-open { transform: translateX(18%) rotate(2deg); }
.piece-3.is-open { transform: translate(14%,14%) rotate(2deg); }
.piece-4.is-open { transform: translateY(18%) rotate(-2deg); }
.piece-5.is-open { transform: translateX(-18%) rotate(-2deg); }
.piece-6.is-open { transform: translate(-14%,-8%) rotate(2deg); }
.piece-7.is-open { transform: scale(.72) rotate(3deg); }
.preview-clue { padding: 1.25rem .2rem .2rem; display: grid; gap: .35rem; }
.preview-clue span, .stage-line { color: var(--acid); font-size: .75rem; font-weight: 700; letter-spacing: .1em; }
.preview-clue strong { font-size: 1.15rem; }
.preview-clue p { margin: 0; color: #c9cbd2; }

.success-mark { width: 64px; height: 64px; margin-bottom: 2rem; display: grid; place-items: center; border-radius: 50%; background: var(--acid); border: 2px solid var(--ink); font-size: 2rem; font-weight: 700; }
.link-box { display: flex; margin-top: 1.5rem; }
.link-box input { border-radius: 10px 0 0 10px; background: #f4f4ef; }
.link-box button { padding: 0 1rem; border: 0; border-radius: 0 10px 10px 0; background: var(--ink); color: #fff; font-weight: 700; cursor: pointer; }

.manage-view { max-width: 1280px; margin: 0 auto; }
.manage-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(330px, .7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.manage-layout h1 { margin-bottom: 1rem; font-size: clamp(2.6rem, 6vw, 5rem); }
.reveal-card { padding: clamp(1.2rem, 4vw, 2rem); border-radius: 22px; background: var(--ink); color: #fff; box-shadow: 10px 10px 0 var(--violet); }
.reveal-card h2 { font-size: 2rem; }
.reveal-card > p:not(.eyebrow) { color: #c9cbd2; }
.reveal-card .image-stage { margin: 1.3rem 0; border: 2px solid #fff; }
.reveal-answer { margin-bottom: 1.2rem; display: block; color: var(--acid); font: 700 clamp(2rem, 5vw, 3.6rem)/1 "Space Grotesk", sans-serif; overflow-wrap: anywhere; }
.reveal-card .primary-button { width: 100%; }
.reveal-card .form-message { color: #fff; }
.share-wide { width: 100%; margin-top: .8rem; }
.share-challenge { width: 100%; margin-top: 1rem; }

.public-reveal-card { max-width: 950px; margin: 0 auto; display: grid; grid-template-columns: minmax(250px,.7fr) minmax(320px,1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.public-reveal-card h1 { margin-bottom: 1rem; }
.reveal-hero-image { grid-row: span 2; border: 3px solid var(--ink); box-shadow: 12px 12px 0 var(--acid); }
.public-answer { padding: 1.2rem; border-radius: 16px; background: var(--ink); color: #fff; }
.public-answer span { display: block; color: var(--acid); font-size: .72rem; font-weight: 700; letter-spacing: .12em; }
.public-answer strong { display: block; margin-top: .4rem; font: 700 clamp(2rem, 6vw, 4.5rem)/1 "Space Grotesk", sans-serif; overflow-wrap: anywhere; }

.public-game { min-height: calc(100vh - 150px); padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 4rem); }
.play-shell { max-width: 1150px; margin: 0 auto; }
.daily-context { margin-bottom: 1rem; color: var(--violet); }
.active-game-title { margin-bottom: 1rem; }
.active-game-title h1 { margin: 0 0 .45rem; font-size: clamp(2rem, 4vw, 3.4rem); overflow-wrap: anywhere; }
.play-helper { margin: 0; color: #74766f; font-size: .82rem; font-weight: 700; letter-spacing: .02em; }
.play-layout { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(300px, .78fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.public-stage { border: 3px solid var(--ink); box-shadow: 12px 12px 0 var(--acid); }
.stage-progress { margin: 1.4rem 0 0; display: grid; grid-template-columns: repeat(7,1fr); gap: .45rem; }
.stage-progress span { min-width: 0; height: 30px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--panel); font: 700 .73rem "Space Grotesk", sans-serif; transition: background .2s, color .2s, transform .2s; }
.stage-progress span.active { background: var(--violet); color: #fff; transform: translateY(-2px); }
.stage-progress .centre-progress { background: var(--ink); color: var(--acid); }
.stage-progress .centre-progress.active { background: var(--acid); color: var(--ink); }
.play-card { padding: clamp(1.3rem, 4vw, 2.4rem); border: 2px solid var(--ink); border-radius: 20px; background: var(--panel); box-shadow: 8px 8px 0 rgba(132,118,239,.32); }
.stage-line { display: flex; justify-content: space-between; color: var(--violet); }
.play-card h2 { margin-top: 1.4rem; font-size: clamp(1.7rem, 4vw, 2.7rem); }
.play-card > p { font-size: 1.15rem; }
.play-card .primary-button { width: 100%; margin-top: 1.5rem; }
.play-card small { margin-top: 1rem; display: block; color: #77796f; }
.stage-kicker { margin: 0 0 .5rem; color: var(--violet); font-size: .76rem; font-weight: 700; letter-spacing: .12em; }
.start-panel > p:not(.stage-kicker) { color: var(--ink-soft); }
.clue-reveal { min-height: 145px; padding: .15rem 0 1rem; border-bottom: 1px solid var(--line); }
.clue-reveal h2 { margin-bottom: .8rem; }
.clue-reveal p { margin: 0; font-size: 1.18rem; color: var(--ink-soft); }
.letters-block { margin-top: 1rem; padding: .85rem 1rem; border-radius: 12px; background: var(--ink); color: #fff; }
.letters-block > span { display: block; margin-bottom: .45rem; color: #b9bbc6; font-size: .68rem; font-weight: 700; letter-spacing: .1em; }
.letters-block div { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; }
.letters-block b { min-width: 28px; color: var(--acid); font: 700 1.2rem "Space Grotesk", sans-serif; text-align: center; }
.letters-block i { color: #777b8d; font-style: normal; }
#guessForm { display: grid; grid-template-columns: 1fr auto; gap: .7rem; align-items: end; }
#guessForm label { min-width: 0; }
#guessForm .primary-button { width: auto; min-width: 145px; box-shadow: 4px 4px 0 var(--ink); }
.play-message { min-height: 1.5rem; margin: .75rem 0 0; color: var(--ink-soft); font-weight: 600; }
.play-message.incorrect { color: #b33525; }
.next-button { width: 100%; margin-top: .8rem; padding: .7rem 0; display: flex; justify-content: space-between; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); font-weight: 700; cursor: pointer; }
.previous-clues { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.previous-clues .stage-kicker { margin-bottom: .65rem; }
.previous-clues ol { margin: 0; padding: 0; display: grid; gap: .45rem; list-style: none; }
.previous-clues li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: .55rem; align-items: start; padding: .6rem .7rem; border-radius: 10px; background: var(--paper); }
.previous-clues li > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--acid); font: 700 .7rem "Space Grotesk", sans-serif; }
.previous-clues strong { display: block; font-size: .86rem; line-height: 1.3; }
.previous-clues p { margin: .15rem 0 0; color: var(--ink-soft); font-size: .83rem; line-height: 1.35; overflow-wrap: anywhere; }
.result-panel { text-align: center; }
.result-mark { width: 62px; height: 62px; margin: 0 auto 1rem; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--acid); box-shadow: 4px 4px 0 var(--ink); font: 700 1.9rem "Space Grotesk", sans-serif; }
.result-panel h2 { margin: .5rem 0 1rem; font-size: clamp(2.2rem, 6vw, 4rem); overflow-wrap: anywhere; }
.score-display { display: inline-flex; align-items: end; gap: .45rem; padding: .55rem 1rem; border-radius: 14px; background: var(--ink); color: #fff; }
.score-display strong { color: var(--acid); font: 700 2.3rem/.9 "Space Grotesk", sans-serif; }
.score-display span { font-size: .85rem; }
.leaderboard-region { margin-top: 1.7rem; padding-top: 1.4rem; border-top: 1px solid var(--line); text-align: left; }
.leaderboard-region > .loader { margin-bottom: .7rem; }
.loader.small { width: 28px; height: 28px; border-width: 3px; }
.leaderboard-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.leaderboard-heading h3 { margin: 0; font: 700 1.45rem "Space Grotesk", sans-serif; }
.leaderboard-heading > span { padding: .3rem .5rem; border-radius: 999px; background: var(--paper); color: #72746e; font-size: .7rem; font-weight: 700; }
.leaderboard-list { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: .4rem; }
.leaderboard-list li { padding: .65rem .75rem; display: grid; grid-template-columns: 32px 1fr auto; gap: .55rem; align-items: center; border-radius: 10px; background: var(--paper); }
.leaderboard-list li.current { background: var(--acid); box-shadow: inset 0 0 0 1.5px var(--ink); }
.leaderboard-list .rank { font: 700 .85rem "Space Grotesk", sans-serif; }
.loading-card { text-align: center; }
.loader { width: 40px; height: 40px; margin: 0 auto 1.5rem; display: block; border: 4px solid var(--line); border-top-color: var(--violet); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

footer { min-height: 74px; padding: 1rem clamp(1rem, 4vw, 4rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); color: #74766f; font-size: .8rem; }
.toast { position: fixed; left: 50%; bottom: 1.25rem; z-index: 30; max-width: calc(100vw - 2rem); padding: .8rem 1rem; border-radius: 10px; background: var(--ink); color: #fff; transform: translate(-50%, 150%); transition: transform .25s; box-shadow: var(--shadow); }
.toast.show { transform: translate(-50%,0); }

@media (max-width: 850px) {
  .home-view, .editor-layout, .play-layout, .manage-layout, .public-reveal-card { grid-template-columns: 1fr; }
  .home-mask { max-width: 540px; width: 88%; margin: 1rem auto; }
  .preview-panel { display: none; }
  .creator-form { grid-row: 1; }
  .mobile-image-workspace { display: grid; gap: .75rem; margin-top: 1.25rem; }
  .mobile-image-workspace .eyebrow { margin: 0; color: var(--violet); }
  .mobile-image-workspace .image-stage { width: min(100%, 620px); margin: 0 auto; border: 2px solid var(--ink); border-radius: 16px; }
  .mobile-image-workspace .field-note { margin: 0; }
  .desktop-positioning-note { display: none; }
  .reveal-hero-image { grid-row: auto; }
}
@media (max-width: 560px) {
  .topbar { min-height: 64px; }
  .wordmark small, .account-name { display: none; }
  .site-home-link span { display: none; }
  .home-view { padding-top: 2.5rem; }
  .home-copy h1 { font-size: 3.2rem; }
  .editor-view { padding: .75rem 1rem 3rem; }
  .editor-topline { margin-bottom: .35rem; }
  .editor-intro { padding: 1.15rem 0 1rem; }
  .editor-intro h1 { margin-bottom: .55rem; font-size: clamp(2.5rem, 13vw, 3.2rem); }
  .editor-intro > p:last-child { margin-bottom: 0; font-size: 1rem; }
  .creator-form fieldset { margin-bottom: 1rem; padding: 1rem; }
  .crop-controls { grid-template-columns: 1fr; gap: .35rem; }
  .crop-controls label { margin-top: .35rem; }
  .clue-row { padding: .85rem; grid-template-columns: 32px minmax(0, 1fr); gap: .6rem; }
  .clue-number { width: 32px; height: 32px; }
  .sticky-actions { position: static; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; flex-direction: column; }
  .sticky-actions, .button-row { flex-direction: column; }
  .sticky-actions button, .button-row > * { width: 100%; }
  .auth-card, .publish-card { padding: 1.4rem; box-shadow: 7px 7px 0 var(--violet); }
  .public-game { padding-top: 1.5rem; }
  .daily-context { margin-bottom: .8rem; }
  .active-game-title { margin-bottom: .8rem; }
  .active-game-title h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .play-layout { gap: 1rem; }
  .public-stage { box-shadow: 7px 7px 0 var(--acid); }
  .stage-progress { margin-top: 1rem; gap: .3rem; }
  .stage-progress span { height: 26px; font-size: .68rem; }
  .play-card { padding: 1rem; box-shadow: 6px 6px 0 rgba(132,118,239,.3); }
  #guessForm { grid-template-columns: 1fr; }
  #guessForm .primary-button { width: 100%; margin-top: .2rem; }
  .stage-line { font-size: .72rem; }
  .clue-reveal { min-height: 0; padding: 0 0 .85rem; }
  .clue-reveal h2 { margin: .9rem 0 .45rem; font-size: clamp(1.5rem, 8vw, 2rem); }
  .clue-reveal p { font-size: 1.02rem; }
  .letters-block { margin-top: .8rem; padding: .75rem .85rem; }
  #guessForm { gap: .4rem; }
  .next-button { margin-top: .55rem; }
  .previous-clues { margin-top: .75rem; padding-top: .75rem; }
  .previous-clues li { padding: .5rem .6rem; }
  footer { align-items: flex-start; flex-direction: column; }
  .game-list-item { align-items: flex-start; flex-direction: column; }
  .game-actions { width: 100%; justify-content: flex-start; }
  .game-actions .compact-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
