/* =====================================================================
   Slipstream — stil vizual (carbon, roșu de curse, steag în carouri)
   ===================================================================== */
:root {
  --bg: #0c0d10;
  --bg-2: #13151a;
  --surface: #181b21;
  --surface-2: #20242c;
  --line: #2a2f39;
  --text: #f3f4f6;
  --muted: #9aa1ad;
  --red: #e2231a;
  --red-2: #ff3b30;
  --red-dim: rgba(226, 35, 26, .14);
  --yellow: #ffcc00;
  --green: #2fbf71;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --container: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 var(--font); min-height: 100vh; display: flex; flex-direction: column;
}
body.no-scroll { overflow: hidden; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; letter-spacing: .01em; text-transform: uppercase; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.1rem; color: var(--muted); letter-spacing: .08em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.eyebrow { font-family: var(--display); color: var(--red-2); letter-spacing: .18em; text-transform: uppercase; font-weight: 600; font-size: .95rem; margin-bottom: .6em; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 26px; height: 3px; background: var(--red); border-radius: 2px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
ul.plain { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  font: 600 .95rem var(--font); text-decoration: none; transition: transform .12s, background .2s, border-color .2s, opacity .2s;
  white-space: nowrap; color: var(--text); background: var(--surface-2);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 20px rgba(226, 35, 26, .35); }
.btn-primary:hover { background: var(--red-2); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-danger { background: transparent; border-color: rgba(255, 59, 48, .45); color: #ff8a80; }
.btn-danger:hover { background: rgba(255, 59, 48, .12); }
.btn-sm { padding: 7px 14px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn.loading { position: relative; color: transparent !important; }
.btn.loading::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 8px; display: inline-flex; }
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- Antet ---------- */
#site-header { position: sticky; top: 0; z-index: 50; background: rgba(12, 13, 16, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.demo-bar { background: var(--yellow); color: #111; text-align: center; font-size: .82rem; padding: 6px 12px; font-weight: 500; }
.demo-bar a { font-weight: 700; }
.nav-wrap { max-width: var(--container); margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .logo-mark { width: 40px; height: 40px; flex: none; }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand b { font-family: var(--display); font-size: 1.45rem; text-transform: uppercase; letter-spacing: .03em; }
.brand small { color: var(--muted); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 9px 14px; border-radius: 999px; font-weight: 500; font-size: .95rem; color: var(--muted); transition: color .2s, background .2s; display: inline-flex; align-items: center; gap: 8px; }
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.active { color: var(--text); background: var(--surface-2); }
.nav a.nav-account { color: var(--text); border: 1px solid var(--line); margin-left: 8px; }
.avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; display: inline-grid; place-items: center; font-size: .78rem; font-weight: 700; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); padding: 8px; cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px 16px 18px; display: none; }
  #site-header.open .nav { display: flex; }
  .nav a { padding: 13px 14px; font-size: 1.05rem; }
  .nav a.nav-account { margin: 8px 0 0; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; min-height: min(86vh, 760px); display: flex; align-items: center; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(ellipse 60% 70% at 85% 30%, rgba(226, 35, 26, .35), transparent 70%),
  radial-gradient(ellipse 50% 60% at 10% 90%, rgba(226, 35, 26, .12), transparent 70%),
  linear-gradient(180deg, #111318, #0c0d10);
  background-size: cover; background-position: center; }
.hero-bg.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12, 13, 16, .94) 0%, rgba(12, 13, 16, .72) 55%, rgba(12, 13, 16, .35) 100%), linear-gradient(0deg, var(--bg), transparent 40%); }
.hero-lines { position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none; }
.hero-content { max-width: 720px; padding: 72px 0; }
.hero-content p.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #cfd3da; max-width: 560px; margin-bottom: 1.8em; }
.hero h1 .accent { color: var(--red-2); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 44px; color: var(--muted); font-size: .9rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 18px; height: 18px; color: var(--red-2); }
.open-now { display: flex; width: fit-content; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; margin-bottom: 22px; }
.open-now i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.open-now.is-open i { background: var(--green); box-shadow: 0 0 0 4px rgba(47, 191, 113, .2); }

.announcement { background: var(--red); color: #fff; text-align: center; padding: 11px 20px; font-weight: 600; }

.checker-strip { height: 14px; background-image: conic-gradient(#fff 25%, #111 0 50%, #fff 0 75%, #111 0); background-size: 14px 14px; opacity: .9; }

/* ---------- Carduri ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .ic { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: var(--red-dim); color: var(--red-2); margin-bottom: 18px; }
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: .35em; }
.feature p { color: var(--muted); margin: 0; }

.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }
.about-text p { color: #cfd3da; font-size: 1.08rem; }
.hours-card h3 { display: flex; align-items: center; gap: 10px; }
.hours-card h3 svg { width: 22px; height: 22px; color: var(--red-2); }
.hours-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.hours-list li:last-child { border: 0; }
.hours-list li.today { color: var(--text); font-weight: 600; }
.hours-list li.today span:first-child::after { content: ' · azi'; color: var(--red-2); font-weight: 500; }
.hours-list li span:last-child { font-variant-numeric: tabular-nums; color: var(--muted); }
.hours-list li.today span:last-child { color: var(--text); }

/* ---------- Evenimente ---------- */
.events-list { display: grid; gap: 18px; }
.event-card { display: grid; grid-template-columns: 96px 1fr auto; gap: 22px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; transition: border-color .2s, transform .15s; }
.event-card:hover { border-color: #3a404c; }
.event-card.has-img { grid-template-columns: 180px 1fr auto; padding: 14px 22px 14px 14px; }
.event-card .ev-img { width: 180px; height: 120px; object-fit: cover; border-radius: 10px; }
.date-badge { width: 96px; height: 96px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.date-badge::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--red); }
.date-badge b { font-family: var(--display); font-size: 2.4rem; line-height: 1; }
.date-badge span { text-transform: uppercase; font-size: .8rem; letter-spacing: .12em; color: var(--muted); }
.event-card h3 { margin: 4px 0 6px; }
.event-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .9rem; }
.event-meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-meta svg { width: 16px; height: 16px; }
.tag { display: inline-block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--red-dim); color: #ff8a80; }
.tag-gray { background: var(--surface-2); color: var(--muted); }
.tag-green { background: rgba(47, 191, 113, .15); color: #6ee7a8; }
.tag-yellow { background: rgba(255, 204, 0, .14); color: var(--yellow); }
.event-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.seats { font-size: .85rem; color: var(--muted); }
.seats-bar { width: 140px; height: 5px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.seats-bar i { display: block; height: 100%; background: var(--red); }
.event-desc { color: #cfd3da; margin: 10px 0 0; font-size: .95rem; }
@media (max-width: 760px) {
  .event-card, .event-card.has-img { grid-template-columns: 72px 1fr; padding: 16px; gap: 16px; }
  .event-card .ev-img { display: none; }
  .event-card.has-img { grid-template-columns: 1fr; }
  .date-badge { width: 72px; height: 72px; }
  .date-badge b { font-size: 1.8rem; }
  .event-actions { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .seats-bar { width: 90px; }
}
.empty { text-align: center; padding: 48px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty svg { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--line); }

/* ---------- Meniu ---------- */
.menu-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.chip { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 8px 16px; border-radius: 999px; cursor: pointer; font: 500 .9rem var(--font); }
.chip.active, .chip:hover { color: var(--text); border-color: var(--red); }
.chip.active { background: var(--red-dim); }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 40px; }
.menu-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.menu-item .mi-main { flex: 1; min-width: 0; }
.menu-item b { font-size: 1.05rem; }
.menu-item p { color: var(--muted); font-size: .9rem; margin: 2px 0 0; }
.menu-item .price { font-family: var(--display); font-size: 1.3rem; color: var(--text); white-space: nowrap; }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 4/3; background: var(--surface); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; font-size: .85rem; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--red-dim); color: var(--red-2); display: grid; place-items: center; flex: none; }
.contact-item .ic svg { width: 22px; height: 22px; }
.contact-item a { text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }

/* ---------- CTA jocuri ---------- */
.cta-games { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.cta-games canvas { width: 100%; aspect-ratio: 16/10; border-radius: var(--radius); border: 1px solid var(--line); background: #1b3a1e; }
@media (max-width: 860px) { .cta-games { grid-template-columns: 1fr; } }

/* ---------- Subsol ---------- */
#site-footer { background: #08090b; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 44px; padding-bottom: 28px; }
.footer-grid li { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; color: var(--muted); }
.footer-grid li svg { width: 18px; height: 18px; flex: none; color: var(--red-2); }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--text); }
.footer-grid .brand { margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 18px; padding-bottom: 26px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.socials a:hover { color: #fff; border-color: var(--red); background: var(--red); }
.socials svg { width: 20px; height: 20px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Formulare ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .85rem; font-weight: 600; color: #cfd3da; }
.field .hint { font-size: .8rem; color: var(--muted); }
input, textarea, select {
  width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 11px 13px; font: 400 1rem var(--font); transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-dim); }
textarea { min-height: 110px; resize: vertical; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--red); }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .95rem; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }

/* ---------- Cont ---------- */
.auth-wrap { max-width: 460px; margin: 0 auto; }
.tabs { display: flex; background: var(--bg-2); border: 1px solid var(--line); padding: 4px; border-radius: 999px; margin-bottom: 24px; }
.tabs button { flex: 1; background: none; border: 0; color: var(--muted); padding: 10px; border-radius: 999px; font: 600 .95rem var(--font); cursor: pointer; }
.tabs button.active { background: var(--surface-2); color: var(--text); }
.account-grid { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .account-grid { grid-template-columns: 1fr; } }
.profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.profile-head .avatar { width: 56px; height: 56px; font-size: 1.4rem; }
.role-badge { font-size: .72rem; }
.my-events li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.my-events li:last-child { border: 0; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .7); z-index: 170; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); width: 100%; max-width: 520px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: var(--shadow); }
.modal-wide { max-width: 760px; }
.modal header, .modal footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; }
.modal header { border-bottom: 1px solid var(--line); }
.modal header h3 { margin: 0; }
.modal footer { border-top: 1px solid var(--line); justify-content: flex-end; }
.modal-body { padding: 20px; overflow: auto; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Notificări ---------- */
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--surface-2); border: 1px solid var(--line); border-left: 4px solid var(--green); padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow); animation: up .2s; font-size: .95rem; }
.toast-err { border-left-color: var(--red-2); }
.toast.out { opacity: 0; transform: translateY(8px); transition: .3s; }
@keyframes up { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Pagini interioare ---------- */
.page-head { padding: 56px 0 32px; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 50% 100% at 90% 0%, rgba(226, 35, 26, .18), transparent 70%); }
.page-head p { color: var(--muted); max-width: 640px; margin: 0; }

