/* =====================================================================
   Slipstream — componentele platformei interactive
   (comenzi la masă, bar live, jocuri, comunitate, TV). Mobile-first.
   ===================================================================== */
:root {
  --amber: #ffb400;
  --tab-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --carbon: repeating-linear-gradient(45deg, rgba(255,255,255,.018) 0 2px, transparent 2px 6px), repeating-linear-gradient(-45deg, rgba(0,0,0,.25) 0 2px, transparent 2px 6px);
}

/* ---------- Antet: logo, „Mai mult”, clopoțel ---------- */
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--yellow); color: #111; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 8px; }
.brand .logo-img { height: 46px; width: auto; display: block; }
.brand-footer .logo-img { height: 64px; }
.nav-wrap { gap: 12px; }
.nav-right { display: flex; align-items: center; gap: 6px; }
.nav-right .nav-account { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; font-weight: 500; font-size: .92rem; min-height: 40px; }
.nav-right .nav-account.active { background: var(--surface-2); }
.nav-right .nav-account:not(:has(.avatar)) { padding: 8px 16px; }
.acc-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-img { border-radius: 50%; object-fit: cover; display: inline-block; flex: none; }
.avatar { flex: none; }
.more { position: relative; }
.more-btn { background: none; border: 0; color: var(--muted); font: 500 .95rem var(--font); padding: 9px 14px; border-radius: 999px; cursor: pointer; }
.more-btn:hover, .more-btn.active, .more-btn[aria-expanded=true] { color: var(--text); background: var(--surface); }
.more-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; box-shadow: var(--shadow); z-index: 60; }
.more-menu a { display: flex !important; gap: 10px; padding: 11px 12px !important; border-radius: 10px !important; }
.nav a.nav-staff { color: var(--yellow); }
.bell { position: relative; color: var(--text); width: 42px; height: 42px; justify-content: center; align-items: center; }
.bell .badge { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font: 700 .7rem/18px var(--font); text-align: center; }
.notif-panel { position: absolute; right: max(12px, calc((100vw - var(--container)) / 2 + 12px)); top: calc(100% + 6px); width: min(380px, calc(100vw - 24px)); max-height: 70vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 70; }
.notif-panel header { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); }
.notif-panel li a, .notif-panel li > div { display: grid; gap: 2px; padding: 12px 14px; text-decoration: none; border-bottom: 1px solid var(--line); }
.notif-panel li span { color: #cfd3da; font-size: .9rem; }
.notif-panel li small { color: var(--muted); font-size: .78rem; }
.notif-panel li.unread a, .notif-panel li.unread > div { background: rgba(200, 20, 28, .07); box-shadow: inset 3px 0 0 var(--red); }
@media (max-width: 1180px) {
  .more { width: 100%; }
  .more-btn { display: none; }
  .more-menu { display: block !important; position: static; border: 0; box-shadow: none; background: none; padding: 0; min-width: 0; }
  .more-menu[hidden] { display: block !important; }
  .acc-name { display: none; }
  .nav-right .nav-account { padding: 4px; }
  .brand .logo-img { height: 40px; }
}
.linkish { background: none; border: 0; color: var(--muted); font: inherit; padding: 0; cursor: pointer; text-align: left; }
.linkish:hover { color: var(--text); }

/* ---------- Bara de jos (telefon) ---------- */
#tabbar { display: none; }
@media (max-width: 860px) {
  #tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: rgba(12, 13, 16, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding-bottom: var(--safe-b); }
  #tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: var(--tab-h); text-decoration: none; color: var(--muted); font-size: .7rem; font-weight: 600; letter-spacing: .02em; }
  #tabbar a svg { width: 23px; height: 23px; }
  #tabbar a.active { color: var(--text); }
  #tabbar a.active svg { color: var(--red-2); }
  #tabbar a span { max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  body:has(#tabbar) { padding-bottom: calc(var(--tab-h) + var(--safe-b)); }
  body:has(#tabbar) #toasts { bottom: calc(var(--tab-h) + var(--safe-b) + 12px); }
  body:has(#tabbar) .cookie-bar { bottom: calc(var(--tab-h) + var(--safe-b) + 8px); }
}
#offline-bar { position: sticky; top: 0; z-index: 80; background: var(--yellow); color: #111; text-align: center; padding: 9px 14px; font-weight: 700; font-size: .88rem; }

/* ---------- Utilitare ---------- */
.skeleton { border-radius: 12px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; margin-bottom: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.btn-lg { padding: 15px 26px; font-size: 1.02rem; min-height: 52px; }
.btn-xl { padding: 18px 30px; font-size: 1.15rem; min-height: 60px; font-family: var(--display); font-stretch: 75%; letter-spacing: .06em; text-transform: uppercase; }
.btn-yellow { background: var(--yellow); color: #111; }
.btn-green { background: var(--green); color: #06210f; }
.btn:active { transform: scale(.98); }
.chip-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row .chip { flex: none; }
.chip { min-height: 38px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .78rem; font-weight: 600; color: #cfd3da; }
.pill-red { background: var(--red-dim); border-color: rgba(200, 20, 28, .4); color: #ff9a94; }
.pill-green { background: rgba(47, 191, 113, .14); border-color: rgba(47, 191, 113, .4); color: #6ee7a8; }
.pill-yellow { background: rgba(255, 204, 0, .12); border-color: rgba(255, 204, 0, .4); color: var(--yellow); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red-2); box-shadow: 0 0 0 0 rgba(255, 64, 56, .6); animation: livepulse 1.6s infinite; display: inline-block; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 9px rgba(255, 64, 56, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 64, 56, 0); } }
.page-head .eyebrow + h1 { margin-bottom: .25em; }
.stack { display: grid; gap: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
.big-num { font: 700 condensed clamp(2.4rem, 9vw, 4.2rem)/1 var(--display); letter-spacing: .02em; }
.center { text-align: center; }
.hide-sm { }
@media (max-width: 600px) { .hide-sm { display: none !important; } }
.carbon { background-image: var(--carbon); }
.divider { height: 1px; background: var(--line); margin: 18px 0; }
.lb-anim li { animation: lbin .35s calc(var(--i, 0) * 40ms) both ease-out; }
@keyframes lbin { from { opacity: 0; transform: translateY(6px); } }
.lb-list .name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lb-tabs { margin-bottom: 10px; }
.progress { height: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--red), var(--red-2)); border-radius: inherit; transition: width .6s ease; }
.pop { animation: pop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* Ferestrele modale devin „bottom sheet” pe telefon */
@media (max-width: 600px) {
  .modal-backdrop { align-items: flex-end !important; padding: 0 !important; }
  .modal { width: 100% !important; max-width: none !important; border-radius: 20px 20px 0 0 !important; max-height: 92vh; animation: sheetup .25s ease-out; padding-bottom: var(--safe-b); }
  @keyframes sheetup { from { transform: translateY(40px); opacity: .4; } }
}

/* ---------- Plăci de navigare (acasă / hub-uri) ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-decoration: none; overflow: hidden; transition: transform .15s, border-color .2s; isolation: isolate; min-height: 150px; }
.tile::after { content: ''; position: absolute; inset: auto -30% -60% auto; width: 180px; height: 180px; background: radial-gradient(circle, rgba(200, 20, 28, .22), transparent 70%); z-index: -1; }
.tile:hover { transform: translateY(-2px); border-color: #3a404c; }
.tile .ti { font-size: 1.9rem; line-height: 1; }
.tile h3 { margin: 4px 0 0; }
.tile p { margin: 0; color: var(--muted); font-size: .92rem; }
.tile .go { margin-top: auto; color: var(--red-2); font-weight: 700; font-size: .9rem; }
.tile.is-off { opacity: .45; pointer-events: none; }

/* ---------- Meniu & comandă ---------- */
.table-hero { position: relative; padding: 18px 0 8px; }
.table-badge { display: inline-flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 16px 10px 10px; }
.table-badge .num { background: var(--red); color: #fff; font: 700 condensed 1.7rem/1 var(--display); border-radius: 11px; padding: 8px 12px; min-width: 54px; text-align: center; letter-spacing: .04em; }
.table-badge small { display: block; color: var(--muted); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.table-badge b { font: 700 condensed 1.25rem var(--display); letter-spacing: .04em; text-transform: uppercase; }
.table-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.menu-tools { position: sticky; top: var(--hdr-h, 66px); z-index: 20; background: rgba(12, 13, 16, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 10px 0; margin: 0 -20px 6px; padding-inline: 20px; border-bottom: 1px solid var(--line); }
.search { position: relative; margin-bottom: 10px; }
.search input { padding-left: 42px; min-height: 46px; border-radius: 999px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.menu-cat { scroll-margin-top: 150px; margin: 22px 0 10px; font-size: 1.35rem; }
.product-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.product { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; text-align: left; color: inherit; font: inherit; width: 100%; transition: border-color .15s; }
.product:hover { border-color: #3a404c; }
.product.has-img { grid-template-columns: 76px 1fr auto; }
.product img { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; }
.product b { display: block; font-size: 1.02rem; }
.product p { margin: 3px 0 0; color: var(--muted); font-size: .86rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product .price { font-weight: 700; color: var(--text); white-space: nowrap; }
.product .tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 6px; }
.product .add { width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; border: 0; display: grid; place-items: center; font-size: 1.4rem; line-height: 1; flex: none; }
.product .qty-in { background: var(--yellow); color: #111; font-weight: 800; font-size: 1rem; }
.product.unavailable { opacity: .45; cursor: not-allowed; }
.product-detail img.hero { width: 100%; max-height: 240px; object-fit: cover; border-radius: 12px; margin-bottom: 14px; }
.mod-group { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; }
.mod-group legend { padding: 0 6px; font-weight: 700; }
.mod-group legend small { color: var(--muted); font-weight: 500; margin-left: 6px; }
.mod-opt { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); cursor: pointer; min-height: 46px; }
.mod-opt:last-child { border-bottom: 0; }
.mod-opt span { flex: 1; }
.mod-opt input { width: 20px; height: 20px; accent-color: var(--red); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.stepper button { width: 44px; height: 44px; background: var(--surface-2); border: 0; color: var(--text); font-size: 1.3rem; cursor: pointer; }
.stepper button:disabled { opacity: .35; }
.stepper output { min-width: 40px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); z-index: 56; display: flex; align-items: center; gap: 12px; background: var(--red); color: #fff; border-radius: 16px; padding: 10px 10px 10px 16px; box-shadow: 0 12px 30px rgba(200, 20, 28, .4); max-width: 640px; margin: 0 auto; border: 0; width: calc(100% - 24px); font: inherit; cursor: pointer; text-align: left; }
@media (max-width: 860px) { body:has(#tabbar) .cart-bar { bottom: calc(var(--tab-h) + var(--safe-b) + 10px); } }
.cart-bar .cnt { background: rgba(0, 0, 0, .25); border-radius: 10px; padding: 6px 10px; font-weight: 800; }
.cart-bar .lbl { flex: 1; font-weight: 700; }
.cart-bar .tot { background: #fff; color: var(--red); border-radius: 11px; padding: 10px 14px; font-weight: 800; white-space: nowrap; }
.cart-bar.bump { animation: pop .35s; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line .opts { color: var(--muted); font-size: .84rem; }
.cart-line .note { color: var(--yellow); font-size: .84rem; }
.cart-line.bad { background: rgba(255, 59, 48, .08); border-radius: 10px; padding-inline: 8px; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; }
.summary-row.total { font-size: 1.2rem; font-weight: 800; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.confirm-table { display: flex; align-items: center; gap: 14px; background: var(--surface-2); border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.confirm-table .num { background: var(--red); border-radius: 10px; font: 700 condensed 2rem/1 var(--display); padding: 8px 14px; }
.notice { border: 1px solid var(--line); background: var(--surface-2); border-radius: 12px; padding: 12px 14px; font-size: .88rem; color: #cfd3da; }
.notice-warn { border-color: rgba(255, 204, 0, .4); background: rgba(255, 204, 0, .08); }
.notice-err { border-color: rgba(255, 59, 48, .45); background: rgba(255, 59, 48, .09); color: #ffb4ad; }

/* Starea comenzii */
.order-status { text-align: center; padding: 26px 18px; }
.order-status .check { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: var(--green); color: #06210f; font-size: 2.6rem; font-weight: 900; }
.order-status .code { font: 700 condensed 3rem/1 var(--display); letter-spacing: .06em; }
.timeline { list-style: none; margin: 18px auto 0; padding: 0; max-width: 360px; text-align: left; }
.timeline li { position: relative; padding: 0 0 18px 38px; color: var(--muted); }
.timeline li::before { content: ''; position: absolute; left: 9px; top: 22px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li i { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); }
.timeline li.done { color: var(--text); }
.timeline li.done i { background: var(--green); border-color: var(--green); }
.timeline li.done i::after { content: '✓'; color: #06210f; font: 900 12px/16px var(--font); display: block; text-align: center; }
.timeline li.current { color: var(--text); font-weight: 700; }
.timeline li.current i { border-color: var(--yellow); background: var(--yellow); animation: livepulse 1.6s infinite; }
.timeline li small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }

/* ---------- Bar / staff ---------- */
body.bar-mode main { padding-bottom: 20px; }
.bar-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 0; }
.bar-top h1 { font-size: 1.8rem; margin: 0; }
.conn { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); }
.conn i { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.conn.on i { background: var(--green); box-shadow: 0 0 0 4px rgba(47, 191, 113, .2); }
.conn.off i { background: var(--red-2); }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 1100px) { .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kanban { grid-template-columns: 1fr; } }
.kcol { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; min-height: 120px; }
.kcol > h2 { font-size: 1.05rem; display: flex; align-items: center; gap: 8px; margin: 2px 4px 10px; }
.kcol > h2 .n { background: var(--surface-2); border-radius: 999px; padding: 1px 9px; font-family: var(--font); font-size: .82rem; }
.kcol.col-received > h2 .n { background: var(--red); }
.order-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.order-card.is-new { border-color: var(--red); animation: newpulse 1.4s ease-in-out 4; }
@keyframes newpulse { 50% { box-shadow: 0 0 0 4px rgba(200, 20, 28, .35); } }
.order-card .oc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.order-card .tbl { background: var(--red); color: #fff; border-radius: 9px; font: 700 condensed 1.3rem/1 var(--display); padding: 6px 10px; letter-spacing: .03em; }
.order-card .oc-code { font-weight: 800; }
.order-card .oc-time { margin-left: auto; color: var(--muted); font-size: .8rem; text-align: right; }
.order-card .oc-time.late { color: var(--yellow); font-weight: 700; }
.order-card ul { list-style: none; margin: 0 0 8px; padding: 0; }
.order-card li { padding: 3px 0; }
.order-card li b { display: inline-block; min-width: 28px; }
.order-card li .opts { display: block; color: var(--muted); font-size: .82rem; padding-left: 28px; }
.order-card .oc-note { background: rgba(255, 204, 0, .1); border-left: 3px solid var(--yellow); padding: 6px 10px; border-radius: 6px; font-size: .9rem; margin-bottom: 8px; }
.order-card .oc-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.order-card .oc-actions .btn { flex: 1; min-height: 44px; }
.req-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; }
.req-card { flex: none; display: flex; align-items: center; gap: 10px; background: rgba(255, 204, 0, .1); border: 1px solid rgba(255, 204, 0, .5); border-radius: 12px; padding: 10px 12px; }
.req-card .tbl { background: var(--yellow); color: #111; border-radius: 8px; padding: 4px 9px; font: 700 condensed 1.1rem var(--display); }
.flash-overlay { position: fixed; inset: 0; z-index: 90; pointer-events: none; background: rgba(200, 20, 28, .22); animation: flash 1s ease-out forwards; }
@keyframes flash { to { opacity: 0; } }
.sound-gate { position: fixed; inset: 0; z-index: 95; background: rgba(12, 13, 16, .92); display: grid; place-items: center; padding: 20px; text-align: center; }

/* ---------- Jocuri ---------- */
.game-tiles .tile { min-height: 190px; }
.game-tile-art { position: absolute; right: 14px; top: 14px; font-size: 2.6rem; opacity: .9; }
.gshell { position: relative; background: #08090b; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; padding: 18px; min-height: 520px; display: flex; flex-direction: column; isolation: isolate; }
.gshell::before { content: ''; position: absolute; inset: 0; background: var(--carbon); z-index: -1; opacity: .8; }
.gshell:fullscreen { border-radius: 0; padding: max(18px, env(safe-area-inset-top)) 18px 18px; }
.gbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.gbar .spacer { flex: 1; }
.gstage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.gcount { font: 700 condensed 6rem/1 var(--display); color: var(--yellow); animation: pop .5s; }
.gresult .big-num { color: var(--text); }
.gresult .verdict { font: 700 condensed 1.6rem var(--display); letter-spacing: .06em; text-transform: uppercase; }
.gtut { max-width: 460px; color: #cfd3da; }
.gtut ol { text-align: left; padding-left: 20px; }
.stat-mini { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.stat-mini > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; min-width: 92px; }
.stat-mini b { display: block; font: 700 condensed 1.4rem var(--display); }
.stat-mini span { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.claim-box { background: linear-gradient(135deg, rgba(255, 204, 0, .16), rgba(200, 20, 28, .14)); border: 1px dashed var(--yellow); border-radius: 14px; padding: 14px 18px; }
.claim-code { font: 700 condensed 2rem/1 var(--display); letter-spacing: .14em; color: var(--yellow); }
/* Lumini de start F1 */
.lights { display: flex; gap: clamp(6px, 2vw, 14px); padding: 14px; background: #111; border-radius: 14px; border: 2px solid #222; box-shadow: inset 0 0 24px #000; }
.lights .pod { background: #1b1b1b; border-radius: 10px; padding: 8px; display: grid; gap: 8px; }
.lights .bulb { width: clamp(38px, 11vw, 64px); height: clamp(38px, 11vw, 64px); border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3a0d0d, #160505); box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .6); transition: background .05s; }
.lights .bulb.on { background: radial-gradient(circle at 35% 35%, #ff8a80, #ff1a10 45%, #9b0000); box-shadow: 0 0 22px 6px rgba(255, 30, 20, .55); }
/* „Christmas tree” de drag race */
.tree { display: grid; gap: 10px; padding: 16px 22px; background: #111; border-radius: 16px; border: 2px solid #222; }
.tree .row2 { display: flex; gap: 22px; justify-content: center; }
.tree .bulb { width: clamp(40px, 12vw, 58px); height: clamp(40px, 12vw, 58px); border-radius: 50%; background: #1f1a08; box-shadow: inset 0 -4px 8px rgba(0, 0, 0, .6); }
.tree .bulb.stage { width: clamp(24px, 7vw, 34px); height: clamp(24px, 7vw, 34px); }
.tree .bulb.amber.on { background: radial-gradient(circle at 35% 35%, #fff2b0, #ffb400 50%, #8a5a00); box-shadow: 0 0 20px 5px rgba(255, 180, 0, .5); }
.tree .bulb.green.on { background: radial-gradient(circle at 35% 35%, #c8ffd9, #19e36b 50%, #06622a); box-shadow: 0 0 24px 7px rgba(25, 227, 107, .55); }
.tree .bulb.stage.on { background: radial-gradient(circle at 35% 35%, #fffbe8, #ffe9a8 60%, #8a7a40); }
.tree .bulb.red.on { background: radial-gradient(circle at 35% 35%, #ff8a80, #ff1a10 45%, #9b0000); }
.tap-zone { width: min(100%, 520px); min-height: 150px; border-radius: 18px; border: 2px dashed #3a404c; display: grid; place-items: center; color: var(--muted); font: 700 condensed 1.3rem var(--display); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; background: rgba(255, 255, 255, .02); }
.tap-zone.armed { border-color: var(--red); color: var(--text); }
.tap-zone.go { border-color: var(--green); background: rgba(47, 191, 113, .12); color: var(--green); }
/* Rev & Shift */
.tacho-wrap { position: relative; width: min(92vw, 380px); }
.tacho-wrap svg { width: 100%; height: auto; display: block; }
.gear-ind { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); text-align: center; }
.gear-ind b { font: 700 condensed 4rem/1 var(--display); }
.gear-ind small { display: block; color: var(--muted); font-size: .75rem; letter-spacing: .14em; }
.shift-light { display: flex; gap: 6px; justify-content: center; }
.shift-light i { width: 18px; height: 18px; border-radius: 50%; background: #1d2026; }
.shift-light i.g { background: #19e36b; box-shadow: 0 0 10px #19e36b; }
.shift-light i.y { background: #ffcc00; box-shadow: 0 0 10px #ffcc00; }
.shift-light i.r { background: #ff1a10; box-shadow: 0 0 10px #ff1a10; }
.shift-light.blink i { animation: blink .12s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.rs-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: min(100%, 520px); }
.rs-controls button { min-height: 92px; border-radius: 18px; border: 0; font: 700 condensed 1.4rem var(--display); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; touch-action: none; }
.rs-throttle { background: #23262e; color: var(--text); }
.rs-throttle.on { background: var(--green); color: #06210f; }
.rs-shift { background: var(--red); color: #fff; }
.rs-feedback { min-height: 30px; font: 700 condensed 1.3rem var(--display); letter-spacing: .08em; text-transform: uppercase; }
.rs-feedback.perfect { color: #19e36b; } .rs-feedback.good { color: var(--yellow); } .rs-feedback.bad { color: #ff8a80; }
.blown { font: 700 condensed clamp(2.6rem, 10vw, 4.4rem)/1 var(--display); color: var(--red-2); text-shadow: 0 0 30px rgba(255, 64, 56, .7); animation: shake .5s 2; }
.smoke { position: relative; height: 70px; width: 100%; }
.smoke i { position: absolute; bottom: 0; width: 40px; height: 40px; border-radius: 50%; background: rgba(180, 180, 180, .35); filter: blur(6px); animation: smoke 1.8s ease-out infinite; }
@keyframes smoke { from { transform: translateY(0) scale(.6); opacity: .8; } to { transform: translateY(-80px) scale(2.2); opacity: 0; } }
/* Quiz */
.q-progress { display: flex; gap: 4px; width: 100%; max-width: 560px; }
.q-progress i { flex: 1; height: 5px; border-radius: 3px; background: var(--surface-2); }
.q-progress i.ok { background: var(--green); } .q-progress i.no { background: var(--red-2); } .q-progress i.cur { background: var(--yellow); }
.q-timer { width: 100%; max-width: 560px; height: 8px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.q-timer i { display: block; height: 100%; background: var(--yellow); transform-origin: left; }
.q-text { font-size: clamp(1.2rem, 4vw, 1.6rem); font-weight: 700; max-width: 640px; line-height: 1.3; }
.q-opts { display: grid; gap: 10px; width: 100%; max-width: 560px; }
.q-opt { min-height: 58px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 600 1.02rem var(--font); text-align: left; cursor: pointer; display: flex; align-items: center; gap: 12px; }
.q-opt .k { width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; font-weight: 800; flex: none; }
.q-opt:hover:not(:disabled) { border-color: #4a515e; }
.q-opt.right { background: rgba(47, 191, 113, .18); border-color: var(--green); }
.q-opt.wrong { background: rgba(255, 59, 48, .14); border-color: var(--red-2); }
.q-opt:disabled { cursor: default; }
.q-explain { max-width: 560px; text-align: left; }
.engine-play { width: 120px; height: 120px; border-radius: 50%; border: 0; background: var(--red); color: #fff; font-size: 2.6rem; cursor: pointer; box-shadow: 0 0 0 10px rgba(200, 20, 28, .15); }
.engine-play.playing { animation: livepulse 1s infinite; }
.eq { display: flex; gap: 4px; align-items: flex-end; height: 30px; }
.eq i { width: 6px; background: var(--red-2); border-radius: 2px; animation: eq 0.9s infinite ease-in-out; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; } .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 6px; } 50% { height: 28px; } }
.eq.paused i { animation-play-state: paused; }

/* ---------- Race weekend & Bingo ---------- */
.wk-hero { border-radius: var(--radius); padding: 22px; background: linear-gradient(135deg, #1a0a0b, #121418 60%); border: 1px solid var(--line); position: relative; overflow: hidden; }
.wk-hero::after { content: ''; position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; background: conic-gradient(#fff 25%, #111 0 50%, #fff 0 75%, #111 0); background-size: 22px 22px; opacity: .06; transform: rotate(12deg); }
.wk-countdown { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.pred-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.pred-card h3 { font-size: 1.15rem; display: flex; justify-content: space-between; gap: 10px; }
.pred-card h3 small { color: var(--yellow); font-family: var(--font); font-size: .8rem; white-space: nowrap; }
.pred-card select { min-height: 46px; }
.pred-card.saved { border-color: rgba(47, 191, 113, .5); }
.yn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.yn button { min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-weight: 700; cursor: pointer; }
.yn button.on { background: var(--red); border-color: var(--red); }
.podium-pick { display: grid; gap: 8px; }
.podium-pick label { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 8px; }
.podium-pick .p { font: 700 condensed 1.3rem var(--display); text-align: center; border-radius: 8px; padding: 6px 0; }
.p1 { background: #d4af37; color: #111; } .p2 { background: #c0c0c0; color: #111; } .p3 { background: #cd7f32; color: #111; }
.bingo-grid { display: grid; gap: 6px; width: 100%; max-width: 560px; margin: 0 auto; }
.bingo-cell { aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); padding: 6px; display: grid; place-items: center; text-align: center; font-size: clamp(.66rem, 2.6vw, .88rem); font-weight: 600; line-height: 1.15; position: relative; overflow: hidden; }
.bingo-cell.called { background: var(--red); border-color: var(--red); color: #fff; }
.bingo-cell.called::after { content: '✓'; position: absolute; top: 3px; right: 6px; font-size: .8rem; }
.bingo-cell.win { background: var(--yellow); color: #111; border-color: var(--yellow); }
.call-bartender { text-align: center; padding: 26px 18px; border-radius: 18px; background: repeating-linear-gradient(45deg, var(--yellow) 0 18px, #111 18px 36px); }
.call-bartender > div { background: #0c0d10; border-radius: 14px; padding: 22px; }
.call-bartender h2 { color: var(--yellow); font-size: clamp(2rem, 8vw, 3.4rem); margin: 0 0 6px; animation: pop .6s; }
.call-bartender .claim-code { font-size: 2.6rem; }

/* ---------- Trasee ---------- */
.routes-layout { display: grid; grid-template-columns: 360px 1fr; gap: 20px; align-items: start; }
@media (max-width: 980px) { .routes-layout { grid-template-columns: 1fr; } }
.route-card { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; }
.route-card.active { border-color: var(--red); box-shadow: inset 3px 0 0 var(--red); }
.route-card h3 { font-size: 1.15rem; margin: 0 0 6px; }
.route-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.map-frame { height: min(60vh, 520px); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); display: grid; place-items: center; text-align: center; position: relative; }
.map-frame .leaflet-container { width: 100%; height: 100%; background: #1b1e24; }
.wp-list { list-style: none; padding: 0; margin: 0; }
.wp-list li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.wp-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--surface-2); }
.wp-danger .wp-ic { background: rgba(255, 59, 48, .2); }
.route-svg { width: 100%; height: 220px; background: #14171c; border-radius: 12px; }
.stars { color: var(--yellow); letter-spacing: 2px; }

/* ---------- Garage Wall ---------- */
.garage-grid { columns: 3 280px; column-gap: 16px; }
.post-card { break-inside: avoid; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.post-card.featured { border-color: var(--yellow); }
.post-card img { width: 100%; height: auto; display: block; background: #111; }
.post-card .pc-body { padding: 14px; }
.post-card h3 { font-size: 1.2rem; margin: 0 0 4px; }
.post-card .pc-owner { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .86rem; margin-bottom: 8px; }
.post-card .pc-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.like-btn.on { background: rgba(255, 64, 56, .15); border-color: var(--red-2); color: #ff8a80; }
.vote-btn.on { background: rgba(255, 204, 0, .15); border-color: var(--yellow); color: var(--yellow); }
.rotm-banner { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: center; background: linear-gradient(135deg, rgba(255, 204, 0, .12), rgba(200, 20, 28, .08)); border: 1px solid rgba(255, 204, 0, .35); border-radius: var(--radius); padding: 14px; margin-bottom: 22px; }
.rotm-banner img { width: 140px; height: 100px; object-fit: cover; border-radius: 10px; }
@media (max-width: 520px) { .rotm-banner { grid-template-columns: 1fr; } .rotm-banner img { width: 100%; height: 160px; } }

/* ---------- Jukebox ---------- */
.now-playing { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: var(--radius); background: linear-gradient(120deg, #1d0b0c, #141619); border: 1px solid var(--line); }
.vinyl { width: 76px; height: 76px; border-radius: 50%; flex: none; background: radial-gradient(circle, var(--red) 0 16%, #111 17% 20%, #222 21% 23%, #111 24% 40%, #1b1b1b 41% 43%, #111 44% 70%, #191919 71% 73%, #0a0a0a 74%); animation: spin 3s linear infinite; }
.vinyl.stopped { animation-play-state: paused; }
.song-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.song-row .votes { font-weight: 800; color: var(--yellow); min-width: 34px; text-align: right; }
.vote-pill { min-width: 92px; }
.vote-pill.on { background: var(--yellow); color: #111; border-color: var(--yellow); }

/* ---------- Roata ---------- */
.wheel-wrap { position: relative; width: min(88vw, 420px); aspect-ratio: 1; margin: 0 auto; }
.wheel-wrap canvas { width: 100%; height: 100%; display: block; }
.wheel-pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 18px solid transparent; border-right: 18px solid transparent; border-top: 34px solid var(--yellow); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .6)); z-index: 2; }
.wheel-hub { position: absolute; inset: 41%; border-radius: 50%; background: #0c0d10; border: 4px solid var(--yellow); display: grid; place-items: center; overflow: hidden; }
.wheel-hub img { width: 86%; }
.code-input { text-transform: uppercase; letter-spacing: .14em; font: 700 condensed 1.3rem var(--display); text-align: center; min-height: 54px; }

/* ---------- Instrumente ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; }
.dyno-chart { width: 100%; height: auto; background: #0b0d10; border-radius: 12px; border: 1px solid var(--line); }
.sim-label { font-size: .75rem; color: var(--yellow); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.calc-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 14px; }
.dr-card { background: linear-gradient(135deg, rgba(47, 191, 113, .12), rgba(18, 21, 26, 1)); border: 1px solid rgba(47, 191, 113, .4); }

/* ---------- Cont: nivel, realizări, recompense ---------- */
.level-card { display: grid; gap: 12px; background: linear-gradient(135deg, #1b0b0c, #14161b); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.level-name { font: 700 condensed 2rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.level-steps { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.level-steps span.on { color: var(--text); font-weight: 700; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.badge-item { text-align: center; padding: 14px 8px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.badge-item .bi { font-size: 2rem; display: block; filter: grayscale(1); opacity: .35; }
.badge-item.on .bi { filter: none; opacity: 1; }
.badge-item b { display: block; font-size: .86rem; margin-top: 6px; }
.badge-item small { color: var(--muted); font-size: .72rem; line-height: 1.3; display: block; margin-top: 4px; }
.reward-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.reward-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.reward-card .cost { color: var(--yellow); font-weight: 800; }
.claim-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; margin-bottom: 8px; }
.claim-row code { font: 700 condensed 1.25rem var(--display); letter-spacing: .12em; color: var(--yellow); }
.claim-row.used { opacity: .5; }

/* ---------- Panou: KPI, grafice, QR ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-decoration: none; display: block; }
.kpi b { display: block; font: 700 condensed 2rem/1.1 var(--display); }
.kpi span { color: var(--muted); font-size: .8rem; }
.kpi.alert { border-color: var(--red); }
.kpi.alert b { color: var(--red-2); }
.barchart { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 10px; }
.barchart .b { flex: 1; background: linear-gradient(180deg, var(--red-2), var(--red)); border-radius: 4px 4px 0 0; position: relative; min-width: 6px; min-height: 2px; }
.barchart .b span { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: .66rem; color: var(--muted); white-space: nowrap; }
.barchart .b em { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: .68rem; font-style: normal; color: #cfd3da; }
.hbars li { display: grid; grid-template-columns: minmax(90px, 1fr) 2fr auto; gap: 10px; align-items: center; padding: 5px 0; font-size: .9rem; }
.hbars i { display: block; height: 10px; border-radius: 5px; background: var(--red); }
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.qr-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; }
.qr-card.off { opacity: .55; }
.qr-card .qr-img { background: #fff; border-radius: 10px; padding: 10px; display: grid; place-items: center; aspect-ratio: 1; }
.qr-card .qr-img canvas, .qr-card .qr-img img, .qr-card .qr-img svg { width: 100%; height: auto; image-rendering: pixelated; }
.qr-card h3 { margin: 0; font-size: 1.5rem; }
.admin-nav .grp { color: var(--muted); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; padding: 14px 12px 4px; font-weight: 700; }
.json-diff { font-family: ui-monospace, monospace; font-size: .75rem; color: var(--muted); max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- TV mode ---------- */
body.tv { background: #050608; overflow: hidden; }
body.tv #site-header, body.tv #site-footer, body.tv #tabbar, body.tv .cookie-bar { display: none !important; }
.tv-root { position: fixed; inset: 0; display: grid; grid-template-rows: auto 1fr auto; padding: 2.2vw 3vw; gap: 1.6vw; font-size: clamp(16px, 1.45vw, 40px); }
.tv-top { display: flex; align-items: center; gap: 2vw; }
.tv-top img { height: 4.6vw; min-height: 50px; }
.tv-top .clock { margin-left: auto; font: 700 condensed 2.6em/1 var(--display); }
.tv-slide { display: grid; align-content: center; animation: tvin .7s ease-out; }
@keyframes tvin { from { opacity: 0; transform: translateY(1vw); } }
.tv-slide h2 { font-size: 3.2em; margin: 0 0 .4em; }
.tv-slide .eyebrow { font-size: 1em; }
.tv-board { list-style: none; padding: 0; margin: 0; display: grid; gap: .45em; max-width: 70vw; }
.tv-board li { display: grid; grid-template-columns: 2.2em 1fr auto; align-items: center; gap: 1em; background: rgba(255, 255, 255, .04); border-radius: .5em; padding: .45em .8em; font-size: 1.35em; animation: lbin .5s calc(var(--i) * 90ms) both; }
.tv-board li .pos { font: 700 condensed 1.3em var(--display); color: var(--muted); }
.tv-board li:nth-child(1) .pos { color: #d4af37; } .tv-board li:nth-child(2) .pos { color: #c0c0c0; } .tv-board li:nth-child(3) .pos { color: #cd7f32; }
.tv-board li .v { font: 700 condensed 1.2em var(--display); }
.tv-bottom { display: flex; align-items: center; gap: 2vw; color: var(--muted); }
.tv-dots { display: flex; gap: .4em; margin-left: auto; }
.tv-dots i { width: .6em; height: .6em; border-radius: 50%; background: #2a2f39; }
.tv-dots i.on { background: var(--red-2); }
.tv-qr { background: #fff; padding: .6em; border-radius: .6em; width: 9em; }
.tv-qr canvas { width: 100%; height: auto; display: block; }

/* ---------- Tipărire coduri QR ---------- */
@media print {
  body * { visibility: hidden; }
  .print-area, .print-area * { visibility: visible; }
  .print-area { position: absolute; inset: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

.nav a, .more-btn { white-space: nowrap; }
@media (max-width: 1180px) { .nav { max-height: calc(100vh - 80px); overflow-y: auto; } }
.hero-logo { width: min(320px, 70vw); height: auto; margin: 0 0 18px -6px; filter: drop-shadow(0 10px 30px rgba(200, 20, 28, .35)); }
.section-tight { padding-top: 28px; }
.games-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; padding: 0 20px 48px; }
@media (max-width: 980px) { .games-layout { grid-template-columns: 1fr; } }
/* Coloanele grid nu au voie să se lărgească peste ecran (rândurile de chip-uri derulează orizontal) */
.row-2 > *, .routes-layout > *, .stack > *, .kanban > *, .games-layout > *, .tools-grid > *, .account-grid > *, .admin-layout > * { min-width: 0; }
.song-row > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.gbar { flex-wrap: nowrap; }
.gbar > b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gbar .btn { flex: none; }
