:root{font:16px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#25352f;background:#f4f6f3;--card:#fff;--muted:#69766f;--line:#e1e7e1;--green:#23664d}*{box-sizing:border-box}body{margin:0;display:flex;min-height:100vh}aside{width:250px;padding:40px 28px;border-right:1px solid var(--line);display:flex;flex-direction:column;background:var(--card)}.brand{font-size:26px;font-weight:750;text-decoration:none;color:inherit;letter-spacing:-1px}aside p,.aside-note,footer,.muted{color:var(--muted)}aside p{font-size:13px;margin:0 0 45px}.aside-note{margin-top:auto;font-size:12px;padding-top:40px}nav{display:grid;gap:10px}nav button{background:none;color:inherit;text-align:left;border:0}nav button.active{background:#e9f2ec;color:var(--green)}main{max-width:1100px;width:100%;padding:32px 6vw}header{display:flex;justify-content:space-between;align-items:center;min-height:45px;margin-bottom:45px;color:var(--muted);font-size:14px}h1{font-size:36px;line-height:1.2;letter-spacing:-1.2px;margin:12px 0 20px}h2{font-size:20px;margin:0 0 15px}p{margin:12px 0 22px}.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:2px;color:var(--green);font-weight:700}.card{background:var(--card);border:1px solid var(--line);border-radius:22px;padding:28px;margin:20px 0}.hero{background:#e8f0e9;border:0}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.grid .card{margin:0}.metric{font-size:32px;font-weight:650;letter-spacing:-1px}.actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}button,.button{font:inherit;cursor:pointer;border:1px solid var(--line);border-radius:12px;padding:11px 18px;background:var(--card);color:inherit;text-decoration:none;display:inline-block}button.primary,.button.primary{background:var(--green);color:#fff;border-color:var(--green)}button:disabled{opacity:.5;cursor:wait}input,textarea,select{font:inherit;width:100%;padding:12px;border:1px solid var(--line);background:var(--card);color:inherit;border-radius:10px;margin:8px 0 18px}textarea{min-height:120px}label{display:block}.small{font-size:13px}footer{font-size:12px;margin-top:50px}#notice:not(:empty){background:#fff3d8;color:#6e4a05;padding:14px 20px;border-radius:12px;margin-bottom:20px;white-space:pre-wrap}.message{white-space:pre-wrap;overflow-wrap:anywhere;background:var(--card);border:1px solid var(--line);padding:14px 18px;border-radius:16px;margin:12px 15% 12px 0}.message.in{background:#e8f0e9;margin:12px 0 12px 15%}.message time{display:block;font-size:11px;color:var(--muted)}.key{word-break:break-all;font-size:13px}button:focus-visible,a:focus-visible{outline:3px solid #58a886;outline-offset:3px}[hidden]{display:none!important}@media(max-width:760px){body{display:block}aside{width:auto;padding:20px;border-right:0;border-bottom:1px solid var(--line)}aside p,.aside-note{display:none}nav{display:flex;overflow-x:auto;margin-top:18px;gap:5px}nav button{white-space:nowrap;font-size:13px;padding:8px 12px}main{padding:20px}header{margin-bottom:25px}h1{font-size:30px}.card{padding:22px}.grid{gap:12px}.metric{font-size:26px}}@media(prefers-color-scheme:dark){:root{color:#e2ebe5;background:#141d19;--card:#1c2821;--muted:#a7b5ac;--line:#34463b;--green:#3f8967}.hero,.message.in,nav button.active{background:#243b2d;color:#d5eadc}.eyebrow{color:#89c8a4}}
.pwa-actions{margin-bottom:12px}.pwa-actions button{font-size:13px}body{min-height:100dvh}@media(display-mode:standalone){main{padding-top:max(24px,env(safe-area-inset-top));padding-bottom:max(24px,env(safe-area-inset-bottom))}aside{padding-top:max(20px,env(safe-area-inset-top))}}
.fortune-wrap{position:relative;width:240px;margin:28px auto}.fortune-pointer{position:absolute;top:-24px;left:110px;z-index:1;font-size:26px;color:#b24b27}.fortune-wheel{width:240px;height:240px;border:8px solid #fff;border-radius:50%;box-shadow:0 3px 16px #0002;background:conic-gradient(#91c6a1 0 50%,#45866a 50% 80%,#b7d4c1 80% 95%,#efd37d 95% 100%);position:relative;transition:transform 2.5s cubic-bezier(.15,.65,.12,1);color:#15291e;font-size:22px;font-weight:700}.fortune-wheel span{position:absolute}.fortune-wheel span:nth-child(1){top:96px;right:24px}.fortune-wheel span:nth-child(2){top:154px;left:36px}.fortune-wheel span:nth-child(3){top:35px;left:43px}.fortune-wheel span:nth-child(4){top:5px;left:89px}@media(prefers-reduced-motion:reduce){.fortune-wheel{transition:none}}
.offer-text{white-space:pre-line}.card img{max-width:100%;height:auto}
/* Small screens keep content in normal flow; no clipping to hide overflow. */
main,section,.card,.grid>*,header,#account{min-width:0}
.brand{display:flex;align-items:center;gap:10px;white-space:nowrap}.brand img{border-radius:9px;flex:none}
button,.button{max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.4;min-height:44px}
h1,h2,.metric,p,.offer-text{overflow-wrap:anywhere}
input,textarea,select{min-width:0;max-width:100%}input[type=file]{padding:8px;font-size:13px}
.fortune-wrap{width:min(240px,100%)}.fortune-wheel{width:100%;height:auto;aspect-ratio:1}.fortune-pointer{left:50%;transform:translateX(-50%)}
@media(max-width:600px){
  .grid{grid-template-columns:minmax(0,1fr);gap:14px}
  main{padding:16px}aside{padding:14px 16px}
  nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:4px;margin-top:12px}
  nav button{white-space:normal;font-size:13px;line-height:1.3;padding:8px 10px}
  header{min-height:40px;margin-bottom:12px;gap:12px}header button{padding:8px 12px}
  h1{font-size:28px;margin:8px 0 18px;letter-spacing:-.8px}h2{font-size:20px}
  .card{padding:18px;border-radius:18px;margin:16px 0}.metric{font-size:26px}
  .pwa-actions{gap:8px}.pwa-actions button{padding:8px 10px;font-size:12px}
  .actions:not(.pwa-actions)>button,.actions:not(.pwa-actions)>.button{flex:1 1 180px}
  #pwa-status:empty{display:none}.message{margin-right:8%;padding:12px}.message.in{margin-left:8%;margin-right:0}
  footer{margin-top:28px}
}
.mobile-nav{display:none}@media(max-width:600px){nav{display:none}.mobile-nav:not([hidden]){display:block;margin:12px 0 0}.mobile-nav select{margin:0;min-height:44px;background:var(--card)}.brand{font-size:24px}.brand img{width:32px;height:32px}}
/* Keep the bot mark legible on both themes. */
.brand img{background:#fff;padding:3px;border:1px solid #fff;color-scheme:light}
@font-face{font-family:"Golos Text";src:url("/cabinet/golos-text.ttf") format("truetype");font-style:normal;font-weight:400 900;font-display:swap}
:root{font-family:"Golos Text",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
/* Compact mobile type scale: body 14, section 17, page 23, amount 24. */
@media(max-width:600px){
  :root{font-size:14px;line-height:1.5}
  main{padding:14px}aside{padding:12px 14px}.brand{font-size:22px;gap:8px}.brand img{width:30px;height:30px}
  .mobile-nav:not([hidden]){margin-top:10px}.mobile-nav select{font-size:14px;padding:10px 12px}
  header{font-size:12px;min-height:36px;margin-bottom:10px;gap:10px}header button{font-size:12px;padding:8px 12px}
  h1{font-size:23px;font-weight:650;line-height:1.25;letter-spacing:-.5px;margin:6px 0 14px}
  h2{font-size:17px;font-weight:600;line-height:1.35;letter-spacing:-.2px;margin-bottom:10px}
  p{margin:9px 0 15px}.card{padding:16px;border-radius:16px;margin:12px 0}.grid{gap:12px}
  .metric{font-size:24px;font-weight:600;line-height:1.35;letter-spacing:-.4px}
  .eyebrow{font-size:10px;letter-spacing:1.5px}.small,.message time{font-size:12px}
  button,.button{font-size:14px;font-weight:500;line-height:1.35;padding:10px 14px}
  .pwa-actions{gap:6px;margin-bottom:8px}.pwa-actions button{font-size:11px;padding:7px 9px;min-height:36px}
  input,textarea{font-size:16px;padding:10px;margin:6px 0 14px}select{font-size:16px}
  label{font-size:13px}.message{font-size:14px;padding:10px 12px}.offer-text{font-size:13px;line-height:1.55}
  footer{font-size:11px;margin-top:24px}.fortune-wrap{width:min(220px,100%);margin:24px auto}
}
/* The bot's carnival wheel: no numbers inside sectors. */
.card.wheel-card{background:#fff;color:#2b2118;text-align:center;display:flex;flex-direction:column;align-items:center;max-width:390px;margin:16px auto;padding:24px 18px;border-radius:28px;box-shadow:0 14px 40px #2b21182b}
.wheel-card h2{display:flex;align-items:center;justify-content:center;gap:8px;font-size:19px;margin:0 0 4px;color:#2b2118}
.wheel-card .wheel-heading-icon{width:26px;height:26px;object-fit:contain}.wheel-card .wheel-subtitle{font-size:13px;color:#8a7a66;margin:0 0 16px}
.wheel-balance-badge{display:inline-flex;align-items:center;gap:7px;padding:7px 16px;border-radius:999px;background:#fff3d6;color:#2b2118;box-shadow:inset 0 0 0 1.5px #ffe3a0;font-size:16px;font-weight:700;margin-bottom:20px}
.wheel-coin{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;flex:none;background:radial-gradient(circle at 32% 28%,#fff6d0,#ffd23f 55%,#e8a723);box-shadow:inset 0 0 0 1.5px #ffffffb3,inset 0 -2px 3px #0003,0 1px 2px #0003}
.wheel-coin::after{content:'m';font-size:11px;font-weight:800;color:#8a5a0f;line-height:1}
.wheel-card .fortune-wrap{position:relative;width:min(250px,100%);margin:0 auto 20px;filter:drop-shadow(0 12px 22px #2b211840)}
.wheel-card .fortune-wheel{width:100%;height:auto;aspect-ratio:1;border:6px solid #fff;background:conic-gradient(#1fb6a6 0deg 180deg,#ff9f1c 180deg 288deg,#ff3e6c 288deg 342deg,#ffd23f 342deg 360deg);box-shadow:inset 0 0 0 2px #2b211814,0 0 0 3px #ffe3a0;transition:transform 4.2s cubic-bezier(.12,.65,.1,1)}
.wheel-card .fortune-wheel::before{content:'';position:absolute;inset:0;border-radius:50%;background:conic-gradient(#ffffffd9 0deg .8deg,transparent .8deg 180deg,#ffffffd9 180deg 180.8deg,transparent 180.8deg 288deg,#ffffffd9 288deg 288.8deg,transparent 288.8deg 342deg,#ffffffd9 342deg 342.8deg,transparent 342.8deg)}
.wheel-card .fortune-logo{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:74px;height:74px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 2px 8px #2b21184d,0 0 0 4px #fff,0 0 0 6px #3f7d2c;z-index:3}
.wheel-card .fortune-logo img{width:50px;height:50px;object-fit:contain}.wheel-card .fortune-pointer{position:absolute;top:-15px;left:50%;transform:translateX(-50%);width:0;height:0;border-left:12px solid transparent;border-right:12px solid transparent;border-top:22px solid #1f4d1d;z-index:4;filter:drop-shadow(0 2px 2px #0004)}
.wheel-legend{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;font-size:12px;font-weight:600;color:#5a4c3c;margin-bottom:22px}.wheel-legend span{display:inline-flex;align-items:center;gap:4px}.wheel-legend i{width:11px;height:11px;border-radius:3px}.prize-one{background:#1fb6a6}.prize-three{background:#ff9f1c}.prize-five{background:#ff3e6c}.prize-seven{background:#ffd23f}
.wheel-card #spin{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:linear-gradient(#3f7d2c,#1f4d1d);border:0;color:#fff;border-radius:16px;box-shadow:0 6px 0 #163a14,0 8px 16px #1f4d1d59;font-size:17px;font-weight:700;padding:14px 28px}
.wheel-card #spin:disabled{opacity:.5;box-shadow:none}.wheel-card #wheel-result{font-size:14px;font-weight:600;color:#1f4d1d;min-height:22px;margin:20px 0 0}.wheel-card #wheel-result.won{background:linear-gradient(#ffe9a8,#ffd23f);padding:9px 16px;border-radius:999px}
.wheel-card #wheel-session-total{font-size:13px;color:#5a4c3c;margin:14px 0 0}
@media(max-width:600px){.card.wheel-card{padding:22px 16px}.wheel-card h2{font-size:17px}}
@media(prefers-reduced-motion:reduce){.wheel-card .fortune-wheel{transition:none}}
.wheel-card .wheel-finish{font-size:13px;background:#f7f4ed;color:#5a4c3c;border:1px solid #e7dfd1;padding:9px 16px;margin-top:12px;box-shadow:none}