/* ---------- Panou manager ---------- */
.admin-layout { display: grid; grid-template-columns: 230px 1fr; gap: 28px; padding: 32px 0 64px; align-items: start; }
.admin-nav { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 4px; }
.admin-nav button { text-align: left; background: none; border: 0; color: var(--muted); padding: 11px 14px; border-radius: 10px; font: 500 .95rem var(--font); cursor: pointer; display: flex; align-items: center; gap: 10px; }
.admin-nav button svg { width: 18px; height: 18px; }
.admin-nav button:hover { background: var(--surface); color: var(--text); }
.admin-nav button.active { background: var(--surface-2); color: var(--text); box-shadow: inset 3px 0 0 var(--red); }
@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
  .admin-nav { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .admin-nav button { white-space: nowrap; }
}
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.panel-head h2 { margin: 0; font-size: 2rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--bg-2); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat b { font-family: var(--display); font-size: 2rem; display: block; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .85rem; }
.hours-editor .hrow { display: grid; grid-template-columns: 110px 1fr 1fr auto; gap: 10px; align-items: center; margin-bottom: 10px; }
@media (max-width: 560px) { .hours-editor .hrow { grid-template-columns: 1fr 1fr; } }
.img-preview { width: 100%; max-height: 180px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); margin-top: 8px; }
.gallery-admin figure { position: relative; }
.gallery-admin .del { position: absolute; top: 8px; right: 8px; }
.feature-editor { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 12px; }

