/* Giochi al tavolo */
.giochi { max-width: 980px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); padding-bottom: clamp(48px, 8vh, 96px); }
.giochi h1 { font-size: clamp(3.4rem, 10vw, 7rem); margin-bottom: .25em; }
.giochi h1 .spray__line { display: block; }
.giochi__lead { max-width: 52ch; font-size: 1.1rem; font-weight: 500; margin-bottom: 1.6rem; }
.gapp { display: grid; gap: clamp(16px, 2.5vw, 28px); }
.gh { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 1rem; margin: 0 0 .6em; }
.gsmall { color: var(--ink-2); font-size: .95rem; margin: .6em 0 0; }
.gtitle { font-size: clamp(2.4rem, 7vw, 4rem); margin-bottom: .3em; }
.glabel { display: grid; gap: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin: 1.2rem 0 .8rem; }
.ginput { width: 100%; padding: .8em .9em; border: 2px solid var(--ink); background: #fff; color: var(--ink); font: 500 1.05rem/1.3 var(--text); border-radius: 0; }
.ginput:disabled { background: #ECE8DE; color: var(--ink-2); }
.ginput--code { font-family: var(--display); font-weight: 800; font-size: 2.2rem; letter-spacing: .25em; text-transform: uppercase; text-align: center; }
select.ginput { appearance: none; -webkit-appearance: none; }
.gactions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1rem; }
.gactions--two .plate { flex: 1 1 45%; justify-content: center; }
.gactions .plate { cursor: pointer; }
.gmini { background: transparent; border: 1px solid var(--ink-line); padding: .4em .7em; font: 700 .8rem/1 var(--text); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); cursor: pointer; }
.gmini:hover { border-color: var(--ink); }
.ggames { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.ggames h2 { grid-column: 1 / -1; }
.gcard__title { font-family: var(--display); font-weight: 800; font-size: 2rem; text-transform: uppercase; color: var(--red); line-height: .95; margin-bottom: .2em; }
.gcard__sub { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--ink-2); margin-bottom: .6em; }
.gcard p { margin-bottom: .9em; }
.gcard.is-off { opacity: .6; }
.gcard .plate[disabled] { opacity: .5; cursor: default; }

/* barra stanza */
.groom { display: grid; grid-template-columns: auto auto 1fr; gap: 16px 24px; align-items: center; }
.groom__lbl { display: block; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--ink-2); }
.groom__big { display: block; font-size: 3.4rem; line-height: 1; letter-spacing: .12em; color: var(--red); }
.gqr { width: 112px; height: 112px; background: #fff; padding: 4px; }
.gqr svg { width: 100%; height: 100%; display: block; }
.gplayers { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 4px; }
.gplayers li { font-weight: 500; padding: .25em .6em; border: 1px solid var(--ink-line); display: inline-flex; align-items: center; gap: .4em; }
.gplayers li.is-me { border-color: var(--ink); font-weight: 700; }
.gplayers small { color: var(--ink-2); font-size: .8em; }
.gkick { background: none; border: 0; color: var(--red); font-weight: 700; font-size: 1.1em; cursor: pointer; padding: 0 .2em; }
.groom__tools { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--ink-line); padding-top: 12px; }
@media (max-width: 600px) { .groom { grid-template-columns: 1fr auto; } .groom__players { grid-column: 1 / -1; } }

