:root { --felt:#0f5132; --felt2:#0b3d26; --gold:#f5c542; --red:#c62828; }
* { box-sizing:border-box; }
body { margin:0; font-family:system-ui,Segoe UI,sans-serif; color:#fff; min-height:100vh;
       background:radial-gradient(circle at center,var(--felt),var(--felt2)); background-attachment:fixed; }
header { padding:10px 16px; display:flex; justify-content:space-between; align-items:center; background:rgba(0,0,0,.35); }
h1 { margin:0; font-size:22px; letter-spacing:.5px; } h1 span { color:var(--gold); }
h2 { font-size:18px; color:var(--gold); margin:24px 0 10px; }
.view { display:none; padding:12px 16px; max-width:1100px; margin:auto; }
.panel { background:rgba(0,0,0,.35); border-radius:12px; padding:20px; }
.narrow { max-width:380px; margin:50px auto; } .center { text-align:center; }
input { padding:10px; font-size:16px; border-radius:8px; border:none; width:100%; margin:6px 0; }
button { padding:9px 16px; font-size:15px; border:none; border-radius:8px; cursor:pointer; font-weight:600; background:#ddd; }
button:hover { filter:brightness(1.1); } button:disabled { opacity:.5; cursor:default; }
.primary { background:var(--gold); } .wide { width:100%; margin-top:8px; }
.ghost { background:rgba(255,255,255,.15); color:#fff; }
.err { color:#ff8a80; min-height:20px; text-align:center; }
.tabs { display:flex; gap:6px; margin-bottom:10px; } .tabs button { flex:1; background:rgba(255,255,255,.15); color:#fff; }
.tabs button.on { background:var(--gold); color:#111; }
#userbar { display:flex; gap:10px; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
#langSel { padding:6px 8px; border-radius:8px; border:none; background:rgba(255,255,255,.15); color:#fff; font-size:14px; cursor:pointer; }
#langSel option { color:#111; }
.grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:12px; }
.gcard { background:rgba(0,0,0,.35); border-radius:12px; padding:14px; display:flex; flex-direction:column; gap:8px; }
.gcard h3 { margin:0; } .gcard p { margin:0; opacity:.85; font-size:14px; flex:1; }
.gcard.off { opacity:.55; }
.trow { display:flex; justify-content:space-between; align-items:center; gap:10px; background:rgba(0,0,0,.3);
        padding:10px 14px; border-radius:10px; margin-bottom:8px; flex-wrap:wrap; }
.muted { opacity:.7; }
.tablebar { display:flex; justify-content:space-between; align-items:center; margin-bottom:6px; }
#toast { position:fixed; bottom:20px; left:50%; transform:translateX(-50%); background:#222; padding:10px 18px;
         border-radius:8px; display:none; max-width:90%; }

/* karte - zajedničko za sve igre */
.card { width:70px; height:100px; background:#fff; color:#111; border-radius:8px; display:inline-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,.5); user-select:none; position:relative; }
.card .mid { text-align:center; font-size:30px; }
.card .br { align-self:flex-end; transform:rotate(180deg); }
.card.red { color:var(--red); }
@media (max-width:700px){ .card{width:52px;height:76px;font-size:14px;} .card .mid{font-size:22px;} }