/* ---------- Jocuri ---------- */
.games-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; padding: 28px 0 64px; align-items: start; }
@media (max-width: 1000px) { .games-layout { grid-template-columns: 1fr; } }
.game-picker { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.game-picker button { flex: 1; min-width: 180px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); cursor: pointer; text-align: left; font: inherit; }
.game-picker button.active { border-color: var(--red); background: var(--red-dim); }
.game-picker button b { font-family: var(--display); font-size: 1.3rem; text-transform: uppercase; display: block; line-height: 1.1; }
.game-picker button small { color: var(--muted); }
.game-picker .gi { font-size: 1.8rem; }
.game-stage { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; user-select: none; -webkit-user-select: none; touch-action: none; }
.game-stage canvas { width: 100%; height: 100%; display: block; }
.game-stage:fullscreen { border-radius: 0; aspect-ratio: auto; }
.game-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(8, 9, 11, .72); padding: 20px; text-align: center; }
.game-overlay[hidden] { display: none; }
.game-overlay .box { max-width: 460px; }
.game-overlay h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
.game-overlay .big-time { font-family: var(--display); font-size: clamp(2.4rem, 7vw, 3.6rem); color: var(--yellow); line-height: 1; margin: 8px 0 14px; }
.keys { display: inline-grid; grid-template-columns: auto auto; gap: 6px 14px; text-align: left; font-size: .88rem; color: #cfd3da; margin: 10px 0 20px; }
kbd { background: var(--surface-2); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 6px; padding: 1px 7px; font: 600 .8rem var(--font); }
.touch-controls { position: absolute; inset: auto 0 0 0; display: none; justify-content: space-between; padding: 12px; pointer-events: none; }
.touch-controls .grp { display: flex; gap: 10px; pointer-events: auto; }
.touch-controls button { width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .45); color: #fff; font: 700 1.3rem var(--font); touch-action: none; }
.touch-controls button.on { background: rgba(226, 35, 26, .75); border-color: var(--red-2); }
.touch-controls button.hb { font-size: .72rem; }
@media (hover: none), (pointer: coarse) {
  .touch-controls { display: flex; }
  .game-stage { aspect-ratio: 4 / 5; max-height: 78vh; }
  .touch-controls button { width: 58px; height: 58px; }
}
@media (hover: none) and (orientation: landscape), (pointer: coarse) and (orientation: landscape) {
  .game-stage { aspect-ratio: 16 / 9; max-height: 88vh; }
}
.game-toolbar { display: flex; gap: 8px; justify-content: space-between; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.lb-list li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: center; font-size: .93rem; }
.lb-list li:last-child { border: 0; }
.lb-list .pos { font-family: var(--display); font-size: 1.2rem; color: var(--muted); text-align: center; }
.lb-list li:nth-child(1) .pos { color: var(--yellow); }
.lb-list li:nth-child(2) .pos { color: #d7dbe2; }
.lb-list li:nth-child(3) .pos { color: #d08b4a; }
.lb-list li.me { color: var(--yellow); }
.lb-list .t { font-variant-numeric: tabular-nums; font-weight: 600; }
.lb-list .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fade-in { animation: up .4s both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Rezervări ---------- */
.res-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; padding: 32px 20px 56px; align-items: start; }
@media (max-width: 960px) { .res-layout { grid-template-columns: 1fr; } }
.res-form h3 { display: flex; align-items: center; gap: 10px; margin: 22px 0 12px; font-size: 1.25rem; }
.res-form h3:first-child { margin-top: 0; }
.step { width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; display: inline-grid; place-items: center; font-size: .95rem; }
.day-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.day-chip { flex: none; width: 66px; padding: 8px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; scroll-snap-align: start; font: inherit; }
.day-chip b { font-family: var(--display); font-size: 1.6rem; line-height: 1; }
.day-chip small { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.day-chip.active { border-color: var(--red); background: var(--red-dim); }
.day-chip:disabled { opacity: .35; cursor: not-allowed; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slot { padding: 10px 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font: 600 .95rem var(--font); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.slot small { font-size: .68rem; font-weight: 500; color: var(--yellow); }
.slot.active { border-color: var(--red); background: var(--red); color: #fff; }
.slot.active small { color: #fff; }
.slot:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.slot:disabled small { color: var(--muted); text-decoration: none; }
.picked-game { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: var(--radius-sm); }
.res-summary { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 8px; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.game-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.game-card.picked { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.gc-img { aspect-ratio: 16/9; background: linear-gradient(135deg, #20242c, #15171c); display: grid; place-items: center; font-size: 3rem; }
.gc-img img { width: 100%; height: 100%; object-fit: cover; }
.gc-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.gc-body h3 { margin: 4px 0 2px; }
.gc-body p { margin: 4px 0; }
.gc-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.status-tabs { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Subsol extins, pagini legale, cookie ---------- */
.footer-grid-4 { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
@media (max-width: 960px) { .footer-grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid-4 { grid-template-columns: 1fr; } }
.footer-links a { display: block; color: var(--muted); padding: 4px 0; font-size: .93rem; }
.footer-links a:hover { color: var(--text); }
.company-info { font-size: .82rem; color: var(--muted); line-height: 1.55; margin-top: 10px; }
.anpc-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.anpc-badges a { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 11px; font-size: .78rem; font-weight: 600; color: #cfd3da; text-decoration: none; background: var(--bg-2); line-height: 1.2; }
.anpc-badges a:hover { border-color: var(--muted); }
.anpc-badges b { color: #fff; font-size: .9rem; letter-spacing: .04em; }
.legal-doc { max-width: 820px; }
.legal-doc h2 { font-size: 1.7rem; margin-top: 1.6em; }
.legal-doc h3 { font-size: 1.25rem; margin-top: 1.3em; }
.legal-doc p, .legal-doc li { color: #cfd3da; }
.legal-doc ul { padding-left: 20px; }
.legal-toc { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 150; max-width: 720px; margin: 0 auto; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; animation: up .3s; }
.cookie-bar p { margin: 0; flex: 1; min-width: 220px; font-size: .9rem; color: #cfd3da; }
.map-box { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 24px; aspect-ratio: 16/7; background: var(--surface); display: grid; place-items: center; text-align: center; }
.map-box iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 640px) { .map-box { aspect-ratio: 4/3; } }
.danger-zone { border-color: rgba(255, 59, 48, .35); }
.guest-form { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-top: 10px; text-align: left; }
.guest-form input { padding: 9px 11px; font-size: .92rem; }
.res-layout > *, .games-layout > *, .admin-layout > * { min-width: 0; }

/* ---------- Grand Theft Slipstream ---------- */
.gts-ui { position: absolute; inset: 0; display: flex; align-items: flex-start; justify-content: center; padding: 14px; background: rgba(8, 9, 11, .55); z-index: 5; overflow: auto; }
.gts-ui[hidden] { display: none; }
.gts-dialog { margin: auto; background: rgba(19, 21, 26, .97); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; width: min(520px, 100%); max-height: 100%; overflow: auto; box-shadow: var(--shadow); }
.gts-dh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.gts-dh b { font-family: var(--display); font-size: 1.5rem; text-transform: uppercase; }
.gts-money { color: #6ee7a8; font-weight: 600; font-size: .85rem; white-space: nowrap; }
.gts-dialog p { color: #cfd3da; font-size: .92rem; margin: 0 0 12px; }
.gts-opts { display: grid; gap: 6px; }
.gts-opt { display: flex; align-items: center; gap: 10px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; color: var(--text); font: inherit; cursor: pointer; }
.gts-opt:hover:not(:disabled) { border-color: var(--red); }
.gts-opt:disabled { opacity: .45; cursor: not-allowed; }
.gts-opt .k { width: 22px; height: 22px; border-radius: 6px; background: var(--surface-2); display: grid; place-items: center; font-size: .75rem; font-weight: 700; flex: none; }
.gts-opt span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.gts-opt small { color: var(--muted); font-size: .78rem; }
.gts-opt em { font-style: normal; color: #ffcc00; font-weight: 700; font-size: .88rem; white-space: nowrap; }
.gts-timer { height: 6px; background: var(--surface-2); border-radius: 3px; overflow: hidden; margin-bottom: 12px; }
.gts-timer i { display: block; height: 100%; background: var(--red); animation: gtsbar linear forwards; }
@keyframes gtsbar { from { width: 100%; } to { width: 0; } }
.gts-create { width: min(640px, 100%); }
.gts-create-grid { display: grid; grid-template-columns: 150px 1fr; gap: 14px; }
@media (max-width: 560px) { .gts-create-grid { grid-template-columns: 1fr; } .gts-preview canvas { width: 130px !important; } }
.gts-preview { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gts-preview canvas { width: 150px; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.gts-preview small { color: var(--muted); }
.gts-l { display: block; font-size: .74rem; font-weight: 600; color: #cfd3da; margin: 8px 0 4px; text-transform: uppercase; letter-spacing: .06em; }
.gts-row { display: flex; gap: 6px; flex-wrap: wrap; }
.gts-row .chip { padding: 6px 12px; font-size: .85rem; }
.gts-sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; box-shadow: inset 0 0 0 2px rgba(0,0,0,.35); }
.gts-sw.on { border-color: #fff; transform: scale(1.1); }
.gts-perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
@media (max-width: 640px) { .gts-perks { grid-template-columns: 1fr 1fr; } }
.gts-perk { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: var(--text); font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.gts-perk.on { border-color: var(--red); background: var(--red-dim); }
.gts-perk small { color: var(--muted); font-size: .72rem; line-height: 1.3; }
.gts-actions { display: flex; justify-content: flex-end; margin-top: 14px; }
.gts-dialog input { padding: 9px 11px; }

.game-stage.is-gts { aspect-ratio: 16 / 11; }
@media (hover: none), (pointer: coarse) { .game-stage.is-gts { aspect-ratio: 3 / 4; } }
