/* ---- gift-boxes-v1 ---- */
/* holiday gift box: ribbon and bow on the chest, items fly out one by one */
.chest.gift:before{content:"";position:absolute;left:50%;top:0;bottom:0;width:16px;margin-left:-8px;background:linear-gradient(90deg,#fff3a8,var(--cl1),#b8740a);box-shadow:0 0 10px rgba(255,210,63,.6)}
.chest.gift .lock{top:-34px;width:34px;height:22px;margin-left:-17px;background:none;box-shadow:none;transition:transform .5s}
.chest.gift .lock:before,.chest.gift .lock:after{content:"";position:absolute;top:2px;width:17px;height:16px;border:4px solid var(--cl1);border-radius:50% 50% 50% 50%/60% 60% 40% 40%;box-shadow:0 0 8px var(--cl1)}
.chest.gift .lock:before{left:-2px;transform:rotate(-24deg)}.chest.gift .lock:after{right:-2px;transform:rotate(24deg)}
.chest.gift .lid:after{content:"";position:absolute;left:50%;top:0;bottom:0;width:16px;margin-left:-8px;background:linear-gradient(90deg,#fff3a8,var(--cl1),#b8740a)}
.chest.gift.open .lid{transform:translateY(-46px) rotate(-22deg)}
.chest.gift.open .lock{transform:translateY(-30px) rotate(-30deg)}
.chest-list li.gift-row{background:linear-gradient(100deg,color-mix(in srgb,var(--cb1) 26%,var(--row)),var(--row) 70%);border:1px solid color-mix(in srgb,var(--cb1) 60%,transparent);box-shadow:0 0 16px -6px var(--cb1)}
.chest-list li.gift-row .ci{background:linear-gradient(90deg,var(--cb1) 40%,var(--cl1) 40% 60%,var(--cb1) 60%);animation:giftPulse 1.6s ease-in-out infinite}
@keyframes giftPulse{50%{transform:scale(1.12) rotate(-6deg)}}
.reveal{position:relative;overflow:hidden}
.gift-confetti{position:absolute;inset:0;pointer-events:none}
.gift-confetti i{position:absolute;left:var(--x);top:-10px;width:6px;height:10px;border-radius:2px;background:var(--c);animation:giftFall 2.2s ease-in var(--d) both}
@keyframes giftFall{0%{transform:translateY(0) rotate(0);opacity:1}100%{transform:translateY(340px) rotate(540deg);opacity:0}}
.gift-items{list-style:none;margin:4px 0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:8px;width:100%}
.gift-items li{flex:0 0 116px;box-sizing:border-box;display:grid;justify-items:center;align-content:start;gap:3px;padding:10px 6px;overflow-wrap:anywhere;border-radius:14px;background:rgba(255,255,255,.04);border:1px solid var(--line);animation:giftItem .55s cubic-bezier(.3,1.5,.5,1) calc(.15s + var(--i) * .18s) both}
.gift-items .gi{width:58px;height:58px;display:grid;place-items:center}
.gift-items .gi>svg{width:58px;height:58px}
.gift-items .gi .gift-emo{display:block;width:54px;height:54px}
.gift-items .gi .gift-bg{width:92px;height:52px;border-radius:8px;object-fit:cover}
.gift-items .gi .gift-ach{font-size:2.4rem;line-height:1}
.gift-items b{font-family:inherit;font-size:.8rem!important;font-weight:700;line-height:1.2}
.gift-items small{font-size:.7rem;line-height:1.25}
@keyframes giftItem{0%{transform:translateY(24px) scale(.6);opacity:0}100%{transform:none;opacity:1}}
.bday-card .btn.ghost{margin-top:0}
.gift-box-pic{position:relative;width:70px;height:56px;margin:4px auto 2px}
.gift-box-pic .gb-body{position:absolute;left:6px;right:6px;bottom:0;height:38px;border-radius:8px;background:linear-gradient(90deg,var(--gc1,#ff4fd8) 42%,var(--gc2,#ffd23f) 42% 58%,var(--gc1,#ff4fd8) 58%);box-shadow:0 0 18px var(--gc1,#ff4fd8)}
.gift-box-pic .gb-lid{position:absolute;left:0;right:0;top:6px;height:14px;border-radius:6px;background:linear-gradient(90deg,var(--gc1,#ff4fd8) 42%,var(--gc2,#ffd23f) 42% 58%,var(--gc1,#ff4fd8) 58%);animation:gbLid 1.6s ease-in-out infinite;filter:brightness(1.15)}
@keyframes gbLid{0%,100%{transform:none}50%{transform:translateY(-6px) rotate(-5deg)}}
@media(prefers-reduced-motion:reduce){.gift-confetti i,.gift-items li,.gift-box-pic .gb-lid,.chest-list li.gift-row .ci{animation:none!important}}
@media(orientation:landscape) and (max-height:500px){
  .bday-card{max-width:600px;display:grid;grid-template-columns:150px minmax(0,1fr);grid-template-areas:"cake title" "cake text" "box btns" "box later";column-gap:20px;row-gap:8px;text-align:left;align-items:center;padding:18px 22px}
  .bday-card>*{min-width:0}.bday-cake{grid-area:cake;font-size:4.2rem;justify-self:center}.bday-test-label{display:none}
  .bday-card h2{grid-area:title;font-size:1.3rem}.bday-card p#birthdayText{grid-area:text;font-size:.88rem;line-height:1.4}
  .gift-box-pic{grid-area:box;margin:0 auto}#birthdayClose{grid-area:btns;margin:0}#birthdayLater{grid-area:later;margin:0}
}
.bday-card>*{flex-shrink:0}

/* ---- chronos-p5-goals-pause ---- */
.goal-list .g-swap { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--row); color: var(--food); font: 700 .95rem/1 var(--body); cursor: pointer; display: grid; place-items: center; padding: 0; }
.goal-list .g-swap:hover { border-color: var(--food); } .goal-list .g-swap:focus-visible { outline: 2px solid var(--food); outline-offset: 2px; }
/* ===== 2.2: pause screen with the round so far ===== */
#pauseCard { max-width: 520px; } .ps-round { display: grid; gap: 8px; margin: 0 0 12px; text-align: left; }
.ps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ps-grid div { padding: 8px 10px; border-radius: 12px; background: var(--row); display: grid; gap: 1px; min-width: 0; }
.ps-grid b { font: 400 1.15rem/1.1 var(--display); font-variant-numeric: tabular-nums; } .ps-grid small { font-size: .6rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ps-round h3 { margin: 4px 0 0; font: 400 .92rem var(--display); } .ps-round .goal-list { margin: 0; } .ps-note { margin: 0; color: var(--muted); font-size: .76rem; }
@media (max-width: 420px) { .ps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* ===== 2.2: wide windows on landscape screens — more room, fewer swipes (portrait phones keep one column) ===== */
.prof-cols, .prof-l, .prof-r { display: contents; }
@media (orientation: landscape) and (min-width: 700px) {
  .card.shop-card { max-width: min(1040px, 100%); }
  #profileCard, #chestCard, #chaosCard, #settingsCard, #hubLeague, #hubRew { max-width: min(1000px, 100%); }
  #pauseCard { max-width: min(880px, 100%); }
  /* profile: card and prestige on the left, counters and sections on the right */
  #profileCard .prof-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 12px; align-items: start; }
  #profileCard .prof-cols[hidden] { display: none; }
  #profileCard .prof-l, #profileCard .prof-r { display: grid; gap: 10px; align-content: start; min-width: 0; }
  #profileCard .prof-r .prof-head { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
  #profileCard .prof-r .g-tiles { margin: 0; gap: 8px; } #profileCard .prof-r .g-tiles .hub-btn { min-height: 0; padding: 9px 10px; }
  #profileCard .prof-r > * { margin: 0; }
  /* leagues and rewards: the two choices side by side */
  #hubLeague .hub-list, #hubRew .hub-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* chests: the chest on the left, the list on the right */
  #chestCard { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); column-gap: 16px; grid-auto-flow: row dense; align-items: start; }
  #chestCard > * { grid-column: 1 / -1; } #chestCard > .chest-stage, #chestCard > .reveal { grid-column: 1; } #chestCard > .chest-list { grid-column: 2; grid-row: span 3; }
  /* Chaos League: status and play on the left, ranks on the right; the exclusive abilities below in two columns */
  #chaosCard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px; align-items: start; }
  #chaosCard > * { grid-column: 1 / -1; }
  #chaosCard > #chaosPanel, #chaosCard > #chaosPlay, #chaosCard > #chaosNote { grid-column: 1; }
  #chaosCard > #chaosPanel + .section-title, #chaosCard > #chaosTable { grid-column: 2; }
  #chaosCard { grid-auto-flow: row dense; } #chaosCard > #chaosTable { grid-row: span 3; margin-top: 0; }
  #chaosCard > #chaosXa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  /* settings: sections in two columns */
  #settingsCard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; align-items: start; }
  #settingsCard > * { grid-column: 1 / -1; } #settingsCard > details.set-drawer { grid-column: auto; margin-top: 0; }
  /* pause: the round on the left, the goals on the right */
  #pauseCard .ps-round { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 14px; align-items: start; }
  #pauseCard .ps-round .ps-grid { grid-row: span 2; } #pauseCard .ps-round h3, #pauseCard .ps-round .goal-list, #pauseCard .ps-round .ps-note { grid-column: 2; }
  #pauseCard .btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } #pauseCard .btns .btn { margin: 0; }
}
/* ===== 2.2: logos on the Collection / Rewards buttons and in the shop tabs ===== */
#hubCol .hub-list .hub-card, #hubRew .hub-list .hub-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); justify-content: stretch; justify-items: start; gap: 4px 14px; align-items: center; text-align: left; padding: 12px 16px; width: 100%; }
.hub-card .lg-logo { display: grid; place-items: center; } .hub-logo { display: block; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--hc) 60%, transparent)); }
.hub-card .lg-tx { display: grid; gap: 3px; min-width: 0; } .hub-card .lg-ttl { font: 400 1.12rem/1.1 var(--display); }
.hub-card .lg-me { font-size: .8rem; color: var(--fg); font-weight: 500; } .hub-card .lg-when { font-size: .72rem; color: var(--muted); font-weight: 400; }
.tab-ico { width: 20px; height: 20px; margin-right: 6px; vertical-align: -5px; flex: none; }
@media (orientation: landscape) and (min-width: 640px) { #hubCol .hub-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } #hubCol { max-width: min(880px, 100%); } }
/* ===== 2.2: league logos in the «Лиги» window ===== */
#hubLeague .league-btn { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 14px; align-items: center; text-align: left; padding: 12px 16px; }
#hubLeague .lg-logo { display: grid; place-items: center; } .lg-svg { display: block; filter: drop-shadow(0 0 8px rgba(255, 201, 58, .45)); } .lg-svg.lg-chaos { filter: drop-shadow(0 0 8px rgba(255, 79, 216, .6)); }
#hubLeague .lg-tx { display: grid; gap: 3px; min-width: 0; } #hubLeague .lg-ttl { font: 400 1.15rem/1.1 var(--display); }
#hubLeague .lg-me { font-size: .82rem; color: var(--fg); font-weight: 500; } #hubLeague .lg-when { font-size: .72rem; color: var(--muted); font-weight: 400; }
#hubLeague .chaos-btn .lg-ttl { background: linear-gradient(90deg, #ff4fd8, #22e6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* ===== 2.2: season timer on the Leagues tile ===== */
.hub-live .hb-timer { position: absolute; top: 4px; right: 8px; z-index: 1; padding: 1px 7px; border-radius: 99px; background: rgba(10, 6, 30, .82); border: 1px solid rgba(255, 210, 63, .45);
  color: #ffd23f; font: 700 .6rem/1.5 var(--body); letter-spacing: .02em; white-space: nowrap; pointer-events: none; }
.hub-live .hb-timer.hot { border-color: #ff3d6e; color: #ff8aa8; animation: hbPulse 1.6s ease-in-out infinite; }
/* Chaos League clock: its own look — the Chaos mark, neon pink and cyan, dashed edge, a slight flicker */
.hub-live .hb-timer.hb-chaos { top: auto; bottom: 7px; display: inline-flex; align-items: center; gap: 4px; border: 1px dashed #ff4fd8; color: #9ff0ff;
  background: linear-gradient(90deg, rgba(255, 79, 216, .22), rgba(34, 230, 255, .18)), rgba(10, 6, 30, .88); text-shadow: -1px 0 rgba(255, 79, 216, .9), 1px 0 rgba(34, 230, 255, .9);
  box-shadow: 0 0 8px -2px #ff4fd8; animation: chaosFlick 3.2s steps(1) infinite; }
.hub-live .hb-timer.hb-chaos[hidden] { display: none; }
/* with both clocks the text keeps clear of them and the small league emblem steps aside */
#panePlay .mc-hubs .hub-live.two-clocks .hb-t { padding-right: 62px; } .hub-live.two-clocks .hb-x { display: none; } .hub-live .hb-timer.hb-chaos.hot { border-style: solid; color: #fff; }
.chaos-mark { flex: none; filter: drop-shadow(0 0 3px #ff4fd8); }
@keyframes chaosFlick { 0%, 91%, 100% { opacity: 1; transform: none; } 92% { opacity: .55; transform: translateX(1px); } 94% { opacity: 1; transform: translateX(-1px); } 96% { opacity: .8; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hub-live .hb-timer.hot, .hub-live .hb-timer.hb-chaos { animation: none; } }

/* ---- chronos-p13-chests ---- */
.ch-btns { grid-row: 1 / span 2; grid-column: 3; display: flex; gap: 6px; } .ch-btns .ch-multi { background: transparent; border: 1.5px solid var(--food); color: var(--food); }
.rv-multi { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; width: 100%; }
.rv-it { display: grid; justify-items: center; align-content: start; gap: 2px; padding: 5px 3px; border-radius: var(--r-md); background: rgba(0,0,0,.25); border: 1px solid var(--rc); min-width: 0; cursor: pointer; }
.rv-it:hover, .rv-it:focus-visible { box-shadow: 0 0 10px -2px var(--rc); }
.rv-it .sw { width: 34px; height: 34px; } .rv-it img.sw { width: 34px; height: 34px; } .rv-it .deco-pv { transform: scale(.7); max-width: 100%; overflow: hidden; }
.rv-it b { font-size: .64rem; line-height: 1.1; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .rv-it small { font-size: .56rem; color: var(--rc); }
.rv-look { margin-top: 2px; } .rv-pic { cursor: pointer; } .rv-pic:hover { filter: drop-shadow(0 0 8px var(--rc)); }
@media (max-width: 460px) { .rv-multi { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.chest-list .ci { position: relative; width: 32px; height: 26px; border-radius: 8px 8px 5px 5px; background: linear-gradient(90deg, transparent 6px, #ffd27a 6px 9px, transparent 9px calc(100% - 9px), #ffd27a calc(100% - 9px) calc(100% - 6px), transparent calc(100% - 6px)), linear-gradient(180deg, var(--cl1), var(--cb2)); }
.chest-list .ci::after { content: ""; position: absolute; left: 50%; top: 6px; width: 6px; height: 7px; margin-left: -3px; border-radius: 2px; background: var(--gold); }
.chest-list li.gift-row .ci::after { display: none; }
/* the gift box keeps its ribbon look on the drawn chest */
.chest.gift { background: linear-gradient(180deg, var(--cb1), var(--cb2)) !important; }
.chest.gift .lid { background: linear-gradient(180deg, rgba(255,255,255,.28), transparent 45%), linear-gradient(180deg, var(--cl1), var(--cl2)) !important; }
.chest.gift .lock::after { display: none; } .chest.gift .emb { display: none; }

/* ---- item-modal-fit-v1 ---- */
/* item window never wider than the screen (padding counted in), frames show on the avatar; Chaos ability picture */
#itemModal .modal-card{box-sizing:border-box}
@media (orientation: landscape) and (max-height: 600px){#itemModal .modal-card{width:min(880px,calc(100vw - 24px))!important;max-width:calc(100vw - 24px)!important}#itemModal .modal-x{right:8px}}
.im-frame{display:grid;justify-items:center;gap:18px}
.lrp-chaos-ability{width:112px;height:112px;border-radius:50%;display:grid;place-items:center;border:2px solid var(--lrp-color,#b26bff);
  background:radial-gradient(circle at 50% 45%,color-mix(in srgb,var(--lrp-color,#b26bff) 45%,transparent),rgba(8,4,24,.9) 70%);box-shadow:0 0 30px var(--lrp-color,#b26bff),inset 0 0 22px color-mix(in srgb,var(--lrp-color,#b26bff) 50%,transparent);animation:lrpAb 2.4s ease-in-out infinite}
.lrp-chaos-ability span{font-size:3.6rem;line-height:1;color:#fff;text-shadow:0 0 14px var(--lrp-color,#b26bff),0 0 30px var(--lrp-color,#b26bff)}
@keyframes lrpAb{50%{transform:scale(1.06);box-shadow:0 0 44px var(--lrp-color,#b26bff),inset 0 0 26px color-mix(in srgb,var(--lrp-color,#b26bff) 60%,transparent)}}
@media(prefers-reduced-motion:reduce){.lrp-chaos-ability{animation:none}}
/* ---- error report buttons (Settings) ---- */
.err-btns{display:flex;flex-wrap:wrap;gap:8px}.err-btns .btn{flex:1 1 auto;width:auto;margin:0}

/* ---- workshop exchange: the trade on top, «обменять все» under it; never squeezed ---- */
.ws-exp { grid-template-columns: 1fr !important; gap: 4px !important; align-content: start; }
.ws-exp > .btn { width: 100%; margin: 0; min-height: 44px; padding: 6px 8px; }
.ws-exp > .btn:disabled { opacity: .42; box-shadow: none; filter: grayscale(.4); }
.ws-exp .sh-ex { justify-content: center; white-space: nowrap; gap: 6px; font-weight: 700; }
.ws-exp .all { min-height: 30px !important; font-size: .72rem !important; padding: 4px 8px !important; color: var(--food); border-color: color-mix(in srgb, var(--food) 55%, transparent); }
/* ---- duo: room for two phones (connection test) ---- */
#duoCard { max-width: min(560px, 100%); }
.duo-body { display: grid; gap: 10px; margin: 6px 0 10px; }
.duo-code { font: 400 2.6rem/1 var(--display); letter-spacing: .22em; text-align: center; padding: 14px 8px 14px calc(8px + .22em); border-radius: var(--r-md); background: var(--row); border: 1.5px solid #22e6ff; color: #9ff3ff; user-select: all; }
.duo-join { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.duo-join input { font: 400 1.3rem var(--display); letter-spacing: .18em; text-transform: uppercase; text-align: center; padding: 10px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--row); color: var(--fg); min-width: 0; }
.duo-join .btn { margin: 0; width: auto; }
.duo-pad { width: 100%; height: min(44dvh, 260px); border-radius: var(--r-md); background: radial-gradient(circle at 50% 50%, #1c0f4a, #0a0624); border: 1px solid var(--line); touch-action: none; display: block; }
.duo-why { margin: 0; color: #ff8aa8; font-size: .86rem; }

/* ---- modes for two: a clear «вдвоём · локально» mark on the card, the menu tile and the room ---- */
#modes .mcard.duo { border-style: dashed; border-color: color-mix(in srgb, var(--mc2) 70%, transparent); }
.duo-mark { justify-self: start; width: fit-content; max-width: 100%; white-space: nowrap; margin-bottom: 2px; padding: 2px 8px; border-radius: 99px; font: 800 .56rem/1.6 var(--body); letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: linear-gradient(90deg, #22b8ff, #ff4fd8); box-shadow: 0 0 12px rgba(255, 79, 216, .5); }
#modeBtn.mt.duo { border-style: dashed; } #modeBtn.mt.duo .k { color: #ff9ae8; }
.duo-badge { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 10px; border-radius: 99px; font: 800 .6rem/1.7 var(--body); letter-spacing: .06em; text-transform: uppercase;
  color: #fff; background: linear-gradient(90deg, #22b8ff, #ff4fd8); }
.duo-wait { text-align: center; color: #ffd27a !important; }
.duo-stats { padding: 10px 12px; border-radius: 14px; background: rgba(34, 230, 255, .07); border: 1px solid rgba(34, 230, 255, .25); font-size: 13px; color: #cfc8f5; }
.duo-st-row { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.duo-st-row b { color: #fff; }
.duo-top { margin: 6px 0 0; padding-left: 20px; font-size: 12px; }
.duo-top b { color: #22e6ff; }
/* «Захват территории»: the sign in the middle of the screen when your drop crosses the border */
#terrSign { position: fixed; left: 50%; top: 62%; z-index: 40; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 22px; border-radius: 18px; background: rgba(12, 8, 32, .78); border: 2px solid var(--tc); box-shadow: 0 0 26px color-mix(in srgb, var(--tc) 55%, transparent);
  opacity: 0; transform: translate(-50%, -8px) scale(.92); transition: opacity .25s, transform .25s; }
#terrSign.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
#terrSign.mine { --tc: #22e6ff; } #terrSign.foe { --tc: #ff3d6e; }
#terrSign b { font: 400 22px/1.1 'Russo One', sans-serif; color: var(--tc); letter-spacing: .02em; }
#terrSign small { font-size: 12px; font-weight: 700; color: #e6e0ff; }
@media (prefers-reduced-motion: reduce) { #terrSign { transition: opacity .2s; transform: translate(-50%, 0); } }
/* «Спина к спине»: the choice of a boost (the round goes on) and the difficulty in the room */
#dbPick, #hcPick { position: fixed; left: 50%; top: 96px; transform: translateX(-50%); z-index: 41; width: min(520px, calc(100vw - 32px)); padding: 6px 10px 8px;
  border-radius: 18px; background: rgba(12, 8, 32, .9); border: 2px solid #3dffa2; box-shadow: 0 0 28px rgba(61, 255, 162, .35); text-align: center; }
#dbPick p, #hcPick p { margin: 0 0 5px; font: 400 14px 'Russo One', sans-serif; color: #3dffa2; }
.db-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.db-opts button { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 6px; text-align: left; padding: 5px 8px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06); color: #fff; font: inherit; cursor: pointer; min-height: 44px; }
.db-opts button .ic { font-size: 20px; line-height: 1; grid-row: span 2; }
.db-opts button b { font-size: 13px; }
.db-opts button small { font-size: 10.5px; color: #cfc8f5; line-height: 1.2; }
.db-opts button.both { border-color: #22e6ff; background: rgba(34, 230, 255, .1); }
.db-opts button:focus-visible { outline: 2px solid #3dffa2; outline-offset: 2px; }
.db-diff { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.db-df { padding: 8px 14px; min-height: 40px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #e6e0ff; font: 700 13px/1 inherit; cursor: pointer; }
.db-df.on { background: linear-gradient(90deg, #3dffa2, #22e6ff); color: #0b0820; border-color: transparent; }
#hcPick { border-color: #ff6a00; box-shadow: 0 0 28px rgba(255, 106, 0, .35); width: min(400px, calc(100vw - 32px)); }
#hcPick p { color: #ffb36b; }
.db-opts.two { grid-template-columns: repeat(2, 1fr); }
/* «Режим дня»: the mode that pays ×1,25 coins today */
.day-mark { display: inline-block; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; box-sizing: border-box; margin-bottom: 4px; padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: .03em;
  color: #1a0b00; background: linear-gradient(90deg, #ffd23f, #ff9a3d); box-shadow: 0 0 12px rgba(255, 154, 61, .45); }
/* 2.5 titles: rarity shows on the title itself — legendary ones softly glow, epic ones carry a light halo (no animation on low graphics) */
.ttl.tt-r-legendary:not(.tt-holo):not(.tt-gold) { animation: ttGlow 2.8s ease-in-out infinite; }
@keyframes ttGlow { 0%, 100% { text-shadow: 0 0 2px var(--a); } 50% { text-shadow: 0 0 6px var(--a); } }
.ttl.tt-r-epic { text-shadow: 0 0 4px color-mix(in srgb, var(--a) 45%, transparent); }
.q-low .ttl.tt-r-legendary { animation: none; text-shadow: 0 0 4px var(--a); }
@media (prefers-reduced-motion: reduce) { .ttl.tt-r-legendary { animation: none !important; } }
/* rating of the modes for two */
#rankModes .rm-duo { border-style: dashed; }
#rankModes .rm-coins { border-color: rgba(255, 210, 63, .45); color: #ffd98a; } #rankModes .rm-coins[aria-pressed="true"] { border-color: #ffd23f; }
.rank-list li.rk-diff { grid-column: 1 / -1; display: flex; gap: 6px; justify-content: center; background: none; padding: 2px 0 6px; }
.rank-list li.rk-diff button { padding: 6px 12px; min-height: 36px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #e6e0ff; font: 700 12px/1 inherit; cursor: pointer; }
.rank-list li.rk-diff button[aria-pressed="true"] { background: linear-gradient(90deg, #3dffa2, #22e6ff); color: #0b0820; border-color: transparent; }
.rank-list li.rk-empty { grid-column: 1 / -1; display: block; background: none; }
.rk-pair-who { min-width: 0; font-weight: 700; } .rk-pair-who i { color: #3dffa2; font-style: normal; margin: 0 2px; }
.rk-pair-who small { display: block; font-weight: 600; font-size: 11px; color: #b9b0e6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* «Как играть вдвоём» */
.duo-how { margin: 0; padding-left: 20px; display: grid; gap: 4px; text-align: left; font-size: 13px; line-height: 1.32; color: #d9d3ff; }
#tutModal .modal-card { max-height: calc(100dvh - 24px); overflow-y: auto; }   /* a long guide still fits a phone held sideways */
.duo-how b { color: #fff; }
.duo-how-rules { margin: 8px 0 0; padding: 8px 10px; border-radius: 12px; background: rgba(34, 230, 255, .08); border: 1px solid rgba(34, 230, 255, .25); font-size: 12px; line-height: 1.35; text-align: left; color: #cfc8f5; }
.duo-how-btn { justify-self: center; font-weight: 700; }
/* 2.6: a match for two waits while the link is silent */
#duoStall { position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 22px; border-radius: 18px; background: rgba(12, 8, 32, .9); border: 2px solid #ffd23f; box-shadow: 0 0 26px rgba(255, 210, 63, .35); pointer-events: none; text-align: center; }
#duoStall[hidden] { display: none; }
#duoStall b { font: 400 22px/1.1 'Russo One', sans-serif; color: #ffd23f; } #duoStall small { font-size: 13px; font-weight: 700; color: #e6e0ff; }
/* 2.6: the list in «Оформление профиля» stays still; the card above shows the picked item alive */
.pd-grid *, .pd-grid *::before, .pd-grid *::after { animation: none !important; transition: none !important; }
.pd-grid img[data-pbgt]:not([src]) { background: linear-gradient(110deg, rgba(255,255,255,.04) 30%, rgba(255,255,255,.1) 50%, rgba(255,255,255,.04) 70%); }
.pd-cell { position: relative; display: grid; }
.pd-eye { position: absolute; left: 6px; top: 6px; width: 32px; height: 32px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(10, 6, 30, .78); color: #fff; font-size: 15px; line-height: 1; cursor: pointer; display: grid; place-items: center; z-index: 1; }
.pd-eye:hover, .pd-eye:focus-visible { border-color: #22e6ff; box-shadow: 0 0 10px rgba(34, 230, 255, .5); outline: none; }
.pd-eye-card { width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; }
.pd-eye-card h2 { margin: 0 0 10px; text-align: center; }
.pd-eye-src { margin: 8px 0 0; text-align: center; font-size: 13px; color: #cfc8f5; }
.pd-eye-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }

/* 2.6: records «на проверке» */
.rank-list li .sc .rk-held { display: block; font-size: .7rem; font-weight: 600; color: #ffd23f; }
.rank-review { margin-top: -4px; } .rank-review.has { border-color: #ffd23f; color: #ffd23f; }
.review-card { max-width: 440px; } .review-note { margin: 0 0 10px; font-size: .8rem; color: var(--muted); }
.review-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 60vh; overflow: auto; }
.review-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; align-items: center; background: var(--row); border-radius: var(--r-sm); padding: 8px 10px; font-size: .86rem; }
.review-list li .rv-who small { display: block; color: var(--muted); font-size: .76rem; margin-top: 2px; }
.review-list li .btn { min-height: 36px; padding: 6px 10px; font-size: .78rem; }
.review-list li.review-empty { display: block; text-align: center; color: var(--muted); background: none; }
/* 2.6: guests are told where their progress lives */
.guest-warn { color: #ffd98a; font-size: .8rem; line-height: 1.4; }
#acctGuest .guest-warn { background: rgba(255, 210, 63, .08); border: 1px solid rgba(255, 210, 63, .3); border-radius: var(--r-sm); padding: 8px 10px; text-align: left; }