/* palco di gioco */
.gstage { display: grid; gap: 14px; }
.gcount { margin: 0; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; color: var(--ink-2); }
.gbig { font-size: clamp(2.6rem, 9vw, 4.6rem); line-height: .9; }
.gletter { font-size: clamp(6rem, 30vw, 11rem); }
.gstatement { font-size: clamp(1.35rem, 3.4vw, 1.9rem); font-weight: 500; line-height: 1.3; margin: 0; }
.gresult p { margin-bottom: .4em; }
.gboard .gscore { counter-reset: n; }
.gscore li { display: flex; justify-content: space-between; padding: .45em 0; border-top: 1px solid var(--ink-line); font-weight: 500; }
.gscore li:first-child { border-top: 0; padding-top: 0; }
.gscore b { font-family: var(--display); font-weight: 800; font-size: 1.4em; }
.gwait p:last-child { margin: 0; }
.gform { display: grid; gap: 10px; }
.gchoices { display: grid; gap: 10px; }
.gchoice { text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 2px solid transparent; cursor: pointer; font: 500 1.1rem/1.3 var(--text); }
.gchoice:disabled { cursor: default; }
.gchoice.is-mine { border-color: var(--ink); }
.gchoice.is-lie { background: var(--mustard); }
.gchoice.is-true { opacity: .75; }
.gchoice b { font-family: var(--display); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.gteams { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gteam { padding: 10px 12px; border: 2px solid var(--ink-line); }
.gteam.is-on { border-color: var(--ink); background: #fff; }
.gteam span { display: block; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.gteam b { font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1; }
.gteam small { display: block; color: var(--ink-2); font-size: .85rem; }
.gteams .gmini { grid-column: 1 / -1; justify-self: start; }
.gtimer { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 12vw, 5rem); line-height: 1; margin: 0; color: var(--red); }
.gtimer--inline { font-size: 1.4rem; color: var(--red); }
.gtword { font-size: clamp(2.6rem, 10vw, 4.4rem); line-height: .95; margin-bottom: .3em; }
.gtaboo { display: grid; gap: 6px; }
.gtaboo li { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: .35em 0; border-top: 1px solid var(--ink-line); }
.gtcard--hidden { text-align: center; padding: 40px 20px; }
.gncc { display: grid; gap: 14px; }
.gncc__cat h3 { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; margin-bottom: .3em; }
.gncc__cat li { display: grid; grid-template-columns: 7em 1fr auto; gap: 8px; padding: .3em 0; border-top: 1px solid var(--ink-line); align-items: baseline; }
.gncc__tools { grid-column: 1 / -1; display: flex; gap: 6px; padding-bottom: .2em; }
.gncc__cat li.is-no em { text-decoration: none; }
.gncc__cat li span { font-weight: 700; } .gncc__cat li em { font-style: normal; } .gncc__cat li b { font-family: var(--display); font-weight: 800; font-size: 1.2em; }
.gncc__cat li.is-no em { color: var(--ink-2); text-decoration: line-through; }
.gncc__cat li.is-dup b { color: var(--ink-2); }
.gtris { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 360px; }
.gcell { aspect-ratio: 1; background: var(--chalk); border: 2px solid var(--ink); font-family: var(--display); font-weight: 800; font-size: 3.2rem; color: var(--ink); cursor: pointer; }
.gcell:disabled { cursor: default; }
.gcell.is-win { background: var(--mustard); }
.gtoast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px); background: var(--ink); color: var(--chalk); padding: .7em 1em; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 80; max-width: 92vw; }
.gtoast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* home: teaser */
.home-games { max-width: 1480px; margin: 0 auto; padding: 0 var(--gutter); }
.home-games__sheet { max-width: 760px; }
.home-games__title { font-size: clamp(2.6rem, 7vw, 4.6rem); margin-bottom: .35em; }
.home-games p { max-width: 58ch; }

/* colpo basso */
.gactions--three .plate { flex: 1 1 30%; justify-content: center; }
/* dadi */
.gdice { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.gdie { width: 48px; height: 48px; display: inline-grid; place-items: center; background: #fff; border: 2px solid var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.7rem; }
.gdice--small .gdie { width: 32px; height: 32px; font-size: 1.1rem; }
.gdrow { display: grid; grid-template-columns: 7em 1fr; gap: 10px; align-items: center; padding: .3em 0; border-top: 1px solid var(--ink-line); font-weight: 700; }
.gbid { margin: 0; font-size: 1.2rem; font-weight: 500; display: flex; align-items: center; gap: .4em; }
.gbid b { font-family: var(--display); font-weight: 800; font-size: 1.8rem; }
.gbid .gdie { width: 36px; height: 36px; font-size: 1.2rem; }
.gstep { display: grid; gap: 12px; }
.gstep__row { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 10px; }
.gstep__row span { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; }
.gstep__row b { font-family: var(--display); font-weight: 800; font-size: 2rem; min-width: 1.4em; text-align: center; }
.gstep__row .gmini { font-size: 1.2rem; padding: .35em .8em; }
/* suggerimenti */
.gsug { display: grid; gap: 10px; margin-bottom: 8px; }
.gsug .glabel { margin: 0; }
.gsug textarea { resize: vertical; font-family: var(--text); }
.gsug .plate { justify-self: start; }
/* battaglia navale */
.gnav { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; max-width: 300px; margin-bottom: 10px; }
.gnav__c { aspect-ratio: 1; background: #fff; border: 1px solid var(--ink-line); display: grid; place-items: center; cursor: pointer; padding: 0; }
.gnav__c:disabled { cursor: default; }
.gnav__c.is-ship { background: var(--ink-2); }
.gnav__c.is-miss { background: #DCD8CE; }
.gnav__c.is-miss::after { content: ''; width: 8px; height: 8px; background: var(--ink-2); border-radius: 50%; }
.gnav__c.is-hit { background: var(--red); }
.gnav__c.is-hit::after { content: ''; width: 12px; height: 12px; background: var(--chalk); }
.gnav--foe .gnav__c:not(:disabled):hover { border-color: var(--ink); }

/* colpo basso: le mani */
.gduel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 10px 0; }
.gduel__side { display: grid; justify-items: center; gap: 6px; }
.gduel__name { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }
.gduel__vs { font-size: 2rem; color: var(--red); }
.ghand { width: clamp(96px, 28vw, 150px); color: var(--ink); }
.ghand svg { width: 100%; height: auto; display: block; }
.ghand--a { transform: rotate(90deg); }
.ghand--b { transform: rotate(-90deg) scaleX(-1); }
.ghand--pick { width: 44px; margin-right: .2em; color: inherit; }
.gpick { align-items: center; }
@media (prefers-reduced-motion: no-preference) {
  .ghand--a.is-pump { animation: pump-a .45s ease-in-out 3; }
  .ghand--b.is-pump { animation: pump-b .45s ease-in-out 3; }
  .ghand.is-snap { animation: snap .35s cubic-bezier(.2, 1.4, .4, 1) 1; }
}
@keyframes pump-a { 0%, 100% { transform: rotate(90deg) translateX(0); } 50% { transform: rotate(90deg) translateX(-22px); } }
@keyframes pump-b { 0%, 100% { transform: rotate(-90deg) scaleX(-1) translateX(0); } 50% { transform: rotate(-90deg) scaleX(-1) translateX(-22px); } }
@keyframes snap { 0% { scale: .7; } 100% { scale: 1; } }
.gduel__line { opacity: 1; transition: opacity .2s; }
.gduel:not(.is-revealed) + .gduel__line { opacity: 0; }
/* impiccato: il disegno */
.ghang { width: clamp(120px, 36vw, 190px); }
.ghang svg { width: 100%; height: auto; display: block; }
.ghang path, .ghang circle { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ghang__part { opacity: 0; }
.ghang__part.is-on { opacity: 1; }
.ghang__part.is-on path, .ghang__part.is-on circle { stroke: var(--red); stroke-dasharray: 200; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) { .ghang__part.is-on path, .ghang__part.is-on circle { animation: draw .5s ease-out; } }
@keyframes draw { from { stroke-dashoffset: 200; } to { stroke-dashoffset: 0; } }
.gword { display: flex; flex-wrap: wrap; gap: 6px 4px; margin: 0; }
.gword__l { width: 1.4em; height: 1.7em; display: inline-grid; place-items: center; border-bottom: 3px solid var(--ink); font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 6vw, 2.6rem); }
.gword__sp { width: 1em; }
.gkeys { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.gkey { aspect-ratio: 1; display: grid; place-items: center; background: var(--chalk); border: 2px solid var(--ink); font-family: var(--display); font-weight: 800; font-size: 1.4rem; cursor: pointer; }
.gkey:disabled, .gkeys--off .gkey { opacity: .35; cursor: default; }
.gkeys--off .gkey.is-hit { opacity: 1; background: var(--mustard); }
.gkeys--off .gkey.is-miss { opacity: 1; background: var(--ink); color: var(--chalk); }
@media (max-width: 420px) { .gkeys { grid-template-columns: repeat(6, 1fr); } }
.gncc__cat li em small { color: var(--ink-2); font-size: .8em; }

/* briscola */
.gcard-b { width: 96px; aspect-ratio: 5 / 8; background: transparent; border: 0; padding: 0; cursor: default; display: block; }
.gcard-b svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 4px rgba(0,0,0,.25)); }
button.gcard-b { cursor: pointer; transition: transform .15s var(--ease-out); }
button.gcard-b:not(:disabled):hover { transform: translateY(-8px); }
button.gcard-b:disabled { opacity: .55; cursor: default; }
.gcard-b--small { width: 64px; }
.gbris__table { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.gbris__bris { display: grid; gap: 4px; justify-items: start; }
.gbris__lbl { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--ink-2); }
.gbris__suit { display: inline-flex; align-items: center; gap: .35em; font-family: var(--display); font-weight: 800; font-size: 1.6rem; text-transform: uppercase; }
.gbris__suit svg { width: 32px; height: 32px; }
.gbris__played { display: flex; gap: 16px; justify-content: center; min-height: 160px; align-items: center; flex-wrap: wrap; }
.gbris__slot { display: grid; justify-items: center; gap: 4px; }
.gbris__slot small { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .7rem; }
.gbris__hand { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 420px) { .gcard-b { width: 84px; } .gbris__hand { gap: 8px; } .gbris__table { grid-template-columns: 1fr; } }

/* opzioni di gioco */
.gopts { display: flex; flex-wrap: wrap; gap: 8px; }
.gopts--col { flex-direction: column; }
.gopt { background: #fff; border: 2px solid var(--ink-line); padding: .6em .9em; font: 700 .95rem/1.2 var(--text); text-align: left; cursor: pointer; display: flex; gap: .7em; align-items: center; }
.gopt.is-on { border-color: var(--ink); background: var(--mustard); }
.gopt:disabled { opacity: .45; cursor: default; }
.gopt--toggle b { font-family: var(--display); font-weight: 800; font-size: 1.1rem; min-width: 2em; }
.gopt small { display: block; font-weight: 400; color: var(--ink-2); font-size: .82rem; }

.gteampick { display: grid; gap: 6px; }
.gteampick__row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; }
.gteampick__row span { font-weight: 700; }
.gteampick__row .gopt { padding: .5em 1em; }
