/* Kitty Clicker — бумажные панели поверх PS1-комнаты, карты KOL в духе Balatro */
:root {
  --ink: #3b2620;
  --ink2: #6e5040;
  --ink3: #9a7c66;
  --paper: #f3e6cc;
  --paper2: #e9d7b6;
  --paper3: #dcc59e;
  --edge: #2a1a20;
  --frame: #241820;
  --pink: #f39bb0;
  --pink2: #e46f8e;
  --pink3: #8f2f4d;
  --coral: #e8656b;
  --coral2: #a8394a;
  --chips: #2f8ee0;
  --mult: #e5534b;
  --gold: #f2c14e;
  --green: #45a872;
  --purple: #a35fd6;
  --shadow: 0 4px 0 rgba(20, 10, 16, .45);
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35 0 0 0 0 .24 0 0 0 0 .16 0 0 0 .16 0'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
  --left-w: 252px;
  --panel-w: 360px; /* владелец, 31.10: ширина магазина как на его экране (раньше 380 включалось только на узких окнах) */
  font-family: 'Tiny5', 'Trebuchet MS', sans-serif;
  font-synthesis: none;
  color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--frame); user-select: none; -webkit-user-select: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
img.px, .px img, canvas#scene { image-rendering: pixelated; }
b { font-weight: 700; }

#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; cursor: pointer; }
#scene.idle { cursor: default; }
#scene { touch-action: none; }
/* мини-игра «зелёная свеча»: дрель вместо курсора и подсказка над свечой */
body.drilling #scene { cursor: none; }
#drill { position: fixed; left: 0; top: 0; z-index: 56; pointer-events: none; }
#drill img { position: absolute; width: 68px; height: 68px; left: -47px; top: -64px; rotate: 90deg; image-rendering: pixelated;
  filter: drop-shadow(0 3px 0 rgba(20, 8, 16, .55)); transition: scale .08s; }
#drill.on img { animation: drillbuzz .05s linear infinite; scale: 1.08; }
@keyframes drillbuzz { 0% { translate: 0 0; } 25% { translate: 1.5px -1px; } 50% { translate: -1px 1.5px; } 75% { translate: 1px 1px; } 100% { translate: 0 0; } }
#drillhint { position: fixed; left: 0; top: 0; z-index: 56; pointer-events: none; }
#drillhint { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; translate: -50% calc(-100% - 6px); white-space: nowrap;
  background: #2fa85a; border: 3px solid #17131d; border-radius: 8px; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .5px;
  box-shadow: 0 4px 0 rgba(10, 4, 8, .5); }
#drillhint img { width: 26px; height: 26px; image-rendering: pixelated; rotate: 90deg; }
#drillhint::after { content: ''; position: absolute; left: 50%; bottom: -10px; translate: -50% 0; border: 7px solid transparent; border-top-color: #17131d; }
#drillhint:not([hidden]) { animation: hintbob .9s ease-in-out infinite; }
@keyframes hintbob { 50% { margin-top: -6px; } }
#squad { transition: opacity .25s; }
@media (max-width: 900px) { body.candle-live #squad { opacity: .2; pointer-events: none; } }
#crt { position: fixed; inset: 0; pointer-events: none; z-index: 90;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.09) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
body.nocrt #crt { display: none; }

.paper {
  background: var(--paper) var(--noise);
  border: 3px solid var(--edge);
  border-radius: 7px;
  box-shadow: inset 0 0 0 2px #fff7e4, inset 0 -3px 0 2px var(--paper3), var(--shadow);
}
.tape { position: absolute; width: 54px; height: 18px; background: rgba(238, 222, 184, .82);
  border-left: 2px dashed rgba(160, 130, 90, .35); border-right: 2px dashed rgba(160, 130, 90, .35); z-index: 3; }

#hud { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
#hud > * { pointer-events: auto; }

/* ---------- левая колонка ---------- */
#left { position: absolute; left: 16px; top: 12px; bottom: 16px; width: var(--left-w); display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
#left > * { pointer-events: auto; }
#logo { margin: 0; line-height: .86; font-weight: 700; font-size: 58px; letter-spacing: 1px; position: relative; cursor: pointer;
  transform: rotate(-4deg); transform-origin: left center; transition: transform .15s; }
#logo span { display: block; color: var(--pink); -webkit-text-stroke: 7px #4a1a2c; paint-order: stroke fill;
  text-shadow: 0 6px 0 #2a0e18; }
#logo .l2 { color: #f7b3c3; margin-left: 4px; }
#logo .paw { position: absolute; right: 18px; top: 4px; width: 40px; transform: rotate(18deg); }
#logo:active { transform: rotate(-4deg) scale(.96); }
#logo.bump { animation: bump .35s; }
@keyframes bump { 30% { transform: rotate(-1deg) scale(1.06); } }

#menu { display: flex; gap: 8px; margin-top: 4px; }
.mbtn { position: relative; display: grid; place-items: center; width: 52px; height: 52px; padding: 0;
  background: var(--paper2) var(--noise); border: 3px solid var(--edge); border-radius: 6px; box-shadow: inset 0 0 0 2px #fbf0d8, 0 3px 0 rgba(20,10,16,.5);
  font-size: 17px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; transition: transform .08s, background .15s; }
