/* Intake: own frame without the site header. Warm paper, photo cards for platforms, game tiles
   with an A–Z bar, a photo rail on wide screens; site.css provides the tokens and base form. */
.intake-body { background: #fbfaf6; }
.intake-header { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / 0.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.intake-header > .wrap:not(.intake-progress) { display: flex; align-items: center; gap: 16px; padding-top: 10px; padding-bottom: 10px; }
.intake-header .logo img { width: 100px; }
.intake-stepline { margin-left: auto; font-size: 0.9rem; color: var(--ink-2); }
.intake-exit { margin-left: 16px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.86rem; color: var(--ink-2); text-decoration: none; }
.intake-exit:hover { border-color: var(--ink-3); color: var(--ink); }
.intake-header > .wrap > .logo + .intake-exit { margin-left: auto; }

/* Progress: six segments, green when done, orange for the current step */
.intake-header .intake-progress { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 0 auto; padding-bottom: 10px; list-style: none; }
.intake-progress li > a, .intake-progress li > span {
  display: block;
  padding-top: 7px;
  border-top: 4px solid #e6e9e4;
  border-radius: 2px;
  font-size: 0.8rem;
  color: var(--ink-3);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.intake-progress li > * > span { font-variant-numeric: tabular-nums; }
.intake-progress li.done > * { border-top-color: #22a06b; color: #17845a; }
.intake-progress li.done > a:hover { color: var(--ink); }
.intake-progress li.current > * { border-top-color: #ea580c; color: var(--ink); font-weight: 650; }

.intake-main { padding: 24px 0 40px; }
.intake-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 980px) { .intake-grid { grid-template-columns: minmax(0, 1fr) 300px; } }
.intake-panel { min-width: 0; padding: 28px; background: var(--surface); border: 1px solid rgb(13 34 29 / 0.06); border-radius: var(--radius-l); box-shadow: 0 1px 2px rgb(13 34 29 / 0.04), 0 14px 36px -24px rgb(13 34 29 / 0.2); }
.intake-panel h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
.intake-panel .lead { margin-top: 8px; font-size: 1.02rem; color: var(--ink-2); }
.intake-panel .form { margin-top: 22px; gap: 20px; }
.intake-panel .notice-box { margin-top: 18px; }
.intake-panel fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 10px; }
.intake-panel legend { margin-bottom: 8px; padding: 0; font-weight: 650; }
.intake-nav { position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: space-between; gap: 10px; margin: 4px -28px -28px; padding: 16px 28px; background: rgb(255 255 255 / 0.96); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-l) var(--radius-l); }
.intake-nav .btn-primary { margin-left: auto; }

/* What the client chose so far, as small chips above the title */
.intake-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
@media (min-width: 980px) { .intake-chips { display: none; } }
.intake-chips li { padding: 3px 10px; border-radius: 999px; background: #dff5e8; color: #135c40; font-size: 0.82rem; font-weight: 600; }

/* Photo rail (wide screens only) */
.intake-rail { display: none; }
@media (min-width: 980px) {
  .intake-rail { position: sticky; top: 112px; display: block; padding: 0 0 20px; overflow: hidden; background: var(--surface); border: 1px solid rgb(13 34 29 / 0.06); border-radius: var(--radius-l); font-size: 0.93rem; }
}
.intake-rail-photo { position: relative; margin: 0; }
.intake-rail-photo img { display: block; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.intake-rail-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; background: linear-gradient(transparent, rgb(8 20 17 / 0.78)); color: #fff; font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.intake-rail h2 { margin: 18px 20px 0; font-size: 1rem; }
.intake-rail dl { margin: 10px 20px 0; }
.intake-rail dt { font-size: 0.78rem; color: var(--ink-3); }
.intake-rail dd { margin: 1px 0 8px; font-weight: 600; }
.intake-rail-note { margin: 14px 20px 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.88rem; }
.intake-rail-photo + .intake-rail-note { padding-top: 0; border-top: 0; }

/* Step 1: platform photo cards */
.platform-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.platform-card { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--radius); background: #1b2430; cursor: pointer; isolation: isolate; box-shadow: 0 1px 2px rgb(13 34 29 / 0.08); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.platform-card input { position: absolute; opacity: 0; pointer-events: none; }
.platform-card .platform-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.platform-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 45%, rgb(5 12 20 / 0.72)); }
.platform-name { position: absolute; left: 14px; bottom: 12px; z-index: 2; color: #fff; font-size: 1.12rem; font-weight: 700; text-shadow: 0 1px 8px rgb(0 0 0 / 0.4); }
.platform-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -16px rgb(13 34 29 / 0.5); }
.platform-card:hover .platform-photo { transform: scale(1.04); }
.platform-card:has(input:checked) { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #22a06b; }
.platform-card:has(input:checked)::before { content: ""; position: absolute; top: 10px; right: 10px; z-index: 3; width: 28px; height: 28px; border-radius: 50%; background: #22a06b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.platform-card:has(input:focus-visible) { outline: 3px solid #ea580c; outline-offset: 3px; }
.platform-card-plain { background: linear-gradient(135deg, #2b2f6b, #7a3fb5 55%, #ea580c); }
.platform-photo-plain { display: grid; place-items: start center; padding-top: 12%; color: rgb(255 255 255 / 0.9); }
.platform-photo-plain svg { width: 40%; height: 40%; }
.platform-sub { padding: 16px 18px; background: #f6fbf8; border-radius: var(--radius); }
.platform-sub legend { float: left; width: 100%; margin-bottom: 10px; }
@media (prefers-reduced-motion: reduce) { .platform-card, .platform-card .platform-photo { transition: none; } .platform-card:hover, .platform-card:hover .platform-photo { transform: none; } }

/* Step 2: game tiles with search and A–Z */
.game-picker { display: grid; gap: 12px; }
.game-search { position: relative; }
.game-search svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--ink-3); pointer-events: none; }
.game-search input[type="search"] { min-height: 50px; padding-left: 44px; border-radius: 999px; font-size: 1.02rem; }
.az-bar { position: sticky; top: 104px; z-index: 4; display: flex; gap: 3px; padding: 6px 0; background: rgb(255 255 255 / 0.96); }
.az-bar a, .az-bar span { flex: 1 1 0; display: grid; place-items: center; min-width: 22px; height: 32px; border-radius: 7px; font-size: 0.84rem; font-weight: 650; text-decoration: none; }
.az-bar .az-all { flex: 0 0 auto; padding: 0 10px; }
.az-bar a { background: #f3f1ea; color: var(--ink); }
.az-bar a:hover { background: #dff5e8; color: #135c40; }
.az-bar a.is-active { background: #22a06b; color: #fff; }
.az-bar span { color: #c3c9c5; }
.game-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px !important; scroll-margin-top: 150px; }
.game-tile { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px 8px 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; scroll-margin-top: 150px; transition: border-color 0.12s ease, box-shadow 0.12s ease; }
.game-tile input { position: absolute; opacity: 0; pointer-events: none; }
.game-tile:hover { border-color: #22a06b; box-shadow: 0 6px 16px -10px rgb(13 34 29 / 0.4); }
.game-tile:has(input:checked) { border-color: #22a06b; background: #eaf8f0; box-shadow: 0 0 0 2px #22a06b inset; }
.game-tile:has(input:focus-visible) { outline: 3px solid #ea580c; outline-offset: 2px; }
.game-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, hsl(var(--hue, 150) 70% 46%), hsl(calc(var(--hue, 150) + 40) 75% 36%)); color: #fff; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em; overflow: hidden; }
.game-icon-long { font-size: 0.6rem; letter-spacing: 0; }
.game-icon-logo { background: #fff; box-shadow: inset 0 0 0 1px rgb(13 34 29 / 0.08); }
.game-icon-logo img { width: 100%; height: 100%; object-fit: cover; }
.game-name { min-width: 0; font-size: 0.92rem; font-weight: 600; line-height: 1.25; }
.game-none { margin: 0; padding: 12px 14px; background: #fff6ec; border-radius: var(--radius-s); color: #8a3b0c; font-size: 0.92rem; }

/* Step 3: what was banned */
.lane-card { padding-left: 74px; min-height: 96px; }
.lane-icon { position: absolute; left: 18px; top: 18px; display: grid !important; place-items: center; width: 42px; height: 42px; margin: 0 !important; border-radius: 12px; background: #dff5e8; color: #17845a !important; }
.lane-icon svg { width: 22px; height: 22px; }
.lane-card:has(input[value="hardware"]) .lane-icon { background: #e3eeff; color: #2f63c9 !important; }

/* Shared form polish: aligned two-column rows, clear choice cards */
.intake-panel .grid-2 { gap: 18px 20px; }
@supports (grid-template-rows: subgrid) {
  @media (min-width: 760px) {
    .intake-panel .grid-2 { grid-template-rows: auto auto auto auto; row-gap: 0; }
    .intake-panel .grid-2 > .field, .intake-panel .grid-2 > [class*="field"] { grid-row: span 4; grid-template-rows: subgrid; row-gap: 6px; align-content: start; }
  }
}
.intake-panel .option-card { border-radius: 14px; transition: border-color 0.12s ease; }
.intake-panel .option-card:hover { border-color: #22a06b; }
.intake-panel .option-card:has(input:checked) { border-color: #22a06b; box-shadow: 0 0 0 2px #22a06b inset; background: #f3fbf6; }
.intake-panel .option-card:has(input:focus-visible) { outline: 3px solid #ea580c; outline-offset: 2px; }
.intake-panel .choice input, .chip input { accent-color: #22a06b; }

.intake-more { padding: 12px 16px; background: #f6f5f0; border-radius: var(--radius); }
.intake-more > summary { cursor: pointer; font-weight: 600; }
.intake-more[open] > summary { margin-bottom: 12px; }
.intake-hardware h2 { font-size: 1.15rem; margin-bottom: 12px; }
.intake-hardware .field + .field { margin-top: 14px; }

.chip-options { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 500; cursor: pointer; }
.chip:hover { border-color: #22a06b; }
.chip:has(input:checked) { border-color: #22a06b; background: #dff5e8; color: #135c40; }

.intake-panel .plan-card .plan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; color: var(--ink); }
.plan-top em { font-style: normal; font-size: 1.2rem; font-weight: 800; white-space: nowrap; color: #17845a; }
.intake-drop { display: grid; justify-items: start; gap: 6px; padding: 18px 20px; border: 2px dashed #bfe3cf; border-radius: var(--radius); background: #f6fbf8; cursor: pointer; }
.intake-drop:hover, .intake-drop:focus-within { border-color: #22a06b; background: #eaf8f0; }
.intake-drop input { max-width: 100%; font: inherit; font-size: 0.92rem; }
.otp-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.otp-row input { width: 140px; min-height: 46px; }
.intake-consents { padding: 16px; background: #f6f5f0; border-radius: var(--radius); }
.intake-consents .choice span { font-size: 0.93rem; }
.choice.field-invalid span { color: #7a1c13; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.intake-footer { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-bottom: 28px; font-size: 0.84rem; color: var(--ink-3); }
.intake-footer a { color: var(--ink-3); }

[hidden] { display: none !important; }

@media (max-width: 720px) {
  .intake-stepline { display: none; }
  .intake-header > .wrap > .logo + .intake-exit, .intake-exit { margin-left: auto; }
  .intake-progress li > a, .intake-progress li > span { font-size: 0; }
  .intake-progress li.current > * { font-size: 0.78rem; overflow: visible; }
  .intake-main { padding-top: 14px; }
  .intake-panel { padding: 20px 16px; border-radius: var(--radius); }
  .intake-nav { margin: 4px -16px -20px; padding: 12px 16px; border-radius: 0 0 var(--radius) var(--radius); }
  .intake-nav .btn-lg { flex: 1; justify-content: center; }
  .platform-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .platform-card { aspect-ratio: 16 / 11; }
  .platform-photo-plain svg { display: none; }
  .az-bar { top: 88px; overflow-x: auto; scrollbar-width: none; }
  .az-bar a, .az-bar span { flex: 0 0 30px; }
  .az-bar::-webkit-scrollbar { display: none; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-icon { width: 36px; height: 36px; }
  .game-name { font-size: 0.86rem; }
}
