/* GoTurnio - giochi del roster (Fase 5): Reversi, Super Tris, Punti e Linee, Dama, Quarto, CodeBreaker, Scacchi */
.rv,.db,.ck,.ch,.ut,.qt,.cb{width:100%;max-width:460px;margin:0 auto;user-select:none;touch-action:manipulation}
.rv-score{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:0 0 8px;min-height:30px}
.rv-dot{display:inline-block;width:12px;height:12px;border-radius:50%;margin-right:6px;vertical-align:-1px}
.rv-svg,.db-svg,.ck-svg,.ch-svg,.ut-svg{width:100%;height:auto;display:block}
@keyframes popIn{from{transform:scale(.3);opacity:0}}
@keyframes flipDisc{50%{transform:scaleX(.05)}}
@keyframes glowPulse{50%{filter:brightness(1.5)}}

/* Reversi */
.rv-bg{fill:#13673f}.rv-cell{fill:none;stroke:rgba(0,0,0,.38);stroke-width:1.3}
.rv-hit{fill:transparent;cursor:pointer}.rv-hit:hover{fill:rgba(255,255,255,.07)}
.rv-d{transform-box:fill-box;transform-origin:center;stroke:rgba(0,0,0,.4);stroke-width:1.5}
.rv-d.new{animation:popIn .3s var(--ease)}.rv-d.flip{animation:flipDisc .45s ease-in-out}
.rv-d.last{stroke:#fff;stroke-width:2.5}.rv-hint{opacity:.45;pointer-events:none}

/* Super Tris */
.ut-b{fill:var(--bg-card-alt);stroke:var(--border-idle);stroke-width:1.5}
.ut-b.act{stroke:var(--accent-to);stroke-width:2.5}.ut-b.mine{animation:glowPulse 1.4s ease-in-out infinite}
.ut-line{stroke:rgba(255,255,255,.32);stroke-width:1.6;stroke-linecap:round;fill:none}
.ut-mark{transform-box:fill-box;transform-origin:center}.ut-mark.new{animation:popIn .3s var(--ease)}
.ut-mark.last{filter:drop-shadow(0 0 4px #fff)}.ut-won{opacity:.22}.ut-draw{fill:rgba(255,255,255,.07)}
.ut-mark.big{opacity:.95}.ut-hit{fill:transparent;cursor:pointer}.ut-hit:hover{fill:rgba(255,255,255,.08)}
.ut-info{text-align:center;margin-top:8px;min-height:20px}

/* Punti e Linee */
.db-dot{fill:#c9d0ff}.db-hit{stroke:transparent;stroke-width:22;stroke-linecap:round;cursor:pointer}
.db-hit:hover{stroke:rgba(255,255,255,.2)}.db-line{stroke-width:6;stroke-linecap:round}.db-line.last{filter:drop-shadow(0 0 5px #fff)}
.db-box{opacity:.85}.db-box.new{transform-box:fill-box;transform-origin:center;animation:popIn .35s var(--ease)}

/* Dama */
.ck-l{fill:#e8d3a8}.ck-d{fill:#7b4a2a}.ck-hit{fill:transparent;cursor:pointer}
.ck-p{transition:transform .25s var(--ease)}.ck-p.new .ck-body{animation:popIn .3s var(--ease);transform-box:fill-box;transform-origin:center}
.ck-body{stroke:rgba(0,0,0,.45);stroke-width:2}.ck-ring{fill:none;stroke:rgba(255,255,255,.4);stroke-width:1.5}.ck-crown{fill:#ffd166;stroke:#9a6a00;stroke-width:.8}
.ck-p.last .ck-body{stroke:#fff;stroke-width:3}.ck-sel{fill:rgba(255,209,102,.4)}.ck-pick{fill:rgba(255,255,255,.5)}.ck-go{fill:rgba(34,197,94,.75)}

/* Scacchi */
.ch-l{fill:#ecd9b0}.ch-d{fill:#a8683a}.ch-hit{fill:transparent;cursor:pointer}
.ch-p{font-size:36px;pointer-events:none;stroke:rgba(0,0,0,.55);stroke-width:1px;paint-order:stroke}.ch-p.w{fill:#fff}.ch-p.b{fill:#16162b;stroke:rgba(255,255,255,.35)}
.ch-p.new{animation:popIn .25s var(--ease)}.ch-sel{fill:rgba(255,209,102,.55)}.ch-last{fill:rgba(255,214,102,.32)}.ch-check{fill:rgba(239,68,68,.6)}
.ch-go{fill:rgba(20,20,40,.35)}.ch-cap{fill:none;stroke:rgba(239,68,68,.75);stroke-width:4}.ch-promo{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.ch-promo .btn{font-size:34px;padding:8px}

/* Quarto */
.qt{display:grid;gap:10px}.qt-board{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:8px;border-radius:18px;background:var(--bg-card-alt);border:1px solid var(--border-idle)}
.qt-cell{aspect-ratio:1;border-radius:14px;background:var(--bg-primary);border:2px solid var(--border-idle);display:grid;place-items:center;padding:0}
.qt-cell:not(:disabled):hover{border-color:var(--accent-to)}.qt-cell.sel{border-color:var(--accent-to);box-shadow:var(--glow)}.qt-cell.last{border-color:#fff}
.qt-piece{display:block;filter:drop-shadow(0 3px 3px rgba(0,0,0,.5))}.qt-hand{display:flex;justify-content:center}
.qt-given{display:flex;align-items:center;gap:12px;padding:6px 14px;border-radius:16px;background:var(--bg-card-alt);border:1px solid var(--accent-to)}
.qt-pool{display:grid;grid-template-columns:repeat(8,1fr);gap:6px}.qt-opt{display:grid;place-items:center;padding:4px 0;border-radius:10px;background:var(--bg-card-alt);border:2px solid var(--border-idle)}
.qt-opt.sel{border-color:var(--accent-to);box-shadow:var(--glow)}.qt-info{text-align:center;color:var(--text-muted);font-weight:700;min-height:22px}.qt-ok[hidden]{display:none}

/* CodeBreaker */
.cb-cols{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cb-t{display:block;margin-bottom:6px;text-transform:uppercase;font-size:14px}
.cb-row{display:flex;align-items:center;gap:4px;padding:3px 5px;border-radius:10px;background:var(--bg-card-alt);margin-bottom:3px}.cb-row.e{opacity:.4}
.cb-peg{display:inline-block;width:20px;height:20px;border-radius:50%;background:var(--bg-primary);border:2px solid var(--border-idle);flex:none;text-align:center;line-height:16px;font-size:11px;font-style:normal;color:var(--text-muted)}
.cb-fb{display:grid;grid-template-columns:repeat(2,9px);gap:2px;margin-left:auto}.cb-fb i{width:9px;height:9px;border-radius:50%;background:var(--border-idle)}.cb-fb i.k{background:#fff}.cb-fb i.w{background:#ff9a3d}
.cb-secret{display:flex;align-items:center;gap:4px;margin-top:6px;flex-wrap:wrap}.cb-input{display:grid;gap:8px;justify-items:center;margin-top:12px;text-align:center}
.cb-draft,.cb-palette{display:flex;gap:10px}.cb-slot{width:46px;height:46px;border-radius:50%;border:2px dashed var(--border-idle);display:grid;place-items:center;padding:0}.cb-slot.f{border-style:solid}
.cb-slot .cb-peg{width:34px;height:34px}.cb-pick{width:42px;height:42px;border-radius:50%;border:3px solid rgba(255,255,255,.7)}.cb-pick:active{transform:scale(.9)}
