:root {
  --ink: #fff7ea;
  --mute: #d8cbb2;
  --panel: rgba(24, 18, 12, 0.58);
  --panel-2: rgba(24, 18, 12, 0.72);
  --line: rgba(255, 238, 205, 0.16);
  --gold: #ffcf5a;
  --gold-2: #f2a51f;
  --green: #3ccf62;
  --blue: #3a9bf0;
  --outline: #2a180c;
  --r: 18px;
  --display: Fredoka, Nunito, system-ui, sans-serif;
  --text: Nunito, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #1b1410; color: var(--ink); font: 15px/1.4 var(--text); -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
.screen { position: fixed; inset: 0; }

/* ---------------------------------------------------------------- loading */
.loading { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: radial-gradient(circle at 50% 40%, #3b2a1a, #120d09); z-index: 50; transition: opacity .4s; }
.loading p { color: var(--mute); margin: 0; }
.loading.done { opacity: 0; pointer-events: none; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 5px solid rgba(255, 207, 90, .2); border-top-color: var(--gold); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

/* ---------------------------------------------------------------- lobby */
#lobby { display: grid; grid-template-columns: minmax(250px, 300px) 1fr; grid-template-rows: 1fr auto; gap: 14px; padding: 76px 18px 18px; }
.lobby-bg { position: absolute; inset: 0; background-size: cover; background-position: center 60%; transition: background-image .5s; z-index: -2; }
.lobby-bg::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(16,11,7,.78) 0%, rgba(16,11,7,.2) 34%, rgba(16,11,7,0) 60%),
  linear-gradient(0deg, rgba(16,11,7,.82) 0%, rgba(16,11,7,0) 42%),
  linear-gradient(180deg, rgba(16,11,7,.55) 0%, rgba(16,11,7,0) 18%); }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.panel h3 { font: 600 13px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin: 0 0 10px; }

.topbar { position: fixed; z-index: 15; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 22px; padding: max(12px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 10px max(18px, env(safe-area-inset-left)); background: linear-gradient(180deg, rgba(16,11,7,.72), rgba(16,11,7,0)); pointer-events: none; }
.topbar > * { pointer-events: auto; }
.logo { font: 700 30px/1 var(--display); letter-spacing: .02em; text-shadow: 0 3px 0 var(--outline), 0 6px 18px rgba(0,0,0,.4); }
.logo span { color: var(--gold); margin-left: 4px; }
.tabs { display: flex; gap: 6px; flex: 1; }
.tab { background: none; border: 0; padding: 8px 14px; border-radius: 12px; font: 600 16px var(--display); color: var(--mute); position: relative; }
.tab.active { color: #fff3c4; background: rgba(255,207,90,.12); border: 1px solid rgba(255,207,90,.55); box-shadow: inset 0 -3px 0 var(--gold); }
.tab.soon { opacity: .6; cursor: default; }
.tab small { display: block; font: 700 9px var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); opacity: .8; }
.lang { position: relative; display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 30px; background: var(--panel-2); border: 1px solid var(--line); color: var(--mute); }
.lang svg { width: 18px; height: 18px; }
.lang select { appearance: none; -webkit-appearance: none; background: none; border: 0; color: var(--ink); font: 600 14px var(--display); cursor: pointer; padding-right: 2px; }
.lang select option { color: #1b1410; }
.wallet { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 30px; background: var(--panel-2); border: 1px solid var(--line); }
.wallet b { font: 700 18px var(--display); }
.wallet img { width: 26px; height: 26px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0,0,0,.4)); }
.wallet b + img { margin-left: 10px; }
.wallet small + img { margin-left: 8px; }
.tab small.new { color: #8af0a2; }
.wallet small { color: var(--mute); }
.coin { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff1b0, var(--gold) 45%, #b97a12); box-shadow: 0 0 0 2px var(--outline); }

.tracks { padding: 14px; align-self: start; max-height: 100%; overflow: auto; }
.track-list { display: grid; gap: 10px; }
.track { position: relative; display: grid; grid-template-columns: 1fr; text-align: left; border: 2px solid transparent; border-radius: 14px; overflow: hidden; padding: 0; background: #2a2018; transition: transform .15s, border-color .15s; }
.track:hover { transform: translateY(-2px); }
.track.on { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(255,207,90,.25); }
.track .thumb { height: 66px; background-size: cover; background-position: center 65%; }
.track .info { padding: 8px 10px 10px; }
.track b { font: 600 16px var(--display); display: block; }
.track .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.chip { font: 700 11px var(--text); padding: 2px 7px; border-radius: 20px; background: rgba(255,255,255,.1); color: var(--mute); }
.chip.easy { background: rgba(60,207,98,.2); color: #9df0b2; }
.chip.mid { background: rgba(255,207,90,.2); color: #ffe39a; }
.chip.hard { background: rgba(255,110,80,.22); color: #ffb4a0; }
.track p { margin: 6px 0 0; font-size: 12px; color: var(--mute); line-height: 1.35; }

.stage { position: relative; display: grid; place-items: center; min-height: 0; }
.party { display: flex; align-items: flex-end; justify-content: center; gap: clamp(10px, 3vw, 46px); }
.slot { position: relative; display: grid; justify-items: center; gap: 10px; width: clamp(92px, 12vw, 150px); }
.slot.you { width: clamp(130px, 17vw, 220px); }
.slot .ball { width: 72%; aspect-ratio: 1; animation: bob 2.6s ease-in-out infinite; filter: drop-shadow(0 10px 8px rgba(0,0,0,.35)); }
.slot.you .ball { animation-duration: 2.2s; }
.slot:nth-child(2) .ball { animation-delay: -.6s; } .slot:nth-child(3) .ball { animation-delay: -1.2s; } .slot:nth-child(4) .ball { animation-delay: -1.8s; }
.slot .ball img { width: 100%; height: 100%; object-fit: contain; animation: roll 7s linear infinite; }
@keyframes bob { 50% { transform: translateY(-12px); } }
@keyframes roll { to { transform: rotate(1turn); } }
.slot .pet { position: absolute; width: 46%; right: -26%; bottom: 52px; animation: bob 1.8s ease-in-out infinite; filter: drop-shadow(0 6px 6px rgba(0,0,0,.3)); cursor: pointer; }
.pedestal { width: 100%; height: 26px; border-radius: 50%; background: radial-gradient(ellipse at 50% 40%, rgba(255,226,160,.55), rgba(120,80,30,.35) 60%, transparent 72%); margin-top: -18px; }
.name { font: 600 14px var(--display); padding: 3px 12px; border-radius: 20px; background: rgba(36,150,62,.92); box-shadow: 0 0 0 2px rgba(255,255,255,.18); white-space: nowrap; }
.slot.you .name { font-size: 16px; box-shadow: 0 0 0 2px #fff; }
.slot .tag { font: 800 10px var(--text); letter-spacing: .1em; color: var(--gold); text-transform: uppercase; }
.slot .kick { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); font-size: 14px; line-height: 1; opacity: 0; transition: opacity .15s; }
.slot:hover .kick { opacity: 1; }
.slot.empty button.invite { width: 72%; aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(255,247,234,.45); background: rgba(0,0,0,.18); display: grid; place-content: center; gap: 2px; font: 600 13px var(--display); color: var(--mute); transition: background .15s; }
.slot.empty button.invite:hover { background: rgba(255,255,255,.08); color: var(--ink); }
.slot.empty button.invite span { font-size: 30px; line-height: 1; }
.party-note { position: absolute; bottom: 4px; margin: 0; font-size: 12px; color: var(--mute); text-align: center; }
.party-note .g { color: #8af0a2; } .party-note .b { color: #8cc8ff; }

.lobby-foot { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr minmax(320px, 420px); gap: 14px; align-items: end; }
.skins { padding: 14px; min-width: 0; }
.skin-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.skin { flex: 0 0 auto; width: 64px; height: 64px; border-radius: 14px; border: 2px solid transparent; background: rgba(255,255,255,.06); padding: 6px; transition: transform .12s, border-color .12s; }
.skin img { width: 100%; height: 100%; object-fit: contain; }
.skin:hover { transform: translateY(-2px); }
.skin.on { border-color: var(--gold); background: rgba(255,207,90,.14); }
.playbox { padding: 14px; display: grid; gap: 12px; }
.settings { display: grid; gap: 8px; }
.field { display: grid; gap: 5px; }
.field > span { font: 700 11px var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.seg { display: flex; background: rgba(0,0,0,.28); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1; border: 0; background: none; border-radius: 9px; padding: 7px 8px; font: 700 13px var(--text); color: var(--mute); line-height: 1.1; }
.seg button em { display: block; font: 700 9px var(--text); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); opacity: .85; }
.seg button.on { background: rgba(255,255,255,.14); color: var(--ink); }
.play { position: relative; border: 0; border-radius: 16px; padding: 14px 20px 18px; font: 700 34px/1 var(--display); letter-spacing: .06em; color: #2a1606; background: linear-gradient(180deg, #ffe58a, var(--gold) 45%, var(--gold-2)); box-shadow: 0 6px 0 #a5650a, 0 12px 28px rgba(242,165,31,.35), inset 0 2px 0 rgba(255,255,255,.6); overflow: hidden; transition: transform .1s, box-shadow .1s; }
.play::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent); animation: shine 3.2s ease-in-out infinite; }
@keyframes shine { 60%, 100% { left: 130%; } }
.play:active { transform: translateY(4px); box-shadow: 0 2px 0 #a5650a, 0 6px 16px rgba(242,165,31,.3), inset 0 2px 0 rgba(255,255,255,.6); }
.play:disabled { filter: grayscale(.4) brightness(.8); }
.mode { margin: 0; text-align: center; font-size: 12px; color: var(--mute); }
.mode a { color: var(--gold); text-decoration: none; }

/* ---------------------------------------------------------------- animăluțe */
.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 16px; background: rgba(12,8,5,.55); backdrop-filter: blur(4px); }
.modal-card { position: relative; width: min(980px, 100%); max-height: 100%; overflow: auto; border-radius: 22px; background: rgba(30,23,16,.94); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.5); animation: rise .3s ease-out; }
.modal-card .close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); font-size: 22px; line-height: 1; z-index: 2; }
.pets { display: grid; grid-template-columns: 1fr 360px; }
.pet-left { padding: 20px; }
.pet-left h3 { font: 600 13px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin: 0 0 12px; }
.pet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pet-tile { position: relative; border: 2px solid transparent; border-radius: 16px; background: rgba(255,255,255,.05); padding: 8px 8px 10px; display: grid; justify-items: center; gap: 2px; text-align: center; }
.pet-tile img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.pet-tile.locked img { filter: grayscale(.85) brightness(.75); }
.pet-tile.on { border-color: var(--gold); background: rgba(255,207,90,.1); }
.pet-tile b { font: 600 15px var(--display); }
.pet-tile small { font-size: 11px; color: var(--mute); }
.rar { position: absolute; top: 8px; left: 8px; font: 800 9px var(--text); letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 10px; }
.rar.comun { background: #5d6a73; } .rar.rar { background: #2f7fd0; } .rar.epic { background: #8b46c9; } .rar.legendar { background: linear-gradient(90deg, #f2a51f, #e8572e); color: #2a1606; }
.price { display: inline-flex; align-items: center; gap: 4px; font: 700 12px var(--display); color: var(--gold); }
.price img { width: 16px; height: 16px; }
.pet-right { padding: 20px; border-left: 1px solid var(--line); display: grid; align-content: start; gap: 8px; background: radial-gradient(circle at 50% 18%, rgba(255,207,90,.12), transparent 60%); }
.pet-stage { aspect-ratio: 1.2; display: grid; place-items: center; }
.pet-stage img { width: 78%; animation: bob 2.4s ease-in-out infinite; }
.pet-right h2 { margin: 0; font: 700 30px var(--display); }
.pet-meta { margin: 0; color: var(--mute); font-size: 13px; }
.meter { height: 12px; border-radius: 8px; background: rgba(255,255,255,.1); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 8px; background: #5ee36b; transition: width .4s, background-color .4s; }
.pet-mood { margin: 0; font-size: 14px; }
.pet-mood b { font-family: var(--display); }
.pet-actions { display: grid; gap: 6px; }
/* garderoba (accesorii) și cuibul (cuib, decor, plăcuță) în panoul animalului */
.ward { display: grid; gap: 6px; margin-top: 6px; }
.ward h4 { margin: 4px 0 0; font: 700 13px var(--display); letter-spacing: .06em; text-transform: uppercase; color: #ffd86b; }
.ward p { margin: 0; font-size: 13px; color: var(--mute); }
.ward-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 6px; }
.ward-item { aspect-ratio: 1; padding: 4px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,214,140,.16); cursor: pointer; }
.ward-item img { width: 100%; height: 100%; object-fit: contain; }
.ward-item.on { border-color: #5ee36b; background: rgba(94,227,107,.16); box-shadow: inset 0 0 0 1px #5ee36b; }
.ward-item.no, .try button.no { opacity: .35; filter: grayscale(.8); cursor: default; }
.food { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; text-align: left; border: 1px solid var(--line); background: rgba(255,255,255,.05); border-radius: 12px; padding: 6px 10px; }
.food img { width: 40px; height: 40px; }
.food span { font: 600 14px var(--display); }
.food small { display: block; font: 600 11px var(--text); color: var(--mute); }
.food:disabled { opacity: .45; cursor: not-allowed; }
.buy { border: 0; border-radius: 12px; padding: 11px; font: 700 16px var(--display); color: #2a1606; background: linear-gradient(180deg, #ffe58a, var(--gold) 50%, var(--gold-2)); box-shadow: 0 4px 0 #a5650a; }
.buy:disabled { filter: grayscale(.6); opacity: .7; cursor: not-allowed; }
.pet-foot p { margin: 6px 0 0; font-size: 11px; color: var(--mute); }
.ghost.small { border: 1px solid var(--line); background: rgba(255,255,255,.05); border-radius: 10px; padding: 6px 10px; font: 600 12px var(--text); }

/* ---------------------------------------------------------------- zona animăluțului */
#petZone { background: #1b1410; overflow: hidden; }
#petCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: manipulation; cursor: pointer; }
.zone-top { position: absolute; z-index: 2; top: max(14px, env(safe-area-inset-top)); left: max(14px, env(safe-area-inset-left)); right: max(14px, env(safe-area-inset-right)); display: flex; align-items: center; gap: 12px; pointer-events: none; }
.zone-top > * { pointer-events: auto; }
.zone-top h2 { margin: 0; flex: 1; min-width: 0; font: 700 26px var(--display); text-shadow: 0 3px 0 rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ghost.back { border: 1px solid var(--line); background: rgba(26,20,14,.78); border-radius: 12px; padding: 9px 14px; font: 700 15px var(--display); backdrop-filter: blur(6px); }
.zone-top .wallet { background: rgba(26,20,14,.78); backdrop-filter: blur(6px); }
.zone-hint { position: absolute; z-index: 2; left: 50%; bottom: 18px; transform: translateX(calc(-50% - 200px)); margin: 0; padding: 7px 14px; border-radius: 12px; background: rgba(26,20,14,.72); font: 600 13px var(--text); color: #f3e6cf; white-space: nowrap; pointer-events: none; }
.zone-panel { position: absolute; z-index: 2; right: max(14px, env(safe-area-inset-right)); top: 74px; bottom: 14px; width: 370px; overflow: auto; display: grid; align-content: start; gap: 10px; padding: 16px; border-radius: 20px; background: rgba(30,23,16,.88); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.45); backdrop-filter: blur(8px); }
.zone-head h2 { margin: 0; font: 700 28px var(--display); }
.zone-sub { margin: 6px 0 0; font: 600 12px var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.zone-panel .pet-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.zone-panel .pet-tile { padding: 6px 6px 8px; }
.zone-panel .pet-tile b { font-size: 13px; }
.play-ball { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 10px; text-align: left; border: 1px solid rgba(94,227,107,.45); background: rgba(94,227,107,.1); border-radius: 12px; padding: 6px 10px; font: 600 14px var(--display); }
.play-ball img { width: 36px; height: 36px; }
@media (max-width: 760px) {
  .zone-top h2 { font-size: 19px; }
  .zone-top .wallet small { display: none; }
  .zone-panel { left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; max-height: 44%; padding: 12px; }
  .zone-hint { top: 64px; bottom: auto; transform: translateX(-50%); font-size: 12px; white-space: normal; text-align: center; width: max-content; max-width: calc(100% - 32px); }
}

/* ---------------------------------------------------------------- provocări */
#chZone { background: #1b1410; overflow: hidden; }
.ch-bg { position: absolute; inset: 0; background: radial-gradient(circle at 30% 0%, rgba(255,207,90,.12), transparent 55%), linear-gradient(180deg, #2a1d12, #150f0a); }
#chZone .zone-top h2 { font-size: 26px; }
.ch-body { position: absolute; inset: 70px 0 0; overflow: auto; padding: 4px max(16px, env(safe-area-inset-right)) 28px max(16px, env(safe-area-inset-left)); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 14px; align-content: start; }
.ccard { background: rgba(30,23,16,.9); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: grid; gap: 8px; align-content: start; min-width: 0; }
.ccard header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; }
.ccard h3 { margin: 0; font: 700 18px var(--display); }
.chint { margin: 0; color: var(--mute); font-size: 12px; }
.chest { font: 700 12px var(--display); color: var(--gold); white-space: nowrap; }
.chest.ok { color: #5ee36b; }
.crow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.04); }
.crow.ok { background: rgba(94,227,107,.1); }
.ctext { display: grid; gap: 3px; min-width: 0; }
.ctext b { font: 700 14px var(--display); }
.ctext small { color: var(--mute); font-size: 12px; }
.cside { display: grid; justify-items: end; gap: 4px; }
.rw { font: 700 12px var(--display); color: var(--gold); text-align: right; }
.cprog { display: flex; align-items: center; gap: 8px; }
.cbar { flex: 1; height: 8px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; }
.cbar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #f2b84a, #ffd86b); }
.crow.ok .cbar i { background: #5ee36b; }
.cbar.big { height: 12px; }
.cnum { font: 700 12px var(--display); color: var(--mute); font-variant-numeric: tabular-nums; }
.dtrack { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.dthumb { height: 74px; border-radius: 12px; background-size: cover; background-position: center; }
.dmedals { display: flex; flex-wrap: wrap; gap: 6px; }
.dm { font: 700 12px var(--display); padding: 3px 8px; border-radius: 10px; background: rgba(255,255,255,.06); opacity: .65; font-variant-numeric: tabular-nums; }
.dm.on { opacity: 1; background: rgba(255,207,90,.18); }
.mgrid { display: grid; gap: 10px; }
.mmap { display: grid; gap: 6px; }
.mthumb { height: 42px; border-radius: 10px; background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 4px 10px; }
.mthumb b { font: 700 14px var(--display); text-shadow: 0 2px 6px rgba(0,0,0,.7); }
.medals { display: flex; gap: 4px; }
.md { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); }
.md.on.t1 { background: radial-gradient(circle at 35% 30%, #f3c79a, #a5642c); border-color: #6e3d14; }
.md.on.t2 { background: radial-gradient(circle at 35% 30%, #ffffff, #9aa6b1); border-color: #5c6670; }
.md.on.t3 { background: radial-gradient(circle at 35% 30%, #fff3b0, #e0a82a); border-color: #8a5d0a; }
.plv { font: 700 13px var(--display); color: var(--gold); }
.pscroll { overflow-x: auto; padding-bottom: 6px; }
.prow { display: flex; gap: 8px; align-items: stretch; width: max-content; }
.plab { display: grid; align-content: space-around; font: 700 11px var(--display); color: var(--mute); width: 56px; }
.plab em { color: #c9a0ff; font-style: normal; }
.plvl { display: grid; grid-template-rows: auto 1fr 1fr; gap: 6px; width: 92px; opacity: .6; }
.plvl.reached { opacity: 1; }
.pn { text-align: center; font: 700 13px var(--display); }
.pcell { display: grid; justify-items: center; align-content: start; gap: 4px; padding: 8px 6px; border-radius: 12px; background: rgba(255,255,255,.05); text-align: center; }
.pcell img { width: 34px; height: 34px; object-fit: contain; }
.pcell small { font-size: 10px; color: var(--mute); line-height: 1.2; }
.pcell em { font: 700 10px var(--display); font-style: normal; color: #5ee36b; }
.pcell.prem { background: rgba(160,100,255,.1); }
.pcell .crown { font-size: 22px; color: #c9a0ff; line-height: 34px; }
.buy.small { padding: 4px 10px; font-size: 12px; box-shadow: 0 2px 0 #a5650a; }
.skin { position: relative; }
.skin.locked img { filter: grayscale(.9) brightness(.6); }
.skin .lock { position: absolute; right: 3px; bottom: 3px; font: 800 10px var(--display); background: #8b46c9; color: #fff; border-radius: 8px; padding: 1px 5px; }
.chip.medal { background: rgba(255,207,90,.16); color: #ffe7a6; }
.res-medal { margin: 4px 0 0; font: 700 15px var(--display); color: #ffe7a6; }
.res-ch p { margin: 8px 0 4px; font: 700 12px var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.res-ch ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; font-size: 13px; }
.res-ch em { color: var(--gold); font-style: normal; font-weight: 700; }
.toast.gold { background: rgba(120,80,10,.92); color: #fff3c4; }
.pet-mood .friend { display: block; margin-top: 4px; color: #ff8fa3; font-weight: 700; }
@media (max-width: 760px) {
  #chZone .zone-top h2 { font-size: 19px; }
  #chZone .zone-top .wallet { padding: 6px 10px; gap: 5px; }
  .ch-body { inset: 64px 0 0; }
  .dtrack { grid-template-columns: 80px minmax(0, 1fr); }
  .dtrack .buy { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- joc */
#game { background: #1b1410; touch-action: none; user-select: none; -webkit-user-select: none; }
#view { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hud { position: absolute; inset: 0; pointer-events: none; padding: max(12px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
.hud > * { position: absolute; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 10px; background: rgba(26,24,22,.72); border: 1px solid rgba(255,255,255,.1); font: 600 17px var(--display); font-variant-numeric: tabular-nums; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.pill img { width: 20px; height: 20px; }
.pill.world { font-size: 14px; padding: 5px 11px; background: linear-gradient(180deg, rgba(60,36,14,.85), rgba(26,18,10,.85)); border-color: rgba(255,207,90,.45); color: #ffe6a0; }
.hud-tl { top: max(12px, env(safe-area-inset-top)); left: max(14px, env(safe-area-inset-left)); display: grid; gap: 6px; justify-items: start; }
.limit { font-size: 13px; padding: 4px 10px; color: var(--mute); }
.limit.warn { color: #fff; background: rgba(200,50,30,.85); animation: pulse .8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.06); } }
.hud-tr { top: max(12px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); display: grid; gap: 8px; justify-items: end; }
.pos { font-size: 20px; }
.minimap { border-radius: 10px; background: rgba(26,24,22,.6); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.compass { left: max(14px, env(safe-area-inset-left)); bottom: max(12px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 60px; background: rgba(26,24,22,.62); border: 1px solid rgba(255,255,255,.1); }
.dial { position: relative; width: 64px; height: 64px; }
.dial img { position: absolute; inset: 0; width: 100%; height: 100%; }
.needle { transition: transform .12s linear; }
.dist b { font: 700 22px/1 var(--display); font-variant-numeric: tabular-nums; display: block; }
.dist small { color: var(--mute); font-size: 11px; letter-spacing: .04em; }
.bar { margin-top: 5px; width: 110px; height: 5px; border-radius: 4px; background: rgba(255,255,255,.15); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--gold)); border-radius: 4px; }
.hud-br { right: max(14px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); display: flex; gap: 8px; pointer-events: auto; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: rgba(26,24,22,.72); display: grid; place-items: center; padding: 0; }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn.on { background: rgba(255,207,90,.3); }
.countdown { left: 50%; top: 40%; transform: translate(-50%, -50%); font: 700 120px/1 var(--display); color: #fff; text-shadow: 0 6px 0 var(--outline), 0 12px 40px rgba(0,0,0,.4); opacity: 0; }
.countdown.show { animation: pop .9s ease-out forwards; }
@keyframes pop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(1.7); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(.9); } }
.toast { left: 50%; top: 22%; transform: translateX(-50%); padding: 10px 18px; border-radius: 14px; background: rgba(26,24,22,.82); font: 600 18px var(--display); opacity: 0; transition: opacity .25s, transform .25s; white-space: nowrap; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
/* banda de sus (machetă): „Înapoi la checkpoint" / „Checkpoint salvat" */
.banner { position: absolute; left: 50%; top: max(70px, calc(env(safe-area-inset-top) + 64px)); z-index: 6; display: flex; align-items: center; gap: 14px;
  min-width: min(380px, calc(100vw - 32px)); max-width: calc(100vw - 32px); padding: 10px 26px 10px 10px; border-radius: 22px; pointer-events: none;
  background: linear-gradient(180deg, #2f2925, #221d1a); border: 2px solid transparent;
  background-clip: padding-box; box-shadow: 0 0 0 2px #b9825a, 0 0 0 3px rgba(255,214,170,.25), 0 12px 30px rgba(0,0,0,.45);
  opacity: 0; transform: translate(-50%, -14px); transition: opacity .25s, transform .3s cubic-bezier(.2,1.4,.4,1); }
.banner.show { opacity: 1; transform: translate(-50%, 0); }
.banner img { width: 56px; height: 56px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(185,130,90,.6); }
.banner div { display: grid; gap: 2px; min-width: 0; }
.banner b { font: 700 22px/1.1 var(--display); color: #fff7ea; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banner small { font-size: 15px; color: #c9bfb4; }
.banner.cp img { box-shadow: 0 0 0 2px rgba(185,130,90,.6), 0 0 16px rgba(255,214,107,.55); }
@media (max-width: 520px) { .banner img { width: 44px; height: 44px; } .banner b { font-size: 18px; } .banner small { font-size: 13px; } }
.toast.bad { background: rgba(170,40,25,.88); }
.toast.good { background: rgba(36,130,58,.9); }
.feed { right: max(14px, env(safe-area-inset-right)); bottom: 70px; display: grid; gap: 4px; justify-items: end; }
.feed div { font: 600 13px var(--display); padding: 4px 10px; border-radius: 8px; background: rgba(26,24,22,.6); animation: feed 4s forwards; }
@keyframes feed { 0% { opacity: 0; transform: translateX(12px); } 8%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.feed .g { color: #8af0a2; } .feed .b { color: #8cc8ff; }
.hint { left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); font-size: 13px; color: #fff; padding: 6px 14px; border-radius: 20px; background: rgba(26,24,22,.55); transition: opacity .6s; text-align: center; max-width: calc(100% - 340px); }
.hint.fade { opacity: 0; }

.results { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle, rgba(16,11,7,.35), rgba(16,11,7,.7)); z-index: 5; padding: 16px; }
.results .card { width: min(440px, 100%); max-height: 100%; overflow: auto; padding: 22px; border-radius: 22px; background: rgba(30,23,16,.88); border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.45); backdrop-filter: blur(10px); animation: rise .35s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.kicker { margin: 0; font: 800 12px var(--text); letter-spacing: .14em; color: var(--gold); }
.results h2 { margin: 2px 0 2px; font: 700 40px/1.05 var(--display); }
.results .sub { margin: 0 0 14px; color: var(--mute); }
.standings { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 4px; max-height: 300px; overflow: auto; }
.standings li { display: grid; grid-template-columns: 30px 28px 26px 1fr auto auto; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 10px; background: rgba(255,255,255,.04); font-size: 14px; }
.standings li.me { background: rgba(60,207,98,.18); }
.standings .p { font: 700 15px var(--display); color: var(--mute); text-align: center; }
.standings img { width: 26px; height: 26px; }
.standings .n.g { color: #8af0a2; } .standings .n.b { color: #8cc8ff; }
.standings .t { font-variant-numeric: tabular-nums; color: var(--mute); font-size: 13px; }
.standings .pts { font: 700 13px var(--display); color: var(--gold); min-width: 44px; text-align: right; }
.actions { display: flex; gap: 10px; }
.actions button { flex: 1; border-radius: 12px; padding: 12px; font: 600 16px var(--display); border: 1px solid var(--line); }
.actions .ghost { background: rgba(255,255,255,.06); }
.actions .primary { border: 0; color: #2a1606; background: linear-gradient(180deg, #ffe58a, var(--gold) 50%, var(--gold-2)); box-shadow: 0 4px 0 #a5650a; }

/* ---------------------------------------------------------------- mobil */
@media (max-width: 900px) {
  .pets { grid-template-columns: 1fr; }
  .pet-right { border-left: 0; border-top: 1px solid var(--line); order: -1; }
  .pet-stage { aspect-ratio: auto; height: 210px; } .pet-stage img { width: auto; height: 210px; max-width: 100%; object-fit: contain; }
  .pet-grid { grid-template-columns: repeat(3, 1fr); }
  .wallet small { display: none; }
  #lobby { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; padding: 10px 12px 12px; gap: 10px; overflow-x: hidden; overflow-y: auto; }
  .party { gap: 6px; width: 100%; }
  .slot { width: 22%; gap: 6px; }
  .slot.you { width: 30%; }
  .name { font-size: 12px; padding: 2px 8px; }
  .slot.you .name { font-size: 13px; }
  .slot .tag { font-size: 8px; text-align: center; }
  .slot .kick { opacity: 1; width: 20px; height: 20px; font-size: 12px; }
  .slot.empty button.invite { font-size: 11px; }
  .wallet small { display: none; }
  .seg button { padding: 7px 4px; font-size: 12px; }
  .lobby-foot, .skins, .playbox { min-width: 0; }
  .tabs { display: none; }
  .logo { font-size: 24px; flex: 1; }
  .tracks { padding: 10px; overflow: visible; }
  .track-list { grid-auto-flow: column; grid-auto-columns: minmax(180px, 62%); overflow-x: auto; padding-bottom: 4px; }
  .track p { display: none; }
  .stage { min-height: 190px; }
  .party-note { position: static; margin-top: 8px; }
  .stage { display: flex; flex-direction: column; justify-content: center; }
  .lobby-foot { grid-template-columns: 1fr; }
  .skin { width: 54px; height: 54px; }
  .play { font-size: 28px; }
  .hint { max-width: calc(100% - 28px); bottom: 92px; font-size: 12px; }
  .compass { padding: 6px 10px 6px 6px; }
  .dial { width: 48px; height: 48px; }
  .dist b { font-size: 18px; }
  .bar { width: 80px; }
  .pill { font-size: 15px; padding: 6px 10px; }
  .icon-btn { width: 40px; height: 40px; }
  .countdown { font-size: 90px; }
  .toast { font-size: 15px; }
  .feed { display: none; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .slot .ball, .slot .ball img, .play::after { animation: none; }
}

/* animăluțul fiecărui jucător în clasament */
.standings .spet { width: 26px; height: 26px; object-fit: contain; display: inline-block; flex: none; }

/* ================================================================ pagini (Magazin / Provocări / Pass), ca în machete */
:root { --amber: rgba(255,214,140,.24); --card: rgba(28,20,13,.84); --rar-epic: #8b46c9; --rar-rar: #2f7fd0; --rar-comun: #5d6a73; --rar-legendar: #e8862e; }
.page { overflow: hidden; }
.page-bg { position: absolute; inset: 0; background-size: cover; background-position: center 40%; }
.page-bg::after { content: ""; position: absolute; inset: 0; background:
  radial-gradient(120% 90% at 50% 20%, rgba(16,11,7,0) 30%, rgba(16,11,7,.7) 100%),
  linear-gradient(180deg, rgba(16,11,7,.35) 0%, rgba(16,11,7,.15) 30%, rgba(16,11,7,.55) 100%); }
.page-leaves { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.page-leaves i { position: absolute; top: -40px; width: 30px; height: 30px; background: url(../assets/painted/ui/leaf.webp) center / contain no-repeat; animation: leafFall linear infinite; opacity: .9; }
@keyframes leafFall { 0% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(-40px, 52vh) rotate(160deg); } 100% { transform: translate(20px, 110vh) rotate(340deg); } }
.page-body { position: absolute; inset: 70px 0 0; overflow: auto; padding: 6px max(22px, env(safe-area-inset-right)) 26px max(22px, env(safe-area-inset-left)); display: grid; gap: 14px; align-content: start; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ph { display: flex; align-items: flex-start; gap: 10px; }
.ph-leaf { width: 44px; height: 44px; margin-top: 10px; filter: drop-shadow(0 3px 4px rgba(0,0,0,.4)); }
.ph h1 { margin: 0; font: 700 clamp(34px, 5vw, 58px)/1 var(--display); text-shadow: 0 4px 0 rgba(42,24,12,.6), 0 10px 30px rgba(0,0,0,.45); }
.ph p { margin: 4px 0 0; font-size: 18px; color: #f3e6cf; text-shadow: 0 2px 6px rgba(0,0,0,.6); }
.ph .kick { margin: 0; font: 700 16px var(--display); letter-spacing: .06em; color: var(--gold); }
.timer-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 16px; background: rgba(20,14,9,.82); border: 1px solid var(--amber); font: 600 16px var(--display); color: #f3e6cf; }
.timer-pill svg { width: 24px; height: 24px; }
.timer-pill b { font: 700 22px var(--display); color: var(--gold); font-variant-numeric: tabular-nums; }
.timer-pill.small { padding: 6px 12px; font-size: 13px; } .timer-pill.small b { font-size: 15px; } .timer-pill.small svg { width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-btn { display: inline-flex; align-items: center; gap: 10px; padding: 10px 22px; border-radius: 14px; border: 1px solid var(--amber); background: rgba(20,14,9,.78); font: 600 16px var(--display); color: #f3e6cf; }
.chip-btn img { width: 26px; height: 26px; object-fit: cover; border-radius: 50%; }
.chip-btn.on { background: linear-gradient(180deg, #ffe58a, var(--gold) 55%, var(--gold-2)); color: #2a1606; border-color: #ffd86b; box-shadow: 0 3px 0 #a5650a; }
.dc-card { position: relative; background: var(--card); border: 1px solid var(--amber); border-radius: 18px; box-shadow: 0 14px 40px rgba(0,0,0,.35); min-width: 0; }
.rar-chip { display: inline-block; padding: 3px 10px; border-radius: 10px; font: 800 12px var(--display); letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.rar-chip.epic { background: var(--rar-epic); } .rar-chip.rar { background: var(--rar-rar); } .rar-chip.comun { background: var(--rar-comun); } .rar-chip.legendar { background: var(--rar-legendar); }
.price-tag { display: inline-flex; align-items: center; gap: 8px; font: 700 20px var(--display); color: #fff3c4; }
.price-tag img { width: 28px; height: 28px; object-fit: contain; filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
.gold-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 12px 26px; font: 700 19px var(--display); color: #2a1606; background: linear-gradient(180deg, #ffe58a, var(--gold) 55%, var(--gold-2)); box-shadow: 0 4px 0 #a5650a, 0 10px 24px rgba(0,0,0,.3); }
.gold-btn:disabled { filter: grayscale(.6); opacity: .7; }
.pill-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 16px; border: 1px solid var(--amber); background: rgba(20,14,9,.82); font: 600 15px var(--display); color: #f3e6cf; }
.page-foot { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 16px; background: rgba(20,14,9,.78); border: 1px solid var(--amber); font-size: 14px; color: #f3e6cf; }
.page-foot img { width: 24px; height: 24px; }
.page-foot span { flex: 1; }

/* ---- magazin */
.shop-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; gap: 14px; }
.shop-grid.flat { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); grid-template-rows: none; }
.s-card { overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; min-height: 250px; background-size: cover; background-position: center; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.s-card:hover { transform: translateY(-3px); box-shadow: 0 18px 46px rgba(0,0,0,.45), 0 0 0 1px rgba(255,214,140,.45); }
.s-card .rar-chip { position: absolute; top: 12px; left: 12px; }
.s-card .s-info { padding: 40px 16px 14px; background: linear-gradient(180deg, rgba(20,14,9,0), rgba(20,14,9,.92) 45%); }
.s-card h4 { margin: 0 0 4px; font: 700 20px var(--display); }
.s-card .owned { font: 700 14px var(--display); color: #8af0a2; }
.s-card.pet-art { background-size: 70% auto; background-repeat: no-repeat; background-position: center 30%; background-color: rgba(40,28,18,.9); }
.s-bundle { grid-row: 1 / 3; min-height: 520px; }
.s-bundle .tag { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 14px; background: rgba(20,14,9,.82); border: 1px solid var(--amber); font: 700 13px var(--display); letter-spacing: .08em; text-transform: uppercase; }
.s-bundle .tag img { width: 20px; height: 20px; }
.s-bundle h3 { margin: 0; font: 700 clamp(28px, 3vw, 42px) var(--display); text-shadow: 0 3px 0 rgba(42,24,12,.6); }
.s-bundle .sub { margin: 4px 0 12px; font-size: 18px; color: #f3e6cf; }
.s-bundle .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pack-card { display: grid; justify-items: center; gap: 8px; padding: 16px; text-align: center; }
.pack-card img.pack { width: 120px; height: 100px; object-fit: cover; border-radius: 14px; }
.pack-card b { font: 700 24px var(--display); }
.pack-card small { color: #8af0a2; font-weight: 700; }

/* ---- provocări */
.ch-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; }
.c-panel { padding: 14px; display: grid; gap: 10px; align-content: start; }
.c-head { display: flex; align-items: center; gap: 10px; }
.c-head img.ic { width: 46px; height: 46px; }
.c-head .t { flex: 1; min-width: 0; }
.c-head h3 { margin: 0; font: 700 26px/1.1 var(--display); }
.c-head small { color: #f3e6cf; font-size: 14px; }
.c-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 10px 6px 6px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,214,140,.1); }
.c-row img.ic { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; }
.c-row .tx b { display: block; font: 700 17px var(--display); }
.c-row .tx small { color: #f3e6cf; font-size: 13px; }
.c-row .pbar { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.c-row .pbar .cbar { height: 9px; }
.c-row .cnum { font-size: 15px; color: #f3e6cf; min-width: 30px; text-align: right; }
.c-row.ok .cbar i { background: linear-gradient(90deg, #3fbf55, #6ee87a); }
.c-row .rwd { display: grid; justify-items: end; gap: 6px; padding-left: 10px; border-left: 1px solid rgba(255,214,140,.14); font: 700 18px var(--display); color: #ffd86b; }
.c-row .rwd .price-tag { font-size: 18px; } .c-row .rwd .price-tag img { width: 24px; height: 24px; }
.c-row.ok { border-color: rgba(94,227,107,.35); }
.c-row .ok-mark { color: #5ee36b; font-size: 20px; }
.c-chest { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; padding: 6px; border-radius: 14px; background: rgba(255,207,90,.08); border: 1px solid rgba(255,207,90,.25); }
.c-chest img { width: 150px; height: 76px; object-fit: cover; border-radius: 10px; }
.c-chest b { display: block; font: 700 18px var(--display); color: #ffd86b; }
.c-chest span { font: 700 22px var(--display); }
.c-chest.ok b::after { content: " ✓"; color: #5ee36b; }
.dt-card { overflow: hidden; display: grid; min-height: 460px; background-size: cover; background-position: center; }
.dt-card .top { padding: 14px 16px; background: linear-gradient(180deg, rgba(20,14,9,.65), rgba(20,14,9,0)); }
.dt-card .blue-chip { display: inline-block; padding: 4px 12px; border-radius: 10px; background: #2f7fd0; font: 800 13px var(--display); letter-spacing: .06em; }
.dt-card h3 { margin: 6px 0 0; font: 700 34px var(--display); text-shadow: 0 3px 0 rgba(20,30,50,.6), 0 6px 18px rgba(0,0,0,.5); }
.dt-card .top p { margin: 0; font-size: 17px; text-shadow: 0 2px 6px rgba(0,0,0,.7); }
.dt-medals { align-self: end; display: flex; justify-content: center; gap: 22px; padding: 0 12px 10px; }
.dt-medals div { display: grid; justify-items: center; font: 700 18px var(--display); text-shadow: 0 2px 4px rgba(0,0,0,.8); }
.dt-medals img { width: 74px; height: 74px; object-fit: contain; }
.dt-medals div.got img { filter: drop-shadow(0 0 10px rgba(255,214,120,.9)); }
.dt-medals div.no img { filter: grayscale(.4) brightness(.7); }
.dt-medals b { margin-top: -4px; padding: 2px 14px; border-radius: 10px; background: rgba(20,14,9,.8); border: 1px solid rgba(255,220,150,.18); font: inherit; }
.dt-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 14px 14px; align-self: end; }
.dt-bottom .rec { display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 14px; background: rgba(20,14,9,.86); border: 1px solid var(--amber); font: 600 17px var(--display); }
.dt-bottom .rec b { font-size: 22px; font-variant-numeric: tabular-nums; }
.exp-head { margin: -14px -14px 0; padding: 14px; border-radius: 18px 18px 0 0; background-size: cover; background-position: center 30%; }
.exp-reward { display: grid; grid-template-columns: 180px 1fr; gap: 12px; align-items: center; padding: 6px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,214,140,.14); font: 700 20px var(--display); }
.exp-reward img { width: 180px; height: 72px; object-fit: cover; border-radius: 10px; }
.exp-reward.ok span::after { content: " ✓"; color: #5ee36b; }
.pass-strip { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 16px; padding: 14px; align-items: center; overflow: hidden; }
.pass-strip .ps-left { display: grid; gap: 8px; }
.pass-strip h3 { margin: 0; font: 700 28px var(--display); display: flex; align-items: center; gap: 8px; }
.pass-strip h3 img { width: 34px; height: 34px; }
.pass-strip .lvl { font: 700 18px var(--display); color: #ffd86b; }
.xpbar { height: 12px; border-radius: 8px; background: rgba(255,255,255,.12); overflow: hidden; }
.xpbar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #f2b84a, #ffd86b); }

/* ---- pista de recompense (pass) */
.track-scroll { overflow-x: auto; padding-bottom: 6px; }
.rtrack { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; grid-template-rows: 30px 92px 92px; gap: 8px; width: max-content; }
.rtrack .lab { position: sticky; left: 0; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 14px; font: 700 18px var(--display); box-shadow: 10px 0 14px -6px rgba(10,6,3,.85); }
.rtrack .lab img { width: 34px; height: 34px; }
.rtrack > div:first-child { position: sticky; left: 0; z-index: 2; background: #1d150e; box-shadow: 0 0 0 4px #1d150e; }
.rtrack .lab.free { background: #2b2118; border: 1px solid rgba(255,214,140,.14); }
.rtrack .lab.prem { background: #301f45; border: 1px solid rgba(190,140,255,.3); color: #e2c8ff; }
.rtrack .num { display: grid; place-items: center; }
.rtrack .num span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,214,140,.5); background: rgba(20,14,9,.9); font: 700 15px var(--display); }
.rtrack .num.cur span { background: var(--gold); color: #2a1606; border-color: #ffe58a; }
.rtile { position: relative; display: grid; place-items: center; border-radius: 14px; overflow: hidden; background: rgba(255,255,255,.05); border: 1px solid rgba(255,214,140,.14); }
.rtile img.art { width: 100%; height: 100%; object-fit: cover; }
.rtile.prem { background: rgba(140,80,220,.14); border-color: rgba(190,140,255,.25); }
.rtile.locked img.art { filter: brightness(.65) saturate(.8); }
.rtile .badge { position: absolute; right: 6px; bottom: 6px; font-size: 16px; }
.rtile .check { position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: #3ccf62; color: #fff; display: grid; place-items: center; font: 800 13px var(--display); }
.rtile .claim { position: absolute; left: 8px; right: 8px; bottom: 6px; padding: 3px 0; border: 0; border-radius: 8px; font: 700 13px var(--display); color: #2a1606; background: linear-gradient(180deg, #ffe58a, var(--gold)); box-shadow: 0 2px 0 #a5650a; }
.rtile.sel { box-shadow: 0 0 0 3px var(--gold); }
.pass-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 500px); gap: 16px; }
.pass-hero { position: relative; min-height: 430px; overflow: hidden; display: grid; align-content: space-between; padding: 16px; background-size: cover; background-position: center; }
.pass-hero .lvlbox { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; max-width: 680px; padding: 14px 16px; border-radius: 16px; background: rgba(20,14,9,.82); border: 1px solid var(--amber); }
.pass-hero .lvlbox .l { display: flex; justify-content: space-between; font: 700 20px var(--display); }
.pass-hero .lvlbox .l span { color: #ffd86b; }
.pass-hero .info { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 14px; background: rgba(20,14,9,.82); border: 1px solid var(--amber); font-size: 15px; }
.prem-card { display: grid; gap: 10px; padding: 12px; align-content: start; border-color: rgba(255,214,140,.4); }
.prem-card .pchip { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; border-radius: 12px; background: rgba(140,80,220,.3); border: 1px solid rgba(190,140,255,.5); font: 700 14px var(--display); letter-spacing: .04em; }
.prem-card img.hero { width: 100%; height: 190px; object-fit: cover; border-radius: 14px; }
.prem-card h3 { margin: 0; font: 700 28px var(--display); }
.prem-card .sub { margin: -6px 0 0; color: #f3e6cf; }
.prem-card .lock { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--amber); }
.prem-card .note { margin: 0; text-align: center; font-size: 14px; color: #f3e6cf; }
.rewards-card { padding: 14px; display: grid; gap: 10px; }
.rewards-card header { display: flex; align-items: center; gap: 10px; }
.rewards-card header h3 { margin: 0; flex: 1; font: 700 24px var(--display); display: flex; align-items: center; gap: 8px; }
.rewards-card header h3 img { width: 30px; height: 30px; }
.arrow-btn { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--amber); background: rgba(20,14,9,.8); font: 700 18px var(--display); }
.prem-note { text-align: center; font-size: 15px; color: #e2c8ff; }

/* ---- fereastra */
.dc-modal { width: min(560px, 100%); padding: 22px; display: grid; gap: 14px; background: rgba(28,20,13,.97); border: 1px solid var(--amber); }
.dc-modal h3 { margin: 0; font: 700 26px var(--display); }
.dc-modal .art { width: 100%; max-height: 240px; object-fit: cover; border-radius: 14px; }
.dc-modal .contents { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dc-modal .contents div { display: grid; justify-items: center; gap: 6px; text-align: center; font: 600 14px var(--display); }
.dc-modal .contents img { width: 100%; height: 90px; object-fit: cover; border-radius: 12px; }
.dc-modal .actions2 { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.dc-modal .msg { margin: 0; color: #f3e6cf; }
.dc-modal .msg.bad { color: #ffb4a0; }
.coll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; max-height: 60vh; overflow: auto; }
.coll-item { display: grid; gap: 6px; padding: 8px; border-radius: 12px; background: rgba(255,255,255,.05); text-align: center; font: 600 13px var(--display); }
.coll-item img { width: 100%; height: 80px; object-fit: cover; border-radius: 10px; }
.coll-item button { border: 1px solid var(--amber); border-radius: 10px; background: rgba(20,14,9,.8); padding: 4px; font: 700 12px var(--display); }
.coll-item button.on { background: #3ccf62; color: #0f2a14; }

/* ---- navigare jos pe telefon */
.bottom-nav { position: fixed; z-index: 16; left: 0; right: 0; bottom: 0; display: none; padding: 6px 8px max(6px, env(safe-area-inset-bottom)); background: rgba(16,11,7,.94); border-top: 1px solid var(--amber); }
.bottom-nav button { flex: 1; display: grid; justify-items: center; gap: 2px; border: 0; background: none; padding: 4px 0; font: 600 11px var(--display); color: var(--mute); }
.bottom-nav button img { width: 28px; height: 28px; object-fit: contain; border-radius: 50%; }
.bottom-nav button.active { color: var(--gold); }
#petZone .zone-top { top: 70px; }
#petZone .zone-panel { top: 124px; }

@media (max-width: 1100px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .s-bundle { grid-row: auto; grid-column: 1 / -1; min-height: 380px; }
  .ch-grid { grid-template-columns: minmax(0, 1fr); }
  .pass-top { grid-template-columns: minmax(0, 1fr); }
  .pass-strip { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .bottom-nav:not([hidden]) { display: flex; }
  .page-body { inset: 60px 0 64px; padding: 4px 14px 20px; }
  #lobby { padding-top: 64px; padding-bottom: 76px; }
  #petZone .zone-panel { bottom: 74px; }
  .topbar { gap: 10px; padding-top: max(8px, env(safe-area-inset-top)); }
  .lang select { max-width: 92px; }
  .ph p { font-size: 15px; }
  .timer-pill { padding: 8px 12px; } .timer-pill b { font-size: 18px; }
  .chip-btn { padding: 8px 14px; font-size: 14px; }
  .s-card { min-height: 210px; }
  .c-row { grid-template-columns: 70px minmax(0, 1fr) auto; } .c-row img.ic { width: 70px; height: 56px; }
  .dt-card { min-height: 400px; }
  .pass-hero { min-height: 300px; }
  .page-foot { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .s-card h4 { font-size: 16px; } .price-tag { font-size: 17px; }
  .wallet { padding: 6px 10px; gap: 5px; } .wallet b { font-size: 15px; } .wallet img { width: 22px; height: 22px; }
  .lang { display: none; }
  .c-chest { grid-template-columns: 100px 1fr; } .c-chest img { width: 100px; }
  .exp-reward { grid-template-columns: 120px 1fr; } .exp-reward img { width: 120px; }
  .dt-bottom { grid-template-columns: 1fr; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -14px; padding-inline: 14px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip-btn { flex: none; }
  .pass-hero { min-height: 340px; padding: 12px; }
  .pass-hero .lvlbox { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px; }
  .pass-hero .lvlbox .l { font-size: 18px; }
  .pass-hero .info { font-size: 13px; }
}

/* Maratonul Morilor: cardul din lista de trasee */
.track.marathon { border-color: #e8b54a; box-shadow: 0 0 0 1px rgba(232,181,74,.6), 0 10px 26px rgba(232,150,40,.18); }
.track.marathon .thumb { filter: saturate(1.15); }
.mar { display: grid; gap: 3px; margin-top: 6px; font-size: 12px; }
.mar .mbadge { justify-self: start; padding: 2px 8px; border-radius: 8px; background: linear-gradient(180deg, #ffd86b, #e8a93a); color: #2a1606; font: 700 11px var(--display); letter-spacing: .06em; text-transform: uppercase; }
.mar .mrow { color: #f3e6cf; }
.mar .mrow.ok { color: #7fe08a; }

/* =====================================================================================
   v2 — Magazin / Provocări / Pass, ca în machetele mock2-* (meniu lateral, piedestale, panouri de detalii)
   ===================================================================================== */
:root { --serif: Fraunces, Georgia, "Times New Roman", serif; --panel2: rgba(30,22,15,.9); --line2: rgba(255,214,140,.22); --green2: #57d36a; }
.logo { display: flex; align-items: center; gap: 2px; }
.logo-leaf { width: 34px; height: 34px; margin-right: 8px; filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)); }
.tabs .tab + .tab { position: relative; }
.tabs .tab + .tab::before { content: ""; position: absolute; left: -2px; top: 25%; bottom: 25%; width: 1px; background: rgba(255,214,140,.22); }
.tab.active { border-radius: 16px; border: 1.5px solid var(--gold); background: rgba(255,207,90,.1); box-shadow: 0 0 14px rgba(255,207,90,.2); }
.tab.active::before { display: none; }

.page-body.side-layout { display: grid; grid-template-columns: 182px minmax(0, 1fr); gap: 20px; align-items: start; align-content: stretch; }
.side-nav { position: sticky; top: 4px; margin-top: 104px; display: grid; gap: 4px; padding: 14px 10px 120px; border-radius: 18px; background: linear-gradient(180deg, rgba(28,20,13,.92), rgba(28,20,13,.78)); border: 1px solid var(--line2);
  background-image: url(../assets/painted/ui/leaf.webp), linear-gradient(180deg, rgba(28,20,13,.92), rgba(28,20,13,.78)); background-repeat: no-repeat; background-position: 70% 96%, 0 0; background-size: 90px auto, auto; }
.side-btn { display: flex; align-items: center; gap: 12px; padding: 14px 12px; border: 0; border-bottom: 1px solid rgba(255,214,140,.08); background: none; border-radius: 14px; color: #f3e6cf; font: 600 17px var(--display); text-align: left; cursor: pointer; }
.side-btn img { width: 40px; height: 40px; object-fit: contain; flex: none; filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
.side-btn:hover { background: rgba(255,214,140,.07); }
.side-btn.on { color: #2a1606; background: linear-gradient(180deg, #ffe58a, var(--gold) 55%, var(--gold-2)); box-shadow: 0 4px 0 #a5650a, 0 8px 18px rgba(0,0,0,.35); border-bottom-color: transparent; }
.side-main { min-width: 0; display: grid; gap: 14px; align-content: start; }
.side-main .page-head { min-height: 96px; align-items: center; }
.ph h1 { font: 800 clamp(30px, 3.6vw, 52px)/1.02 var(--serif); letter-spacing: -.01em; }
.ph p { font-size: 18px; }

/* rarități: cip închis cu frunză colorată */
.rar-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 8px; border-radius: 12px; background: rgba(20,14,9,.82) !important; border: 1px solid rgba(255,214,140,.2); color: #f3e6cf; font: 700 12px var(--display); letter-spacing: .08em; }
.rar-chip i { width: 15px; height: 15px; background: url(../assets/painted/ui/leaf.webp) center / contain no-repeat; }
.rar-chip.rar i { filter: hue-rotate(70deg) saturate(1.3) brightness(1.1); } .rar-chip.rar { border-color: rgba(120,200,90,.35); }
.rar-chip.epic i { filter: hue-rotate(230deg) saturate(1.4); } .rar-chip.epic { border-color: rgba(170,110,240,.45); color: #e5d0ff; }
.rar-chip.legendar i { filter: saturate(1.6) brightness(1.2); } .rar-chip.legendar { border-color: rgba(255,170,60,.55); color: #ffd99a; }
.owned { color: var(--green2); font: 700 17px var(--display); } .owned.big { font-size: 20px; align-self: center; }

/* cardul cu piedestal (selecția zilei, animăluțe, accesorii) */
.p-card { display: grid; grid-template-rows: auto 1fr auto; padding: 0; overflow: hidden; text-align: left; color: inherit; cursor: pointer; background: linear-gradient(180deg, rgba(36,26,17,.94), rgba(24,17,11,.96)); transition: transform .12s, box-shadow .12s, border-color .12s; }
.p-card:hover { transform: translateY(-2px); border-color: rgba(255,214,140,.5); }
.p-card.sel { border: 2px solid var(--gold); box-shadow: 0 0 0 1px rgba(255,207,90,.4), 0 0 24px rgba(255,207,90,.25); }
.p-card .rar-chip { position: absolute; top: 12px; left: 12px; z-index: 1; }
.p-art { min-height: 150px; background: center 70% / contain no-repeat; margin: 34px 8px 0; }
.p-info { padding: 6px 16px 14px; display: grid; gap: 2px; }
.p-info h4 { margin: 0; font: 700 19px var(--display); text-shadow: 0 2px 4px rgba(0,0,0,.6); }

/* selecția zilei */
.daily-grid { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(250px, auto); gap: 14px; }
.bundle-card { grid-row: span 2; min-height: 560px; background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px 22px; overflow: hidden; }
.bundle-card .tag { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 12px; background: rgba(20,14,9,.82); border: 1px solid rgba(255,214,140,.3); font: 700 13px var(--display); letter-spacing: .1em; text-transform: uppercase; }
.bundle-card .tag img { width: 20px; height: 20px; }
.b-info h2 { margin: 0; font: 800 clamp(30px, 3.4vw, 46px)/1.05 var(--serif); text-shadow: 0 3px 0 rgba(42,24,12,.6), 0 6px 20px rgba(0,0,0,.5); }
.b-info p { margin: 6px 0 12px; font-size: 19px; color: #f3e6cf; }
.b-info .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.b-info .price-tag { font-size: 30px; } .b-info .price-tag img { width: 36px; height: 36px; }
.foot-bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; flex-wrap: wrap; }
.foot-bar img { width: 34px; height: 34px; }
.foot-bar span { flex: 1; min-width: 200px; color: #f3e6cf; font-size: 15px; }

/* carduri + panoul de detalii din dreapta */
.cards-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 30%); gap: 18px; align-items: start; }
.detail { position: sticky; top: 4px; padding: 16px; display: grid; gap: 10px; background: linear-gradient(180deg, rgba(36,26,17,.96), rgba(22,16,10,.96)); }
.detail h2 { margin: 2px 0 0; font: 800 34px/1.05 var(--serif); text-shadow: 0 3px 0 rgba(42,24,12,.6); }
.detail .d-sub, .detail .d-tag { margin: 0; color: #f3e6cf; font-size: 16px; }
.d-meta { display: flex; align-items: center; gap: 8px; color: #f3e6cf; font-size: 16px; }
.d-actions { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: stretch; }
.d-actions .gold-btn { padding: 12px 16px; font-size: 18px; white-space: nowrap; }
.d-actions .gold-btn .price-tag { font-size: 18px; color: #2a1606; gap: 4px; } .d-actions .gold-btn .price-tag img { width: 24px; height: 24px; }
.d-actions .gold-btn.wide, .d-actions > :only-child { grid-column: 1 / -1; }
.pill-btn.big { padding: 12px 18px; font: 700 16px var(--display); justify-content: center; }
.d-note { margin: 4px 0 0; padding-top: 10px; border-top: 1px solid rgba(255,214,140,.14); font-size: 13px; color: var(--mute); }

/* bile */
.ball-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.b-card { position: relative; display: grid; grid-template-rows: 1fr auto; padding: 0; overflow: hidden; text-align: left; color: inherit; min-height: 560px; cursor: pointer; background: rgba(24,17,11,.96); }
.b-card.sel { border: 2px solid var(--gold); box-shadow: 0 0 0 1px rgba(255,207,90,.4), 0 0 26px rgba(255,207,90,.25); }
.b-card .rar-chip { position: absolute; top: 14px; left: 14px; z-index: 1; }
.b-art { background: center / cover no-repeat; min-height: 380px; }
.b-txt { padding: 10px 18px 16px; display: grid; gap: 4px; }
.b-txt h3 { margin: 0; font: 800 28px/1.05 var(--serif); }
.b-txt p { margin: 0 0 6px; color: #f3e6cf; font-size: 15px; }
.b-txt .price-tag { font-size: 26px; }
.d-art { position: relative; height: 290px; border-radius: 14px; background: center / cover no-repeat; overflow: hidden; }
.thumbs { display: flex; gap: 8px; align-items: center; }
.thumbs span { flex: 1; aspect-ratio: 1.15; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,214,140,.16); }
.thumbs img { width: 62%; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }
.thumbs .swatch { width: 40px; height: 40px; border-radius: 8px; flex: none; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }
.roll-ground { position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: linear-gradient(180deg, rgba(60,90,30,0), rgba(40,60,20,.6)); }
.roll-ball { position: absolute; bottom: 14%; left: -30%; width: 34%; animation: rollBy 2.4s cubic-bezier(.3,.1,.4,1) forwards; filter: drop-shadow(0 10px 10px rgba(0,0,0,.45)); }
@keyframes rollBy { 0% { left: -36%; transform: rotate(0deg); } 60% { left: 40%; transform: rotate(560deg); } 75% { left: 36%; transform: rotate(520deg); } 100% { left: 33%; transform: rotate(500deg); } }

/* animăluțe */
.pet-cards, .acc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pet-cards .p-art { min-height: 190px; }
.d-scene { position: relative; height: 380px; border-radius: 14px; background: center / cover no-repeat; display: grid; place-items: end center; overflow: hidden; }
.d-scene img { width: 66%; margin-bottom: 4%; filter: drop-shadow(0 14px 14px rgba(0,0,0,.5)); }
.pet-detail h2 { text-align: center; font-size: 44px; }
.pet-detail .d-tag { text-align: center; font-size: 17px; }
.traits { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 1px solid rgba(255,214,140,.14); }
.traits span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 16px; border: 1px solid rgba(255,214,140,.3); font: 600 15px var(--display); }
.traits img { width: 22px; height: 22px; object-fit: contain; }

/* accesorii */
.acc-filter { margin-top: -6px; }
.acc-detail .d-scene { height: 300px; }
.acc-detail .d-scene img { width: 58%; }
.swatches { display: flex; justify-content: center; gap: 16px; }
.swatches button { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgba(255,255,255,.18); cursor: pointer; }
.swatches button.on { border-color: var(--gold); box-shadow: 0 0 12px rgba(255,207,90,.5); }
.try { display: grid; gap: 8px; text-align: center; }
.try > span { display: flex; align-items: center; gap: 10px; color: #f3e6cf; font-size: 15px; }
.try > span::before, .try > span::after { content: ""; flex: 1; height: 1px; background: rgba(255,214,140,.2); }
.try > div { display: flex; justify-content: center; gap: 14px; }
.try button { width: 74px; height: 74px; border-radius: 50%; padding: 4px; border: 2px solid rgba(255,214,140,.22); background: radial-gradient(circle at 50% 40%, rgba(255,214,140,.14), rgba(20,14,9,.6)); cursor: pointer; }
.try button.on { border-color: var(--gold); box-shadow: 0 0 14px rgba(255,207,90,.45); }
.try img { width: 100%; height: 100%; object-fit: contain; }
.d-only { margin: -4px 0 8px; color: var(--gold); font-size: 13px; }

/* ghinde */
.pack-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pack2 { display: grid; justify-items: center; gap: 2px; padding: 0 0 16px; overflow: hidden; }
.pk-art { width: 100%; aspect-ratio: 1.15; background: center 62% / contain no-repeat; } /* desenul decupat pe card; cu cât pachetul e mai mare, cu atât mai mare desenul */
.pk-n { font: 800 44px/1 var(--serif); margin-top: -6px; text-shadow: 0 3px 0 rgba(42,24,12,.6); }
.pk-l { display: inline-flex; align-items: center; gap: 6px; color: #f3e6cf; font-size: 16px; margin-bottom: 10px; }
.pk-l img { width: 26px; height: 26px; }
.pack2 .gold-btn { width: 76%; font-size: 21px; }
.make-it { display: grid; grid-template-columns: minmax(240px, 1.3fr) repeat(3, minmax(0, 1fr)); align-items: center; gap: 0; padding: 10px 14px; }
.mi-t { display: flex; align-items: center; gap: 14px; }
.mi-t img { width: 44px; height: 44px; }
.mi-t h3 { margin: 0; font: 800 34px/1 var(--serif); }
.mi-t p { margin: 6px 0 0; color: #f3e6cf; font-size: 15px; }
.mi-item { display: flex; align-items: center; gap: 12px; padding: 4px 12px; border: 0; border-left: 1px solid rgba(255,214,140,.16); background: none; color: inherit; text-align: left; cursor: pointer; }
.mi-art { width: 96px; height: 80px; flex: none; background: center / cover no-repeat; border-radius: 10px; }
.mi-item b { display: block; font: 600 16px var(--display); margin-bottom: 4px; }

/* provocări: astăzi */
.today-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1.05fr); gap: 14px; }
.c-panel2 { padding: 14px; display: grid; gap: 10px; align-content: start; }
.c-head2 { display: flex; gap: 10px; align-items: flex-start; }
.c-head2 > img { width: 40px; height: 40px; }
.c-head2 h3 { margin: 0; font: 800 28px/1.05 var(--serif); }
.c-head2 small { color: #f3e6cf; font-size: 14px; }
.c-row2 { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 10px 6px 6px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,214,140,.12); }
.c-row2 .ic { width: 92px; height: 74px; object-fit: contain; }
.c-row2 .tx b { display: block; font: 700 18px var(--display); }
.c-row2 .tx small { color: #f3e6cf; font-size: 14px; }
.c-row2 .rwd { display: grid; justify-items: end; gap: 6px; }
.rw { display: inline-flex; align-items: center; gap: 6px; font: 700 20px var(--display); color: #fff3c4; } .rw img { width: 28px; height: 28px; }
.rw em, .chest2 em, .lvlbox2 em { color: var(--gold-2); font-style: normal; font-weight: 800; }
.c-row2.ok { border-color: rgba(87,211,106,.4); }
.reroll { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(20,14,9,.8); color: #f3e6cf; cursor: pointer; }
.pbar { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.pbar .cbar { height: 9px; } .pbar .cnum { font: 700 15px var(--display); color: #f3e6cf; min-width: 34px; text-align: right; }
.ok .cbar i, .g-row.ok .cbar i, .wg-row.ok .cbar i { background: linear-gradient(90deg, #3fbf55, #6ee87a); }
.ok-mark { color: var(--green2); font-size: 22px; font-weight: 800; min-width: 22px; }
.chest2 { display: flex; align-items: center; gap: 12px; padding: 4px; border-radius: 14px; background: linear-gradient(90deg, rgba(120,70,20,.35), rgba(30,22,15,.4)); border: 1px solid rgba(255,214,140,.18); }
.chest2 .ch-art { width: 190px; height: 110px; background: center / contain no-repeat; flex: none; }
.chest2 b { display: block; font: 800 22px var(--serif); }
.chest2 span { display: inline-flex; align-items: center; gap: 6px; font: 700 17px var(--display); } .chest2 span img { width: 24px; height: 24px; }
.chest2.ok { border-color: rgba(87,211,106,.45); }
.dt2 { position: relative; display: grid; grid-template-rows: auto 1fr auto auto; padding: 16px; min-height: 520px; background-size: cover; background-position: center; overflow: hidden; }
.dt2 .top h2 { margin: 8px 0 2px; font: 800 36px/1.05 var(--serif); text-shadow: 0 3px 10px rgba(0,0,0,.6); }
.dt2 .top p { margin: 0; color: #f3e6cf; text-shadow: 0 2px 6px rgba(0,0,0,.7); }
.blue-chip { display: inline-block; padding: 5px 12px; border-radius: 10px; background: #2f7fd0; font: 800 13px var(--display); letter-spacing: .08em; }
.dt-ball { justify-self: center; align-self: center; width: 130px; filter: drop-shadow(0 14px 18px rgba(0,0,0,.55)); }
.dt-medals2 { display: flex; justify-content: center; gap: 26px; margin-bottom: 12px; }
.dt-medals2 > div { position: relative; display: grid; justify-items: center; gap: 4px; }
.dt-medals2 img { width: 64px; height: 64px; object-fit: contain; }
.dt-medals2 .no img { filter: grayscale(.35) brightness(.75); }
.dt-medals2 .got img { filter: drop-shadow(0 0 10px rgba(255,214,120,.9)); }
.dt-medals2 b { padding: 2px 12px; border-radius: 10px; background: rgba(14,10,8,.82); font: 700 18px var(--display); }
.dt-medals2 .crown { position: absolute; top: -12px; width: 26px; height: 18px; background: url(../assets/painted/ui2/crown.webp) center / contain no-repeat; }
.dt-bottom2 { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.dt-bottom2 .rec { display: grid; place-items: center; padding: 0 16px; border-radius: 14px; background: rgba(14,10,8,.82); border: 1px solid var(--line2); font-size: 15px; }
.exp2 { display: grid; gap: 8px; padding: 0 0 12px; overflow: hidden; align-content: start; }
.exp2-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 14px; min-height: 150px; background-size: cover; background-position: center; }
.exp2-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font: 800 24px/1.1 var(--serif); }
.exp2-head h3 img { width: 34px; height: 34px; }
.exp2-head small { color: #f3e6cf; }
.g-list { display: grid; gap: 6px; padding: 0 10px; }
.g-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 10px 6px 6px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,214,140,.12); }
.g-row > img { width: 56px; height: 46px; object-fit: contain; }
.g-row b { font: 600 15px var(--display); }
.g-row.ok { border-color: rgba(87,211,106,.35); }
.exp2-rw { display: flex; align-items: center; gap: 10px; margin: 2px 10px 0; padding: 4px 12px 4px 4px; border-radius: 14px; background: linear-gradient(90deg, rgba(120,70,20,.3), rgba(30,22,15,.35)); border: 1px solid rgba(255,214,140,.18); }
.exp2-rw .rw-art { width: 150px; height: 80px; flex: none; background: center / contain no-repeat; }
.exp2-rw b { display: block; font: 800 20px var(--serif); } .exp2-rw small { color: #f3e6cf; }
.exp2 > .gold-btn { margin: 4px 10px 0; }
.gold-btn.wide { width: auto; }
.pass-strip2 { display: grid; grid-template-columns: minmax(220px, 1fr) auto minmax(0, 2.2fr); gap: 18px; align-items: center; padding: 14px 18px; }
.pass-strip2 h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font: 800 26px var(--serif); } .pass-strip2 h3 img { width: 34px; height: 34px; }
.pass-strip2 .lvl { font: 700 17px var(--display); color: var(--gold); margin-bottom: 8px; }
.ps-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ps-tile { position: relative; display: grid; place-items: center; aspect-ratio: 1.15; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,214,140,.16); }
.ps-tile img { width: 70%; height: 70%; object-fit: contain; }
.ps-tile .n { position: absolute; top: -14px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(14,10,8,.95); border: 1.5px solid rgba(255,214,140,.6); font: 700 13px var(--display); }
.ps-tile.can { border: 2px solid var(--gold); box-shadow: 0 0 16px rgba(255,207,90,.35); } .ps-tile.can .n { background: var(--gold); color: #2a1606; }
.ps-tile.locked img { filter: brightness(.7); }
.ps-tile .lock { position: absolute; right: 6px; bottom: 4px; font-size: 16px; }
.ps-tile .check { position: absolute; right: 6px; bottom: 4px; color: var(--green2); font-weight: 800; }
.ps-tile button { position: absolute; bottom: 4px; left: 6px; right: 6px; border: 0; border-radius: 8px; padding: 3px; font: 700 13px var(--display); color: #2a1606; background: linear-gradient(180deg, #ffe58a, var(--gold-2)); cursor: pointer; }

/* provocări: săptămânale */
.exp-banner2 { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 170px; padding: 20px 24px; border-radius: 18px; background-size: cover; background-position: center 60%; border: 1px solid var(--line2); }
.exp-banner2 .ph h1 { font-size: clamp(32px, 4vw, 58px); }
.week-grid2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; }
.wg-panel { padding: 16px; display: grid; gap: 10px; align-content: start; }
.wg-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto 28px; gap: 14px; align-items: center; padding: 8px 14px 8px 8px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,214,140,.12); }
.wg-row > img { width: 96px; height: 70px; object-fit: contain; }
.wg-row b { display: block; font: 600 18px var(--display); margin-bottom: 8px; }
.wg-row .cbar { height: 10px; } .wg-row .cnum { font: 700 18px var(--display); }
.wr-panel { padding: 18px; display: grid; gap: 8px; }
.wr-panel h2 { margin: 0; font: 800 38px/1.05 var(--serif); } .wr-panel > p { margin: 0; color: #f3e6cf; font-size: 17px; }
.wr-art { height: 190px; background: center / contain no-repeat; }
.wr-prog { display: grid; justify-items: center; gap: 8px; font: 700 17px var(--display); }
.nodes { display: flex; align-items: center; }
.nodes i { width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(255,214,140,.35); background: rgba(14,10,8,.8); }
.nodes i.on { border-color: var(--gold); background: url(../assets/painted/ui2/leaf-g.webp) center / 90% no-repeat, rgba(14,10,8,.8); box-shadow: 0 0 12px rgba(255,207,90,.5); }
.nodes b { width: 80px; height: 4px; background: rgba(255,214,140,.25); }
.wr-row { display: flex; align-items: center; justify-content: space-around; gap: 8px; padding: 10px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(14,10,8,.5); font: 700 17px var(--display); flex-wrap: wrap; }
.wr-row span { display: inline-flex; align-items: center; gap: 8px; } .wr-row img { width: 36px; height: 36px; object-fit: contain; }
.wr-row em { font-style: normal; color: var(--mute); }
.wr-row .xp { font: 800 26px var(--serif); color: var(--gold-2); }
.wr-btns { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.journey { position: relative; height: 150px; overflow: hidden; background-size: cover; background-position: center; }
.journey .path { position: absolute; inset: 20px 4% 20px 4%; width: 92%; height: calc(100% - 40px); }
.stop { position: absolute; top: 10px; bottom: 8px; width: 24%; display: grid; grid-template-rows: 1fr auto; justify-items: center; }
.stop.s0 { left: 3%; } .stop.s1 { left: 38%; } .stop.s2 { left: 70%; }
.st-art { width: 100%; height: 100%; background: center / contain no-repeat; }
.st-n { position: absolute; bottom: 4px; left: 6%; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(14,10,8,.9); border: 2px solid rgba(255,214,140,.6); font: 700 16px var(--display); }
.stop.done .st-n { background: var(--gold); color: #2a1606; }
.st-l { position: absolute; bottom: 8px; left: calc(6% + 44px); font: 600 18px var(--display); text-shadow: 0 2px 4px rgba(0,0,0,.8); }
.journey.plain .stop { grid-template-rows: 1fr; }
.j-ball { position: absolute; top: 44%; width: 34px; transition: left .6s; filter: drop-shadow(0 4px 6px rgba(0,0,0,.6)); }

/* provocări: măiestrie */
.medal-coll { display: grid; grid-template-columns: 54px minmax(160px, 1fr) auto; gap: 10px; align-items: center; padding: 10px 16px; border-radius: 16px; background: rgba(20,14,9,.82); border: 1px solid var(--line2); min-width: 320px; }
.medal-coll img { width: 54px; height: 54px; }
.medal-coll span { display: block; font: 600 16px var(--display); margin-bottom: 6px; }
.medal-coll > b { font: 800 22px var(--display); }
.m-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.m-card { overflow: hidden; display: grid; }
.m-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; min-height: 196px; padding: 16px 16px 20px 18px; background-size: cover; background-position: center; }
.m-head > div { align-self: flex-start; }
.m-head h2 { margin: 0; font: 800 34px/1 var(--serif); text-shadow: 0 3px 10px rgba(0,0,0,.6); }
.m-head .gold-btn { flex: none; }
.m-head p { margin: 4px 0 0; color: #f3e6cf; text-shadow: 0 2px 6px rgba(0,0,0,.7); }
.m-row { display: grid; grid-template-columns: 54px minmax(0, 1.2fr) minmax(90px, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid rgba(255,214,140,.1); }
.m-row .mi { width: 46px; height: 46px; object-fit: contain; }
.m-row .tx b { display: block; font: 700 17px var(--display); } .m-row .tx small { color: #f3e6cf; font-size: 13px; }
.m-row .pbar { margin: 0; }
.leaves { display: flex; gap: 8px; }
.leaves img { width: 44px; height: 44px; filter: grayscale(.85) brightness(.5); }
.leaves img.got { filter: drop-shadow(0 0 6px rgba(255,190,90,.6)); }
.m-foot { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 4px 0 0; color: #f3e6cf; font-size: 17px; text-shadow: 0 2px 6px rgba(0,0,0,.7); }
.m-foot img { width: 30px; height: 30px; }

/* provocări: pass-ul sezonului */
.pass2-top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 14px; }
.pass2-hero { display: grid; grid-template-rows: 1fr auto; min-height: 420px; padding: 18px; background-size: cover; background-position: center; overflow: hidden; }
.pass2-hero .ph h1 { font-size: clamp(36px, 4.6vw, 66px); }
.lvlbox2 { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 18px; border-radius: 16px; background: rgba(20,14,9,.86); border: 1px solid var(--line2); }
.lvlbox2 .l { font: 800 22px var(--display); margin-bottom: 8px; } .lvlbox2 .l span { color: var(--gold); }
.guardian2 { display: flex; align-items: flex-end; min-height: 420px; padding: 16px; background-size: cover; background-position: center top; overflow: hidden; }
.g-info { display: grid; justify-items: center; gap: 4px; width: 100%; text-align: center; }
.g-info h2 { margin: 0; font: 800 38px/1 var(--serif); text-shadow: 0 3px 0 rgba(42,24,12,.7); }
.g-info b { font: 800 20px var(--display); color: #ffe7a6; }
.g-info p { margin: 0 0 6px; color: #f3e6cf; }
.g-info .gold-btn { width: 100%; }
.g-info small { color: var(--mute); }
.pass2-track { padding: 16px 12px 10px; }
.pt-grid { display: grid; grid-template-columns: 34px 120px minmax(0, 1fr) 34px; gap: 10px; align-items: stretch; }
.pt-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: max(110px, calc((100% - 50px) / 6)); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 2px; overscroll-behavior-x: contain; scrollbar-width: none; padding: 2px; margin: -2px;
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%); mask: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%); }
.pt-scroll::-webkit-scrollbar { display: none; }
.pt-scroll > .pc { scroll-snap-align: start; }
.pg-btn:disabled { opacity: .3; cursor: default; }
.labels { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; padding-top: 22px; }
.lb { display: grid; place-items: center; align-content: center; gap: 4px; border-radius: 14px; font: 800 24px var(--display); }
.lb img { width: 34px; height: 30px; object-fit: contain; }
.lb.free { background: rgba(255,255,255,.05); border: 1px solid var(--line2); }
.lb.pro { background: linear-gradient(180deg, #4a2c6d, #2d1b44); border: 1px solid rgba(190,140,255,.4); color: #f0e2ff; }
.pc { display: grid; grid-template-rows: 22px 1fr 1fr; gap: 10px; justify-items: center; }
.pc .n { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid rgba(255,214,140,.6); background: rgba(14,10,8,.95); font: 700 14px var(--display); }
.pc .n.cur { background: var(--gold); color: #2a1606; border-color: #ffe58a; }
.pt { position: relative; width: 100%; display: grid; grid-template-rows: 1fr auto; justify-items: center; padding: 6px 6px 8px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,214,140,.16); min-height: 140px; }
.pt img { width: 82%; height: 96px; object-fit: contain; }
.pt .nm { font: 600 13px var(--display); text-align: center; line-height: 1.15; }
.pt.pro { background: linear-gradient(180deg, rgba(74,44,109,.55), rgba(45,27,68,.55)); border-color: rgba(190,140,255,.3); }
.pt.pro.sel { border: 2px solid #c79bff; box-shadow: 0 0 16px rgba(199,155,255,.4); }
.pt.can { border: 2px solid var(--gold); box-shadow: 0 0 16px rgba(255,207,90,.35); }
.pt.locked img, .pt.pro img { filter: brightness(.8); }
.pt .lock { position: absolute; right: 8px; bottom: 30px; font-size: 18px; }
.pt .check { position: absolute; right: 8px; bottom: 30px; color: var(--green2); font-weight: 800; font-size: 20px; }
.pt button { position: absolute; left: 8px; right: 8px; bottom: 6px; border: 0; border-radius: 8px; padding: 4px; font: 700 14px var(--display); color: #2a1606; background: linear-gradient(180deg, #ffe58a, var(--gold-2)); cursor: pointer; }
.pt.can .nm { visibility: hidden; }
.pg-btn { display: grid; place-items: center; align-content: center; gap: 6px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(20,14,9,.8); color: var(--gold); cursor: pointer; }
.pg-btn span { font: 700 34px var(--display); } .pg-btn small { font: 700 13px var(--display); color: #f3e6cf; writing-mode: vertical-rl; }
.pg-btn.off { opacity: .3; }
.pt-foot { margin: 10px 0 0; text-align: center; color: var(--mute); font-size: 14px; }

@media (max-width: 1200px) {
  .daily-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bundle-card { grid-column: 1 / -1; grid-row: auto; min-height: 380px; }
  .cards-detail { grid-template-columns: minmax(0, 1fr); }
  .detail { position: static; }
  .today-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .today-grid > :first-child { grid-column: 1 / -1; }
  .pass-strip2 { grid-template-columns: 1fr auto; } .ps-tiles { grid-column: 1 / -1; }
  .pass2-top, .week-grid2, .m-grid { grid-template-columns: minmax(0, 1fr); }
  .pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .make-it { grid-template-columns: 1fr; } .mi-item { border-left: 0; border-top: 1px solid rgba(255,214,140,.14); padding: 8px 4px; }
  .pt-grid { grid-template-columns: 30px 90px minmax(0, 1fr) 30px; }
  .pass2-track { overflow-x: auto; }
}
@media (max-width: 900px) {
  .page-body.side-layout { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .side-nav { position: static; margin-top: 0; padding: 6px; display: flex; overflow-x: auto; scrollbar-width: none; background-image: none; background: rgba(28,20,13,.88); }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-btn { flex: none; padding: 8px 12px; font-size: 14px; border-bottom: 0; gap: 8px; }
  .side-btn img { width: 28px; height: 28px; }
  .side-main .page-head { min-height: 0; }
  .today-grid { grid-template-columns: minmax(0, 1fr); }
  .pet-cards, .acc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-card { min-height: 0; } .b-art { min-height: 260px; }
  .exp-banner2 { flex-direction: column; align-items: flex-start; }
  .m-row { grid-template-columns: 44px minmax(0, 1fr) auto; } .m-row .pbar { grid-column: 2 / -1; grid-row: 2; }
  .journey { height: 130px; } .st-l { font-size: 14px; }
}
@media (max-width: 520px) {
  .daily-grid, .pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .p-art { min-height: 110px; margin-top: 30px; }
  .p-info h4 { font-size: 15px; }
  .c-row2 { grid-template-columns: 60px minmax(0, 1fr) auto; } .c-row2 .ic { width: 60px; height: 50px; }
  .chest2 .ch-art { width: 110px; height: 70px; }
  .wg-row { grid-template-columns: 60px minmax(0, 1fr) auto; } .wg-row > img { width: 60px; height: 50px; } .wg-row .ok-mark { display: none; }
  .wr-btns { grid-template-columns: 1fr; }
  .medal-coll { min-width: 0; width: 100%; }
  .leaves img { width: 32px; height: 32px; }
  .pass2-hero, .guardian2 { min-height: 320px; }
  .lvlbox2 { grid-template-columns: 1fr; }
  .d-actions { grid-template-columns: 1fr; }
}
.d-meta .rar-chip, .detail h2 + .rar-chip { position: static; }
.ball-cards { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
@media (max-width: 900px) {
  /* rândurile după conținut (altfel banda de meniu, care se derulează pe orizontală, se strânge sub titlu) */
  .page-body.side-layout { grid-auto-rows: max-content; align-content: start; }
  .side-nav { flex: none; }
}

/* =====================================================================================
   Animații „premium": tranziții între ecrane, indicatoare care alunecă, intrare pe rând, micro-interacțiuni
   ===================================================================================== */
:root { --ease-out: cubic-bezier(.2,.8,.2,1); --ease-spring: cubic-bezier(.2,.9,.3,1.25); }

/* tranziția dintre ecrane (View Transitions API: Chrome, Edge, Safari 18+) — bara de sus și cea de jos rămân pe loc */
::view-transition-old(root) { animation: vtOut .24s var(--ease-out) both; }
::view-transition-new(root) { animation: vtIn .42s var(--ease-out) both; }
@keyframes vtOut { to { opacity: 0; transform: scale(.985); filter: blur(3px); } }
@keyframes vtIn { from { opacity: 0; transform: scale(1.012); filter: blur(2px); } }
#topbar { view-transition-name: topbar; }
#bottomNav { view-transition-name: bottomnav; }
::view-transition-old(topbar), ::view-transition-old(bottomnav) { display: none; }
::view-transition-new(topbar), ::view-transition-new(bottomnav) { animation: none; }
::view-transition-group(topbar), ::view-transition-group(bottomnav) { animation: none; }
#game:not([hidden]) { animation: fadeIn .5s ease-out; }

/* intrare pe rând (clasa .st pusă din JS, --i = ordinea) */
.st { animation: stIn .6s var(--ease-out) backwards; animation-delay: calc(var(--d0, 0ms) + var(--i, 0) * 45ms); }
@keyframes stIn { from { opacity: 0; transform: translateY(var(--sy, 18px)) scale(.985); } }
.pt-grid.from-r .pc.st { animation-name: inFromR; animation-duration: .5s; animation-delay: calc(var(--i, 0) * 35ms); }
.pt-grid.from-l .pc.st { animation-name: inFromL; animation-duration: .5s; animation-delay: calc(var(--i, 0) * 35ms); }
@keyframes inFromR { from { opacity: 0; transform: translateX(46px); } }
@keyframes inFromL { from { opacity: 0; transform: translateX(-46px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(.6); } 70% { transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }

/* barele de progres se umplu */
.anim-bars .cbar i, .anim-bars .xpbar i { transform-origin: left center; animation: barGrow 1.1s var(--ease-out) .35s backwards; }
@keyframes barGrow { from { transform: scaleX(0); } }

/* pastila aurie din bara de sus alunecă între file */
.tabs { position: relative; }
.tab { border: 1.5px solid transparent; z-index: 1; transition: color .25s; }
.tabs .tab.active { background: none !important; border-color: transparent !important; box-shadow: none !important; color: #fff3c4; }
.tab:not(.active):not(.soon):hover { color: #fff3c4; }
.tab-ind { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 16px; border: 1.5px solid var(--gold); background: linear-gradient(180deg, rgba(255,207,90,.16), rgba(255,207,90,.05)); box-shadow: 0 0 16px rgba(255,207,90,.25), inset 0 -3px 0 rgba(255,207,90,.35); pointer-events: none;
  transition: transform .5s var(--ease-spring), width .45s var(--ease-out), height .3s, opacity .2s; }

/* meniul de jos (telefon) */
.bottom-nav button { position: relative; z-index: 1; transition: color .25s, transform .15s; }
.bottom-nav button:active { transform: scale(.94); }
.bottom-nav button.active img { animation: popIn .45s var(--ease-spring); }
.bn-ind { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 14px; background: radial-gradient(80% 90% at 50% 40%, rgba(255,207,90,.24), rgba(255,207,90,.05)); border: 1px solid rgba(255,207,90,.35); pointer-events: none;
  transition: transform .45s var(--ease-spring), width .4s var(--ease-out), opacity .2s; }

/* meniul lateral: pastila aurie alunecă de la butonul vechi la cel nou */
.side-btn { position: relative; z-index: 1; transition: color .3s, background .2s, transform .15s; }
.side-btn img { transition: transform .35s var(--ease-spring); }
.side-btn:hover img { transform: rotate(-8deg) scale(1.1); }
.side-btn:active { transform: scale(.97); }
.side-nav .side-btn.on { background: none; box-shadow: none; color: #2a1606; animation: onText .5s ease-out; }
.side-nav .side-btn.on:hover { background: none; }
@keyframes onText { from { color: #f3e6cf; } }
.side-ind { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 14px; background: linear-gradient(180deg, #ffe58a, var(--gold) 55%, var(--gold-2)); box-shadow: 0 4px 0 #a5650a, 0 8px 18px rgba(0,0,0,.35); pointer-events: none;
  transition: transform .55s var(--ease-spring), width .4s var(--ease-out), height .4s var(--ease-out), opacity .2s; }
@media (max-width: 900px) { .side-nav { position: relative; } }

/* carduri: se ridică la hover, arta se apropie */
.p-card, .b-card, .pack2, .m-card, .mi-item, .bundle-card { transition: transform .3s var(--ease-out), box-shadow .3s, border-color .3s; }
.p-card:hover, .b-card:hover, .pack2:hover, .bundle-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(255,214,140,.35); }
.m-card:hover { box-shadow: 0 20px 40px rgba(0,0,0,.45), 0 0 0 1px rgba(255,214,140,.3); }
.p-art, .b-art, .pk-art, .mi-art { transition: transform .6s var(--ease-out); }
.p-card:hover .p-art, .b-card:hover .b-art, .pack2:hover .pk-art, .mi-item:hover .mi-art { transform: scale(1.06); }
.p-card:active, .b-card:active { transform: translateY(-1px) scale(.985); }
.p-card.sel:not(.st), .b-card.sel:not(.st) { animation: selGlow .9s var(--ease-out); }
@keyframes selGlow { 0% { box-shadow: 0 0 0 0 rgba(255,207,90,.75); } 100% { box-shadow: 0 0 0 1px rgba(255,207,90,.4), 0 0 24px rgba(255,207,90,.25); } }
.ps-tile, .pt { transition: transform .25s var(--ease-out), box-shadow .25s; }
.ps-tile:hover, .pt:hover { transform: translateY(-3px); }

/* panoul de detalii: intră din dreapta când alegi alt obiect */
.detail.swap { animation: detailIn .45s var(--ease-out); }
.detail.swap .d-art, .detail.swap .d-scene, .detail.swap h2 { animation: artIn .7s var(--ease-out); }
@keyframes detailIn { from { opacity: 0; transform: translateX(16px); } }
@keyframes artIn { from { opacity: .2; filter: blur(5px) brightness(1.25); } }
.d-scene img { animation: popIn .45s var(--ease-spring); }

/* butoane: reflex de lumină la hover, apăsare */
.gold-btn { position: relative; overflow: hidden; transition: transform .12s, box-shadow .12s, filter .2s; }
.gold-btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.6), transparent); transform: skewX(-18deg); transition: left .7s var(--ease-out); pointer-events: none; }
.gold-btn:hover::after { left: 135%; }
.gold-btn:hover { filter: brightness(1.05) saturate(1.06); transform: translateY(-1px); }
.gold-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #a5650a, 0 4px 10px rgba(0,0,0,.3); }
.pill-btn, .chip-btn, .reroll, .pg-btn, .try button, .swatches button, .ward-item, .coll-item button { transition: transform .15s, background .2s, border-color .2s, box-shadow .25s; }
.pill-btn:hover, .chip-btn:not(.on):hover, .pg-btn:hover { border-color: rgba(255,214,140,.55); background: rgba(44,32,21,.92); box-shadow: 0 0 14px rgba(255,207,90,.15); }
.pill-btn:active, .chip-btn:active, .reroll:active, .pg-btn:active, .try button:active, .swatches button:active { transform: scale(.95); }
.try button:hover, .swatches button:hover { transform: scale(1.06); }
.chip-btn.on { animation: popIn .35s var(--ease-spring); }
.reroll:hover { transform: rotate(-90deg); }

/* portofelul tresare când se schimbă suma */
.wallet.bump { animation: walletBump .55s var(--ease-spring); }
@keyframes walletBump { 35% { transform: scale(1.07); box-shadow: 0 0 20px rgba(255,207,90,.5); } }

/* fereastra: intră cu un mic arc, iese lin */
.modal:not([hidden]) { animation: fadeIn .25s ease-out; }
.modal:not([hidden]) .modal-card { animation: modalIn .45s var(--ease-spring); }
.modal.closing { animation: fadeOut .19s ease-in forwards; }
.modal.closing .modal-card { animation: modalOut .19s ease-in forwards; }
@keyframes modalIn { from { opacity: 0; transform: translateY(26px) scale(.94); } }
@keyframes modalOut { to { opacity: 0; transform: translateY(10px) scale(.97); } }
.bought-burst { position: relative; display: grid; place-items: center; }
.bought-burst::before { content: ""; position: absolute; width: 130%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 8%, rgba(255,214,107,.35) 12%, transparent 16% 33%, rgba(255,214,107,.35) 37%, transparent 41% 58%, rgba(255,214,107,.35) 62%, transparent 66% 83%, rgba(255,214,107,.35) 87%, transparent 91%);
  -webkit-mask: radial-gradient(circle, #000 25%, transparent 68%); mask: radial-gradient(circle, #000 25%, transparent 68%); animation: spinRays 7s linear infinite; }
.bought-burst .art { position: relative; animation: popIn .6s var(--ease-spring); }
@keyframes spinRays { to { transform: rotate(360deg); } }

/* nivelul de pass tocmai revendicat */
.just { animation: claimPop .7s var(--ease-spring); }
.just .check { animation: popIn .5s var(--ease-spring) .15s backwards; }
@keyframes claimPop { 0% { transform: scale(.92); box-shadow: 0 0 0 0 rgba(87,211,106,.8); } 60% { transform: scale(1.06); box-shadow: 0 0 0 12px rgba(87,211,106,0); } }

/* rezultatele cursei */
.results:not([hidden]) { animation: fadeIn .35s ease-out; }
.results:not([hidden]) .card { animation: modalIn .55s var(--ease-spring); }

@media (prefers-reduced-motion: reduce) {
  .st, .detail.swap, .detail.swap *, .modal:not([hidden]), .modal:not([hidden]) .modal-card, .anim-bars .cbar i, .anim-bars .xpbar i,
  .wallet.bump, .just, .chip-btn.on, .side-nav .side-btn.on, .p-card.sel, .b-card.sel, .d-scene img, #game, .bought-burst::before, .bought-burst .art { animation: none !important; }
  .tab-ind, .side-ind, .bn-ind { transition: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

/* =====================================================================================
   Animații premium, runda 2: cortina lobby ↔ cursă, ecrane care alunecă în direcția filei,
   val de lumină la apăsare, pastilă care alunecă în setări, fundal „viu", alegeri care tresar
   ===================================================================================== */
:root { --ease-io: cubic-bezier(.7,0,.2,1); }

/* ecranele alunecă în direcția filei (Joacă → Magazin → Animăluțe → Provocări), cu puțină adâncime */
:root[data-vt="fwd"]::view-transition-old(root) { animation: vtOutL .34s var(--ease-io) both; }
:root[data-vt="fwd"]::view-transition-new(root) { animation: vtInR .52s var(--ease-out) both; }
:root[data-vt="back"]::view-transition-old(root) { animation: vtOutR .34s var(--ease-io) both; }
:root[data-vt="back"]::view-transition-new(root) { animation: vtInL .52s var(--ease-out) both; }
@keyframes vtOutL { to { opacity: 0; transform: translateX(-5%) scale(.97); filter: blur(4px) brightness(.8); } }
@keyframes vtOutR { to { opacity: 0; transform: translateX(5%) scale(.97); filter: blur(4px) brightness(.8); } }
@keyframes vtInR { from { opacity: 0; transform: translateX(7%) scale(1.015); filter: blur(3px); } }
@keyframes vtInL { from { opacity: 0; transform: translateX(-7%) scale(1.015); filter: blur(3px); } }

/* cortina: cercul auriu și cel întunecat cresc din butonul apăsat; la final se deschide o fereastră din centru */
@property --hole { syntax: "<length>"; inherits: false; initial-value: 0px; }
.curtain { position: fixed; inset: 0; z-index: 45; pointer-events: auto; }
.curtain::before, .curtain .c-fill { content: ""; position: absolute; inset: 0;
  clip-path: circle(0px at var(--cx) var(--cy));
  -webkit-mask: radial-gradient(circle at var(--cx) var(--cy), transparent var(--hole), #000 calc(var(--hole) + .5px));
  mask: radial-gradient(circle at var(--cx) var(--cy), transparent var(--hole), #000 calc(var(--hole) + .5px));
  transition: clip-path .62s var(--ease-io), --hole .66s var(--ease-io); }
.curtain::before { background: linear-gradient(135deg, #fff0b0, var(--gold) 45%, var(--gold-2)); }
.curtain .c-fill { display: grid; place-items: center; background: radial-gradient(circle at 50% 42%, #3d2b1b, #1a120b 60%, #0e0906); transition-delay: .05s, 0s; }
.curtain.cover::before, .curtain.cover .c-fill { clip-path: circle(var(--cr) at var(--cx) var(--cy)); }
.curtain.open::before, .curtain.open .c-fill { clip-path: circle(var(--cr) at var(--cx) var(--cy)); --hole: var(--cr); }
.curtain.open::before { transition-delay: 0s, .035s; } /* auriul rămâne puțin în urmă: margine aurie care se lărgește */
.curtain.open .c-fill { transition-delay: 0s, 0s; }
.c-mark { display: grid; justify-items: center; gap: 6px; opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .3s, transform .5s var(--ease-out); }
.curtain.cover:not(.open) .c-mark { opacity: 1; transform: none; transition-delay: .38s; }
.c-mark img { width: 64px; height: 64px; filter: drop-shadow(0 4px 8px rgba(0,0,0,.5)); animation: leafSway 2.4s ease-in-out infinite; }
.c-mark b { font: 700 34px/1 var(--display); letter-spacing: .04em; text-shadow: 0 3px 0 var(--outline), 0 8px 22px rgba(0,0,0,.5); }
.c-mark b span { color: var(--gold); margin-left: 4px; }
.c-mark small { min-height: 1.2em; font: 800 12px var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.c-dots { display: flex; gap: 6px; margin-top: 4px; }
.c-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: dotWave 1s ease-in-out infinite; }
.c-dots i:nth-child(2) { animation-delay: .15s; } .c-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes leafSway { 50% { transform: rotate(-12deg) translateY(-4px); } }
@keyframes dotWave { 0%, 60%, 100% { transform: none; opacity: .45; } 30% { transform: translateY(-6px); opacity: 1; } }

/* valul de lumină care pornește din locul apăsat */
dc-rip { display: block; position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; z-index: 0; }
dc-rip dc-wave { display: block; position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255,246,214,.45) 0%, rgba(255,226,150,.22) 40%, rgba(255,226,150,0) 70%); transform: scale(0); animation: ripple .65s var(--ease-out) forwards; }
@keyframes ripple { 60% { opacity: 1; } to { transform: scale(1); opacity: 0; } }

/* barele de sus/jos intră când revii din cursă (sau la pornire) */
.topbar.intro .logo { animation: barDrop .6s var(--ease-out) backwards; }
.topbar.intro .tabs { animation: barDrop .6s var(--ease-out) .08s backwards; }
.topbar.intro .lang { animation: barDrop .6s var(--ease-out) .16s backwards; }
.bottom-nav.intro { animation: navRise .55s var(--ease-out) backwards; }
@keyframes barDrop { from { opacity: 0; transform: translateY(-14px); } }
@keyframes navRise { from { transform: translateY(100%); } }

/* setările din lobby: pastila alunecă între opțiuni */
.seg { position: relative; }
.seg button { position: relative; z-index: 1; transition: color .25s, transform .15s; }
.seg button.on { background: none; }
.seg button:active { transform: scale(.95); }
.seg-ind { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 9px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.1)); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 3px 10px rgba(0,0,0,.25), 0 0 0 1px rgba(255,207,90,.22);
  transition: transform .45s var(--ease-spring), width .35s var(--ease-out), height .3s, opacity .2s; }

/* fundalurile se mișcă încet (ca o cameră), iar cel din lobby se topește în cel nou */
.lobby-bg { overflow: hidden; }
.lobby-bg .bg-layer { position: absolute; inset: 0; background: center 60% / cover no-repeat; animation: fadeIn .9s var(--ease-out) both, camDrift 28s ease-in-out infinite alternate; }
.page-bg { animation: camDrift 34s ease-in-out infinite alternate; }
@keyframes camDrift { from { transform: scale(1.02); } to { transform: scale(1.09) translate(-1.2%, -.8%); } }

/* ce ai ales tresare: traseul, bila (cu un inel auriu în lobby) */
.track .thumb { transition: transform .8s var(--ease-out); }
.track:hover .thumb { transform: scale(1.07); }
.track.pick { animation: pickPop .55s var(--ease-spring); }
@keyframes pickPop { 0% { transform: scale(.97); box-shadow: 0 0 0 0 rgba(255,207,90,.75); } 55% { transform: scale(1.015); } 100% { box-shadow: 0 0 0 3px rgba(255,207,90,.25); } }
.skin.pick img { animation: popIn .45s var(--ease-spring); }
.slot.you.swap .ball { animation: ballSwap .7s var(--ease-spring), bob 2.2s ease-in-out .7s infinite; }
.slot.you.swap::before { content: ""; position: absolute; top: 0; left: 14%; width: 72%; aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--gold); box-shadow: 0 0 22px rgba(255,207,90,.6); pointer-events: none; animation: ringOut .75s ease-out forwards; }
@keyframes ballSwap { 0% { opacity: 0; transform: scale(.4) rotate(-140deg); } 60% { opacity: 1; transform: scale(1.1); filter: drop-shadow(0 0 22px rgba(255,207,90,.75)); } }
@keyframes ringOut { from { opacity: .9; transform: scale(.6); } to { opacity: 0; transform: scale(1.45); } }

/* butonul JOACĂ respiră ușor și se ridică la hover */
.play:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 8px 0 #a5650a, 0 16px 34px rgba(242,165,31,.45), inset 0 2px 0 rgba(255,255,255,.6); }
.play:not(:disabled) { animation: playGlow 2.8s ease-in-out infinite; }
.play:not(:disabled):active { transform: translateY(4px); box-shadow: 0 2px 0 #a5650a, 0 6px 16px rgba(242,165,31,.3), inset 0 2px 0 rgba(255,255,255,.6); }
@keyframes playGlow { 50% { filter: brightness(1.06) saturate(1.08); } }
.play:disabled { filter: saturate(.7) brightness(.92); cursor: progress; }

/* butoanele din rezultate */
.actions button { transition: transform .15s, filter .2s, box-shadow .2s; }
.actions button:hover { transform: translateY(-1px); filter: brightness(1.06); }
.actions button:active { transform: translateY(2px) scale(.98); }
.icon-btn { transition: transform .15s, background .2s; }
.icon-btn:active { transform: scale(.92); }

/* focus de tastatură: inel auriu */
button:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  :root[data-vt]::view-transition-old(root), :root[data-vt]::view-transition-new(root) { animation: none !important; }
  .topbar.intro *, .bottom-nav.intro, .lobby-bg .bg-layer, .page-bg, .track.pick, .skin.pick img, .slot.you.swap .ball, .slot.you.swap::before, .play, .c-mark img, .c-dots i { animation: none !important; }
  .seg-ind { transition: none !important; }
  .curtain { display: none !important; }
}

/* straturi peste cursă (compuse de placa video, nu pictate în canvas la fiecare cadru) */
#game .vignette, #game .night-tint { position: absolute; inset: 0; pointer-events: none; }
#game .vignette { background: radial-gradient(ellipse 71% 71% at 50% 50%, rgba(20,12,4,0) 33%, rgba(20,12,4,.28) 100%); }
#game .night-tint { display: none; background: rgb(86,106,176); opacity: .34; mix-blend-mode: multiply; }
#game.night .night-tint { display: block; }

/* ---------------------------------------------------------------- finalul de gală (maratonul) */
.gala-card { position: absolute; z-index: 6; top: max(64px, env(safe-area-inset-top)); right: max(22px, env(safe-area-inset-right)); width: min(420px, calc(100% - 32px));
  padding: 26px 30px 20px; text-align: center; color: #f6ead2; background: linear-gradient(180deg, rgba(28,18,12,.96), rgba(16,10,7,.96));
  border: 1.5px solid #c99a35; border-radius: 14px; box-shadow: 0 0 0 5px rgba(16,10,7,.9), 0 0 0 6.5px rgba(201,154,53,.55), 0 30px 70px rgba(0,0,0,.55); }
.gala-card::before, .gala-card::after { content: "✦"; position: absolute; left: 50%; transform: translateX(-50%); color: #e9c46a; font-size: 18px; line-height: 1; text-shadow: 0 0 10px rgba(255,214,120,.6); }
.gala-card::before { top: -10px; } .gala-card::after { bottom: -10px; }
.gala-card:not([hidden]) { animation: gcIn .7s var(--ease-spring) both; }
@keyframes gcIn { from { opacity: 0; transform: translateX(40px) scale(.96); } }
.gala-card.closing { animation: gcOut .3s ease-in forwards; }
@keyframes gcOut { to { opacity: 0; transform: translateX(30px) scale(.97); } }
.gc-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 8px; border: 1.5px solid rgba(233,196,106,.7); background: rgba(0,0,0,.25); color: #f6ead2; font-size: 22px; line-height: 1; }
.gc-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 600 14px var(--serif); letter-spacing: .14em; color: #e9c46a; text-transform: uppercase; }
.gc-kicker img { width: 22px; height: 22px; }
.gc-title { margin: 6px 0 2px; font: 700 40px/1.05 var(--serif); color: #fff6e4; text-wrap: balance; }
.gc-place { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; }
.gc-place img { width: 34px; height: 34px; }
.gc-place b { font: 700 38px/1 var(--serif); color: #fff6e4; }
.gc-time { margin: 4px 0 10px; font: 600 26px/1 var(--serif); color: #f3e2bd; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.gc-best { display: inline-flex; align-items: center; gap: 7px; padding: 5px 16px; border-radius: 8px; border: 1px solid #c99a35; background: linear-gradient(180deg, rgba(110,92,30,.6), rgba(70,58,18,.6)); font: 600 15px var(--serif); color: #ffe6a0; }
.gc-best img { width: 18px; height: 18px; }
.gc-rw { display: flex; justify-content: center; align-items: center; gap: 14px; margin: 16px 0 4px; padding-top: 14px; border-top: 1px solid rgba(201,154,53,.45); font: 600 17px var(--serif); }
.gc-rw span { display: inline-flex; align-items: center; gap: 7px; }
.gc-rw img { width: 22px; height: 22px; }
.gc-rw i { color: rgba(233,196,106,.6); font-style: normal; }
.gc-daily { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 6px 0 12px; font: 500 14px var(--serif); color: #cdbb98; }
.gc-daily::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(205,187,152,.25); font: 700 12px var(--text); color: #fff; }
.gc-foot { margin: 0; padding-top: 10px; border-top: 1px solid rgba(201,154,53,.45); font: 500 14px var(--serif); color: #d9c7a3; }
.gala-bar { position: absolute; z-index: 6; left: 0; right: 0; bottom: max(18px, env(safe-area-inset-bottom)); display: flex; justify-content: center; pointer-events: none; padding: 0 max(18px, env(safe-area-inset-right)) 0 max(18px, env(safe-area-inset-left)); }
.gala-bar:not([hidden]) { animation: fadeIn .5s ease-out .15s both; }
.gc-btn { pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; border-radius: 12px; padding: 11px 26px; font: 600 18px var(--serif); }
.gc-btn.ghost { position: absolute; left: max(22px, env(safe-area-inset-left)); bottom: 0; color: #f6ead2; background: rgba(16,10,7,.85); border: 1.5px solid rgba(201,154,53,.75); }
.gc-btn.ghost svg { width: 20px; height: 20px; }
.gc-btn.primary { color: #2a1606; background: linear-gradient(180deg, #fff6e2, #ead8b4); border: 1.5px solid #c99a35; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.gc-btn:hover { filter: brightness(1.06); }
#game:has(.gala-card:not([hidden])) .hint, #game:has(.gala-bar:not([hidden])) .hint { opacity: 0; }
#game:has(.gala-bar:not([hidden])) .hud-bl { opacity: 0; pointer-events: none; transition: opacity .3s; }
@media (max-width: 700px) {
  .gala-card { top: auto; bottom: 84px; right: 16px; left: 16px; width: auto; padding: 20px 18px 16px; }
  .gc-title { font-size: 32px; } .gc-place b { font-size: 30px; } .gc-time { font-size: 22px; }
  .gc-btn { font-size: 15px; padding: 10px 16px; }
  .gc-btn.ghost { position: static; margin-right: 10px; }
}
@media (prefers-reduced-motion: reduce) { .gala-card:not([hidden]), .gala-card.closing, .gala-bar:not([hidden]) { animation: none !important; } }

/* ---------------------------------------------------------------- setări (fereastra din bara de sus) */
.gear-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid rgba(255,207,90,.55); background: rgba(16,11,7,.75); color: #ffcf5a; padding: 0; transition: transform .35s var(--ease-spring), background .2s; }
.gear-btn svg { width: 24px; height: 24px; }
.gear-btn:hover { transform: rotate(60deg); background: rgba(44,30,16,.9); }
.set-modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 16px; background: rgba(10,7,4,.55); backdrop-filter: blur(3px); }
.set-modal:not([hidden]) { animation: fadeIn .2s ease-out; }
.set-modal:not([hidden]) .set-card { animation: modalIn .4s var(--ease-spring); }
.set-card { width: min(1040px, 100%); max-height: calc(100vh - 32px); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; border-radius: 16px;
  background: linear-gradient(180deg, rgba(36,24,15,.98), rgba(22,15,10,.98)); border: 1.5px solid #c99a35; box-shadow: 0 0 0 5px rgba(14,9,6,.9), 0 0 0 6.5px rgba(201,154,53,.45), 0 40px 90px rgba(0,0,0,.6); color: #f6ead2; }
.set-head { display: flex; align-items: center; gap: 14px; padding: 20px 26px; border-bottom: 1px solid rgba(201,154,53,.3); }
.set-gear svg { width: 38px; height: 38px; color: #e9b84a; display: block; }
.set-head h2 { margin: 0; flex: 1; font: 700 32px/1 var(--display); }
.set-x { width: 40px; height: 40px; border: 0; background: none; color: #f6ead2; font-size: 36px; line-height: 1; border-radius: 10px; }
.set-x:hover { background: rgba(255,255,255,.06); }
.set-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 0; }
.set-nav { display: grid; align-content: start; gap: 4px; padding: 16px 14px; border-right: 1px solid rgba(201,154,53,.22); }
.set-nav button { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1.5px solid transparent; border-radius: 12px; background: none; color: #efe1c6; font: 600 18px var(--display); text-align: left; transition: background .2s, border-color .2s; }
.set-nav button svg { width: 26px; height: 26px; color: #e9b84a; flex: none; }
.set-nav button:hover { background: rgba(255,214,140,.06); }
.set-nav button.on { background: linear-gradient(180deg, rgba(160,110,30,.45), rgba(110,74,20,.35)); border-color: #c99a35; color: #fff3d4; }
.set-main { overflow: auto; padding: 16px 22px; }
.set-panel { display: grid; gap: 12px; }
.set-panel:not([hidden]) { animation: stIn .35s var(--ease-out); }
.set-box { padding: 16px 18px; border-radius: 12px; background: rgba(255,240,210,.04); border: 1px solid rgba(201,154,53,.25); display: grid; gap: 12px; }
.set-box h3 { margin: 0; font: 700 20px var(--display); }
.set-box .field { display: grid; gap: 8px; }
.set-box .field > span { font: 700 13px var(--text); letter-spacing: .08em; text-transform: uppercase; color: #d9c7a3; }
.set-profile { grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; }
.set-profile img { width: 84px; height: 84px; border-radius: 50%; object-fit: contain; background: radial-gradient(circle at 50% 40%, #6b4a2a, #2a1a0e); border: 2px solid rgba(201,154,53,.6); }
.sp-who b { display: block; font: 700 26px var(--display); }
.sp-who input { width: 100%; max-width: 260px; padding: 6px 10px; border-radius: 8px; border: 1.5px solid #c99a35; background: rgba(0,0,0,.35); color: #fff; font: 700 22px var(--display); }
.sp-msg { display: block; min-height: 0; color: #cdbb98; font: 600 13px/1.4 var(--text); }
.sp-msg:empty { display: none; }
.sp-msg[data-state=bad] { color: #f2b6a4; } .sp-msg[data-state=good] { color: #b7d5a1; }
.sp-who small { display: inline-flex; align-items: center; gap: 6px; color: #cdbb98; font-size: 14px; }
.sp-copy { width: 26px; height: 26px; padding: 3px; border: 0; background: none; color: #cdbb98; border-radius: 6px; }
.sp-copy svg { width: 100%; height: 100%; }
.sp-copy:hover { background: rgba(255,255,255,.08); color: #fff; }
.set-outline { padding: 10px 18px; border-radius: 10px; border: 1.5px solid #c99a35; background: rgba(0,0,0,.2); color: #f6ead2; font: 600 16px var(--display); }
.set-outline:hover { background: rgba(201,154,53,.12); }
.set-line { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(0,0,0,.2); flex-wrap: wrap; }
.set-line b { color: #8af0a2; font: 700 16px var(--display); }
.set-line small { color: #cdbb98; margin-left: auto; }
.ok-dot { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #3ccf62; color: #0b2a12; font-weight: 900; }
.set-note { margin: 0; color: #cdbb98; font-size: 14px; line-height: 1.45; max-width: 62ch; }
.set-link { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(201,154,53,.25); background: rgba(0,0,0,.2); color: #f6ead2; font: 600 16px var(--display); text-align: left; }
.set-link span { flex: 1; } .set-link b { font-size: 20px; color: #e9b84a; }
.chip-free { padding: 3px 10px; border-radius: 8px; background: rgba(60,207,98,.18); color: #8af0a2; font: 700 13px var(--text); font-style: normal; }
.set-row { display: flex; align-items: center; gap: 14px; }
.set-row > div { flex: 1; display: grid; gap: 2px; }
.set-row b { font: 600 17px var(--display); } .set-row small { color: #cdbb98; font-size: 13.5px; }
.set-row select { min-width: 200px; padding: 9px 12px; border-radius: 10px; border: 1.5px solid rgba(201,154,53,.6); background: #1e140c; color: #f6ead2; font: 600 15px var(--text); }
.set-row input[type=range] { flex: 1; max-width: 320px; accent-color: #e9b84a; }
.set-row output { min-width: 42px; text-align: right; font: 700 15px var(--text); color: #ffe6a0; }
.tgl { position: relative; width: 52px; height: 30px; flex: none; cursor: pointer; }
.tgl input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tgl i { position: absolute; inset: 0; border-radius: 15px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); transition: background .25s; }
.tgl i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #f6ead2; box-shadow: 0 2px 6px rgba(0,0,0,.4); transition: transform .3s var(--ease-spring); }
.tgl input:checked + i { background: linear-gradient(180deg, #ffd76a, #e3a52a); border-color: #ffd76a; }
.tgl input:checked + i::after { transform: translateX(22px); }
.tgl input:focus-visible + i { outline: 2px solid var(--gold); outline-offset: 2px; }
.keys { display: grid; grid-template-columns: 1fr auto; gap: 10px 18px; align-items: center; font-size: 15px; }
.keys em { font-style: normal; color: #cdbb98; }
kbd { display: inline-block; min-width: 28px; padding: 3px 8px; margin: 0 2px; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); border-bottom-width: 3px; background: rgba(255,255,255,.06); font: 700 13px var(--text); text-align: center; color: #fff3d4; }
.set-wipe { padding: 14px 16px; border-radius: 12px; border: 1.5px solid rgba(220,70,60,.7); background: rgba(120,20,15,.25); display: grid; gap: 10px; }
.set-wipe p { margin: 0; } .set-wipe div { display: flex; gap: 10px; justify-content: flex-end; }
.set-dangerbtn { padding: 10px 18px; border-radius: 10px; border: 0; background: #c8352b; color: #fff; font: 700 16px var(--display); }
.set-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 26px; border-top: 1px solid rgba(201,154,53,.3); }
.set-foot > div { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.set-danger { border: 0; background: none; color: #ff8a7a; text-decoration: underline; font: 600 15px var(--text); padding: 0; }
.set-esc { color: #cdbb98; font-size: 14px; }
.set-foot .gold-btn { min-width: 170px; font-size: 22px; }
@media (max-width: 760px) {
  .set-body { grid-template-columns: 1fr; }
  .set-nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; border-right: 0; border-bottom: 1px solid rgba(201,154,53,.22); padding: 10px; }
  .set-nav button { padding: 10px 12px; font-size: 15px; }
  .set-head { padding: 14px 16px; } .set-head h2 { font-size: 26px; }
  .set-main { padding: 12px; }
  .set-profile { grid-template-columns: auto 1fr; } .set-profile .set-outline { grid-column: 1 / -1; }
  .set-row { flex-wrap: wrap; } .set-row select { min-width: 0; width: 100%; }
  .set-esc { display: none; }
  .set-foot { padding: 12px 14px; } .set-foot .gold-btn { min-width: 120px; }
}
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }

/* ---------------------------------------------------------------- finalul curselor obișnuite (cardul premium) */
.results { background: radial-gradient(ellipse at 50% 38%, rgba(255,196,100,.14), rgba(16,11,7,.55) 55%, rgba(8,5,3,.84)); }
.results .res-card { position: relative; width: min(500px, 100%); padding: 22px 26px 20px; overflow-x: hidden; text-align: center; color: #f6ead2;
  border-radius: 16px; border: 1.5px solid #c99a35; backdrop-filter: none;
  background: radial-gradient(120% 60% at 50% 0%, rgba(255,200,110,.12), transparent 60%), linear-gradient(180deg, rgba(34,23,14,.97), rgba(16,10,7,.97));
  box-shadow: 0 0 0 5px rgba(16,10,7,.92), 0 0 0 6.5px rgba(201,154,53,.5), 0 34px 90px rgba(0,0,0,.6); scrollbar-width: thin; scrollbar-color: rgba(201,154,53,.5) transparent; }
.res-kicker { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 0 0 14px; font: 600 13px var(--serif); letter-spacing: .16em; text-transform: uppercase; color: #e9c46a; }
.res-kicker i { font-style: normal; font-size: 11px; opacity: .7; }
.res-hero { display: flex; align-items: center; justify-content: center; gap: 20px; text-align: left; }
.res-badge { position: relative; width: 100px; height: 100px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 50% 36%, #4e3822, #1e140c 72%); border: 3px solid #8a6a3a;
  box-shadow: inset 0 0 0 3px rgba(0,0,0,.3), inset 0 6px 14px rgba(255,240,210,.12), 0 0 0 1px rgba(233,196,106,.25), 0 12px 28px rgba(0,0,0,.5); }
.res-badge b { position: relative; z-index: 1; font: 700 46px/1 var(--serif); color: #fff6e4; font-variant-numeric: tabular-nums; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.res-badge::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px dashed rgba(255,240,210,.28); }
.res-badge.p1 { border-color: #ffe08a; background: radial-gradient(circle at 50% 30%, #fff0bf, #e9ae35 50%, #8a5a10); }
.res-badge.p2 { border-color: #f4f7fb; background: radial-gradient(circle at 50% 30%, #ffffff, #c3cbd6 50%, #67707c); }
.res-badge.p3 { border-color: #f0b585; background: radial-gradient(circle at 50% 30%, #ffdcbc, #c9803f 50%, #6e3c16); }
.res-badge.p1 b { color: #3a2406; text-shadow: 0 1px 0 rgba(255,244,210,.7); }
.res-badge.p2 b { color: #22272e; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.res-badge.p3 b { color: #2e1606; text-shadow: 0 1px 0 rgba(255,230,200,.6); }
.res-badge.out { border-color: #c8493c; background: radial-gradient(circle at 50% 36%, #5c2219, #1e0c08 72%); }
.res-badge.out b { color: #ff9d8a; font-size: 40px; }
.res-rays { position: absolute; inset: -30px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: repeating-conic-gradient(rgba(255,214,120,0) 0 10deg, rgba(255,214,120,.3) 10deg 15deg);
  -webkit-mask: radial-gradient(circle, #000 38%, transparent 70%); mask: radial-gradient(circle, #000 38%, transparent 70%); }
.res-badge.p1 .res-rays, .res-badge.p2 .res-rays, .res-badge.p3 .res-rays { opacity: 1; animation: resSpin 16s linear infinite; }
.res-badge.p2 .res-rays { background: repeating-conic-gradient(rgba(230,236,245,0) 0 10deg, rgba(230,236,245,.26) 10deg 15deg); }
.res-badge.p3 .res-rays { background: repeating-conic-gradient(rgba(240,170,110,0) 0 10deg, rgba(240,170,110,.26) 10deg 15deg); }
@keyframes resSpin { to { transform: rotate(360deg); } }
.results:not([hidden]) .res-badge { animation: resBadge .8s var(--ease-spring) .12s backwards; }
@keyframes resBadge { from { opacity: 0; transform: scale(.4) rotate(-25deg); } }
.res-head { min-width: 0; }
.res-head h2 { margin: 0; font: 700 40px/1.05 var(--serif); color: #fff6e4; text-wrap: balance; }
.res-sub { margin: 4px 0 0; font: 500 17px var(--serif); color: #d9c7a3; }

.res-podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 8px; margin: 18px 0 0; padding: 0 10px; border-bottom: 1px solid rgba(201,154,53,.5); }
.rp { display: grid; justify-items: center; gap: 3px; min-width: 0; }
.rp-who { position: relative; width: 60px; height: 44px; }
.rp-who .ball { position: absolute; left: 50%; bottom: 0; width: 38px; height: 38px; transform: translateX(-50%); filter: drop-shadow(0 4px 4px rgba(0,0,0,.45)); }
.rp-who .pet { position: absolute; right: -8px; bottom: -2px; width: 30px; height: 30px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0,0,0,.5)); }
.rp-n { max-width: 100%; font: 600 13px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-n.g { color: #8af0a2; } .rp-n.b { color: #8cc8ff; } .rp-n.y { color: #ffe39a; }
.rp-t { font: 500 12px var(--text); color: #cdbb98; font-variant-numeric: tabular-nums; }
.rp-step { width: 100%; height: 34px; margin-top: 3px; display: grid; place-items: start center; padding-top: 6px; border-radius: 8px 8px 0 0;
  font: 700 22px/1 var(--serif); color: #e7a978; border: 1px solid rgba(201,154,53,.45); border-bottom: 0;
  background: linear-gradient(180deg, rgba(255,240,210,.14), rgba(255,240,210,.03)); transform-origin: bottom; }
.rp.s1 .rp-step { height: 66px; color: #ffe39a; background: linear-gradient(180deg, rgba(242,201,76,.42), rgba(160,110,30,.1)); border-color: rgba(242,201,76,.7); }
.rp.s2 .rp-step { height: 48px; color: #eef2f7; background: linear-gradient(180deg, rgba(220,228,240,.24), rgba(220,228,240,.04)); }
.rp.me .rp-step { box-shadow: inset 0 0 0 1.5px #ffd76a, 0 0 18px rgba(255,214,120,.25); }
.rp.empty { opacity: .35; }
.results:not([hidden]) .rp-step { animation: rpGrow .6s var(--ease-out) backwards; animation-delay: calc(.35s + var(--k, 0) * .12s); }
.results:not([hidden]) .rp-who { animation: rpDrop .6s var(--ease-spring) backwards; animation-delay: calc(.7s + var(--k, 0) * .12s); }
.rp.s1 { --k: 2; } .rp.s2 { --k: 1; } .rp.s3 { --k: 0; }
@keyframes rpGrow { from { transform: scaleY(0); opacity: 0; } }
@keyframes rpDrop { from { transform: translateY(-26px); opacity: 0; } }

.res-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 12px; }
.rs { position: relative; display: grid; justify-items: center; align-content: start; gap: 3px; padding: 10px 6px 9px; border-radius: 12px; background: rgba(255,240,210,.05); border: 1px solid rgba(201,154,53,.28); }
.rs > img, .rs > svg { width: 30px; height: 30px; object-fit: contain; color: #e9dcc0; }
.rs b { font: 700 22px/1.1 var(--serif); color: #fff6e4; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rs b i { font: 500 15px var(--serif); color: #cdbb98; font-style: normal; }
.rs small { font: 700 11px var(--text); letter-spacing: .1em; text-transform: uppercase; color: #cdbb98; }
.rs-pb { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; padding: 2px 8px; border-radius: 6px; border: 1px solid #c99a35; background: linear-gradient(180deg, rgba(110,92,30,.6), rgba(70,58,18,.6)); font: 600 11.5px var(--serif); font-style: normal; color: #ffe6a0; white-space: nowrap; }
.rs-pb img { width: 13px; height: 13px; }
.rs.wide { grid-column: span 2; }
.rs-bar { width: 86%; height: 6px; margin-top: 4px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.rs-bar i { display: block; height: 100%; width: var(--w); border-radius: 3px; background: linear-gradient(90deg, #ffd76a, #e3a52a); }
.results:not([hidden]) .rs-bar i { animation: barFill 1s var(--ease-out) .5s backwards; }
@keyframes barFill { from { width: 0; } }

.res-tiers { display: grid; gap: 6px; margin: 0 0 12px; }
.rt-row { display: flex; justify-content: center; gap: 22px; }
.rt { display: grid; justify-items: center; gap: 2px; opacity: .35; filter: grayscale(.8); }
.rt img { width: 40px; height: 40px; object-fit: contain; border-radius: 50%; }
.rt span { font: 600 12px var(--text); color: #d9c7a3; font-variant-numeric: tabular-nums; }
.rt.on { opacity: 1; filter: none; }
.rt.top img { filter: drop-shadow(0 0 10px rgba(255,214,120,.65)); }
.results:not([hidden]) .rt.top img { animation: tierPop .8s var(--ease-spring) .8s backwards; }
@keyframes tierPop { from { transform: scale(.3) rotate(-30deg); opacity: 0; } }
.res-tiers p { margin: 0; font: 500 15px var(--serif); color: #e9dcc0; }

.res-card .res-ch { margin: 0 0 12px; }
.res-card .res-ch p { margin: 0 0 6px; font: 700 11.5px var(--text); letter-spacing: .12em; text-transform: uppercase; color: #e9c46a; }
.res-card .res-ch ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.res-card .res-ch li { padding: 5px 11px; border-radius: 20px; background: rgba(255,240,210,.06); border: 1px solid rgba(201,154,53,.35); font-size: 13px; }
.res-card .res-ch em { color: #ffe39a; }

.res-table { border-top: 1px solid rgba(201,154,53,.45); }
.res-tgl { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 10px; border: 0; background: none; color: #f3e2bd; font: 600 16px var(--serif); border-radius: 10px; }
.res-tgl:hover { background: rgba(255,240,210,.05); }
.res-tgl small { color: #cdbb98; font: 500 13px var(--text); }
.res-tgl svg { width: 18px; height: 18px; color: #e9c46a; transition: transform .35s var(--ease-out); }
.res-table.open .res-tgl svg { transform: rotate(180deg); }
.res-fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-out); }
.res-table.open .res-fold { grid-template-rows: 1fr; }
.res-fold > .standings { min-height: 0; margin: 0; overflow: hidden; text-align: left; max-height: 260px; }
.res-table.open .res-fold > .standings { overflow: auto; padding-bottom: 10px; }
.res-card .standings li.me { background: linear-gradient(90deg, rgba(242,201,76,.24), rgba(242,201,76,.08)); box-shadow: inset 0 0 0 1px rgba(242,201,76,.5); }
.res-card .actions { margin-top: 8px; }
.res-card .actions button { font: 600 17px var(--serif); border-radius: 12px; padding: 12px; }
.res-card .actions .ghost { color: #f6ead2; background: rgba(16,10,7,.6); border: 1.5px solid rgba(201,154,53,.75); }
.res-card .actions .primary { color: #2a1606; background: linear-gradient(180deg, #fff6e2, #ead8b4); border: 1.5px solid #c99a35; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.res-card .actions button:hover { filter: brightness(1.07); }
@media (max-width: 560px) {
  .results .res-card { padding: 18px 16px 16px; }
  .res-badge { width: 80px; height: 80px; } .res-badge b { font-size: 36px; }
  .res-head h2 { font-size: 30px; } .res-sub { font-size: 15px; }
  .res-hero { gap: 14px; }
  .rs b { font-size: 18px; } .rs small { font-size: 10px; letter-spacing: .06em; }
  .rt-row { gap: 16px; }
}
@media (max-height: 640px) and (min-width: 561px) {
  .res-podium { margin-top: 12px; } .rp.s1 .rp-step { height: 52px; } .rp.s2 .rp-step { height: 38px; } .rp-step { height: 28px; }
}
html.reduce-motion .res-rays { animation: none !important; }

/* ---------------------------------------------------------------- limba: listă premium în Setări */
.set-langbox { position: relative; z-index: 3; }
.dd { position: relative; min-width: 240px; }
.dd-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid rgba(201,154,53,.7);
  background: linear-gradient(180deg, #2a1c10, #1a110a); color: #f6ead2; font: 600 16px var(--display); text-align: left;
  box-shadow: inset 0 1px 0 rgba(255,240,210,.08), 0 4px 12px rgba(0,0,0,.25); transition: border-color .2s, box-shadow .2s; }
.dd-btn:hover { border-color: #e9c46a; }
.dd.open .dd-btn { border-color: #ffd76a; box-shadow: 0 0 0 3px rgba(255,214,120,.18), 0 8px 20px rgba(0,0,0,.35); }
.dd-globe { width: 20px; height: 20px; color: #e9b84a; flex: none; }
.dd-name { flex: 1; }
.dd-code { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 6px; flex: none;
  background: linear-gradient(180deg, rgba(160,110,30,.55), rgba(110,74,20,.45)); border: 1px solid rgba(233,196,106,.6); font: 800 11px var(--text); letter-spacing: .06em; color: #ffe6a0; }
.dd-chev { width: 18px; height: 18px; color: #e9c46a; flex: none; transition: transform .3s var(--ease-out); }
.dd.open .dd-chev { transform: rotate(180deg); }
.dd-list { position: absolute; top: calc(100% + 8px); right: 0; left: 0; z-index: 5; margin: 0; padding: 6px; list-style: none; max-height: min(420px, 62vh); overflow: auto;
  border-radius: 14px; border: 1.5px solid #c99a35; background: linear-gradient(180deg, rgba(36,24,14,.99), rgba(20,13,8,.99));
  box-shadow: 0 0 0 4px rgba(16,10,7,.9), 0 0 0 5px rgba(201,154,53,.35), 0 24px 50px rgba(0,0,0,.6); transform-origin: top center; scrollbar-width: thin; }
.dd-list:not([hidden]) { animation: ddIn .26s var(--ease-spring); }
.dd-list.closing { animation: ddOut .18s ease-in forwards; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-8px) scale(.96); } }
@keyframes ddOut { to { opacity: 0; transform: translateY(-6px) scale(.97); } }
.dd-list li { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; cursor: pointer; color: #efe1c6; outline: none; transition: background .15s; }
.dd-list:not([hidden]) li { animation: ddItem .32s var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 22ms + 40ms); }
@keyframes ddItem { from { opacity: 0; transform: translateX(-8px); } }
.dd-list li:hover, .dd-list li:focus-visible, .dd-list li:focus { background: rgba(255,214,140,.09); }
.dd-list li[aria-selected="true"] { background: linear-gradient(180deg, rgba(160,110,30,.42), rgba(110,74,20,.3)); box-shadow: inset 0 0 0 1px rgba(201,154,53,.8); color: #fff3d4; }
.dd-txt { flex: 1; display: grid; line-height: 1.2; }
.dd-txt b { font: 600 16px var(--display); }
.dd-txt small { font-size: 12.5px; color: #cdbb98; }
.dd-ok { width: 18px; height: 18px; color: #ffd76a; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .3s var(--ease-spring); }
.dd-list li[aria-selected="true"] .dd-ok { opacity: 1; transform: none; }
@media (max-width: 760px) { .dd { min-width: 0; width: 100%; } }
@media (prefers-reduced-motion: reduce) { .dd-list:not([hidden]), .dd-list li, .dd-list.closing { animation: none !important; } }
html.reduce-motion .dd-list, html.reduce-motion .dd-list li { animation: none !important; }
.res-kicker { flex-wrap: wrap; row-gap: 2px; }
.res-kicker span { white-space: nowrap; }
.res-card .standings li.me .n { color: #ffe39a; font-weight: 700; }
/* butoanele rămân la vedere chiar și cu clasamentul deschis */
.res-card .actions { position: sticky; bottom: -20px; z-index: 2; margin: 8px -26px -20px; padding: 14px 26px 20px; background: linear-gradient(180deg, rgba(16,10,7,0), rgba(16,10,7,.97) 30%); }
.dd-list { left: auto; min-width: max(100%, 240px); }
@media (max-width: 560px) {
  .res-kicker { font-size: 11.5px; letter-spacing: .1em; gap: 8px; margin-bottom: 10px; }
  .res-card .actions { bottom: -16px; margin: 6px -16px -16px; padding: 12px 16px 16px; }
  .res-card .actions button { font-size: 15px; padding: 11px 8px; }
}

/* ---------------------------------------------------------------- meniul lateral: butoanele nu mai ies din container
   (cuvinte lungi, într-o bucată: „Săptămânale", „Meisterschaft", „Mistrzostwo") */
.page-body.side-layout { grid-template-columns: 200px minmax(0, 1fr); }
.side-nav .side-btn { min-width: 0; gap: 10px; padding: 13px 10px; font-size: 16px; }
.side-nav .side-btn img { width: 36px; height: 36px; }
.side-nav .side-btn span { min-width: 0; overflow-wrap: break-word; hyphens: auto; line-height: 1.15; }
@media (max-width: 900px) { .side-nav .side-btn { flex: none; } }

/* ---------------------------------------------------------------- lobby: scena „acasă", vie (aceeași pentru orice traseu) */
.lobby-bg { container-type: size; }
.amb { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.amb > * { position: absolute; }
/* scena urmează imaginea (cover, 3:1, centrată la 60%) și mișcarea ei de cameră, ca soarele să stea pe soare */
.amb-cam { inset: 0; animation: camDrift 28s ease-in-out infinite alternate; }
.amb-stage { --sw: max(100cqw, 300cqh); position: absolute; width: var(--sw); height: calc(var(--sw) / 3); left: calc((100cqw - var(--sw)) / 2); top: calc((100cqh - var(--sw) / 3) * .6); }
.amb-glow { position: absolute; left: 68%; top: 45%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(255,232,170,.42), rgba(255,180,90,.14) 38%, rgba(255,150,60,0) 70%); animation: ambBreathe 7s ease-in-out infinite; }
.amb-rays { position: absolute; left: 68%; top: 45%; width: 56%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; opacity: .5;
  background: repeating-conic-gradient(from 0deg, rgba(255,214,140,0) 0 7deg, rgba(255,214,140,.16) 9deg, rgba(255,214,140,0) 12deg 19deg);
  -webkit-mask: radial-gradient(circle, #000 4%, rgba(0,0,0,.6) 22%, transparent 60%); mask: radial-gradient(circle, #000 4%, rgba(0,0,0,.6) 22%, transparent 60%);
  animation: ambSpin 140s linear infinite; }
@keyframes ambBreathe { 0%, 100% { opacity: .75; transform: translate(-50%, -50%) scale(.94); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); } }
@keyframes ambSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
/* sclipiri pe râu */
.amb-glints i { position: absolute; width: 14px; height: 3px; border-radius: 2px; background: #fff3c8; box-shadow: 0 0 8px rgba(255,236,170,.9); opacity: 0; animation: ambGlint ease-in-out infinite; }
@keyframes ambGlint { 0%, 100% { opacity: 0; transform: scaleX(.4); } 45% { opacity: .9; transform: scaleX(1); } }
/* ceață care trece încet peste vale */
.amb-mist { left: -40%; width: 180%; height: 26%; border-radius: 50%; opacity: .5; background: radial-gradient(closest-side, rgba(255,232,200,.32), rgba(255,232,200,0)); animation: ambMist linear infinite; }
.amb-mist.m1 { top: 50%; animation-duration: 90s; }
.amb-mist.m2 { top: 62%; height: 20%; opacity: .35; animation-duration: 130s; animation-direction: reverse; }
@keyframes ambMist { from { transform: translateX(-12%); } 50% { transform: translateX(12%); } to { transform: translateX(-12%); } }
/* praf auriu (apus) / licurici (noapte), urcă și se sting */
.amb-motes { inset: 0; }
.amb-motes i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: radial-gradient(circle, #fff6d2, rgba(255,210,120,.7) 40%, rgba(255,190,90,0) 70%); opacity: 0; animation: ambMote ease-in-out infinite; }
@keyframes ambMote { 0% { opacity: 0; transform: translate(0, 0) scale(var(--s)); } 20%, 70% { opacity: .9; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(var(--s)); } }
.lobby-bg[data-tod="night"] .amb-motes i { width: 7px; height: 7px; background: radial-gradient(circle, #f4ffc0, rgba(200,255,120,.75) 40%, rgba(170,255,90,0) 70%); animation-name: ambFly; }
@keyframes ambFly { 0%, 100% { opacity: 0; transform: translate(0, 0) scale(var(--s)); } 30% { opacity: 1; transform: translate(calc(var(--dx) * .5), calc(var(--dy) * .3)) scale(var(--s)); } 50% { opacity: .2; } 70% { opacity: 1; transform: translate(var(--dx), calc(var(--dy) * .5)) scale(var(--s)); } }
/* stele care clipesc (noapte) */
.amb-stars { inset: 0; }
.amb-stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; box-shadow: 0 0 6px #cfe2ff; animation: ambTwinkle ease-in-out infinite; }
@keyframes ambTwinkle { 0%, 100% { opacity: .15; } 50% { opacity: .95; } }
/* un stol mic care traversează cerul din când în când */
.amb-birds { inset: 0; }
.amb-birds i { position: absolute; left: 0; width: 26px; height: 11px; opacity: 0; transform: scale(var(--z)); animation: ambBirds 46s linear infinite; }
.amb-birds svg { display: block; width: 100%; height: 100%; fill: none; stroke: rgba(40,26,18,.75); stroke-width: 2.6; stroke-linecap: round; animation: ambFlap .5s ease-in-out infinite alternate; transform-origin: 50% 70%; }
.lobby-bg[data-tod="morning"] .amb-birds svg { stroke: rgba(50,60,80,.7); }
@keyframes ambBirds { 0% { opacity: 0; transform: translate(-6vw, 0) scale(var(--z)); } 3% { opacity: 1; } 34% { opacity: 1; } 38% { opacity: 0; transform: translate(106vw, var(--y)) scale(var(--z)); } 100% { opacity: 0; transform: translate(106vw, var(--y)) scale(var(--z)); } }
@keyframes ambFlap { from { transform: scaleY(1); } to { transform: scaleY(-.35); } }
/* frunze care cad prin fața scenei */
.amb-leaves { inset: 0; z-index: 2; }
.amb-leaves i { position: absolute; top: -50px; background: url(../assets/painted/ui/leaf.webp) center / contain no-repeat; filter: hue-rotate(var(--h)) drop-shadow(0 3px 3px rgba(0,0,0,.25)); animation: ambLeaf linear infinite; }
@keyframes ambLeaf { 0% { transform: translate(0, 0) rotate(0deg); } 25% { transform: translate(-50px, 28vh) rotate(110deg); } 50% { transform: translate(10px, 56vh) rotate(200deg); } 75% { transform: translate(-30px, 84vh) rotate(290deg); } 100% { transform: translate(30px, 112vh) rotate(380deg); } }
/* dimineața: lumina vine din stânga sus, prin coroana copacului */
.lobby-bg[data-tod="morning"] .amb-glow { left: 14%; top: -4%; width: 46%; background: radial-gradient(circle, rgba(255,246,210,.5), rgba(255,236,180,.14) 40%, rgba(255,236,180,0) 70%); }
.lobby-bg[data-tod="morning"] .amb-rays { left: 14%; top: -4%; width: 70%; opacity: .42; animation-duration: 220s; }
/* noaptea: luna, rece și discretă */
.lobby-bg[data-tod="night"] .amb-glow { width: 16%; background: radial-gradient(circle, rgba(220,232,255,.4), rgba(180,200,255,.1) 40%, rgba(180,200,255,0) 70%); }
.lobby-bg[data-tod="night"] .amb-rays { display: none; }
.lobby-bg[data-tod="night"] .amb-glints i { background: #e6eeff; box-shadow: 0 0 8px rgba(200,220,255,.9); }
.lobby-bg[data-tod="night"] .amb-mist { opacity: .28; }
@media (prefers-reduced-motion: reduce) { .amb * { animation: none !important; } .amb-leaves, .amb-motes, .amb-birds, .amb-glints { display: none; } }
html.reduce-motion .amb * { animation: none !important; }
html.reduce-motion .amb-leaves, html.reduce-motion .amb-motes, html.reduce-motion .amb-birds, html.reduce-motion .amb-glints { display: none; }

/* ---------------------------------------------------------------- mâncarea pictată + gândul animăluțului (când îi e foame) */
.food { grid-template-columns: 48px 1fr auto; padding: 7px 10px; transition: transform .15s, border-color .2s, background .2s; }
.food img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0,0,0,.35)); transition: transform .35s var(--ease-spring); }
.food:not(:disabled):hover { border-color: rgba(255,214,140,.5); background: rgba(255,214,140,.08); }
.food:not(:disabled):hover img { transform: scale(1.12) rotate(-6deg); }
.food:not(:disabled):active { transform: scale(.97); }
.fav-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 8px; background: rgba(255,93,122,.16); border: 1px solid rgba(255,93,122,.45); color: #ff9db0; font: 700 10.5px var(--text); font-style: normal; vertical-align: 2px; }
/* prăjitura aurie: rândul ei arată că e ceva rar */
.food.gold { position: relative; overflow: hidden; border-color: rgba(242,194,90,.65); background: linear-gradient(100deg, rgba(120,84,20,.35), rgba(60,40,10,.25)); box-shadow: inset 0 0 0 1px rgba(255,226,150,.12), 0 0 14px rgba(242,194,90,.12); }
.food.gold span { color: #ffe6a0; }
.food.gold img { filter: drop-shadow(0 0 8px rgba(255,210,110,.55)) drop-shadow(0 3px 3px rgba(0,0,0,.35)); }
.food.gold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,240,200,.18) 48%, transparent 60%); transform: translateX(-100%); animation: goldSweep 3.6s ease-in-out infinite; pointer-events: none; }
@keyframes goldSweep { 0%, 55% { transform: translateX(-100%); } 85%, 100% { transform: translateX(100%); } }
/* bara de sațietate: se umple după ce a mâncat, cu o strălucire și „+N" */
#petPanelSide .meter { position: relative; }
.meter.fed { animation: meterFed .9s ease-out; }
.meter.fed i { transition: width .9s var(--ease-out), background-color .6s; }
@keyframes meterFed { 0% { box-shadow: 0 0 0 0 rgba(94,227,107,.0); } 30% { box-shadow: 0 0 0 3px rgba(94,227,107,.35), 0 0 18px rgba(94,227,107,.6); } 100% { box-shadow: 0 0 0 0 rgba(94,227,107,0); } }
.meter-plus { position: absolute; right: 18px; margin-top: -22px; font: 800 16px var(--display); color: #8af0a2; text-shadow: 0 2px 0 rgba(0,0,0,.5); pointer-events: none; animation: plusUp 1.4s ease-out forwards; }
@keyframes plusUp { 0% { opacity: 0; transform: translateY(8px) scale(.7); } 20% { opacity: 1; transform: translateY(0) scale(1.15); } 100% { opacity: 0; transform: translateY(-22px) scale(1); } }

/* gândul în HTML: norișor pictat cu mâncarea preferată, în colțul liber al desenului */
.pimg { position: relative; display: block; width: 100%; }
.pimg img { display: block; }
.think-box { position: absolute; inset: 0; pointer-events: none; }
.slot .think-box { inset: auto; right: -26%; bottom: 52px; width: 46%; aspect-ratio: 1; animation: bob 1.8s ease-in-out infinite; }
.think { position: absolute; top: -3%; width: 33%; aspect-ratio: 256 / 190; background: url(../assets/painted/ui/think-bubble.webp) center / contain no-repeat; filter: drop-shadow(0 3px 4px rgba(0,0,0,.3));
  animation: thinkIn .55s var(--ease-spring) .25s backwards, thinkBob 2.8s ease-in-out .8s infinite; }
.think.r { left: 72%; } .think.l { left: -5%; }
.think i { position: absolute; inset: 17% 20% 19%; background: var(--food) center / contain no-repeat; animation: thinkFood 2.2s ease-in-out infinite; }
.think::before, .think::after { content: ""; position: absolute; aspect-ratio: 1; background: url(../assets/painted/ui/think-puff.webp) center / contain no-repeat; }
.think.r::before { width: 22%; left: -4%; top: 86%; } .think.r::after { width: 13%; left: -18%; top: 116%; }
.think.l::before { width: 22%; right: -4%; top: 86%; } .think.l::after { width: 13%; right: -18%; top: 116%; }
.think b { position: absolute; top: -10%; width: 26%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: #e0442e; border: 1.5px solid #5a160c; color: #fff; font: 800 clamp(8px, 1vw, 13px)/1 var(--display); }
.think.r b { right: -6%; } .think.l b { left: -6%; }
.think.urgent { animation: thinkIn .55s var(--ease-spring) .25s backwards, thinkShake 2.6s ease-in-out .8s infinite; }
@keyframes thinkIn { from { opacity: 0; transform: scale(.2); } }
@keyframes thinkBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5%); } }
@keyframes thinkFood { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-4%) rotate(3deg); } }
@keyframes thinkShake { 0%, 60%, 100% { transform: rotate(0) scale(1); } 64% { transform: rotate(-7deg) scale(1.05); } 68% { transform: rotate(6deg) scale(1.05); } 72% { transform: rotate(-5deg); } 76% { transform: rotate(3deg); } 80% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .think, .think i, .food.gold::after, .meter.fed { animation: none !important; } }
html.reduce-motion .think, html.reduce-motion .think i, html.reduce-motion .food.gold::after { animation: none !important; }
/* telefon: panoul cuibului stă jos, iar insula (cu animalul și masa lui) rămâne la vedere deasupra */
@media (max-width: 900px) { #petZone .zone-panel { top: auto; } }
/* pe cartonașe: gândul sub eticheta de raritate, în interiorul cartonașului */
.pet-tile .think { top: 12%; width: 36%; }
.pet-tile .think.r { left: 62%; } .pet-tile .think.l { left: 2%; }
.pet-tile .think b { top: -16%; }
.pet-tile .think.r b { right: -2%; } .pet-tile .think.l b { left: -2%; }

/* ---------------------------------------------------------------- grupul: vot pe traseu + „Gata" individual (fără lider) */
.track .voters { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: row-reverse; pointer-events: none; }
.track .voters img { width: 26px; height: 26px; margin-left: -8px; border-radius: 50%; filter: drop-shadow(0 2px 3px rgba(0,0,0,.55)); animation: voteIn .4s var(--ease-spring) backwards; }
@keyframes voteIn { from { transform: translateY(-10px) scale(.4); opacity: 0; } }
.track .vote-badge { position: absolute; top: 8px; left: 8px; padding: 3px 9px; border-radius: 8px; background: linear-gradient(180deg, #ffe58a, var(--gold)); color: #2a1606; font: 800 11px var(--text); letter-spacing: .02em; box-shadow: 0 2px 6px rgba(0,0,0,.35); pointer-events: none; }
.track.mine { border-color: rgba(255,207,90,.4); border-style: dashed; }
.slot .tag.ok { color: #8af0a2; }
.slot .tag.sit, .slot .tag.idle { color: #b9a98c; }
.slot .tag.race { color: #8cc8ff; }
.play.ready { color: #0d2a12; background: linear-gradient(180deg, #b8ffc4, #5ee36b 45%, #2fae46); box-shadow: 0 6px 0 #1f7a31, 0 12px 28px rgba(94,227,107,.3), inset 0 2px 0 rgba(255,255,255,.6); }
.play.long { font-size: clamp(16px, 1.6vw, 22px); padding: 16px 14px 20px; }
.party-ctl { display: grid; gap: 4px; justify-items: center; align-content: start; text-align: center; min-height: 42px; }
.party-ctl[hidden] { display: none; }
.party-ctl p { margin: 0; min-height: 1.3em; font-size: 12.5px; color: #e9dcc0; }
.sit-btn { border: 0; background: none; color: var(--mute); font: 600 12.5px var(--text); text-decoration: underline; padding: 2px 6px; cursor: pointer; }
.sit-btn:hover { color: #fff3d4; }
.sit-btn[hidden] { display: none; }

/* ---------------------------------------------------------------- social: prieteni, invitații, mesaje */
.tab { position: relative; }
.tab-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 9px; background: #e0442e; color: #fff; font: 800 11px/1 var(--text); font-style: normal; vertical-align: 1px; }
.tab-badge[hidden] { display: none; }
/* pastila grupului și stările de sub nume */
.grp-pill { justify-self: center; align-self: end; padding: 7px 18px; border-radius: 20px; background: rgba(20,13,8,.78); border: 1px solid rgba(255,214,140,.25); font: 700 15px var(--display); color: #f6ead2; box-shadow: 0 6px 16px rgba(0,0,0,.3); }
.grp-pill.off, .party-ctl.off, .sit-btn.off { visibility: hidden; } /* ascunse, dar cu locul păstrat: scena nu se mută când intră cineva în grup */
.slot .tag { display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; padding: 3px 10px; border-radius: 12px; background: rgba(20,13,8,.72); border: 1px solid rgba(255,214,140,.22); letter-spacing: .04em; text-transform: none; font: 700 11.5px var(--text); color: #f3dca8; }
.slot .tag.ok { color: #c9ffd3; background: rgba(32,104,48,.75); border-color: rgba(138,240,162,.5); }
.slot .tag.ok::before { content: "✓"; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #5ee36b; color: #0d2a12; font-size: 10px; }
.slot .tag.sit, .slot .tag.idle { color: #cdbb98; }
.slot .tag.race { color: #b8dcff; border-color: rgba(140,200,255,.4); }
.slot .pet.fpet { width: 40%; right: -20%; bottom: 56px; cursor: default; }
/* chatul grupului */
/* chat-ul grupului: un buton rotund în colțul scenei; deschis, o fereastră care crește în sus din el (bilele nu se mișcă) */
.gx { position: absolute; left: 14px; bottom: 14px; z-index: 6; width: min(400px, calc(100% - 28px)); border-radius: 18px; background: linear-gradient(180deg, rgba(30,21,13,.96), rgba(18,12,8,.96)); border: 1.5px solid rgba(201,154,53,.65); box-shadow: 0 16px 40px rgba(0,0,0,.45); overflow: hidden; transform-origin: 0 100%; }
.gx[hidden] { display: none; }
.gx:not(.closed) { animation: gx-open .22s var(--ease-out); }
@keyframes gx-open { from { opacity: 0; transform: translateY(10px) scale(.95); } }
.gx.closed { width: 58px; height: 58px; border-radius: 50%; overflow: visible; box-shadow: 0 8px 20px rgba(0,0,0,.4); transition: transform .15s; }
.gx.closed:hover { transform: scale(1.07); }
.gx-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 16px; border: 0; background: none; color: #f6ead2; font: 700 16px var(--display); text-align: left; }
.gx-head > svg:first-child { width: 22px; height: 22px; color: #e9b84a; }
.gx-head span { flex: 1; }
.gx.closed .gx-head { height: 100%; padding: 0; justify-content: center; border-radius: 50%; }
.gx.closed .gx-head > svg:first-child { width: 28px; height: 28px; }
.gx.closed .gx-head span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gx.closed .gx-chev { display: none; }
.gx-chev { width: 20px; height: 20px; color: #e9c46a; transform: rotate(180deg); }
.gx-badge { min-width: 20px; height: 20px; display: grid; place-items: center; padding: 0 6px; border-radius: 10px; background: #e0442e; color: #fff; font: 800 11px var(--text); }
.gx.closed .gx-badge { position: absolute; top: -3px; right: -3px; box-shadow: 0 0 0 2px #1d140c; }
.gx-badge[hidden] { display: none; }
.gx-body { display: grid; gap: 10px; padding: 0 16px 14px; border-top: 1px solid rgba(201,154,53,.3); }
.gx.closed .gx-body { display: none; }
.msgs { max-height: 132px; overflow: auto; padding-top: 10px; display: grid; gap: 5px; scrollbar-width: thin; }
.msgs p { margin: 0; font-size: 14.5px; color: #efe1c6; line-height: 1.4; overflow-wrap: anywhere; }
.msgs p img { width: 14px; height: 14px; margin-right: 6px; vertical-align: -2px; }
.msgs p b.me { color: #ffd76a; } .msgs p b.g { color: #8af0a2; }
.msgs p.sys { text-align: center; color: #b9a98c; font-size: 12.5px; font-style: italic; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.quick button { padding: 7px 16px; border-radius: 18px; border: 1.5px solid rgba(201,154,53,.6); background: rgba(0,0,0,.25); color: #f6ead2; font: 600 14px var(--display); transition: background .15s, transform .1s; }
.quick button:hover { background: rgba(201,154,53,.16); }
.quick button:active { transform: scale(.96); }
.msg-in { display: flex; gap: 8px; align-items: center; padding: 5px 5px 5px 14px; border-radius: 14px; border: 1.5px solid rgba(201,154,53,.45); background: rgba(0,0,0,.3); }
.msg-in input { flex: 1; min-width: 0; border: 0; background: none; color: #fff; font: 500 15px var(--text); outline: none; padding: 6px 0; }
.msg-in input::placeholder { color: #a8977a; }
.msg-in button { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 0; background: linear-gradient(180deg, #ffe58a, var(--gold)); color: #2a1606; }
.msg-in button svg { width: 20px; height: 20px; }
/* panoul social (dreapta) */
.social { position: absolute; z-index: 6; top: 84px; right: max(16px, env(safe-area-inset-right)); width: min(470px, calc(100% - 32px)); max-height: calc(100% - 300px); min-height: 280px; display: grid; grid-template-rows: auto minmax(0, 1fr);
  border-radius: 20px; background: linear-gradient(180deg, rgba(32,22,13,.97), rgba(18,12,8,.97)); border: 1.5px solid #c99a35; box-shadow: 0 0 0 4px rgba(16,10,7,.85), 0 0 0 5px rgba(201,154,53,.35), 0 26px 60px rgba(0,0,0,.55); color: #f6ead2; }
.social[hidden] { display: none; }
.social:not([hidden]) { animation: soIn .32s var(--ease-spring); }
.social.closing { animation: soOut .2s ease-in forwards; }
@keyframes soIn { from { opacity: 0; transform: translateX(24px) scale(.98); } }
@keyframes soOut { to { opacity: 0; transform: translateX(18px) scale(.98); } }
.so-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px 12px; }
.so-head h2 { flex: 1; margin: 0; font: 800 26px/1.1 var(--display); min-width: 0; }
.so-count { color: #d9c7a3; font: 600 15px var(--text); white-space: nowrap; }
.so-x, .so-back { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: #f6ead2; font-size: 32px; line-height: 1; }
.so-x:hover, .so-back:hover { background: rgba(255,255,255,.07); }
.so-back svg { width: 24px; height: 24px; }
.so-back[hidden] { display: none; }
.so-body { overflow: auto; padding: 0 20px 18px; display: grid; gap: 10px; align-content: start; scrollbar-width: thin; }
.so-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 14px; border: 1.5px solid rgba(201,154,53,.55); background: rgba(0,0,0,.3); }
.so-search svg { width: 20px; height: 20px; color: #d9c7a3; flex: none; }
.so-search input { flex: 1; min-width: 0; border: 0; background: none; color: #fff; font: 500 16px var(--text); padding: 12px 0; outline: none; }
.so-search:focus-within { border-color: #ffd76a; box-shadow: 0 0 0 3px rgba(255,214,120,.15); }
.so-list { display: grid; gap: 8px; }
.so-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255,240,210,.04); border: 1px solid rgba(201,154,53,.2); }
.so-av { position: relative; width: 52px; height: 52px; flex: none; padding: 0; border: 2px solid rgba(201,154,53,.65); border-radius: 50%; background: radial-gradient(circle at 50% 40%, #6b4a2a, #2a1a0e); overflow: visible; }
.so-av img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.so-av .dot { position: absolute; right: -1px; bottom: -1px; width: 14px; height: 14px; border-radius: 50%; border: 2.5px solid #1c130c; background: #8a8a8a; }
.dot.online, .ps.online i { background: #3ccf62; } .dot.racing, .ps.racing i { background: #f2b84a; } .dot.offline, .ps.offline i { background: #8a8a8a; }
.so-who { flex: 1; min-width: 0; display: grid; gap: 2px; padding: 0; border: 0; background: none; color: inherit; text-align: left; }
button.so-who, button.so-av, .so-msg { cursor: pointer; }
.so-who b { font: 700 17px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps { display: inline-flex; align-items: center; gap: 6px; font: 600 13px var(--text); color: #cdbb98; }
.ps i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.ps.online { color: #8af0a2; } .ps.racing { color: #f6c769; }
.ps .pid { color: #b9a98c; margin-right: 6px; font-variant-numeric: tabular-nums; }
.so-msg { position: relative; width: 38px; height: 38px; flex: none; display: grid; place-items: center; border: 0; border-radius: 10px; background: rgba(255,255,255,.05); color: #e9c46a; }
.so-msg svg { width: 20px; height: 20px; }
.so-msg em { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; border-radius: 9px; background: #e0442e; color: #fff; font: 800 10px var(--text); font-style: normal; }
.so-btn { flex: none; padding: 9px 18px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.12); background: rgba(255,255,255,.08); color: #cdbb98; font: 700 15px var(--display); white-space: nowrap; }
.so-btn.gold { border: 0; color: #2a1606; background: linear-gradient(180deg, #ffe58a, var(--gold) 55%, var(--gold-2)); box-shadow: 0 3px 0 #a5650a; }
.so-btn.line { border-color: #c99a35; background: rgba(0,0,0,.2); color: #f6ead2; display: inline-flex; align-items: center; gap: 8px; }
.so-btn.line svg { width: 18px; height: 18px; }
.so-btn.icon { width: 40px; padding: 8px 0; font-size: 22px; line-height: 1; color: #f6ead2; border-color: #c99a35; }
.so-btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; filter: grayscale(.6); }
.so-btn.gold:disabled { color: #4a3a2a; }
.so-state { flex: none; color: #cdbb98; font: 600 14px var(--text); white-space: nowrap; }
.so-state.ok { color: #8af0a2; }
.so-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid rgba(201,154,53,.3); color: #d9c7a3; font: 500 15px var(--text); flex-wrap: wrap; }
.so-link { border: 0; background: none; color: #ffcf5a; font: 700 15px var(--display); padding: 4px; text-align: left; }
.so-link.center { justify-self: center; }
.so-link:hover { text-decoration: underline; }
.so-hint { margin: -2px 0 0; color: #b9a98c; font-size: 13.5px; }
.so-sub { margin: 6px 0 0; padding-top: 12px; border-top: 1px solid rgba(201,154,53,.3); font: 700 16px var(--display); }
.so-note { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0 0; padding-top: 12px; border-top: 1px solid rgba(201,154,53,.3); color: #cdbb98; font-size: 13px; line-height: 1.45; }
.so-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.so-empty { margin: 4px 0; color: #b9a98c; font-size: 14px; text-align: center; }
.so-dmh { display: flex; align-items: center; gap: 10px; }
.so-dmh img { width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(201,154,53,.65); background: radial-gradient(circle at 50% 40%, #6b4a2a, #2a1a0e); object-fit: contain; }
.so-dmh b { display: block; font: 800 20px var(--display); }
.dm-msgs { min-height: 120px; max-height: 280px; overflow: auto; display: flex; flex-direction: column; gap: 6px; padding: 4px 2px; scrollbar-width: thin; }
.dm-msgs p { margin: 0; max-width: 78%; padding: 8px 12px; border-radius: 14px; font-size: 14.5px; line-height: 1.35; animation: voteIn .25s var(--ease-out) backwards; }
.dm-msgs p.me { align-self: flex-end; background: linear-gradient(180deg, #ffe58a, #f2c25a); color: #2a1606; border-bottom-right-radius: 4px; }
.dm-msgs p.them { align-self: flex-start; background: rgba(255,240,210,.09); border: 1px solid rgba(201,154,53,.25); border-bottom-left-radius: 4px; }
.dm-msgs p.so-empty { max-width: none; align-self: center; background: none; border: 0; }
@media (max-width: 900px) {
  .social { position: fixed; left: 8px; right: 8px; top: auto; bottom: 72px; width: auto; max-height: 72vh; z-index: 30; }
  .so-head h2 { font-size: 22px; }
  .msgs { max-height: 96px; }
}
@media (prefers-reduced-motion: reduce) { .social:not([hidden]), .social.closing, .dm-msgs p { animation: none !important; } }
@media (max-width: 900px) {
  .stage > * { flex-shrink: 0; }
  .stage .gx:not(.closed) { position: fixed; left: 8px; right: 8px; bottom: 72px; width: auto; z-index: 30; }
  .grp-pill { align-self: center; margin-bottom: 6px; font-size: 13px; padding: 5px 14px; }
}
@media (max-width: 900px) { .stage { min-height: auto; } }
.friends-btn { display: none; position: relative; }
.friends-btn svg { width: 22px; height: 22px; }
.friends-btn .tab-badge { position: absolute; top: -4px; right: -4px; margin: 0; }
.slot .tag { white-space: nowrap; }
@media (max-width: 900px) {
  .friends-btn { display: grid; }
  .slot .tag { font-size: 10.5px; padding: 2px 8px; }
}

/* ---------------------------------------------------------------- pagina „Prieteni" */
.fr-body { grid-template-rows: auto auto auto; }
.fr-grid { display: grid; grid-template-columns: 290px minmax(0, 1.25fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.fr-side, .fr-main, .fr-card { border-radius: 20px; background: linear-gradient(180deg, rgba(30,21,13,.94), rgba(18,12,8,.94)); border: 1px solid rgba(201,154,53,.35); box-shadow: 0 18px 44px rgba(0,0,0,.4); color: #f6ead2; }
.fr-side { padding: 14px; display: grid; gap: 14px; }
.fr-nav { display: grid; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid rgba(201,154,53,.25); }
.fr-nav button { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border: 1.5px solid transparent; border-radius: 14px; background: none; color: #efe1c6; font: 700 17px var(--display); text-align: left; }
.fr-nav button svg { width: 24px; height: 24px; color: #e9b84a; flex: none; }
.fr-nav button span { flex: 1; }
.fr-nav button:hover { background: rgba(255,214,140,.06); }
.fr-nav button.on { border-color: #e9c46a; background: linear-gradient(180deg, rgba(160,110,30,.32), rgba(110,74,20,.2)); box-shadow: inset 0 0 0 1px rgba(255,214,140,.15); }
.fr-badge { min-width: 22px; height: 22px; display: inline-grid; place-items: center; padding: 0 6px; border-radius: 11px; background: #e0442e; color: #fff; font: 800 12px var(--text); font-style: normal; }
.fr-badge[hidden] { display: none; }
.fr-group h3 { margin: 0 0 10px; font: 700 19px var(--display); }
.fr-gav { display: flex; gap: 10px; flex-wrap: wrap; }
.fr-av { width: 56px; height: 56px; padding: 0; border-radius: 50%; border: 2px solid rgba(201,154,53,.7); background: radial-gradient(circle at 50% 40%, #6b4a2a, #2a1a0e); overflow: hidden; display: grid; place-items: center; }
.fr-av img { width: 100%; height: 100%; object-fit: contain; }
.fr-av.me { border-color: #ffd76a; box-shadow: 0 0 0 2px rgba(255,214,120,.25); }
.fr-av.add { border-style: dashed; background: rgba(0,0,0,.25); color: #f6ead2; font: 400 28px/1 var(--text); }
.fr-main { padding: 18px 18px 14px; display: grid; gap: 12px; align-content: start; min-height: 420px; }
.fr-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fr-top h2 { margin: 0; flex: 1 1 100%; font: 800 26px var(--display); }
.fr-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.fr-chips button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 22px; border: 1.5px solid rgba(255,255,255,.14); background: rgba(0,0,0,.25); color: #efe1c6; font: 700 15px var(--display); }
.fr-chips button.on { border-color: transparent; color: #2a1606; background: linear-gradient(180deg, #ffe58a, var(--gold)); }
.fr-chips .d { width: 11px; height: 11px; border-radius: 50%; }
.d.online { background: #3ccf62; } .d.offline { background: #8a8a8a; }
.fr-q { flex: 1 1 220px; margin-left: auto; }
.fr-q.wide { flex: 1 1 100%; }
.fr-list { display: grid; gap: 6px; }
.fr-row { position: relative; display: flex; align-items: center; gap: 14px; padding: 9px 12px; border-radius: 14px; border: 1.5px solid transparent; border-bottom-color: rgba(201,154,53,.14); cursor: pointer; transition: background .15s, border-color .15s; }
.fr-row:hover { background: rgba(255,240,210,.04); }
.fr-row.sel { border-color: #e9c46a; background: linear-gradient(90deg, rgba(160,110,30,.22), rgba(110,74,20,.08)); }
.fr-name { flex: 0 1 34%; min-width: 0; display: grid; }
.fr-name b { font: 700 18px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-name small { color: #b9a98c; font: 500 13.5px var(--text); font-variant-numeric: tabular-nums; }
.fr-st { flex: 1; min-width: 0; }
.ps.group { color: #8cc8ff; } .ps.group i { background: #4a9bff; }
.fr-more { width: 38px; height: 38px; flex: none; border: 0; border-radius: 10px; background: none; color: #efe1c6; font: 700 22px/1 var(--text); letter-spacing: 1px; }
.fr-more:hover { background: rgba(255,255,255,.07); }
.fr-menu { position: absolute; right: 10px; top: calc(100% - 6px); z-index: 5; min-width: 210px; padding: 6px; display: grid; gap: 2px; border-radius: 14px; border: 1.5px solid #c99a35; background: linear-gradient(180deg, rgba(36,24,14,.99), rgba(20,13,8,.99)); box-shadow: 0 18px 40px rgba(0,0,0,.55); animation: ddIn .2s var(--ease-spring); }
.fr-menu button { padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: #f6ead2; font: 600 15px var(--display); text-align: left; }
.fr-menu button:hover:not(:disabled) { background: rgba(255,214,140,.09); }
.fr-menu button:disabled { opacity: .45; }
.fr-menu .danger { color: #ff9d8a; }
.fr-card { position: relative; padding: 18px; display: grid; gap: 12px; align-content: start; min-height: 420px; }
.fc-head { display: flex; align-items: center; gap: 16px; padding-right: 44px; }
.fc-av { width: 108px; height: 108px; flex: none; border-radius: 50%; border: 3px solid #e9c46a; background: radial-gradient(circle at 50% 40%, #6b4a2a, #2a1a0e); box-shadow: 0 0 0 4px rgba(16,10,7,.8), 0 10px 24px rgba(0,0,0,.4); overflow: hidden; display: grid; place-items: center; }
.fc-av img { width: 100%; height: 100%; object-fit: contain; }
.fc-who { display: grid; gap: 4px; min-width: 0; }
.fc-who b { font: 800 30px/1.05 var(--display); overflow: hidden; text-overflow: ellipsis; }
.fc-id { display: inline-flex; align-items: center; gap: 6px; color: #cdbb98; font: 600 17px var(--text); font-variant-numeric: tabular-nums; }
.fc-who .ps { font-size: 16px; }
.fc-more { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border: 1.5px solid rgba(255,255,255,.14); }
.fr-card > .fr-menu { top: 72px; right: 18px; }
.fc-scene { position: relative; height: 190px; border-radius: 14px; border: 1.5px solid rgba(201,154,53,.55); background: center 60% / cover; overflow: hidden; }
.fc-scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,10,7,0) 55%, rgba(16,10,7,.35)); pointer-events: none; }
.fc-isl { position: absolute; left: 50%; bottom: -16%; width: 62%; transform: translateX(-50%); filter: drop-shadow(0 10px 14px rgba(0,0,0,.45)); }
.fc-ball { position: absolute; left: 50%; bottom: 31%; width: 22%; max-width: 104px; transform: translateX(-80%); filter: drop-shadow(0 8px 8px rgba(0,0,0,.4)); animation: bob 2.4s ease-in-out infinite; }
.fc-pet { position: absolute; left: 50%; bottom: 30%; width: 20%; max-width: 96px; transform: translateX(12%); filter: drop-shadow(0 6px 6px rgba(0,0,0,.4)); }
.fc-acts { display: grid; grid-template-columns: 1.15fr 1fr; gap: 10px; }
.so-btn.big { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 16px; font-size: 18px; }
.so-btn.big svg { width: 24px; height: 24px; }
.fc-note { display: flex; align-items: center; gap: 10px; margin: 0; color: #d9c7a3; font-size: 15px; }
.fc-note svg { width: 22px; height: 22px; flex: none; color: #cdbb98; }
.fc-last { display: flex; gap: 12px; padding: 12px; border-radius: 14px; background: rgba(255,240,210,.05); border: 1px solid rgba(201,154,53,.25); cursor: pointer; }
.fc-last img { width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(201,154,53,.6); background: radial-gradient(circle at 50% 40%, #6b4a2a, #2a1a0e); object-fit: contain; flex: none; }
.fc-last > div { flex: 1; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; min-width: 0; }
.fc-last b { font: 700 16px var(--display); }
.fc-last small { color: #b9a98c; font-size: 13px; }
.fc-last p { grid-column: 1 / -1; margin: 0; color: #efe1c6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-last .so-link { grid-column: 1 / -1; justify-self: end; padding: 0; font-size: 14px; }
.fc-bar { display: flex; align-items: center; gap: 6px; }
.fc-bar .fc-head { padding-right: 0; }
.fc-bar .fc-av { width: 64px; height: 64px; border-width: 2px; }
.fc-bar .fc-who b { font-size: 22px; }
.fc-bar .fc-id { font-size: 14px; }
.fc-msgs { min-height: 220px; max-height: 340px; }
.fr-back { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 14px; border: 1.5px solid #c99a35; background: rgba(20,13,8,.85); color: #f6ead2; font: 700 17px var(--display); }
.fr-back svg { width: 22px; height: 22px; }
@media (max-width: 1250px) { .fr-grid { grid-template-columns: 240px minmax(0, 1fr); } .fr-card { grid-column: 1 / -1; } }
@media (max-width: 900px) {
  .fr-grid { grid-template-columns: minmax(0, 1fr); }
  .fr-side { padding: 10px; }
  .fr-nav { grid-auto-flow: column; grid-auto-columns: 1fr; padding-bottom: 10px; }
  .fr-nav button { flex-direction: column; gap: 4px; padding: 8px 4px; font-size: 13px; text-align: center; position: relative; }
  .fr-nav button .fr-badge { position: absolute; top: 2px; right: 8px; }
  .fr-av { width: 46px; height: 46px; }
  .fr-name { flex-basis: 40%; }
  .fr-main, .fr-card { min-height: 0; }
  .fc-av { width: 80px; height: 80px; }
  .fc-who b { font-size: 24px; }
  .fc-acts { grid-template-columns: 1fr; }
}
.fr-st .ps { white-space: nowrap; }
@media (max-width: 900px) {
  .fr-row { gap: 10px; padding: 8px; }
  .fr-name { flex: 1 1 auto; }
  .fr-st { flex: none; }
  .fr-st .ps { font-size: 12px; }
  .fr-row .so-av { width: 44px; height: 44px; }
}

/* ---------------------------------------------------------------- dimensiuni fixe: cardul prietenului (profil = conversație), panoul social, Setările */
.fr-card { height: clamp(540px, calc(100vh - 250px), 650px); overflow: auto; scrollbar-width: thin; }
.fr-card.is-chat { display: flex; flex-direction: column; overflow: hidden; gap: 10px; }
.fr-card.is-chat .fc-bar { position: relative; flex: none; padding-bottom: 12px; border-bottom: 1px solid rgba(201,154,53,.3); }
.fr-card.is-chat .fc-bar .fc-more { position: static; margin-left: auto; width: 42px; height: 42px; }
.fr-card.is-chat > .fr-menu { top: 64px; }
.fc-msgs { flex: 1; min-height: 0; max-height: none; }
.fr-card.is-chat .quick, .fr-card.is-chat .msg-in, .fr-card.is-chat .so-hint { flex: none; }
.fr-card.is-chat .quick { padding-top: 10px; border-top: 1px solid rgba(201,154,53,.25); }
.fr-card.is-chat .quick button { flex: 1; }
.social { height: min(560px, calc(100% - 300px)); max-height: none; }
.set-card { height: min(680px, calc(100vh - 32px)); }
/* conversația: separator de zi, bule cu ora dedesubt */
.dm-msgs { gap: 2px; }
.dm-day { display: flex; align-items: center; gap: 12px; margin: 6px 0 8px; color: #d9c7a3; font: 600 13px var(--text); }
.dm-day::before, .dm-day::after { content: ""; flex: 1; height: 1px; background: rgba(201,154,53,.3); }
.dm-m { display: grid; max-width: 80%; gap: 3px; margin-bottom: 6px; animation: voteIn .25s var(--ease-out) backwards; }
.dm-m.me { align-self: flex-end; justify-items: end; }
.dm-m.them { align-self: flex-start; justify-items: start; }
.dm-m p { margin: 0; padding: 10px 16px; border-radius: 14px; font-size: 16px; line-height: 1.35; overflow-wrap: anywhere; }
.dm-m.me p { background: linear-gradient(180deg, #8a6420, #6f4f17); color: #fff3d4; border: 1px solid rgba(255,214,120,.35); border-bottom-right-radius: 4px; }
.dm-m.them p { background: rgba(255,240,210,.08); border: 1px solid rgba(255,240,210,.18); color: #f6ead2; border-bottom-left-radius: 4px; }
.dm-m small { color: #b9a98c; font: 500 12px var(--text); font-variant-numeric: tabular-nums; }
.msg-in button svg { width: 20px; height: 20px; }
@media (max-width: 900px) {
  .fr-card { height: min(600px, 78vh); }
  .social { height: min(560px, 72vh); }
}
.dm-m { display: flex; flex-direction: column; flex: none; }
.dm-m.me { align-items: flex-end; } .dm-m.them { align-items: flex-start; }
.dm-m p { width: fit-content; max-width: 100%; }

/* ---------------------------------------------------------------- cardul prietenului: totul umple înălțimea fixă (scena crește, mesajul stă jos) */
.fr-card:not(.is-chat) { display: flex; flex-direction: column; gap: 14px; }
.fr-card:not(.is-chat) > * { flex: none; }
.fr-card:not(.is-chat) > .fr-menu { position: absolute; }
.fr-card .fc-scene { flex: 1 1 auto; height: auto; min-height: 170px; box-shadow: inset 0 0 0 1px rgba(255,240,210,.06), 0 10px 26px rgba(0,0,0,.35); }
.fc-stage { position: absolute; left: 50%; bottom: 8%; width: min(66%, 390px); aspect-ratio: 1600 / 403; transform: translateX(-50%); animation: fcFloat 6s ease-in-out infinite; }
@keyframes fcFloat { 50% { transform: translate(-50%, -6px); } }
.fc-stage .fc-isl { left: 0; bottom: 0; width: 100%; transform: none; }
.fc-stage .fc-ball { left: 17%; bottom: 80%; width: 24%; max-width: none; transform: none; }
.fc-stage .fc-pet { left: 53%; bottom: 81%; width: 27%; max-width: none; transform: none; }
.fc-tag { position: absolute; z-index: 1; top: 12px; left: 12px; display: flex; align-items: center; gap: 8px; max-width: 46%; padding: 5px 12px 5px 5px; border-radius: 999px; background: rgba(16,10,7,.62); border: 1px solid rgba(255,214,120,.35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: 0 6px 14px rgba(0,0,0,.3); }
.fc-tag.r { left: auto; right: 12px; }
.fc-tag img { width: 30px; height: 30px; flex: none; border-radius: 50%; object-fit: contain; background: radial-gradient(circle at 50% 40%, #6b4a2a, #2a1a0e); }
.fc-tag > span { display: grid; min-width: 0; line-height: 1.1; }
.fc-tag b { font: 700 14px var(--display); color: #fff3d4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-tag small { color: #d9c7a3; font: 600 11.5px var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-card .fc-acts { gap: 12px; }
.fr-card .fc-acts .so-btn.big { min-height: 58px; font-size: 17px; border-radius: 16px; }
.fr-card .fc-note { padding: 0 4px; }
.fc-msg { display: grid; gap: 10px; }
.fc-msg .so-sub { margin: 0; }
.fc-first { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px 14px; padding: 14px; border-radius: 16px; background: linear-gradient(180deg, rgba(255,240,210,.06), rgba(255,240,210,.02)); border: 1px dashed rgba(201,154,53,.45); }
.fc-ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: #ffcf5a; background: rgba(201,154,53,.14); border: 1px solid rgba(201,154,53,.4); }
.fc-ic svg { width: 26px; height: 26px; }
.fc-ft { display: grid; gap: 2px; min-width: 0; }
.fc-ft b { font: 700 17px var(--display); }
.fc-ft small { color: #b9a98c; font-size: 14px; }
.fc-first .quick { grid-column: 1 / -1; }
.fc-first .quick button { flex: 1; }
.fr-card .fc-last { padding: 14px; }

/* panoul social, conversația: mesajele umplu panoul, rândurile rapide + scrisul stau jos */
.so-body.so-dm { display: flex; flex-direction: column; overflow: hidden; gap: 10px; }
.so-dm > * { flex: none; }
.so-dm .dm-msgs { flex: 1; min-height: 0; max-height: none; }
.so-dm .quick { padding-top: 10px; border-top: 1px solid rgba(201,154,53,.25); }
.so-dm .quick button { flex: 1; }
@media (max-width: 900px) {
  .fr-card .fc-scene { min-height: 140px; }
  .fr-card .fc-acts { grid-template-columns: 1fr 1fr; }
  .fr-card .fc-acts .so-btn.big { min-height: 52px; font-size: 15px; white-space: normal; line-height: 1.15; text-align: left; padding: 10px 12px; gap: 8px; }
  .fc-tag small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .fc-stage { animation: none; } }

/* ---------------------------------------------------------------- maratonul zilei: o încercare pe zi */
.mar .mplayed, .mar .monce { justify-self: start; padding: 2px 8px; border-radius: 8px; font: 700 11px var(--display); letter-spacing: .03em; }
.mar .mplayed { background: rgba(60,207,98,.18); color: #8af0a2; border: 1px solid rgba(138,240,162,.35); }
.mar .monce { background: rgba(255,214,120,.1); color: #ffe2a0; border: 1px solid rgba(255,214,120,.3); }
.mar .mnext { color: #d9c7a3; font-variant-numeric: tabular-nums; }
.mar { grid-template-columns: auto; }
.mar .mbadge + span { margin-top: -1px; }
.md-modal { z-index: 45; }
.md-card { position: relative; width: min(520px, 100%); padding: 34px 32px 26px; display: grid; justify-items: center; gap: 10px; text-align: center; border-radius: 18px; color: #f6ead2;
  background: radial-gradient(120% 70% at 50% 0%, rgba(201,154,53,.16), transparent 60%), linear-gradient(180deg, rgba(36,24,15,.98), rgba(22,15,10,.98));
  border: 1.5px solid #c99a35; box-shadow: 0 0 0 5px rgba(14,9,6,.9), 0 0 0 6.5px rgba(201,154,53,.45), 0 40px 90px rgba(0,0,0,.6); }
.md-modal:not([hidden]) .md-card { animation: modalIn .4s var(--ease-spring); }
.md-x { position: absolute; top: 12px; right: 12px; }
.md-seal { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; color: #ffd76a;
  background: radial-gradient(circle at 50% 38%, rgba(255,214,120,.22), rgba(120,80,20,.18) 62%, transparent 63%); box-shadow: 0 0 0 1.5px rgba(201,154,53,.55), 0 10px 26px rgba(0,0,0,.45); }
.md-seal svg { width: 58px; height: 58px; animation: mdSand 3.2s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes mdSand { 0%, 70% { transform: rotate(0); } 85%, 100% { transform: rotate(180deg); } }
.md-kicker { margin-top: 4px; padding: 3px 10px; border-radius: 8px; background: linear-gradient(180deg, #ffd86b, #e8a93a); color: #2a1606; font: 700 12px var(--display); letter-spacing: .08em; text-transform: uppercase; }
.md-card h2 { margin: 2px 0 0; font: 800 30px/1.1 var(--display); }
.md-text { margin: 0; max-width: 40ch; color: #d9c7a3; font-size: 15.5px; line-height: 1.5; }
.md-stats { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.md-stat { display: grid; gap: 4px; padding: 12px 10px; border-radius: 12px; background: rgba(255,240,210,.04); border: 1px solid rgba(201,154,53,.28); }
.md-stat span { color: #cdbb98; font: 600 12.5px var(--text); letter-spacing: .04em; text-transform: uppercase; }
.md-stat b { font: 700 19px var(--display); color: #fff3d4; font-variant-numeric: tabular-nums; }
.md-next b { font-size: 24px; color: #ffd76a; letter-spacing: .02em; }
.md-acts { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.md-acts .gold-btn { font-size: 20px; }
.md-test { margin-top: 2px; padding: 4px 8px; border: 0; background: none; color: #b9a98c; font: 600 13px var(--text); text-decoration: underline; text-underline-offset: 3px; }
.md-test:hover { color: #ffe2a0; }
@media (max-width: 520px) {
  .md-card { padding: 30px 18px 20px; }
  .md-card h2 { font-size: 25px; }
  .md-stats, .md-acts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .md-seal svg { animation: none; } }

/* butonul mare când maratonul de azi e jucat: un ceas până la traseul nou (apăsat: fereastra cu detalii) */
.play.locked { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 12px 20px; color: #ffe2a0; letter-spacing: 0;
  background: linear-gradient(180deg, #4a3218, #2c1d0f 60%, #24170c); box-shadow: 0 6px 0 #140c06, 0 12px 26px rgba(0,0,0,.45), inset 0 0 0 1.5px rgba(233,184,74,.75), inset 0 2px 0 rgba(255,226,160,.18);
  animation: none; cursor: pointer; }
.play.locked::after { animation-duration: 6s; opacity: .35; }
.play.locked:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 8px 0 #140c06, 0 16px 30px rgba(0,0,0,.5), inset 0 0 0 1.5px #ffd76a, inset 0 2px 0 rgba(255,226,160,.22); }
.play.locked:not(:disabled):active { transform: translateY(4px); box-shadow: 0 2px 0 #140c06, 0 6px 14px rgba(0,0,0,.4), inset 0 0 0 1.5px #ffd76a; }
.pl-ic { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #ffd76a; background: radial-gradient(circle at 50% 38%, rgba(255,214,120,.25), rgba(120,80,20,.2) 65%); box-shadow: 0 0 0 1.5px rgba(201,154,53,.6); }
.pl-ic svg { width: 28px; height: 28px; animation: mdSand 3.2s ease-in-out infinite; }
.pl-txt { display: grid; justify-items: start; gap: 2px; text-align: left; }
.pl-txt small { font: 700 13px var(--text); letter-spacing: .08em; text-transform: uppercase; color: #d9c7a3; }
.pl-txt b { font: 700 32px/1 var(--display); color: #ffd76a; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.mar .mfree { justify-self: start; padding: 2px 8px; border-radius: 8px; font: 700 11px var(--display); background: rgba(95,179,255,.14); color: #a9d6ff; border: 1px solid rgba(169,214,255,.35); }
@media (max-width: 900px) { .pl-txt b { font-size: 26px; } .pl-ic { width: 40px; height: 40px; } }
@media (prefers-reduced-motion: reduce) { .pl-ic svg { animation: none; } }
.set-test { border-color: rgba(169,214,255,.4); background: linear-gradient(180deg, rgba(95,179,255,.07), rgba(95,179,255,.02)); }
.chip-test { margin-left: 6px; padding: 2px 8px; border-radius: 7px; background: rgba(95,179,255,.16); color: #a9d6ff; border: 1px solid rgba(169,214,255,.4); font: 700 11px var(--text); font-style: normal; letter-spacing: .08em; vertical-align: 2px; }
.md-modal { overflow-y: auto; }
.md-card { max-height: calc(100dvh - 32px); overflow-y: auto; scrollbar-width: thin; }
@media (max-height: 520px) { .md-seal { display: none; } .md-card { padding: 22px 20px 16px; gap: 8px; } .md-card h2 { font-size: 22px; } .md-stats, .md-acts { grid-template-columns: 1fr 1fr; } }
.lobby-err { position: fixed; z-index: 60; left: 50%; top: 18px; transform: translate(-50%, -20px); max-width: min(560px, calc(100% - 32px)); padding: 12px 18px; border-radius: 12px; background: rgba(60,14,10,.95); border: 1.5px solid #e0442e; color: #ffe2d8; font: 600 15px var(--text); box-shadow: 0 12px 30px rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.lobby-err.show { opacity: 1; transform: translate(-50%, 0); }
.res-x { position: absolute; z-index: 2; top: 12px; right: 12px; width: 38px; height: 38px; display: grid; place-items: center; border: 1.5px solid rgba(201,154,53,.5); border-radius: 50%; background: rgba(0,0,0,.35); color: #f6ead2; font: 400 26px/1 var(--text); cursor: pointer; transition: background .15s, transform .1s; }
.res-x:hover { background: rgba(201,154,53,.18); }
.res-x:active { transform: scale(.94); }

/* anomalia zilei: banner cu stea violetă + rândul de pe cardul maratonului */
.banner .bn-anom { width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 30px; color: #fff3c4;
  background: radial-gradient(circle at 40% 35%, #b98cff, #5b2fa8 70%); box-shadow: 0 0 0 2px rgba(200,170,255,.7), 0 0 18px rgba(170,120,255,.6); }
.mar .manom { color: #d9c2ff; }

/* reluarea celei mai bune sărituri: benzi de cinema, eticheta „REC", atinge ca să treci peste */
.replay { position: absolute; inset: 0; z-index: 7; cursor: pointer; }
.replay .rp-bar { position: absolute; left: 0; right: 0; height: 9vh; background: #07050a; animation: rp-in .45s ease-out both; }
.replay .rp-bar.top { top: 0; }
.replay .rp-bar.bot { bottom: 0; }
.replay .rp-tag { position: absolute; left: 50%; top: calc(9vh + 14px); transform: translateX(-50%); display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px; background: rgba(20,12,8,.78); border: 1px solid rgba(255,214,107,.45); color: #fff4dc; white-space: nowrap; }
.replay .rp-tag b { font: 700 16px/1 var(--display); letter-spacing: .12em; color: #ffd36a; }
.replay .rp-tag span { font-size: 14px; color: #e9dccb; }
.replay .rp-dot { width: 10px; height: 10px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 8px #ff4d4d; animation: rp-blink 1s steps(2) infinite; }
.replay .rp-skip { position: absolute; left: 50%; bottom: calc(9vh + 12px); transform: translateX(-50%); font-size: 13px; color: rgba(255,244,220,.75); white-space: nowrap; }
@keyframes rp-in { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes rp-blink { 50% { opacity: .25; } }
@media (max-width: 520px) { .replay .rp-tag span { display: none; } }

/* ---------------------------------------------------------------- dulapul bilei */
.skins-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.skins-head h3 { margin: 0; }
.wr-open { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 9px; border-radius: 11px; border: 1.5px solid rgba(233,184,74,.7); background: rgba(0,0,0,.28); color: #f6ead2; font: 700 13px var(--display); transition: background .15s, transform .12s; }
.wr-open svg { width: 18px; height: 18px; color: #e9b84a; }
.wr-open:hover { background: rgba(233,184,74,.16); transform: translateY(-1px); }
/* bila ta din lobby: accesoriile nu se rostogolesc; badge-ul cu umeraș și eticheta „Personalizează bila" */
.slot.you .ball { position: relative; cursor: pointer; }
.ball-spin { position: relative; width: 100%; height: 100%; animation: roll 7s linear infinite; }
.slot .ball .ball-spin img { animation: none; }
.slot .ball-wear { position: absolute; left: -61%; top: -61%; width: 222%; height: 222%; pointer-events: none; }
.slot .ball-wear.back { z-index: -1; }
.wear-badge { position: absolute; right: -4%; bottom: 2%; width: 34%; max-width: 40px; aspect-ratio: 1; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 2px solid #e9b84a; background: radial-gradient(circle at 40% 35%, #3a2a1a, #1b120a); color: #f3dca3; box-shadow: 0 4px 10px rgba(0,0,0,.45); z-index: 2; transition: transform .15s; }
.wear-badge svg { width: 62%; height: 62%; }
.slot.you .ball:hover .wear-badge { transform: scale(1.12); }
.wear-tip { position: absolute; left: 50%; bottom: calc(100% + 14px); transform: translate(-50%, 6px); display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-width: 230px; border-radius: 14px; background: linear-gradient(180deg, rgba(36,26,16,.96), rgba(22,15,9,.96)); border: 1.5px solid rgba(201,154,53,.75); box-shadow: 0 12px 28px rgba(0,0,0,.45); color: #f6ead2; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 5; }
.wear-tip::after { content: ""; position: absolute; left: 50%; top: 100%; width: 14px; height: 14px; background: #1a110a; border: 1.5px solid rgba(201,154,53,.75); border-top: 0; border-left: 0; transform: translate(-50%, -7px) rotate(45deg); }
.wear-tip > svg { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: rgba(233,184,74,.15); color: #e9b84a; flex: none; }
.wear-tip span { display: grid; text-align: left; } .wear-tip b { font: 700 15px var(--display); } .wear-tip small { color: #c9b896; font-size: 12px; }
.wear-tip i { font-style: normal; font-size: 22px; color: #e9c46a; margin-left: auto; }
.slot.you .ball:hover .wear-tip, .slot.you .ball:focus-within .wear-tip { opacity: 1; transform: translate(-50%, 0); }
.slot.you .ball:hover .wear-tip { animation: none; }
.slot.you .ball .wear-tip, .slot.you .ball .wear-badge { animation: none; }

#wrZone { display: flex; align-items: center; justify-content: center; padding: 76px 18px 18px; }
#wrZone[hidden] { display: none; }
.wr-card { position: relative; z-index: 1; width: min(1500px, 100%); height: min(760px, calc(100vh - 94px)); height: min(760px, calc(100dvh - 94px)); display: grid; grid-template-columns: 250px minmax(300px, 1fr) minmax(400px, 620px); grid-template-rows: auto minmax(0, 1fr); gap: 6px 22px; padding: 22px 26px 22px; border-radius: 26px; background: linear-gradient(180deg, rgba(34,24,15,.9), rgba(20,14,9,.92)); border: 2px solid rgba(201,154,53,.6); box-shadow: 0 30px 70px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,230,180,.08); }
.wr-x { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid rgba(201,154,53,.7); background: rgba(0,0,0,.35); color: #f6ead2; z-index: 3; }
.wr-x svg { width: 18px; height: 18px; }
.wr-head { grid-column: 1 / 3; grid-row: 1; display: flex; align-items: center; gap: 14px; padding: 2px 4px 4px; }
.wr-head img { width: 52px; height: 52px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.4)); }
.wr-head h1 { margin: 0; font: 600 clamp(30px, 3.2vw, 46px)/1.05 Georgia, "Times New Roman", serif; color: #fff2d6; text-shadow: 0 3px 10px rgba(0,0,0,.5); }
.wr-head p { margin: 4px 0 0; font: 700 16px var(--display); color: #efe1c3; }
.wr-side { grid-row: 2; display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.wr-nav { display: grid; gap: 2px; padding: 8px; border-radius: 16px; background: rgba(0,0,0,.22); border: 1px solid rgba(201,154,53,.25); }
.wr-nav button { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border: 0; border-radius: 12px; background: none; color: #efe3c8; font: 600 16px var(--display); text-align: left; border-bottom: 1px solid rgba(255,238,205,.07); transition: background .15s; }
.wr-nav button svg { width: 26px; height: 26px; flex: none; color: #d9c79f; }
.wr-nav button:hover { background: rgba(255,238,205,.06); }
.wr-nav button.on { background: linear-gradient(180deg, #ffd96b, #f0b02b); color: #2a1606; box-shadow: 0 3px 0 #a5650a; }
.wr-nav button.on svg { color: #3a2208; }
.wr-petlink { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(201,154,53,.3); background: rgba(0,0,0,.25); color: #efe3c8; font: 700 14px var(--display); text-align: left; }
.wr-petlink img { width: 28px; height: 28px; object-fit: contain; } .wr-petlink span { flex: 1; } .wr-petlink b { color: #e9c46a; font-size: 18px; }
.wr-back { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 0; background: none; color: #f2e4c6; font: 700 18px var(--display); }
.wr-back b { color: #e9c46a; font-size: 26px; line-height: 1; }
.wr-stage { grid-column: 2; grid-row: 2; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 10px; min-height: 0; padding-top: 8px; }
.wr-peek { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 20px; background: rgba(20,13,8,.85); border: 1.5px solid rgba(201,154,53,.7); font: 700 15px var(--display); color: #f6ead2; z-index: 2; white-space: nowrap; }
.wr-peek svg { width: 20px; height: 20px; color: #f3dca3; }
.wr-view { position: relative; flex: 1; min-height: 0; overflow: hidden; width: 100%; display: grid; place-items: center; }
.wr-view canvas { position: relative; pointer-events: none; height: 100%; max-height: 470px; max-width: 100%; aspect-ratio: 1; }
.wr-ped { display: none; position: absolute; left: 50%; bottom: 4%; width: min(78%, 360px); aspect-ratio: 4.2; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse at 50% 35%, #b07a45, #7d5129 55%, #4b2f16 72%); box-shadow: 0 18px 30px rgba(0,0,0,.5), inset 0 -10px 0 #3c2410, inset 0 4px 10px rgba(255,220,160,.25); }
.wr-ped::before { content: ""; position: absolute; inset: 14% 10% 28%; border-radius: 50%; border: 2px solid rgba(60,36,16,.45); }
.wr-rot { display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 26px; background: rgba(0,0,0,.35); border: 1px solid rgba(201,154,53,.35); font: 700 16px var(--display); color: #efe3c8; }
.wr-rot span { padding: 0 22px; }
.wr-rot button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid rgba(201,154,53,.55); background: rgba(0,0,0,.3); color: #f3dca3; }
.wr-rot button svg { width: 20px; height: 20px; }
.wr-play { display: inline-flex; align-items: center; gap: 10px; padding: 11px 32px; border-radius: 24px; border: 2px solid #e9b84a; background: rgba(0,0,0,.3); color: #fff0cc; font: 700 17px var(--display); transition: background .15s; }
.wr-play svg { width: 18px; height: 18px; color: #f3c95b; }
.wr-play:hover { background: rgba(233,184,74,.14); }
.wr-outfit { display: flex; gap: 12px; padding-top: 6px; }
.wr-outfit button { position: relative; width: 100px; height: 86px; padding: 8px; border-radius: 14px; border: 1.5px solid rgba(201,154,53,.35); background: rgba(0,0,0,.3); }
.wr-outfit button img { width: 100%; height: 100%; object-fit: contain; }
.wr-outfit button.on { border-color: #ffcf5a; box-shadow: 0 0 0 2px rgba(255,207,90,.35); }
.wr-on { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #3cbf5c; color: #fff; font: 800 15px var(--text); box-shadow: 0 2px 6px rgba(0,0,0,.4); z-index: 1; }
.wr-panel { grid-column: 3; grid-row: 1 / 3; display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow: hidden; padding: 22px 24px 14px; border-radius: 22px; background: rgba(12,8,5,.55); border: 1px solid rgba(201,154,53,.28); margin-right: 34px; }
.wr-ph { display: flex; align-items: center; gap: 14px; }
.wr-picon { width: 46px; height: 46px; display: grid; place-items: center; color: #e9b84a; }
.wr-picon img, .wr-picon svg { width: 100%; height: 100%; object-fit: contain; }
.wr-ph h2 { margin: 0; flex: 1; font: 600 clamp(22px, 2vw, 30px) Georgia, "Times New Roman", serif; color: #fff2d6; }
.wr-ph small { color: #d8cbb2; font-size: 14px; }
.wr-tabs { display: flex; gap: 8px; }
.wr-tabs button { padding: 7px 24px; border-radius: 18px; border: 1px solid rgba(255,238,205,.18); background: rgba(255,255,255,.05); color: #e9dcc0; font: 700 14px var(--display); }
.wr-tabs button.on { background: linear-gradient(180deg, #3f8a4d, #2b6b39); border-color: #7fd08f; color: #f2ffe9; }
.wr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; overflow: auto; min-height: 150px; flex: 0 1 auto; padding: 8px 6px 4px 2px; }
.wr-item { position: relative; display: grid; justify-items: center; align-content: end; gap: 4px; min-height: 138px; padding: 10px 8px 10px; border-radius: 14px; border: 1.5px solid rgba(255,238,205,.12); background: rgba(255,255,255,.04); color: #f3e6cb; transition: border-color .15s, transform .12s, background .15s; }
.wr-item:hover { transform: translateY(-2px); background: rgba(255,255,255,.07); }
.wr-item.sel { border-color: #ffcf5a; box-shadow: 0 0 0 2px rgba(255,207,90,.3); background: rgba(255,207,90,.06); }
.wr-item .wr-art { flex: 1; width: 100%; height: 86px; display: grid; place-items: center; position: relative; }
.wr-item .wr-art img { max-width: 100%; max-height: 86px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.4)); }
.wr-item.locked .wr-art img { filter: saturate(.7) brightness(.85) drop-shadow(0 4px 6px rgba(0,0,0,.4)); }
.wr-art svg { width: 64px; height: 64px; color: #bfb39a; }
.wr-slash { position: absolute; right: 18%; bottom: 10%; width: 30px; height: 30px; border-radius: 50%; border: 3px solid #bfb39a; }
.wr-slash::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 3px; background: #bfb39a; transform: translateX(-50%) rotate(45deg); }
.wr-item b { font: 700 14px var(--display); text-align: center; }
.wr-item small { color: #e8c977; font: 700 12px var(--text); }
.wr-lock { position: absolute; top: 8px; right: 8px; font-size: 15px; filter: sepia(1) saturate(3) hue-rotate(5deg); }
.wr-empty { grid-column: 1 / -1; margin: 6px 0; color: #c9b896; font-size: 14px; }
.wr-detail { flex: none; border-top: 1px solid rgba(201,154,53,.25); padding-top: 14px; display: grid; gap: 8px; }
.wr-det { display: flex; align-items: center; gap: 16px; }
.wr-art.big { width: 92px; height: 80px; flex: none; display: grid; place-items: center; position: relative; }
.wr-art.big img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.4)); }
.wr-dtxt { flex: 1; display: grid; gap: 6px; justify-items: start; }
.wr-dtxt h3 { margin: 0; font: 600 clamp(20px, 1.8vw, 26px) Georgia, "Times New Roman", serif; color: #fff2d6; }
.wr-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; border-radius: 14px; border: 1px solid rgba(201,154,53,.45); background: rgba(0,0,0,.3); font: 700 13px var(--display); color: #f3e6cb; }
.wr-chip img { width: 18px; height: 18px; }
.wr-have { padding: 7px 14px; border-radius: 18px; border: 1.5px solid #5cc171; background: rgba(60,191,92,.14); color: #c9f7d2; font: 700 14px var(--display); white-space: nowrap; }
.wr-desc { margin: 0; color: #e7dac0; font-size: 15px; line-height: 1.45; }
.wr-unlock { margin: 0; color: #f0e2c4; font-size: 15px; }
.wr-prog { display: grid; gap: 6px; justify-items: stretch; text-align: left; } .wr-prog span { font: 700 14px var(--display); color: #f6ead2; }
.wr-prog .xpbar { display: block; width: 100%; height: 10px; margin: 0; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; }
.wr-prog .xpbar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #f2a51f, #ffd86b); }
.wr-acts { flex: none; margin-top: auto; display: grid; grid-template-columns: 1fr 1.2fr; gap: 14px; }
.wr-ghost { border-radius: 14px; border: 1.5px solid rgba(255,238,205,.45); background: rgba(0,0,0,.25); color: #f6ead2; font: 700 17px var(--display); padding: 12px; }
.wr-ghost:disabled { opacity: .45; cursor: default; }
.wr-acts .gold-btn { font-size: 19px; }
.wr-note { margin: 0; text-align: center; font-size: 13px; color: #c9b896; }
@media (max-width: 1180px) {
  .wr-card { grid-template-columns: 210px minmax(240px, 1fr) minmax(360px, 1.1fr); padding: 18px; }
  .wr-panel { margin-right: 0; margin-top: 40px; }
  .wr-outfit button { width: 78px; height: 68px; }
}
@media (max-width: 900px) {
  #wrZone { padding: 64px 10px 80px; overflow-y: auto; align-items: flex-start; }
  .wr-card { height: auto !important; grid-template-columns: 1fr; grid-template-rows: auto; padding: 16px; gap: 14px; }
  .wr-head, .wr-side, .wr-stage, .wr-panel { grid-column: 1; grid-row: auto; }
  .wr-nav { grid-auto-flow: column; overflow-x: auto; } .wr-nav button { flex-direction: column; gap: 4px; font-size: 12px; padding: 8px 10px; white-space: nowrap; }
  .wr-back { display: none; }
  .wr-view canvas { height: 260px; }
  .wr-stage { min-width: 0; } .wr-play { padding: 10px 18px; font-size: 15px; } .wr-outfit button { width: 70px; height: 62px; }
  .wr-panel { margin: 0; overflow: visible; } .wr-grid { max-height: none; }
}
@media (prefers-reduced-motion: reduce) { .wear-tip, .wr-item { transition: none; } }
@media (prefers-reduced-motion: reduce) { .ball-spin { animation: none; } }
.reduce-motion .ball-spin { animation: none; }

/* Testul public: eticheta din bara de sus și fereastra de păreri */
.test-pill { align-self: center; padding: 5px 10px; border: 1px solid rgba(122,196,255,.6); border-radius: 999px; background: rgba(40,90,140,.35); color: #cfe9ff; font: 800 12px var(--text); letter-spacing: .12em; cursor: pointer; white-space: nowrap; }
.test-pill:hover { background: rgba(60,120,180,.5); border-color: #9fd3ff; }
.fb-form { display: grid; gap: 10px; text-align: left; }
.fb-kinds { display: flex; gap: 8px; flex-wrap: wrap; }
.fb-kinds label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid rgba(201,154,53,.45); border-radius: 999px; cursor: pointer; font: 600 14px var(--text); }
.fb-kinds input { accent-color: #e9b84a; }
.fb-form textarea { min-height: 120px; resize: vertical; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(201,154,53,.5); background: rgba(0,0,0,.3); color: #fff3d4; font: 500 15px/1.45 var(--text); }
.fb-msg { min-height: 18px; color: #cdbb98; font: 600 13px var(--text); }
.fb-msg.good { color: #b7d5a1; } .fb-msg.bad { color: #f2b6a4; }
@media (max-width: 600px) { .test-pill { padding: 3px 6px; font-size: 9px; letter-spacing: .04em; } }
@media (max-width: 420px) { .test-pill { padding: 2px 5px; margin: 0 -4px; } }

.set-legal { margin: 4px 2px 0; font: 600 13px var(--text); color: #bfae8e; } .set-legal a { color: #e9c77a; }

/* Statistici anonime: întrebarea de acord și panoul testerului */
.stats-ask { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 60; width: min(560px, calc(100vw - 24px)); box-sizing: border-box; padding: 14px 16px; border: 1px solid rgba(201,154,53,.55); border-radius: 14px; background: rgba(28,19,12,.96); box-shadow: 0 12px 30px #0008; color: #f1e4c8; font: 600 14px/1.5 var(--text); }
.stats-ask p { margin: 0 0 10px; }
.stats-ask div { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.stats-ask button { min-height: 38px; padding: 7px 14px; border-radius: 10px; border: 1px solid rgba(201,154,53,.6); background: rgba(0,0,0,.25); color: #f6ead2; font: 700 14px var(--text); cursor: pointer; }
.stats-ask button.yes { background: linear-gradient(180deg,#ffd76a,#e9a52a); color: #2a1606; border-color: #ffcf5a; }
.stats-out { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; color: #e6d6b4; font: 600 13px/1.45 var(--text); }
.stats-out div { padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.22); }
.stats-out b { display: block; font: 800 22px var(--display); color: #ffe2a0; }

/* Cererea de cont după cursă și Pass-ul Pro „în curând" */
.gate-btns { display: grid; gap: 8px; margin-top: 6px; }
.gate-apple { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 12px; border: 1px solid #000; background: #000; color: #fff; font: 700 16px var(--text); cursor: pointer; }
.gate-apple svg { width: 18px; height: 18px; }
.gate-apple:disabled { opacity: .6; }
.gate-later { border: 0; background: none; color: #cdbb98; font: 600 14px var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px; }
.pro-on { color: #b7d5a1; font: 700 14px/1.5 var(--text); }
small.pro-on { display: block; margin-top: 6px; }
.pro-ok { display: flex; gap: 8px; align-items: flex-start; text-align: left; margin: 6px 0 10px; font: 600 14px/1.45 var(--text); color: #e6d6b4; }
.pro-ok input { margin-top: 3px; accent-color: #e9b84a; }
.res-pro { margin: 10px 0 4px; padding: 12px 14px; border: 1px solid rgba(233,184,74,.55); border-radius: 14px; background: linear-gradient(180deg, rgba(120,80,20,.35), rgba(40,26,12,.5)); text-align: center; }
.res-pro p { margin: 0 0 8px; font: 700 15px var(--text); color: #ffe2a0; }
.rpro-item { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rpro-item img { width: 64px; height: 64px; object-fit: contain; }
.rpro-item b { font: 700 16px var(--display); color: #fff3d4; }
.rpro-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 6px; }
.res-pro small { display: block; color: #bfae8e; font: 600 12px var(--text); }

/* Prietenii: fără cont / cu e-mailul neconfirmat */
.so-block { display: grid; gap: 12px; justify-items: center; padding: 26px 18px; text-align: center; color: #e6d6b4; font: 600 15px/1.55 var(--text); }
.so-block p { margin: 0; max-width: 420px; }
.leave-btn { margin-left: 8px; }
