/* Review raffle pages: /thanks, /optout, /raffle-rules.
   Loads after site.css and only uses its variables, so the forms match the rest of the brand site. */

.review-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.review-row .panel { gap: 10px; }
.review-row h2 { font-size: 26px; line-height: 1.05; text-transform: uppercase; }
.review-row p { max-width: 42ch; }
.review-row .btn-row { margin-top: 4px; }
.steps-head { display: grid; gap: 10px; align-content: start; }
.steps-head .num { justify-self: start; display: inline-grid; place-items: center; width: 44px; height: 44px; border: var(--line) solid var(--ink); background: var(--gold); font-family: var(--f-display); font-size: 22px; line-height: 1; }

/* form */
.form { display: grid; gap: 18px; }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 12px; }
.form legend { padding: 0; margin-bottom: 4px; font: 700 12px var(--f-body); letter-spacing: .14em; text-transform: uppercase; }
.form .hint { color: var(--muted); font-size: 14.5px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font: 700 12px var(--f-body); letter-spacing: .14em; text-transform: uppercase; }
.field .opt { color: var(--muted); font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 13px; }
.field input[type="text"], .field input[type="email"] {
  width: 100%; min-height: 50px; padding: 10px 14px; border: var(--line) solid var(--ink); border-radius: 0;
  background: var(--white); color: var(--ink); font: 400 17px var(--f-body); appearance: none; -webkit-appearance: none;
}
.field input:focus-visible, .choice input:focus-visible + .box, .drop:focus-within, .btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: var(--red); }
.handles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.handles .field input { padding-left: 32px; }
.handles .at { position: relative; }
.handles .at::before { content: "@"; position: absolute; left: 13px; bottom: 13px; font: 700 17px var(--f-body); color: var(--muted); pointer-events: none; }

/* platform picker: two big toggles */
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.platforms label { position: relative; display: grid; gap: 2px; padding: 14px 16px; border: var(--line) solid var(--ink); background: var(--white); cursor: pointer; }
.platforms input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.platforms b { font-family: var(--f-display); font-size: 20px; line-height: 1; text-transform: uppercase; }
.platforms small { color: var(--muted); font-size: 13.5px; }
.platforms label:has(input:checked) { background: var(--teal); color: var(--paper); box-shadow: 4px 4px 0 var(--ink); }
.platforms label:has(input:checked) small { color: var(--teal-soft); }
.platforms label:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }

/* screenshot drop zone */
.drop { position: relative; display: grid; gap: 8px; justify-items: start; padding: 18px; border: var(--line) dashed var(--ink); background: var(--white); min-height: 110px; }
.drop.is-over { background: var(--teal-soft); border-style: solid; }
.drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop .btn { pointer-events: none; min-height: 44px; padding: 8px 16px; }
.drop .filename { font-weight: 700; word-break: break-all; }
.drop img { max-width: 100%; max-height: 260px; border: 2px solid var(--ink); background: var(--paper); }
.drop .clear { position: relative; z-index: 2; justify-self: start; background: none; border: 0; padding: 0; font: 700 13px var(--f-body); letter-spacing: .1em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--ink); }

/* checkboxes */
.choice { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice .box { width: 26px; height: 26px; border: var(--line) solid var(--ink); background: var(--white); display: grid; place-items: center; margin-top: 1px; }
.choice .box::after { content: ""; width: 12px; height: 12px; background: var(--ink); transform: scale(0); transition: transform .08s ease; }
.choice input:checked + .box::after { transform: scale(1); }
.choice input:checked + .box { background: var(--gold); }
.choice span:last-child { line-height: 1.45; }
.choice.is-required .box { border-color: var(--red); }

.form-foot { display: grid; gap: 12px; justify-items: start; }
.form-foot .btn[disabled] { opacity: .6; cursor: progress; transform: none; box-shadow: 4px 4px 0 var(--ink); }
.status { border: var(--line) solid var(--ink); padding: 12px 16px; background: var(--paper); font-weight: 700; display: none; max-width: 60ch; }
.status.is-error { display: block; background: #F6DFDB; border-color: var(--red); }
.status.is-info { display: block; }
.status--top { margin-bottom: 2px; }
.status--top:not(.is-error) { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* success card */
.done { display: none; gap: 14px; }
.done.is-on { display: grid; }
.done .id { font-family: var(--f-display); font-size: clamp(26px, 3.4vw, 40px); line-height: 1; text-transform: uppercase; letter-spacing: .02em; word-break: break-all; }
.form.is-hidden { display: none; }

/* rules page */
.rules { max-width: 72ch; }
.rules h2 { font-size: 24px; margin-top: 10px; }
.rules ol, .rules ul { padding-left: 20px; display: grid; gap: 8px; }
.rules .toc { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 0; list-style: none; }
.rules .toc a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.rules .kicker { font: 700 12px var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 900px) {
  .review-row, .platforms, .handles { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .review-row h2 { font-size: 22px; }
  .drop img { max-height: 200px; }
}
