:root {
  color-scheme: light;
  --paper: #f4f0e8;
  --ink: #151b24;
  --muted: #656d70;
  --line: #dcd6c9;
  --gold: #e8cc71;
  --orange: #d76b4e;
  --white: #fffdf8;
  font-family: Arial, Helvetica, sans-serif;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
.wrap { width: min(1260px, calc(100% - 72px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 92px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; font-weight: 900; font-size: 22px; letter-spacing: -.065em; }
.brand-accent { color: var(--orange); }
.brand-mark { width: 32px; height: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; transform: rotate(-7deg); }
.brand-mark i { background: var(--ink); border-radius: 2px; }
.brand-mark i:nth-child(5) { background: var(--orange); }
.top-nav { display: flex; align-items: center; gap: 34px; font-size: 13px; font-weight: 700; }
.top-nav > a { text-decoration: none; transition: color .2s; }
.top-nav > a:hover { color: var(--orange); }
.language-switch { border: 1px solid var(--line); border-radius: 50px; padding: 4px; display: flex; gap: 2px; background: #eee9df; }
.language-switch a { min-width: 35px; text-align: center; text-decoration: none; padding: 7px 9px; border-radius: 50px; font-size: 11px; }
.language-switch a[aria-current="page"] { background: var(--ink); color: white; }

.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 6vw, 88px); padding-block: 83px 104px; align-items: center; }
.eyebrow { display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.hero h1 { font-size: clamp(67px, 7.9vw, 117px); line-height: .95; letter-spacing: -.095em; margin: 27px 0 26px; font-weight: 900; }
h1 em, h2 em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.085em; }
.hero h1 em { color: var(--orange); }
.hero-description { max-width: 475px; color: #4e5759; font-size: clamp(18px, 1.65vw, 22px); line-height: 1.55; margin: 0 0 31px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; border: 1px solid transparent; text-decoration: none; font-weight: 800; font-size: 14px; border-radius: 10px; padding: 17px 21px; min-height: 53px; transition: transform .18s, background .18s, box-shadow .18s; }
.button:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(21,27,36,.12); }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button-primary { background: var(--ink); color: white; }
.button-primary:not(:disabled):hover { background: #293449; }
.button-outline { color: var(--ink); background: transparent; border-color: #c9c1b3; }
.hero-cta { min-width: 214px; }
.hero-note { color: #7d817e; font-size: 12px; margin-top: 17px; }
.hero-art { width: min(100%, 495px); justify-self: end; background: #151b24; color: #f8f3e7; padding: 27px; border-radius: 15px; box-shadow: 18px 19px 0 #e2d9cb, 0 25px 65px rgba(25,29,35,.15); transform: rotate(3deg); }
.hero-art-top, .hero-art-bottom, .poster-topline, .poster-bottomline { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.hero-art-top { margin-bottom: 17px; }
.hero-art-bottom { margin-top: 16px; color: var(--gold); }
.hero-art-bottom span:first-child { font-size: 23px; }
.hero-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; aspect-ratio: 1; }
.art-tile { display: flex; align-items: end; padding: 13px; font-size: clamp(9px, 1vw, 12px); line-height: 1.1; font-weight: 900; letter-spacing: -.02em; overflow: hidden; border-radius: 5px; }
.art-1 { background: linear-gradient(140deg, #6f87ba, #27345d); }.art-2 { background: linear-gradient(140deg, #e1b66e, #87583c); }.art-3 { background: linear-gradient(140deg, #77987f, #2a514d); }.art-4 { background: linear-gradient(140deg, #e69379, #844a5c); }.art-5 { background: linear-gradient(140deg, #c4a0ca, #4c4375); }.art-6 { background: linear-gradient(140deg, #83bbba, #315575); }.art-7 { background: linear-gradient(140deg, #d39180, #75433c); }.art-8 { background: linear-gradient(140deg, #aebd77, #516944); }.art-9 { background: linear-gradient(140deg, #cfa7c4, #675078); }

.workspace-section { background: #ebe5da; padding: 81px 0 110px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 36px; margin-bottom: 35px; }
.section-heading .eyebrow { color: var(--orange); margin: 0 0 14px; }
.section-heading h2 { margin: 0; font-size: clamp(36px, 4vw, 60px); line-height: 1.05; letter-spacing: -.075em; }
.section-heading > p { max-width: 320px; color: var(--muted); line-height: 1.5; font-size: 14px; margin: 0 0 5px; }
.workspace { display: grid; grid-template-columns: .94fr 1.06fr; gap: 21px; align-items: start; }
.editor-panel, .preview-panel { border: 1px solid #ddd6ca; background: var(--white); border-radius: 17px; box-shadow: 0 7px 23px rgba(51,46,38,.035); }
.editor-panel { padding: 26px; }
.preview-panel { padding: 26px; }
.panel-heading, .preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.panel-kicker { display: block; color: #a0684f; font-size: 10px; letter-spacing: .18em; font-weight: 900; margin-bottom: 7px; }
.panel-heading h3, .preview-heading h3 { margin: 0; font-size: 25px; letter-spacing: -.055em; }
.progress-pill { padding: 10px 14px; border: 1px solid var(--line); border-radius: 100px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.editor-actions { display: flex; gap: 8px; margin-bottom: 15px; }
.subtle-button { display: inline-flex; align-items: center; justify-content: center; padding: 10px 12px; background: #f3efe7; color: #3c4142; border: 1px solid #e1d9cd; border-radius: 7px; font-size: 11px; font-weight: 800; transition: background .18s; }
.subtle-button:hover { background: #e9dfd0; }
.upload-all { cursor: pointer; }
.field-list { display: grid; gap: 8px; }
.game-field { display: flex; align-items: center; gap: 12px; border: 1px solid #e4ded4; border-radius: 9px; padding: 8px 8px 8px 14px; background: #fbfaf7; min-height: 54px; transition: border-color .18s, background .18s; }
.game-field:focus-within { border-color: #b98664; background: #fff; }
.game-field.has-game { border-color: #d3c6b0; }
.field-number { font-size: 10px; letter-spacing: .09em; color: #9a9b94; font-weight: 800; }
.game-field input[type="text"] { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-weight: 700; color: var(--ink); font-size: 14px; }
.game-field input::placeholder { color: #b3b3ab; font-weight: 500; }
.cover-upload { display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; flex: 0 0 35px; border: 1px solid #e0d8ca; border-radius: 7px; color: #725b45; background: #f3efe8; font-size: 18px; cursor: pointer; }
.cover-upload:hover { background: #e9ddca; }
.editor-footnote { color: #888983; font-size: 11px; line-height: 1.5; margin: 17px 1px 0; }
.preview-badge { display: flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: .12em; font-weight: 900; color: #54644e; background: #ebf2e8; border-radius: 50px; padding: 9px 11px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #62a35b; box-shadow: 0 0 0 3px rgba(98,163,91,.15); }
.poster-shell { background: #e8e1d4; border-radius: 10px; padding: 13px; }
.poster-preview { background: var(--ink); color: #f7f3e8; padding: 18px; border-radius: 6px; }
.poster-topline { min-height: 19px; font-size: clamp(8px, .8vw, 10px); margin-bottom: 14px; }
.poster-topline span:last-child { color: var(--gold); }
.poster-bottomline { color: #c8bfad; font-size: clamp(6px, .64vw, 8px); margin-top: 14px; }
.poster-bottomline span:last-child { color: var(--gold); }
.grid-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; aspect-ratio: 1; }
.preview-tile { position: relative; min-width: 0; border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; align-items: start; justify-content: space-between; padding: clamp(10px, 1vw, 16px); background: linear-gradient(140deg, var(--tile-light), var(--tile-dark)); background-size: cover; background-position: center; color: white; }
.tile-numeral { opacity: .9; font-size: clamp(9px, .85vw, 12px); font-weight: 900; }
.tile-title { display: block; overflow-wrap: anywhere; font-size: clamp(10px, 1.1vw, 16px); font-weight: 900; line-height: 1.1; max-width: 100%; text-transform: uppercase; letter-spacing: -.025em; }
.preview-tile:not(.has-cover):before { content: ''; position: absolute; width: 90%; aspect-ratio: 1; left: 24%; top: -21%; border: 1px solid rgba(255,255,255,.21); border-radius: 50%; pointer-events: none; }
.preview-tile:not(.has-cover):after { content: ''; position: absolute; width: 45%; aspect-ratio: 1; left: -20%; bottom: 8%; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; pointer-events: none; }
.preview-actions { display: grid; grid-template-columns: 1.25fr .75fr; gap: 9px; margin-top: 18px; }
.preview-actions .button { width: 100%; font-size: 13px; padding-inline: 18px; }
.status-message { text-align: center; min-height: 17px; color: #7d807b; font-size: 11px; margin: 13px 0 0; }

.how-section { padding-block: 108px 116px; }
.how-section .section-heading { margin-bottom: 39px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps article { min-height: 235px; border: 1px solid var(--line); background: #f8f5ee; border-radius: 13px; padding: 27px; }
.steps article > span { display: inline-flex; width: 44px; height: 44px; justify-content: center; align-items: center; border-radius: 100px; background: #e7dece; color: #76533e; font-weight: 900; font-size: 12px; }
.steps h3 { margin: 31px 0 10px; font-size: 21px; letter-spacing: -.045em; }
.steps p { margin: 0; font-size: 13px; color: #69706c; line-height: 1.58; }
.closing-section { background: #d97755; color: #fff7e9; }
.closing-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding-block: 59px 65px; }
.closing-inner .eyebrow { margin: 0 0 12px; }
.closing-inner h2 { font-size: clamp(34px, 4vw, 59px); line-height: 1.04; letter-spacing: -.07em; margin: 0; }
.button-light { background: #fff7e9; color: var(--ink); white-space: nowrap; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 88px; color: #7a7d77; font-size: 11px; }
.site-footer a { text-decoration: none; color: var(--ink); font-weight: 800; }
.not-found { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 30px; }
.not-found h1 { font-size: clamp(44px, 7vw, 80px); letter-spacing: -.08em; margin: 16px 0; }
.not-found p { margin-bottom: 30px; }
.consent-banner { position: fixed; z-index: 20; bottom: 18px; left: 18px; right: 18px; max-width: 710px; margin-inline: auto; background: #fffdf8; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.19); display: flex; align-items: center; gap: 16px; padding: 14px 16px; }
.consent-banner[hidden] { display: none; }
.consent-banner p { flex: 1; margin: 0; font-size: 12px; line-height: 1.45; color: #3f4848; }
.consent-link { color: var(--ink); background: none; border: none; text-decoration: underline; font-weight: 800; }
.consent-accept { border: none; background: var(--ink); color: white; padding: 11px 15px; border-radius: 8px; font-size: 12px; font-weight: 800; }
:focus-visible { outline: 3px solid #d97755; outline-offset: 3px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 35px; }
  .hero h1 { font-size: clamp(62px, 8vw, 90px); }
  .workspace { grid-template-columns: 1fr; }
  .editor-panel, .preview-panel { max-width: 700px; width: 100%; margin-inline: auto; }
  .preview-tile { padding: clamp(13px, 2vw, 20px); }
  .tile-title { font-size: clamp(14px, 2vw, 23px); }
}
@media (max-width: 700px) {
  .wrap { width: min(100% - 36px, 520px); }
  .site-header { min-height: 72px; }
  .brand { font-size: 18px; gap: 9px; }
  .brand-mark { width: 26px; height: 26px; }
  .top-nav { gap: 8px; }
  .top-nav > a { display: none; }
  .hero { grid-template-columns: 1fr; padding-block: 61px 81px; gap: 55px; }
  .hero h1 { font-size: clamp(65px, 15vw, 96px); margin: 23px 0; }
  .hero-description { font-size: 18px; }
  .hero-art { justify-self: center; max-width: 420px; transform: rotate(2deg); box-shadow: 11px 13px 0 #e2d9cb, 0 23px 48px rgba(25,29,35,.13); padding: 20px; }
  .art-tile { font-size: clamp(8px, 2.2vw, 12px); padding: 10px; }
  .workspace-section { padding-block: 63px 77px; }
  .section-heading { display: block; margin-bottom: 26px; }
  .section-heading > p { margin-top: 16px; }
  .section-heading h2 { font-size: 42px; }
  .editor-panel, .preview-panel { padding: 17px; }
  .poster-shell { padding: 9px; }
  .poster-preview { padding: 12px; }
  .poster-topline { font-size: 7px; margin-bottom: 9px; }
  .poster-bottomline { margin-top: 9px; font-size: 6px; }
  .grid-preview { gap: 5px; }
  .preview-tile { padding: 9px; }
  .tile-title { font-size: clamp(9px, 3vw, 15px); }
  .tile-numeral { font-size: 9px; }
  .preview-actions { grid-template-columns: 1fr 1fr; }
  .preview-actions .button { min-height: 51px; gap: 8px; font-size: 11px; padding: 12px; }
  .how-section { padding-block: 73px 82px; }
  .steps { grid-template-columns: 1fr; gap: 10px; }
  .steps article { min-height: 0; padding: 22px; }
  .steps h3 { margin-top: 20px; }
  .closing-inner { display: block; padding-block: 52px 58px; }
  .closing-inner .button { margin-top: 27px; }
  .site-footer { flex-wrap: wrap; justify-content: flex-start; padding-block: 20px; gap: 7px 18px; }
  .site-footer span:nth-child(2) { display: none; }
  .consent-banner { align-items: stretch; flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *:before, *:after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Direct grid editor */
.workspace-direct { grid-template-columns: minmax(0, 1.22fr) minmax(340px, .78fr); align-items: start; }
.grid-workspace { min-width: 0; }
.slot-editor { position: sticky; top: 20px; }
.slot-editor .panel-heading { align-items: start; }
.slot-editor .panel-heading .subtle-button { white-space: nowrap; }
.edit-label { display: block; font-size: 12px; font-weight: 900; letter-spacing: .04em; margin: 23px 0 9px; }
.edit-input { width: 100%; min-height: 49px; border: 1px solid #d8d0c3; border-radius: 9px; background: #fbfaf7; color: var(--ink); padding: 12px 14px; font-size: 16px; font-weight: 700; outline: none; }
.edit-input:focus { border-color: #b98664; box-shadow: 0 0 0 3px rgba(185,134,100,.15); background: #fff; }
.edit-input::placeholder { color: #aaa79e; font-weight: 400; }
.input-hint { min-height: 18px; color: #82847e; font-size: 11px; line-height: 1.5; margin: 8px 2px 0; }
.cover-section { margin-top: 28px; padding-top: 21px; border-top: 1px solid var(--line); }
.cover-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.cover-heading strong { font-size: 13px; }
.cover-heading span { color: #8b8e88; font-size: 10px; }
.cover-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-height: 105px; }
.cover-empty { grid-column: 1 / -1; min-height: 105px; display: grid; place-items: center; text-align: center; margin: 0; padding: 15px; border: 1px dashed #d7cfc2; border-radius: 8px; color: #989a93; font-size: 11px; line-height: 1.5; }
.cover-choice { min-width: 0; padding: 5px; border: 1px solid #ded6ca; background: #f8f6f1; color: var(--ink); border-radius: 8px; text-align: left; cursor: pointer; transition: border-color .16s, transform .16s; }
.cover-choice:hover, .cover-choice:focus-visible { border-color: #bf7c5b; transform: translateY(-2px); }
.cover-choice img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; border-radius: 4px; background: #d8d0c3; }
.cover-choice span { display: block; margin: 6px 1px 2px; font-size: 10px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cover-choice small { display: block; margin: 0 1px 4px; color: #858880; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-editor .editor-actions { flex-wrap: wrap; margin: 21px 0 0; }
.slot-editor .editor-actions .subtle-button { font-size: 11px; min-height: 38px; }
.subtle-button:disabled { opacity: .42; cursor: not-allowed; }
.slot-editor .editor-footnote { margin: 15px 0; }
.slot-editor .editor-footnote a { color: #76533e; }
.text-button { border: 0; background: none; color: #956c57; padding: 7px 0; font-size: 11px; font-weight: 800; text-decoration: underline; }
.grid-workspace .grid-preview { gap: 9px; }
.grid-workspace .preview-tile { appearance: none; border: 0; width: 100%; text-align: left; cursor: pointer; font-family: inherit; transition: transform .15s, box-shadow .15s; }
.grid-workspace .preview-tile:hover { transform: translateY(-2px); }
.grid-workspace .preview-tile.selected { box-shadow: inset 0 0 0 3px #f4d67b; }
.tile-top { position: relative; z-index: 1; display: flex; width: 100%; align-items: flex-start; justify-content: space-between; gap: 6px; }
.tile-category { max-width: 70%; text-align: right; color: #fff; font-size: clamp(7px, .72vw, 10px); line-height: 1.15; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; overflow-wrap: anywhere; text-shadow: 0 1px 3px rgba(0,0,0,.3); }
.grid-workspace .tile-title { position: relative; z-index: 1; text-shadow: 0 1px 3px rgba(0,0,0,.32); }

@media (max-width: 980px) {
  .workspace-direct { grid-template-columns: 1fr; }
  .slot-editor { position: static; }
  .workspace-direct .preview-panel, .workspace-direct .editor-panel { max-width: 700px; }
  .tile-category { font-size: clamp(8px, 1.8vw, 12px); }
}
@media (max-width: 700px) {
  .workspace-direct .preview-panel, .workspace-direct .editor-panel { padding: 14px; }
  .grid-workspace .grid-preview { gap: 5px; }
  .grid-workspace .preview-tile { padding: 7px; }
  .tile-category { font-size: clamp(6px, 1.8vw, 9px); }
  .grid-workspace .tile-title { font-size: clamp(9px, 3vw, 15px); }
  .slot-editor .panel-heading { gap: 9px; }
  .slot-editor .panel-heading h3 { font-size: 23px; }
  .slot-editor .panel-heading .subtle-button { padding-inline: 9px; font-size: 10px; }
}
