/* The field console extends the existing illustrated kit. Palette and type are inherited. */
button, input { -webkit-tap-highlight-color: rgba(20,18,31,.14); }
button:focus-visible, input:focus-visible { outline: 3px solid var(--front-teal-deep); outline-offset: 4px; }
kbd { display: inline-block; border: 1px solid currentColor; border-radius: 4px; padding: 2px 5px; font: 800 11px var(--front-font); line-height: 1.25; }
.front-topbar { min-height: 64px; grid-template-columns: 150px minmax(0,1fr) 130px; gap: 12px; padding-block: 8px; }
.front-nav button { padding-inline: 12px; font-size: 12px; }
.front-pages { width: min(1340px,100%); padding: 28px 36px 36px; min-height: calc(100vh - 80px); }
.front-home { grid-template-columns: minmax(0,1.55fr) minmax(280px,.85fr); grid-template-rows: auto auto auto; gap: 18px; min-height: auto; }
.front-briefing { padding: 34px 36px 24px; border-radius: 22px; }
.front-briefing::after { inset: 10px; border-radius: 12px; pointer-events: none; }
.front-briefing h1 { font-size: clamp(48px,5.3vw,76px); letter-spacing: -.04em; line-height: .98; text-wrap: balance; }
.front-briefing .front-kicker { font-size: 11px; }
.front-lede { margin: 16px 0; max-width: 510px; font-size: 17px; line-height: 1.4; }
.front-mission { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--front-teal-deep); font-size: 12px; font-weight: 800; }
.front-mission span::before { content: '◆'; margin-right: 6px; font-size: 8px; }
.kit-heading { margin-top: 26px; margin-bottom: 12px; }
.kit-heading p { margin: 0 0 4px; }
.kit-heading > span { color: var(--front-rubber); font-size: 12px; }
.launch-kits { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.launch-kit { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 12px; border: 2px solid var(--front-cream-inset); border-radius: 12px; background: var(--front-white); color: var(--front-ink); text-align: left; cursor: pointer; transition: transform 150ms, border-color 150ms, box-shadow 150ms; }
.launch-kit:hover { transform: translateY(-3px); border-color: var(--front-housing); }
.launch-kit.is-selected { border-color: var(--front-teal-deep); box-shadow: 0 3px 0 var(--front-teal-deep), inset 0 0 0 1px var(--front-teal-deep); }
.launch-kit.is-selected::after { content: '✓'; position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 21px; height: 21px; color: var(--front-cream); background: var(--front-teal-deep); border-radius: 50%; font-size: 12px; }
.launch-kit img { width: 62px; height: 62px; object-fit: contain; margin-bottom: 8px; }
.launch-kit small { font-size: 10px; font-weight: 900; letter-spacing: .04em; color: var(--front-teal-deep); }
.launch-kit strong { margin: 4px 0 6px; font-size: 16px; line-height: 1.05; }
.launch-kit > span, .launch-kit em { font-size: 11px; line-height: 1.4; font-style: normal; }
.launch-kit em { color: var(--front-rubber); }
.launch-kit-note { min-height: 16px; margin: 12px 0 0; color: var(--front-teal-deep); font-size: 12px; font-weight: 700; }
.front-operator { border-radius: 22px; grid-template-rows: minmax(310px,1fr) auto; background: var(--front-housing); }
.operator-portrait { min-height: 340px; background: radial-gradient(ellipse at 50% 46%,var(--front-housing-hi),var(--front-housing) 68%); }
.operator-pim { width: auto; height: 90%; max-height: 390px; object-fit: contain; bottom: 6px; left: 29%; }
.operator-wren { width: 31%; max-width: 135px; top: 20%; right: 5%; animation: wren-hover 3.4s ease-in-out infinite; }
.operator-copy { padding: 20px 24px; }
.operator-copy h2 { margin: 3px 0 6px; font-size: 28px; }
.operator-copy p { font-size: 13px; }
.operator-stamp { position: absolute; z-index: 2; top: 20px; left: 20px; color: var(--front-cream); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.operator-stamp b { display: block; padding-top: 5px; font-size: 22px; }
.front-launchbar { grid-column: 1/-1; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 26px; border: 3px solid var(--front-ink); border-radius: 18px; background: var(--front-housing-deep); color: var(--front-cream); box-shadow: 5px 6px 0 rgba(20,18,31,.2); }
.launch-contracts .front-kicker { color: var(--front-cream); font-size: 10px; }
.launch-contracts > div { display: flex; gap: 6px; }
.contract-choice { padding: 9px 15px; min-height: 40px; border: 1px solid var(--front-housing-hi); border-radius: 7px; background: transparent; color: var(--front-cream); font-weight: 800 !important; font-size: 13px !important; cursor: pointer; }
.contract-choice.is-selected { color: var(--front-ink); background: var(--front-cream); border-color: var(--front-cream); }
.launch-contracts > p:last-child { margin: 8px 0 0; font-size: 12px; color: var(--front-cream-inset); }
.launch-action { flex-shrink: 0; }
.launch-action .front-primary { min-width: 340px; width: 100%; }
.launch-action .front-controls { margin: 12px 0 0; text-align: center; color: var(--front-cream); font-size: 11px; letter-spacing: 0; text-transform: none; }
.launch-action kbd { margin-left: 8px; }
.front-home-footer { grid-column: 1/-1; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 6px 10px; }
.front-home-footer .front-account-stats { margin: 0; gap: 24px; }
.front-home-footer .front-account-stats dd { font-size: 22px; }
.front-home-footer .front-docket-preview { display: flex; align-items: center; gap: 20px; padding: 8px 0; border: 0; background: none; box-shadow: none; }
.front-home-footer .front-docket-preview span { font-size: 12px; }
.front-home-footer .front-kicker { margin-bottom: 3px; }
.front-home-footer .front-docket-preview strong { display: block; font-size: 15px; }
.history-row { display: grid; grid-template-columns: minmax(200px,1fr) repeat(4,120px); align-items: center; gap: 22px; padding: 20px 24px; margin: 12px 0; border: 2px solid var(--front-ink); border-radius: 12px; background: var(--front-cream); }
.history-row h2 { margin: 3px 0; font-size: 25px; }
.history-row > span, .history-row > strong { font-size: 24px; font-weight: 900; }
.history-row small { display: block; margin-top: 5px; font-size: 10px; color: var(--front-teal-deep); }
.history-empty { padding: 60px 30px; border: 2px solid var(--front-ink); border-radius: 18px; background: var(--front-cream); text-align: center; }
.result-cause { font-size: 17px; line-height: 1.4; color: var(--front-teal-deep); font-weight: 700; }
.result-kit { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.result-kit > div { display: flex; align-items: center; flex: 1 0 125px; gap: 8px; padding: 8px; border: 1px solid var(--front-cream-inset); border-radius: 8px; background: var(--front-white); }
.result-kit img { width: 42px; height: 42px; object-fit: contain; }
.result-kit span { font-size: 13px; font-weight: 800; }
.result-kit small { display: block; font-size: 10px; font-weight: 600; color: var(--front-rubber); }
.result-record { font-size: 13px; color: var(--front-teal-deep); font-weight: 800; }
.empty-payout { font-size: 14px; }
.field-pause { box-sizing: border-box; width: min(640px,calc(100vw - 28px)); max-height: calc(100dvh - 28px); margin: auto; padding: 28px; border: 4px solid var(--front-ink); border-radius: 22px; background: var(--front-cream); color: var(--front-ink); font: 15px var(--front-font); box-shadow: 10px 14px 0 rgba(20,18,31,.3); overscroll-behavior: contain; }
.field-pause::backdrop { background: rgba(20,18,31,.48); }
.field-pause button { font-family: inherit; cursor: pointer; }
.pause-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.pause-heading h1 { margin: 0; font-size: 44px; letter-spacing: -.035em; line-height: 1; }
.pause-context { margin: 16px 0; font-size: 12px; font-weight: 800; color: var(--front-teal-deep); }
.pause-controls { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 16px; background: var(--front-housing-deep); color: var(--front-cream); border-radius: 10px; font-size: 12px; }
.pause-help { color: var(--front-rubber); line-height: 1.5; font-size: 14px; }
.field-mixer { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; margin: 20px 0; }
.field-mixer label > span { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; }
.field-mixer input { display: block; margin: 12px 0 0; width: 100%; min-height: 24px; accent-color: var(--front-teal-deep); }
.field-check { display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: 14px; }
.field-check input { width: 20px; height: 20px; accent-color: var(--front-teal-deep); }
.pause-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.pause-actions .front-primary { min-width: 245px; }
.pause-actions .front-text-button { font-size: 12px; }
.pause-confirm { padding: 12px; border: 2px solid var(--front-ink); border-radius: 10px; font-size: 14px; line-height: 2; }
.field-touch { display: none; position: fixed; inset: auto 18px 18px; z-index: 5; align-items: end; justify-content: space-between; pointer-events: none; }
.field-touch[hidden] { display: none !important; }
.field-stick { position: relative; width: 116px; height: 116px; border: 2px solid rgba(250,240,229,.6); border-radius: 50%; background: rgba(51,55,77,.3); touch-action: none; pointer-events: auto; }
.field-stick i { position: absolute; width: 44px; height: 44px; top: 35px; left: 35px; border: 2px solid var(--front-cream); background: var(--front-housing); border-radius: 50%; pointer-events: none; }
.field-stick span { position: absolute; bottom: 8px; width: 100%; text-align: center; color: var(--front-cream); font: 800 9px var(--front-font); }
.field-touch-actions { display: grid; gap: 12px; pointer-events: auto; }
.field-touch-actions button { min-width: 80px; min-height: 46px; border: 2px solid var(--front-cream); border-radius: 14px; background: var(--front-teal-deep); color: var(--front-cream); font: 800 14px var(--front-font); touch-action: none; }
.field-touch-actions [data-touch-dash] { min-height: 74px; }
#boot { color: var(--front-cream) !important; background: var(--front-housing-deep) !important; font-family: var(--front-font) !important; }
.boot-console { width: min(360px,80vw); text-align: center; }
.boot-console img { width: 80px; height: 80px; margin-bottom: 20px; object-fit: contain; }
.boot-console h1 { margin: 0 0 6px; font-size: 30px; letter-spacing: .04em; }
.boot-console p { margin: 8px 0; font-size: 14px; }
.boot-track { margin-top: 22px; height: 6px; overflow: hidden; border-radius: 4px; background: var(--front-housing); }
.boot-track i { display: block; width: 25%; height: 100%; background: var(--front-cream); animation: boot-scan 1.8s ease-in-out infinite; }
@keyframes wren-hover { 50% { translate: 0 -9px; rotate: 2deg; } }
@keyframes boot-scan { 50% { transform: translateX(280%); } }
@media (pointer: coarse) { .field-touch { display: flex; } }
@media (min-width: 1000px) and (max-height: 780px) {
  .front-pages { padding-top: 18px; }
  .front-briefing { padding: 24px 28px 20px; }
  .front-briefing h1 { font-size: 56px; }
  .front-lede { font-size: 15px; margin: 12px 0; }
  .kit-heading { margin-top: 16px; }
  .launch-kit img { width: 46px; height: 46px; }
  .operator-portrait { min-height: 310px; }
  .operator-pim { max-height: 330px; }
  .front-launchbar { padding: 14px 22px; }
}
@media (max-width: 1000px) {
  .front-topbar { grid-template-columns: 130px minmax(0,1fr) 100px; padding-inline: 16px; }
  .front-nav { overflow-x: auto; justify-self: stretch; }
  .front-nav button { white-space: nowrap; padding-inline: 10px; }
  .front-wallet { min-width: 80px; padding: 0 10px; }
  .front-pages { padding: 20px; }
  .front-home { grid-template-columns: minmax(0,1fr) 280px; }
  .front-briefing { padding: 26px; }
  .front-briefing h1 { font-size: 53px; }
  .launch-kit { padding: 10px 8px; }
  .launch-kit strong { font-size: 14px; }
  .launch-kit img { width: 46px; height: 46px; }
  .front-home-footer { flex-wrap: wrap; }
  .history-row { grid-template-columns: minmax(160px,1fr) repeat(2,100px); gap: 16px; }
}
@media (max-width: 760px) {
  .front-topbar { grid-template-columns: 1fr auto; gap: 10px; }
  .front-nav { grid-row: 2; grid-column: 1/-1; }
  .front-wallet { grid-column: 2; grid-row: 1; min-height: 36px; }
  .front-home { grid-template-columns: 1fr; }
  .front-operator { display: none; }
  .front-briefing h1 { font-size: clamp(45px,9vw,68px); }
  .front-lede { font-size: 16px; }
  .front-launchbar { flex-direction: column; align-items: stretch; padding: 20px; gap: 18px; }
  .launch-action .front-primary { min-width: 0; }
  .front-pages { padding: 16px 12px 32px; }
  .front-home-footer { padding: 6px; }
  .front-home-footer .front-docket-preview { flex-wrap: wrap; gap: 8px; }
  .front-briefing { padding: 24px 20px 20px; }
  .launch-kit small { font-size: 9px; letter-spacing: 0; }
  .launch-kit strong { font-size: 13px; min-height: 28px; }
  .launch-kit > span,.launch-kit em { font-size: 10px; }
  .launch-kits { gap: 7px; }
  .history-row { grid-template-columns: 1fr 1fr; }
  .history-row > div { grid-column: 1/-1; }
  .field-pause { padding: 20px; }
  .pause-heading h1 { font-size: 35px; }
  .field-mixer { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .operator-wren,.boot-track i { animation: none; }
  .launch-kit { transition: none; }
  .launch-kit:hover { transform: none; }
}
body.reduce-motion .operator-wren, body.reduce-motion .boot-track i { animation: none; }