.mbtn img { width: 34px; height: 34px; image-rendering: pixelated; }
.mbtn:hover { transform: translateY(-3px); background-color: #f6ead2; }
.mbtn:active { transform: translateY(1px); }
/* кнопка сброса прогресса (на время разработки) */
.mbtn.reset span { font-size: 30px; font-weight: 700; line-height: 1; color: var(--mult); }
.mbtn.reset.armed { background-color: var(--mult); animation: shk .3s; }
.mbtn.reset.armed span { color: #fff; }
.mbtn.on { background-color: var(--pink); box-shadow: inset 0 0 0 2px #ffd3dd, 0 3px 0 rgba(20,10,16,.5); color: #4a1a2c; }
.badge { position: absolute; right: -10px; top: -9px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--mult);
  border: 2px solid var(--edge); color: #fff; font-size: 14px; line-height: 20px; text-align: center; animation: wob 1s infinite; }
@keyframes wob { 50% { transform: scale(1.15) rotate(6deg); } }

/* PAW × MULT — по центру под счётчиком, той же ширины (ui.js layout); под мышкой раскрывается вниз (стаки и цифры).
   z-index выше счётчика: огонь бафов (fire.js) рисуется в #stats и поднимается на счётчик до строки per second */
#stats { position: absolute; top: 120px; z-index: 3; transform: translateX(-50%); padding: 8px 12px; font-size: 15px; box-sizing: border-box; }
#stats .pm { position: relative; z-index: 1; }
#stats .fire { position: absolute; z-index: 0; pointer-events: none; image-rendering: pixelated; }
/* пока горит баф — коробки светятся и подрагивают, как счёт в Balatro */
#stats.onfire .chips { animation: fireC .5s ease-in-out infinite alternate; }
#stats.onfire .mult { animation: fireM .5s ease-in-out infinite alternate; animation-delay: -.25s; }
#stats.onfire .pm .box { text-shadow: 0 2px 0 rgba(0,0,0,.35), 0 0 8px rgba(255,255,255,.75); }
@keyframes fireC { from { transform: rotate(-1.5deg) scale(1.02); box-shadow: inset 0 -4px 0 #5e3a96, 0 0 10px 2px rgba(190,140,255,.7); }
  to { transform: rotate(1.5deg) scale(1.05); box-shadow: inset 0 -4px 0 #5e3a96, 0 0 16px 5px rgba(190,140,255,.9); } }
@keyframes fireM { from { transform: rotate(1.5deg) scale(1.02); box-shadow: inset 0 -4px 0 #8f2f4d, 0 0 10px 2px rgba(255,130,170,.7); }
  to { transform: rotate(-1.5deg) scale(1.05); box-shadow: inset 0 -4px 0 #8f2f4d, 0 0 16px 5px rgba(255,140,180,.9); } }
#stats .more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s cubic-bezier(.3, 1.3, .5, 1); }
#stats .more > .in { min-height: 0; overflow: hidden; opacity: 0; transition: opacity .15s; }
#stats:hover .more { grid-template-rows: 1fr; }
#stats:hover .more > .in { opacity: 1; }
#stats .more #stackname { margin-top: 8px; }
.pm { display: flex; align-items: stretch; gap: 6px; }
.pm .box { flex: 1; border-radius: 6px; border: 3px solid var(--edge); color: #fff; font-size: 22px; font-weight: 700; text-align: center;
  padding: 3px 4px 1px; text-shadow: 0 2px 0 rgba(0,0,0,.35); position: relative; overflow: hidden; white-space: nowrap; }
.pm .box small { display: block; font-size: 11px; letter-spacing: 1px; opacity: .85; font-weight: 600; margin-top: -2px; }
/* PAW × MULT в палитре игры (владелец, 31.10): PAW — фиолетовый, MULT — розовый, с бликом сверху как у кнопок */
.pm .chips { background: #9a6ad8; box-shadow: inset 0 -4px 0 #5e3a96, inset 0 2px 0 #c9a8f2; text-shadow: 0 2px 0 #4a2a78; }
.pm .mult { background: var(--pink2); box-shadow: inset 0 -4px 0 var(--pink3), inset 0 2px 0 #ffc4d4; text-shadow: 0 2px 0 #6e2240; }
.pm .xx { align-self: center; font-size: 26px; font-weight: 700; color: var(--pink2); }
.pm .box.hit { animation: boxhit .25s; }
@keyframes boxhit { 40% { transform: scale(1.12) rotate(-3deg); } }
#stackname { text-align: center; font-weight: 700; font-size: 14px; letter-spacing: 1px; color: var(--pink3); min-height: 18px; margin: -2px 0 6px; }
.srow { display: flex; align-items: center; gap: 8px; padding: 2px 0; color: var(--ink2); }
.srow img { width: 20px; height: 20px; image-rendering: pixelated; }
.srow b { margin-left: auto; color: var(--ink); }

#note { position: relative; width: 160px; padding: 16px 12px 12px; background: #f6efc2 var(--noise); border: 2px solid #c9b878; box-shadow: var(--shadow);
  transform: rotate(-3deg); font-size: 14px; line-height: 1.25; color: #5a4a2a; min-height: 74px; }
#note .tape { left: 52px; top: -10px; transform: rotate(4deg); }
#note.swap { animation: noteswap .5s; }
@keyframes noteswap { 0% { opacity: 0; transform: rotate(-3deg) translateY(6px); } }

/* ---------- счётчик ---------- */
#counter { position: absolute; top: 12px; z-index: 2; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 12px; min-width: 280px; box-sizing: border-box; }
#counter .tape { right: -18px; top: -6px; transform: rotate(28deg); }
#counter img { width: 46px; height: 46px; image-rendering: pixelated; }
#counter .lbl { font-size: 14px; font-weight: 600; color: var(--ink2); }
#counter .num { font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: .5px; white-space: nowrap; }
#counter .num.tick { animation: numtick .18s; }
@keyframes numtick { 50% { transform: scale(1.04); } }
#counter .ps { font-size: 14px; color: var(--ink2); }
#counter .ps b { color: var(--green); }
#packbar { margin-top: 5px; height: 8px; border-radius: 4px; background: var(--paper3); border: 2px solid var(--edge); position: relative; overflow: hidden; }
#packbar i { position: absolute; inset: 0 auto 0 0; background: var(--pink2); width: 0; transition: width .3s; }
#packlbl { font-size: 11px; color: var(--ink3); margin-top: 2px; }

#buffs { position: absolute; top: 200px; z-index: 2; transform: translateX(-50%); display: flex; gap: 8px; justify-content: center; }
.buff { display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; border: 3px solid var(--edge); color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: var(--shadow); position: relative; overflow: hidden; animation: pop .3s; }
.buff i { position: absolute; left: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.7); }
.buff.frenzy { background: #d9932a; } .buff.click { background: var(--mult); } .buff.pump { background: var(--green); }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.12); } }

/* ---------- отряд KOL (джокеры) ---------- */
#squad { position: absolute; bottom: 14px; transform: translateX(-50%); transform-origin: center bottom; display: flex; flex-direction: column; align-items: center; gap: 4px; }
#squad .row { display: flex; gap: 10px; padding: 10px 14px 8px; background: rgba(36, 22, 32, .55); border: 3px solid rgba(20, 10, 16, .7); border-radius: 10px; }
#squad .cap { font-size: 14px; font-weight: 700; color: #f6dfe6; text-shadow: 0 2px 0 #000; letter-spacing: 1px; }
#squad .cap b { color: var(--pink); }
.slot { width: 82px; height: 110px; border: 3px dashed rgba(246, 223, 230, .25); border-radius: 8px; }
/* крестик «убрать из отряда» на картах внизу */
#squad .kcard .kx { position: absolute; left: -9px; top: -9px; z-index: 3; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  background: var(--mult); border: 2px solid var(--edge); color: #fff; font-size: 17px; font-weight: 700; line-height: 1;
  opacity: 0; transform: scale(.4); transition: opacity .1s, transform .15s cubic-bezier(.3, 1.8, .5, 1); }
#squad .kcard:hover .kx { opacity: 1; transform: none; }
#squad .kcard { cursor: pointer; }
#squad .kcard.out { animation: kout .18s ease-in forwards; pointer-events: none; }
@keyframes kout { 30% { transform: translateY(-14px) scale(1.06) rotate(-4deg); } 100% { transform: translateY(40px) scale(.6) rotate(8deg); opacity: 0; } }
@media (hover: none) { #squad .kcard .kx { opacity: 1; transform: none; width: 18px; height: 18px; font-size: 14px; } }

.kcard { --rc: var(--chips); position: relative; width: 82px; height: 110px; border-radius: 8px; background: #fbf4e6; border: 3px solid var(--edge);
  box-shadow: 0 5px 0 rgba(10, 4, 8, .55); transform-style: preserve-3d; cursor: pointer; flex: none;
  transition: transform .12s ease-out, box-shadow .12s; animation: float 3.2s ease-in-out infinite; }
.kcard .art { position: absolute; left: 4px; right: 4px; top: 4px; bottom: 18px; border-radius: 4px; overflow: hidden; background: #ddd; border: 2px solid var(--edge); }
.kcard .art img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; display: block; }
.live3d { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.kcard .nm { position: absolute; left: 0; right: 0; bottom: 1px; text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .5px; color: var(--ink); white-space: nowrap; overflow: hidden; }
.kcard .rar { position: absolute; left: 4px; right: 4px; bottom: 15px; height: 3px; background: var(--rc); }
.kcard .lv { position: absolute; right: -8px; top: -8px; background: var(--gold); border: 2px solid var(--edge); border-radius: 5px; font-size: 11px; font-weight: 700; padding: 0 4px; z-index: 2; }
.kcard .shine { position: absolute; inset: 0; border-radius: 6px; pointer-events: none;
  background: radial-gradient(circle at var(--sx, 50%) var(--sy, 30%), rgba(255,255,255,.45), transparent 55%); opacity: 0; transition: opacity .15s; }
.kcard:hover .shine { opacity: 1; }
/* легендарная карта: радужная голо-фольга на ФОНЕ карты (полосы цвета бегут наискось; модель поверх не перекрашивается)
   + лёгкий белый блик поверх всего. Слой color одинаково заметен и на светлом фоне (TOLY), и на тёмном (GAKE) */
.kcard.legendary .art > canvas, .kcard.legendary .art > img, .kcard.legendary .art > .kname { position: relative; z-index: 1; }
.kcard.legendary .art::after { content: ''; position: absolute; inset: -60%; z-index: 0; pointer-events: none; mix-blend-mode: color; opacity: .75;
  transform: rotate(25deg); animation: holoband 3s linear infinite;
  background: linear-gradient(90deg, #ff4fd2 0, #ffd84f 48px, #4fffb0 96px, #4fc8ff 144px, #b04fff 192px, #ff4fd2 240px) 0 0 / 240px 100% repeat-x; }
.kcard.legendary .art::before { content: ''; position: absolute; inset: -60%; z-index: 2; pointer-events: none; mix-blend-mode: screen; opacity: .7;
  transform: rotate(25deg); animation: hologlare 2.6s linear infinite;
  background: linear-gradient(90deg, transparent 0, transparent 150px, rgba(255, 255, 255, .55) 180px, rgba(255, 255, 255, .15) 192px, transparent 215px, transparent 420px) 0 0 / 420px 100% repeat-x; }
/* бесшовно: плитка ровно в один период (background-size) и сдвиг ровно на один период — иначе на стыке плиток резкий шов */
@keyframes holoband { to { background-position-x: 240px; } }
@keyframes hologlare { to { background-position-x: 420px; } }
@keyframes holo { to { background-position: -250% 0; } }
@keyframes float { 50% { translate: 0 -4px; rotate: .6deg; } }
.kcard:nth-child(2n) { animation-delay: -1.1s; } .kcard:nth-child(3n) { animation-delay: -2s; }
.kcard.dim { filter: saturate(.3) brightness(.8); }
/* карта без арта: крупное имя на цветном фоне */
.kcard .art.txt { container-type: size; display: grid; place-items: center;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.09) 0 4px, transparent 4px 9px) !important; }
.kcard .kname { font-weight: 700; color: #fff; text-align: center; line-height: 1; letter-spacing: .5px;
  font-size: min(34cqh, calc(108cqw / var(--n))); -webkit-text-stroke: max(2px, 4cqw) #2a1018; paint-order: stroke fill;
  text-shadow: 0 max(2px, 4cqw) 0 #2a1018; rotate: -6deg; }
.kcard .nm.long { font-size: 9px; letter-spacing: 0; }
.kmini { display: inline-grid; place-items: center; width: 100%; height: 100%; color: #fff; font-weight: 700; font-size: 13px;
  -webkit-text-stroke: 3px #2a1018; paint-order: stroke fill; }
.stagecard { position: absolute; inset: 0; display: grid; place-items: center; animation: stagepop .55s cubic-bezier(.3, 1.6, .5, 1) both; }
.stagecard .kcard.big { width: 190px; height: 254px; }
.stagecard .kcard.big .nm { font-size: 20px; }
@keyframes stagepop { from { transform: scale(.2) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
.buff.green { background: #2fa85a; }
.kcard.big { width: 150px; height: 200px; border-width: 4px; animation: none; }
.kcard.big .nm { font-size: 16px; bottom: 4px; } .kcard.big .art { bottom: 28px; left: 7px; right: 7px; top: 7px; } .kcard.big .rar { bottom: 24px; left: 7px; right: 7px; height: 4px; }
.kcard.stackglow { box-shadow: 0 0 0 3px var(--gold), 0 0 18px 4px rgba(242, 193, 78, .6), 0 5px 0 rgba(10,4,8,.55); }

/* подсказка в духе Balatro */
#tip { position: fixed; z-index: 120; pointer-events: none; min-width: 190px; max-width: 260px; background: #3a3346; border: 3px solid #17131d; border-radius: 9px;
  padding: 8px; color: #fff; box-shadow: 0 6px 0 rgba(0,0,0,.4); opacity: 0; transform: translateY(6px); transition: opacity .1s, transform .1s; }
#tip.on { opacity: 1; transform: none; }
#tip h4 { margin: 0 0 6px; font-size: 20px; text-align: center; letter-spacing: 1px; }
#tip .eff { background: #fbf6ee; color: #3a3346; border-radius: 6px; padding: 7px 8px; font-size: 15px; line-height: 1.3; text-align: center; }
#tip .fl { font-size: 12px; color: #c9bfd6; text-align: center; margin-top: 6px; font-style: italic; }
#tip .pill { display: block; width: max-content; margin: 7px auto 0; padding: 1px 12px; border-radius: 5px; font-size: 13px; font-weight: 700; color: #fff; }
#tip .cost { text-align: center; margin-top: 6px; color: var(--gold); font-weight: 700; }
.mult { color: var(--mult); } .chips { color: var(--chips); }
b.x { background: var(--mult); color: #fff; padding: 0 5px; border-radius: 4px; white-space: nowrap; }

/* ---------- правая панель ---------- */
#panel { position: absolute; right: 16px; top: 14px; bottom: 16px; width: var(--panel-w); display: flex; flex-direction: column; padding: 0; background: var(--frame); border: 0; box-shadow: none;
  z-index: 20; transform: translateX(calc(100% + 24px)); transition: transform .32s cubic-bezier(.3, 1.25, .5, 1); filter: drop-shadow(-8px 0 18px rgba(10, 4, 8, .45)); }
/* магазин свёрнут за правый край; навёл на язычок — выезжает (ui.js panelOpen), уезжает, когда мышь ушла левее панели */
#panel.open { transform: none; }
#panelTab { position: absolute; right: 0; top: 50%; translate: 0 -50%; z-index: 19; width: 40px; height: 150px; padding: 0;
  border: 3px solid var(--edge); border-right: 0; border-radius: 10px 0 0 10px; background: var(--paper) var(--noise); box-shadow: inset 2px 0 0 #fff7e4, -4px 4px 0 rgba(10, 4, 8, .35);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer; color: #4a3226; transition: width .15s, opacity .2s; }
#panelTab:hover { width: 48px; }
#panelTab .ar { font-size: 18px; line-height: 1; animation: tabnudge 1.4s ease-in-out infinite; }
@keyframes tabnudge { 50% { transform: translateX(-4px); } }
#panelTab .lb { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 700; font-size: 14px; letter-spacing: 2px; }
#panelTab .badge { right: auto; left: -12px; top: -10px; }
body.shop-open #panelTab { opacity: 0; pointer-events: none; }
/* замок в правом нижнем углу магазина: закрепить панель открытой */
#panelLock { position: absolute; right: -10px; bottom: -12px; z-index: 5; width: 44px; height: 44px; padding: 0; display: grid; place-items: center;
  border: 3px solid var(--edge); border-radius: 7px; background: var(--paper2) var(--noise); box-shadow: 0 3px 0 rgba(10, 4, 8, .45); cursor: pointer;
  transition: transform .1s, background-color .15s; }
#panelLock img { width: 28px; height: 28px; image-rendering: pixelated; opacity: .7; transition: opacity .15s; }
/* подсказка один раз за игру: выезжает из замка вверх, тёмная (на светлом магазине видна), стрелка вниз на замок */
#lockhint { position: absolute; right: -8px; bottom: 44px; z-index: 6; width: 220px; padding: 10px 13px; border: 3px solid var(--gold); border-radius: 10px;
  background: #2a1f3a; color: #fff7e2; font-size: 14px; font-weight: 700; line-height: 1.3; box-shadow: 0 4px 0 rgba(10, 4, 8, .5), 0 0 18px rgba(255, 214, 90, .45);
  transform-origin: 90% 100%; opacity: 0; transform: translateY(18px) scale(.3); pointer-events: none;
  transition: opacity .35s ease-out, transform .45s cubic-bezier(.2, 1.5, .4, 1); }
#lockhint.on { opacity: 1; transform: none; animation: hintnudge 1.4s ease-in-out .6s infinite; }
#lockhint::after { content: ''; position: absolute; right: 16px; bottom: -15px; border: 8px solid transparent; border-top: 10px solid var(--gold); }
#lockhint::before { content: ''; position: absolute; right: 19px; bottom: -8px; z-index: 1; border: 5px solid transparent; border-top: 7px solid #2a1f3a; }
@keyframes hintnudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
#panelLock:hover { transform: translateY(-2px); } #panelLock:hover img { opacity: .9; }
#panelLock.on { background-color: var(--gold); box-shadow: 0 0 0 2px #fff3c9, 0 3px 0 rgba(10, 4, 8, .45); }
#panelLock.on img { opacity: 1; }
.tabs { display: flex; gap: 4px; padding: 0 8px; position: relative; z-index: 4; } /* выше .funrow (z 3): кружок-счётчик и BUY у пака — поверх кнопки AUCTION */
.tab { flex: 1; height: 44px; margin-top: 4px; border: 3px solid var(--edge); border-bottom: 0; border-radius: 8px 8px 0 0; background: #b89a7a var(--noise);
  font-weight: 700; font-size: 15px; letter-spacing: .5px; text-transform: uppercase; color: #4a3226; display: flex; align-items: center; justify-content: center; gap: 6px; position: relative; }
.tab img { width: 22px; height: 22px; image-rendering: pixelated; }
.tab.on { background-color: var(--paper); margin-top: 0; height: 48px; box-shadow: inset 0 2px 0 #fff7e4; }
.tab .badge { right: -4px; top: -10px; }
/* бесплатный пак ждёт — иконка пака парит справа от CARDS (владелец, 02.11) */
.tab .tabpack { display: inline-flex; vertical-align: middle; line-height: 0; margin: 0 0 0 4px; animation: packHover 2.2s ease-in-out infinite; transform-origin: 50% 50%; pointer-events: none; position: relative; }
.tab .tabpack > b { display: none; position: absolute; left: 50%; bottom: 2px; translate: -50% 0; font: 700 10px/1 'Tiny5', monospace; letter-spacing: .5px; color: #fff3a8;
  text-shadow: 1px 0 #4a1a2c, -1px 0 #4a1a2c, 0 1px #4a1a2c, 0 -1px #4a1a2c; }
.tab .tabpack.free > b { display: block; }
/* BUY BUY BUY вокруг пака — как APE вокруг монеты BEANZ */
.tab .tpbuys { display: none; position: absolute; left: 50%; top: 50%; }
.tab .tabpack.buy .tpbuys { display: block; }
.tab .tpbuys i { position: absolute; left: 0; top: 0; font-style: normal; translate: -50% -50%;
  transform: rotate(var(--a)) translateY(-27px) rotate(calc(-1 * var(--a)));
  font-size: 10px; font-weight: 700; letter-spacing: .5px; color: #ffe27a; -webkit-text-stroke: 2.5px #3a1a40; paint-order: stroke fill;
  text-shadow: 0 0 6px #ff6fae, 0 0 10px #ff6fae; animation: apeblink 1.6s ease-in-out infinite; animation-delay: var(--d); opacity: 0; }
.tab .tabpack[hidden] { display: none; }
.tab .tabpack img { width: 34px; height: 34px; filter: drop-shadow(0 3px 2px rgba(60, 30, 10, .35)); }
/* паки у CARDS (значок у вкладки и паки в списке) левитируют ровно вверх-вниз, плавно, без наклона и без сдвига вбок (владелец, 03.11, по гифке) */
@keyframes packHover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.page { flex: 1; min-height: 0; margin-top: -3px; display: flex; flex-direction: column; }
.page > .paper { flex: 1; min-height: 0; display: flex; flex-direction: column; border-radius: 0 0 8px 8px; }
.ph { display: flex; align-items: center; gap: 8px; padding: 12px 16px 6px; font-size: 22px; font-weight: 700; }
.ph img { width: 30px; height: 30px; image-rendering: pixelated; }
.ph .sub { margin-left: auto; font-size: 14px; font-weight: 500; color: var(--ink2); }
.list { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 12px 12px; display: flex; flex-direction: column; gap: 8px; }
.list::-webkit-scrollbar { width: 10px; } .list::-webkit-scrollbar-thumb { background: var(--paper3); border: 2px solid var(--edge); border-radius: 5px; }
.pfoot { display: flex; gap: 6px; align-items: center; padding: 8px 14px 12px; border-top: 2px dashed var(--paper3); font-weight: 600; color: var(--ink2); }
.seg { display: flex; margin-left: auto; border: 3px solid var(--edge); border-radius: 6px; overflow: hidden; }
.seg button { padding: 3px 12px; font-weight: 700; background: var(--paper2); border-right: 2px solid var(--edge); }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--pink); color: #4a1a2c; }

.item { position: relative; display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: center; padding: 7px 10px 7px 7px;
  background: #fbf3e2; border: 2px solid #cdb38e; border-radius: 6px; box-shadow: 0 2px 0 rgba(120, 90, 60, .25); transition: transform .08s; }
.item:hover { transform: translateX(-3px); border-color: var(--ink3); }
.item .ic { width: 58px; height: 58px; border-radius: 5px; background: var(--paper2); border: 2px solid #cdb38e; display: grid; place-items: center; position: relative; }
.item .ic img { width: 50px; height: 50px; image-rendering: pixelated; }
.item .ic .tier { position: absolute; left: -4px; bottom: -4px; width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--edge); }
.item .t { font-size: 18px; font-weight: 700; line-height: 1.05; }
.item .d { font-size: 13px; color: var(--ink2); line-height: 1.2; margin-top: 2px; }
.item .g { font-size: 13px; color: var(--green); font-weight: 600; margin-top: 2px; }
.item .g .now { color: #8a6a4a; }
.item .g.long { font-size: 11.5px; white-space: nowrap; letter-spacing: -.2px; } /* длинная строка «… | … now» — в одну строку */
.item .own { position: absolute; right: 120px; top: 50%; transform: translateY(-50%); font-size: 36px; font-weight: 700; color: rgba(120, 90, 60, .18); pointer-events: none; }
.item.locked .ic img { filter: brightness(0) opacity(.35); }
.item.locked .t { color: var(--ink3); }
.item.done { opacity: .55; }
.price { min-width: 104px; height: 40px; padding: 0 10px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 7px;
  background: var(--coral); border: 3px solid var(--edge); box-shadow: inset 0 -4px 0 var(--coral2), inset 0 2px 0 #ffb0b0; color: #fff6ea;
  font-weight: 700; font-size: 16px; text-shadow: 0 2px 0 rgba(90, 20, 30, .5); white-space: nowrap; transition: transform .08s, filter .1s; }
.price img { width: 20px; height: 20px; image-rendering: pixelated; }
.price:hover { filter: brightness(1.08); transform: translateY(-1px); }
.price:active { transform: translateY(2px); box-shadow: inset 0 -1px 0 var(--coral2); }
.price.no { background: #c7b0a2; box-shadow: inset 0 -4px 0 #9a8274; color: #f2e6dc; cursor: not-allowed; }
.price.green { background: var(--green); box-shadow: inset 0 -4px 0 #2a7a50, inset 0 2px 0 #9ef0c0; }
.price.owned { background: var(--paper3); box-shadow: none; color: var(--ink2); text-shadow: none; cursor: default; }
.shake { animation: shk .3s; }
@keyframes shk { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.empty { text-align: center; color: var(--ink3); padding: 26px 10px; font-size: 15px; line-height: 1.4; }
.sec { font-size: 14px; font-weight: 700; letter-spacing: 1px; color: var(--ink2); text-transform: uppercase; margin: 6px 2px -2px; display: flex; gap: 8px; align-items: center; }
.sec::after { content: ''; flex: 1; height: 2px; background: var(--paper3); }

/* апгрейды плиткой */
.ugrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.utile { aspect-ratio: 1; border-radius: 6px; background: #fbf3e2; border: 3px solid #cdb38e; display: grid; place-items: center; position: relative; transition: transform .08s; }
.utile img { width: 80%; height: 80%; image-rendering: pixelated; }
.utile .tier { position: absolute; right: 3px; bottom: 3px; width: 12px; height: 12px; border-radius: 3px; border: 2px solid var(--edge); }
.utile.can { border-color: var(--coral); box-shadow: 0 0 0 2px #ffc4c4; animation: canpulse 1.4s infinite; }
@keyframes canpulse { 50% { box-shadow: 0 0 0 4px #ffd8d8; } }
.utile:hover { transform: translateY(-3px); }
.utile.bought { opacity: .9; border-color: var(--ink3); background: var(--paper2); }

/* строка апгрейдов над котами (как в Cookie Clicker): один ряд, под мышкой или по стрелке раскрывается */
.units { display: flex; flex-direction: column; gap: 8px; }
.page[data-page="shop"] .list { padding-top: 12px; }
#upBox { position: relative; flex: none; background: var(--paper2); border: 2px solid #cdb38e; border-radius: 6px; padding: 2px; }
#upBox .ugrid { grid-template-columns: repeat(auto-fill, 52px); grid-auto-rows: 52px; justify-content: space-evenly; gap: 6px;
  padding: 5px; max-height: 62px; overflow: hidden; transition: max-height .2s; }
#upBox .utile:hover { transform: translateY(-2px); }
#upBox .umore { display: none; position: absolute; left: 50%; bottom: -11px; translate: -50% 0; z-index: 1; width: 34px; height: 18px;
  border: 2px solid var(--edge); border-radius: 5px; background: var(--paper); font-size: 11px; line-height: 1; color: var(--ink2); }
#upBox.more .umore { display: block; }
#upBox.more { margin-bottom: 8px; }
#upBox .uplbl { padding: 3px 7px 0; font-size: 13px; font-weight: 700; color: var(--ink2); letter-spacing: .5px; }
/* мышь: раскрывается от наведения, стрелка не нужна; телефон: стрелка */
@media (hover: hover) { #upBox:hover .ugrid { max-height: 600px; } #upBox .umore { display: none !important; } #upBox.more { margin-bottom: 0; } }
#upBox.open .ugrid { max-height: 600px; }
#upBox.open .umore { rotate: 180deg; }

/* KOL-коллекция */
.kgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px; justify-items: center; padding-top: 6px; }
.kgrid .kcard { animation: none; }
.kcard.back, .kgrid .lockc { background: #e46f8e; }
.lockc { width: 82px; height: 110px; border-radius: 8px; border: 3px solid var(--edge); background: #c9b6a0 var(--noise); display: grid; place-items: center; box-shadow: 0 4px 0 rgba(10,4,8,.35); }
.lockc img { width: 38px; image-rendering: pixelated; opacity: .7; }
.kslot { font-size: 11px; font-weight: 700; text-align: center; margin-top: 4px; color: var(--ink2); }
.kcell { display: flex; flex-direction: column; align-items: center; }
.kcell.eq .kslot { color: var(--green); }
.stk { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: #fbf3e2; border: 2px solid #cdb38e; border-radius: 6px; font-size: 14px; }
.stk .nm { font-weight: 700; font-size: 15px; min-width: 120px; }
.stk.on { border-color: var(--gold); background: #fff3c9; box-shadow: 0 0 0 2px rgba(242, 193, 78, .5); }
.stk.unk { color: var(--ink3); }
.stk .mem { margin-left: auto; display: flex; gap: 3px; }
.stk .mem img { width: 26px; height: 34px; object-fit: cover; image-rendering: pixelated; border: 2px solid var(--edge); border-radius: 3px; }
.stk .mem span { width: 26px; height: 34px; border: 2px dashed var(--ink3); border-radius: 3px; display: grid; place-items: center; font-size: 13px; }
.packbtn { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 3px solid var(--edge); border-radius: 8px; background: #fff0f3 var(--noise); position: relative; }
.packbtn > img { width: 54px; height: 54px; image-rendering: pixelated; animation: packHover 2.2s ease-in-out infinite; }
.packbtn .t { font-size: 18px; font-weight: 700; } .packbtn .d { font-size: 13px; color: var(--ink2); }
.packbtn .price { margin-left: auto; }
.packbtn.free { background-color: #fff3c9; box-shadow: 0 0 0 3px var(--gold); }

/* ---------- эффекты ---------- */
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.fnum { position: absolute; font-weight: 700; font-size: 30px; color: var(--pink); -webkit-text-stroke: 6px #4a1a2c; paint-order: stroke fill; white-space: nowrap;
  animation: fnum 1s ease-out forwards; translate: -50% -50%; }
.fnum.crit { color: #fff; font-size: 40px; -webkit-text-stroke-color: #a8202a; }
.fnum.side { font-size: 17px; -webkit-text-stroke-width: 4px; color: #b9ffcf; -webkit-text-stroke-color: #12361f; }
.fnum.side.big { font-size: 24px; -webkit-text-stroke-width: 5px; color: #fff; }
.fnum.crit::before { content: 'CRIT '; color: var(--mult); }
@keyframes fnum { 0% { transform: scale(.4); opacity: 0; } 12% { transform: scale(1.25); opacity: 1; } 25% { transform: scale(1); } 100% { transform: translateY(-90px) scale(.9); opacity: 0; } }
.part { position: absolute; width: 8px; height: 8px; background: var(--gold); box-shadow: 0 0 0 2px #4a1a2c; animation: part .7s ease-out forwards; }
@keyframes part { to { transform: translate(var(--dx), var(--dy)) rotate(200deg); opacity: 0; } }
.mline { position: absolute; width: 26px; height: 7px; background: #4a2a22; border-radius: 3px; animation: mline .32s ease-out forwards; transform-origin: left center; }
@keyframes mline { 0% { opacity: 0; scale: .3 1; } 40% { opacity: 1; scale: 1 1; } 100% { opacity: 0; translate: var(--mx) var(--my); } }
.meowtxt { position: absolute; font-weight: 700; font-size: 26px; color: #fff; -webkit-text-stroke: 6px #4a2a22; paint-order: stroke fill; animation: fnum .8s ease-out forwards; translate: -50% -50%; }

/* размеры в em: banner() подбирает font-size так, чтобы баннер влез между верхним HUD и макушкой котёнка (16px = полный размер) */
#banner { position: fixed; left: 50%; top: 40%; z-index: 80; pointer-events: none; text-align: center; translate: -50% -50%; font-size: 16px; }
#banner .s { font-size: 1.5em; font-weight: 700; color: #fff; -webkit-text-stroke: .25em #2a1018; paint-order: stroke fill; letter-spacing: .125em; }
#banner .b { font-size: 4.75em; font-weight: 700; line-height: 1; color: var(--gold); -webkit-text-stroke: .158em #2a1018; paint-order: stroke fill; text-shadow: 0 .105em 0 #2a1018; }
#banner .e .q { max-width: 26.7em; font-size: 1em; font-style: italic; color: #ffd98a; line-height: 1.25; }
#banner .e { display: inline-block; margin-top: .55em; background: #3a3346; border: .167em solid #17131d; border-radius: .45em; color: #fff; padding: .33em .78em; font-size: 1.125em; }
#banner.on { animation: banner 2.4s ease-out forwards; }
@keyframes banner { 0% { scale: .2; rotate: -12deg; opacity: 0; } 10% { scale: 1.2; rotate: 4deg; opacity: 1; } 18% { scale: 1; rotate: -2deg; } 24% { rotate: 0deg; } 82% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 1.1; } }

#toast { position: fixed; left: 50%; top: 140px; z-index: 85; translate: -50% -20px; opacity: 0; display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; transition: translate .35s cubic-bezier(.2, 1.4, .4, 1), opacity .25s; pointer-events: none; }
#toast.on { translate: -50% 0; opacity: 1; }
#toast img { width: 40px; height: 40px; image-rendering: pixelated; }
#toast .k { font-size: 12px; font-weight: 700; color: var(--pink2); letter-spacing: 1px; } #toast .n { font-size: 18px; font-weight: 700; }

#lucky { position: fixed; z-index: 55; width: 92px; height: 92px; cursor: pointer; animation: lucky 1.6s ease-in-out infinite; }
#lucky img { width: 100%; height: 100%; image-rendering: pixelated; filter: drop-shadow(0 0 10px #ffe27a) drop-shadow(0 0 4px #fff); }
#lucky::after { content: ''; position: absolute; inset: -16px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 226, 122, .45), transparent 65%); z-index: -1; animation: luckyglow 1s infinite alternate; }
@keyframes lucky { 50% { transform: translateY(-10px) rotate(6deg); } }
@keyframes luckyglow { to { transform: scale(1.25); } }
#lucky.fade { transition: opacity 1s; opacity: 0; }

/* ---------- модалки ---------- */
#modals { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: rgba(18, 8, 14, .72); }
#modals.on { display: grid; }
.modal { position: relative; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 60px); display: flex; flex-direction: column; animation: pop .3s; }
.modal .ph { font-size: 26px; padding: 16px 60px 8px 20px; }
.modal .x { position: absolute; right: 10px; top: 10px; width: 36px; height: 36px; border-radius: 6px; border: 3px solid var(--edge); background: var(--coral); color: #fff; font-weight: 700; font-size: 18px; box-shadow: inset 0 -3px 0 var(--coral2); }
.modal .list { padding: 6px 18px 18px; }
.ach { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 7px 10px; background: #fbf3e2; border: 2px solid #cdb38e; border-radius: 6px; }
.ach img { width: 40px; height: 40px; image-rendering: pixelated; }
.ach .t { font-weight: 700; font-size: 16px; } .ach .d { font-size: 13px; color: var(--ink2); }
.ach .bar { height: 10px; margin-top: 4px; border: 2px solid var(--edge); border-radius: 5px; background: var(--paper2); overflow: hidden; }
.ach .bar i { display: block; height: 100%; background: var(--chips); }
.ach .chk { font-size: 24px; color: var(--green); font-weight: 700; width: 32px; text-align: center; }
.ach.lock { opacity: .7; } .ach.lock img { filter: grayscale(1); }
.set { display: grid; grid-template-columns: 28px 130px 1fr; gap: 10px; align-items: center; padding: 9px 12px; background: #fbf3e2; border: 2px solid #cdb38e; border-radius: 6px; font-size: 16px; font-weight: 600; }
.set img { width: 26px; height: 26px; image-rendering: pixelated; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; background: var(--paper3); border: 2px solid var(--edge); border-radius: 5px; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 4px; background: var(--pink); border: 3px solid var(--edge); cursor: pointer; }
.chk2 { width: 28px; height: 28px; border: 3px solid var(--edge); border-radius: 5px; background: #fff; display: grid; place-items: center; font-weight: 700; color: var(--pink2); font-size: 18px; }
.chk2.on::after { content: '✓'; }
.sel { display: flex; align-items: center; gap: 8px; }
.sel button { width: 30px; height: 28px; border: 3px solid var(--edge); border-radius: 5px; background: var(--paper2); font-weight: 700; }
.sel span { flex: 1; text-align: center; background: #fff; border: 2px solid #cdb38e; border-radius: 5px; padding: 2px 0; }
.btnrow { display: flex; gap: 10px; justify-content: center; padding: 6px 0 2px; }
.bigbtn { min-width: 150px; height: 50px; padding: 0 22px; border-radius: 9px; background: var(--pink2); border: 3px solid var(--edge); box-shadow: inset 0 -5px 0 var(--pink3), inset 0 2px 0 #ffc4d4, 0 4px 0 rgba(0,0,0,.35);
  color: #fff; font-weight: 700; font-size: 22px; letter-spacing: 1px; text-shadow: 0 2px 0 rgba(80, 10, 30, .6); transition: transform .08s; }
.bigbtn:hover { transform: translateY(-2px); } .bigbtn:active { transform: translateY(2px); }
.bigbtn.gray { background: #9a8c84; box-shadow: inset 0 -5px 0 #6a5e58, 0 4px 0 rgba(0,0,0,.35); }
.bigbtn.green { background: var(--green); box-shadow: inset 0 -5px 0 #2a7a50, inset 0 2px 0 #9ef0c0, 0 4px 0 rgba(0,0,0,.35); }

/* открытие пака и «новый KOL» */
/* «NEW KOL UNLOCKED!» по рефу владельца (refs/unlock_ref.png): почти чёрный фон, тёплое янтарное свечение с мягкими
   коричневыми лучами, крупная модель, розовые и золотые звёздочки-искры по бокам, записка наезжает на низ модели.
   Размеры от высоты окна (vh), чтобы на ноутбуке окно было таким же крупным. */
#modals:has(.unlock) { background: rgba(14, 11, 12, .94); }
.unlock { gap: 0; padding: 12px 20px; height: 100vh; box-sizing: border-box; justify-content: center; }
.unlock > * { flex-shrink: 0; }
.unlock h2 { font-size: clamp(36px, 6.4vh, 56px); margin-bottom: -1vh; position: relative; z-index: 2; }
.unlock .rays { top: 44%; width: min(118vh, 1100px); height: min(118vh, 1100px);
  background: repeating-conic-gradient(rgba(150, 96, 52, .55) 0 7deg, rgba(90, 56, 30, .18) 7deg 15deg);
  mask: radial-gradient(circle, #000 12%, rgba(0,0,0,.6) 30%, transparent 58%); -webkit-mask: radial-gradient(circle, #000 12%, rgba(0,0,0,.6) 30%, transparent 58%); animation-duration: 40s; }
/* KOL с mono: true (SOLS0CIETY) — лучи и звёздочки окна открытия чёрно-белые, под хромовую модель */
.unlock.mono .rays { background: repeating-conic-gradient(rgba(190, 192, 205, .5) 0 7deg, rgba(70, 72, 82, .18) 7deg 15deg); }
.unlock.mono .spark { --c: #eef0f6 !important; }
.unlock.mono .glow { filter: grayscale(1); }
.unlock .notecard { width: min(440px, 60vh); margin-top: 6px; z-index: 2; } /* под моделью с маленьким отступом — на модель не наезжает (fitBottom в kolmodels.js) */
.stage { position: relative; height: min(61.7vh, 594px); aspect-ratio: 336 / 400; }
/* витрина — единственное, что ужимается, если окно низкое или текст записки длинный: кнопка OK всегда на экране */
.unlock > .stage { flex-shrink: 1; min-height: 200px; }
.stage .glow { position: absolute; inset: -6% -10%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 222, 168, .62) 0, rgba(232, 160, 88, .42) 22%, rgba(150, 92, 46, .22) 45%, transparent 68%);
  animation: glowpulse 2.4s ease-in-out infinite alternate; }
@keyframes glowpulse { from { opacity: .8; transform: scale(.96); } to { opacity: 1; transform: scale(1.04); } }
/* искры: четырёхлучевые звёздочки, розовые и золотые, мерцают вразнобой */
.spark { position: absolute; width: var(--s, 18px); height: var(--s, 18px); translate: -50% -50%; pointer-events: none; z-index: 1;
  filter: drop-shadow(0 0 3px var(--c)) drop-shadow(0 0 12px var(--c)); animation: twinkle var(--d, 1.6s) ease-in-out infinite; }
.spark::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, #fff 0 18%, var(--c) 30%);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
@keyframes twinkle { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.45); opacity: .55; } }
.reveal { display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; padding: 20px; }
.reveal h2 { margin: 0; font-size: 50px; line-height: 1; color: var(--pink); -webkit-text-stroke: 10px #4a1a2c; paint-order: stroke fill; text-shadow: 0 6px 0 #2a0e18; text-align: center; }
.reveal .sub { color: #f6dfe6; font-size: 20px; font-weight: 600; text-shadow: 0 2px 0 #000; }
.rays { position: absolute; left: 50%; top: 46%; width: 760px; height: 760px; translate: -50% -50%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(rgba(255, 210, 120, .14) 0 10deg, transparent 10deg 20deg); mask: radial-gradient(circle, #000 20%, transparent 68%); -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%); animation: spin 18s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }
.deal { display: flex; gap: 26px; perspective: 900px; }
.flip { width: 150px; height: 200px; position: relative; transform-style: preserve-3d; transition: transform .55s cubic-bezier(.3, 1.4, .5, 1); transform: rotateY(180deg); cursor: pointer; animation: dealin .5s backwards; }
.flip.open { transform: rotateY(0); }
.flip > * { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip .kcard { width: 150px; height: 200px; }
.flip .cback { transform: rotateY(180deg); border-radius: 10px; border: 4px solid var(--edge); background: #e46f8e;
  background-image: radial-gradient(circle at 50% 50%, #f39bb0 0 18%, transparent 19%), repeating-linear-gradient(45deg, #d65e82 0 8px, #e46f8e 8px 16px); box-shadow: inset 0 0 0 5px #f7c4d1, 0 6px 0 rgba(0,0,0,.4); }
.flip:hover { translate: 0 -10px; }
.flip.pick { translate: 0 -30px; }
.flip .new { position: absolute; inset: auto 0 -30px 0; text-align: center; font-weight: 700; font-size: 16px; color: var(--gold); text-shadow: 0 2px 0 #000; backface-visibility: hidden; }
@keyframes dealin { from { translate: 0 120vh; rotate: 20deg; } }
.notecard { position: relative; width: 340px; padding: 18px 20px 14px; text-align: center; }
.notecard .tape { top: -10px; left: 50%; translate: -50% 0; transform: rotate(-3deg); }
.unlock .notecard .tape { left: -16px; top: -6px; translate: none; transform: rotate(-32deg); }
.unlock .notecard .tape.r { left: auto; right: -16px; transform: rotate(32deg); }
.unlock .notecard .t { font-size: 28px; letter-spacing: 1px; }
.unlock .notecard .eff { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.unlock .pill { padding: 1px 8px; border-radius: 5px; color: #fff; font-size: 13px; }
.kolstage { position: absolute; left: calc(-200 / 336 * 100%); top: calc(-70 / 400 * 100%); width: calc(736 / 336 * 100%); height: calc(540 / 400 * 100%); image-rendering: pixelated; cursor: grab; display: block; z-index: 1; } /* холст с полями вокруг кадра витрины (kolmodels.js MX/MY) — модель не обрезается */
.kolstage:active { cursor: grabbing; }
.notecard .t { font-size: 26px; font-weight: 700; } .notecard .d { font-size: 16px; color: var(--ink2); margin-top: 4px; line-height: 1.3; }
.notecard .eff { margin-top: 10px; font-size: 16px; }

/* ---------- титульный экран ---------- */
#title { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; background: #160f24; transition: opacity .6s; }
#title canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
#title .ttl { position: relative; text-align: center; translate: 0 -8vh; }
#title .ttl .logo { font-size: clamp(64px, 11vw, 140px); line-height: .85; font-weight: 700; transform: rotate(-4deg); }
#title .ttl .logo span { display: block; color: var(--pink); -webkit-text-stroke: 10px #4a1a2c; paint-order: stroke fill; text-shadow: 0 12px 0 #1a0810; }
#title .ttl .logo span + span { color: #f7b3c3; }
#title .ttl .tag { color: #f6dfe6; font-size: 20px; margin-top: 18px; text-shadow: 0 2px 0 #000; letter-spacing: 2px; }
#title .btnrow { margin-top: 26px; }
#title.out { opacity: 0; pointer-events: none; }
#title .hint { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: rgba(246, 223, 230, .6); font-size: 14px; }

[hidden] { display: none !important; }
#fallback { position: fixed; inset: 0; display: grid; place-items: center; background: radial-gradient(#5a3a5a, #241820); }
#fallback img { width: min(48vw, 520px); image-rendering: pixelated; }

/* ---------- узкие экраны ---------- */
/* правила «под маленький экран» (max-width 1180 / max-height 820) убраны (владелец, 31.10): интерфейс масштабируется целиком
   (ui.js fitUI, CSS zoom на #hud) и на любом разрешении выглядит одинаково — как на 1920×1080 */
@media (max-width: 900px) {
  :root { --panel-w: 100%; }
  #left { width: auto; right: 16px; bottom: auto; flex-direction: row; align-items: flex-start; }
  #logo { font-size: 34px; } #note { display: none; }
  #menu { margin: 0 0 0 auto; } .mbtn { width: 42px; height: 42px; } .mbtn img { width: 28px; height: 28px; }
  #stats { display: none; }
  #panel { left: 8px; right: 8px; top: auto; height: 44vh; width: auto; }
  #counter { top: 70px; min-width: 0; padding: 6px 14px 6px 8px; } #counter .num { font-size: 28px; } #counter img { width: 40px; height: 40px; }
  #buffs { top: 160px; }
  #squad { bottom: calc(44vh + 18px); } .slot, .kcard { width: 58px; height: 78px; } .kcard .nm { display: none; } .kcard .art { bottom: 4px; } .kcard .rar { display: none; }
  .ugrid { grid-template-columns: repeat(4, 1fr); } .kgrid { grid-template-columns: repeat(3, 1fr); }
  #banner .b { font-size: 3em; }
}
@media (max-height: 820px) { .unlock .notecard { padding: 12px 16px 10px; } }
.stk .mem .kmini { border: 2px solid var(--edge); font-size: 12px; }

/* плашка тестовых цен (TEST_PRICES в data.js) */
#testmode { position: fixed; right: 20px; bottom: 0; z-index: 90; pointer-events: none; padding: 0 8px; border-radius: 5px 5px 0 0;
  background: #e5534b; border: 2px solid #17131d; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 1px; border-bottom: 0; }
#tip .eff small, .notecard .eff small { display: block; flex-basis: 100%; font-size: 12px; opacity: .75; margin-top: 3px; line-height: 1.25; }

/* «Buy it!» у Shiller'ов в комнате (room3d.js shout) — чёткий текст поверх 3D */
.shout.big { font-size: 22px; -webkit-text-stroke: 5px #17131d; }
.shout { position: absolute; left: 0; top: 0; pointer-events: none; white-space: nowrap; font-size: 14px; font-weight: 700; letter-spacing: .5px;
  color: #fff; -webkit-text-stroke: 4px #17131d; paint-order: stroke fill; }

/* ---------- монеты BEANZ (coins.js) ---------- */
/* #coin — точка в центре монеты; монета, кольцо APE и стрелки позиционируются от неё */
#coin { position: fixed; z-index: 86; width: 0; height: 0; pointer-events: none; }
#coin .cw { position: absolute; left: -32px; top: -32px; width: 64px; height: 64px; transition: transform .22s cubic-bezier(.3, 1.8, .5, 1); }
/* монета видна всегда: медленное покачивание-поворот, не ребром */
#coin .cn { width: 100%; height: 100%; image-rendering: pixelated; animation: coinspin 2.4s ease-in-out infinite;
  filter: drop-shadow(0 0 8px #ffe27a) drop-shadow(0 2px 0 #7a4a10); }
@keyframes coinspin { 0%, 100% { transform: scaleX(1) rotate(-6deg); } 50% { transform: scaleX(.55) rotate(6deg); } }
#coin.lapse .cn { animation: coinlapse .45s; filter: drop-shadow(0 0 10px #ff3344); }
@keyframes coinlapse { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
/* «APE» по кругу: слова стоят ровно, каждое вспыхивает, чуть всплывает и гаснет в своём ритме */
#coin .apes { position: absolute; left: 0; top: 0; transition: opacity .25s; }
#coin .apes span { position: absolute; left: 0; top: 0; translate: -50% -50%; transform: rotate(var(--a)) translateY(-62px) rotate(calc(-1 * var(--a)));
  font-size: 15px; font-weight: 700; letter-spacing: 1px; color: #ffe27a; -webkit-text-stroke: 3px #3a1a40; paint-order: stroke fill;
  text-shadow: 0 0 8px #ff6fae, 0 0 14px #ff6fae; animation: apeblink 1.6s ease-in-out infinite; animation-delay: var(--d); opacity: 0; }
@keyframes apeblink { 0%, 100% { opacity: 0; scale: .7; translate: -50% -40%; } 35%, 60% { opacity: 1; scale: 1.1; translate: -50% -60%; } }
#coin.in .apes { opacity: 0; }
/* неоновые стрелки под монетой: однотонные, каждое направление своего цвета, со свечением */
#coin .arrows { position: absolute; left: 0; top: 48px; translate: -50% 0; display: flex; gap: 6px; }
/* подсказка под стрелками на первых монетах (владелец, 17.11) — в стиле записки у «?», хвостик смотрит вверх на стрелки */
#coin .cointip { position: absolute; left: 0; top: 108px; white-space: nowrap; pointer-events: none; text-align: center;
  padding: 9px 14px; background: #fff6d6; border: 3px solid var(--edge); border-radius: 8px; box-shadow: 0 3px 0 rgba(20,10,16,.45);
  font: 700 17px/1.2 system-ui, sans-serif; font-style: normal; color: var(--ink); animation: coinTipNudge 1.4s ease-in-out infinite; transition: opacity .2s; }
#coin .cointip::before { content: ''; position: absolute; bottom: 100%; left: var(--tail, 50%); translate: -50% 0; border: 9px solid transparent; border-bottom: 11px solid var(--edge); border-top: 0; }
#coin .cointip::after { content: ''; position: absolute; bottom: calc(100% - 4px); left: var(--tail, 50%); translate: -50% 0; border: 6px solid transparent; border-bottom: 8px solid #fff6d6; border-top: 0; }
#coin .cointip span { display: block; margin-top: 6px; font-size: 14px; color: #6b5a68; }
#coin .cointip kbd { display: inline-block; min-width: 22px; padding: 2px 5px; margin: 0 2px; border: 2px solid var(--edge); border-radius: 5px; background: #fff;
  box-shadow: inset 0 -3px 0 #d8cfc0; font: 800 14px/1.2 system-ui, sans-serif; color: var(--ink); }
#coin.in .cointip { opacity: 0; }
@keyframes coinTipNudge { 50% { translate: 0 5px; } }
#coin .ar { width: 40px; height: 40px; opacity: .55; transition: opacity .15s; }
#coin .ar svg, #coinpad svg { width: 100%; height: 100%; rotate: var(--r); overflow: visible; }
#coin .ar path, #coinpad path { fill: color-mix(in srgb, var(--c) 22%, transparent); stroke: var(--c); stroke-width: 3; stroke-linejoin: round;
  filter: drop-shadow(0 0 3px var(--c)) drop-shadow(0 0 8px var(--c)); }
#coin .ar.cur { opacity: 1; animation: arpulse .5s ease-in-out infinite alternate; }
@keyframes arpulse { to { transform: scale(1.15); } }
#coin .ar.cur path { fill: color-mix(in srgb, var(--c) 45%, transparent); stroke-width: 3.6; }
#coin .ar.ok { opacity: 1; animation: arok .35s cubic-bezier(.3, 1.6, .5, 1) forwards; }
#coin .ar.ok path { fill: #fff; stroke: #fff; filter: drop-shadow(0 0 6px var(--c)) drop-shadow(0 0 16px var(--c)) drop-shadow(0 0 26px var(--c)); }
@keyframes arok { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1.1); opacity: .35; } }
/* промах: где ошибся — ярко-красная с тряской, остальные — красная вспышка */
#coin .ar.bad { --c: #ff3344; opacity: .9; }
#coin .ar.miss { --c: #ff3344; opacity: 1; animation: shk .3s; }
#coin .ar.miss path { fill: #ff3344; stroke: #fff; filter: drop-shadow(0 0 6px #ff3344) drop-shadow(0 0 18px #ff3344); }
/* финал: монета раздувается, белеет и исчезает; кольцо-вспышка расходится */
#coin.in .cn { animation: coinwin .45s cubic-bezier(.3, 1.4, .5, 1) forwards; }
@keyframes coinwin { 40% { transform: scale(1.6); filter: brightness(2.2) drop-shadow(0 0 22px #fff); } 100% { transform: scale(2.4); opacity: 0; filter: brightness(3) drop-shadow(0 0 30px #ffe27a); } }
#coin.in .arrows { transition: opacity .2s .1s; opacity: 0; }
.coinring { position: fixed; z-index: 86; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; pointer-events: none;
  border: 5px solid #ffe27a; box-shadow: 0 0 18px #ffe27a, inset 0 0 12px #fff; animation: coinring .6s ease-out forwards; }
@keyframes coinring { from { transform: scale(.4); opacity: 1; } to { transform: scale(5); opacity: 0; border-width: 1px; } }
.coinring.pink { border-color: #ffb3e6; box-shadow: 0 0 22px #ffb3e6, inset 0 0 12px #fff; animation-duration: .75s; }
/* салют пойманной монеты (coins.js coinFx): лучи, «$» с призрачными копиями, звёздочки */
.coinrays { position: fixed; z-index: 85; width: 360px; height: 360px; margin: -180px 0 0 -180px; pointer-events: none; mix-blend-mode: screen;
  background: repeating-conic-gradient(from 0deg, rgba(255, 226, 122, .55) 0 6deg, transparent 6deg 22deg);
  -webkit-mask: radial-gradient(circle, #000 8%, transparent 68%); mask: radial-gradient(circle, #000 8%, transparent 68%);
  animation: coinrays 1.05s ease-out forwards; }
@keyframes coinrays { 0% { transform: scale(.2) rotate(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: scale(1.5) rotate(70deg); opacity: 0; } }
.dbx { position: fixed; z-index: 86; width: 0; height: 0; pointer-events: none; animation: dbx var(--t) cubic-bezier(.12, .75, .35, 1) var(--d) both; }
.dbx i { position: absolute; translate: -50% -50%; font-style: normal; line-height: 1; color: #f4fff6; opacity: 0;
  text-shadow: 0 0 4px #fff, 0 0 10px var(--c), 0 0 22px var(--c), 2px 2px 0 #1d5a3a; animation: dby var(--t) var(--d) both; }
.dbx.ghost i { color: var(--c); text-shadow: 0 0 12px var(--c), 0 0 26px var(--c); filter: blur(1px); mix-blend-mode: screen; }
@keyframes dbx { from { transform: translateX(0); } to { transform: translateX(var(--dx)); } }
@keyframes dby {
  0% { transform: translateY(0) scale(.2) rotate(0); opacity: 0; animation-timing-function: ease-out; }
  8% { opacity: var(--o); transform: translateY(calc(var(--up) * .3)) scale(1.15); animation-timing-function: ease-out; }
  42% { transform: translateY(var(--up)) scale(1) rotate(calc(var(--r) * .4)); opacity: var(--o); animation-timing-function: ease-in; }
  100% { transform: translateY(var(--fall)) scale(.55) rotate(var(--r)); opacity: 0; } }
.cstar { position: fixed; z-index: 86; width: 0; height: 0; display: flex; justify-content: center; align-items: center; pointer-events: none; line-height: 0; color: #fff; opacity: 0;
  text-shadow: 0 0 6px var(--c), 0 0 14px var(--c); animation: cstar .8s ease-out var(--d) both; }
@keyframes cstar { 0% { transform: translate(0, 0) scale(0) rotate(0); opacity: 0; } 30% { transform: translate(var(--sx), var(--sy)) scale(1.3) rotate(45deg); opacity: 1; }
  55% { opacity: .4; } 70% { opacity: 1; } 100% { transform: translate(calc(var(--sx) * 1.2), calc(var(--sy) * 1.2 - 20px)) scale(0) rotate(120deg); opacity: 0; } }
/* кнопки-стрелки для телефона: внизу экрана, пока летит монета */
#coinpad { position: fixed; z-index: 87; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; display: flex; gap: 10px;
  padding: 8px; background: rgba(23, 19, 29, .8); border-radius: 14px; }
#coinpad button { width: 58px; height: 54px; padding: 8px; border: 2px solid rgba(255, 255, 255, .15); border-radius: 10px; background: rgba(42, 34, 54, .9); }
#coinpad button:active { transform: scale(.92); }

/* ---------- золотой билет (ticket.js) ---------- */
.gt { position: fixed; z-index: 57; width: 0; height: 0; transform-origin: 0 0; }
.gt .tk, .gtfly .tk { position: absolute; left: 0; top: 0; cursor: grab; filter: drop-shadow(0 4px 0 rgba(10, 4, 8, .45)) drop-shadow(0 0 10px rgba(255, 214, 90, .55)); }
.gt.pulling .tk { cursor: grabbing; }
.gt .tk img, .gtfly .tk img { width: 100%; height: 100%; display: block; image-rendering: pixelated; pointer-events: none; }
/* блик бежит по билету — видно, что он особенный */
.gt .glint, .gtfly .glint { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; overflow: hidden;
  -webkit-mask: url(../assets/golden_ticket.png) center / 100% 100%; mask: url(../assets/golden_ticket.png) center / 100% 100%; }
.gt .glint::after, .gtfly .glint::after { content: ''; position: absolute; top: -20%; bottom: -20%; width: 26%; left: -40%;
  background: linear-gradient(90deg, transparent, rgba(255, 250, 210, .85), transparent); transform: skewX(-20deg); animation: glint 1.8s ease-in-out infinite; }
@keyframes glint { 0% { left: -40%; } 60%, 100% { left: 120%; } }
.gt .paw { position: absolute; left: 0; top: 0; image-rendering: pixelated; cursor: grabbing; scale: 0; transition: scale .12s cubic-bezier(.3, 1.6, .5, 1); }
.gt .paw.on { scale: 1; }
.gt .paw.grab { animation: pawyank .22s ease-out; }
/* рывок билета назад — лапки соскальзывают */
.gt .paw.slip { animation: pawslip .2s ease-out; }
@keyframes pawslip { 0% { translate: 0 0; } 40% { translate: -16px 0; } 100% { translate: 0 0; } }
@keyframes pawyank { 0% { translate: -8px 0; } 45% { translate: 12px 0; } 100% { translate: 0 0; } }
.gtfly { position: fixed; left: 0; top: 0; z-index: 57; pointer-events: none; }
/* переливающийся билет — голо-перелив как у карты GAKE (та же радуга, что .kcard.legendary) + лёгкая смена оттенка */
.gt .holo, .gtfly .holo { display: none; }
.gt.holo .holo, .gtfly.holo .holo { display: block; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color; opacity: .7;
  background: linear-gradient(115deg, #ff6fd8 0%, #ffe36f 16%, #7affd8 32%, #6fa8ff 48%, #b28bff 64%, #ff6fd8 80%, #ffe36f 100%); background-size: 300% 300%;
  animation: holo 2.2s linear infinite;
  -webkit-mask: url(../assets/golden_ticket.png) center / 100% 100%; mask: url(../assets/golden_ticket.png) center / 100% 100%; }
.gt.holo .tk img, .gtfly.holo .tk img { animation: holohue 3s ease-in-out infinite alternate; }
@keyframes holohue { from { filter: hue-rotate(-18deg) saturate(1.2); } to { filter: hue-rotate(28deg) saturate(1.35) brightness(1.08); } }
.gt.holo .tk, .gtfly.holo .tk { filter: drop-shadow(0 4px 0 rgba(10, 4, 8, .45)) drop-shadow(0 0 12px rgba(255, 140, 230, .6)) drop-shadow(0 0 18px rgba(120, 255, 230, .35)); }
/* звёздочки голо-билета */
.gtstar { position: fixed; z-index: 58; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); pointer-events: none;
  filter: drop-shadow(0 0 4px var(--c)); animation: gtstar .85s ease-out forwards; }
.gtstar::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, #fff 0 18%, var(--c) 30%);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
@keyframes gtstar { 0% { transform: translate(0, 0) scale(.3) rotate(0); opacity: 1; } 60% { opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(1) rotate(90deg); opacity: 0; } }
.gtfly .tk { position: relative; cursor: default; }

/* счётчик билетов под ачивками: свёрнут — билетик и число, развёрнут — подпись про розыгрыш */
#tickets { align-self: flex-start; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 8px; width: max-content;
  padding: 7px 14px 7px 10px; cursor: pointer; user-select: none; transition: translate .08s; }
#tickets:hover { translate: 0 -2px; }
/* счётчик билетов на 20% крупнее (владелец, 03.11): картинка 54 → 65, число 24 → 29 */
#tickets > img { width: 65px; height: auto; image-rendering: pixelated; display: block; filter: drop-shadow(0 2px 0 rgba(10, 4, 8, .35)); }
#tickets > b { font-size: 29px; line-height: 1; color: var(--ink); }
#tickets > b::before { content: '×'; font-size: 19px; margin-right: 2px; color: var(--ink2); }
#tickets .more { grid-column: 1 / -1; display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s cubic-bezier(.3, 1.3, .5, 1); }
#tickets .more > .in { min-height: 0; overflow: hidden; font-size: 13px; line-height: 1.3; color: var(--ink2); width: 0; min-width: 100%; } /* текст не раздувает свёрнутый счётчик */
#tickets.open { width: 210px; }
#tickets .more .h { font-weight: 700; color: #b8861c; letter-spacing: 1px; margin-top: 6px; }
#tickets.open .more { grid-template-rows: 1fr; }
#tickets.bump { animation: tkbump .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes tkbump { 30% { scale: 1.18; rotate: -4deg; } }

/* ---------- брошенные коты (toss.js) ---------- */
.tossed { position: fixed; left: 0; top: 0; z-index: 57; pointer-events: none; will-change: transform; } /* под свечением трипа (#trip 58) и блёстками (#fx 60) */
/* кот в руках/в полёте — DOM поверх сцены, поэтому эффекты сцены повторяем фильтром (владелец: «он тоже под эффектом»):
   --smk — дым SMOKE BREAK (smoke.js): блёклый, мутный, сизый; --trp — трип BEANZ (trip.js): цветные края (аберрация) и
   переливы оттенка (--trh). Переменные ставятся на :root каждый кадр, пока эффект идёт */
.tossed img { width: 100%; height: 100%; display: block; image-rendering: pixelated;
  filter: drop-shadow(0 6px 4px rgba(10, 4, 8, .35))
    saturate(calc(1 - .6 * var(--smk, 0))) contrast(calc(1 - .45 * var(--smk, 0))) brightness(calc(1 + .15 * var(--smk, 0))) opacity(calc(1 - .3 * var(--smk, 0))) blur(calc(.9px * var(--smk, 0)))
    drop-shadow(calc(3px * var(--trp, 0)) 0 0 rgba(255, 70, 170, calc(.6 * var(--trp, 0)))) drop-shadow(calc(-3px * var(--trp, 0)) 0 0 rgba(70, 220, 255, calc(.6 * var(--trp, 0))))
    hue-rotate(calc(var(--trh, 0) * 1deg)); }
.tossed.squash img { animation: tossquash .18s ease-out; }
@keyframes tossquash { 40% { scale: 1.25 .75; } }
canvas#scene.cat { cursor: grab; }
body.grabbing, body.grabbing * { cursor: grabbing !important; }

/* ---------- зелье слева от отряда KOL: кнопка — сама колба, покачивается; цена под ней ---------- */
#potion { position: absolute; right: calc(100% + 14px); bottom: 4px; width: 74px; padding: 0; border: 0; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 2px; }
#potion .pic { position: relative; width: 64px; height: 64px; }
#potion .pic > img { width: 64px; height: 64px; image-rendering: pixelated; display: block; animation: potionbob 2.6s ease-in-out infinite;
  filter: drop-shadow(0 0 7px rgba(231, 168, 245, .75)) drop-shadow(0 3px 0 rgba(10, 4, 8, .4)); transition: scale .12s; }
#potion:hover .pic > img { scale: 1.1; }
@keyframes potionbob { 50% { transform: translateY(-5px) rotate(-4deg); } }
/* лёгкие блёстки вокруг колбы */
#potion .pic i { position: absolute; width: 10px; height: 10px; pointer-events: none; animation: twinkle 1.7s ease-in-out infinite;
  filter: drop-shadow(0 0 3px #f7c4ee); }
#potion .pic i::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, #fff 0 20%, #f3b6f0 32%);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
#potion .pic i:nth-of-type(1) { left: -4px; top: 10px; animation-delay: -.3s; }
#potion .pic i:nth-of-type(2) { right: -2px; top: 4px; width: 7px; height: 7px; animation-delay: -1.1s; }
#potion .pic i:nth-of-type(3) { right: -6px; bottom: 16px; animation-delay: -.7s; }
#potion .pic i:nth-of-type(4) { left: 4px; bottom: 0; width: 7px; height: 7px; animation-delay: -1.4s; }
/* цена — маленькая плашка под колбой */
#potion .pp { display: flex; align-items: center; gap: 3px; padding: 1px 7px 1px 4px; border-radius: 6px; border: 2px solid var(--edge);
  background: var(--coral) ; box-shadow: inset 0 -2px 0 var(--coral2); color: #fff; font-weight: 700; font-size: 12px; text-shadow: 0 1px 0 rgba(0,0,0,.35); }
#potion .pp img { width: 14px; height: 14px; image-rendering: pixelated; }
#potion.no .pp { background: #c7b0a2; box-shadow: inset 0 -2px 0 #9a8274; color: #f2e6dc; }
#potion.no .pic > img { filter: drop-shadow(0 3px 0 rgba(10, 4, 8, .4)) saturate(.6); }
#potion.gulp .pic > img { animation: gulp .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes gulp { 25% { transform: rotate(-38deg) scale(1.15); } 55% { transform: rotate(-30deg) scale(1.1) translateY(-4px); } }
#potion.shake { animation: shk .3s; }
.buff.potion { background: #b07ae0; }

/* ---------- трип под бафами (trip.js) ---------- */
/* пастельное переливающееся свечение по краям экрана поверх всего, кроме окон */
#trip { position: fixed; inset: 0; z-index: 58; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(ellipse at 50% 50%, transparent 52%, rgba(255, 170, 215, .22) 72%, rgba(200, 170, 255, .38) 90%, rgba(160, 240, 225, .45) 100%);
  animation: triphue 5s linear infinite, trippulse 1.6s ease-in-out infinite alternate; }
@keyframes triphue { to { filter: hue-rotate(360deg); } }
@keyframes trippulse { from { transform: scale(1); } to { transform: scale(1.04); } }
/* блёстки: всплывают, покачиваясь, и тают */
.tripsp { position: absolute; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%;
  background: radial-gradient(circle, #fff 0 22%, var(--c) 45%, transparent 72%); filter: drop-shadow(0 0 6px var(--c));
  animation: tripsp var(--t) ease-out forwards; pointer-events: none; }
.tripsp.star { border-radius: 0; background: radial-gradient(circle, #fff 0 18%, var(--c) 32%);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
@keyframes tripsp { 0% { transform: translate(0, 0) scale(.3); opacity: 0; } 15% { opacity: 1; }
  50% { transform: translate(calc(var(--dx) * .6), calc(var(--dy) * .5)) scale(1) rotate(60deg); }
  100% { transform: translate(var(--dx), var(--dy)) scale(.6) rotate(140deg); opacity: 0; } }
/* слова MEOW под трипом (trip.js spawnWord): под HUD, туманные, дрожат от Turbulent Displace (SVG-фильтры #twt/#twt2).
   Быстро вылетают со стороны котёнка наружу (каждое со своим разворотом) с баунсом, за словом тянется след из копий (.twc.echo — как Echo в After Effects),
   буквы покачиваются по одной; уходя, слово расплывается в те же копии — они отделяются, растут «в экран» и растворяются */
#tripwords { position: fixed; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; mix-blend-mode: screen; }
.tw { position: absolute; width: 0; height: 0; display: flex; justify-content: center; align-items: center; perspective: 600px;
  opacity: var(--o); transition: opacity .22s ease-in; }
.tw b { position: relative; display: block; white-space: nowrap; font-weight: 700; line-height: 1; letter-spacing: .02em;
  transform: rotateY(var(--ry)) rotate(var(--rz)); animation: twlife var(--life) ease-out both; }
.twc { display: block; color: rgba(255, 150, 215, .9); filter: url(#twt) blur(.8px);
  text-shadow: 0 0 10px rgba(255, 120, 205, .9), 0 0 28px rgba(230, 130, 255, .65), 0 0 56px rgba(255, 140, 220, .4);
  animation: twrise .38s linear both, twgo .55s ease-in .1s forwards; }
.twc.echo { position: absolute; left: 0; top: 0; color: rgba(225, 160, 255, .8); filter: url(#twt2) blur(2px);
  animation: twriseE .38s linear both, twout .5s ease-out forwards; }
.twc i { display: inline-block; font-style: normal; animation: twlet .6s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.21s); }
/* вылет снизу вверх: разгон, перелёт точки, отскок и успокоение */
@keyframes twrise {
  0% { translate: var(--sx) var(--sy); scale: var(--s0); rotate: var(--r0); opacity: 0; animation-timing-function: cubic-bezier(.25, .6, .35, 1); }
  12% { opacity: 1; }
  55% { translate: var(--ox) var(--oy); scale: 1.06; rotate: calc(var(--r0) * -.15); animation-timing-function: ease-in-out; }
  75% { translate: calc(var(--ox) * -.35) calc(var(--oy) * -.35); scale: .98; rotate: calc(var(--r0) * .05); }
  100% { translate: 0 0; scale: 1; rotate: 0deg; opacity: 1; } }
/* копии следа идут тем же путём, но гаснут, догоняя слово */
@keyframes twriseE {
  0% { translate: var(--sx) var(--sy); scale: var(--s0); rotate: var(--r0); opacity: 0; animation-timing-function: cubic-bezier(.25, .6, .35, 1); }
  12% { opacity: var(--e); }
  55% { translate: var(--ox) var(--oy); scale: 1.06; rotate: calc(var(--r0) * -.15); opacity: calc(var(--e) * .6); animation-timing-function: ease-in-out; }
  75% { translate: calc(var(--ox) * -.35) calc(var(--oy) * -.35); scale: .98; rotate: 0deg; opacity: 0; }
  100% { translate: 0 0; scale: 1; rotate: 0deg; opacity: 0; } }
/* звёздочки у букв (как у зелья): быстро вспыхивают и гаснут */
.twst { position: absolute; width: var(--s); height: var(--s); translate: -50% -50%; text-decoration: none;
  filter: drop-shadow(0 0 3px var(--c)) drop-shadow(0 0 10px var(--c)) brightness(1.3); animation: twstar .45s ease-out both; }
.twst::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, #fff 0 20%, var(--c) 32%);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
@keyframes twstar { 0% { transform: scale(0) rotate(0); opacity: 0; } 35% { transform: scale(1.25) rotate(25deg); opacity: 1; }
  100% { transform: scale(0) rotate(70deg); opacity: 0; } }
/* уход: само слово растворяется и сильнее плывёт… */
@keyframes twgo { to { opacity: 0; scale: 1.12; filter: url(#twt2) blur(4px); } }
/* …а копии одна за другой отделяются от него — дальше, крупнее, размытее — и тают */
@keyframes twout {
  0% { opacity: calc(var(--e) * 1.6); filter: url(#twt2) blur(1.5px); } /* положение и размер — откуда копия сейчас (ещё летит в следе) */
  100% { opacity: 0; translate: calc(var(--fx) * var(--k) * .7) calc(var(--fy) * var(--k) * .6); scale: calc(1 + var(--k) * .14); filter: url(#twt2) blur(7px); } }
/* буквы покачиваются каждая в своей фазе */
@keyframes twlet { from { transform: translateY(-.07em) rotate(-5deg); } to { transform: translateY(.07em) rotate(5deg); } }
/* всё слово плывёт и чуть приближается «в экран» */
@keyframes twlife { from { translate: 0 0; scale: 1; } to { translate: var(--fx) var(--fy); scale: 1.15; } }
/* запечённые слова (trip.js bakeAll, 04.11): фильтры и свечение уже в картинках букв — живые фильтры выключаем,
   буква — блок шириной в букву, картинка с кадрами «кипения» в ::before (размеры и кадры — в стиле #tripbaked) */
#tripwords.baked .twc, #tripwords.baked .twc.echo { filter: none; text-shadow: none; color: transparent; }
#tripwords.baked .twc { animation: twrise .38s linear both, twgoB .55s ease-in .1s forwards; }
#tripwords.baked .twc.echo { animation: twriseE .38s linear both, twoutB .5s ease-out forwards; }
#tripwords.baked .twc:not(.echo) { position: relative; } /* кадры слова — в ::before (стиль #tripbaked, trip.js wordSheet) */
@keyframes twgoB { to { opacity: 0; scale: 1.12; } }
@keyframes twoutB {
  0% { opacity: calc(var(--e) * 1.6); }
  100% { opacity: 0; translate: calc(var(--fx) * var(--k) * .7) calc(var(--fy) * var(--k) * .6); scale: calc(1 + var(--k) * .14); } }
/* лишнее старое слово (больше WORDS_MAX) — быстро гаснет */
.tw.out { opacity: 0; }
/* счётчик MEOWS и коробки чуть «дышат» и плывут вместе с экраном */
body.tripping #counter .num { animation: tripnum 1.1s ease-in-out infinite alternate; }
@keyframes tripnum { from { text-shadow: 2px 0 0 rgba(255, 120, 200, .55), -2px 0 0 rgba(120, 220, 255, .55); transform: rotate(-1deg); }
  to { text-shadow: -2px 0 0 rgba(255, 120, 200, .55), 2px 0 0 rgba(120, 220, 255, .55); transform: rotate(1deg) scale(1.03); } }

/* эхо котёнка на клик под бафом: копии летят «в экран» и тают, каждая следующая прозрачнее (trip.js echo) */
.techo { position: absolute; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: url(../assets/kitten_meow.png) center / 100% 100% no-repeat; image-rendering: pixelated;
  filter: drop-shadow(0 0 10px var(--c)) saturate(1.3);
  animation: techo .62s cubic-bezier(.2, .7, .3, 1) forwards; }
.techo::after { content: ''; position: absolute; inset: 0; background: var(--c); mix-blend-mode: color; opacity: .55;
  -webkit-mask: url(../assets/kitten_meow.png) center / 100% 100%; mask: url(../assets/kitten_meow.png) center / 100% 100%; }
@keyframes techo { 0% { opacity: var(--o); transform: translate(0, 0) scale(1) rotate(0); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(var(--sc)) rotate(var(--r)); } }

/* ---------- монстры (monsters.js) ---------- */
/* тестовые кнопки вызова монстров (потом владелец заменит на триггеры) */
.mbtn.devmon { width: auto; padding: 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .5px; color: #fff; background: #8a1c2a; border-color: #2a0a10; }
.mbtn.devmon:hover { background: #a8243a; }
#menu:has(.devmon) { flex-wrap: wrap; max-width: 470px; } /* тестовые кнопки не лезут под PAW × MULT — переносятся на второй ряд */
/* разрезы катаной и затемнение «судного разреза» */
#slashfx { position: fixed; inset: 0; z-index: 88; pointer-events: none; }
#jcdim { position: fixed; inset: 0; z-index: 87; pointer-events: none; opacity: 0; transition: opacity .15s;
  background: radial-gradient(circle at 50% 50%, rgba(20, 40, 90, .35), rgba(4, 6, 20, .8)); }
#jcdim.on { opacity: 1; }
/* подпись над монстром: имя, здоровье, таймер кражи */
.montag { position: fixed; z-index: 61; translate: -50% -100%; pointer-events: none; text-align: center; line-height: 1.1; transition: opacity .2s;
  font-weight: 700; color: #fff; text-shadow: 0 2px 0 #2a0a10, 0 0 6px rgba(0,0,0,.6); }
.montag b { display: block; font-size: 16px; letter-spacing: 2px; color: #ff4a5e; -webkit-text-stroke: 4px #2a0a10; paint-order: stroke fill; }
.montag span { display: block; font-size: 12px; letter-spacing: 1px; color: #ffe08a; }
.montag .hp { display: flex; gap: 3px; justify-content: center; margin: 2px 0; }
.montag .hp s { width: 10px; height: 8px; background: #ff3a50; border: 2px solid #2a0a10; border-radius: 2px; }
.montag u { display: block; height: 5px; margin: 3px auto 0; width: 90px; border: 2px solid #2a0a10; border-radius: 3px;
  background: linear-gradient(90deg, #ff3a50 calc(var(--k) * 100%), rgba(40, 10, 16, .6) 0); }
.fnum.monloss { color: #ff4a5e; font-size: 20px; }
.fnum.monloss.big { font-size: 30px; }
/* тайко: дорожка от живота ORANGIE вправо, ноты едут к кругу попадания */
#taiko { position: fixed; z-index: 62; pointer-events: none; }
#taiko .lane { position: relative; width: 860px; height: 80px; border: 4px solid #2a0a10; border-radius: 40px; background: linear-gradient(#5a2030, #3a1420); box-shadow: 0 4px 0 rgba(0,0,0,.4), inset 0 0 0 3px #8a3a4a; }
#taiko .hitc { position: absolute; left: 12px; top: 6px; width: 60px; height: 60px; border-radius: 50%; border: 4px solid #fff3c9; box-shadow: 0 0 12px #fff3c9; }
#taiko .notes i { position: absolute; top: 14px; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 3px #2a0a10; }
#taiko .notes i.don { background: radial-gradient(circle at 40% 35%, #ff8a7a, #e8382a 60%); }
#taiko .notes i.ka { background: radial-gradient(circle at 40% 35%, #8adcff, #2a7ae8 60%); }
#taiko .info { margin: 6px 0 0 12px; color: #fff; text-shadow: 0 2px 0 #2a0a10; font-size: 12px; font-weight: 700; }
#taiko .combo { display: inline-block; min-width: 90px; font-size: 20px; color: #ffe08a; -webkit-text-stroke: 4px #2a0a10; paint-order: stroke fill; margin-right: 10px; }
#taiko .tpop { position: absolute; left: 42px; top: -30px; translate: -50% 0; font-size: 22px; font-weight: 700; color: #ffe08a; -webkit-text-stroke: 5px #2a0a10; paint-order: stroke fill; animation: tpop .5s ease-out forwards; }
#taiko .tpop.miss { color: #9aa0b0; }
#taiko .tpop.ka { color: #8adcff; }
@keyframes tpop { from { transform: translateY(8px) scale(.7); opacity: 1; } to { transform: translateY(-16px) scale(1.1); opacity: 0; } }

/* тайко быстрее (как osu!taiko): вспышка круга по цвету удара, сбитая нота вылетает, дорожка может идти влево (.flip) */
/* подсказка над дорожкой в первом бою с ORANGIE (владелец, 17.11) */
#taiko .drumtip { position: absolute; left: -6px; bottom: calc(100% + 26px); white-space: nowrap; text-align: center;
  padding: 10px 18px 10px; background: #fff6d6; border: 3px solid #2a0a10; border-radius: 10px; box-shadow: 0 4px 0 rgba(20,10,16,.45);
  font: 800 20px/1.2 system-ui, sans-serif; font-style: normal; color: #2a0a10; animation: drumTip 1.2s ease-in-out infinite; }
#taiko .drumtip::after { content: ''; position: absolute; top: 100%; left: 50px; translate: -50% 0; border: 10px solid transparent; border-top: 12px solid #2a0a10; border-bottom: 0; }
#taiko .drumtip svg { width: 34px; height: 48px; vertical-align: middle; margin: 0 8px; }
#taiko .drumtip b { display: inline-flex; align-items: center; gap: 5px; } #taiko .drumtip b.r { color: #d22a1c; } #taiko .drumtip b.b { color: #1f62c8; }
#taiko .drumtip b i { width: 20px; height: 20px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #2a0a10; }
#taiko .drumtip b i.dn { background: #e8382a; } #taiko .drumtip b i.ka { background: #2a7ae8; }
#taiko .drumtip u { text-decoration: none; background: #2a0a10; color: #fff; padding: 1px 6px; border-radius: 4px; }
#taiko .drumtip span { display: block; margin-top: 4px; font-size: 13px; font-weight: 700; color: #6b4a50; }
@keyframes drumTip { 50% { translate: 0 -5px; } }
#taiko.tflip .drumtip { left: auto; right: -6px; } #taiko.tflip .drumtip::after { left: auto; right: 50px; translate: 50% 0; }
#taiko .notes, #taiko .fx { position: absolute; inset: 0; }
#taiko.tflip .hitc { left: auto; right: 12px; }
#taiko.tflip .tpop, #taiko.tflip .fx .nb { left: auto; right: 42px; translate: 50% 0; }
#taiko.tflip .info { text-align: right; margin: 6px 12px 0 0; }
#taiko .hitc.flash { animation: hitflash .16s ease-out; }
#taiko .hitc.flash.don { --hc: #ff6a5a; }
#taiko .hitc.flash.ka { --hc: #6ac8ff; }
@keyframes hitflash { 0% { background: var(--hc); box-shadow: 0 0 28px var(--hc), 0 0 0 6px var(--hc); scale: 1.18; } 100% { background: transparent; scale: 1; } }
#taiko .fx .nb { position: absolute; left: 42px; top: 14px; width: 44px; height: 44px; margin-left: -22px; border-radius: 50%; border: 4px solid #fff; animation: nbfly .42s cubic-bezier(.2,.7,.4,1) forwards; }
#taiko .fx .nb.don { background: #e8382a; } #taiko .fx .nb.ka { background: #2a7ae8; }
@keyframes nbfly { 0% { transform: translateY(0) scale(1.15); opacity: 1; } 100% { transform: translateY(-120px) scale(.6) rotate(220deg); opacity: 0; } }
#taiko .tpop { animation-duration: .45s; }
#taiko .combo.hot { color: #ffb24a; animation: combohot .3s ease-in-out infinite alternate; }
@keyframes combohot { to { scale: 1.12; } }

/* хоррор, пока в комнате монстры: тёмно-красная виньетка дышит в такт сердцу, свет иногда «моргает» */
#horror { position: fixed; inset: 0; z-index: 5; pointer-events: none; opacity: 0; transition: opacity 1.5s;
  background: radial-gradient(ellipse at 50% 55%, transparent 42%, rgba(30, 0, 6, .55) 78%, rgba(10, 0, 2, .85) 100%); }
#horror.on { opacity: 1; animation: hbeat 1.05s infinite; }
#horror::after { content: ''; position: absolute; inset: 0; background: #000; opacity: 0; }
#horror.flick::after { opacity: .62; }
@keyframes hbeat { 0%, 100% { filter: brightness(1); } 8% { filter: brightness(1.35); } 30% { filter: brightness(1.15); } 36% { filter: brightness(1.3); } }
#taiko .notes { overflow: hidden; border-radius: 36px; }

/* ETHAN: прицелы (monsters.js startMarks) — красные, сходящееся кольцо = сколько осталось; попал — зелёный */
.marks { position: fixed; inset: 0; pointer-events: none; z-index: 61; transition: opacity .8s; }
.marks.fade { opacity: 0; }
.mark { position: absolute; width: 5vh; height: 5vh; margin: -2.5vh 0 0 -2.5vh; animation: mkIn .16s ease-out; } /* 5vh = MONSTER.marks.size: одинаково при любом масштабе браузера */
.mark svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 5px rgba(255, 40, 40, .85)) drop-shadow(0 2px 0 rgba(0, 0, 0, .55)); animation: mkSpin 2.4s linear infinite; }
.mark svg circle, .mark svg path { fill: none; stroke: #ff2a2a; stroke-width: 7; }
.mark svg .in { stroke-width: 4; }
.mark .ring { position: absolute; inset: -3px; border: 3px solid #ff6a6a; border-radius: 50%; transform: scale(calc(2.6 - 1.6 * var(--k, 0))); opacity: calc(.3 + .7 * var(--k, 0)); }
.mark.ok svg { animation: mkOk .28s ease-out forwards; filter: drop-shadow(0 0 7px #3dff6a) drop-shadow(0 2px 0 rgba(0, 0, 0, .55)); }
.mark.ok svg circle, .mark.ok svg path { stroke: #3dff6a; }
.mark.ok .ring { display: none; }
.marks.fail .mark { animation: mkFail .42s ease-in forwards; }
@keyframes mkIn { from { transform: scale(1.8) rotate(-40deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes mkSpin { to { transform: rotate(90deg); } }
@keyframes mkOk { 0% { transform: scale(1.35); } 100% { transform: scale(.82); } }
@keyframes mkFail { to { transform: scale(.3) rotate(60deg); opacity: 0; } }
/* своя подпись KOL в окне открытия (KOLS[].unlock, напр. MITCH: #FREEMITCH) */
.notecard .unl { margin: 2px 0 6px; font-size: 26px; font-weight: 800; letter-spacing: .04em; color: #7a2346; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); animation: unlPop .5s cubic-bezier(.2, 1.6, .4, 1) both .25s; }
@keyframes unlPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.notecard .unl.long { font-size: 17px; letter-spacing: .01em; line-height: 1.25; max-width: 380px; margin-left: auto; margin-right: auto; }
/* стаки: общее объяснение под заголовком; доп. карта стака через «+» (APED TOGETHER + SOLS0CIETY) */
.stkhelp { margin: -2px 2px 6px; font-size: 13px; color: var(--ink3); font-style: italic; }
.stk .ex { margin-top: 3px; font-size: 12px; color: var(--ink3); }
.stk .ex.on { color: var(--ink); }
.stk .mem .plus { align-self: center; font-style: normal; font-weight: 800; font-size: 16px; margin: 0 2px; color: var(--ink3); }
.stk .mem .xm { display: flex; opacity: .5; min-width: 48px; height: 48px; }
.stk .mem .xm.on { opacity: 1; }
.stk > div:first-child { flex: 1; min-width: 0; }
.stk .mem { flex-shrink: 0; }

/* ---------- кат-сцена стака (stackcine.js) ---------- */
#scine { position: fixed; inset: 0; z-index: 9000; overflow: hidden; pointer-events: auto; transition: opacity .5s; }
#scine.bye { opacity: 0; }
/* «глаз»: тёмная эллиптическая виньетка сжимается до чёрного и раскрывается (js — eye() в stackcine.js) */
#scine .eye { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
#scine video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; background: #000; }
#scine.vid video { opacity: 1; }
#scine.show video { opacity: 0; }
/* белая вспышка в конце видео; под ней — надпись и карты */
#scine .white { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 3; }
#scine.wh .white { opacity: 1; }
#scine.out .white { opacity: 0; transition: opacity .8s cubic-bezier(.5, 0, .8, .5); }
#scine .st { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(12, 6, 14, .84); }
#scine.show .st { display: flex; }
#scine h2 { margin: 0; font-size: 64px; line-height: 1; text-align: center; }
#scine .sn { font-size: 30px; font-weight: 800; letter-spacing: 3px; }
/* голо-текст: радужный перелив как у карты GAKE (holo), бегущий блик и мягкое свечение */
.holo-t { color: transparent; background: linear-gradient(115deg, #ff9fe6 0%, #fff 18%, #7affd8 34%, #ffe36f 50%, #ff6fd8 66%, #9fd0ff 82%, #ff9fe6 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; animation: holo 2.4s linear infinite;
  filter: drop-shadow(0 4px 0 #2a0e18) drop-shadow(0 0 14px rgba(255, 160, 240, .55)) drop-shadow(0 0 26px rgba(120, 255, 230, .35)); }
#scine.out h2.holo-t { animation: scPop .55s cubic-bezier(.2, 1.7, .4, 1) .1s both, holo 2.4s linear infinite; }
#scine.out .sn.holo-t { animation: scPop .5s cubic-bezier(.2, 1.7, .4, 1) .28s both, holo 2.4s linear infinite; }
#scine .cards { display: flex; gap: 26px; margin-top: 18px; }
#scine .c { opacity: 0; }
#scine.out .c0 { animation: scFlyL .7s cubic-bezier(.2, 1.5, .4, 1) .3s both; }
#scine.out .c1 { animation: scFlyU .7s cubic-bezier(.2, 1.5, .4, 1) .45s both; }
#scine.out .c2 { animation: scFlyR .7s cubic-bezier(.2, 1.5, .4, 1) .6s both; }
#scine .c .kcard { animation: float 2.4s ease-in-out infinite; }
@keyframes scPop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes scFlyL { from { transform: translateX(-60vw) rotate(-25deg); opacity: 0; } to { transform: rotate(-6deg); opacity: 1; } }
@keyframes scFlyU { from { transform: translateY(70vh) scale(.6); opacity: 0; } to { transform: translateY(-10px); opacity: 1; } }
@keyframes scFlyR { from { transform: translateX(60vw) rotate(25deg); opacity: 0; } to { transform: rotate(6deg); opacity: 1; } }
/* «ослепило»: белые звёзды и блики сыплются вниз поверх карт */
#scine .fall { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
#scine .fall i { position: absolute; display: block; animation: scFall var(--d) cubic-bezier(.3, .1, .7, 1) var(--dl) both; }
#scine .fall .sp { background: #fff; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter: drop-shadow(0 0 6px #fff) drop-shadow(0 0 12px rgba(255, 255, 255, .9)); }
#scine .fall .gl { border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(255, 255, 255, .35) 40%, transparent 70%); mix-blend-mode: screen; }
@keyframes scFall { 0% { transform: translateY(0) rotate(0) scale(1.15); opacity: 1; } 70% { opacity: .9; }
  100% { transform: translateY(var(--fy)) rotate(var(--r)) scale(.4); opacity: 0; } }
/* легендарная карта: лучи окна открытия — светлое золото, по ним медленно плывёт пастельный голо-перелив (как у
   легендарной карты); по бокам переливаются звёздочки (.lstars, ui.js kolReveal) */
.unlock.legend .rays { background: repeating-conic-gradient(rgba(255, 214, 240, .6) 0 7deg, rgba(60, 36, 30, .12) 7deg 15deg,
    rgba(255, 238, 196, .66) 15deg 22deg, rgba(60, 36, 30, .12) 22deg 30deg, rgba(200, 255, 238, .55) 30deg 37deg, rgba(60, 36, 30, .12) 37deg 45deg,
    rgba(226, 212, 255, .58) 45deg 52deg, rgba(60, 36, 30, .12) 52deg 60deg);
  animation: spin 40s linear infinite, lglow 4s ease-in-out infinite; }
.unlock.legend .glow { animation: glowpulse 2.4s ease-in-out infinite alternate, lglow 4s ease-in-out infinite; }
@keyframes lglow { 0%, 100% { filter: hue-rotate(-25deg) saturate(1.2); } 50% { filter: hue-rotate(35deg) saturate(1.35) brightness(1.15); } }
.lstars { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.lstars i { position: absolute; display: block; background: linear-gradient(135deg, #fff 20%, #ffd1f2 45%, #c8fff0 70%, #fff3b8);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: ltw var(--d) ease-in-out var(--dl) infinite, lst 2.6s linear var(--dl) infinite; }
@keyframes ltw { 0%, 100% { transform: scale(.2) rotate(0); opacity: 0; } 40% { transform: scale(1.15) rotate(45deg); opacity: 1; } 70% { transform: scale(.8) rotate(80deg); opacity: .85; } }
@keyframes lst { 0% { filter: hue-rotate(0) drop-shadow(0 0 6px #fff) drop-shadow(0 0 12px #ff9fe6); } 50% { filter: hue-rotate(160deg) drop-shadow(0 0 8px #fff) drop-shadow(0 0 14px #9ff5e0); }
  100% { filter: hue-rotate(360deg) drop-shadow(0 0 6px #fff) drop-shadow(0 0 12px #ff9fe6); } }
/* буквы подписи плавают: ~5% высоты буквы вверх-вниз и лёгкий крен, у каждой своя фаза */
.notecard .unl .w { display: inline-block; white-space: nowrap; }
.notecard .unl i { display: inline-block; font-style: normal; animation: unlWob 1.6s ease-in-out var(--p) infinite alternate; }
@keyframes unlWob { from { transform: translateY(.05em) rotate(-1.5deg); } to { transform: translateY(-.05em) rotate(1.5deg); } }
/* подпись под картами в кат-сцене стака (cine.caption) — плавающие буквы, как у подписей карт */
#scine .cap { max-width: min(760px, 90vw); margin-top: 22px; text-align: center; font-size: 26px; font-weight: 800; line-height: 1.3; color: #fff3fa;
  text-shadow: 0 3px 0 #2a0e18, 0 0 14px rgba(255, 160, 240, .5); opacity: 0; }
#scine.out .cap { animation: scPop .5s cubic-bezier(.2, 1.6, .4, 1) .9s both; }
#scine .cap .w { display: inline-block; white-space: nowrap; }
#scine .cap i { display: inline-block; font-style: normal; animation: unlWob 1.6s ease-in-out var(--p) infinite alternate; }
#scine .cap i.h { color: transparent; background: linear-gradient(90deg, #ff4fd2 0, #ffd84f 24px, #4fffb0 48px, #4fc8ff 72px, #b04fff 96px, #ff4fd2 120px) 0 0 / 120px 100% repeat-x;
  -webkit-background-clip: text; background-clip: text; text-shadow: none; filter: drop-shadow(0 3px 0 #2a0e18) drop-shadow(0 0 8px rgba(255, 200, 255, .6));
  animation: unlWob 1.6s ease-in-out var(--p) infinite alternate, capholo 2s linear var(--hd) infinite; }
@keyframes capholo { to { background-position-x: 120px; } } /* сдвиг ровно на плитку — без шва */
/* две карты в кат-сцене — ровно: обе на одной высоте, без наклона (владелец: BEANZ стоял криво) */
#scine.out .cards.n2 .c0 { animation-name: scFlyL2; }
#scine.out .cards.n2 .c1 { animation-name: scFlyR2; }
@keyframes scFlyL2 { from { transform: translateX(-60vw) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes scFlyR2 { from { transform: translateX(60vw) rotate(25deg); opacity: 0; } to { transform: none; opacity: 1; } }
/* купюры, которые сыплются из Rich Cat, когда его трясут (toss.js) */
.bill { position: fixed; left: -15px; top: -8px; width: 30px; height: 15px; z-index: 58; pointer-events: none;
  background: #8fd487; border: 2px solid #2f6e38; border-radius: 2px; box-shadow: inset 0 0 0 2px #b9ecb0;
  display: grid; place-items: center; font: 800 11px/1 monospace; color: #2f6e38; }

/* ---------- LETTERBOMB «дай ему сигарету» (smoke.js) ---------- */
.lbbubble { position: fixed; left: 0; top: 0; z-index: 57; pointer-events: none; padding: 10px 16px 8px; background: #fff; color: #17131d;
  border: 3px solid #17131d; border-radius: 16px; box-shadow: 4px 5px 0 rgba(23, 19, 29, .45); text-align: center; white-space: nowrap;
  opacity: 0; scale: .4; transform-origin: 20% 100%; transition: opacity .15s, scale .28s cubic-bezier(.3, 1.6, .5, 1); }
.lbbubble.on { opacity: 1; scale: 1; }
.lbbubble::after { content: ''; position: absolute; left: 28px; bottom: -15px; border: 9px solid transparent; border-top: 12px solid #17131d; border-bottom: 0; }
.lbbubble b { display: block; font: 400 34px/1.05 'Black Han Sans', 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif; letter-spacing: 1px;
  animation: lbshout .5s steps(2) infinite; }
.lbbubble i { display: block; font: 700 12px/1.3 'Tiny5', monospace; font-style: normal; color: #6b5f78; text-transform: uppercase; letter-spacing: 1px; }
@keyframes lbshout { 50% { translate: 1px -1px; } }
.cigtarget { position: fixed; left: 0; top: 0; z-index: 57; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity .2s; }
.cigtarget.on { opacity: 1; }
.cigtarget::before { content: ''; position: absolute; left: -34px; top: -34px; width: 68px; height: 68px; box-sizing: border-box; border-radius: 50%;
  border: 3px dashed #fff3a8; box-shadow: 0 0 14px rgba(255, 243, 168, .6); animation: cigt 1.2s linear infinite; }
.cigtarget.hot::before { border-style: solid; border-color: #7dff9a; box-shadow: 0 0 22px rgba(125, 255, 154, .9); scale: 1.15; }
@keyframes cigt { to { rotate: 360deg; } }
.smokehint { position: fixed; left: 0; top: 0; z-index: 57; pointer-events: none; font: 700 26px/1 'Tiny5', monospace; color: #fff3a8; white-space: nowrap; letter-spacing: 1px;
  text-shadow: 3px 3px 0 #17131d, -3px 3px 0 #17131d, 3px -3px 0 #17131d, -3px -3px 0 #17131d, 0 3px 0 #17131d, 0 -3px 0 #17131d, 3px 0 0 #17131d, -3px 0 0 #17131d;
  opacity: 0; transition: opacity .2s; }
/* крупнее и буквы мягко покачиваются (владелец, 03.11), без дёрганья всей строки — чтобы читалось */
.smokehint.on { opacity: 1; }
.smokehint .w { display: inline-block; }
.smokehint i { display: inline-block; font-style: normal; animation: hintWob 1.4s ease-in-out var(--p) infinite alternate; }
@keyframes hintWob { from { transform: translateY(2px) rotate(-3deg); } to { transform: translateY(-2px) rotate(3deg); } }
.smokehint.lit { color: #ffb36b; font-size: 32px; }
.cigdrag { position: fixed; left: 0; top: 0; z-index: 88; width: 96px; height: 14px; pointer-events: none; image-rendering: pixelated; filter: drop-shadow(3px 4px 0 rgba(0, 0, 0, .35)); }
.cigdrag.back { transition: transform .22s ease-in; }
body.smoke-drag, body.smoke-drag * { cursor: grabbing !important; }
body.smoke-light #scene { cursor: pointer; }
.lspark { position: fixed; z-index: 58; width: 5px; height: 5px; margin: -2px; pointer-events: none; animation: lspark .4s ease-out forwards; }
@keyframes lspark { to { translate: var(--dx) var(--dy); opacity: 0; scale: .3; } }
/* колечки дыма: кольцо из мягких клубов дыма (smoke.js), каждый клуб плывёт и расплывается сам */
.sring { position: fixed; left: 0; top: 0; margin: -30px 0 0 -42px; z-index: 57; width: 84px; height: 60px; cursor: pointer; opacity: 0; }
.sring::after { content: ''; position: absolute; inset: -14px; border-radius: 50%; } /* хитбокс шире */
.sring { background: center / 100% 100% no-repeat; }
.sring.pop { animation: spop .5s cubic-bezier(.2, .7, .3, 1) forwards; pointer-events: none; }
.sring.pop.ghost { mix-blend-mode: screen; animation-name: spopg; }
@keyframes spop { 0% { scale: 1; } 20% { scale: 1.5; opacity: 1; } 55% { opacity: .85; } 100% { scale: 4.2; opacity: 0; } } /* «вперёд, на игрока» */
@keyframes spopg { 0% { scale: 1; } 100% { scale: 3.4; opacity: 0; } }
.buff.smoke { background: #7d7690; }
/* «пуф» LETTERBOMB (как Meepo): вспышка-кольцо */
.lbpoof { position: fixed; z-index: 57; width: 40px; height: 40px; margin: -20px; border-radius: 50%; pointer-events: none;
  border: 6px solid rgba(200, 222, 255, .95); box-shadow: 0 0 30px 10px rgba(160, 196, 255, .7), inset 0 0 20px rgba(255, 255, 255, .8);
  animation: lbpoof .55s cubic-bezier(.2, .8, .3, 1) forwards; }
@keyframes lbpoof { to { scale: 7; opacity: 0; border-width: 1px; } }

/* слой монеты BEANZ: LETTERBOMB крупным планом закрывает его маской-силуэтом (smoke.js occlude) */
#coinlayer { position: fixed; inset: 0; z-index: 86; pointer-events: none; mask-mode: luminance; mask-repeat: no-repeat; mask-size: 100% 100%; }

/* закрытая карта в коллекции (владелец, 27.10): серый силуэт — модель/арт видно чуть-чуть, имя приглушено, замок в углу */
.kcard.locked { filter: grayscale(1) brightness(.55) contrast(1.25); cursor: default; box-shadow: 0 4px 0 rgba(10, 4, 8, .35); animation: none; }
.kcard.locked .art { background: #8d8590 !important; }
.kcard.locked .art > canvas, .kcard.locked .art > img, .kcard.locked .art > .kname { filter: brightness(.35) contrast(1.4); opacity: .9; }
.kcard.locked .shine, .kcard.locked .rar { display: none; }
.kcard.locked .klock { position: absolute; right: -7px; top: -7px; z-index: 4; width: 24px; height: 24px; border-radius: 6px; background: #3a3346;
  border: 2px solid var(--edge); display: grid; place-items: center; }
.kcard.locked .klock img { width: 16px; image-rendering: pixelated; filter: brightness(1.6); }
.kcard.locked + .kslot { color: #9a8fa2; letter-spacing: .5px; }

/* ---------- кнопки WHEEL / AUCTION в правой панели (casino.js) ---------- */
.funrow { display: flex; gap: 6px; padding: 0 8px 4px; position: relative; z-index: 3; }
.fun { flex: 1; height: 38px; display: flex; align-items: center; justify-content: center; gap: 8px; font: 700 15px/1 'Tiny5', monospace; color: #fff;
  border: 3px solid var(--edge); border-radius: 8px; letter-spacing: 1px; text-shadow: 2px 2px 0 rgba(0,0,0,.35); cursor: pointer;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.25), inset 0 2px 0 rgba(255,255,255,.3), 0 3px 0 rgba(0,0,0,.35); transition: transform .08s; }
.fun:hover { transform: translateY(-1px); } .fun:active { transform: translateY(2px); }
.fun.wheel { background: linear-gradient(90deg, #e46f8e, #f2c14e, #45a872, #2f8ee0, #a35fd6); background-size: 200% 100%; animation: funshine 4s linear infinite; }
.fun.auction { background: #b0483f; }
@keyframes funshine { to { background-position: 200% 0; } }
.fun i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--edge); flex: none;
  background: conic-gradient(#e46f8e 0 60deg, #f2c14e 0 120deg, #45a872 0 180deg, #2f8ee0 0 240deg, #a35fd6 0 300deg, #14f195 0 360deg); }
.fun.auction i { border-radius: 3px; background: linear-gradient(#f2c14e 0 45%, #8a5a2a 0); }
/* окно колеса */
.modal.wide { width: min(760px, calc(100vw - 32px)); }
.wheelbox { display: flex; gap: 22px; align-items: center; padding: 10px 22px 22px !important; }
.wwrap { position: relative; width: 300px; height: 300px; flex: none; }
.wwrap canvas { width: 300px; height: 300px; display: block; filter: drop-shadow(0 5px 0 rgba(20, 10, 16, .4)); }
.wptr { position: absolute; left: 50%; top: -8px; z-index: 2; translate: -50% 0; width: 0; height: 0; border: 14px solid transparent; border-top: 24px solid #e5534b;
  filter: drop-shadow(0 2px 0 #2a1a20) drop-shadow(0 -2px 0 #2a1a20); }
.wside { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.wsub { font-size: 15px; color: var(--ink2); line-height: 1.35; }
.wres { min-height: 44px; padding: 10px 12px; border: 3px dashed var(--paper3); border-radius: 8px; font-size: 18px; text-align: center; }
.wres b { color: var(--green); }
.wspin { display: flex; flex-direction: column; justify-content: center; gap: 2px; height: 64px; }
.wspin span { font-size: 24px; } .wspin small { font-size: 13px; opacity: .9; }
.wspin:disabled { filter: grayscale(.7) brightness(.85); cursor: default; transform: none; }
.wleft { font-size: 14px; color: var(--ink2); text-align: center; }
.solc { color: #0fbf78; text-shadow: 0 0 8px rgba(20, 241, 149, .6); }
/* окно аукциона (заготовка) */
.aucbox { display: flex; flex-direction: column; gap: 14px; padding: 8px 22px 22px !important; }
.alot { display: flex; gap: 16px; align-items: center; padding: 12px; border: 3px solid var(--edge); border-radius: 10px; background: #2a1f3a; color: #fff; }
.achest { width: 84px; height: 70px; flex: none; border: 3px solid #1a1014; border-radius: 8px 8px 4px 4px; image-rendering: pixelated;
  background: linear-gradient(#c98a3a 0 38%, #1a1014 0 44%, #a86a2a 0); box-shadow: inset 0 0 0 4px #f2c14e, 0 0 24px rgba(20, 241, 149, .5); position: relative; }
.achest::after { content: 'SOL'; position: absolute; left: 50%; top: 34%; translate: -50% -50%; font: 700 13px 'Tiny5', monospace; color: #14f195; background: #1a1014; padding: 2px 4px; border-radius: 3px; }
.aname { font-size: 22px; font-weight: 700; color: var(--gold); } .adesc { font-size: 14px; opacity: .85; margin: 4px 0 8px; }
.atimer { font-size: 15px; } .atimer b { color: #14f195; font-size: 18px; }
.arules { font-size: 14px; color: var(--ink2); } .arules ol { margin: 6px 0 0 20px; padding: 0; line-height: 1.5; }
.abids { font-size: 14px; } .aempty { margin-top: 6px; padding: 12px; border: 3px dashed var(--paper3); border-radius: 8px; text-align: center; color: var(--ink3); }
.abid { display: flex; gap: 10px; } .abid input { flex: 1; height: 46px; padding: 0 12px; border: 3px solid var(--edge); border-radius: 8px; font: 16px 'Tiny5', monospace; background: #fff8ea; }
/* SOL выпал */
.solwin { text-align: center; padding: 10px 22px 26px !important; }
.solbig { font: 700 84px/1 'Tiny5', monospace; color: #14f195; text-shadow: 0 0 22px rgba(20, 241, 149, .8), 4px 4px 0 #2a1a20; animation: lbshout .4s steps(2) infinite; }
.soltxt { font-size: 17px; margin-top: 12px; line-height: 1.4; } .soltime { margin-top: 8px; color: var(--ink3); font-size: 13px; }

/* ---------- рыбалка (fishing.js) ---------- */
/* z-index 125 (было 95, владелец 04.11): поверх всех подсказок и уведомлений игры (naphint, tkhint, пак, #tip 120) */
#fishing { position: fixed; inset: 0; z-index: 125; display: none; place-items: center; background: rgba(12, 6, 14, .78); }
#fishing.on { display: grid; }
#fishing .fwrap { position: relative; }
#fishing .fcv { display: block; border: 4px solid #2a1a20; border-radius: 10px; box-shadow: 0 8px 0 rgba(0, 0, 0, .4), 0 0 0 4px #c9a25a; cursor: crosshair; }
#fishing .fhud { position: absolute; left: 14px; top: 14px; width: 210px; padding: 10px 14px 12px; border: 3px solid #c9a25a; border-radius: 8px;
  background: rgba(26, 28, 44, .88); color: #f2e6c8; pointer-events: none; }
#fishing .ft { font-size: 20px; letter-spacing: 1px; text-align: center; color: #f2e6c8; border-bottom: 2px solid #c9a25a; padding-bottom: 6px; margin-bottom: 6px; }
#fishing .fl { font-size: 11px; letter-spacing: 1px; color: #b8a888; text-align: center; margin-top: 4px; }
#fishing .fv { font-size: 30px; text-align: center; color: #f2c14e; } #fishing .fv.sm { font-size: 17px; color: #f2e6c8; } #fishing .fv.cost { color: #7dff9a; }
#fishing .fh { margin-top: 8px; font-size: 12px; text-align: center; color: #9fd8ff; line-height: 1.3; }
#fishing .fmsg { position: absolute; left: 50%; top: 38%; translate: -50% -50%; font: 700 28px 'Tiny5', monospace; color: #fff; white-space: nowrap; pointer-events: none; opacity: 0; scale: .6;
  text-shadow: 3px 3px 0 #2a1a20, -2px 2px 0 #2a1a20, 2px -2px 0 #2a1a20, -2px -2px 0 #2a1a20; transition: opacity .15s, scale .25s cubic-bezier(.3, 1.6, .5, 1); }
#fishing .fmsg.on { opacity: 1; scale: 1; } #fishing .fmsg.good b { color: #7dff9a; } #fishing .fmsg.bad { color: #ff8a8a; } #fishing .fmsg.gold { color: #ffd24a; }
#fishing .fx { position: absolute; right: -14px; top: -14px; width: 40px; height: 40px; border-radius: 8px; border: 3px solid var(--edge); background: var(--coral); color: #fff; font-weight: 700; font-size: 18px;
  box-shadow: inset 0 -3px 0 var(--coral2); cursor: pointer; }
/* рыбалка: поклёвка и обучение (владелец, 17.11) — на поклёвке рамка пруда вспыхивает жёлто-красным, по центру крупный мигающий CLICK NOW! */
/* поклёвка: по краям экрана лёгкое прозрачное мигание (владелец, 17.11 — без надписей и «!») */
#fishing::after { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: 0; z-index: 4;
  box-shadow: inset 0 0 90px 24px rgba(255, 236, 170, .55); }
#fishing.biting::after { animation: fbiteEdge .32s ease-in-out infinite alternate; }
@keyframes fbiteEdge { from { opacity: .15; } to { opacity: .8; } }
#fishing .fq { position: absolute; right: 34px; top: -14px; width: 40px; height: 40px; border-radius: 8px; border: 3px solid var(--edge); background: #fff; color: #2a1a20; font-weight: 800; font-size: 20px;
  box-shadow: inset 0 -3px 0 #d8d0e0; cursor: pointer; }
#fishing .ftut { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 440px; padding: 16px 22px 18px; border: 3px solid #c9a25a; border-radius: 10px;
  background: rgba(26, 28, 44, .96); color: #f2e6c8; display: none; z-index: 3; box-shadow: 0 10px 0 rgba(0, 0, 0, .4); }
#fishing .ftut.on { display: block; animation: pop .3s; }
#fishing .ftut .tt { font-size: 24px; letter-spacing: 2px; text-align: center; border-bottom: 2px solid #c9a25a; padding-bottom: 8px; margin-bottom: 10px; }
#fishing .ftut .ts { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0; }
#fishing .ftut .ts > i { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #f2c14e; color: #2a1a20; font-style: normal; font-weight: 800; font-size: 16px; }
#fishing .ftut .th { font-size: 16px; color: #f2c14e; letter-spacing: 1px; }
#fishing .ftut p { margin: 2px 0 0; font-size: 14px; line-height: 1.35; color: #d8cfb8; } #fishing .ftut p b { color: #fff; } #fishing .ftut p b.y { color: #ffd24a; }
#fishing .ftut .tgo { display: block; margin: 14px auto 0; }
/* рыбалка: карточка улова, приманки, итог раунда */
#fishing .fbaits { display: flex; justify-content: center; gap: 5px; margin: 8px 0 2px; }
#fishing .fbaits i { width: 14px; height: 14px; border-radius: 50% 50% 50% 0; rotate: -45deg; background: #3a3346; border: 2px solid #1a1420; }
#fishing .fbaits i.on { background: radial-gradient(circle at 35% 35%, #ffb3b3, #e5534b); }
#fishing .fcard { position: absolute; right: 13%; top: 50%; translate: 0 -50%; width: 330px; padding: 10px 18px 14px; color: #f2e6c8; pointer-events: none;
  background: linear-gradient(90deg, rgba(20, 24, 40, 0), rgba(20, 24, 40, .82) 18%); opacity: 0; transition: opacity .2s; }
#fishing .fcard.on { opacity: 1; }
#fishing .fcard canvas { display: block; width: 300px; height: 150px; margin: -60px 0 -6px -40px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .45)); }
#fishing .fcard .cn { font-size: 28px; margin-bottom: 8px; text-shadow: 2px 2px 0 rgba(0, 0, 0, .5); }
#fishing .fcard .cr { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: #c9bfa8; margin: 2px 0; }
#fishing .fcard .cr b { color: #f2e6c8; } #fishing .fcard .cr.bonus i { color: #7fd8ff; font-style: normal; }
#fishing .fcard .ct { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 6px; border-top: 2px solid rgba(201, 162, 90, .6); font-size: 18px; }
#fishing .fcard .ct b { font-size: 34px; color: #f2c14e; }
#fishing .fcard .cm { margin-top: 4px; font-size: 13px; color: #7dff9a; } #fishing .fcard .cc { margin-top: 8px; font-size: 11px; color: #9a90a8; }
#fishing .fcard .cm .csol { color: #ffd24a; text-shadow: 0 0 8px rgba(255, 200, 80, .8); }
/* SOLY FiSH: имя на карточке улова переливается голо-текстом (как карты) */
#fishing .fcard .cn.holo-t, #fishing .fcard.gold .cn.holo-t { display: inline-block; color: transparent !important; text-shadow: none !important; }

/* ---------- кат-сцена SOLY FiSH (solcine.js) ---------- */
#solcine { position: fixed; inset: 0; z-index: 9000; overflow: hidden; cursor: pointer; opacity: 0; transition: opacity .12s; font-family: system-ui, sans-serif; }
#solcine.on { opacity: 1; }
#solcine.bye { opacity: 0; transition: opacity .7s; }
#solcine .sbg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 44%, #10283a 0%, #070b14 55%, #020205 100%); }
#solcine.coin .sbg { background: radial-gradient(ellipse at 50% 42%, #2a1446 0%, #0c0718 55%, #020205 100%); transition: background 1s; }
/* белая вспышка на старте, потом бело-фиолетовая на схлопывании */
#solcine .sflash { position: absolute; inset: 0; pointer-events: none; background: #fff; animation: solFlash .5s ease-out both; }
#solcine.boom .sflash { animation: solBoom .9s ease-out both; }
@keyframes solFlash { from { opacity: 1; } to { opacity: 0; } }
@keyframes solBoom { 0% { opacity: 1; background: radial-gradient(circle at 50% 44%, #fff 0%, #f0d8ff 40%, #b48cff 100%); } 100% { opacity: 0; } }
/* лучи: в начале — холодные полосы света сквозь воду, на монете — голо-радуга, медленно вращаются */
#solcine .srays { position: absolute; left: 50%; top: 44%; width: 170vmax; height: 170vmax; margin: -85vmax 0 0 -85vmax; pointer-events: none; opacity: .22;
  background: repeating-conic-gradient(rgba(150, 220, 255, .35) 0 4deg, transparent 4deg 13deg);
  -webkit-mask: radial-gradient(circle, #000 0 8%, transparent 48%); mask: radial-gradient(circle, #000 0 8%, transparent 48%); animation: solRays 40s linear infinite; }
#solcine.coin .srays { top: 40%; opacity: .55; transition: opacity 1s;
  background: repeating-conic-gradient(rgba(255, 120, 220, .5) 0 5deg, transparent 5deg 10deg, rgba(120, 255, 220, .45) 10deg 15deg, transparent 15deg 20deg, rgba(255, 228, 120, .45) 20deg 25deg, transparent 25deg 30deg);
  animation-duration: 24s; }
@keyframes solRays { to { rotate: 360deg; } }
#solcine canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
#solcine .s3d { filter: drop-shadow(0 0 30px rgba(190, 140, 255, .55)); }
/* ударная волна от монеты */
#solcine .sring { position: absolute; left: 50%; top: 40%; width: 20vmin; height: 20vmin; margin: -10vmin 0 0 -10vmin; border-radius: 50%; pointer-events: none; opacity: 0;
  border: 4px solid #fff; box-shadow: 0 0 30px #ff9fe6, inset 0 0 30px #7affd8; }
#solcine.coin .sring { animation: solRing 1.1s cubic-bezier(.1, .7, .3, 1) both; }
@keyframes solRing { 0% { transform: scale(.1); opacity: 1; } 100% { transform: scale(5); opacity: 0; } }
/* кино-полосы; субтитр — в нижней */
#solcine .sbars i { position: absolute; left: 0; right: 0; height: 12vh; background: #000; transition: transform .8s cubic-bezier(.2, .8, .2, 1); display: grid; place-items: center; }
#solcine .sbars .top { top: 0; transform: translateY(-100%); } #solcine .sbars .bot { bottom: 0; transform: translateY(100%); }
#solcine.on .sbars i { transform: none; }
#solcine.bye .sbars i.top { transform: translateY(-100%); } #solcine.bye .sbars i.bot { transform: translateY(100%); }
#solcine .ssub { font: 500 clamp(14px, 1.6vw, 22px)/1.2 system-ui, sans-serif; letter-spacing: .12em; color: #f4efe2; text-shadow: 0 0 8px rgba(0, 0, 0, .9); }
#solcine .ssub:not(:empty)::after { content: '▍'; margin-left: 2px; color: #7affd8; animation: solCaret .8s steps(1) infinite; }
@keyframes solCaret { 50% { opacity: 0; } }
/* титр: маленькая строка с огромной разрядкой и имя, буквы сходятся из широкой разрядки и размытия */
#solcine .stitle { position: absolute; left: 0; right: 0; bottom: 17vh; text-align: center; pointer-events: none; opacity: 0; transition: opacity .35s; }
#solcine.title .stitle { opacity: 1; }
#solcine .sk { font: 600 clamp(11px, 1.1vw, 15px)/1 system-ui, sans-serif; letter-spacing: .9em; color: #ffd24a; text-shadow: 0 0 12px rgba(255, 200, 80, .7); margin-bottom: 14px; }
#solcine .sn { font: 900 clamp(48px, 8.5vw, 132px)/1 system-ui, sans-serif; white-space: nowrap; }
#solcine.title .sn { animation: solTrack 1.3s cubic-bezier(.15, .8, .25, 1) both, holo 2.4s linear infinite; }
@keyframes solTrack { from { letter-spacing: .7em; filter: blur(14px); opacity: 0; } to { letter-spacing: .04em; filter: drop-shadow(0 4px 0 #2a0e18) drop-shadow(0 0 14px rgba(255, 160, 240, .55)); opacity: 1; } }
/* сбой: картинку дёргает и красит */
#solcine.glitch .s2d { animation: solGlitch .26s steps(2) both; }
@keyframes solGlitch { 0% { transform: translate(8px, -3px); filter: hue-rotate(90deg) contrast(1.4); } 50% { transform: translate(-10px, 4px); filter: hue-rotate(-60deg) saturate(2); } 100% { transform: none; filter: none; } }
#solcine.shake { animation: solShake .45s linear both; }
@keyframes solShake { 0%, 100% { transform: none; } 20% { transform: translate(-9px, 6px); } 40% { transform: translate(8px, -7px); } 60% { transform: translate(-6px, -4px); } 80% { transform: translate(4px, 5px); } }
/* приз */
#solcine .swon { position: absolute; left: 0; right: 0; bottom: 15vh; text-align: center; pointer-events: none; }
#solcine .sw { font: 900 clamp(46px, 7.5vw, 116px)/1 system-ui, sans-serif; letter-spacing: .06em; opacity: 0; }
#solcine.won .sw { animation: scPop .6s cubic-bezier(.2, 1.7, .4, 1) both; }
#solcine .sw { filter: drop-shadow(0 4px 0 #2a0e18) drop-shadow(0 0 14px rgba(255, 160, 240, .55)) drop-shadow(0 0 26px rgba(120, 255, 230, .35)); }
#solcine .sw .ww { display: inline-block; white-space: nowrap; }
/* буквы волной вверх-вниз (как подписи у карт, только мягче, чтобы читалось) + голо-перелив по всему слову */
#solcine .sw i { display: inline-block; font-style: normal; color: transparent; -webkit-background-clip: text; background-clip: text;
  background: linear-gradient(90deg, #ff9fe6 0, #fff 2em, #7affd8 4em, #ffe36f 6em, #ff6fd8 8em, #9fd0ff 10em, #ff9fe6 12em) 0 0 / 12em 100% repeat-x;
  -webkit-background-clip: text; background-clip: text;
  animation: solWave 1.3s ease-in-out var(--p) infinite alternate, solHoloX 2.4s linear infinite; }
@keyframes solWave { from { transform: translateY(.07em) rotate(-2deg); } to { transform: translateY(-.07em) rotate(2deg); } }
@keyframes solHoloX { from { background-position-x: calc(var(--x) * -1); } to { background-position-x: calc(var(--x) * -1 - 12em); } }
#solcine .sgo { position: absolute; right: 4vw; bottom: calc(12vh + 18px); z-index: 3; padding: 10px 22px; border: 2px solid rgba(255, 255, 255, .8); border-radius: 4px; background: rgba(0, 0, 0, .35);
  color: #fff; font: 800 15px/1 system-ui, sans-serif; letter-spacing: .3em; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .6s, background .15s; }
#solcine.go .sgo { opacity: 1; pointer-events: auto; animation: solGo 1.6s ease-in-out .6s infinite; }
#solcine .sgo:hover { background: rgba(255, 255, 255, .18); }
@keyframes solGo { 50% { box-shadow: 0 0 18px rgba(122, 255, 216, .8); } }
#solcine .sgrain { position: absolute; inset: -50%; pointer-events: none; opacity: .5; mix-blend-mode: overlay; animation: solGrain .5s steps(5) infinite; }
@keyframes solGrain { 0% { transform: translate(0, 0); } 20% { transform: translate(-7%, 4%); } 40% { transform: translate(5%, -6%); } 60% { transform: translate(-3%, 8%); } 80% { transform: translate(8%, 2%); } 100% { transform: translate(0, 0); } }
#fishing .fcard.gold .cn { color: #ffd24a !important; text-shadow: 0 0 12px rgba(255, 200, 80, .8), 2px 2px 0 rgba(0, 0, 0, .5); }
#fishing .fsum { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 380px; padding: 18px 22px 20px; text-align: center; display: none;
  background: rgba(26, 28, 44, .94); border: 3px solid #c9a25a; border-radius: 10px; color: #f2e6c8; }
#fishing .fsum.on { display: block; animation: pop .3s; }
#fishing .fsum .sh { font-size: 22px; letter-spacing: 2px; } #fishing .fsum .sv { font-size: 46px; color: #f2c14e; margin: 4px 0 10px; }
#fishing .fsum .ss div { display: flex; justify-content: space-between; padding: 4px 10px; margin: 3px 0; border-radius: 6px; background: rgba(255, 255, 255, .05); color: #8f879c; font-size: 14px; }
#fishing .fsum .ss div.ok { color: #f2e6c8; } #fishing .fsum .ss div.got { background: rgba(125, 255, 154, .15); color: #7dff9a; }
#fishing .fsum .sb { margin: 12px 0; font-size: 15px; } #fishing .fsum .sb b { color: #7dff9a; }

/* окно колеса фортуны: 3D-колесо по центру в стиле открытия карты (casino.js openWheel) */
.wheelrev .wstage { height: min(54vh, 520px); aspect-ratio: 1; }
/* колесо фортуны — вся сцена в 2 раза крупнее (владелец, 31.10): колесо почти во весь холст, лучи и свечение тоже вдвое больше,
   записка сразу под колесом и его не закрывает; всё влезает в экран (размеры в vh, записка — масштаб интерфейса) */
/* окно колеса (владелец, 01.11): без заголовка, колесо и записка крупнее в ~1.5 раза. Витрина — квадрат 97.5vh, колесо в ней ~0.72
   высоты (≈70vh), центр колеса на 42vh от верха; записка (zoom 1.5, casino.js fitNote) прижата к низу экрана и колесо не закрывает */
.wheelrev:not(.aucrev) { width: 100vw; }
.wheelrev:not(.aucrev) .wstage { position: absolute; left: 50%; top: 0; height: 70vh; translate: -50% 0; } /* размер и место — casino.js placeWheel */
.wheelrev:not(.aucrev) .notecard { position: absolute; left: 50%; bottom: 1vh; translate: -50% 0; margin: 0; }
.wheelrev:not(.aucrev) .rays { width: min(230vh, 2400px); height: min(230vh, 2400px); }
.wheelrev .wstage canvas.wheel3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 2; touch-action: none; }
.wheelrev .notecard { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.wheelrev .wres { min-height: 30px; font-size: 20px; font-weight: 700; text-align: center; }
.wheelrev .wres b { color: var(--green); }
.wheelrev .wbtns { display: flex; justify-content: center; }
.wheelrev .wspin { width: 240px; display: flex; flex-direction: column; justify-content: center; gap: 2px; height: 60px; }
#modals .wx { position: absolute; z-index: 5; width: 44px; height: 44px; border-radius: 8px; border: 3px solid var(--edge); background: var(--coral); color: #fff;
  font-weight: 700; font-size: 22px; line-height: 1; box-shadow: inset 0 -4px 0 var(--coral2), 0 4px 0 rgba(0,0,0,.35); cursor: pointer; }
#modals .wx:hover { transform: translateY(-2px); } #modals .wx:active { transform: translateY(2px); }
.wheelrev .wspin span { font-size: 24px; } .wheelrev .wspin small { font-size: 13px; opacity: .9; }
.wheelrev .wspin:disabled { filter: grayscale(.7) brightness(.85); cursor: default; transform: none; }
.wheelrev .wleft { font-size: 14px; color: var(--ink2); text-align: center; }
/* окно аукциона: 3D-сундук + список ставок (casino.js openAuction) */
.aucrev .wstage { height: min(48vh, 470px); z-index: 3; } /* сундук крупный и чуть заходит на записку снизу (владелец) */
.aucrev .notecard { width: min(460px, 70vh); gap: 8px; margin-top: -64px; padding-top: 52px; }
.aucrev .aname { font-size: 26px; font-weight: 800; color: #7a2346; text-align: center; letter-spacing: .04em; }
.aucrev .adesc { margin-top: -6px; text-align: center; font-size: 14px; line-height: 1.3; color: var(--ink2); }
.aucrev .atimer { text-align: center; color: var(--ink2); } .aucrev .atimer b { color: #0fae6c; }
.aucrev .abids { font-size: 15px; text-align: left; }
.aucrev .alist { list-style: none; margin: 6px 0 0; padding: 0; border: 3px dashed var(--paper3); border-radius: 8px; }
.aucrev .alist li { display: grid; grid-template-columns: 40px 1fr auto; gap: 8px; padding: 5px 10px; font: 15px 'Tiny5', monospace; color: var(--ink3); }
.aucrev .alist li + li { border-top: 2px dashed var(--paper3); }
.aucrev .alist .ar { color: #b0567a; }
.aucrev .abid { display: flex; gap: 10px; }
.aucrev .abid input { flex: 1; min-width: 0; height: 46px; padding: 0 12px; border: 3px solid var(--edge); border-radius: 8px; font: 16px 'Tiny5', monospace; background: #fff8ea; }
.aucrev .abid .bigbtn { min-width: 0; height: 46px; padding: 0 14px; }
/* свечение открытого сундука в окне аукциона (casino.js .cglow): большое мягкое пятно за холстом, без краёв */
.aucrev .cglow { position: absolute; left: 50%; top: 40%; width: 150%; aspect-ratio: 1; translate: -50% -50%; z-index: 1; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(255, 246, 200, .85) 0, rgba(255, 226, 150, .45) 18%, rgba(190, 255, 215, .16) 38%, rgba(120, 255, 190, .05) 55%, transparent 70%); }
/* содержимое вкладок магазина (владелец, 31.10): CARDS — в 2 раза мельче, SHOP — в 1.3 раза мельче, чем после масштаба HUD;
   рамка-бумага остаётся во всю панель, а вся панель по-прежнему масштабируется под экран вместе с #hud (ui.js fitUI) */
.page[data-page="kols"] > .paper > * { zoom: var(--pz, .88); } /* подогнано по скриншоту владельца (v242), 4 карты в ряд */
.page[data-page="shop"] > .paper > * { zoom: var(--pz, .85); } /* владелец: все 9 котов + апгрейды без прокрутки (подобрано замером: влезает при ≤ .87 на 1280×640) */
.page[data-page="kols"] .kgrid { grid-template-columns: repeat(4, 1fr); } /* ровно 4 карты в ряд (владелец) */
/* паки на вкладке CARDS — одна строка без описания, ниже (владелец, 31.10); FREE — надпись на картинке пака под котиком */
.packbtn { padding: 6px 10px; gap: 10px; }
.packbtn .t { white-space: nowrap; font-size: 17px; }
.packbtn .pkimg { position: relative; flex: none; width: 44px; height: 44px; animation: packHover 2.2s ease-in-out infinite; }
.packbtn .pkimg > img { width: 44px; height: 44px; image-rendering: pixelated; display: block; animation: none; }
.packbtn .pkimg > b { position: absolute; left: 50%; bottom: 3px; translate: -50% 0; font: 700 10px/1 'Tiny5', monospace; letter-spacing: .5px; color: #fff3a8;
  text-shadow: 1px 0 #4a1a2c, -1px 0 #4a1a2c, 0 1px #4a1a2c, 0 -1px #4a1a2c; pointer-events: none; }
.packbtn .price { height: 40px; }
/* вкладка CARDS плотнее по высоте (владелец, 31.10: «видно все карты и все стаки» на 1920×1080, карты крупные как на его фото 1):
   меньше пустоты между рядами карт, строка про бесплатный пак — компактнее, строки стаков ниже */
.page[data-page="kols"] .list { gap: 6px; }
.page[data-page="kols"] .empty { padding: 2px 8px 4px; font-size: 13px; line-height: 1.25; }
.page[data-page="kols"] .kgrid { row-gap: 2px; padding-top: 2px; }
.page[data-page="kols"] .kslot { margin-top: 2px; }
.page[data-page="kols"] .stkhelp { margin: -4px 2px 2px; }
.page[data-page="kols"] .stk { padding: 4px 10px; }
.page[data-page="kols"] .list > * { flex-shrink: 0; }
.page[data-page="kols"] .stk .mem .xm { min-width: 38px; height: 38px; }
.page[data-page="kols"] .stk .mem img { height: 30px; } .page[data-page="kols"] .stk .mem span { height: 30px; }
.page[data-page="kols"] .stk .mem canvas.live3d { height: 38px !important; width: auto !important; }
.page[data-page="kols"] .stk .mem img { height: 30px; }
.page[data-page="kols"] .stk .ex { margin-top: 1px; line-height: 1.2; }
/* глазик «осмотреть персонажа» на открытой карте (ui.js addEye): появляется при наведении, правый верхний угол */
.kcard .keye { position: absolute; right: -8px; top: -8px; z-index: 4; width: 22px; height: 22px; padding: 0; border-radius: 6px; display: grid; place-items: center;
  background: #6b4fb8; border: 2px solid var(--edge); box-shadow: 0 2px 0 rgba(0,0,0,.35); cursor: pointer;
  opacity: 0; transform: scale(.4); pointer-events: none; transition: opacity .1s, transform .15s cubic-bezier(.3, 1.8, .5, 1); }
.kcard:hover .keye { opacity: 1; transform: none; pointer-events: auto; }
.kcard .keye:hover { background: #8a6be0; transform: scale(1.12); }
.kcard.locked .keye { display: none; }
/* таблица ставок аукциона: топ-8, «…», строка игрока */
.aucrev .alist li { padding: 3px 10px; }
.aucrev .alist li.adots { display: block; text-align: center; padding: 0 10px; line-height: 1; letter-spacing: 4px; color: var(--ink3); }
.aucrev .alist li.ame { background: #fff3c9; color: var(--ink); font-weight: 700; border-top: 2px dashed var(--paper3); }
.aucrev .alist li.ame .ar, .aucrev .alist li.ame .an { color: #7a2346; }
/* аукцион (владелец, 01.11): сундук и записка до ×2, позиции считает casino.js placeAuction */
.aucrev { width: 100vw; }
.aucrev .wstage { position: absolute; left: 50%; top: 0; translate: -50% 0; z-index: 3; }
.aucrev .notecard { position: absolute; left: 50%; translate: -50% 0; margin: 0; padding-top: 18px; }
/* замок магазина (владелец, 01.11): просто иконка замка размером с бейдж (24px), без рамки и жёлтого фона, на углу панели */
#panelLock { width: 26px; height: 26px; right: -6px; bottom: -8px; border: 0; border-radius: 0; background: none; box-shadow: none; }
#panelLock img { width: 24px; height: 24px; opacity: .75; filter: drop-shadow(0 2px 0 rgba(10, 4, 8, .55)); }
#panelLock.on { background: none; box-shadow: none; }
#panelLock.on img { opacity: 1; filter: drop-shadow(0 2px 0 rgba(10, 4, 8, .55)) drop-shadow(0 0 4px rgba(255, 214, 90, .9)); }
#lockhint { bottom: 30px; }
/* подсказка апгрейда: название, описание и цена на 50% крупнее (владелец, 01.11) */
#tip:has(.utip) { max-width: 380px; min-width: 260px; }
#tip .utip h4 { font-size: 30px; }
#tip .utip .eff { font-size: 22px; padding: 9px 11px; }
#tip .utip .cost { font-size: 24px; margin-top: 9px; }
#tip .utip .cost img { width: 30px; height: 30px; vertical-align: -6px; }
/* окно первого золотого билета (ui.js ticketIntro) */
.tkintro .tkstage { height: min(36vh, 340px); aspect-ratio: 16 / 9; display: grid; place-items: center; }
.tkintro .bigtk { position: relative; width: 88%; aspect-ratio: 120 / 61; animation: stagepop .55s cubic-bezier(.3, 1.6, .5, 1) both;
  filter: drop-shadow(0 8px 0 rgba(10, 4, 8, .45)) drop-shadow(0 0 26px rgba(255, 214, 90, .7)); z-index: 2; }
.tkintro .tkin { position: absolute; inset: 0; animation: tkfloat 3s ease-in-out infinite; }
.tkintro .bigtk img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.tkintro .bigtk .glint { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; overflow: hidden;
  -webkit-mask: url(../assets/golden_ticket.png) center / 100% 100%; mask: url(../assets/golden_ticket.png) center / 100% 100%; }
.tkintro .bigtk .glint::after { content: ''; position: absolute; top: -20%; bottom: -20%; width: 26%; left: -40%;
  background: linear-gradient(90deg, transparent, rgba(255, 250, 210, .9), transparent); transform: skewX(-20deg); animation: glint 1.8s ease-in-out infinite; }
@keyframes tkfloat { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-10px); } }
.tkintro .notecard { width: min(560px, 80vw); }
.tkintro .notecard .t { font-size: 30px; }
.tkintro .notecard .eff { display: block; font-size: 17px; line-height: 1.4; margin-top: 8px; }
.tkintro .tkp { margin-top: 10px; font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.35; overflow-wrap: anywhere; }
.tkintro .gold, .tkintro .purple { position: relative; display: inline-block; font-weight: 800; }
.tkintro .gold { color: #e0a81e; text-shadow: 0 0 8px rgba(255, 214, 90, .8), 0 2px 0 #7a5410; }
.tkintro .purple { color: #9a4fe0; text-shadow: 0 0 8px rgba(190, 120, 255, .7), 0 1px 0 #3e1a66; }
.tkintro .gsp, .tkintro .psp { position: absolute; width: 10px; height: 10px; translate: -50% -50%; pointer-events: none;
  animation: twinkle var(--d) ease-in-out var(--dl) infinite; }
.tkintro .gsp::before, .tkintro .psp::before { content: ''; position: absolute; inset: 0; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.tkintro .gsp::before { background: radial-gradient(circle, #fff 0 20%, #ffd86b 35%); }
.tkintro .psp::before { background: radial-gradient(circle, #fff 0 20%, #c58cff 35%); }
/* аукцион: ставки в золотых билетах */
.aucrev .alist .ab { display: inline-flex; align-items: center; gap: 4px; justify-content: flex-end; }
.aucrev .alist .atk { width: 28px; height: auto; image-rendering: pixelated; filter: drop-shadow(0 1px 0 rgba(10, 4, 8, .35)); }
.aucrev .alist .atn { min-width: 34px; text-align: left; }
.aucrev .abid input { color: #3a2418; -webkit-text-fill-color: #3a2418; caret-color: #3a2418; } /* у владельца цифры в поле были еле видны */
.aucrev .abid input::placeholder { color: #a8927a; -webkit-text-fill-color: #a8927a; }
.aucrev .alist li.me { background: #fff3c9; color: var(--ink); font-weight: 700; } .aucrev .alist li.me .an { color: #7a2346; }
.aucrev .alist li.bump { animation: abump .6s ease-out; } @keyframes abump { 0% { background: #ffe27a; } 100% { background: #fff3c9; } }
.aucrev .abid input { -moz-appearance: textfield; } .aucrev .abid input::-webkit-outer-spin-button, .aucrev .abid input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.aucrev .amax { height: 46px; padding: 0 12px; border: 3px solid var(--edge); border-radius: 8px; background: var(--gold); color: var(--ink); font-weight: 800; letter-spacing: 1px; cursor: pointer;
  box-shadow: inset 0 -4px 0 #b8861c, 0 3px 0 rgba(10, 4, 8, .35); }
.aucrev .amax:hover { transform: translateY(-2px); } .aucrev .amax:active { transform: translateY(2px); }
#tickets .more { display: none; }
/* счётчик билетов ещё на 15% крупнее (владелец, 03.11): картинка 65 → 75, число 29 → 33 */
#tickets { padding: 8px 16px 8px 12px; column-gap: 9px; }
#tickets > img { width: 75px; }
#tickets > b { font-size: 33px; }
#tickets > b::before { font-size: 22px; }
/* окно билета: свечение — квадрат с градиентом closest-side, гаснет внутри себя (раньше обрезалось краем витрины 16:9 — «круглое обрезанное») */
.tkintro .tkstage .glow { inset: auto; left: 50%; top: 50%; width: 125%; aspect-ratio: 1; translate: -50% -50%; border-radius: 0;
  background: radial-gradient(closest-side, rgba(255, 222, 168, .62) 0, rgba(232, 160, 88, .4) 30%, rgba(150, 92, 46, .18) 60%, transparent 100%); }
.tkintro .tkstage { height: min(30vh, 300px); }
.tkintro .notecard { width: min(560px, 62vw); }
/* окно билета (владелец, 01.11): билет и свечение крупнее на 50%, записка чуть ниже */
.tkintro .tkstage { height: min(45vh, 450px); }
.tkintro .notecard { margin-top: 3vh; }
.tkintro .tkstage .spark { z-index: 3; } /* звёздочки поверх края билета — видно и сверху, и снизу */
.tkintro .tkp { font-size: 8.5px; margin-top: 8px; font-weight: 600; } .tkintro .tkp .psp { width: 6px; height: 6px; } /* приписка как P.S. — вдвое мельче (владелец) */
/* окно двойного (holo) билета: билет переливается как голо-карта */
.tkintro .tkin .holo { display: none; }
.tkholo .tkin .holo { display: block; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: color; opacity: .7;
  background: linear-gradient(115deg, #ff6fd8 0%, #ffe36f 16%, #7affd8 32%, #6fa8ff 48%, #b28bff 64%, #ff6fd8 80%, #ffe36f 100%); background-size: 300% 300%; animation: holo 2.2s linear infinite;
  -webkit-mask: url(../assets/golden_ticket.png) center / 100% 100%; mask: url(../assets/golden_ticket.png) center / 100% 100%; }
.tkholo .tkin img { animation: holohue 3s ease-in-out infinite alternate; }
.tkholo .bigtk { filter: drop-shadow(0 8px 0 rgba(10, 4, 8, .45)) drop-shadow(0 0 22px rgba(255, 140, 230, .6)) drop-shadow(0 0 34px rgba(120, 255, 230, .35)); }
.tkholo .notecard .holo-t { filter: drop-shadow(0 2px 0 #2a0e18) drop-shadow(0 0 8px rgba(255, 160, 240, .5)); }
/* подсказка кота в SHOP (ui.js unitTip): текст на 30% крупнее */
#tip:has(.stip) { max-width: 340px; min-width: 247px; }
#tip .stip h4 { font-size: 26px; }
#tip .stip .eff { font-size: 19.5px; padding: 9px 10px; }
#tip .stip .fl { font-size: 15.6px; }
#logo { display: none !important; } /* лого KITTY CLICKER в углу убрано (владелец, 02.11); кнопки меню поднимаются наверх */
/* кнопки достижений, настроек, FAQ и сброса — вдвое меньше (владелец, 02.11), потом в 1.5 раза крупнее (владелец, 03.11): 26 → 39 px; сброс — красный */
.mbtn:not(.devmon) { width: 39px; height: 39px; border-width: 3px; border-radius: 7px; box-shadow: 0 3px 0 rgba(20,10,16,.5); }
.mbtn:not(.devmon) img { width: 26px; height: 26px; }
.mbtn.reset { background: #8a1c2a; border-color: #2a0a10; }
.mbtn.reset span { font-size: 24px; color: #fff; }
/* «?» FAQ: белая кнопка, знак вопроса розовый с тёмной обводкой — как заголовки игры */
.mbtn.faqbtn span { font: 900 26px/1 'Black Han Sans', Impact, sans-serif; color: var(--pink); -webkit-text-stroke: 3px #4a1a2c; paint-order: stroke fill; translate: 0 1px; }
.mbtn.reset:hover { background: #a3263a; }
#menu { align-items: flex-start; }
/* те же три кнопки — на 30% крупнее (владелец, 02.11) */
/* и ещё на 60% крупнее, потом на 5% меньше (владелец, 03.11): 34 → 54 → 51 px */
.mbtn:not(.devmon) { width: 51px; height: 51px; border-width: 4px; border-radius: 10px; box-shadow: 0 4px 0 rgba(20,10,16,.5); }
.mbtn:not(.devmon) img { width: 33px; height: 33px; }
.mbtn.reset span { font-size: 32px; }
.mbtn.faqbtn span { font-size: 38px; -webkit-text-stroke: 4px #4a1a2c; }

/* ---------- предупреждение о боссе (bosses.js, владелец 02.11): красные края, сирена, надпись кровью с потёками ---------- */
#bosswarn { position: fixed; inset: 0; z-index: 140; pointer-events: none; display: grid; place-items: center; opacity: 0; transition: opacity .25s; }
#bosswarn.on { opacity: 1; } #bosswarn.bye { opacity: 0; transition: opacity .5s; }
#bosswarn .bw-edge { position: absolute; inset: 0; box-shadow: inset 0 0 140px 50px rgba(200, 0, 20, .75), inset 0 0 40px 10px rgba(255, 30, 40, .6);
  animation: bwPulse .5s ease-in-out infinite alternate; }
@keyframes bwPulse { from { opacity: .35; } to { opacity: 1; } }
#bosswarn .bw-text { position: relative; transform: translateY(-8vh) scale(.6) rotate(-3deg); animation: bwIn .45s cubic-bezier(.2, 1.6, .4, 1) forwards; }
@keyframes bwIn { to { transform: translateY(-8vh) scale(1) rotate(-3deg); } }
#bosswarn .bw-text b { display: block; font: 400 clamp(46px, 7vw, 120px)/1 'Black Han Sans', Impact, sans-serif; letter-spacing: 3px; white-space: nowrap;
  color: #b0000f; background: linear-gradient(180deg, #ff2a2a 0%, #b0000f 45%, #5a0008 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 0 #2a0004) drop-shadow(0 0 18px rgba(255, 0, 20, .6)); animation: bwShake .12s steps(2) infinite; }
@keyframes bwShake { 0% { translate: 1px 0; } 50% { translate: -2px 1px; } 100% { translate: 1px -1px; } }
#bosswarn .bw-drips { position: absolute; left: 0; right: 0; top: 72%; height: 0; }
#bosswarn .bw-drips i { position: absolute; top: 0; width: var(--w); height: 0; border-radius: 0 0 99px 99px;
  background: linear-gradient(180deg, #7a0009, #c4001a 70%, #e01428); animation: bwDrip 2.6s cubic-bezier(.5, 0, .9, .6) var(--d) forwards; }
#bosswarn .bw-drips i::after { content: ''; position: absolute; left: 50%; bottom: -4px; width: calc(var(--w) * 1.7); height: calc(var(--w) * 1.9); translate: -50% 0;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 35% 35%, #ff4050, #b0000f 60%, #6a0008); }
@keyframes bwDrip { 0% { height: 0; } 100% { height: var(--h); } }

/* ---------- сон котов (naps.js, владелец 02.11): Zzz столбиком над спящими и таймер NAP TIME ---------- */
.zzz { position: absolute; left: 0; top: 0; pointer-events: none; font: 700 22px/1 'Black Han Sans', Impact, sans-serif; color: #dfe8ff;
  -webkit-text-stroke: 4px #23203a; paint-order: stroke fill; text-shadow: 0 0 8px rgba(140, 170, 255, .7); will-change: transform; }
#naptimer { position: fixed; left: 50%; top: 200px; translate: -50% 0; z-index: 60; pointer-events: none; display: flex; gap: 10px; align-items: center;
  padding: 7px 16px; border: 3px solid #17131d; border-radius: 10px; background: #2c2850; color: #dfe8ff; font-weight: 700; font-size: 15px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .35); animation: napPulse 1.2s ease-in-out infinite; }
#naptimer b { color: #ffd84a; letter-spacing: 1px; } #naptimer i { font-style: normal; color: #ff8fb0; font-size: 18px; } #naptimer u { text-decoration: none; color: #7cf29a; }
@keyframes napPulse { 50% { transform: scale(1.04); } }

/* ---------- 📐 RES (тест): игра в окне другого разрешения ---------- */
.resview { position: fixed; inset: 0; z-index: 400; background: #0c0810; display: flex; flex-direction: column; align-items: center; }
.resview .rbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; padding: 8px; width: 100%; background: #1d1626; }
.resview .rbar button { padding: 6px 10px; border: 2px solid #17131d; border-radius: 7px; background: #3a2f4a; color: #f3e9ff; font-weight: 700; cursor: pointer; }
.resview .rbar button.on { background: #f2c14e; color: #2a1a10; }
.resview .rbar .rx { background: #e5534b; margin-left: 8px; }
.resview .rinfo { color: #b9a9cc; font-style: normal; font-size: 13px; margin-left: 6px; }
.resview .rstage { flex: 1; display: grid; place-items: center; width: 100%; }
.resview .rframe { position: relative; overflow: hidden; box-shadow: 0 0 0 2px #f2c14e, 0 10px 40px rgba(0,0,0,.6); }
.resview .rframe iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #160f24; }

/* подсказка над спящим котом (naps.js): как подсказка у замка магазина, стрелкой вниз на кота */
#naphint { position: fixed; z-index: 95; width: max-content; max-width: 240px; padding: 10px 13px; border: 3px solid var(--gold); border-radius: 10px;
  background: #2a1f3a; color: #fff7e2; font-size: 14px; font-weight: 700; line-height: 1.3; pointer-events: none;
  box-shadow: 0 4px 0 rgba(10, 4, 8, .5), 0 0 18px rgba(255, 214, 90, .45); translate: -50% calc(-100% - 14px);
  opacity: 0; transform: translateY(14px) scale(.3); transform-origin: 50% 100%; transition: opacity .3s ease-out, transform .4s cubic-bezier(.2, 1.5, .4, 1); }
#naphint.on { opacity: 1; transform: none; animation: naphintNudge 1.4s ease-in-out .5s infinite; }
/* своё покачивание: общий hintnudge сбрасывал translate(-50%) — подсказка уезжала вбок от кота */
@keyframes naphintNudge { 0%, 100% { translate: -50% calc(-100% - 14px); } 50% { translate: -50% calc(-100% - 19px); } }
#naphint::after { content: ''; position: absolute; left: 50%; bottom: -15px; translate: -50% 0; border: 8px solid transparent; border-top: 10px solid var(--gold); }
#naphint::before { content: ''; position: absolute; left: 50%; bottom: -8px; translate: -50% 0; z-index: 1; border: 5px solid transparent; border-top: 7px solid #2a1f3a; }

/* ---------- SOL-кошелёк (wallet.js): строка в настройках и блок в SOL CHEST (владелец, 02.11) ---------- */
.wset { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.wset .wlab { white-space: nowrap; }
.wset .waddr { flex: 1; min-width: 0; font: 13px 'Tiny5', monospace; color: #5a3d8a; word-break: break-all; user-select: text; }
.wset .bigbtn { min-width: 0; height: 36px; padding: 0 12px; font-size: 14px; margin-left: auto; }
.wset.open .wform { flex-basis: 100%; }
.wform { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wform input { flex: 1; min-width: 0; height: 42px; padding: 0 10px; border: 3px solid var(--edge); border-radius: 8px; font: 13px 'Tiny5', monospace; background: #fff8ea; color: #1a1210; caret-color: #1a1210; }
.wform input::placeholder { color: var(--ink3); }
.wform .bigbtn { min-width: 0; height: 42px; padding: 0 12px; font-size: 15px; }
.wform .werr { flex-basis: 100%; min-height: 0; font-size: 13px; color: #c23a3a; }
.wform .werr:empty { display: none; }
.wbox { font-size: 14px; color: var(--ink2); }
.wbox .wico { width: 24px; height: 24px; image-rendering: pixelated; vertical-align: middle; }
.wbox:has(> b) { display: flex; gap: 8px; align-items: center; justify-content: center; }
.wbox > b { font: 14px 'Tiny5', monospace; color: #5a3d8a; }
.wbox .wneed { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; line-height: 1.3; }
.wbox .wneed .wico { flex: none; }
.aucrev .aerr { font-size: 13px; color: #c23a3a; text-align: center; margin-top: -4px; }
.aucrev .aerr:empty { display: none; }
/* тестовые кнопки — только для владельца (js/dev.js ставит body.dev) */
body:not(.dev) #devReset, body:not(.dev) #menu .devmon { display: none; }
/* подсказка у первого золотого билета (ticket.js): табличка сбоку от билета, стрелка смотрит на билет */
#tkhint { position: fixed; z-index: 96; width: max-content; max-width: 230px; padding: 10px 13px; border: 3px solid var(--gold); border-radius: 10px;
  background: #2a1f3a; color: #fff7e2; font-size: 14px; font-weight: 700; line-height: 1.3; pointer-events: none;
  box-shadow: 0 4px 0 rgba(10, 4, 8, .5), 0 0 18px rgba(255, 214, 90, .45); opacity: 0; transition: opacity .3s ease-out; }
#tkhint b { display: block; color: var(--gold); font-size: 15px; margin-bottom: 2px; }
#tkhint.on { opacity: 1; }
#tkhint[data-side=right] { translate: 0 -50%; animation: tkhintR 1s ease-in-out infinite; }
#tkhint[data-side=below] { translate: -50% 0; animation: tkhintB 1s ease-in-out infinite; }
#tkhint[data-side=above] { translate: -50% -100%; animation: tkhintA 1s ease-in-out infinite; }
@keyframes tkhintR { 0%, 100% { translate: 0 -50%; } 50% { translate: 6px -50%; } }
@keyframes tkhintB { 0%, 100% { translate: -50% 0; } 50% { translate: -50% 6px; } }
@keyframes tkhintA { 0%, 100% { translate: -50% -100%; } 50% { translate: -50% calc(-100% - 6px); } }
#tkhint::after { content: ''; position: absolute; border: 9px solid transparent; }
#tkhint[data-side=right]::after { left: -21px; top: 50%; margin-top: -9px; border-right: 11px solid var(--gold); }
#tkhint[data-side=below]::after { top: -21px; left: 50%; margin-left: -9px; border-bottom: 11px solid var(--gold); }
#tkhint[data-side=above]::after { bottom: -21px; left: 50%; margin-left: -9px; border-top: 11px solid var(--gold); }
/* бесплатный пак летит к CARDS (ui.js packFly) и табличка-подсказка новичку (packHint) */
.pkfly { position: fixed; left: 0; top: 0; z-index: 97; pointer-events: none; }
.pkfly img { width: 110px; height: 110px; image-rendering: pixelated; display: block;
  filter: drop-shadow(0 6px 0 rgba(10, 4, 8, .45)) drop-shadow(0 0 16px rgba(255, 214, 90, .7)); }
.tab .tabpack.incoming { visibility: hidden; }
.pkland { animation: pkland .5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes pkland { 0% { scale: 1.6; } 100% { scale: 1; } }
#packhint { position: fixed; z-index: 96; width: max-content; max-width: 250px; padding: 10px 13px; border: 3px solid var(--gold); border-radius: 10px;
  background: #2a1f3a; color: #fff7e2; font-size: 14px; font-weight: 700; line-height: 1.3; pointer-events: none;
  box-shadow: 0 4px 0 rgba(10, 4, 8, .5), 0 0 18px rgba(255, 214, 90, .45); opacity: 0; transition: opacity .3s ease-out; }
#packhint b { display: block; color: var(--gold); font-size: 15px; margin-bottom: 2px; }
#packhint.on { opacity: 1; animation: packhintBob 1.2s ease-in-out infinite; }
@keyframes packhintBob { 50% { translate: 0 5px; } }
#packhint::after { content: ''; position: absolute; border: 9px solid transparent; }
#packhint[data-side=below]::after { top: -21px; left: var(--ax, 50%); margin-left: -9px; border-bottom: 11px solid var(--gold); }
#packhint[data-side=left]::after { right: -21px; top: 50%; margin-top: -9px; border-left: 11px solid var(--gold); }
/* бесплатный спин (casino.js): наклейка над колесом справа и значок FREE на кнопке FORTUNE (владелец, 03.11) */
.wheelrev .wfree { position: absolute; right: 2%; top: 9%; z-index: 3; pointer-events: none; display: flex; flex-direction: column; align-items: center;
  padding: 8px 14px; border: 3px solid #4a1a2c; border-radius: 12px; background: linear-gradient(180deg, #ffe27a, #f2a93b); rotate: 8deg;
  box-shadow: 0 4px 0 rgba(10, 4, 8, .5), 0 0 22px rgba(255, 214, 90, .65); animation: wfreeBob 1.6s ease-in-out infinite; }
.wheelrev .wfree b { font: 800 22px/1 'Tiny5', monospace; color: #4a1a2c; letter-spacing: 1px; white-space: nowrap; }
.wheelrev .wfree small { font: 700 14px/1.2 'Tiny5', monospace; color: #4a1a2c; }
.wheelrev .wfree small:empty { display: none; }
.wheelrev .wfree.used { background: linear-gradient(180deg, #e9dccb, #c7b0a2); box-shadow: 0 4px 0 rgba(10, 4, 8, .5); animation: none; }
.wheelrev .wfree.used b { font-size: 14px; }
@keyframes wfreeBob { 50% { translate: 0 -5px; scale: 1.05; } }
.fun.wheel { position: relative; }
.fun .ffree { position: absolute; right: -6px; top: -9px; padding: 2px 6px; border: 2px solid #4a1a2c; border-radius: 6px; background: #ffe27a; color: #4a1a2c;
  font: 800 11px/1 'Tiny5', monospace; letter-spacing: .5px; animation: wfreeBob 1.2s ease-in-out infinite; pointer-events: none; }
.fun .ffree[hidden] { display: none; }

/* ---------- FAQ «как играть» (faq.js): 3 картинки-слайда на весь экран ---------- */
#modals:has(.faq) { background: rgba(14, 11, 12, .92); }
.faq { position: relative; width: 100vw; height: 100vh; display: grid; grid-template-columns: 90px 1fr 90px; grid-template-rows: 1fr auto; align-items: center; }
.faq .fq-slide { grid-column: 2; grid-row: 1; display: flex; justify-content: center; align-items: center; min-height: 0; height: 100%; padding: 4vh 0 0; }
.faq .fq-slide.in .fq-card { animation: fqIn .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes fqIn { 0% { opacity: 0; translate: 0 24px; scale: .96; } 100% { opacity: 1; translate: 0 0; scale: 1; } }
.faq .fq-card { position: relative; width: min(980px, 78vw); height: min(78vh, 760px); display: flex; flex-direction: column; align-items: center; padding: 26px 34px 28px; text-align: center; }
.faq .fq-num { position: absolute; left: 22px; top: 18px; font: 700 15px 'Tiny5', monospace; color: var(--ink3); }
.faq h2 { margin: 6px 0 0; font: 400 clamp(40px, 6vh, 64px)/1 'Black Han Sans', Impact, sans-serif; color: var(--pink); -webkit-text-stroke: 8px #4a1a2c; paint-order: stroke fill;
  text-shadow: 0 5px 0 #2a0e18; letter-spacing: 2px; }
.faq p { margin: 0; max-width: 760px; font-size: clamp(17px, 2.3vh, 22px); line-height: 1.4; font-weight: 600; color: var(--ink); }
.faq p b { color: #b0567a; }
.faq .fq-art { position: relative; flex: 1; width: 100%; min-height: 0; margin: 14px 0; border-radius: 14px; overflow: hidden;
  background: radial-gradient(circle at 50% 55%, #4a2a52, #241428 70%); box-shadow: inset 0 0 0 3px #2a0e18; }
.faq .fq-art img { position: absolute; image-rendering: pixelated; }
.faq .fq-nav { grid-row: 1; width: 64px; height: 64px; justify-self: center; border: 3px solid #4a1a2c; border-radius: 50%; background: #fff; color: #e5679a;
  font-size: 26px; cursor: pointer; box-shadow: 0 4px 0 rgba(0,0,0,.4); }
.faq .fq-nav.prev { grid-column: 1; } .faq .fq-nav.next { grid-column: 3; }
.faq .fq-nav:disabled { opacity: .25; cursor: default; }
.faq .fq-nav:not(:disabled):hover { translate: 0 -2px; }
.faq .fq-x { position: absolute; right: 22px; top: 18px; z-index: 2; width: 46px; height: 46px; border: 3px solid #2a0a10; border-radius: 10px; background: #e5534b; color: #fff;
  font-size: 22px; font-weight: 800; cursor: pointer; box-shadow: 0 4px 0 rgba(0,0,0,.4); }
.faq .fq-foot { grid-column: 1 / -1; grid-row: 2; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 10px 0 3vh; }
.faq .fq-dots { display: flex; gap: 10px; }
.faq .fq-dots i { width: 14px; height: 14px; border-radius: 50%; background: #6e5a64; border: 2px solid #2a0e18; cursor: pointer; }
.faq .fq-dots i.on { background: #ffd27a; }
.faq .fq-go { min-width: 220px; }
/* слайд 1: котёнок, +1, монеты, коты, пак */
.fq1 .fq-kitten { left: 50%; top: 50%; height: 78%; translate: -50% -50%; image-rendering: auto; animation: fqBobC 2.2s ease-in-out infinite; }
.fq1 .fq-paw { left: 58%; top: 52%; width: 72px; animation: fqTap .8s ease-in-out infinite; }
.fq1 .fq-float { position: absolute; font: 800 34px 'Tiny5', monospace; color: #ffd27a; -webkit-text-stroke: 5px #4a1a2c; paint-order: stroke fill; animation: fqUp 1.6s ease-out infinite; }
.fq1 .f1 { left: 60%; top: 32%; } .fq1 .f2 { left: 66%; top: 40%; animation-delay: .5s; } .fq1 .f3 { left: 54%; top: 26%; animation-delay: 1s; }
.fq1 .fq-coin { width: 56px; animation: fqBob 1.8s ease-in-out infinite; } .fq1 .c1 { left: 30%; top: 20%; } .fq1 .c2 { left: 70%; top: 66%; animation-delay: -.7s; }
.fq1 .fq-cat { width: 110px; bottom: 6%; animation: fqBob 2.6s ease-in-out infinite; } .fq1 .k1 { left: 8%; } .fq1 .k2 { left: 20%; animation-delay: -1s; }
.fq1 .fq-pack { right: 8%; bottom: 10%; width: 120px; animation: fqBob 2.2s ease-in-out infinite; }
/* слайд 2: колесо, билеты, SOL, кошелёк */
.fq2 .fq-wheel { position: absolute; left: 7%; top: 10%; height: 80%; aspect-ratio: 1; animation: fqSpin 9s linear infinite; }
.fq2 .fq-ticket { width: 190px; filter: drop-shadow(0 0 14px rgba(255, 214, 90, .6)); animation: fqBob 2.4s ease-in-out infinite; }
.fq2 .t1 { left: 46%; top: 22%; rotate: -10deg; } .fq2 .t2 { left: 50%; top: 52%; rotate: 8deg; animation-delay: -1.2s; }
.fq2 .fq-sol { position: absolute; right: 8%; top: 18%; font: 400 74px/1 'Black Han Sans', Impact, sans-serif; color: #19f0a0; -webkit-text-stroke: 8px #2a0e3a; paint-order: stroke fill;
  text-shadow: 0 0 24px #9945ff; animation: fqBob 2s ease-in-out infinite; }
.fq2 .fq-wallet { right: 10%; bottom: 10%; width: 130px; animation: fqBob 2.6s ease-in-out infinite; }
/* слайд 3: советы */
.fq3 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 24px; align-content: center; }
.fq3 .fq-tip { display: flex; align-items: center; gap: 18px; padding: 26px 22px; border-radius: 12px; background: rgba(255, 240, 220, .1); border: 2px solid rgba(255, 214, 90, .35);
  color: #fff3e0; font-size: clamp(17px, 2.5vh, 23px); font-weight: 600; text-align: left; line-height: 1.3; }
.fq3 .fq-tip b { color: #ffd27a; }
.fq3 .fq-tip img { position: static; width: 76px; height: 76px; flex: none; }
.fq3 .fq-tip i { flex: none; width: 76px; text-align: center; font: 800 32px 'Tiny5', monospace; font-style: normal; }
.fq3 .fq-zzz { color: #dfe8ff; } .fq3 .fq-boss { color: #ff4a4a; font-size: 40px !important; }
@keyframes fqBob { 50% { translate: 0 -8px; } }
@keyframes fqBobC { 0%, 100% { translate: -50% -50%; } 50% { translate: -50% calc(-50% - 8px); } }
@keyframes fqUp { 0% { opacity: 0; transform: translateY(10px); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-50px); } }
@keyframes fqTap { 50% { transform: translate(-6px, -6px) scale(.92); } }
@keyframes fqSpin { to { rotate: 360deg; } }

/* ---------- экран загрузки (index.html #loader, владелец 03.11) ---------- */
/* фон — почти чёрный тёплый, как в видео; пиксельные крестики разных цветов рисует скрипт в холст .ldbg */
#loader { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; overflow: hidden; transition: opacity .6s ease; background: #1a0d0c; }
#loader.out { opacity: 0; pointer-events: none; }
#loader .ldbg { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
#loader .ldsparks { position: absolute; inset: 0; pointer-events: none; }
#loader .ldsparks img { position: absolute; image-rendering: pixelated; opacity: 0; animation: ldTwinkle 2.4s ease-in-out infinite; }
@keyframes ldTwinkle { 0%, 100% { opacity: 0; scale: .6; } 45%, 55% { opacity: 1; scale: 1; } }
#loader .ldmid { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; }
/* логотип из видео — целый кадр + полоса 190 px сверху (там дорисованы уши котёнка, когда он подпрыгивает), 1636×1458.
   Фон видео при подготовке «погашен» до почти чёрного, а режим lighten берёт более светлый из двух — поэтому вокруг логотипа
   ровно фон страницы, без прямоугольника и без разницы в цвете */
#loader .ldlogo { width: min(calc(76vh * 1636 / 1458), 900px, 94vw); aspect-ratio: 1636 / 1458; margin-top: -4vh; }
#loader .ldlogo video { width: 100%; height: 100%; display: block; pointer-events: none; mix-blend-mode: lighten; }
/* полоса загрузки: розовая заливка в тёмной рамке, как кнопки игры */
#loader .ldbar { width: min(420px, 70vw); height: 22px; padding: 3px; border: 3px solid #4a1a2c; border-radius: 12px; background: #2a1418; box-shadow: 0 4px 0 rgba(0, 0, 0, .45); }
#loader .ldbar i { display: block; width: 0; height: 100%; border-radius: 7px; background: linear-gradient(180deg, #ffb3cf, #e5679a); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
#loader .ldtxt { font: 700 16px/1 monospace; letter-spacing: 3px; color: #ffd6e4; text-shadow: 0 2px 0 #000; }
#loader .ldtxt b { color: #fff; }

/* FAQ, совет про бусты: монетка, зелёная свеча и пачка сигарет веером, как карты в руке */
.fq3 .fq-fan { position: relative; flex: none; width: 124px; height: 84px; }
.fq3 .fq-fan img { position: absolute; left: 50%; bottom: 2px; width: 60px !important; height: 60px !important; margin-left: -30px; transform-origin: 50% 120%;
  filter: drop-shadow(0 3px 0 rgba(10, 4, 8, .45)); }
.fq3 .fq-fan .a { rotate: -22deg; translate: -26px 4px; }
.fq3 .fq-fan .b { rotate: 0deg; translate: 0 -8px; z-index: 1; }
.fq3 .fq-fan .c { rotate: 22deg; translate: 26px 4px; z-index: 2; }

/* ---------- карточка выигрыша поверх колеса (casino.js showPrize) ---------- */
.wheelrev .wwin { position: absolute; left: 50%; top: 56%; z-index: 4; translate: -50% -50%; pointer-events: none; display: flex; flex-direction: column; align-items: center;
  min-width: 300px; padding: 18px 28px 20px; border: 4px solid #4a1a2c; border-radius: 18px; background: linear-gradient(180deg, #fff6e3, #f4dcb6);
  box-shadow: 0 8px 0 rgba(10, 4, 8, .55), 0 0 60px rgba(255, 214, 90, .65); animation: wwinIn .55s cubic-bezier(.2, 1.7, .4, 1) both; }
.wheelrev .wwin.out { animation: wwinOut .45s ease-in forwards; }
@keyframes wwinIn { 0% { scale: .2; rotate: -12deg; opacity: 0; } 100% { scale: 1; rotate: 0deg; opacity: 1; } }
@keyframes wwinOut { to { scale: .6; opacity: 0; translate: -50% -30%; } }
.wheelrev .wwrays { position: absolute; left: 50%; top: 40%; z-index: -1; width: 560px; height: 560px; translate: -50% -50%; border-radius: 50%;
  background: repeating-conic-gradient(rgba(255, 226, 122, .55) 0 10deg, transparent 10deg 20deg);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 68%); mask-image: radial-gradient(circle, #000 20%, transparent 68%); animation: wwSpin 6s linear infinite; }
@keyframes wwSpin { to { rotate: 360deg; } }
.wheelrev .wwi { display: flex; align-items: flex-end; justify-content: center; margin-top: -64px; filter: drop-shadow(0 5px 0 rgba(10, 4, 8, .45)); animation: wwBob 1.2s ease-in-out infinite; }
.wheelrev .wwi img { width: 96px; height: 96px; image-rendering: pixelated; }
.wheelrev .wwi img + img { margin-left: -38px; }
.wheelrev .wwi img[src*="golden_ticket"] { width: 150px; height: auto; }
.wheelrev .wwi img[src*="golden_ticket"] + img { margin-left: -90px; rotate: 10deg; translate: 0 6px; }
@keyframes wwBob { 50% { translate: 0 -6px; } }
.wheelrev .wwt { margin-top: 6px; font: 400 44px/1 'Black Han Sans', Impact, sans-serif; letter-spacing: 1px; color: var(--gold); -webkit-text-stroke: 7px #2a1018; paint-order: stroke fill;
  text-shadow: 0 5px 0 #2a1018; white-space: nowrap; }
.wheelrev .wws { margin-top: 8px; max-width: 360px; font-size: 17px; font-weight: 700; color: #4a2a2a; text-align: center; text-wrap: balance; }
.wheelrev .wwin.fire .wwt { color: #ff9a3c; } .wheelrev .wwin.red .wwt { color: #ff6a6a; } .wheelrev .wwin.green .wwt { color: #5fe08a; }
.wheelrev .wwin.mint .wwt { color: #4fe0b0; }
.wheelrev .wwin.meh { background: linear-gradient(180deg, #e9dccb, #c7b0a2); box-shadow: 0 8px 0 rgba(10, 4, 8, .55); }
.wheelrev .wwin.meh .wwt { color: #d9cfe0; font-size: 36px; } .wheelrev .wwin.meh .wwrays { display: none; } .wheelrev .wwin.meh .wwi { filter: grayscale(.6) drop-shadow(0 5px 0 rgba(10, 4, 8, .45)); }

/* напоминание о бесплатном паке (ui.js packNudge): пак вылетает из значка у CARDS и прыгает с табличкой «OPEN ME!»; клик — открыть */
.pkfly.nudge { pointer-events: auto; cursor: pointer; }
.pkfly .pkopen { position: absolute; left: 50%; top: -34px; translate: -50% 0; padding: 4px 10px; border: 3px solid #4a1a2c; border-radius: 9px; background: #ffe27a;
  font: 400 18px/1 'Black Han Sans', Impact, sans-serif; color: #4a1a2c; letter-spacing: 1px; white-space: nowrap; opacity: 0; transition: opacity .2s;
  box-shadow: 0 3px 0 rgba(10, 4, 8, .5); }
.pkfly.stay .pkopen { opacity: 1; }
.pkfly.nudge:hover img { filter: drop-shadow(0 6px 0 rgba(10, 4, 8, .45)) drop-shadow(0 0 22px rgba(255, 226, 122, 1)); }

/* ---------- окно аукциона: шире, две колонки, пул SOL над сундуком, последний победитель (владелец, 03.11) ---------- */
.aucrev .notecard { width: min(760px, 96vw); }
.aucrev .acols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.aucrev .acol { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.aucrev .adesc b { color: #7a2346; }
.aucrev .atimer { font-size: 15px; } .aucrev .atimer small { display: block; font-size: 12px; color: var(--ink3); margin-top: 2px; }
.aucrev .alast { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; padding: 8px 10px; border: 3px solid #e0b040; border-radius: 10px;
  background: linear-gradient(180deg, #fff6d6, #ffe9a8); box-shadow: 0 3px 0 rgba(120, 80, 10, .25); font-size: 14px; }
.aucrev .alast img { width: 30px; height: 30px; image-rendering: pixelated; }
.aucrev .alast .alw { font: 800 12px/1 'Tiny5', monospace; letter-spacing: 1px; color: #9a6a10; width: calc(100% - 40px); }
.aucrev .alast b { font: 700 16px 'Tiny5', monospace; color: var(--ink); }
.aucrev .alast .alp { font-weight: 800; color: #7a2346; }
.aucrev .alast.none b { color: var(--ink3); font-weight: 600; }
.aucrev .alast .asol { margin-left: auto; padding: 5px 10px; border: 2px solid #2a0e3a; border-radius: 7px; color: #fff; text-decoration: none;
  font: 800 12px/1 'Tiny5', monospace; letter-spacing: 1px; background: linear-gradient(90deg, #9945ff, #14f195); box-shadow: 0 2px 0 rgba(10, 4, 8, .4); }
.aucrev .alast .asol:hover { translate: 0 -1px; filter: brightness(1.1); }
/* пул SOL: сама монета — 3D в сцене сундука (chest3d.js buildPoolCoin), сумма на её лицевой стороне.
   Здесь только подпись «IN THE POOL» под монетой; left/top ставит casino.js каждый кадр (проекция низа монеты) */
.aucrev .apool { position: absolute; z-index: 4; translate: -50% 0; pointer-events: none; white-space: nowrap; }
/* сумма пула — крупно над «IN THE POOL» (монета теперь как в горе, без цифр — владелец, 17.11) */
.aucrev .apool { text-align: center; }
.aucrev .apool b { display: block; margin: 0 auto 4px; font: 900 30px/1 system-ui, sans-serif; letter-spacing: 1px; color: #fff;
  -webkit-text-stroke: 1px #1a0d30; text-shadow: 0 3px 0 #1a0d30, 0 0 14px rgba(20, 241, 149, .55); }
.aucrev .apool small { display: block; font: 800 15px/1 'Tiny5', monospace; letter-spacing: 3px; color: #ffe3f0; padding: 3px 8px; border-radius: 6px;
  background: rgba(20, 8, 30, .55); text-shadow: 0 2px 0 #000; }

/* ---------- 03.11: кнопка FISHING, облачко у аквариума, подсказка у «?» (владелец) ---------- */
/* «?» — фон как у соседних кнопок (жёлтая бумага), не белый */
.fun.fishing { background: #2f7fb8; }
.fun.fishing i { position: relative; width: 18px; height: 12px; border-radius: 60% 50% 50% 60%; background: #f29a3a; margin-right: 4px; }
.fun.fishing i::after { content: ''; position: absolute; right: -8px; top: 50%; translate: 0 -50%; border: 6px solid transparent; border-right: 7px solid #f29a3a; border-left: 0; } /* хвост: узким концом к телу */
.fun.fishing i::before { content: ''; position: absolute; left: 3px; top: 3px; width: 3px; height: 3px; border-radius: 50%; background: var(--edge); }
/* у трёх кнопок текст чуть уже, чтобы влезали в ряд */
.funrow .fun { gap: 6px; letter-spacing: .5px; min-width: 0; }

#fishThink { position: fixed; z-index: 120; width: 0; height: 0; pointer-events: none; animation: thinkIn .3s cubic-bezier(.3, 1.6, .5, 1); }
#fishThink.bye { opacity: 0; transition: opacity .25s; }
#fishThink i { position: absolute; border-radius: 50%; background: #fffaf0; border: 3px solid var(--edge); box-shadow: 0 3px 0 rgba(20,10,16,.4); pointer-events: auto; }
#fishThink .d1 { width: 10px; height: 10px; left: 8px; top: -22px; }
#fishThink .d2 { width: 16px; height: 16px; left: 20px; top: -46px; }
#fishThink .d3 { width: 22px; height: 22px; left: 38px; top: -76px; }
#fishThink .cloud { position: absolute; left: 30px; bottom: 78px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 22px 14px;
  background: #fffaf0; border: 3px solid var(--edge); border-radius: 46% 54% 50% 50% / 60% 60% 44% 44%; box-shadow: 0 4px 0 rgba(20,10,16,.4); pointer-events: auto;
  white-space: nowrap; animation: thinkBob 2.4s ease-in-out infinite; }
#fishThink .cloud b { font: 700 15px/1 'Tiny5', monospace; letter-spacing: 1px; color: var(--ink); }
/* OPEN — в стиле облачка (владелец, 03.11): маленькая, белая с тёмной обводкой, надпись зелёная по центру */
#fishThink .cloud .thinkbtn { display: grid; place-items: center; padding: 5px 14px 4px; border: 3px solid var(--edge); border-radius: 8px; background: #fff;
  box-shadow: 0 3px 0 var(--edge); font: 700 14px/1 'Tiny5', monospace; letter-spacing: 1px; color: #2f9a5c; cursor: pointer; transition: transform .08s, background .12s; }
#fishThink .cloud .thinkbtn:hover { background: #f0fff5; transform: translateY(-1px); }
#fishThink .cloud .thinkbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--edge); }
#fishThink.flip .d1 { left: -18px; } #fishThink.flip .d2 { left: -36px; } #fishThink.flip .d3 { left: -60px; }
#fishThink.flip .cloud { left: auto; right: 30px; }
@keyframes thinkIn { from { opacity: 0; scale: .6; } }
@keyframes thinkBob { 50% { translate: 0 -4px; } }

/* записка у «?» для новичка: пока FAQ ни разу не открывали */
.mbtn .faqhint { position: absolute; left: calc(100% + 14px); top: 50%; translate: 0 -50%; z-index: 5; white-space: nowrap; pointer-events: none;
  padding: 9px 14px; background: #fff6d6; border: 3px solid var(--edge); border-radius: 8px; box-shadow: 0 3px 0 rgba(20,10,16,.45);
  font: 700 19px/1.1 system-ui, sans-serif; font-style: normal; text-transform: none; letter-spacing: 0; color: var(--ink); animation: faqNudge 1.6s ease-in-out infinite; }
.mbtn .faqhint::before { content: ''; position: absolute; right: 100%; top: 50%; translate: 0 -50%; border: 8px solid transparent; border-right: 10px solid var(--edge); border-left: 0; }
.mbtn .faqhint::after { content: ''; position: absolute; right: calc(100% - 4px); top: 50%; translate: 0 -50%; border: 5px solid transparent; border-right: 7px solid #fff6d6; border-left: 0; }
@keyframes faqNudge { 50% { translate: 6px -50%; } }

/* ---------- 04.11: AUTO-ставка в аукционе (владелец) ---------- */
/* значок — две стрелки по кругу (владелец, 04.11: «как значок обновления, но в стиле игры»), кнопка перед MAX */
.aucrev .aauto svg { display: block; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: square; }
.aucrev .aauto svg .ah { fill: currentColor; stroke: none; }
.aucrev .aauto.on svg { filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .3)); animation: autoSpin 3s linear infinite; }
@keyframes autoSpin { to { rotate: 360deg; } }
.aucrev .aauto { position: relative; height: 46px; width: 46px; padding: 0; display: grid; place-items: center; border: 3px solid var(--edge); border-radius: 8px; background: #e8dcc4; color: var(--ink2);
  font-weight: 800; letter-spacing: 1px; cursor: pointer; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15), 0 3px 0 rgba(10, 4, 8, .35); }
.aucrev .aauto:hover { transform: translateY(-2px); } .aucrev .aauto:active { transform: translateY(2px); }
.aucrev .aauto.on { background: #45a872; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); box-shadow: inset 0 -4px 0 #2d7a50, 0 3px 0 rgba(10, 4, 8, .35); }
.aucrev .aauto.on::before { content: ''; position: absolute; right: 4px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: #b8ffcf; box-shadow: 0 0 6px #b8ffcf; animation: autoBlink 1.2s ease-in-out infinite; }
@keyframes autoBlink { 50% { opacity: .3; } }
/* подсказка при наведении */
.aucrev .aauto::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 10px); left: 50%; translate: -50% 4px; width: 230px; padding: 8px 10px;
  background: #2a1d22; color: #fff3df; border: 2px solid #f2c14e; border-radius: 8px; font: 600 13px/1.3 system-ui, sans-serif; letter-spacing: 0; text-align: left;
  text-transform: none; text-shadow: none; white-space: normal; pointer-events: none; opacity: 0; transition: opacity .15s, translate .15s; z-index: 10; }
.aucrev .aauto:hover::after { opacity: 1; translate: -50% 0; }
.fnum.autobid { color: #45d88a; font-size: 18px; }

/* ---------- обучение аукциону (владелец, 17.11; auctut.js) ---------- */
/* записка над сундуком у кровати — в стиле подсказки первого билета */
#auchint { position: fixed; z-index: 96; width: max-content; max-width: 260px; padding: 10px 14px; border: 3px solid var(--gold); border-radius: 10px; cursor: pointer;
  background: #2a1f3a; color: #fff7e2; font-size: 14px; font-weight: 700; line-height: 1.3; text-align: center;
  box-shadow: 0 4px 0 rgba(10, 4, 8, .5), 0 0 18px rgba(255, 214, 90, .45); opacity: 0; transition: opacity .3s ease-out; translate: -50% -100%; animation: aucHintGlow 1.4s ease-in-out infinite; }
#auchint.on { opacity: 1; } #auchint.on.hide { opacity: 0; pointer-events: none; }
#auchint b { display: block; color: var(--gold); font-size: 16px; margin-bottom: 3px; }
#auchint::after { content: ''; position: absolute; left: calc(50% + var(--tail, 0px)); margin-left: -9px; border: 9px solid transparent; }
#auchint[data-side=down]::after { top: 100%; border-top: 11px solid var(--gold); }
#auchint[data-side=up] { translate: -50% 0; }
#auchint[data-side=up]::after { bottom: 100%; border-bottom: 11px solid var(--gold); }
/* не прыгает (владелец, 17.11) — только мягко пульсирует свечение */
@keyframes aucHintGlow { 50% { box-shadow: 0 4px 0 rgba(10, 4, 8, .5), 0 0 28px rgba(255, 214, 90, .85); } }

/* тур: затемнение 40% вокруг объясняемого блока, сам блок светлый в золотой рамке, рядом записка с NEXT / SKIP */
#auctour { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
#auctour .dim { position: fixed; background: rgba(0, 0, 0, .4); pointer-events: auto; transition: all .25s ease-out; }
#auctour .ring { position: fixed; border: 3px solid var(--gold); border-radius: 12px; box-shadow: 0 0 0 3px rgba(42, 26, 32, .6), 0 0 22px rgba(255, 214, 90, .7);
  pointer-events: none; transition: all .25s ease-out; animation: tourRing 1.1s ease-in-out infinite; }
@keyframes tourRing { 50% { box-shadow: 0 0 0 3px rgba(42, 26, 32, .6), 0 0 34px rgba(255, 214, 90, 1); } }
#auctour .tbox { position: fixed; width: 360px; max-width: calc(100vw - 16px); padding: 12px 16px 12px; background: #fff6d6; border: 3px solid var(--edge); border-radius: 10px;
  box-shadow: 0 5px 0 rgba(20, 10, 16, .5); color: var(--ink); font: 600 15px/1.35 system-ui, sans-serif; pointer-events: auto; transition: left .25s ease-out, top .25s ease-out; }
#auctour .tbox.in { animation: pop .3s; }
#auctour .tn { font-size: 11px; font-weight: 800; letter-spacing: 1px; color: #a07a5a; margin-bottom: 4px; }
#auctour .tt b { color: #7a2346; }
#auctour .tbtns { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 10px; }
#auctour .tbtns .bigbtn { min-width: 0; height: 40px; padding: 0 18px; font-size: 15px; }
#auctour .tskip { border: 0; background: none; color: #8a7a88; font: 700 13px system-ui, sans-serif; text-decoration: underline; cursor: pointer; }
#auctour .tskip[hidden] { display: none; }
#auctour.cine { pointer-events: auto; } /* в киношном шаге клики не закрывают окно */
#auctour.cine .dim, #auctour.cine .ring, #auctour.cine .tbox { display: none; }

/* киношный наезд на монету: сундук на весь экран, чёрные полосы сверху и снизу, крупные титры */
.aucrev.aucine .wstage { position: fixed !important; inset: 0 !important; top: 0 !important; left: 0 !important; translate: none !important; width: 100vw !important; height: 100vh !important; z-index: 6; }
.aucrev.aucine .notecard, .aucrev.aucine .rays { opacity: 0; transition: opacity .5s; }
.aucrev.aucine .apool { opacity: 0 !important; }
.aucrev .notecard, .aucrev .rays { transition: opacity .5s; }
#modals:has(.aucine) .wx { opacity: 0; pointer-events: none; }
.cinebars { position: fixed; inset: 0; z-index: 30; pointer-events: none; }
.cinebars i { position: absolute; left: 0; right: 0; height: 13vh; background: #000; transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.cinebars i.top { top: 0; transform: translateY(-100%); } .cinebars i.bot { bottom: 0; transform: translateY(100%); }
.cinebars.on i { transform: none; }
.cinebars .ctxt { position: absolute; left: 0; right: 0; bottom: 15vh; text-align: center; color: #fff; opacity: 0; transition: opacity 1.2s 1.1s; }
.cinebars.on .ctxt { opacity: 1; }
.cinebars.off .ctxt, .cinebars.off .cgo { display: none; } /* CONTINUE — титры гаснут сразу (владелец, 17.11) */
.cinebars .c1 { font: 900 clamp(34px, 6vw, 84px)/1 system-ui, sans-serif; letter-spacing: .14em; text-shadow: 0 4px 24px rgba(0, 0, 0, .8), 0 0 3px #000;
  animation: cineTrack 7s cubic-bezier(.2, .7, .2, 1) both; }
.cinebars .c1 b { color: #ffd24a; text-shadow: 0 0 30px rgba(255, 200, 70, .8), 0 4px 24px rgba(0, 0, 0, .8); }
.cinebars .c2 { margin-top: 12px; font: 700 clamp(15px, 1.8vw, 24px)/1.2 system-ui, sans-serif; letter-spacing: .3em; text-transform: uppercase; color: #e8e0d0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .9); opacity: 0; animation: cineFade 1s 2.4s forwards; }
.cinebars .c2 span { color: #ffd24a; }
@keyframes cineTrack { from { letter-spacing: .02em; opacity: 0; filter: blur(6px); } 30% { opacity: 1; filter: blur(0); } to { letter-spacing: .16em; } }
@keyframes cineFade { to { opacity: 1; } }
.cinebars .cgo { position: absolute; right: 4vw; bottom: 4vh; padding: 8px 18px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 6px; background: rgba(0, 0, 0, .3);
  color: #fff; font: 800 15px system-ui, sans-serif; letter-spacing: .15em; cursor: pointer; pointer-events: auto; opacity: 0; transition: opacity .6s; }
.cinebars .cgo.on { opacity: 1; } .cinebars .cgo:hover { background: rgba(255, 255, 255, .15); }

/* ---------- рыбалка: интерфейс в духе Dota 2 Crownfall (владелец, 27.11: «невзрачный, сделай как в доте») ----------
   тёмные полупрозрачные панели сине-графитового цвета, тонкая золотая рамка, светлые тонкие цифры, разрядка в подписях */
#fishing { --fgold: #d6b46e; --fpanel: linear-gradient(180deg, rgba(30, 38, 56, .93), rgba(15, 19, 31, .93)); font-family: system-ui, sans-serif; }
#fishing .fcv { border: 0; border-radius: 6px; box-shadow: 0 0 0 1px rgba(214, 180, 110, .55), 0 0 0 5px rgba(12, 15, 24, .9), 0 0 0 6px rgba(214, 180, 110, .35), 0 20px 50px rgba(0, 0, 0, .6); }
#fishing .fhud { left: 18px; top: 18px; width: 214px; padding: 14px 18px 16px; border: 1px solid rgba(214, 180, 110, .55); border-radius: 3px;
  background: var(--fpanel); box-shadow: 0 10px 30px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .04); color: #ece4cf; }
#fishing .ft { position: relative; font: 600 19px/1 system-ui, sans-serif; letter-spacing: .12em; color: #efe6cf; border: 0; padding: 0 0 14px; margin-bottom: 8px; }
#fishing .ft::after { content: ''; position: absolute; left: 6%; right: 6%; bottom: 4px; height: 1px; background: linear-gradient(90deg, transparent, var(--fgold) 20%, var(--fgold) 80%, transparent); }
#fishing .ft .orn { position: absolute; left: 50%; bottom: 0; width: 8px; height: 8px; translate: -50% 0; rotate: 45deg; background: #141a29; border: 1px solid var(--fgold); }
#fishing .fl { font: 600 10px/1 system-ui, sans-serif; letter-spacing: .2em; color: #8e9ab0; margin-top: 10px; }
#fishing .fv { font: 300 36px/1.05 system-ui, sans-serif; color: #f6eedb; margin-top: 3px; }
#fishing .fv.sm { font: 300 22px/1.1 system-ui, sans-serif; color: #c9c3b4; }
#fishing .fv.rw { display: flex; align-items: center; justify-content: center; gap: 7px; }
#fishing .fv.rw .tk { width: 22px; height: 15px; background: url(../assets/golden_ticket.png) center / contain no-repeat; filter: drop-shadow(0 0 4px rgba(255, 200, 80, .5)); }
/* приманки: шестиугольник с крючком, золотая кайма */
#fishing .fbait { position: absolute; left: 22px; bottom: 22px; pointer-events: none; text-align: center; }
#fishing .fbait .hx { width: 82px; height: 92px; display: flex; align-items: center; justify-content: center; gap: 4px; color: #e9dfc5;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(#d6b46e, #8b6c34); position: relative; }
#fishing .fbait .hx::before { content: ''; position: absolute; inset: 2px; clip-path: inherit; background: radial-gradient(circle at 50% 35%, #34405e, #121828 75%); }
#fishing .fbait .hx svg, #fishing .fbait .hx b { position: relative; }
#fishing .fbait .hx svg { width: 24px; height: 24px; color: var(--fgold); }
#fishing .fbait .hx b { font: 300 34px/1 system-ui, sans-serif; color: #f6eedb; }
#fishing .fbait .bc { margin-top: 6px; font: 600 10px/1 system-ui, sans-serif; letter-spacing: .14em; color: #8fe3a6; text-shadow: 0 1px 3px #000; }
/* подсказка снизу по центру */
#fishing .fhint { position: absolute; left: 50%; bottom: 18px; translate: -50% 8px; padding: 9px 22px; pointer-events: none; white-space: nowrap; opacity: 0;
  font: 500 14px/1 system-ui, sans-serif; letter-spacing: .06em; color: #d8d2c2; background: linear-gradient(90deg, transparent, rgba(12, 16, 26, .85) 15%, rgba(12, 16, 26, .85) 85%, transparent);
  transition: opacity .25s, translate .25s; }
#fishing .fhint.on { opacity: 1; translate: -50% 0; } #fishing .fhint b { color: var(--fgold); font-weight: 700; }
/* всплывающие надписи (PERFECT CAST, сорвалась…) */
#fishing .fmsg { font: 700 30px/1 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: #f6eedb;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .6), 0 0 18px rgba(0, 0, 0, .8); }
#fishing .fmsg.good b { color: #8fe3a6; } #fishing .fmsg.bad { color: #ff9a8a; } #fishing .fmsg.gold { color: #ffd76a; }
/* кнопки ✕ и ? — тёмные квадраты с золотой каймой */
#fishing .fx, #fishing .fq { width: 36px; height: 36px; top: -12px; border: 1px solid rgba(214, 180, 110, .7); border-radius: 3px; background: #161c2b; color: #e9dfc5; box-shadow: 0 4px 12px rgba(0, 0, 0, .5);
  font: 500 17px/1 system-ui, sans-serif; }
#fishing .fx { right: -12px; } #fishing .fq { right: 32px; }
#fishing .fx:hover, #fishing .fq:hover { background: #222b40; color: #fff; }
/* карточка улова: как в Crownfall — без рамки, на затемнении, имя крупно и тонко, строки с цифрами справа */
#fishing .fcard { right: 5%; width: 390px; padding: 0 26px 20px; pointer-events: none; color: #e9e3d3;
  background: linear-gradient(90deg, rgba(12, 15, 25, 0), rgba(12, 15, 25, .78) 14%, rgba(12, 15, 25, .86)); }
#fishing .fcard canvas { margin: -70px 0 -4px -26px; width: 300px; height: 150px; }
#fishing .fcard .cn { font: 300 34px/1.1 system-ui, sans-serif; letter-spacing: .02em; margin-bottom: 12px; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
#fishing .fcard .cr { font: 400 15px/1.5 system-ui, sans-serif; color: #b6bcc8; margin: 0; }
#fishing .fcard .cr b { font-weight: 600; color: #ece4cf; }
#fishing .fcard .cr.bonus i { color: #7fd8ff; font-weight: 700; }
#fishing .fcard .ct { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(214, 180, 110, .45); font: 300 22px/1 system-ui, sans-serif; color: #e9e3d3; }
#fishing .fcard .ct b { font: 300 42px/1 system-ui, sans-serif; color: #f6eedb; }
#fishing .fcard .cm { margin-top: 8px; font: 500 13px/1.35 system-ui, sans-serif; color: #8fe3a6; }
#fishing .fcard .cnext { display: block; margin: 14px 0 0 auto; padding: 9px 26px; border: 1px solid rgba(214, 180, 110, .8); border-radius: 2px; background: rgba(20, 26, 40, .9);
  color: #f0e6cc; font: 600 13px/1 system-ui, sans-serif; letter-spacing: .32em; cursor: pointer; pointer-events: none; opacity: 0; translate: 0 6px; transition: opacity .35s, translate .35s, background .15s; }
#fishing .fcard.ready .cnext { opacity: 1; translate: 0 0; pointer-events: auto; animation: fnext 1.6s ease-in-out .4s infinite; }
#fishing .fcard .cnext:hover { background: rgba(214, 180, 110, .2); }
@keyframes fnext { 50% { box-shadow: 0 0 14px rgba(214, 180, 110, .55); } }
/* итог раунда и обучение — те же тёмные панели */
#fishing .fsum, #fishing .ftut { background: var(--fpanel); border: 1px solid rgba(214, 180, 110, .55); border-radius: 3px; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); color: #ece4cf; }
#fishing .fsum .sh, #fishing .ftut .tt { font: 600 18px/1 system-ui, sans-serif; letter-spacing: .2em; color: #efe6cf; border-color: rgba(214, 180, 110, .55); border-width: 0 0 1px; }
#fishing .fsum .sv { font: 300 52px/1.1 system-ui, sans-serif; color: #f6eedb; }
#fishing .fsum .ss div { font: 400 14px/1.4 system-ui, sans-serif; border-radius: 2px; }
#fishing .ftut .ts > i { background: transparent; border: 1px solid var(--fgold); color: var(--fgold); font: 600 14px/1 system-ui, sans-serif; }
#fishing .ftut .th { font: 700 13px/1.2 system-ui, sans-serif; letter-spacing: .14em; color: var(--fgold); }
#fishing .ftut p { font: 400 14px/1.4 system-ui, sans-serif; color: #c7c1b2; }
