:root {
  --color-ink: #24392c;
  --color-muted: #657065;
  --color-action: #ed080d;
  --color-action-hover: #c80509;
  --color-surface: #ffffff;
  --color-page: #fff9ef;
  --color-line: #e8e2d7;
  --color-success: #087c53;
  --color-danger: #b73748;
  --card-radius: 1.75rem;
  --font-interface: "Trebuchet MS", Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.entry-security { margin: 1rem 0; padding: 1.2rem; border: 1px solid var(--color-line); border-radius: 1rem; background: #fffaf1; }
.entry-security h2 { margin-top: 0; font-size: 1.1rem; }
.entry-security p { font-size: .9rem; color: var(--color-muted); margin-bottom: .75rem; }
#entry-captcha-widget { width: 100%; min-width: 0; min-height: 65px; }
#receipt-upload-controls > p { margin-top: .6rem; }
body { margin: 0; background: radial-gradient(ellipse at 12% 20%, #fff0d8 0, transparent 48%), var(--color-page); color: var(--color-ink); font-family: var(--font-interface); font-size: 1rem; line-height: 1.55; border-top: 5px solid var(--color-action); }
button, select, input { font: inherit; }
button, select, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled, select:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #087742; outline-offset: 4px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.8rem, 4vw, 2.25rem); line-height: 1.14; letter-spacing: -.035em; margin: .4rem 0 1rem; font-weight: 750; }
h1:focus { outline: none; }
h2 { font-size: 1.2rem; line-height: 1.3; margin: 1rem 0 .5rem; }
section > p:not(.eyebrow, .code-label, .redemption-code) { color: var(--color-muted); }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; max-width: 1280px; margin: auto; padding: 1.1rem 1.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; font-size: 1.125rem; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; background: var(--color-ink); color: #fff; border-radius: .6rem; font-size: 1.35rem; }
.brand-logo { display: block; width: 112px; height: auto; flex: 0 0 auto; }
.brand small { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .18em; color: #087442; margin-top: .15rem; }
.demo-badge { padding: .4rem .8rem; border: 1px solid #e9d7b3; border-radius: 2rem; color: #725322; background: #fff3d9; font-size: .875rem; font-weight: 700; white-space: nowrap; }
.demo-notice { color: #715d3a; padding: .65rem 1.4rem; background: #fff0d4; border-bottom: 1px solid #f0dfbd; font-size: .8rem; text-align: center; }
.workspace { width: min(100%, 1280px); margin: 2.5rem auto; padding: 0 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 450px); gap: 2.5rem 3rem; justify-content: center; align-items: start; }
.campaign-art { grid-column: 1; grid-row: 1; min-width: 0; }
.campaign-poster { overflow: hidden; border-radius: 1.5rem; box-shadow: 0 16px 35px #6f41151a; border: 3px solid #fff; background: #ead6b3; }
.campaign-poster img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.campaign-intro { padding: 1.8rem .3rem 0; max-width: 560px; }
.campaign-intro h2 { color: #075e35; font-size: clamp(1.8rem, 3vw, 2.45rem); line-height: 1.15; letter-spacing: -.045em; margin: .65rem 0 1rem; }
.campaign-intro > p:last-of-type { color: var(--color-muted); }
.how-to-play { display: grid; gap: 1rem; padding: 0; margin: 1.8rem 0 0; list-style: none; }
.how-to-play li { display: flex; gap: .85rem; align-items: center; }
.how-to-play li > span { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; flex: 0 0 auto; background: #e5efd9; color: #075e35; border-radius: .75rem; font-weight: 800; }
.how-to-play strong { font-size: .95rem; }
.how-to-play p { color: var(--color-muted); font-size: .85rem; }
.experience { grid-column: 2; grid-row: 1; min-width: 0; }
.stepper { display: flex; gap: 1.25rem; padding: 0; margin: 0 0 1.3rem; list-style: none; justify-content: center; font-size: .875rem; color: var(--color-muted); }
.stepper li { display: flex; align-items: center; gap: .4rem; white-space: nowrap; }
.stepper span { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border: 1px solid #aab7c6; border-radius: 50%; }
.stepper [aria-current] { color: var(--color-ink); font-weight: 700; }
.stepper [aria-current] span { color: #fff; background: var(--color-ink); border-color: var(--color-ink); }
.app-card { padding: 2rem; background: var(--color-surface); border: 1px solid #e9e0d0; border-radius: var(--card-radius); box-shadow: 0 18px 45px #5a351212; min-height: 450px; }
.campaign-name { font-size: .8rem; font-weight: 700; color: #075e35; text-align: center; padding-bottom: 1rem; margin-bottom: 1.65rem; border-bottom: 1px solid var(--color-line); letter-spacing: .035em; }
.eyebrow { font-size: .875rem; font-weight: 700; color: #087442; }
.button { display: inline-flex; min-height: 3rem; padding: .7rem 1rem; border-radius: .8rem; align-items: center; justify-content: center; gap: .5rem; font-weight: 700; border: 1px solid transparent; text-align: center; }
.button-primary { background: var(--color-action); color: #fff; width: 100%; margin-top: 1.25rem; }
.button-primary:hover:not(:disabled) { background: var(--color-action-hover); }
.button-secondary { background: #fff; color: #075e35; border-color: #cad9c7; }
.button-secondary:hover:not(:disabled) { background: #f3f8ed; border-color: #729d74; }
.button-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1rem; }
.secondary-note { font-size: .875rem; line-height: 1.45; margin-top: 1rem; color: var(--color-muted); }
.receipt-preview { margin-top: 1.3rem; border: 1px dashed #b7cdb4; border-radius: 1rem; background: #f5f8ef; min-height: 155px; display: grid; place-items: center; padding: 1rem; text-align: center; overflow: hidden; }
.receipt-icon { display: block; width: 42px; height: 51px; color: #087442; margin: 0 auto .65rem; }
.receipt-preview img { width: auto; max-width: 100%; max-height: 260px; height: auto; object-fit: contain; }
.receipt-preview p { font-size: .875rem; color: var(--color-muted); margin-top: .5rem; }
.placeholder-label { display: block; font-size: .875rem; font-weight: 700; color: #5c6d81; }
.file-name { font-size: .875rem; overflow-wrap: anywhere; margin-top: .6rem; }
.error-text { font-size: .875rem; color: #a41f35 !important; margin-top: .7rem; }
.spinner { width: 3rem; height: 3rem; border: 4px solid #dae5f6; border-top-color: var(--color-action); border-radius: 50%; animation: spin .8s linear infinite; margin: 3rem auto 1.8rem; }
[data-view="loading"], [data-view="checking"] { text-align: center; padding-bottom: 2rem; }
.status-view { text-align: center; padding-top: .8rem; }
.status-symbol { display: grid; place-items: center; width: 5rem; height: 5rem; font-size: 3rem; font-weight: 700; border-radius: 50%; margin: .5rem auto 1.8rem; }
.status-symbol.success { color: var(--color-success); background: #e1f4eb; }
.status-symbol.danger { color: var(--color-danger); background: #fae6e9; }
.status-symbol.warning { color: #8b651d; background: #fff0cb; }
.status-view .eyebrow { color: var(--color-muted); }
.scratch-card { position: relative; width: min(100%, 300px); aspect-ratio: 1; margin: 1.4rem auto 1rem; border-radius: 1.1rem; overflow: hidden; border: 2px solid #debc69; background: #fff8e4; box-shadow: 0 8px 22px #ad842522; }
.scratch-underlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 1.4rem; gap: .8rem; }
.scratch-underlay strong { font-size: 1.65rem; line-height: 1.15; }
.scratch-underlay span:last-child { font-size: .875rem; color: var(--color-muted); }
#scratch-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; transition: opacity .3s; }
#scratch-canvas.revealed { opacity: 0; pointer-events: none; }
.scratch-progress { display: flex; align-items: center; justify-content: center; gap: .6rem; font-size: .875rem; color: var(--color-muted); }
progress { width: min(190px, 70%); height: .45rem; border: 0; border-radius: 2rem; appearance: none; background: #e4eaf2; overflow: hidden; }
progress::-webkit-progress-bar { background: #e4eaf2; }
progress::-webkit-progress-value { background: var(--color-action); border-radius: 2rem; }
progress::-moz-progress-bar { background: var(--color-action); }
.text-button { display: block; margin: 1rem auto 0; background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; padding: .65rem; color: #40576d; font-size: .875rem; }
.asset-placeholder { display: grid; place-items: center; text-align: center; padding: 1rem; aspect-ratio: 1.6; background: #f0f4f9; border: 1px dashed #aebdd0; border-radius: 1rem; margin-top: 1.2rem; color: #617386; font-size: .875rem; }
.qr-placeholder { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .8rem; width: 180px; aspect-ratio: 1; margin: 1.4rem auto; border: 1px dashed #aebdd0; border-radius: .8rem; padding: 1rem; text-align: center; }
.qr-placeholder strong { font-size: 2rem; }
.qr-placeholder span { font-size: .875rem; color: var(--color-muted); }
.code-label { font-size: .875rem; color: var(--color-muted); text-align: center; }
.redemption-code { font-size: 1.3rem; font-weight: 700; letter-spacing: .06em; text-align: center; overflow-wrap: anywhere; }
.redemption-qr {display:block;width:min(260px,100%);height:auto;image-rendering:pixelated;margin:1.3rem auto;background:#fff;}
.campaign-rules{font-size:.94rem;font-weight:600;margin-top:.8rem;}
.campaign-message{font-size:.875rem;padding:.65rem .8rem;background:#eff5e8;border-radius:.6rem;margin:.8rem 0;}
.pickup-info { border-top: 1px solid var(--color-line); margin-top: 1.4rem; padding-top: .2rem; }
.pickup-info h2 { font-size: 1rem; }
[data-view="redeem"] .button { width: 100%; margin-top: 1.4rem; }
.experience-footnote { text-align: center; font-size: .875rem; color: var(--color-muted); margin-top: 1rem; }
.tools { grid-column: 1 / -1; grid-row: 2; margin-top: 0; min-width: 0; }
.tools details { border: 1px solid var(--color-line); border-radius: 1rem; background: #fffcf6; }
.tools summary { cursor: pointer; padding: 1.2rem 1.3rem; font-weight: 700; }
.tools-content { padding: 0 1.3rem 1.3rem; }
.tools-content > p:first-child { color: var(--color-muted); font-size: .95rem; margin-bottom: 1rem; }
.tools label { display: block; font-size: .875rem; font-weight: 700; margin: 1rem 0 .4rem; }
.tools select { width: 100%; padding: .65rem .55rem; min-height: 2.9rem; border: 1px solid #b8c5d5; color: var(--color-ink); background: #fff; border-radius: .65rem; }
.tools input { width:100%; padding:.65rem .55rem; min-height:2.9rem; border:1px solid #b8c5d5; border-radius:.65rem; }
.admin-link { text-decoration:none; }
.resume-notice { padding:.8rem; margin-top:1rem; background:#eaf2ff; border:1px solid #c5d9f8; border-radius:.7rem; font-size:.875rem; }
.resume-notice .text-button { margin:.2rem auto 0; }
.tools .button { width: 100%; margin-top: 1.25rem; }
.test-status { display: flex; flex-direction: column; font-size: .875rem; padding-top: 1.1rem; margin-top: 1.1rem; border-top: 1px solid var(--color-line); }
.test-status span { color: var(--color-muted); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .site-header { padding: 1rem 1.1rem; }
  .brand { font-size: 1rem; gap: .5rem; }
  .demo-badge { padding: .35rem .6rem; }
  .workspace { grid-template-columns: minmax(0, 460px); padding: 0 1rem; gap: 1.5rem; margin: 1.4rem auto; }
  .experience { grid-column: 1; grid-row: 1; }
  .tools { grid-column: 1; grid-row: 2; margin-top: 0; }
  .app-card { padding: 1.6rem; }
}
@media (max-width: 360px) {
  .site-header { padding: .8rem; }
  .brand-mark { width: 1.9rem; height: 1.9rem; }
  .demo-badge { font-size: .8rem; }
  .workspace { padding: 0 .75rem; }
  .app-card { padding: 1.25rem; }
  .stepper { gap: .75rem; }
  .button-pair { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .workspace { width: min(100%, 560px); grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin: 1.4rem auto; }
  .campaign-art { grid-column: 1; grid-row: 1; }
  .campaign-intro { display: none; }
  .experience { grid-column: 1; grid-row: 2; }
  .tools { grid-column: 1; grid-row: 3; margin-top: 0; }
}
@media (max-width: 480px) {
  .site-header { padding: .8rem 1rem; gap: .5rem; }
  .brand { gap: .55rem; font-size: .9rem; }
  .brand-logo { width: 90px; }
  .brand small { font-size: .6rem; }
  .demo-badge { font-size: .7rem; padding: .35rem .55rem; }
  .workspace { padding: 0 .85rem; }
  .campaign-poster { border-radius: 1rem; border-width: 2px; }
  .app-card { padding: 1.45rem; border-radius: 1.4rem; }
  .stepper { font-size: .8rem; gap: 1rem; }
}
@media (max-width: 360px) {
  .site-header .brand > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.validation-error-details{padding-left:1.5rem;margin:1rem 0;text-align:left;font-size:clamp(1rem,3.7vw,1.15rem);line-height:1.5;overflow-wrap:anywhere}.validation-error-details li+li{margin-top:.65rem}
