/* MENI (tri crtice) + PRAVILA IGRE. Nezavisno od style-v2.css. */
#menuBtn { width: 34px; height: 30px; margin-left: 6px; padding: 0 7px; display: flex; flex-direction: column; justify-content: center; gap: 4px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; cursor: pointer; flex-shrink: 0; }
#menuBtn span { display: block; height: 2px; border-radius: 2px; background: #e6edf3; }
#menuBtn:hover { background: rgba(0,212,255,0.15); border-color: rgba(0,212,255,0.5); }

#gameMenu { position: fixed; top: 46px; right: 10px; z-index: 2147482000; width: 270px; max-width: calc(100% - 20px);
  background: rgba(13,18,28,0.97); border: 1px solid rgba(0,212,255,0.35); border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  font-family: 'Orbitron', sans-serif; color: #e6edf3; display: none; overflow: hidden; }
#gameMenu.open { display: block; animation: tsMenuIn 0.15s ease-out; }
@keyframes tsMenuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.ts-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 12px; font-weight: 900; letter-spacing: 2px; color: #8b949e; }
.ts-x { width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05);
  color: #fff; font-size: 18px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ts-x:hover { background: rgba(255,71,87,0.25); border-color: #ff4757; }
.ts-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; font-size: 12px; font-weight: 700;
  letter-spacing: 1px; border-bottom: 1px solid rgba(255,255,255,0.05); cursor: pointer; user-select: none; }
.ts-row:last-child { border-bottom: none; }
.ts-row:hover { background: rgba(255,255,255,0.04); }
.ts-switch { width: 42px; height: 24px; border-radius: 12px; background: #30363d; position: relative; transition: background 0.15s; flex-shrink: 0; }
.ts-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #8b949e; transition: all 0.15s; }
.ts-switch.on { background: rgba(46,213,115,0.35); }
.ts-switch.on::after { left: 21px; background: #2ed573; }
.ts-arrow { color: #00d4ff; font-size: 16px; }

#rulesModal { position: fixed; inset: 0; z-index: 2147483000; background: rgba(3,6,12,0.82); display: none; align-items: center; justify-content: center; padding: 16px; }
#rulesModal.open { display: flex; }
.ts-rules { width: 640px; max-width: 100%; max-height: 88vh; display: flex; flex-direction: column; background: #0d121c;
  border: 1px solid rgba(0,212,255,0.35); border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.7); overflow: hidden; }
.ts-rules .ts-head { color: #fff; font-family: 'Orbitron', sans-serif; font-size: 14px; }
.ts-rules-body { overflow-y: auto; padding: 6px 18px 18px; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 14px; line-height: 1.55; color: #c9d1d9; }
.ts-rules-body h3 { font-family: 'Orbitron', sans-serif; font-size: 12px; letter-spacing: 1.5px; color: #00d4ff; margin: 18px 0 6px; }
.ts-rules-body p { margin: 0 0 8px; }
.ts-rules-body ul { margin: 0 0 8px; padding-left: 18px; }
.ts-rules-body li { margin-bottom: 4px; }
.ts-rules-body b { color: #fff; }
.ts-rules-body .gold { color: #ffd700; }

@media (max-width: 999px) {
  #gameMenu { width: 250px; }
  .ts-rules-body { font-size: 13px; }
}

/* Obavijesti platforme (igra pauzirana / pot nedostupan / pristup isključen) — statičan tekst, bez animacija */
#platformNotice { display: none; position: absolute; left: 50%; top: 120px; transform: translateX(-50%); z-index: 40; max-width: 92%;
  background: rgba(13,18,28,0.92); border: 1px solid rgba(255,184,77,0.6); border-radius: 10px; padding: 7px 14px; text-align: center;
  font-family: 'Orbitron', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 1px; color: #ffb84d; pointer-events: none; }
#platformNotice div + div { margin-top: 3px; }
#playerBlocked { position: fixed; inset: 0; z-index: 2147483647; background: rgba(5,8,14,0.94); display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 14px; font-family: 'Orbitron', sans-serif; color: #fff; text-align: center; padding: 20px; }
#playerBlocked .t { font-size: 22px; font-weight: 900; } #playerBlocked .s { font-size: 13px; color: #8b949e; max-width: 420px; font-family: system-ui, sans-serif; }

/* Pregled odigranih rundi (GLI-19 v4 §6.14) — isti prozor kao pravila, zatvara se na X */
#recallModal { position: fixed; inset: 0; z-index: 2147483000; background: rgba(3,6,12,0.82); display: none; align-items: center; justify-content: center; padding: 16px; }
#recallModal.open { display: flex; }
.ts-recall-note { color: #8b949e; font-size: 12px; margin: 10px 0 6px; }
.ts-rc { border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 9px 11px; margin-bottom: 8px; background: rgba(255,255,255,0.02); }
.ts-rc-top { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px; color: #8b949e; }
.ts-rc-top b { color: #fff; }
.ts-rc table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 6px; }
.ts-rc td, .ts-rc th { padding: 3px 4px; text-align: left; border-bottom: 1px solid rgba(255,255,255,0.05); }
.ts-rc th { color: #8b949e; font-weight: 600; }
.ts-rc .win { color: #2ed573; } .ts-rc .lost { color: #ff4757; } .ts-rc .ref { color: #ffb84d; } .ts-rc .jp { color: #ffd700; font-weight: 700; }
.ts-rc-sum { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; margin-top: 6px; color: #c9d1d9; }
#platformNotice.below { position: static; transform: none; max-width: none; margin: 6px 8px 0; font-size: 10px; padding: 6px 10px; }
