/* «Ce la fai a comprare GTA 6 oggi?» (gta.mjs, 19 novembre 2026): sopra site.css e today.css, con gli stessi pezzi
   (.fs, .fld, .money, .seg, .out-card, la cifra sulla linea d'acqua). In più: due gruppi nel modulo (cosa compri, il
   tuo mese), le console come segmenti a due colonne, la riga «aspetta» in ambra e il pulsante per condividere le ore.
   Nessun colore, carattere o immagine del gioco: la pagina resta Freeboard. */
.gt-form { gap: 24px; }
.gt-set { display: grid; gap: 16px; min-width: 0; margin: 0; padding: 0; border: 0; }
.gt-set + .gt-set { padding-top: 24px; border-top: 1px solid var(--hair); }
.gt-set > legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; font-weight: 800; font-size: 21px; line-height: 1.25; color: var(--ink); }
.gt-set > legend + * { clear: both; }
.gt-set .fld-l { margin: 0 0 -8px; }

/* edizione e console: segmenti a griglia, il prezzo sotto il nome */
.gt-ed, .gt-cons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.gt-cons .gt-none { grid-column: 1 / -1; }
.gt-ed label, .gt-cons label { min-height: 56px; padding: 9px 12px 7px; font-size: 16px; line-height: 1.2; }
.gt-ed small, .gt-cons small { font-family: var(--num); font-stretch: 92%; font-variant-numeric: tabular-nums lining-nums; }
.gt-cons .gt-none small { font-family: inherit; font-stretch: normal; }

.gt-cost .money input { font-weight: 700; }
.money .unit-h { right: 14px; font-size: 15px; }
#gt-pay { padding-right: 60px; }

/* la risposta: ore di lavoro in evidenza, «aspetta» in ambra quando regge solo con i soldi che devono entrare */
.gt-hours { color: var(--ink); font-weight: 700; }
.gt-wait { color: var(--warn); font-weight: 700; }
.td-out.wait .td-fig { color: var(--ink); }
.gt-share { order: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 24px 0 0; }
.gt-share .btn-line[hidden] { display: none; }
.gt-shared { font-size: 15px; font-weight: 700; color: var(--good); }
.gt-shared:empty { display: none; }

/* il rimando tra le due pagine GTA 6 (calcolatore del costo e pianificatore dei soldi nel gioco) */
.gt-also { margin-top: 48px; max-width: 640px; }
.gt-also h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -.015em; }
.gt-also p { margin-top: 8px; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.gt-also a { font-weight: 700; color: var(--ink); }

.gt-prices .tbl { margin: 0 18px; overflow-x: auto; }
.gt-prices table { width: 100%; border-collapse: collapse; font-size: 15px; }
.gt-prices th, .gt-prices td { padding: 8px 10px 6px; text-align: right; white-space: nowrap; }
.gt-prices th[scope=row], .gt-prices thead td { text-align: left; padding-left: 0; }
.gt-prices tbody th { font-weight: 700; color: var(--ink); }
.gt-prices tbody td { font-family: var(--num); font-stretch: 92%; font-variant-numeric: tabular-nums lining-nums; color: var(--ink-2); }
.gt-prices thead th { font-weight: 700; font-size: 14px; color: var(--ink-3); }
.gt-prices tbody tr + tr > * { border-top: 1px solid var(--hair); }
.td-how + .gt-prices { margin-top: -40px; }
.gt-prices + .gt-legal { margin-top: -32px; }
.gt-legal { max-width: 70ch; margin: 0 0 56px; font-size: 14px; line-height: 1.5; color: var(--ink-3); }

@media (max-width: 600px) {
  .gt-form { gap: 16px; }
  .gt-set { gap: 16px; }
  .gt-set > legend { font-size: 19px; }
  .gt-ed label, .gt-cons label { font-size: 15px; padding: 8px 10px 6px; }
  .gt-prices .tbl { margin: 0 12px; }
  .gt-prices th, .gt-prices td { padding: 8px 4px 6px; font-size: 13.5px; }
  .gt-prices tbody th { white-space: normal; min-width: 7em; }
}
:root[data-theme="light"] .gt-shared { color: var(--ink); }

/* «Annulla» dopo aver tolto una riga o ricominciato dall'esempio: la barra compare sotto il pulsante, con il focus sopra
   (usata dalle due pagine GTA 6) */
.gp-undo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 8px 0 0; padding: 8px 8px 8px 16px; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hair); font-weight: 700; font-size: 16px; color: var(--ink); }
.gp-reset { margin: 0; padding-top: 24px; border-top: 1px solid var(--hair); }

/* Giro UX del 19/11, seconda parte (critica impeccable). Campo non valido come nei calcolatori (.calc-tool); i campi
   non finiscono sotto la riga corta che ripete la cifra quando ci si arriva col focus; la tabella dei prezzi senza la
   seconda cornice dentro il riquadro che si apre; niente app per telefono (beta) sotto il modulo: non c'entrano qui. */
.td-tool input[aria-invalid="true"] { border-color: var(--warn); border-width: 3px; }
.td-form :is(input, select) { scroll-margin-top: 136px; }
.gt-prices .tbl { margin-top: 0; border-radius: 0; background: none; box-shadow: none; }
.gt-page .wl-beta, .gp-page .wl-beta { display: none; }

/* La condivisione al primo posto (scelta di Valerio del 19/11 per chi arriva dal gioco): pulsante pieno nella risposta
   e in chiusura, Freeboard in seconda battuta con la demo */
.gt-share-end { margin-top: 24px; }
.gt-real { margin-top: 24px; max-width: 60ch; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.gt-real a { font-weight: 700; color: var(--ink); }
