:root{
    --asphalt:#26262b;
    --asphalt-2:#1d1d21;
    --brick:#6e4438;
    --brick-2:#5c382e;
    --cardboard:#c79a5f;
    --cardboard-2:#b3854c;
    --marker:#241708;
    --lamp:#ffc93c;
    --chalk:#e9e4d8;
    --muted:#9b958a;
  }
  *{margin:0;padding:0;box-sizing:border-box}
  body{
    font-family:'Rubik',sans-serif;
    background:var(--asphalt-2);
    color:var(--chalk);
    overflow-x:hidden;
  }

  /* ===== Кошелёк и настроение ===== */
  .hud{
    position:sticky; top:0; z-index:20;
    display:flex; justify-content:flex-end; align-items:center; gap:8px;
    max-width:900px; margin:0 auto; padding:10px 16px;
    background:linear-gradient(180deg, var(--asphalt-2) 70%, transparent);
  }
  .pill{
    background:#33333a;
    border:1px solid #46464f;
    border-radius:10px;
    padding:8px 13px;
    font-weight:700; font-size:1rem;
    display:flex; align-items:center; gap:7px;
  }
  .pill small{ font-weight:400; color:var(--muted); font-size:.7rem; }
  .pill.shake{ animation:shake .4s; border-color:#c0392b; }
  @keyframes shake{
    0%,100%{transform:translateX(0)}
    20%,60%{transform:translateX(-5px)}
    40%,80%{transform:translateX(5px)}
  }
  .topup{
    background:var(--lamp); color:#241708;
    border:none; border-radius:10px;
    padding:9px 14px;
    font-family:'Rubik',sans-serif; font-weight:700; font-size:.9rem;
    cursor:pointer;
    box-shadow:0 3px 0 rgba(0,0,0,.4);
  }
  .topup:active{ transform:translateY(2px); box-shadow:0 1px 0 rgba(0,0,0,.4); }

  /* ===== Панель управления: персонаж + топ ===== */
  .bar{
    max-width:900px; margin:0 auto;
    display:flex; justify-content:space-between; align-items:center; gap:10px;
    padding:4px 16px 12px;
    flex-wrap:wrap;
  }
  .chev{ font-size:.75em; opacity:.7; }
  .char-select{ position:relative; }
  .char-btn, .top-btn{
    background:#33333a;
    border:2px solid #46464f;
    color:var(--chalk);
    border-radius:12px;
    padding:10px 16px;
    font-family:'Rubik',sans-serif; font-weight:500; font-size:.95rem;
    cursor:pointer;
    display:flex; align-items:center; gap:8px;
  }
  .char-btn:hover, .top-btn:hover{ border-color:var(--lamp); }
  .top-btn.open{ border-color:var(--lamp); color:var(--lamp); }

  .char-menu{
    position:absolute; top:calc(100% + 6px); left:0;
    min-width:270px;
    background:#2b2b31;
    border:2px solid #46464f;
    border-radius:14px;
    padding:6px;
    z-index:30;
    box-shadow:0 12px 28px rgba(0,0,0,.5);
  }
  .char-menu.hidden{ display:none; }
  .char-item{
    width:100%;
    display:flex; align-items:center; gap:12px;
    background:none; border:none;
    color:var(--chalk);
    border-radius:10px;
    padding:10px 12px;
    font-family:'Rubik',sans-serif;
    cursor:pointer;
    text-align:left;
  }
  .char-item:hover{ background:#3a3a42; }
  .char-item.on{ background:#3a3526; }
  .char-item .ci-emoji{ font-size:1.6rem; }
  .char-item .ci-name{ font-weight:700; font-size:.95rem; }
  .char-item.on .ci-name{ color:var(--lamp); }
  .char-item .ci-desc{ font-size:.75rem; color:var(--muted); }

  /* ===== Топ донатеров ===== */
  .top-panel{
    max-width:900px; margin:0 auto 6px;
    padding:0 16px;
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
  }
  @media (min-width:640px){ .top-panel{ grid-template-columns:1.4fr 1fr; } }
  .top-panel.hidden{ display:none; }
  .top-list{
    background:#2b2b31;
    border:2px solid #46464f;
    border-radius:14px;
    padding:10px;
  }
  .top-row{
    display:flex; align-items:center; gap:10px;
    padding:8px 10px;
    border-radius:10px;
  }
  .top-row + .top-row{ border-top:1px dashed #3d3d45; }
  .top-row.me{ background:#3a3526; }
  .top-row .place{ font-size:1.25rem; width:30px; text-align:center; flex-shrink:0; }
  .top-row .ava{
    width:42px; height:42px; border-radius:10px; flex-shrink:0;
    background:#3a3a42;
    display:flex; align-items:center; justify-content:center;
    font-size:1.3rem;
    overflow:hidden;
  }
  .top-row .ava img{ width:100%; height:100%; object-fit:cover; }
  .top-row .who{ min-width:0; flex:1; }
  .top-row .nick{ font-weight:700; font-size:.92rem; }
  .top-row .ad{
    font-size:.75rem; color:var(--muted);
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
  }
  .top-row .sum{ font-weight:700; color:var(--lamp); font-size:.92rem; white-space:nowrap; }

  .top-profile{
    background:#2b2b31;
    border:2px solid #46464f;
    border-radius:14px;
    padding:14px;
  }
  .tp-title{ font-weight:700; margin-bottom:10px; font-size:.95rem; }
  .tp-row{ display:flex; gap:12px; align-items:center; }
  .tp-ava{
    width:56px; height:56px; border-radius:12px; flex-shrink:0;
    background:#3a3a42; border:2px dashed #56565f;
    display:flex; align-items:center; justify-content:center;
    font-size:1.5rem; cursor:pointer; overflow:hidden;
    position:relative;
  }
  .tp-ava img{ width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }
  .tp-fields{ flex:1; display:flex; flex-direction:column; gap:8px; min-width:0; }
  .tp-fields input{
    background:#212127;
    border:1px solid #46464f;
    color:var(--chalk);
    border-radius:8px;
    padding:8px 10px;
    font-family:'Rubik',sans-serif; font-size:.85rem;
    width:100%;
  }
  .tp-fields input:focus{ outline:none; border-color:var(--lamp); }
  .tp-hint{ font-size:.72rem; color:var(--muted); margin-top:10px; line-height:1.4; }

  /* ===== Сцена ===== */
  .scene{ position:relative; max-width:900px; margin:0 auto; padding:0 16px; }
  .wall{
    position:relative;
    border-radius:14px 14px 0 0;
    padding:36px 20px 0;
    background:
      repeating-linear-gradient(0deg, transparent 0 34px, rgba(0,0,0,.28) 34px 38px),
      repeating-linear-gradient(90deg, transparent 0 78px, rgba(0,0,0,.22) 78px 82px),
      linear-gradient(180deg, var(--brick) 0%, var(--brick-2) 100%);
    box-shadow:inset 0 -40px 60px rgba(0,0,0,.35);
    overflow:hidden;
  }
  .wall::before{
    content:"";
    position:absolute; inset:0;
    background:radial-gradient(ellipse 55% 70% at 50% 30%, rgba(255,201,60,.18), transparent 70%);
    pointer-events:none;
  }
  .lamp{
    position:absolute; top:0; left:50%; transform:translateX(-50%);
    width:10px; height:26px; background:#111; border-radius:0 0 4px 4px;
  }
  .lamp::after{
    content:""; position:absolute; top:24px; left:50%; transform:translateX(-50%);
    width:26px; height:14px; border-radius:50%;
    background:var(--lamp);
    box-shadow:0 0 22px 8px rgba(255,201,60,.45);
    animation:flicker 6s infinite;
  }
  @keyframes flicker{ 0%,92%,96%,100%{opacity:1} 94%{opacity:.55} }

  header{ text-align:center; position:relative; z-index:2; }
  .graffiti{
    font-family:'Caveat',cursive; font-weight:700;
    font-size:clamp(2.1rem, 6vw, 3.3rem);
    text-shadow:2px 2px 0 rgba(0,0,0,.45);
    transform:rotate(-2deg);
  }
  .sub{ color:var(--muted); font-size:.95rem; margin-top:4px; }

  .stage{ position:relative; display:flex; justify-content:center; padding:10px 0 0; }
  svg.gena{ width:min(400px, 92vw); height:auto; overflow:visible; }
  svg.gena.hidden{ display:none; }

  .ground{
    height:52px;
    background:linear-gradient(180deg, #3a3a41, var(--asphalt));
    border-radius:0 0 14px 14px;
    position:relative;
  }
  .ground::before{
    content:""; position:absolute; top:0; left:0; right:0; height:3px;
    background:rgba(255,201,60,.15);
  }

  /* ===== Облачко ===== */
  .bubble{
    position:absolute; top:2%; left:50%;
    transform:translateX(24%) scale(0);
    transform-origin:bottom left;
    background:var(--chalk); color:#1c1c1f;
    font-family:'Caveat',cursive; font-weight:700;
    font-size:1.45rem; line-height:1.1;
    padding:10px 16px;
    border-radius:16px 16px 16px 4px;
    box-shadow:3px 4px 0 rgba(0,0,0,.35);
    transition:transform .25s cubic-bezier(.34,1.56,.64,1);
    z-index:3; max-width:230px; text-align:center;
  }
  .bubble.show{ transform:translateX(24%) scale(1); }

  /* ===== Летящие символы ===== */
  .float-up{
    position:absolute;
    font-size:1.4rem;
    pointer-events:none;
    z-index:4;
    animation:floatup 2.4s ease-out forwards;
  }
  @keyframes floatup{
    0%{ opacity:0; transform:translateY(0) rotate(0); }
    15%{ opacity:1; }
    100%{ opacity:0; transform:translateY(-90px) rotate(20deg); }
  }

  /* ===== Магазин ===== */
  .shop{ max-width:900px; margin:0 auto; padding:20px 16px 10px; }
  .tabs{
    display:flex; gap:8px; flex-wrap:wrap; justify-content:center;
    margin-bottom:16px;
  }
  .tab{
    background:none;
    border:2px solid #46464f;
    color:var(--muted);
    border-radius:20px;
    padding:8px 16px;
    font-family:'Rubik',sans-serif; font-weight:500; font-size:.9rem;
    cursor:pointer;
  }
  .tab.on{ border-color:var(--lamp); color:var(--lamp); }

  .grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(165px, 1fr));
    gap:14px;
  }
  .card{
    background:linear-gradient(160deg, var(--cardboard), var(--cardboard-2));
    color:var(--marker);
    border:none; border-radius:6px;
    padding:16px 12px 12px;
    cursor:pointer; text-align:left;
    box-shadow:0 5px 0 rgba(0,0,0,.4);
    transform:rotate(var(--tilt,0deg));
    transition:transform .15s, box-shadow .15s;
    position:relative;
    font-family:'Rubik',sans-serif;
  }
  .grid .card:nth-child(4n+1){--tilt:-1.1deg}
  .grid .card:nth-child(4n+2){--tilt:.9deg}
  .grid .card:nth-child(4n+3){--tilt:-.5deg}
  .grid .card:nth-child(4n+4){--tilt:1.2deg}
  .card:hover{ transform:rotate(0deg) translateY(-3px); box-shadow:0 8px 0 rgba(0,0,0,.4); }
  .card:active{ transform:translateY(2px); box-shadow:0 2px 0 rgba(0,0,0,.4); }
  .card:focus-visible{ outline:3px solid var(--lamp); outline-offset:3px; }
  .card::before{
    content:"";
    position:absolute; top:-8px; left:50%; transform:translateX(-50%) rotate(-3deg);
    width:52px; height:15px;
    background:rgba(233,228,216,.55);
  }
  .card .icon{ font-size:1.7rem; line-height:1; }
  .card .name{
    font-family:'Caveat',cursive; font-weight:700;
    font-size:1.5rem; line-height:1.05; margin-top:4px;
  }
  .card .desc{ font-size:.78rem; margin-top:3px; opacity:.75; min-height:2.1em; }
  .card .btn{
    display:inline-block; margin-top:8px;
    background:var(--marker); color:var(--cardboard);
    border-radius:5px; padding:5px 10px;
    font-weight:700; font-size:.85rem;
  }
  .card.equipped .btn{ background:#3e5a34; color:#dff0d0; }
  .card.owned:not(.equipped) .btn{ background:#5a4a2a; color:#f0e2c0; }

  .footer{
    max-width:900px; margin:0 auto;
    padding:18px 16px 40px;
    text-align:center; color:var(--muted);
    font-size:.8rem; line-height:1.6;
  }

  /* ===== Конфетти ===== */
  .confetti{
    position:fixed; top:-12px;
    width:10px; height:14px; z-index:50;
    animation:fall linear forwards;
  }
  @keyframes fall{ to{ transform:translateY(110vh) rotate(720deg); } }

  /* ============================================================
     ОБЩИЙ «СКЕЛЕТ» ПЕРСОНАЖЕЙ
     У всех SVG одинаковые классы частей тела (.whole .head .armL
     .armR .legL .legR .torso .handItem), поэтому одни и те же
     анимации работают на любом персонаже.
     ============================================================ */
  .gena .armR, .gena .armL, .gena .head, .gena .torso,
  .gena .legL, .gena .legR, .gena .whole{ transition:transform .2s; }
  .gena .handItem{ opacity:0; }
  .gena .whole{ cursor:pointer; }

  /* --- скины Геннадия --- */
  #svg-gena{
    --coat:#5a6244; --coat-2:#525a3e; --coat-dark:#494f37;
    --hat:#a5402d; --hat-band:#8c3524;
  }
  #svg-gena.skin-sport{   --coat:#20406e; --coat-2:#1b3760; --coat-dark:#162c4d; --hat:#20406e; --hat-band:#162c4d; }
  #svg-gena.skin-crimson{ --coat:#8e2043; --coat-2:#7d1c3b; --coat-dark:#671731; --hat:#3a3a41; --hat-band:#2b2b30; }
  #svg-gena.skin-santa{   --coat:#b3202a; --coat-2:#a01c25; --coat-dark:#871720; --hat:#b3202a; --hat-band:#e9e4d8; }
  #svg-gena.skin-sailor{  --coat:#2b4c6f; --coat-2:#254361; --coat-dark:#1e3750; --hat:#16283f; --hat-band:#e9e4d8; }

  #svg-gena #stripes, #svg-gena #chain, #svg-gena #santaTrim, #svg-gena #sailorStripes,
  #svg-gena #cat, #svg-gena #pigeon, #svg-gena #barrel, #svg-gena #boombox,
  #svg-gena #bottle, #svg-gena #shades{ opacity:0; pointer-events:none; }
  #svg-gena.skin-sport #stripes{ opacity:1; }
  #svg-gena.skin-crimson #chain{ opacity:1; }
  #svg-gena.skin-santa #santaTrim{ opacity:1; }
  #svg-gena.skin-sailor #sailorStripes{ opacity:1; }
  #svg-gena.item-cat #cat{ opacity:1; pointer-events:auto; cursor:pointer; }
  #svg-gena.item-pigeon #pigeon{ opacity:1; pointer-events:auto; cursor:pointer; }
  #svg-gena.item-barrel #barrel{ opacity:1; }
  #svg-gena.item-boombox #boombox{ opacity:1; }
  #svg-gena.item-shades #shades{ opacity:1; }

  /* --- покой --- */
  .gena.idle .torso{ animation:breath 3.2s ease-in-out infinite; }
  .gena.idle .armL{ animation:signwave 3.2s ease-in-out infinite; }
  @keyframes breath{ 0%,100%{transform:translateY(0)} 50%{transform:translateY(2.5px)} }
  @keyframes signwave{ 0%,100%{transform:rotate(0)} 50%{transform:rotate(3deg)} }

  /* --- питомцы и двор Геннадия --- */
  #svg-gena #tail{ transform-origin:44px 258px; animation:tailwag 2.4s ease-in-out infinite; }
  @keyframes tailwag{ 0%,100%{transform:rotate(0)} 50%{transform:rotate(-14deg)} }
  #svg-gena #pigeon{ animation:peck 4s ease-in-out infinite; }
  @keyframes peck{ 0%,86%,100%{transform:translateY(0)} 90%,96%{transform:translateY(3px)} }
  #svg-gena #flame1{ transform-origin:312px 224px; animation:flame .7s ease-in-out infinite alternate; }
  #svg-gena #flame2{ transform-origin:318px 226px; animation:flame .55s ease-in-out infinite alternate-reverse; }
  @keyframes flame{ from{transform:scaleY(1)} to{transform:scaleY(1.35) scaleX(.9)} }

  /* --- танец --- */
  .gena.dance .whole{ animation:bounce .4s ease-in-out infinite; }
  .gena.dance .armR{ animation:swingR .4s ease-in-out infinite; }
  .gena.dance .armL{ animation:swingL .4s ease-in-out infinite; }
  .gena.dance .head{ animation:headbob .4s ease-in-out infinite; }
  .gena.dance .legL{ animation:kickL .8s ease-in-out infinite; }
  .gena.dance .legR{ animation:kickR .8s ease-in-out infinite; }
  @keyframes bounce{ 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
  @keyframes swingR{ 0%,100%{transform:rotate(-70deg)} 50%{transform:rotate(-130deg)} }
  @keyframes swingL{ 0%,100%{transform:rotate(60deg)} 50%{transform:rotate(120deg)} }
  @keyframes headbob{ 0%,100%{transform:rotate(-6deg)} 50%{transform:rotate(6deg)} }
  @keyframes kickL{ 0%,100%{transform:rotate(0)} 25%{transform:rotate(-22deg)} }
  @keyframes kickR{ 0%,100%{transform:rotate(0)} 75%{transform:rotate(22deg)} }

  /* --- выпить --- */
  .gena.drink #bottle{ opacity:1; }
  .gena.guzzle .handItem{ opacity:1; }
  .gena.drink .armR, .gena.guzzle .armR{ animation:raise 3.4s ease-in-out forwards; }
  .gena.drink .head, .gena.guzzle .head{ animation:tipback 3.4s ease-in-out forwards; }
  @keyframes raise{
    0%{transform:rotate(0)}
    25%,80%{transform:rotate(-118deg)}
    100%{transform:rotate(0)}
  }
  @keyframes tipback{
    0%{transform:rotate(0)}
    30%,75%{transform:rotate(-14deg)}
    100%{transform:rotate(0)}
  }

  /* --- еда --- */
  .gena.eat .handItem{ opacity:1; }
  .gena.eat .armR{ animation:chomp 3.4s ease-in-out forwards; }
  .gena.eat .head{ animation:chew 3.4s ease-in-out forwards; }
  @keyframes chomp{
    0%{transform:rotate(0)}
    14%,22%{transform:rotate(-108deg)}
    30%{transform:rotate(-78deg)}
    40%,48%{transform:rotate(-108deg)}
    56%{transform:rotate(-78deg)}
    66%,82%{transform:rotate(-108deg)}
    100%{transform:rotate(0)}
  }
  @keyframes chew{
    0%,100%{transform:rotate(0)}
    20%,44%,70%{transform:rotate(4deg)}
    32%,56%,82%{transform:rotate(-3deg)}
  }

  /* --- романс / пение --- */
  .gena.sing .whole{ animation:swagger 1.4s ease-in-out infinite; }
  .gena.sing .head{ animation:singhead 1.4s ease-in-out infinite; }
  .gena.sing .armR{ transform:rotate(-60deg); }
  @keyframes singhead{ 0%,100%{transform:rotate(-5deg)} 50%{transform:rotate(5deg)} }

  /* --- гармошка --- */
  .gena.accordion .handItem{ opacity:1; }
  .gena.accordion .armR{ animation:squeezeR .5s ease-in-out infinite; }
  .gena.accordion .armL{ animation:squeezeL .5s ease-in-out infinite; }
  .gena.accordion .whole{ animation:swagger 1s ease-in-out infinite; }
  @keyframes squeezeR{ 0%,100%{transform:rotate(-35deg)} 50%{transform:rotate(-60deg)} }
  @keyframes squeezeL{ 0%,100%{transform:rotate(30deg)} 50%{transform:rotate(55deg)} }

  /* --- нижний брейк --- */
  .gena.breakdance .whole{ animation:spin 2.6s cubic-bezier(.4,0,.4,1) forwards; transform-origin:170px 240px; }
  .gena.breakdance .legL{ animation:helicopterL .5s linear infinite; }
  .gena.breakdance .legR{ animation:helicopterR .5s linear infinite; }
  @keyframes spin{
    0%{transform:rotate(0)}
    15%{transform:rotate(-95deg) translateY(-40px)}
    85%{transform:rotate(-815deg) translateY(-40px)}
    100%{transform:rotate(-1080deg)}
  }
  @keyframes helicopterL{ 0%,100%{transform:rotate(-30deg)} 50%{transform:rotate(30deg)} }
  @keyframes helicopterR{ 0%,100%{transform:rotate(30deg)} 50%{transform:rotate(-30deg)} }

  /* --- красивая жизнь --- */
  .gena.rich #shades{ opacity:1; }
  .gena.rich .whole{ animation:swagger 1.1s ease-in-out infinite; }
  .gena.rich .armL{ transform:rotate(150deg); }
  .gena.rich .armR{ transform:rotate(-150deg); }
  @keyframes swagger{ 0%,100%{transform:rotate(-2.5deg)} 50%{transform:rotate(2.5deg)} }

  /* --- приветствие по клику --- */
  .gena.wave .armR{ animation:wavehand 1.6s ease-in-out forwards; }
  @keyframes wavehand{
    0%,100%{transform:rotate(0)}
    25%,65%{transform:rotate(-160deg)}
    40%{transform:rotate(-140deg)}
    52%{transform:rotate(-165deg)}
  }

  /* --- гадание (Зина) --- */
  .gena.fortune .armR{ transform:rotate(-85deg); }
  .gena.fortune .armL{ transform:rotate(85deg); }
  .gena.fortune .whole{ animation:swagger 1.6s ease-in-out infinite; }
  .gena.fortune .head{ animation:singhead 1.6s ease-in-out infinite; }

  /* --- отругать (Зина) --- */
  .gena.scold .armR{ animation:wag .35s ease-in-out infinite; }
  .gena.scold .head{ animation:headbob .7s ease-in-out infinite; }
  @keyframes wag{ 0%,100%{transform:rotate(-125deg)} 50%{transform:rotate(-150deg)} }

  /* --- благословение (Зина) --- */
  .gena.bless .armR{ transform:rotate(-170deg); }
  .gena.bless .whole{ animation:swagger 1.8s ease-in-out infinite; }

  /* --- присед (Витёк) --- */
  .gena.squat .whole{ animation:squatMove 1s ease-in-out infinite; }
  .gena.squat .legL{ animation:squatLegL 1s ease-in-out infinite; }
  .gena.squat .legR{ animation:squatLegR 1s ease-in-out infinite; }
  .gena.squat .armR{ transform:rotate(-80deg); }
  .gena.squat .armL{ transform:rotate(80deg); }
  @keyframes squatMove{ 0%,100%{transform:translateY(0)} 50%{transform:translateY(20px)} }
  @keyframes squatLegL{ 0%,100%{transform:rotate(0)} 50%{transform:rotate(-32deg)} }
  @keyframes squatLegR{ 0%,100%{transform:rotate(0)} 50%{transform:rotate(32deg)} }

  /* --- свист (Витёк) --- */
  .gena.whistle .armR{ animation:towhistle 3s ease-in-out forwards; }
  @keyframes towhistle{
    0%{transform:rotate(0)}
    20%,80%{transform:rotate(-112deg)}
    100%{transform:rotate(0)}
  }

  /* --- пируэт (Снежана) --- */
  .gena.pirouette .whole{ animation:pirouette 1.1s ease-in-out 3; transform-origin:170px 200px; }
  .gena.pirouette .armL{ transform:rotate(160deg); }
  .gena.pirouette .armR{ transform:rotate(-160deg); }
  @keyframes pirouette{
    0%,100%{transform:scaleX(1) translateY(0)}
    25%{transform:scaleX(-1) translateY(-8px)}
    50%{transform:scaleX(1) translateY(-14px)}
    75%{transform:scaleX(-1) translateY(-8px)}
  }

  /* --- воздушный поцелуй (Снежана) --- */
  .gena.kiss .armR{ animation:blowkiss 3.4s ease-in-out forwards; }
  .gena.kiss .whole{ animation:swagger 1.7s ease-in-out infinite; }
  @keyframes blowkiss{
    0%{transform:rotate(0)}
    22%,48%{transform:rotate(-115deg)}
    62%,80%{transform:rotate(-88deg)}
    100%{transform:rotate(0)}
  }

  /* --- диско-шар Снежаны: появляется, когда она выступает --- */
  #svg-snezhana #disco{ opacity:0; transition:opacity .4s; }
  #svg-snezhana.dance #disco,
  #svg-snezhana.sing #disco,
  #svg-snezhana.pirouette #disco{ opacity:1; }
  #svg-snezhana #discoBall{ transform-origin:170px 26px; animation:discospin 3s linear infinite; }
  @keyframes discospin{ 0%{transform:rotate(-8deg)} 50%{transform:rotate(8deg)} 100%{transform:rotate(-8deg)} }

  /* --- карты расклада (Зина) --- */
  .spread{
    position:absolute;
    bottom:6%;
    left:50%;
    transform:translateX(-50%);
    display:flex; gap:12px;
    z-index:5;
    pointer-events:none;
  }
  .tcard{
    width:82px; height:122px;
    border-radius:8px;
    background:linear-gradient(160deg, #2b2140, #1b1430);
    border:2px solid #e8b83a;
    color:var(--chalk);
    display:flex; flex-direction:column;
    align-items:center; justify-content:center;
    text-align:center;
    padding:6px;
    box-shadow:0 6px 14px rgba(0,0,0,.5);
    opacity:0;
    transform:translateY(24px) rotate(6deg);
    animation:cardin .55s cubic-bezier(.34,1.4,.64,1) forwards;
  }
  .tcard .pos{ font-size:.58rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); }
  .tcard .sym{ font-size:1.7rem; margin:4px 0; }
  .tcard .lbl{ font-family:'Caveat',cursive; font-size:1rem; line-height:1; color:#e8b83a; }
  .tcard .mean{ font-size:.6rem; margin-top:3px; opacity:.85; }
  @keyframes cardin{ to{ opacity:1; transform:translateY(0) rotate(var(--ctilt,0deg)); } }

  /* --- записка с анекдотом / стишком / мудростью --- */
  .note-card{
    position:absolute;
    top:16%;
    left:50%;
    transform:translateX(-50%) rotate(-2deg) scale(0);
    max-width:310px;
    background:#f3ecd8;
    color:#241708;
    font-family:'Caveat',cursive;
    font-weight:600;
    font-size:1.3rem;
    line-height:1.25;
    padding:18px 22px;
    border-radius:4px;
    box-shadow:0 8px 18px rgba(0,0,0,.5);
    white-space:pre-line;
    text-align:center;
    z-index:6;
    animation:notein .45s cubic-bezier(.34,1.5,.64,1) forwards;
  }
  .note-card::before{
    content:"";
    position:absolute; top:-9px; left:50%;
    transform:translateX(-50%) rotate(-3deg);
    width:70px; height:18px;
    background:rgba(200,170,110,.6);
  }
  @keyframes notein{ to{ transform:translateX(-50%) rotate(-2deg) scale(1); } }

  /* --- Королева Пчела: парит, крылья трепещут, усики шевелятся --- */
  #svg-bee.idle .whole{ animation:beehover 3s ease-in-out infinite; }
  @keyframes beehover{ 0%,100%{transform:translateY(0)} 50%{transform:translateY(-9px)} }
  #svg-bee .wingL{ transform-origin:206px 132px; animation:flutterL .18s ease-in-out infinite alternate; }
  #svg-bee .wingR{ transform-origin:134px 132px; animation:flutterR .18s ease-in-out infinite alternate; }
  @keyframes flutterL{ from{transform:rotate(6deg)} to{transform:rotate(-14deg)} }
  @keyframes flutterR{ from{transform:rotate(-6deg)} to{transform:rotate(14deg)} }
  #svg-bee .antL{ transform-origin:156px 58px; animation:antwig 2.2s ease-in-out infinite; }
  #svg-bee .antR{ transform-origin:184px 58px; animation:antwig 2.2s ease-in-out infinite reverse; }
  @keyframes antwig{ 0%,100%{transform:rotate(0)} 50%{transform:rotate(8deg)} }

  /* --- полёт по двору --- */
  .gena.fly .whole{ animation:beefly 4.6s ease-in-out forwards; }
  .gena.fly .legL{ transform:rotate(-14deg); }
  .gena.fly .legR{ transform:rotate(14deg); }
  #svg-bee.fly .wingL{ animation-duration:.07s; }
  #svg-bee.fly .wingR{ animation-duration:.07s; }
  @keyframes beefly{
    0%,100%{transform:translate(0,0) rotate(0)}
    18%{transform:translate(-38px,-52px) rotate(-8deg)}
    42%{transform:translate(40px,-74px) rotate(8deg)}
    64%{transform:translate(-26px,-58px) rotate(-6deg)}
    84%{transform:translate(14px,-24px) rotate(4deg)}
  }

  /* --- танец виляния (пчелиная навигация) --- */
  .gena.waggle .whole{ animation:waggle .3s ease-in-out infinite; }
  .gena.waggle .head{ animation:headbob .6s ease-in-out infinite; }
  @keyframes waggle{
    0%,100%{transform:translateX(0) rotate(0)}
    25%{transform:translateX(-7px) rotate(-4deg)}
    75%{transform:translateX(7px) rotate(4deg)}
  }

  @media (prefers-reduced-motion: reduce){
    .gena *{ animation:none !important; }
    .confetti, .float-up{ display:none; }
  }

  /* ============================================================
     ДОБАВКА: ФОНЫ ДВОРА (дорого-богато)
     ============================================================ */
  .wall{ transition:background .6s; }

  .wall.bg-night{
    background:
      radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
      radial-gradient(1.5px 1.5px at 28% 8%,  #fff 50%, transparent 51%),
      radial-gradient(2px 2px    at 44% 22%, #ffe9a8 50%, transparent 51%),
      radial-gradient(1.5px 1.5px at 63% 12%, #fff 50%, transparent 51%),
      radial-gradient(1.5px 1.5px at 78% 26%, #fff 50%, transparent 51%),
      radial-gradient(2px 2px    at 90% 10%, #fff 50%, transparent 51%),
      radial-gradient(1.5px 1.5px at 55% 34%, #fff 50%, transparent 51%),
      radial-gradient(circle at 82% 20%, #f5f0dd 0 22px, rgba(245,240,221,.22) 23px 30px, transparent 31px),
      linear-gradient(180deg, #0d1226 0%, #1a2140 60%, #232b4d 100%);
  }
  .wall.bg-sunset{
    background:
      radial-gradient(circle at 50% 78%, #ffdf8e 0 34px, rgba(255,178,74,.55) 35px 90px, transparent 91px),
      linear-gradient(180deg, #2c2144 0%, #83365a 38%, #d4603f 70%, #f0a04b 100%);
  }
  .wall.bg-sea{
    background:
      radial-gradient(circle at 76% 24%, #fff3c4 0 26px, rgba(255,243,196,.35) 27px 44px, transparent 45px),
      repeating-linear-gradient(0deg, rgba(255,255,255,.14) 0 2px, transparent 2px 26px),
      linear-gradient(180deg, #7fc4de 0%, #4d9ec4 45%, #23688f 72%, #184f70 100%);
  }
  .wall.bg-city{
    background:
      repeating-linear-gradient(90deg, transparent 0 26px, rgba(255,220,120,.16) 26px 32px, transparent 32px 58px, rgba(120,220,255,.13) 58px 64px),
      repeating-linear-gradient(0deg, transparent 0 20px, rgba(0,0,0,.35) 20px 24px),
      linear-gradient(180deg, #0b0d1c 0%, #17203c 55%, #223055 100%);
  }
  .wall.bg-palace{
    background:
      repeating-linear-gradient(90deg, rgba(255,235,170,.20) 0 22px, transparent 22px 96px),
      radial-gradient(ellipse 70% 45% at 50% 0%, rgba(255,226,130,.35), transparent 70%),
      linear-gradient(180deg, #6b4a12 0%, #9a6d1d 40%, #c69531 75%, #8a5f16 100%);
    box-shadow:inset 0 -40px 60px rgba(60,35,0,.45);
  }
  .wall.bg-space{
    background:
      radial-gradient(1.5px 1.5px at 10% 30%, #fff 50%, transparent 51%),
      radial-gradient(2px 2px    at 22% 12%, #ffd9f0 50%, transparent 51%),
      radial-gradient(1.5px 1.5px at 37% 40%, #fff 50%, transparent 51%),
      radial-gradient(2px 2px    at 52% 16%, #c4e3ff 50%, transparent 51%),
      radial-gradient(1.5px 1.5px at 66% 36%, #fff 50%, transparent 51%),
      radial-gradient(2px 2px    at 80% 8%,  #fff 50%, transparent 51%),
      radial-gradient(1.5px 1.5px at 92% 30%, #ffe9a8 50%, transparent 51%),
      radial-gradient(ellipse 45% 35% at 70% 25%, rgba(150,80,220,.4), transparent 70%),
      radial-gradient(ellipse 40% 30% at 25% 60%, rgba(60,120,220,.3), transparent 70%),
      linear-gradient(180deg, #05030f 0%, #120b2a 60%, #1b1140 100%);
  }
  /* карточка фона с плашкой-превью */
  .card .swatch{
    height:44px; border-radius:5px; margin-top:6px;
    border:2px solid rgba(36,23,8,.35);
  }
  /* Превью фона в карточке — реальный кадр картинки, повыше для наглядности */
  .card .swatch.bg-thumb{
    height:66px; background-size:cover; background-position:center;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.15);
  }

  /* ============================================================
     ДОБАВКА: СЧЁТЧИК И МОДАЛКА ОПЛАТЫ
     ============================================================ */
  .pill b{ color:var(--lamp); }

  .pay-overlay{
    position:fixed; inset:0; z-index:60;
    background:rgba(15,15,18,.72);
    display:none; align-items:center; justify-content:center;
    padding:16px;
  }
  .pay-overlay.show{ display:flex; }
  /* Крестик закрытия в углу модалки (удобно с телефона) */
  .modal-x{
    position:absolute; top:8px; right:8px; z-index:5;
    width:32px; height:32px; border:none; border-radius:50%;
    background:rgba(36,23,8,.14); color:#241708;
    font-size:22px; line-height:1; font-weight:700; cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    transition:background .15s, transform .12s;
  }
  .modal-x:hover{ background:rgba(36,23,8,.28); }
  .modal-x:active{ transform:scale(.9); }
  .pay-box{
    width:100%; max-width:330px;
    background:linear-gradient(160deg, var(--cardboard), var(--cardboard-2));
    color:var(--marker);
    border-radius:8px;
    padding:22px 20px 18px;
    text-align:center;
    box-shadow:0 10px 0 rgba(0,0,0,.45);
    transform:rotate(-1deg);
    position:relative;
  }
  .pay-box::before{
    content:""; position:absolute; top:-9px; left:50%;
    transform:translateX(-50%) rotate(-3deg);
    width:64px; height:17px; background:rgba(233,228,216,.55);
  }
  .pay-box .p-icon{ font-size:2.2rem; }
  .pay-box .p-name{
    font-family:'Caveat',cursive; font-weight:700;
    font-size:1.7rem; line-height:1.05; margin-top:4px;
  }
  .pay-box .p-price{ font-weight:700; font-size:1.6rem; margin:8px 0 14px; }
  .pay-box .p-email{
    display:none; width:100%; box-sizing:border-box;
    border:1px solid rgba(36,23,8,.25); border-radius:6px;
    padding:9px 10px; margin:0 0 10px;
    font-family:'Rubik',sans-serif; font-size:.9rem; color:#241708;
    background:rgba(255,255,255,.6);
  }
  .pay-box.live .p-email{ display:block; }
  .pay-box .p-email:focus{ outline:none; border-color:var(--marker); }
  .pay-box .p-go[disabled]{ opacity:.6; cursor:default; }
  .pay-box .p-go{
    display:block; width:100%;
    background:var(--marker); color:var(--cardboard);
    border:none; border-radius:6px; padding:12px;
    font-family:'Rubik',sans-serif; font-weight:700; font-size:1rem;
    cursor:pointer; box-shadow:0 3px 0 rgba(0,0,0,.4);
  }
  .pay-box .p-go:active{ transform:translateY(2px); box-shadow:0 1px 0 rgba(0,0,0,.4); }
  .pay-box .p-no{
    background:none; border:none; margin-top:10px;
    color:rgba(36,23,8,.6); font-family:'Rubik',sans-serif;
    font-size:.85rem; cursor:pointer; text-decoration:underline;
  }
  .pay-box .p-hint{ font-size:.68rem; color:rgba(36,23,8,.55); margin-top:12px; line-height:1.4; }

  /* ===== Выбор способа оплаты ===== */
  .pay-methods{ display:none; flex-direction:column; gap:9px; margin:4px 0 2px; }
  .pay-methods.show{ display:flex; }
  .pm-btn{
    display:flex; align-items:center; gap:11px; text-align:left;
    background:#fff8ec; border:2px solid #8a6534; border-radius:9px;
    padding:10px 12px; cursor:pointer; transition:transform .1s, box-shadow .1s;
    box-shadow:0 3px 0 rgba(0,0,0,.28);
  }
  .pm-btn:hover{ transform:translateY(-1px); }
  .pm-btn:active{ transform:translateY(2px); box-shadow:0 1px 0 rgba(0,0,0,.28); }
  .pm-btn[disabled]{ opacity:.6; cursor:default; }
  .pm-ic{ font-size:1.5rem; line-height:1; }
  .pm-tx{ display:flex; flex-direction:column; }
  .pm-tt{ font-family:'Rubik',sans-serif; font-weight:700; font-size:.92rem; color:#241708; }
  .pm-sb{ font-family:'Rubik',sans-serif; font-size:.66rem; color:rgba(36,23,8,.6); margin-top:1px; }
  .pm-btn.crypto{ background:#fff3d6; }
  .pm-btn.crypto .pm-sb{ color:#7a5a12; }

  .pill.snd{
    cursor:pointer; font-size:1.05rem;
    font-family:'Rubik',sans-serif; color:var(--chalk);
  }
  .pill.snd:hover{ border-color:var(--lamp); }

  /* ===== Рекламные картонки у Гены ===== */
  /* Десктоп: прислонены слева и справа от Гены (поверх сцены, вне обрезающего .wall). */
  .promo-row{
    position:absolute; left:8px; right:8px; bottom:64px;
    display:flex; justify-content:space-between; align-items:flex-end;
    pointer-events:none; z-index:6;
  }
  .promo-card{
    pointer-events:auto; box-sizing:border-box;
    width:160px; min-height:58px;
    background:#c79a5f; border:2px solid #8a6534; border-radius:5px;
    padding:8px 10px; box-shadow:0 5px 0 rgba(0,0,0,.35);
    color:#241708; font-family:'Caveat',cursive; text-align:center;
    cursor:pointer; transform:rotate(-4deg); transition:transform .15s;
    overflow:hidden;
  }
  .promo-row .promo-card:last-child{ transform:rotate(4deg); }
  .promo-card:hover{ transform:rotate(0) translateY(-2px); }
  /* Мобайл: картонки уезжают под сцену аккуратным рядом (не налезают на Гену). */
  @media (max-width:620px){
    .promo-row{
      position:static; margin:10px auto 0; padding:0 16px;
      justify-content:center; gap:12px; align-items:stretch;
    }
    .promo-card{ transform:rotate(-2deg); width:46%; max-width:210px; }
    .promo-row .promo-card:last-child{ transform:rotate(2deg); }
  }
  .promo-card .promo-tag{
    display:inline-block; font-family:'Rubik',sans-serif; font-weight:700;
    font-size:.5rem; letter-spacing:.12em; text-transform:uppercase;
    color:#8a6534; margin-bottom:2px;
  }
  .promo-card .promo-text{ font-weight:700; font-size:1.02rem; line-height:1.1; word-break:break-word; overflow-wrap:anywhere; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
  .promo-card .promo-link{ display:block; font-family:'Rubik',sans-serif; font-size:.55rem; color:#5c3a12; margin-top:3px; opacity:.8; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .promo-card.empty{ border-style:dashed; opacity:.92; }
  .promo-card.empty .promo-text{ font-size:.92rem; }
  .promo-card .promo-price{ display:block; font-family:'Rubik',sans-serif; font-weight:700; font-size:.62rem; color:#5c3a12; margin-top:2px; }
  @media (max-width:560px){
    .promo-card{ width:120px; min-height:46px; padding:5px 6px; }
    .promo-card .promo-text{ font-size:.82rem; }
  }

  /* ===== Метрики (самый низ, ненавязчиво) ===== */
  .metrics{
    max-width:900px; margin:0 auto; padding:2px 16px 16px;
    display:flex; flex-wrap:wrap; gap:6px 16px; justify-content:center;
    font-family:'Rubik',sans-serif; font-size:.6rem; letter-spacing:.02em;
    color:rgba(233,228,216,.28);
  }
  .metrics b{ color:rgba(233,228,216,.5); font-weight:700; }
  .metrics span{ white-space:nowrap; }

  /* ===== Отсчёт перед донатом ===== */
  .cd-overlay{
    position:fixed; inset:0; z-index:60; display:none;
    flex-direction:column; align-items:center; justify-content:center;
    background:rgba(12,8,3,.72); backdrop-filter:blur(2px);
  }
  .cd-overlay.show{ display:flex; }
  .cd-num{
    font-family:'Rubik',sans-serif; font-weight:700; color:var(--lamp,#ffc93c);
    font-size:22vw; line-height:1; text-shadow:0 6px 24px rgba(0,0,0,.6);
    animation:cdPop .7s ease;
  }
  @media (min-width:700px){ .cd-num{ font-size:150px; } }
  .cd-cap{ margin-top:10px; font-family:'Caveat',cursive; font-weight:700; font-size:1.6rem; color:#e9e4d8; }
  @keyframes cdPop{ 0%{ transform:scale(.4); opacity:0; } 30%{ transform:scale(1.15); opacity:1; } 100%{ transform:scale(1); opacity:1; } }

  /* ===== Модалка покупки рекламы ===== */
  .promo-form{ text-align:left; margin:6px 0 4px; }
  .promo-form label{ display:block; font-family:'Rubik',sans-serif; font-size:.72rem; color:rgba(36,23,8,.7); margin:8px 0 3px; }
  .promo-form textarea, .promo-form input{
    width:100%; box-sizing:border-box; border:1px solid rgba(36,23,8,.25);
    border-radius:6px; padding:8px 9px; font-family:'Rubik',sans-serif;
    font-size:.9rem; color:#241708; background:rgba(255,255,255,.65); resize:none;
  }
  .promo-form textarea:focus, .promo-form input:focus{ outline:none; border-color:var(--marker); }
  .promo-count{ font-family:'Rubik',sans-serif; font-size:.6rem; color:rgba(36,23,8,.5); text-align:right; margin-top:2px; }
  /* Обёртка превью: прозрачная, только центрирует настоящую картонку внутри.
     Вид даёт вложенная .promo-card.preview — идентичная картонкам у Гены. */
  .promo-preview{
    margin:14px auto 4px; display:flex; justify-content:center; background:none; border:0; padding:6px 0;
  }
  .promo-card.preview{
    transform:rotate(-3deg); cursor:default; pointer-events:none;
  }
  .promo-card.preview:hover{ transform:rotate(-3deg); }
  /* Плейсхолдер («Тут будет ваша картонка») — приглушённый курсив */
  .promo-card.preview .promo-text.ph{ opacity:.6; font-style:italic; font-weight:600; }
  .promo-preview-hint{ text-align:center; font-family:'Rubik',sans-serif; font-size:.66rem; color:rgba(36,23,8,.55); margin:2px 0 0; }
  .promo-status{ font-family:'Rubik',sans-serif; font-size:.72rem; margin:6px 0 2px; min-height:1em; }
  .promo-status.err{ color:#a5402d; }
  .promo-status.ok{ color:#5a6244; }

  /* ===== Тест-панель ===== */
  .test-panel{
    position:fixed; left:10px; bottom:10px; z-index:55; display:none;
    background:rgba(20,14,6,.92); border:1px solid var(--lamp,#ffc93c); border-radius:10px;
    padding:8px 10px; font-family:'Rubik',sans-serif; color:#e9e4d8; font-size:.72rem;
    box-shadow:0 6px 18px rgba(0,0,0,.4);
  }
  .test-panel.show{ display:block; }
  .test-panel .tp-title{ font-weight:700; color:var(--lamp,#ffc93c); font-size:.6rem; letter-spacing:.1em; text-transform:uppercase; margin-bottom:5px; }
  .test-panel label{ display:flex; align-items:center; gap:7px; cursor:pointer; }
  .test-panel input{ width:16px; height:16px; accent-color:var(--lamp,#ffc93c); }
  .test-panel .tp-hint{ margin-top:4px; font-size:.6rem; color:rgba(233,228,216,.55); max-width:180px; }
  .test-panel .tp-btn{
    margin-top:7px; width:100%; cursor:pointer;
    background:rgba(255,201,60,.15); color:var(--lamp,#ffc93c);
    border:1px solid rgba(255,201,60,.5); border-radius:7px; padding:6px 8px;
    font-family:'Rubik',sans-serif; font-size:.66rem; font-weight:700;
  }
  .test-panel .tp-btn:active{ transform:translateY(1px); }
  #adminOpen{ position:relative; }
  /* Бейдж непрочитанных заявок на кнопке «Управление рекламой» */
  .tp-badge{
    display:inline-block; min-width:18px; height:18px; line-height:18px; padding:0 5px;
    margin-left:6px; border-radius:9px; background:#e0392b; color:#fff;
    font-size:.62rem; font-weight:800; vertical-align:middle; box-shadow:0 0 0 2px rgba(224,57,43,.25);
    animation:badgePulse 1.6s ease-in-out infinite;
  }
  .tp-badge[hidden]{ display:none; }
  @keyframes badgePulse{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.14); } }

  .promo-rules-link{
    display:inline-block; margin-top:9px; font-family:'Rubik',sans-serif;
    font-size:.72rem; color:#5c3a12; text-decoration:underline; cursor:pointer;
  }
  .footer-link{ color:rgba(233,228,216,.5); font-size:.72rem; text-decoration:underline; cursor:pointer; }
  .footer-link:hover{ color:var(--lamp,#ffc93c); }
  .footer-sep{ color:rgba(233,228,216,.35); margin:0 7px; font-size:.72rem; }
  /* Окно контактов */
  .contacts-box{ max-width:360px; text-align:center; }
  .contacts-box .contacts-sub{ font-family:'Rubik',sans-serif; font-size:.82rem; color:rgba(36,23,8,.7); margin:6px 0 14px; }
  /* в окне контактов кнопки в столбик — влезает полный @аккаунт и адрес почты */
  .contacts-box .rules-contacts{ flex-direction:column; margin:0 0 14px; }
  .contacts-box .rc-btn{ font-size:.86rem; padding:11px 12px; }

/* ===== Счётчик посещений (видимый) ===== */
.visits{
  margin-top:10px; font-family:'Rubik',sans-serif; font-size:.72rem;
  color:rgba(233,228,216,.5); letter-spacing:.02em;
}
.visits b{ color:var(--lamp,#ffc93c); font-weight:700; }
.visits.clickable{ cursor:pointer; transition:color .15s; }
.visits.clickable:hover{ color:rgba(233,228,216,.85); }
.visits .v-chart{ margin-left:5px; opacity:.7; }
.visits.clickable:hover .v-chart{ opacity:1; }

/* ===== Модалка статистики посещений ===== */
.stats-box{ max-width:560px; width:100%; text-align:center; }
.stats-nav{ display:flex; align-items:center; justify-content:center; gap:14px; margin:8px 0 12px; }
.stats-nav b{ font-family:'Caveat',cursive; font-size:1.5rem; min-width:150px; color:#241708; }
.stats-nav .cal-nav[disabled]{ opacity:.3; cursor:default; }
.stats-totals{ display:flex; gap:8px; justify-content:center; flex-wrap:wrap; margin-bottom:12px; }
.stats-totals .stat-cell{
  flex:1; min-width:84px; background:rgba(255,255,255,.55); border:1px solid rgba(138,101,52,.35);
  border-radius:10px; padding:8px 6px; display:flex; flex-direction:column; align-items:center; gap:1px;
}
.stat-cell .sc-ico{ font-size:1rem; }
.stat-cell .sc-num{ font-family:'Rubik',sans-serif; font-weight:800; font-size:1.1rem; color:#241708; }
.stat-cell .sc-cap{ font-family:'Rubik',sans-serif; font-size:.6rem; color:rgba(36,23,8,.6); text-transform:uppercase; letter-spacing:.04em; }
.stats-chart{
  background:rgba(255,255,255,.4); border:1px solid rgba(138,101,52,.3); border-radius:10px;
  padding:10px 8px 4px; height:190px; display:flex; align-items:stretch; overflow-x:auto;
}
.stats-chart .chart-bars{ display:flex; align-items:flex-end; gap:2px; width:100%; min-width:100%; height:100%; }
.chart-bars .bar-col{
  flex:1 1 0; min-width:8px; display:flex; flex-direction:column; align-items:center; justify-content:flex-end;
  height:100%; position:relative;
}
.bar-col .bar{
  width:78%; max-width:22px; min-height:2px; border-radius:4px 4px 0 0;
  background:linear-gradient(180deg,#f0a04b,#c77c2e); box-shadow:inset 0 1px 0 rgba(255,255,255,.35);
  transition:filter .15s;
}
.bar-col.cur .bar{ background:linear-gradient(180deg,#5fbf6a,#2f8a3c); }
.bar-col:hover .bar{ filter:brightness(1.12); }
.bar-col .bar-val{ font-family:'Rubik',sans-serif; font-size:.5rem; font-weight:700; color:#5c3a12; margin-bottom:2px; height:.7em; }
.bar-col .bar-day{ font-family:'Rubik',sans-serif; font-size:.52rem; color:rgba(36,23,8,.5); margin-top:3px; height:.8em; }
.stats-chart .stats-load{ margin:auto; font-family:'Rubik',sans-serif; font-size:.8rem; color:rgba(36,23,8,.5); }
.stats-hint{ font-family:'Rubik',sans-serif; font-size:.66rem; color:rgba(36,23,8,.6); margin:12px 0 6px; }
.stats-links{ display:flex; gap:18px; justify-content:center; margin-bottom:6px; }
.stats-link{
  text-decoration:none; display:flex; flex-direction:column; align-items:center; gap:5px;
  padding:6px 10px; border-radius:12px; transition:background .15s, transform .12s;
}
.stats-link:hover{ background:rgba(36,23,8,.08); }
.stats-link:active{ transform:translateY(1px); }
.stats-link .sl-ico{
  width:52px; height:52px; border-radius:13px; background:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 2px 6px rgba(0,0,0,.18);
}
.stats-link .sl-ico svg{ display:block; }
.stats-link .sl-cap{ font-family:'Rubik',sans-serif; font-weight:600; font-size:.68rem; color:rgba(36,23,8,.75); }
.b-restore{ background:#3f7d3f; color:#fff; }

/* ===== Ссылка в админку (в тест-панели) ===== */
.test-panel .tp-admin{
  display:block; margin-top:7px; text-align:center; font-size:.66rem;
  color:rgba(233,228,216,.7); text-decoration:underline;
}

/* ===== Модалка правил (на странице) ===== */
.rules-box{ max-width:560px; text-align:left; max-height:82vh; display:flex; flex-direction:column; }
.rules-body{ overflow-y:auto; padding-right:4px; }
.rules-body h2{ font-family:'Caveat',cursive; font-size:1.5rem; color:var(--marker,#a5402d); margin:2px 0 8px; text-align:center; }
.rules-body h3{ font-family:'Rubik',sans-serif; font-size:.9rem; margin:12px 0 4px; }
.rules-body p, .rules-body li{ font-family:'Rubik',sans-serif; font-size:.84rem; color:#241708; line-height:1.5; }
.rules-body ul{ margin:4px 0; padding-left:20px; }
.rules-body li{ margin:3px 0; }
.rules-body .ok li::marker{ color:#3f7d3f; }
.rules-body .no li::marker{ color:var(--marker,#a5402d); }
.rules-body .warn{ background:#f6e2dd; border-left:3px solid var(--marker,#a5402d); padding:8px 10px; border-radius:6px; margin:10px 0; font-weight:600; }
.rules-body .tag{ display:inline-block; font-weight:700; font-size:.66rem; text-transform:uppercase; padding:2px 8px; border-radius:20px; }
.rules-body .tag.green{ background:#d8ecd0; color:#2f5d2a; }
.rules-body .tag.red{ background:#f0d6d1; color:#8a2c1e; }
/* Контакты администрации (в правилах) — компактно, в один ряд */
.rules-contacts{ display:flex; flex-direction:row; gap:8px; margin:8px 0 4px; }
.rc-btn{
  flex:1; display:inline-flex; align-items:center; justify-content:center; gap:7px; text-decoration:none;
  font-family:'Rubik',sans-serif; font-weight:700; font-size:.8rem;
  padding:9px 10px; border-radius:9px; color:#fff; transition:filter .15s, transform .1s;
}
.rc-btn svg{ flex:none; }
.rc-btn:active{ transform:translateY(1px); }
.rc-btn:hover{ filter:brightness(1.06); }
.rc-btn.tg{ background:#2aabee; }
.rc-btn.mail{ background:#8a6534; }

/* ===== Читаемость на фонах-картинках ===== */
/* Заголовок без плашки — цвет текста подстраивается под яркость фона.
   Тёмный фон (по умолчанию): светлый текст с тенью.
   Светлый фон (.on-light): тёмный текст. */
header{ text-align:center; position:relative; z-index:3; }
.title-cloud{
  display:inline-block; max-width:92%;
  background:transparent; border:0; border-radius:22px;
  padding:6px 22px 9px; box-shadow:none;
  transition:color .3s;
}
.title-cloud .graffiti{
  color:#fff; margin:0;
  text-shadow:0 2px 5px rgba(0,0,0,.75), 0 0 2px rgba(0,0,0,.6);
}
.title-cloud .sub{
  color:#f2ead9;
  text-shadow:0 1px 4px rgba(0,0,0,.8), 0 0 2px rgba(0,0,0,.55);
}
.title-cloud.on-light .graffiti{
  color:#241708;
  text-shadow:0 1px 3px rgba(255,255,255,.65);
}
.title-cloud.on-light .sub{
  color:#3e2f18;
  text-shadow:0 1px 2px rgba(255,255,255,.6);
}
.wall.bg-image svg.gena{ filter:drop-shadow(0 4px 10px rgba(0,0,0,.6)); }

/* ===== Живые уведомления о донатах ===== */
.toast-wrap{
  position:fixed; top:12px; left:50%; transform:translateX(-50%);
  z-index:70; display:flex; flex-direction:column; gap:8px; align-items:center;
  pointer-events:none; width:max-content; max-width:92vw;
}
.toast{
  background:rgba(20,14,6,.94); color:#e9e4d8; border:1px solid var(--lamp,#ffc93c);
  border-radius:20px; padding:8px 16px; font-family:'Rubik',sans-serif; font-size:.8rem;
  font-weight:600; box-shadow:0 6px 18px rgba(0,0,0,.4);
  animation:toastIn .3s ease, toastOut .4s ease 4.2s forwards;
}
.toast b{ color:var(--lamp,#ffc93c); }
@keyframes toastIn{ from{ opacity:0; transform:translateY(-12px); } to{ opacity:1; transform:none; } }
@keyframes toastOut{ to{ opacity:0; transform:translateY(-10px); } }

/* ===== Модалка управления рекламой (админ) ===== */
.admin-box{ max-width:520px; text-align:left; max-height:84vh; display:flex; flex-direction:column; }
.admin-box .p-name{ text-align:center; }
.admin-box input{ width:100%; box-sizing:border-box; margin:6px 0; padding:9px 11px; border:1px solid rgba(36,23,8,.3); border-radius:8px; font-family:'Rubik',sans-serif; font-size:.95rem; }
.adm-visits{ font-family:'Rubik',sans-serif; font-size:.8rem; color:rgba(36,23,8,.7); margin:2px 0 8px; }
.adm-ads{ overflow-y:auto; }
.adm-ad{ border:1px solid rgba(36,23,8,.15); border-radius:9px; padding:10px; margin:8px 0; font-family:'Rubik',sans-serif; }
.adm-ad .tag{ display:inline-block; font-size:.62rem; font-weight:700; text-transform:uppercase; padding:2px 7px; border-radius:20px; margin-right:5px; }
.adm-ad .tag.real{ background:#d8ecd0; color:#2f5d2a; } .adm-ad .tag.test{ background:#fde9c8; color:#8a5a12; }
.adm-ad .txt{ font-weight:700; margin:4px 0; color:#241708; word-break:break-word; }
.adm-ad .url{ font-size:.76rem; color:#5c3a12; word-break:break-all; }
.adm-ad button{ margin-top:7px; background:#c0392b; color:#fff; border:none; border-radius:7px; padding:6px 12px; font-size:.78rem; font-weight:700; cursor:pointer; }

/* ===== Бронь рекламы: календарь недель ===== */
.booking-box{ max-width:540px; max-height:88vh; display:flex; flex-direction:column; overflow-y:auto; text-align:left; }
.ad-price-hint{ text-align:center; font-family:'Rubik',sans-serif; font-size:.78rem; font-weight:700; color:#5c3a12; background:rgba(217,164,65,.25); border:1px solid rgba(138,101,52,.35); border-radius:8px; padding:6px 10px; margin:6px 0 2px; }
.booking-box .p-name, .booking-box .p-price, .booking-box .p-icon{ text-align:center; }
.promo-cal-wrap{ margin:6px 0 4px; }
.promo-cal-title{ font-family:'Rubik',sans-serif; font-size:.74rem; color:rgba(36,23,8,.7); margin-bottom:5px; }
.promo-cal{ display:flex; flex-wrap:wrap; gap:6px; }
.promo-week{
  flex:1 1 46%; min-width:130px; box-sizing:border-box;
  border:1.5px solid #8a6534; border-radius:8px; padding:7px 9px; cursor:pointer;
  background:#fff8ec; font-family:'Rubik',sans-serif; font-size:.76rem; color:#241708; text-align:left;
}
.promo-week small{ display:block; font-size:.62rem; color:rgba(36,23,8,.55); }
.promo-week.sel{ border-color:var(--marker,#a5402d); background:#ffe8cf; box-shadow:0 0 0 2px rgba(165,64,45,.25) inset; }
.promo-week.taken{ opacity:.5; cursor:not-allowed; background:#eee; text-decoration:line-through; }

/* ===== Тест-панель: логин ===== */
.test-panel #tpLogin input{
  width:100%; box-sizing:border-box; margin:4px 0; padding:7px 9px; border-radius:6px; border:1px solid rgba(255,201,60,.4);
  background:rgba(255,255,255,.1); color:#e9e4d8; font-family:'Rubik',sans-serif; font-size:.78rem;
}
.test-panel label{ margin:5px 0; }

/* ===== Админ: настройка чеков на почту ===== */
.adm-set{ display:flex; align-items:center; gap:7px; font-family:'Rubik',sans-serif; font-size:.8rem; color:#241708; margin:8px 0 2px; cursor:pointer; }
.adm-set input{ width:16px; height:16px; }
.adm-set-hint{ font-family:'Rubik',sans-serif; font-size:.66rem; color:rgba(36,23,8,.55); margin:0 0 6px 23px; }
.adm-set-hint.warn{ color:#a5402d; }

/* ===== Админ: заявки/брони ===== */
/* Секции: «новые заявки» визуально отделены от «обработанных» */
.adm-section{ margin:12px 0; border-radius:12px; }
.adm-section.pending{ background:rgba(253,220,120,.28); border:1.5px solid rgba(200,145,26,.5); padding:4px 10px 8px; }
.adm-section.pending .adm-h{ color:#8a5a12; border-bottom-color:rgba(138,90,18,.3); }
.adm-count{ font-weight:800; color:#b8341c; }
.admin-box .adm-h{ font-family:'Rubik',sans-serif; font-size:.86rem; margin:12px 0 4px; color:#5c3a12; border-bottom:1px solid rgba(36,23,8,.15); padding-bottom:3px; }
.adm-booking{ border:1px solid rgba(36,23,8,.15); border-radius:9px; padding:9px 10px; margin:7px 0; font-family:'Rubik',sans-serif; }
.adm-booking .b-meta{ font-size:.68rem; color:rgba(36,23,8,.55); }
.adm-booking .b-txt{ font-weight:700; color:#241708; margin:3px 0; word-break:break-word; }
.adm-booking .b-url{ font-size:.74rem; color:#5c3a12; word-break:break-all; }
.adm-booking .b-tag{ display:inline-block; font-size:.6rem; font-weight:700; text-transform:uppercase; padding:1px 6px; border-radius:20px; margin-right:4px; }
.b-tag.pending{ background:#fdecc8; color:#8a5a12; } .b-tag.approved{ background:#d8ecd0; color:#2f5d2a; } .b-tag.rejected{ background:#f0d6d1; color:#8a2c1e; } .b-tag.test{ background:#e0e7f0; color:#3a5a8a; } .b-tag.unpaid{ background:#eee; color:#888; }
.adm-booking .b-acts{ margin-top:7px; display:flex; gap:6px; flex-wrap:wrap; }
.adm-booking button{ border:none; border-radius:6px; padding:5px 10px; font-size:.72rem; font-weight:700; cursor:pointer; }
.b-approve{ background:#3f7d3f; color:#fff; } .b-reject{ background:#c77; color:#fff; } .b-edit{ background:#8a6534; color:#fff; } .b-del{ background:#c0392b; color:#fff; }

/* ===== Вкладка «Последние балования» ===== */
.recent-list{ grid-column:1 / -1; display:flex; flex-direction:column; gap:8px; }
.recent-title{ font-family:'Caveat',cursive; font-weight:700; font-size:1.4rem; color:var(--lamp,#ffc93c); text-align:center; margin-bottom:2px; }
.recent-empty{ text-align:center; color:var(--muted,#b9b2a5); font-family:'Rubik',sans-serif; font-size:.9rem; padding:14px; }
/* 5 последних покупок — красивые подарочные карточки в одну линию */
.recent-line{ display:flex; gap:8px; justify-content:center; }
/* единый тёмный фон + светлая рамка у каждой карточки (одинаково для всех, в т.ч. рекламы) */
.gift-card{
  flex:0 0 auto; width:106px; box-sizing:border-box; text-align:center;
  background:linear-gradient(165deg,#3b3120,#2b2415); border:1.5px solid rgba(233,228,216,.5);
  border-radius:12px; padding:10px 8px 8px; box-shadow:0 3px 10px rgba(0,0,0,.4);
}
.gift-card .g-ic{ font-size:1.85rem; line-height:1; filter:drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.gift-card .g-name{
  font-family:'Rubik',sans-serif; font-size:.72rem; font-weight:700; color:var(--chalk,#e9e4d8);
  margin-top:5px; line-height:1.15; min-height:2.1em;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.gift-card .g-ti{ font-family:'Rubik',sans-serif; font-size:.6rem; color:rgba(233,228,216,.5); margin-top:4px; }
@media (max-width:600px){ .recent-line{ overflow-x:auto; justify-content:flex-start; padding-bottom:4px; } .gift-card{ width:94px; } }

/* ===== Админ: повлиять на Гену ===== */
.adm-influence{ display:flex; gap:8px; align-items:center; margin:4px 0 8px; }
.adm-influence select{ flex:1; padding:8px 10px; border:1px solid rgba(36,23,8,.3); border-radius:8px; font-family:'Rubik',sans-serif; font-size:.85rem; background:#fff8ec; color:#241708; }
.adm-influence .p-go{ width:auto; padding:9px 16px; margin:0; }
.admin-box .adm-reset{ background:rgba(192,57,43,.14); color:#a5402d; border:1px solid rgba(192,57,43,.4); margin-bottom:8px; }

/* ===== Блок «Последние балования» (после товаров) ===== */
.recent-block{ max-width:900px; margin:8px auto 0; padding:0 16px; display:flex; flex-direction:column; gap:8px; }
.recent-block .recent-title{ font-family:'Caveat',cursive; font-weight:700; font-size:1.4rem; color:var(--lamp,#ffc93c); text-align:center; margin-bottom:2px; }

/* ===== Календарь брони (Airbnb-стиль) ===== */
.cal-head{ display:flex; align-items:center; justify-content:space-between; margin:4px 0 6px; font-family:'Rubik',sans-serif; }
.cal-head b{ font-size:.95rem; color:#241708; }
.cal-nav{ background:#eadfce; border:1px solid #b9975b; border-radius:8px; padding:4px 10px; cursor:pointer; font-weight:700; color:#5c3a12; }
.cal-nav[disabled]{ opacity:.4; cursor:default; }
.cal-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
.cal-dow{ text-align:center; font-size:.62rem; color:rgba(36,23,8,.55); font-family:'Rubik',sans-serif; padding-bottom:2px; }
.cal-day{
  aspect-ratio:1/1; display:flex; align-items:center; justify-content:center;
  border-radius:8px; font-family:'Rubik',sans-serif; font-size:.82rem; cursor:pointer;
  border:1px solid transparent; background:#fff8ec; color:#241708; user-select:none;
}
.cal-day.empty{ background:transparent; cursor:default; }
.cal-day.past, .cal-day.taken{ background:#e8e2d6; color:#b3a88f; cursor:not-allowed; text-decoration:line-through; }
.cal-day.free:hover{ border-color:var(--marker,#a5402d); }
.cal-day.sel{ background:var(--marker,#a5402d); color:#fff; }
.cal-day.inrange{ background:#f0c9a0; }
.cal-sel-info{ margin:8px 0 2px; font-family:'Rubik',sans-serif; font-size:.85rem; color:#241708; text-align:center; }
.cal-sel-info b{ color:var(--marker,#a5402d); }

/* ===== Модалка «Настройка Гены» ===== */
.gena-lbl{ display:block; font-family:'Rubik',sans-serif; font-size:.82rem; font-weight:700; color:#5c3a12; margin:10px 0 3px; }
.gena-items{ display:flex; flex-wrap:wrap; gap:6px; margin:2px 0 6px; }
.gena-item{ border:1px solid #b9975b; background:#fff8ec; border-radius:8px; padding:6px 10px; font-family:'Rubik',sans-serif; font-size:.8rem; cursor:pointer; color:#241708; }
.gena-item.on{ background:#d8ecd0; border-color:#3f7d3f; }

/* ===== Календарь: навигация и быстрый выбор ===== */
.cal-quick{ display:flex; gap:6px; margin-top:7px; }
.cal-qbtn{ flex:1; background:#eadfce; border:1px solid #b9975b; border-radius:8px; padding:6px 4px; cursor:pointer; font-family:'Rubik',sans-serif; font-size:.74rem; font-weight:700; color:#5c3a12; }
.cal-qbtn:active{ transform:translateY(1px); }
.cal-qbtn .disc{ font-weight:800; padding:0 2px; border-radius:4px; }
.cal-qbtn .disc-week{ color:#b58900; text-shadow:0 1px 0 rgba(255,255,255,.4); }   /* неделя — жёлтый (золотистый, читаемый) */
.cal-qbtn .disc-month{ color:#b8341c; }  /* месяц — красный (скидка больше) */
.cal-day.today{ outline:2px solid var(--lamp,#ffc93c); outline-offset:-2px; }

/* ===== Чек после доната ===== */
.receipt-box{ position:relative; overflow:hidden; text-align:center; max-width:400px; }
.receipt-box.tier-bronze{ background:linear-gradient(160deg,#f3e7d6,#e6cfa8); }
.receipt-box.tier-silver{ background:linear-gradient(160deg,#eef2f6,#cdd7e2); }
.receipt-box.tier-gold{ background:linear-gradient(160deg,#fff3c4,#f2cd5a); box-shadow:0 0 0 3px #e0a92e, 0 14px 40px rgba(180,120,0,.4); }
.receipt-box.tier-crown{ background:linear-gradient(160deg,#fbe6a0,#ffd34d 40%,#ff9f43); box-shadow:0 0 0 4px #e08b1e, 0 16px 50px rgba(200,120,0,.55); }
.rc-shine{ position:absolute; top:-60%; left:-30%; width:60%; height:220%; transform:rotate(20deg); background:linear-gradient(90deg,transparent,rgba(255,255,255,.5),transparent); animation:rcShine 3.5s ease-in-out infinite; pointer-events:none; }
@keyframes rcShine{ 0%,100%{ left:-40%; } 50%{ left:120%; } }
.rc-emoji{ font-size:3.4rem; line-height:1; margin:4px 0 6px; }
.rc-title{ font-family:'Caveat',cursive; font-weight:700; font-size:1.9rem; color:#2b1c0c; }
.rc-item{ font-family:'Rubik',sans-serif; font-weight:700; font-size:1rem; color:#3a2a12; margin-top:4px; }
.rc-amount{ font-family:'Rubik',sans-serif; font-weight:700; font-size:1.5rem; color:#a5402d; margin:4px 0 8px; }
.rc-wish{ font-family:'Caveat',cursive; font-size:1.35rem; color:#3a2a12; line-height:1.25; margin:0 auto 6px; max-width:320px; }
.rc-sign{ font-family:'Caveat',cursive; font-size:1.15rem; color:#5c4626; margin-bottom:12px; }
.rc-hint{ font-family:'Rubik',sans-serif; font-size:.72rem; color:rgba(58,42,18,.7); margin:0 0 8px; }
.receipt-box .p-go{ background:var(--marker,#a5402d); color:#fff; }
/* Кнопка «Забрать награду» — заметная, зовущая нажать */
.receipt-box .p-go.rc-claim{
  background:linear-gradient(160deg,#3f9d4a,#2c7d38); font-size:1.05rem; padding:13px 22px;
  box-shadow:0 5px 0 #1f5a28; animation:claimPulse 1.5s ease-in-out infinite;
}
.receipt-box .p-go.rc-claim:active{ transform:translateY(3px); box-shadow:0 2px 0 #1f5a28; }
@keyframes claimPulse{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.035); } }

/* ===================== ПОЛЕЗНЯХИ ОТ ГЕННАДИЯ ===================== */
/* Миниатюрный чемоданчик в углу сцены (не мешает картонкам и вещам Гены) */
.tools-suitcase{
  position:absolute; top:10px; left:10px; z-index:6; cursor:pointer;
  display:inline-flex; flex-direction:column; align-items:center; gap:1px;
  background:rgba(20,16,10,.42); border:1px solid rgba(255,201,60,.5); border-radius:10px;
  padding:5px 8px; color:#ffe0a3; font-family:'Rubik',sans-serif;
  backdrop-filter:blur(2px); transition:transform .12s, background .15s;
}
.tools-suitcase:hover{ background:rgba(20,16,10,.62); transform:translateY(-1px); }
.tools-suitcase:active{ transform:translateY(1px); }
.tools-suitcase .ts-ico{ font-size:1.5rem; line-height:1; }
.tools-suitcase .ts-lbl{ font-size:.56rem; font-weight:700; letter-spacing:.02em; text-transform:lowercase; }
@media (max-width:560px){
  .tools-suitcase{ top:6px; left:6px; padding:4px 6px; }
  .tools-suitcase .ts-ico{ font-size:1.25rem; }
}

/* Модалка полезняшек: внутренний скролл, крестик зафиксирован сверху */
.tools-box{ max-width:410px; max-height:88vh; display:flex; flex-direction:column; padding:0; text-align:center; }
.tools-box > .modal-x{ z-index:6; }
.tools-scroll{ overflow-y:auto; min-height:0; padding:22px 20px 18px; overscroll-behavior:contain; -webkit-overflow-scrolling:touch; }
body.modal-open{ overflow:hidden; }   /* фон не скроллится, пока открыта модалка (мобайл) */
.tools-view{ text-align:left; }
.tool-back{ background:none; border:none; color:#8a6534; font-family:'Rubik',sans-serif; font-weight:700; font-size:.78rem; cursor:pointer; padding:2px 0; margin-bottom:6px; }
.tool-back:hover{ color:#5c3a12; }
.tool-back-btm{ display:block; width:100%; text-align:center; margin:14px 0 2px; padding:10px; border:1px solid #b9975b; border-radius:9px; background:#eadfce; color:#5c3a12; }
.tool-back-btm:hover{ background:#e0d3b8; }
.tool-h{ font-family:'Caveat',cursive; font-size:1.6rem; color:#241708; text-align:center; margin-bottom:4px; }
.tool-sub{ font-family:'Rubik',sans-serif; font-size:.8rem; color:rgba(36,23,8,.65); text-align:center; margin:0 0 12px; }
.tools-box input[type=text]{
  width:100%; box-sizing:border-box; border:1px solid rgba(36,23,8,.28); border-radius:8px;
  padding:10px 11px; font-family:'Rubik',sans-serif; font-size:.92rem; color:#241708; background:rgba(255,255,255,.7); margin-bottom:10px;
}
.tools-box input[type=text]:focus{ outline:none; border-color:var(--marker,#a5402d); }

/* Хаб выбора */
.tools-view[hidden]{ display:none !important; }   /* перебиваем display:flex у #toolsHub */
#toolsHub{ display:flex; flex-direction:column; gap:10px; margin-top:8px; }
.tool-choice{
  display:flex; align-items:center; gap:12px; text-align:left; cursor:pointer;
  background:rgba(255,255,255,.55); border:1px solid rgba(138,101,52,.4); border-radius:12px; padding:12px 14px;
  font-family:'Rubik',sans-serif; transition:background .15s, transform .1s;
}
.tool-choice:hover{ background:rgba(255,255,255,.85); }
.tool-choice:active{ transform:translateY(1px); }
.tool-choice .tc-ico{ font-size:1.9rem; flex:none; }
.tool-choice .tc-txt{ display:flex; flex-direction:column; }
.tool-choice .tc-txt b{ font-size:.98rem; color:#241708; }
.tool-choice .tc-txt small{ font-size:.74rem; color:rgba(36,23,8,.6); }

/* Да/нет */
.yesno-answer{
  margin:12px 0 6px; padding:16px; border-radius:12px; text-align:center;
  background:linear-gradient(160deg,#2a2440,#141126); color:#fff;
  font-family:'Caveat',cursive; font-size:1.7rem; line-height:1.2; box-shadow:0 6px 18px rgba(0,0,0,.3);
  animation:yesnoPop .35s ease;
}
@keyframes yesnoPop{ 0%{ transform:scale(.8); opacity:0; } 100%{ transform:scale(1); opacity:1; } }
.yesno-answer .ya-verdict{ display:block; font-weight:700; font-size:2rem; margin-bottom:2px; }
.yesno-limit{ font-family:'Rubik',sans-serif; font-size:.74rem; color:rgba(36,23,8,.6); text-align:center; margin-top:6px; }
/* счётчик длины (0/50) под полем */
.tool-count{ font-family:'Rubik',sans-serif; font-size:.62rem; color:rgba(36,23,8,.5); text-align:right; margin:-6px 0 8px; }
/* сообщение «Гена обиделся» + красивая кнопка доната (общее для да-нет, погоды, крестиков) */
.limit-msg{ font-family:'Rubik',sans-serif; font-size:.8rem; color:#8a2c1e; text-align:center; margin:4px 0 10px; line-height:1.4; }
.coin-btn{
  display:flex; align-items:center; justify-content:center; gap:8px; width:100%; box-sizing:border-box; cursor:pointer;
  background:linear-gradient(160deg,#ffd869,#e8a92e); color:#3a2508; border:none; border-radius:11px;
  padding:12px 16px; font-family:'Rubik',sans-serif; font-weight:800; font-size:.92rem;
  box-shadow:0 5px 0 #b07d18, 0 8px 16px rgba(176,125,24,.35); animation:coinShine 2s ease-in-out infinite;
}
.coin-btn:hover{ filter:brightness(1.05); }
.coin-btn:active{ transform:translateY(4px); box-shadow:0 1px 0 #b07d18; }
.coin-btn .cb-ico{ font-size:1.2rem; filter:drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
@keyframes coinShine{ 0%,100%{ box-shadow:0 5px 0 #b07d18, 0 8px 16px rgba(176,125,24,.35); } 50%{ box-shadow:0 5px 0 #b07d18, 0 8px 22px rgba(255,190,60,.6); } }

/* Крестики-нолики: два сегментных тумблера */
.ttt-opts{ display:flex; flex-direction:column; gap:7px; align-items:center; margin:6px 0 12px; }
.ttt-seg{ display:flex; align-items:center; gap:6px; font-family:'Rubik',sans-serif; font-size:.76rem; color:rgba(36,23,8,.7); }
.ttt-seg .ts-lbl2{ min-width:82px; text-align:right; }
.ttt-sbtn, .ttt-fbtn, .ttt-mbtn{ background:#eadfce; border:1px solid #b9975b; padding:5px 14px; font-family:'Rubik',sans-serif; font-size:.76rem; font-weight:700; color:#5c3a12; cursor:pointer; }
.ttt-seg button:first-of-type{ border-radius:7px 0 0 7px; }
.ttt-seg button:last-of-type{ border-radius:0 7px 7px 0; border-left:none; }
.ttt-sbtn.active, .ttt-fbtn.active, .ttt-mbtn.active{ background:#d9a441; color:#241708; border-color:#8a6534; }
/* тумблер метки: ✕ синий / ◯ красный — крупные глифы */
.ttt-mbtn{ font-size:1.4rem; line-height:1; padding:1px 16px; font-weight:900; }
.ttt-mbtn.mk-blue{ color:#1e73e8; } .ttt-mbtn.mk-red{ color:#e0392b; font-size:1.12rem; }   /* ◯ визуально крупнее ✕ — чуть уменьшаем */
.ttt-mbtn.active.mk-blue, .ttt-mbtn.active.mk-red{ color:#241708; }
/* «Применить»: по умолчанию неактивна; есть изменения → тёмная под дизайн */
.ttt-apply{ margin-top:3px; background:#b9a888; color:#fff; border:none; border-radius:8px; padding:7px 18px; font-family:'Rubik',sans-serif; font-size:.76rem; font-weight:700; cursor:pointer; transition:background .15s, transform .1s; }
.ttt-apply:disabled{ background:transparent; color:rgba(36,23,8,.4); border:1.5px dashed rgba(138,101,52,.45); opacity:1; cursor:default; }
.ttt-apply.ready{ background:linear-gradient(160deg,#3d2c14,#241708); color:#ffd98a; border:1px solid #5c3a12; box-shadow:0 3px 0 #160f05; animation:claimPulse 1.5s ease-in-out infinite; }
.ttt-apply.ready:active{ transform:translateY(2px); box-shadow:0 1px 0 #160f05; }
.ttt-board{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; max-width:270px; margin:0 auto; }
.ttt-cell{
  aspect-ratio:1; background:rgba(255,255,255,.7); border:2px solid #8a6534; border-radius:10px;
  font-size:3rem; font-weight:900; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center;
  font-family:'Arial',sans-serif; color:#241708;
}
.ttt-cell .mk-x{ color:#1e73e8; font-weight:900; text-shadow:0 1px 0 rgba(255,255,255,.6); }   /* ✕ — синий, жирный */
.ttt-cell .mk-o{ width:2.1rem; height:2.1rem; border:0.42rem solid #e0392b; border-radius:50%; box-sizing:border-box; }  /* ○ — толстое красное кольцо, хорошо видно */
.ttt-cell:disabled{ cursor:default; }
.ttt-cell.win{ background:#d8ecd0; border-color:#3f7d3f; }
.ttt-status{ font-family:'Rubik',sans-serif; font-weight:700; font-size:.9rem; text-align:center; margin:12px 0 8px; min-height:1.2em; color:#241708; }
.ttt-limit{ margin:4px 0 10px; }
.ttt-limit[hidden]{ display:none; }
.ttt-resetbtn{ display:block; margin:0 auto; background:#8a6534; color:#fff; }
/* недоступна (ход ещё не сделан) — ясный «призрачный» вид с пунктиром */
.ttt-resetbtn:disabled{ background:transparent; color:rgba(36,23,8,.4); border:1.5px dashed rgba(138,101,52,.45); box-shadow:none; opacity:1; cursor:default; }

/* Погода */
#wxResult{ margin-top:10px; }
.wx-card{ background:rgba(255,255,255,.6); border:1px solid rgba(138,101,52,.4); border-radius:12px; padding:14px; text-align:center; font-family:'Rubik',sans-serif; }
.wx-city{ font-weight:700; font-size:1rem; color:#241708; }
.wx-main{ display:flex; align-items:center; justify-content:center; gap:10px; margin:6px 0; }
.wx-emoji{ font-size:2.6rem; }
.wx-temp{ font-size:2.2rem; font-weight:800; color:#241708; }
.wx-desc{ font-size:.82rem; color:rgba(36,23,8,.7); }
.wx-extra{ font-size:.74rem; color:rgba(36,23,8,.55); margin-top:3px; }
.wx-gena{ margin-top:12px; background:#c79a5f; border:2px solid #8a6534; border-radius:10px; padding:10px 12px; font-family:'Caveat',cursive; font-size:1.15rem; color:#241708; }
.wx-gena::before{ content:'🎩 '; }
/* почасовой прогноз (горизонтальный скролл) */
.wx-h-title{ font-family:'Rubik',sans-serif; font-weight:700; font-size:.76rem; color:rgba(36,23,8,.7); text-align:left; margin:12px 0 6px; }
.wx-hours{ display:flex; gap:6px; overflow-x:auto; padding-bottom:4px; }
.wx-hour{ flex:none; display:flex; flex-direction:column; align-items:center; gap:2px; min-width:46px; background:rgba(255,255,255,.55); border:1px solid rgba(138,101,52,.35); border-radius:9px; padding:7px 4px; }
.wx-hour .wh-t{ font-family:'Rubik',sans-serif; font-size:.62rem; color:rgba(36,23,8,.6); }
.wx-hour .wh-e{ font-size:1.15rem; line-height:1; }
.wx-hour .wh-d{ font-family:'Rubik',sans-serif; font-weight:700; font-size:.8rem; color:#241708; }
.wx-tomorrow{ margin-top:12px; font-family:'Rubik',sans-serif; font-size:.86rem; font-weight:600; color:#241708; text-align:center; background:rgba(255,255,255,.45); border-radius:9px; padding:9px; }
.wx-loading, .wx-error{ font-family:'Rubik',sans-serif; font-size:.85rem; color:rgba(36,23,8,.65); text-align:center; padding:12px; }

/* ===== Окно действий по рекламной картонке ===== */
.promo-card-box{ max-width:360px; text-align:center; }
.pc-cardwrap{ display:flex; justify-content:center; margin:10px 0 14px; }
.cal-loading{ text-align:center; padding:22px; font-family:'Rubik',sans-serif; font-size:1.4rem; color:rgba(36,23,8,.4); }
.pc-actions{ display:flex; flex-direction:column; gap:8px; margin-bottom:10px; }
.pc-btn{ display:flex; align-items:center; justify-content:center; gap:8px; width:100%; box-sizing:border-box; cursor:pointer; text-decoration:none;
  font-family:'Rubik',sans-serif; font-weight:700; font-size:.86rem; padding:11px 14px; border-radius:10px; border:none; }
.pc-btn:active{ transform:translateY(1px); }
.pc-btn.go{ background:#7ba7c4; color:#fff; }   /* мягкий приглушённый голубой под дизайн */
.pc-btn.go:hover{ background:#6b9bba; }
.pc-btn.copy{ background:#eadfce; color:#5c3a12; border:1px solid #b9975b; }
.pc-btn.book{ background:linear-gradient(160deg,#f0c96a,#d9a441); color:#241708; border:1px solid #8a6534; }
.pc-hint{ font-family:'Rubik',sans-serif; font-size:.7rem; color:rgba(36,23,8,.6); margin-bottom:10px; line-height:1.4; }

/* ===== Анимация «мелочь в шапку»: снять шапку, перевернуть вниз, бросить монетку ===== */
#svg-gena.coin-toss #genaHat{ animation:genaHatCoin 2.6s ease-in-out; }
#svg-gena.coin-toss #genaCoin{ animation:genaCoinDrop 2.6s ease-in-out; }
@keyframes genaHatCoin{
  0%   { transform:translate(0,0) rotate(0deg); }
  15%  { transform:translate(0,-6px) rotate(-7deg); }        /* приподнял */
  38%  { transform:translate(-4px,214px) rotate(180deg); }   /* положил у ног, перевёрнута */
  82%  { transform:translate(-4px,214px) rotate(180deg); }   /* держит */
  100% { transform:translate(0,0) rotate(0deg); }            /* вернул на голову */
}
@keyframes genaCoinDrop{
  0%,32%  { opacity:0; transform:translate(0,-52px) rotate(0deg); }
  40%     { opacity:1; transform:translate(0,-40px) rotate(90deg); }
  60%     { opacity:1; transform:translate(0,96px) rotate(340deg); }
  66%     { opacity:1; transform:translate(0,120px) rotate(380deg); }  /* в шапке */
  70%     { opacity:1; transform:translate(0,112px) rotate(390deg); }  /* отскок */
  76%,82% { opacity:1; transform:translate(0,120px) rotate(390deg); }
  92%,100%{ opacity:0; transform:translate(0,120px) rotate(390deg); }
}

/* ===== Гороскоп «индекс дня» ===== */
.astro-inputs{ display:flex; gap:6px; margin:6px 0 10px; }
.astro-inputs select{ flex:1; padding:9px 6px; border:1px solid rgba(36,23,8,.28); border-radius:8px; font-family:'Rubik',sans-serif; font-size:.86rem; background:rgba(255,255,255,.7); color:#241708; }
.astro-inputs select:focus{ outline:none; border-color:var(--marker,#a5402d); }
.astro-pick{ text-align:center; font-family:'Rubik',sans-serif; font-size:.82rem; color:rgba(36,23,8,.6); padding:14px 6px; }
.astro-nav{ display:flex; align-items:center; justify-content:space-between; gap:8px; margin:10px 0 8px; }
.astro-nav b{ font-family:'Caveat',cursive; font-size:1.2rem; color:#241708; }
.astro-navb{ background:#eadfce; border:1px solid #b9975b; border-radius:7px; padding:5px 10px; font-family:'Rubik',sans-serif; font-size:.72rem; font-weight:700; color:#5c3a12; cursor:pointer; }
.astro-navb:active{ transform:translateY(1px); }
.astro-navb[disabled]{ opacity:.35; cursor:default; }
/* компактная сетка: 7 дней в один ряд */
.astro-week{ display:grid; grid-template-columns:repeat(7,1fr); gap:4px; }
.astro-day{ box-sizing:border-box; display:flex; flex-direction:column; align-items:center; gap:1px; padding:6px 1px; border:2px solid transparent; border-radius:8px; font-family:'Rubik',sans-serif; cursor:pointer; transition:transform .1s; }
.astro-day:active{ transform:scale(.97); }
.astro-day .ad-wd{ font-weight:700; font-size:.62rem; color:#241708; text-transform:capitalize; }
.astro-day .ad-dm{ font-size:.66rem; font-weight:700; color:rgba(36,23,8,.7); }
.astro-day .ad-st{ font-size:.46rem; letter-spacing:-1px; color:#c8901a; white-space:nowrap; }
.astro-day.good{ background:#d8ecd0; } .astro-day.mid{ background:#fbf1c9; } .astro-day.bad{ background:#f3d9d3; }
.astro-day.today .ad-wd{ color:#a5402d; }
.astro-day.selected{ border-color:#241708; box-shadow:0 2px 7px rgba(0,0,0,.3); transform:scale(1.06); position:relative; z-index:1; }
.astro-taphint{ text-align:center; font-family:'Rubik',sans-serif; font-size:.68rem; color:rgba(36,23,8,.55); margin:8px 0 4px; }
.astro-selhead{ text-align:center; font-family:'Caveat',cursive; font-size:1.35rem; color:#241708; margin:6px 0 4px; }
.astro-detail{ background:rgba(255,255,255,.5); border:1px solid rgba(138,101,52,.35); border-radius:12px; padding:12px 14px; }
.ad-general{ font-family:'Rubik',sans-serif; font-size:.86rem; color:#241708; line-height:1.45; margin-bottom:10px; }
.ad-sphere{ display:flex; align-items:center; justify-content:space-between; font-family:'Rubik',sans-serif; font-size:.8rem; font-weight:700; color:#241708; margin-top:8px; }
.ad-sphere .ad-mini{ color:#c8901a; letter-spacing:1px; }
.ad-sphere-txt{ font-family:'Rubik',sans-serif; font-size:.78rem; color:rgba(36,23,8,.72); line-height:1.4; margin-top:1px; }
.ad-advice{ margin-top:12px; background:#c79a5f; border:1.5px solid #8a6534; border-radius:9px; padding:9px 11px; font-family:'Rubik',sans-serif; font-size:.82rem; color:#241708; line-height:1.4; }
.astro-best{ font-family:'Rubik',sans-serif; font-size:.82rem; color:#241708; text-align:center; margin-top:12px; }
.astro-limit[hidden]{ display:none; }
.astro-limit{ margin-top:10px; }

/* ===== Радио-бар (при магнитофоне) ===== */
.radio-bar{ display:flex; align-items:center; justify-content:center; gap:8px; flex-wrap:wrap;
  max-width:520px; margin:8px auto 0; padding:8px 12px; border-radius:12px;
  background:linear-gradient(160deg,#3a3020,#2b2415); border:1.5px solid rgba(233,228,216,.4); }
.radio-bar[hidden]{ display:none; }
.radio-bar .radio-ic{ font-size:1.2rem; }
.radio-bar .radio-name{ font-family:'Rubik',sans-serif; font-weight:700; font-size:.8rem; color:var(--chalk,#e9e4d8); min-width:110px; text-align:center; }
.radio-bar .radio-nav{ background:rgba(255,201,60,.15); border:1px solid rgba(255,201,60,.45); color:var(--lamp,#ffc93c); border-radius:7px; width:28px; height:28px; cursor:pointer; font-size:.8rem; }
.radio-bar .radio-nav:active{ transform:translateY(1px); }
.radio-bar .radio-btn{ background:linear-gradient(160deg,#f0c96a,#d9a441); color:#241708; border:1px solid #8a6534; border-radius:8px; padding:6px 14px; font-family:'Rubik',sans-serif; font-weight:700; font-size:.78rem; cursor:pointer; }
.radio-bar .radio-btn:active{ transform:translateY(1px); }
.radio-bar .radio-donate{ background:rgba(233,228,216,.12); border:1px dashed rgba(233,228,216,.5); color:var(--chalk,#e9e4d8); border-radius:8px; padding:6px 12px; font-family:'Rubik',sans-serif; font-weight:700; font-size:.72rem; cursor:pointer; }
.radio-bar .radio-donate[hidden]{ display:none; }
