:root {
  --bg: #0f1419; --panel: #1a2029; --panel2: #232b37; --line: #2f3a49;
  --text: #e8edf3; --muted: #8b98a9; --accent: #f5b942; --green: #1f7a4d; --felt: #14573a;
  --red: #e5484d; --ok: #3ecf8e; --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); transition: background .4s; color: var(--text); font: 15px/1.4 system-ui, "Segoe UI", sans-serif; }
button { font: inherit; cursor: pointer; border: 0; border-radius: 8px; padding: 9px 16px; background: var(--panel2); color: var(--text); border: 1px solid var(--line); transition: .15s; }
button:hover:not(:disabled) { border-color: var(--accent); }
button:disabled { opacity: .4; cursor: not-allowed; }
button.primary { background: var(--accent); color: #241a00; border-color: var(--accent); font-weight: 600; }
button.danger { background: transparent; color: var(--red); border-color: var(--red); }
button.small { padding: 5px 10px; font-size: 13px; }
input, select { font: inherit; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; width: 100%; }
input:focus, select:focus { outline: none; border-color: var(--accent); }
label { display: block; color: var(--muted); font-size: 13px; margin: 12px 0 4px; }
h1, h2, h3 { margin: 0; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; }
.spacer { flex: 1; }

/* login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 30% 20%, #1c3a2c, var(--bg) 60%); }
.login-card { width: 100%; max-width: 380px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 32px; }
.login-card h1 { font-size: 28px; margin-bottom: 4px; }
.login-card .err { color: var(--red); min-height: 20px; margin-top: 10px; font-size: 14px; }
.login-card button { width: 100%; margin-top: 18px; padding: 12px; }

/* top bar */
.top { display: flex; align-items: center; gap: 12px; padding: 12px 24px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.top .brand { font-weight: 700; font-size: 18px; cursor: pointer; }
.top .brand span { color: var(--accent); }
.page { max-width: 1100px; margin: 0 auto; padding: 24px; }

/* home */
.hero { margin-bottom: 20px; }
.hero h2 { font-size: 24px; }
.join-box { display: flex; gap: 10px; margin: 18px 0 28px; max-width: 420px; }
.join-box input { text-transform: uppercase; letter-spacing: 4px; text-align: center; font-weight: 700; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.game-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; cursor: pointer; transition: .15s; }
.game-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.game-card .ico { font-size: 44px; line-height: 1; }
.game-card h3 { margin: 12px 0 4px; font-size: 20px; }
.game-card p { margin: 0; color: var(--muted); font-size: 14px; }
.game-card .tag { display: inline-block; margin-top: 12px; font-size: 12px; color: var(--accent); background: rgba(245,185,66,.1); padding: 3px 9px; border-radius: 99px; }
.game-card.soon { opacity: .45; cursor: default; }
.game-card.soon:hover { transform: none; border-color: var(--line); }

/* lists */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.lobby-item { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; margin-top: 10px; background: var(--panel2); }
.lobby-item .code { font-family: ui-monospace, monospace; font-weight: 700; letter-spacing: 3px; color: var(--accent); }
.badge { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--line); color: var(--muted); }
.badge.live { background: rgba(62,207,142,.15); color: var(--ok); }
.empty { text-align: center; padding: 30px; color: var(--muted); }

/* room */
.room { display: grid; grid-template-columns: 1fr 340px; gap: 20px; }
@media (max-width: 800px) { .room { grid-template-columns: 1fr; } .page { padding: 14px; } }
.bigcode { font: 700 44px ui-monospace, monospace; letter-spacing: 8px; color: var(--accent); cursor: pointer; }
.player-list .p { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--panel2); margin-top: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.dot.on { background: var(--ok); }
.chat-log { height: 260px; overflow-y: auto; background: var(--bg); border-radius: 8px; padding: 10px; font-size: 14px; margin-bottom: 8px; }
.chat-log b { color: var(--accent); }

/* modal & toast */
#modal { position: fixed; inset: 0; background: rgba(0,0,0,.65); display: grid; place-items: center; z-index: 20; padding: 16px; overflow: auto; }
.modal-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px; width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; }
.modal-card.wide { max-width: 640px; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 30; display: grid; gap: 8px; }
#toast div { background: var(--red); color: #fff; padding: 10px 18px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
#toast div.ok { background: var(--green); }
table.users { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
table.users td { padding: 7px 4px; border-bottom: 1px solid var(--line); }

/* game area */
.gamebar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.table { background: var(--felt-bg, radial-gradient(ellipse at center, #1b7a52, var(--felt) 70%)); border: 6px solid #3a2a17; border-radius: 28px; padding: 22px; min-height: 420px; box-shadow: inset 0 0 60px rgba(0,0,0,.4); }
.banner { text-align: center; padding: 12px; margin-top: 14px; border-radius: 10px; background: rgba(0,0,0,.35); }
.banner.win { background: rgba(62,207,142,.2); border: 1px solid var(--ok); }

/* cartes */
.cards { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; min-height: 84px; }
.card { width: 58px; height: 84px; border-radius: 7px; background: #fff; color: #111; display: flex; flex-direction: column; justify-content: space-between; padding: 5px 6px; font-weight: 700; font-size: 18px; box-shadow: 0 2px 6px rgba(0,0,0,.4); user-select: none; }
.card.red { color: #d22; }
.card .s { align-self: flex-end; font-size: 24px; line-height: 1; }
.card.back { background: repeating-linear-gradient(45deg, #2b4c9b, #2b4c9b 5px, #1f3a7a 5px, #1f3a7a 10px); border: 3px solid #fff; }
.card.small { width: 40px; height: 58px; font-size: 13px; padding: 3px 4px; }
.card.small .s { font-size: 16px; }

/* poker / blackjack sièges */
.seats { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 18px; }
.seat { background: rgba(0,0,0,.35); border: 2px solid transparent; border-radius: 14px; padding: 12px; min-width: 150px; text-align: center; }
.seat.turn { border-color: var(--accent); box-shadow: 0 0 18px rgba(245,185,66,.5); }
.seat.me .nm { color: var(--accent); }
.seat.folded { opacity: .45; }
.seat .nm { font-weight: 700; margin-bottom: 4px; }
.seat .chips { color: #cfe; font-size: 14px; }
.seat .bet { color: var(--accent); font-size: 13px; min-height: 18px; }
.seat .st { font-size: 12px; margin-top: 4px; min-height: 16px; }
.seat.win .st, .st.win { color: var(--ok); font-weight: 700; }
.seat.lose .st { color: #f99; }
.dealerbtn { display: inline-block; background: #fff; color: #000; border-radius: 50%; width: 20px; height: 20px; font-size: 12px; line-height: 20px; font-weight: 700; }
.center-info { text-align: center; margin: 8px 0; }
.pot { display: inline-block; background: rgba(0,0,0,.4); padding: 4px 16px; border-radius: 99px; margin-bottom: 10px; }
.controls { margin-top: 16px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; align-items: center; }
.controls input[type=number] { width: 110px; }

/* uno */
.uno-table { border-color: #111; }
.ucard { width: 64px; height: 96px; border-radius: 9px; border: 3px solid #fff; display: grid; place-items: center; font-weight: 800; font-size: 26px; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.5); position: relative; user-select: none; flex: none; }
.ucard.R { background: #d8322f; } .ucard.V { background: #2f9d4b; } .ucard.B { background: #2467c9; } .ucard.J { background: #e8b90c; color: #222; }
.ucard.W { background: conic-gradient(#d8322f 0 25%, #2467c9 0 50%, #2f9d4b 0 75%, #e8b90c 0); }
.ucard.W span { background: rgba(0,0,0,.6); border-radius: 6px; padding: 1px 6px; }
.ucard.back { background: #111; color: #d8322f; font-size: 15px; }
.ucard.mini { width: 34px; height: 50px; font-size: 13px; border-width: 2px; }
.hand { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.hand .ucard { cursor: default; opacity: .55; }
.hand .ucard.ok { opacity: 1; cursor: pointer; transform: translateY(-8px); }
.hand .ucard.ok:hover { transform: translateY(-16px); }
.opp { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.opp .o { background: rgba(0,0,0,.35); padding: 8px 14px; border-radius: 10px; border: 2px solid transparent; text-align: center; }
.opp .o.turn { border-color: var(--accent); }
.piles { display: flex; gap: 28px; justify-content: center; align-items: center; margin: 22px 0 6px; }
.colorpill { width: 26px; height: 26px; border-radius: 50%; display: inline-block; vertical-align: middle; border: 2px solid #fff; }
.colorpill.R { background: #d8322f; } .colorpill.V { background: #2f9d4b; } .colorpill.B { background: #2467c9; } .colorpill.J { background: #e8b90c; }
.colorpick { display: flex; gap: 12px; justify-content: center; margin-top: 12px; }
.colorpick .colorpill { width: 54px; height: 54px; cursor: pointer; }
.log { text-align: center; color: var(--muted); font-size: 13px; min-height: 18px; margin-top: 10px; }

/* échecs */
.chess-wrap { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.board { display: grid; grid-template-columns: repeat(8, 1fr); width: min(560px, 92vw); aspect-ratio: 1; border: 6px solid #3a2a17; border-radius: 6px; }
.sq { display: grid; place-items: center; font-size: min(52px, 9vw); line-height: 1; position: relative; cursor: default; user-select: none; }
.sq.l { background: #ecd9b0; } .sq.d { background: #ae7d52; }
.sq.sel { background: #f5d76e !important; }
.sq.last::after { content: ""; position: absolute; inset: 0; background: rgba(255,220,0,.3); }
.sq.hint::before { content: ""; width: 28%; height: 28%; border-radius: 50%; background: rgba(0,0,0,.28); position: absolute; }
.sq.hint.cap::before { width: 86%; height: 86%; background: none; border: 5px solid rgba(0,0,0,.28); }
.sq.mv { cursor: pointer; }
.sq.chk { background: radial-gradient(circle, #ff4d4d, transparent 75%) !important; }
.pc.w { color: #fff; text-shadow: 0 0 2px #000, 0 0 2px #000, 0 0 3px #000; }
.pc.b { color: #1a1a1a; text-shadow: 0 0 1px #fff; }
.coord { position: absolute; font-size: 10px; color: rgba(0,0,0,.5); font-family: system-ui; }
.coord.f { right: 2px; bottom: 1px; } .coord.r { left: 2px; top: 1px; }
.side { width: 240px; }
.hist { height: 240px; overflow-y: auto; background: var(--bg); border-radius: 8px; padding: 10px; font-family: ui-monospace, monospace; font-size: 13px; }
.pname { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--panel2); border-radius: 8px; margin-bottom: 8px; border: 2px solid transparent; }
.pname.turn { border-color: var(--accent); }

/* catégories */
.cat { margin-top: 30px; }
.cat h3 { font-size: 18px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.cat h3 .count { font-size: 12px; color: var(--muted); font-weight: 400; }
.tabs { display: flex; gap: 8px; margin: 6px 0 6px; flex-wrap: wrap; }
.tabs button.on { background: var(--accent); color: #241a00; border-color: var(--accent); }
.login-card .switch { margin-top: 14px; text-align: center; font-size: 14px; color: var(--muted); }
.login-card .switch a { color: var(--accent); cursor: pointer; }

/* morpion */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(330px, 86vw); margin: 0 auto; }
.tcell { aspect-ratio: 1; font-size: 60px; padding: 0; background: rgba(0,0,0,.35); border: 2px solid rgba(255,255,255,.15); color: #fff; }
.tcell.X { color: #f5b942; } .tcell.O { color: #6cc4ff; } .tcell.hl { background: rgba(62,207,142,.35); }
.tcell:disabled { opacity: 1; cursor: default; }
.tcell:not(:disabled):hover { background: rgba(255,255,255,.12); }

/* pions */
.disc { display: inline-block; width: 80%; height: 80%; border-radius: 50%; }
.disc.sm { width: 16px; height: 16px; }
.disc.p0 { background: rgba(0,0,0,.35); box-shadow: inset 0 2px 6px rgba(0,0,0,.6); }
.disc.p1 { background: #e5484d; box-shadow: inset 0 -4px 6px rgba(0,0,0,.3); }
.disc.p2 { background: #f5c542; box-shadow: inset 0 -4px 6px rgba(0,0,0,.3); }
.disc.hl { outline: 4px solid #fff; } .disc.last { animation: pop .3s; }
@keyframes pop { from { transform: scale(.5); } to { transform: scale(1); } }
.p4board { display: grid; grid-template-columns: repeat(7, 1fr); width: min(490px, 92vw); margin: 0 auto; background: #1f4fb5; padding: 8px; border-radius: 14px; gap: 4px; }
.p4c { aspect-ratio: 1; display: grid; place-items: center; }
.p4c.clk { cursor: pointer; } .p4c.clk:hover { background: rgba(255,255,255,.12); border-radius: 8px; }
.oboard { display: grid; grid-template-columns: repeat(8, 1fr); width: min(520px, 92vw); margin: 0 auto; border: 6px solid #3a2a17; aspect-ratio: 1; }
.ocell { background: #1a8a50; border: 1px solid rgba(0,0,0,.35); display: grid; place-items: center; position: relative; }
.ocell.clk { cursor: pointer; } .ocell.clk:hover { background: #22a35f; }
.ocell.last { box-shadow: inset 0 0 0 3px #f5b942; }
.ocell .disc { width: 78%; height: 78%; }
.disc.ob { background: radial-gradient(circle at 35% 30%, #555, #000); } .disc.ow { background: radial-gradient(circle at 35% 30%, #fff, #bbb); }
.hintdot { width: 22%; height: 22%; border-radius: 50%; background: rgba(0,0,0,.3); }
.dboard .dcell { display: grid; place-items: center; }
.dcell.lt { background: #ecd9b0; } .dcell.dk { background: #8b5a2b; }
.dcell.clk { cursor: pointer; } .dcell.sel { background: #d9a441 !important; } .dcell.tgt { box-shadow: inset 0 0 0 4px rgba(62,207,142,.9); } .dcell.last { box-shadow: inset 0 0 0 3px #f5b942; }
.dpc { width: 74%; height: 74%; border-radius: 50%; display: grid; place-items: center; font-size: min(28px, 5vw); box-shadow: 0 3px 5px rgba(0,0,0,.5), inset 0 -3px 5px rgba(0,0,0,.25); }
.dpc.w { background: #f1f1f1; color: #b8860b; } .dpc.b { background: #b3241f; color: #ffd76a; }

/* pfc */
.pfc-btn { font-size: 46px; padding: 14px 22px; line-height: 1.1; } .pfc-btn small { font-size: 13px; color: var(--muted); }
.pfc-last { display: flex; gap: 24px; justify-content: center; align-items: center; font-size: 64px; margin: 10px 0; }

/* memory */
.mgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; width: min(520px, 94vw); margin: 0 auto; }
.mcard { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-size: min(38px, 7vw); background: repeating-linear-gradient(45deg, #2b4c9b, #2b4c9b 6px, #1f3a7a 6px, #1f3a7a 12px); border: 3px solid #fff; user-select: none; }
.mcard.clk { cursor: pointer; } .mcard.clk:hover { filter: brightness(1.2); }
.mcard.s1, .mcard.s2 { background: #fff; } .mcard.s2 { opacity: .55; border-color: var(--ok); }
.mcard span { pointer-events: none; }

/* yams */
.die { width: 62px; height: 62px; border-radius: 12px; background: #fff; color: #111; display: grid; place-items: center; font-size: 54px; line-height: 1; box-shadow: 0 3px 8px rgba(0,0,0,.4); user-select: none; }
.die.clk { cursor: pointer; } .die.kept { background: var(--accent); transform: translateY(-8px); }
.ytable { border-collapse: collapse; margin: 0 auto; min-width: 320px; background: rgba(0,0,0,.3); border-radius: 10px; }
.ytable th, .ytable td { padding: 6px 14px; border-bottom: 1px solid rgba(255,255,255,.1); text-align: center; }
.ytable td:first-child { text-align: left; } .ytable th.turn { color: var(--accent); }
.ytable td.yp { color: var(--accent); background: rgba(245,185,66,.1); } .ytable td.yp.clk { cursor: pointer; font-weight: 700; } .ytable td.yp:hover { background: rgba(245,185,66,.3); }
.ytable tr.sub td, .ytable tr.tot td { font-weight: 700; background: rgba(255,255,255,.06); }

/* 8 américain */
.hand .card.hc { width: 62px; height: 92px; opacity: .55; }
.hand .card.hc.ok { opacity: 1; cursor: pointer; transform: translateY(-8px); } .hand .card.hc.ok:hover { transform: translateY(-16px); }
.piles .card { width: 62px; height: 92px; }

/* roulette */
.rboard { display: flex; gap: 4px; justify-content: center; max-width: 100%; overflow-x: auto; }
.rz .rc { height: 100%; min-width: 34px; }
.rnums { display: grid; grid-template-columns: repeat(12, minmax(30px, 46px)); gap: 3px; }
.rc { display: grid; place-items: center; padding: 7px 4px; border-radius: 6px; font-weight: 700; cursor: pointer; border: 2px solid rgba(255,255,255,.2); user-select: none; background: rgba(0,0,0,.4); font-size: 14px; }
.rc.r { background: #b3241f; } .rc.k { background: #151515; } .rc.g { background: #1f7a4d; }
.rc:hover { border-color: var(--accent); } .rc.win { border-color: #fff; box-shadow: 0 0 12px #fff; }
.rout { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 8px auto 0; max-width: 560px; }
.rball { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font-size: 26px; font-weight: 800; border: 3px solid #fff; }
.rball.sm { width: 28px; height: 28px; font-size: 13px; border-width: 2px; }
.rball.r { background: #b3241f; } .rball.k { background: #151515; } .rball.g { background: #1f7a4d; }
.rhist { display: flex; gap: 4px; justify-content: center; margin: 8px 0; flex-wrap: wrap; }
.coin { display: inline-grid; place-items: center; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe08a, #c9962b); color: #5a3f00; font-weight: 800; font-size: 22px; border: 4px solid #a67a1c; box-shadow: 0 4px 12px rgba(0,0,0,.5); }

/* gomoku */
.gboard { display: grid; grid-template-columns: repeat(15, 1fr); width: min(600px, 94vw); aspect-ratio: 1; margin: 0 auto; background: #d9a95b; border: 6px solid #3a2a17; border-radius: 4px; }
.gcell { position: relative; display: grid; place-items: center; }
.gcell::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(60,35,10,.7); }
.gcell::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: rgba(60,35,10,.7); }
.gcell.clk { cursor: pointer; } .gcell.clk:hover { background: rgba(255,255,255,.25); }
.gstone { position: relative; z-index: 1; width: 82%; height: 82%; border-radius: 50%; display: inline-block; box-shadow: 0 2px 3px rgba(0,0,0,.5); }
.gstone.sm { width: 16px; height: 16px; }
.gstone.g1 { background: radial-gradient(circle at 35% 30%, #666, #000); } .gstone.g2 { background: radial-gradient(circle at 35% 30%, #fff, #bbb); }
.gstone.hl { outline: 3px solid #e5484d; } .gstone.last { box-shadow: 0 0 0 3px #3ecf8e; }

/* got five */
.gtile { width: 44px; height: 54px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #fff; border: 3px solid rgba(255,255,255,.85); box-shadow: 0 2px 5px rgba(0,0,0,.5); user-select: none; }
.gtile.sm { width: 34px; height: 42px; font-size: 17px; border-width: 2px; }
.gtile.hid { background: repeating-linear-gradient(45deg, #444, #444 5px, #333 5px, #333 10px); color: #bbb; }
.gtile.clk { cursor: pointer; } .gtile.clk:hover { transform: translateY(-4px); }
.gtile.sel { outline: 3px solid var(--accent); transform: translateY(-6px); }
.gdot { display: inline-block; width: 16px; height: 16px; border-radius: 4px; vertical-align: middle; }
.gsheet { border-collapse: collapse; background: rgba(0,0,0,.3); border-radius: 8px; }
.gsheet th, .gsheet td { padding: 4px 8px; text-align: center; min-width: 30px; font-size: 14px; }
.gsheet td[data-mark] { cursor: pointer; } .gsheet td[data-mark]:hover { background: rgba(255,255,255,.15); }
.gsheet td.auto { text-decoration: line-through; opacity: .3; } .gsheet td.mark { text-decoration: line-through; color: #f99; opacity: .75; }
.ghints { max-width: 380px; font-size: 13px; text-align: left; } .ghint { padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.ghint .gtile { display: inline-grid; vertical-align: middle; }

.gcn { font-size: 12px; opacity: .85; }
.gsheet tr.nothave td { opacity: .35; }
.gsheet tr.held td:first-child { font-weight: 700; }
.gsheet td.auto { text-decoration: line-through; opacity: .3; }

.gtile.c0, .gdot.c0 { background: #22a35a; }
.gtile.c1, .gdot.c1 { background: #f472b6; }
.gtile.c2, .gdot.c2 { background: #3b82f6; }
.gtile.c3, .gdot.c3 { background: #e5484d; }
.gtile.c4, .gdot.c4 { background: #f97316; }

.gpad { align-items: center; flex-wrap: wrap; row-gap: 6px; }
.gtile.placed { border-style: dashed; border-color: var(--accent); opacity: .95; position: relative; }
.gtile.placed.cmp { transform: scale(.85); }
.gtile .gmark { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #241a00; border-radius: 6px; font-size: 13px; line-height: 1; padding: 1px 5px; font-weight: 800; }

.pips { display: block; font-style: normal; font-size: 9px; line-height: 1; letter-spacing: 1px; margin-top: 1px; opacity: .85; }
.gtile { flex-direction: column; align-content: center; }
.gsheet .pips { font-size: 7px; color: inherit; }

.gtile.sm { height: 48px; }
.gtile.sm .pips { font-size: 8px; }

.gtile.inl { display: inline-grid; vertical-align: middle; margin: 0 6px; }

.grail { display: flex; justify-content: center; align-items: stretch; }
.gcol { display: flex; flex-direction: column; align-items: center; }
.gcol.gap { width: 8px; } .gcol.gap.has { width: auto; padding: 0 3px; }
.gcol .gr { min-height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0 2px; }
.gcol .gr.top { justify-content: flex-end; } .gcol .gr.bot { justify-content: flex-start; }
.gtile.placed.cmp { transform: none; }

/* champ mot de passe */
.pwbox { position: relative; }
.pwbox input { padding-right: 46px; }
.pwbox .eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); padding: 4px 9px; background: none; border: 0; font-size: 16px; }
.login-card .pwbox .eye { width: auto; margin: 0; padding: 4px 9px; }

/* mode admin */
.god { margin-top: 22px; background: var(--panel); border: 2px dashed var(--accent); border-radius: 14px; padding: 16px; }
.god .gsec { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.god .gh { font-weight: 600; color: var(--accent); margin-bottom: 8px; font-size: 14px; }
.god .grow2 { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-end; }
.god .gn { text-align: center; } .god .gn small { display: block; color: var(--muted); font-size: 11px; }
.god .gp { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.god .gnum { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--text); font-size: 13px; }
.god .gnum input, .god .gnum select { width: 90px; padding: 5px 8px; }
.god .gclick { cursor: pointer; display: inline-block; } .god .gclick:hover { outline: 2px solid var(--accent); border-radius: 8px; }
.god .gpicker { background: var(--bg); border: 1px solid var(--accent); border-radius: 10px; padding: 12px; margin-bottom: 8px; position: sticky; top: 56px; z-index: 4; max-height: 60vh; overflow: auto; }
.god .gsecret { display: inline-flex; align-items: center; gap: 4px; }
.god .gsecret select { width: 62px; padding: 3px 4px; }
.god .ggrid { display: grid; gap: 2px; margin: 0 auto 8px 0; }
.god .gcellx { background: var(--panel2); aspect-ratio: 1; display: grid; place-items: center; cursor: pointer; border-radius: 4px; font-size: 18px; user-select: none; }
.god .gcellx:hover { background: var(--line); }
.god .gmem { max-width: 420px; margin: 0; } .god .gmem .mcard.gsel { outline: 3px solid var(--accent); }

.banner.absent { background: rgba(245,185,66,.12); border: 1px solid var(--accent); margin: 0 0 12px; text-align: left; }
.banner.resume { background: rgba(62,207,142,.12); border: 1px solid var(--ok); margin-bottom: 18px; }
