/* Самолётик: a spiral notebook sheet in squares, glossy sticker-style controls on top of it.
   The multiplier curve is drawn in ballpoint ink, a paper plane rides the curve. Players can buy paper themes. */
@font-face { font-family: "Caveat"; font-weight: 600; font-display: swap; src: url(fonts/caveat-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Caveat"; font-weight: 600; font-display: swap; src: url(fonts/caveat-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Caveat"; font-weight: 700; font-display: swap; src: url(fonts/caveat-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Caveat"; font-weight: 700; font-display: swap; src: url(fonts/caveat-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url(fonts/golos-text-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400; font-display: swap; src: url(fonts/golos-text-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 500; font-display: swap; src: url(fonts/golos-text-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 500; font-display: swap; src: url(fonts/golos-text-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url(fonts/golos-text-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 600; font-display: swap; src: url(fonts/golos-text-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 700; font-display: swap; src: url(fonts/golos-text-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 700; font-display: swap; src: url(fonts/golos-text-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rubik"; font-weight: 700; font-display: swap; src: url(fonts/rubik-cyrillic-700-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Rubik"; font-weight: 700; font-display: swap; src: url(fonts/rubik-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rubik"; font-weight: 800; font-display: swap; src: url(fonts/rubik-cyrillic-800-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Rubik"; font-weight: 800; font-display: swap; src: url(fonts/rubik-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Rubik"; font-weight: 800; font-style: italic; font-display: swap; src: url(fonts/rubik-cyrillic-800-italic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Rubik"; font-weight: 800; font-style: italic; font-display: swap; src: url(fonts/rubik-latin-800-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --wood: #8a4a22;
  --paper: #fbf6ec;
  --grid: #cddbef;
  --margin: #e2676a;
  --ink: #2541a6;
  --navy: #22306f;
  --text: #2d241c;
  --graphite: #2d241c;
  --muted: #7a6a58;
  --go: #2f9e22;
  --cash: #ef7a0d;
  --crash: #d6262b;
  --font-display: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
  --font-ui: "Rubik", "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cell: 22px;
  --gloss: inset 0 2px 0 rgba(255,255,255,.5), inset 0 -4px 0 rgba(0,0,0,.2);
  --lift: 0 4px 9px rgba(50,20,0,.4);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: #7a3f1c url(ui/desk.webp) center top / 640px repeat; color: var(--text);
  font: 15px/1.45 var(--font-body);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
.desk { max-width: 560px; margin: 0 auto; padding: max(10px, env(safe-area-inset-top)) 8px max(40px, env(safe-area-inset-bottom)); }
/* Inside a frame (VK on a computer) the frame has a fixed size and does not scroll, so the page scrolls within
   itself. This rule stands before html.ws-open: with the Workshop open the page under it still stays put. */
html.inner-scroll { height: 100%; overflow: hidden; }
html.inner-scroll body { height: 100%; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(58, 38, 20, .55) transparent; }
button { font-family: var(--font-ui); }
button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #ffb81a; outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- on the desk: wallet, bonus, shop ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 2px 0 0; position: relative; z-index: 3; }
.wallet {
  flex: 0 1 auto; min-width: 0; display: flex; align-items: center; height: 42px; margin-left: 20px; margin-right: auto; padding-right: 5px;
  background: linear-gradient(#fffaf0, #f2e2c6); border: 2px solid #c4975e; border-radius: 999px;
  box-shadow: inset 0 2px 0 #fff, 0 3px 0 #6b3514, var(--lift);
}
.coin { width: 18px; height: 18px; flex: none; display: inline-block; background: url(ui/ico_coin.webp) center/contain no-repeat; }
.coin.big { width: 50px; height: 50px; margin-left: -22px; filter: drop-shadow(0 3px 2px rgba(40,15,0,.45)); }
.wallet .pill { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 5px; padding: 0 6px 0 3px; }
.wallet { position: relative; }
/* the subscription level sits on the coin, so the number keeps all the room */
.wallet .wallet-lv { position: absolute; left: 6px; bottom: -7px; z-index: 2; font-size: 9px; padding: 2px 5px; box-shadow: 0 1px 0 rgba(0,0,0,.25), inset 0 -1.5px 0 rgba(0,0,0,.2); }
#balance { color: #3a2614; font: 800 clamp(16px, 4.9vw, 22px)/1 var(--font-ui); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge-plus { flex: none; font: 800 10px/1 var(--font-ui); color: #26304a; background: linear-gradient(135deg, #b8bfcc, #f4f6fb 45%, #9aa3b5);
  border-radius: 999px; padding: 3px 6px; box-shadow: inset 0 -1.5px 0 rgba(0,0,0,.2); }
.badge-plus[hidden] { display: none; }
.badge-plus.lv2 { color: #4a3000; background: linear-gradient(135deg, #f7c948, #fff1b0 45%, #e0a800); }
.badge-plus.lv3 { color: #fff; background: linear-gradient(135deg, #ff7a2a, #ffb347 45%, #d8361d); text-shadow: 0 1px 0 rgba(120,20,0,.4); }
.who b.lv2, .who b.lv3, .rt-name.lv2, .rt-name.lv3 { color: #a86a00; }
.plusbtn {
  flex: none; width: 30px; height: 30px; padding: 0 0 2px; border-radius: 9px; cursor: pointer; display: grid; place-items: center;
  border: 2px solid #b47800; color: #6a3a00; font: 800 23px/1 var(--font-ui); text-shadow: 0 1px 0 rgba(255,255,255,.55);
  background: linear-gradient(#ffe36e, #f6b512); box-shadow: inset 0 2px 0 rgba(255,255,255,.65), inset 0 -3px 0 rgba(140,80,0,.3);
}
.hbtn {
  position: relative; flex: none; display: flex; align-items: center; gap: 5px; height: 42px; padding: 0 12px 0 9px; border-radius: 999px; cursor: pointer;
  border: 2px solid; color: #fff; font: 800 clamp(13px, 3.7vw, 16px)/1 var(--font-ui); white-space: nowrap; text-shadow: 0 1.5px 0 rgba(0,0,0,.3);
  box-shadow: var(--gloss), var(--lift);
}
.hbtn.bonus { background: linear-gradient(#ff6d61, #e3302b 55%, #c21c1c); border-color: #8c1010; }
.hbtn.shop { background: linear-gradient(#64a2ff, #2f6fe8 55%, #1d56c8); border-color: #163f99; }
.ico { display: inline-block; flex: none; background: center/contain no-repeat; }
.g-gift { background-image: url(ui/g-gift.svg); }
.g-basket { background-image: url(ui/g-basket.svg); }
.hbtn .ico { width: 24px; height: 24px; }
.hbtn .dot {
  position: absolute; top: -8px; right: -5px; width: 21px; height: 21px; border-radius: 50%; color: #fff; text-shadow: none;
  font: 800 13px/17px var(--font-ui); text-align: center; border: 2px solid #fff; background: radial-gradient(circle at 35% 30%, #ffd84a, #f39c0a 70%);
  color: #6a2e00; box-shadow: 0 2px 4px rgba(0,0,0,.35);
}
.hbtn .dot[hidden] { display: none; }
.top button:active { transform: translateY(1px); }

.conn { margin: 8px 0 0; font: 700 13px var(--font-ui); color: #fff; background: linear-gradient(#ff6a5e, #c21c1c); border-radius: 999px; padding: 7px 12px; text-align: center; box-shadow: var(--lift); }
.conn.ok { display: none; }
.conn.wait { background: linear-gradient(#a08a6e, #7a6650); }

/* history: a strip of paper with coloured chips */
.hist-bar {
  display: flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 5px 5px 5px 7px; min-width: 0;
  background: linear-gradient(#fffaf1, #f1e1c6); border: 2px solid #c79c63; border-radius: 16px; box-shadow: inset 0 2px 0 #fff, 0 3px 0 #6b3514, var(--lift);
}
.history { flex: 1 1 auto; min-width: 0; display: flex; gap: 5px; overflow-x: auto; padding: 2px 1px 4px; scrollbar-width: none; min-height: 34px;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.history::-webkit-scrollbar { display: none; }
.history .none { align-self: center; font: italic 700 13px var(--font-ui); color: #8a7158; padding-left: 4px; white-space: nowrap; }
.chip {
  flex: none; font: 800 13px/1 var(--font-ui); font-variant-numeric: tabular-nums; color: #fff; padding: 7px 9px 8px; border-radius: 999px;
  border: 1.5px solid rgba(40,10,0,.25); text-shadow: 0 1.5px 0 rgba(0,0,0,.28); box-shadow: inset 0 2px 0 rgba(255,255,255,.45), inset 0 -3px 0 rgba(0,0,0,.18), 0 2px 2px rgba(80,40,0,.25);
}
.chip.lo { background: linear-gradient(#62a8ff, #2468ee); }
.chip.mid { background: linear-gradient(#c58fff, #8a3fe8); }
.chip.hi { background: linear-gradient(#ffad4f, #f06a0a); }
.chip.top { background: linear-gradient(#ff6f95, #e2134f); }
.chip.mega { background: linear-gradient(#fff07a, #ffc21f 55%, #f39c0a); color: #6a2e00; text-shadow: 0 1px 0 rgba(255,255,255,.55); border-color: #c48300; }
.chip.fresh { animation: pop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.snd {
  flex: none; width: 32px; height: 32px; padding: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  color: #22306f; background: #fffaf2; border: 2px solid #d3b48a; box-shadow: 0 2px 0 #c49b68;
}
.snd svg { width: 18px; height: 18px; }
.snd .off { display: none; }
.snd.muted { color: #9a8a76; }
.snd.muted .on { display: none; }
.snd.muted .off { display: block; }

/* ---------- a notebook sheet torn out along the holes ---------- */
.sheet {
  --holes: radial-gradient(circle at 0 50%, #4a230d 0 5.5px, rgba(60,30,10,.28) 6.2px, transparent 7.6px);
  --mline: linear-gradient(90deg, transparent calc(100% - 18px), var(--margin) calc(100% - 18px), var(--margin) calc(100% - 16.5px), transparent calc(100% - 16.5px));
  position: relative; margin-top: 16px; padding: 8px 12px 18px 22px; border-radius: 4px; color: var(--text);
  background-color: var(--paper);
  background-image: var(--holes), var(--mline), linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 16px 30px, 100% 100%, var(--cell) var(--cell), var(--cell) var(--cell);
  background-repeat: repeat-y, no-repeat, repeat, repeat;
  background-position: 0 12px, 0 0, 0 0, 0 0;
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 12px 24px rgba(40,15,0,.5);
}
.sheet::before, .sheet::after {
  content: ''; position: absolute; left: 0; right: 0; height: 8px; background: var(--paper); pointer-events: none;
  -webkit-mask: url(ui/torn.svg) 0 0 / 120px 8px repeat-x; mask: url(ui/torn.svg) 0 0 / 120px 8px repeat-x;
}
.sheet::before { top: -7px; }
.sheet::after { bottom: -7px; transform: scaleY(-1); }
.sheet.game { padding-bottom: 58px; z-index: 1; }
.sheet.notes { margin-top: 34px; padding-bottom: 22px; }
/* paper themes from the shop */
.game.theme-lined { background-image: var(--holes), var(--mline), linear-gradient(var(--grid) 1px, transparent 1px);
  background-size: 16px 30px, 100% 100%, 100% 24px; background-repeat: repeat-y, no-repeat, repeat; background-position: 0 12px, 0 0, 0 0; }
.game.theme-mm {
  --paper: #fffaf1; --grid: rgba(222,132,70,.36); --margin: #e0796f;
  background-image: var(--holes), var(--mline), linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(rgba(222,132,70,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(222,132,70,.15) 1px, transparent 1px);
  background-size: 16px 30px, 100% 100%, 20px 20px, 20px 20px, 4px 4px, 4px 4px; background-repeat: repeat-y, no-repeat, repeat, repeat, repeat, repeat;
  background-position: 0 12px, 0 0, 0 0, 0 0, 0 0, 0 0;
}
.game.theme-board {
  --paper: #25412f; --grid: rgba(255,255,255,.055); --ink: #f3f0e2; --graphite: #e9e6d6; --muted: #b8c4b6; --margin: #e5cc5f;
  color-scheme: dark; border-radius: 10px; border: 6px solid #8a5a2b;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--cell) var(--cell), var(--cell) var(--cell); background-repeat: repeat, repeat; background-position: 0 0, 0 0;
}
.game.theme-board::before, .game.theme-board::after, .game.theme-board .doodle { display: none; }
.game.theme-board .sheet-head .title, .game.theme-board .hand-head h2, .game.theme-board #pot { color: #f3f0e2; }
.game.theme-board .hand-head .ico, .game.theme-board .hand-head .pen { filter: invert(1) brightness(1.6); }
.game.theme-board #plist .who b, .game.theme-board #plist .bet { color: #f3f0e2; }
.panel, .card, .ws-card, .modal-box, .info details { --ink: #2541a6; --graphite: #2d241c; --muted: #7a6a58; color: var(--text); }

/* doodles in blue ballpoint */
.doodle { position: absolute; pointer-events: none; background: center/contain no-repeat; opacity: .6; z-index: 0; }
.d-sun { background-image: url(ui/d-sun.svg); }
.d-heart { background-image: url(ui/d-heart.svg); }
.d-star { background-image: url(ui/d-star.svg); }
.d-cat { background-image: url(ui/d-cat.svg); }
.d-ttt { background-image: url(ui/d-ttt.svg); }
.d-people { background-image: url(ui/d-people.svg); }
.d-gift { background-image: url(ui/d-gift.svg); }
.d-cup { background-image: url(ui/d-cup.svg); }
.d-basket { background-image: url(ui/d-basket.svg); }
.d-book { background-image: url(ui/d-book.svg); }
.sheet-head { position: relative; height: 40px; display: flex; align-items: center; }
.sheet-head .title { position: relative; font: 700 34px/1 var(--font-display); color: var(--navy); transform: rotate(-4deg); transform-origin: left center; margin-left: 4px; }
.sheet-head .title::after { content: ''; position: absolute; left: -2px; right: -10px; bottom: -7px; height: 9px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 9' preserveAspectRatio='none'%3E%3Cpath d='M2 6.5C30 2.5 70 1.5 118 3.5' fill='none' stroke='%2322306f' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.sheet-head .d-sun { position: relative; width: 34px; height: 34px; margin-left: 18px; opacity: .55; }
.sheet-head .d-heart { position: absolute; right: 26px; top: 6px; width: 28px; height: 26px; transform: rotate(10deg); }
.game > .d-ttt { display: none; }
.game > .d-cat { right: 104px; bottom: 14px; width: 46px; height: 42px; opacity: .5; transform: rotate(-6deg); }
.sheet-head .d-star { position: relative; width: 26px; height: 25px; margin-left: 10px; opacity: .5; transform: rotate(-12deg); }
.ruler { position: absolute; left: -6px; bottom: -22px; width: min(58%, 280px); transform: rotate(-7deg); filter: drop-shadow(0 4px 3px rgba(40,15,0,.45)); z-index: 2; pointer-events: none; }
.eraser { position: absolute; right: 6px; bottom: -18px; width: 92px; transform: rotate(9deg); filter: drop-shadow(0 4px 3px rgba(40,15,0,.45)); z-index: 2; pointer-events: none; }

.stage { position: relative; height: clamp(236px, 63vw, 330px); margin: 0 -4px 0 -8px; touch-action: manipulation; z-index: 1; }
#sky { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- bet cards ---------- */
.bets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: relative; z-index: 2; margin-top: 12px; }
.panel {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; min-width: 0; padding: 8px 8px 9px; border-radius: 16px;
  background-color: #fffbf3; background-image: linear-gradient(rgba(140,170,220,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(140,170,220,.22) 1px, transparent 1px);
  background-size: 14px 14px; border: 2px solid #dcc29b; box-shadow: 0 3px 0 #cfae80, 0 7px 14px rgba(80,40,0,.22);
}
.ptitle { position: relative; margin: 0; text-align: center; font: italic 800 clamp(13px, 3.7vw, 16px)/1.1 var(--font-ui); color: var(--navy); white-space: nowrap; }
.ptitle::before, .ptitle::after { content: ''; display: inline-block; width: 12px; height: 12px; vertical-align: -1px; margin: 0 5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 10 5 3M6.5 11 9 6M1 5.5 2.5 1' stroke='%23f08a12' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.ptitle::after { transform: scaleX(-1); }
.amount { display: grid; grid-template-columns: 34px minmax(0,1fr) 34px; gap: 4px; align-items: center; }
.step {
  width: 34px; height: 34px; padding: 0 0 2px; border-radius: 11px; cursor: pointer; display: grid; place-items: center;
  border: 2px solid #164199; color: #fff; font: 800 22px/1 var(--font-ui); text-shadow: 0 1.5px 0 rgba(0,0,60,.4);
  background: linear-gradient(#6aa8ff, #2a66e0); box-shadow: inset 0 2px 0 rgba(255,255,255,.5), inset 0 -3px 0 rgba(0,0,60,.28), 0 2px 0 rgba(30,30,80,.25);
}
.amt { display: flex; align-items: center; height: 34px; min-width: 0; padding: 0 4px; border-radius: 10px; background: #fff; border: 2px solid #e5d3b6;
  box-shadow: inset 0 2px 3px rgba(120,80,20,.14); }
.amt .coin { display: none; }
.amt input { flex: 1 1 auto; width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; text-align: center;
  font: 800 18px/1 var(--font-ui); color: #2d241c; font-variant-numeric: tabular-nums; }
.amt input:focus-visible { outline: none; }
.amt:focus-within { border-color: #ffb81a; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.quick button {
  height: 28px; padding: 0; border-radius: 999px; cursor: pointer; color: #4a3220; font: 800 13.5px/1 var(--font-ui); font-variant-numeric: tabular-nums;
  background: linear-gradient(#fffaf2, #f0e0c6); border: 1.5px solid #d4bc98; box-shadow: 0 2px 0 #cbae86;
}
.quick button.sel { background: linear-gradient(#ffe68f, #ffc94d); border-color: #c7920c; box-shadow: 0 2px 0 #b98408; }
.panel :disabled { cursor: default; }
.amount :disabled, .quick :disabled { opacity: .5; }

.main {
  position: relative; min-height: 62px; width: 100%; padding: 5px 8px; border-radius: 999px; border: 2.5px solid; cursor: pointer; color: #fff;
  display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; column-gap: 5px; row-gap: 3px; touch-action: manipulation;
  font: italic 800 23px/1 var(--font-ui); text-transform: uppercase; font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 0 rgba(0,0,0,.25), 0 0 1px rgba(0,0,0,.4);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.45), inset 0 -5px 0 rgba(0,0,0,.2), 0 4px 0 rgba(60,30,0,.22); transition: transform .06s, filter .15s;
}
.main .ic { flex: none; width: 38px; height: 28px; background: center/contain no-repeat; }
.main .tx { display: grid; justify-items: center; gap: 2px; min-width: 0; }
.main .tx b { font-weight: 800; white-space: nowrap; }
.main .tx i { font-style: inherit; font-size: .6em; letter-spacing: .4px; }
.main small { grid-column: 1 / -1; justify-self: center; font: 600 10.5px/1.1 var(--font-body); text-transform: none; font-style: normal;
  letter-spacing: 0; text-shadow: none; opacity: .95; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.main.go { background: linear-gradient(#7fe35d, #3cb02a 55%, #2a8f1d); border-color: #1d6a12; }
.main { overflow: hidden; }
.main.go { column-gap: 5px; font-size: clamp(17px, 5vw, 23px); }
.main.go .ic { background-image: url(ui/g-plane.svg); grid-column: 2; grid-row: 1; width: 28px; height: 20px; }
.main.cash .tx b { font-size: clamp(19px, 5.6vw, 25px); }
.main.go .tx { grid-column: 1; grid-row: 1; }
.main.cash { background: linear-gradient(#ffbf55, #f7871a 55%, #e0620a); border-color: #a84a00; font-style: italic; animation: cashPulse .9s ease-in-out infinite; grid-template-columns: auto; }
.main.cash .ic { display: none; }
.main.cash .tx b { font-size: 25px; }
.main.cancel { background: linear-gradient(#ff8a7e, #e8473c 55%, #c92f25); border-color: #8f1a12; font-size: 19px; }
.main.cancel .ic, .main.wait .ic { display: none; }
.main.cancel, .main.wait { grid-template-columns: auto; }
.main.wait { background: linear-gradient(#cdbfae, #a39380); border-color: #7d6d5c; font-size: 19px; }
.main.done { background: linear-gradient(#fffaf1, #eadcc4); border-color: #c9ae86; color: #4a3a2a; text-shadow: 0 1px 0 #fff; cursor: default; font-style: normal; font-size: 22px; }
.main.done .ic { width: 28px; height: 28px; background-image: url(ui/ico_coin.webp); }
.main.done.won { color: #217a16; }
.main.done.saved { color: #2459d8; }
.main.done.lost { font-size: 19px; grid-template-columns: auto; color: #8a7764; }
.main.done.lost .ic { display: none; }
.panel .main:disabled { opacity: 1; }
.main:not(:disabled):active { transform: translateY(2px); box-shadow: inset 0 3px 0 rgba(255,255,255,.45), inset 0 -3px 0 rgba(0,0,0,.2); }
@keyframes cashPulse { 0%, 100% { transform: scale(1); filter: brightness(1); } 50% { transform: scale(1.035); filter: brightness(1.08); } }

.autos { display: grid; gap: 4px; font: 700 11.5px/1.1 var(--font-ui); color: #5a4430; }
.autorow { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 3px 4px; min-height: 26px; }
.autos label { display: flex; align-items: center; gap: 5px; cursor: pointer; min-width: 0; white-space: nowrap; }
.autos input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none; width: 30px; height: 18px; margin: 0; border-radius: 999px; cursor: pointer; position: relative;
  background: #e2d3bc; box-shadow: inset 0 2px 3px rgba(80,50,10,.3); transition: background .15s;
}
.autos input[type="checkbox"]::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.35); transition: transform .15s; }
.autos input[type="checkbox"]:checked { background: linear-gradient(#6fdc55, #2f9e22); }
.autos input[type="checkbox"]:checked::after { transform: translateX(12px); }
.tgt { display: inline-flex; align-items: center; height: 24px; padding: 0 3px 0 6px; border-radius: 999px; background: #fff; color: #2d241c; margin-left: auto;
  font: 800 12px/1 var(--font-ui); border: 1.5px solid #e2cfb1; }
.tgt:focus-within { border-color: #ffb81a; }
.autos input[type="text"] { width: 32px; height: 20px; padding: 0; text-align: center; font: 800 13px var(--font-ui); font-variant-numeric: tabular-nums;
  border: 0; background: transparent; color: #2d241c; }
.autos input[type="text"]:focus-visible { outline: none; }
.panel .note { margin: 0; font: 700 11.5px/1.25 var(--font-ui); color: #b4002b; background: #fff1ee; border-radius: 10px; padding: 5px 8px; }
.panel .note:empty { display: none; }

/* ---------- handwritten section heads ---------- */
.hand-head { position: relative; display: flex; align-items: center; gap: 4px 8px; flex-wrap: wrap; margin: 16px 0 6px; z-index: 1; }
.hand-head h2 { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: italic 800 19px/1.1 var(--font-ui); color: var(--navy); }
.hand-head h2 .ico { width: 30px; height: 26px; }
.hand-head .pen { flex: 1 1 40px; height: 12px; min-width: 30px; opacity: .8;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8C30 5 60 4 80 5l-9 4 27-3' fill='none' stroke='%232541a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.hand-head .cap, #pot { margin-left: auto; }
#pcount { color: var(--navy); }
#pot { font: 700 12px var(--font-ui); color: var(--muted); font-variant-numeric: tabular-nums; }
.cap { font-size: 12.5px; color: var(--muted); }

/* ---------- first launch: 18+, the game name and the documents ---------- */
.gate { position: fixed; inset: 0; z-index: 25; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: #7a3f1c url(ui/desk.webp) center top / 640px repeat; }
.gate[hidden], .docview[hidden] { display: none; }
.gate-wrap { max-width: 520px; margin: 0 auto; padding: max(14px, env(safe-area-inset-top)) 8px max(30px, env(safe-area-inset-bottom)); }
.gate-sheet { display: grid; gap: 12px; padding-top: 18px; padding-right: 28px; padding-bottom: 26px; }   /* text stays left of the margin line */
.gate-stamp { position: relative; z-index: 1; justify-self: center; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%;
  font: 800 32px/1 var(--font-ui); color: #d6262b; border: 5px solid #d6262b; transform: rotate(-10deg); background: rgba(255,255,255,.65);
  box-shadow: inset 0 0 0 3px rgba(214,38,43,.22); }
.gate-title { position: relative; z-index: 1; margin: 0; text-align: center; font: 700 40px/1 var(--font-display); color: var(--navy); }
.gate-text { position: relative; z-index: 1; margin: 4px 0 0; text-align: center; font: 800 19px/1.3 var(--font-ui); color: var(--navy); }
.gate-text.warn { color: #c2262b; }
.gate-stamp[hidden] { display: none; }
.gate-note { position: relative; z-index: 1; margin: 0; text-align: center; }
.gate-go[hidden] { display: none; }
/* the first-launch window: 18+, what the coins are, the documents and the «Принимаю» button (VK rules 1.1.4, 2.1.5) */
.welcome .gate-text { margin-top: 0; }
.wel-facts { position: relative; z-index: 1; margin: 2px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.wel-facts li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.35; color: #2d241c; }
.wel-facts li::before { content: ''; position: absolute; left: 4px; top: .25em; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff3b0, #ffc928 55%, #e09a00); box-shadow: 0 0 0 1.5px #a86c00; }
.wel-docs { position: relative; z-index: 1; margin: 2px 0 0; display: grid; gap: 6px; }
.wel-docs a { font: 700 15px/1.3 var(--font-ui); color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.wel-consent { position: relative; z-index: 1; margin: 0; font-size: 13px; line-height: 1.35; }
.me-box { display: grid; gap: 6px; margin-top: 12px; padding: 12px; border-radius: 14px; background: #fffbf3; border: 2px solid #e2cfb1; }
.me-row { display: flex; align-items: center; justify-content: space-between; gap: 8px 10px; flex-wrap: wrap; }
.me-row b { font: 800 18px/1.2 var(--font-ui); color: var(--navy); }
.me-row .btn { min-height: 38px; padding: 0 14px; font-size: 14px; }
.del-acc { display: block; margin: 14px 0 2px; padding: 4px 0; border: 0; background: none; font: 600 14px var(--font-ui); color: #b0413e;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gate-go { min-height: 52px; font-size: 18px; }
.docview { position: fixed; inset: 0; z-index: 26; display: grid; grid-template-rows: auto minmax(0,1fr); background: #fbf6ec; }
.docview-top { display: flex; align-items: center; gap: 10px; min-width: 0; padding: max(8px, env(safe-area-inset-top)) 10px 8px;
  background: #6a3616 url(ui/desk.webp) center top / 640px repeat; color: #fff; font: 800 16px/1.2 var(--font-ui); box-shadow: 0 3px 8px rgba(30,10,0,.35); }
.docview-top b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 0 rgba(0,0,0,.3); }
.docview iframe { display: block; width: 100%; height: 100%; border: 0; background: #fbf6ec; }

/* ---------- the weekly rating and my flights ---------- */
.rating { gap: 8px; }
.rt-tabs { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
.rt-tab { min-width: 0; min-height: 38px; padding: 0 4px; border-radius: 12px; cursor: pointer; font: 800 clamp(12px, 3.5vw, 14px)/1.1 var(--font-ui); color: #2d241c;
  background: linear-gradient(#fffaf2, #efe2cb); border: 2px solid #d3b48a; box-shadow: 0 2px 0 #c49b68; }
.rt-tab[aria-selected="true"] { background: linear-gradient(#ffeb80, #ffc928 60%, #f6ae10); border-color: #c08000; box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 2px 0 #b47800; }
.rt-tab:active { transform: translateY(1px); }
.rt-list { list-style: none; margin: 0; padding: 0; display: grid; }
.rt-row, .rt-fl { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1.5px solid rgba(160,125,80,.22); }
.rt-fl { grid-template-columns: auto minmax(0,1fr) auto; }
.rt-list > li:last-child { border-bottom: 0; }
.rt-row.me { background: linear-gradient(90deg, rgba(255,226,110,.6), rgba(255,226,110,.14) 75%, transparent); border-radius: 10px; }
.rt-you { margin-top: 6px; border-top: 2px dashed rgba(160,125,80,.35); }
.rt-place { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 800 13px/1 var(--font-ui); color: #5a4a36; background: #f1e6d2; font-variant-numeric: tabular-nums; }
.rt-place.p1 { color: #6a4500; background: radial-gradient(circle at 35% 30%, #fff3b0, #ffc928 55%, #e09a00); box-shadow: 0 1px 0 #a86a00; }
.rt-place.p2 { color: #3d4660; background: radial-gradient(circle at 35% 30%, #ffffff, #d4d9e3 55%, #9aa3b5); box-shadow: 0 1px 0 #6f7a8f; }
.rt-place.p3 { color: #5a2e0a; background: radial-gradient(circle at 35% 30%, #ffd9b0, #e09a5c 55%, #b8682a); box-shadow: 0 1px 0 #8a4a14; }
.rt-name { display: flex; align-items: center; gap: 5px; min-width: 0; white-space: nowrap; font: 700 14.5px/1.2 var(--font-ui); color: #2d241c; }
.rt-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rt-pl { flex: none; width: 32px; height: 20px; object-fit: contain; margin-right: 1px; filter: drop-shadow(0 1px 1px rgba(30,20,0,.25)); }
.rt-name small { flex: none; font: 600 11.5px var(--font-body); color: var(--muted); }
.rt-name .badge-plus { flex: none; font-size: 9px; padding: 2px 5px; }
.rt-v { font: 800 14.5px/1 var(--font-ui); color: #217a16; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rt-v.minus { color: #c2262b; }
.rt-mid { display: grid; min-width: 0; }
.rt-mid b { font: 700 14px/1.2 var(--font-ui); color: #2d241c; }
.rt-mid small { font-size: 12px; color: var(--muted); }
.rt-fl .stt { min-width: 66px; padding: 6px 9px; font-size: 12.5px; }
.rt-net { font: 800 14px/1 var(--font-ui); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rt-net.up { color: #217a16; }
.rt-net.down { color: #c2262b; }
.rt-empty, .rt-hint { padding: 10px 4px; font-size: 13.5px; color: var(--muted); text-align: center; }
.rt-note { margin: 0 2px; }
.rt-link { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; padding: 4px 2px; border: 0; background: none; cursor: pointer;
  font: 700 14px var(--font-ui); color: var(--navy); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.rt-link .ico { width: 22px; height: 20px; }

/* ---------- players of the round ---------- */
.players { position: relative; z-index: 1; }
#plist { list-style: none; margin: 0; padding: 0; display: grid; }
#plist li { display: grid; grid-template-columns: 40px minmax(0,1fr) auto auto; align-items: center; gap: 8px; padding: 6px 2px 6px 0; border-bottom: 1.5px solid rgba(160,125,80,.28); }
#plist li:last-child { border-bottom: 0; }
#plist li.you { background: linear-gradient(90deg, rgba(255,226,110,.55), rgba(255,226,110,.15) 70%, transparent); border-radius: 10px; }
.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 800 18px/1 var(--font-ui); color: #fff; border: 2.5px solid #22306f;
  text-shadow: 0 1.5px 0 rgba(0,0,0,.25); box-shadow: inset 0 2px 0 rgba(255,255,255,.45), inset 0 -3px 0 rgba(0,0,0,.18), 0 2px 3px rgba(60,30,0,.2); }
.av.c0 { background: linear-gradient(#c58fff, #8a3fe8); }
.av.c1 { background: linear-gradient(#ff9bbb, #ec3f7a); }
.av.c2 { background: linear-gradient(#6aaeff, #2468ee); }
.av.c3 { background: linear-gradient(#ffb85c, #f26b0a); }
.av.c4 { background: linear-gradient(#6fe0c8, #13a38b); }
.av.c5 { background: linear-gradient(#ffdf5e, #f0a300); color: #6a3d00; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.av.pl { overflow: hidden; text-shadow: none; }
.av.pl img { display: block; width: 104%; max-width: none; height: auto; transform: translate(1%, 3%); filter: drop-shadow(0 1.5px 1px rgba(30,20,0,.3)); }
.av.pl.c0 { background: radial-gradient(circle at 50% 42%, #fff 0 46%, #d9c2ff); }
.av.pl.c1 { background: radial-gradient(circle at 50% 42%, #fff 0 46%, #ffc4d6); }
.av.pl.c2 { background: radial-gradient(circle at 50% 42%, #fff 0 46%, #c4dcff); }
.av.pl.c3 { background: radial-gradient(circle at 50% 42%, #fff 0 46%, #ffd9ad); }
.av.pl.c4 { background: radial-gradient(circle at 50% 42%, #fff 0 46%, #bff0e4); }
.av.pl.c5 { background: radial-gradient(circle at 50% 42%, #fff 0 46%, #ffeaa0); }
.who { display: flex; align-items: center; gap: 5px; min-width: 0; }
.who b { min-width: 0; font: 700 15px/1.2 var(--font-ui); color: #2d241c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .badge-plus { flex: none; font-size: 9px; padding: 2px 5px; }
.bet { display: inline-flex; align-items: center; gap: 4px; font: 800 14px/1 var(--font-ui); color: #3a2614; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bet .coin { width: 18px; height: 18px; }
.stt { display: inline-flex; align-items: center; justify-content: center; min-width: 74px; font: 800 13px/1 var(--font-ui); font-variant-numeric: tabular-nums;
  padding: 7px 11px; border-radius: 999px; color: #fff; white-space: nowrap; text-shadow: 0 1px 0 rgba(0,0,0,.25);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.4), inset 0 -3px 0 rgba(0,0,0,.16); }
.stt.won { background: linear-gradient(#6fdc55, #2f9e22); }
.stt.lost { background: linear-gradient(#ff7b70, #d6262b); }
.stt.saved { background: linear-gradient(#7aa6ff, #2f6ff0); }
.stt.fly { background: linear-gradient(#d4d4d4, #a3a3a3); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.2); }
.stt.fly.moving { animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { filter: brightness(1.12); } }
#plist li.empty { display: block; text-align: center; color: var(--muted); padding: 12px 6px; font-size: 13.5px; border: 0; }

/* ---------- second sheet: bonus, shop, rules ---------- */
.block { position: relative; scroll-margin-top: 12px; }
.notes .block + .block { margin-top: 10px; }
.notes .hand-head { margin-top: 10px; }
.card {
  position: relative; display: grid; gap: 10px; min-width: 0; padding: 12px; border-radius: 16px;
  background: #fffbf3; border: 2px solid #dcc29b; box-shadow: 0 3px 0 #cfae80, 0 6px 12px rgba(80,40,0,.16);
}
.card + .card { margin-top: 10px; }
.card[hidden] { display: none; }
.friends { display: grid; gap: 10px; }
.friends .grow { display: grid; gap: 2px; }
.friends-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.friends-btns .btn { min-height: 44px; }
.btn {
  min-height: 42px; padding: 0 16px; border-radius: 999px; cursor: pointer; border: 2px solid #164199; color: #fff;
  font: 800 14.5px/1.1 var(--font-ui); text-shadow: 0 1.5px 0 rgba(0,0,0,.25); font-variant-numeric: tabular-nums;
  background: linear-gradient(#6aa8ff, #2a66e0); box-shadow: inset 0 2px 0 rgba(255,255,255,.45), inset 0 -4px 0 rgba(0,0,0,.2), 0 3px 0 rgba(60,30,0,.2);
}
.btn.go { background: linear-gradient(#7fe35d, #3cb02a 55%, #2a8f1d); border-color: #1d6a12; }
.btn.gold { background: linear-gradient(#ffeb7a, #ffc823 55%, #f7ab0c); border-color: #c08000; color: #3a2400; text-shadow: 0 1px 0 rgba(255,255,255,.5); }
.btn.danger { background: linear-gradient(#ff6d61, #e3302b 55%, #c21c1c); border-color: #8c1010; }
.btn.ghost-btn { background: #fffaf2; color: #22306f; border-color: #d3b48a; text-shadow: none; box-shadow: 0 2px 0 #c49b68; }
.btn:disabled { filter: grayscale(.6); opacity: .6; cursor: default; }
.btn:not(:disabled):active { transform: translateY(1px); }
.daily-row { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 4px; }
.dcell { border: 2px solid #e6d6bd; border-radius: 12px; padding: 6px 1px; text-align: center; background: #fff; font-variant-numeric: tabular-nums; min-width: 0; }
.dcell b { display: block; font: 700 10.5px var(--font-ui); color: var(--muted); }
.dcell span { font: 800 13px var(--font-ui); color: #22306f; }
.dcell.done { background: linear-gradient(#ecfbe6, #c9efbf); border-color: #8fd27d; }
.dcell.done span { color: var(--go); }
.dcell.today { border-color: #2f9e22; box-shadow: 0 0 0 3px rgba(47,158,34,.22); }
.dcell.last { background: linear-gradient(#fff6c9, #ffe27a); border-color: #e3a800; }
.dcell.last span { color: #a85800; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.row .grow { display: grid; gap: 2px; min-width: 0; flex: 1 1 180px; }
.row b { font: 800 15px var(--font-ui); color: #2d241c; }
.refill { margin: 8px 2px 0; }
.refill:empty { display: none; }
.paynote { margin: 10px 4px 0; color: #b4002b; }
.shopnote { margin: 8px 4px 0; }
.plus { border-color: #b9bfcc; background: linear-gradient(160deg, #ffffff, #eef0f5); box-shadow: 0 3px 0 #a9b0bf, 0 6px 12px rgba(40,40,80,.15); }
.plus h3 { margin: 0; font: italic 800 22px/1 var(--font-ui); color: #3d4660; }
.plus ul { margin: 0; padding-left: 18px; display: grid; gap: 2px; font-size: 13.5px; }

/* the teaser on the second sheet */
.ws-teaser { width: 100%; grid-template-columns: 96px minmax(0,1fr); align-items: center; gap: 12px; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.ws-teaser .grow { display: grid; justify-items: start; gap: 3px; min-width: 0; }
.ws-teaser b { font: 800 15.5px/1.2 var(--font-ui); color: #2d241c; }
.ws-teaser .btn { display: inline-grid; place-items: center; min-height: 38px; margin-top: 5px; pointer-events: none; }
.ws-teaser-pics { position: relative; display: block; width: 96px; height: 62px; }
.ws-teaser-pics img { position: absolute; width: 60px; height: auto; filter: drop-shadow(0 2px 2px rgba(40,15,0,.3)); }
.ws-teaser-pics img:nth-child(1) { left: -2px; top: 14px; transform: rotate(-8deg); }
.ws-teaser-pics img:nth-child(2) { left: 18px; top: 0; z-index: 1; }
.ws-teaser-pics img:nth-child(3) { left: 38px; top: 20px; transform: rotate(6deg); }
.ws-teaser:active { transform: translateY(1px); }

/* ---------- the Flight Workshop: a page over the game ---------- */
html.ws-open, html.ws-open body { overflow: hidden; }
.ws { --ws-top: 58px; position: fixed; inset: 0; z-index: 8; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: #7a3f1c url(ui/desk.webp) center top / 640px repeat; }
.ws[hidden] { display: none; }
.ws-wrap { position: relative; max-width: 560px; margin: 0 auto; padding: 0 8px max(48px, env(safe-area-inset-bottom)); }
.ws-top { position: sticky; top: 0; z-index: 6; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 8px;
  height: calc(var(--ws-top) + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 10px 0; margin: 0 -8px;
  background: #6a3616 url(ui/desk.webp) center top / 640px repeat; box-shadow: 0 4px 8px rgba(30,10,0,.35); }
.ws-back { width: 44px; height: 42px; padding: 0; border-radius: 12px; display: grid; place-items: center; cursor: pointer; color: #5a3000;
  background: linear-gradient(#ffe878, #f6b512); border: 2px solid #b47800; box-shadow: inset 0 2px 0 rgba(255,255,255,.6), inset 0 -3px 0 rgba(140,80,0,.3), 0 3px 6px rgba(30,10,0,.4); }
.ws-back svg { width: 24px; height: 24px; }
.ws-back:active { transform: translateY(1px); }
.ws-title { position: relative; justify-self: center; max-width: 100%; margin: 0; padding: 3px 9px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 700 clamp(18px, 5.2vw, 30px)/1 var(--font-display); color: var(--navy); background: #fffdf6; transform: rotate(-2deg);
  box-shadow: 0 3px 6px rgba(30,10,0,.35); border-radius: 2px; }
.ws-title::after { content: ''; position: absolute; left: 10px; right: 8px; bottom: 2px; height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 6' preserveAspectRatio='none'%3E%3Cpath d='M2 4.5C40 1.5 80 1 118 3' fill='none' stroke='%23e2343a' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.ws-wallet { display: flex; align-items: center; gap: 5px; height: 38px; padding: 0 4px 0 6px; border-radius: 999px; min-width: 0;
  background: linear-gradient(#fffaf0, #f2e2c6); border: 2px solid #c4975e; box-shadow: inset 0 2px 0 #fff, 0 3px 0 #6b3514; }
.ws-wallet .coin { width: 20px; height: 20px; }
#wsBalance { font: 800 clamp(14px, 4.2vw, 17px)/1 var(--font-ui); color: #3a2614; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ws-wallet .plusbtn { width: 26px; height: 26px; font-size: 20px; border-radius: 8px; }
.ws-sheet { margin-top: 10px; padding-bottom: 40px; }

.ws-tabs { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 0; }
.ws-tab { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 50px; padding: 4px 8px; border-radius: 16px; cursor: pointer;
  font: 800 clamp(14px, 4.2vw, 17px)/1.05 var(--font-ui); color: #2d241c; background: linear-gradient(#fffaf2, #efe2cb); border: 2px solid #d3b48a; box-shadow: 0 3px 0 #c49b68; }
.ws-tab > span:last-child { display: grid; text-align: left; }
.ws-tab small { font: 600 11px/1.1 var(--font-body); color: #6a5a48; }
.ws-tab .ico { width: 27px; height: 23px; }
.ws-i-plane { background-image: url(ui/ws-plane.svg); }
.ws-i-wind { background-image: url(ui/ws-wind.svg); }
.ws-tab[aria-selected="true"] { background: linear-gradient(#ffeb80, #ffc928 60%, #f6ae10); border-color: #c08000; box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 3px 0 #b47800; }
.ws-tab:active { transform: translateY(1px); }

/* the live example: stays on screen while the cards scroll under it */
.ws-preview { position: sticky; top: calc(var(--ws-top) + env(safe-area-inset-top, 0px)); z-index: 4; height: clamp(118px, 34vw, 170px); margin: 12px -2px 0;
  border-radius: 16px; overflow: hidden; border: 3px solid #fff;
  background: linear-gradient(#5fb0ff, #9fd3ff 46%, #dff1ff); box-shadow: 0 3px 0 #c9ae86, 0 8px 18px rgba(60,30,0,.28); }
#wsPreview { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ws-note { position: absolute; left: 7px; top: 7px; padding: 2px 8px 3px; font: 700 17px/1 var(--font-display); color: var(--navy);
  background: #fff3a6; transform: rotate(-4deg); box-shadow: 0 2px 3px rgba(40,20,0,.25); }
.ws-using { position: absolute; right: 7px; bottom: 7px; display: flex; align-items: center; gap: 4px; max-width: calc(100% - 14px); padding: 4px 9px 4px 5px; border-radius: 10px;
  font: 600 12px/1.2 var(--font-ui); color: #3a2a18; background: rgba(255,250,222,.95); box-shadow: 0 2px 4px rgba(20,40,80,.25); white-space: nowrap; }
.ws-using b { font-weight: 800; overflow: hidden; text-overflow: ellipsis; }
.ws-using .ok { flex: none; display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; color: #fff; background: #2f9e22; font: 800 11px/1 var(--font-ui); }
.ws-hint { position: relative; z-index: 1; margin: 10px 2px 0; font: 600 18px/1.15 var(--font-display); color: var(--navy); }

.ws-tier { position: relative; z-index: 1; margin-top: 16px; }
.ws-tier-head { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 8px; margin: 0 0 9px; }
.ws-ic { flex: none; width: 30px; height: 30px; background: center/contain no-repeat; filter: drop-shadow(0 2px 1px rgba(60,30,0,.3)); }
.ws-ic.star { background-image: url(ui/ico_star.webp); }
.ws-ic.crown { width: 36px; background-image: url(ui/crown.svg); }
.ws-ic.silver { background-image: url(ui/silver.svg); }
.ws-ic.pencil { background-image: url(ui/pencil.svg); }
.ws-brush { position: relative; isolation: isolate; margin: 0 2px 0 -2px; padding: 5px 20px 7px 14px; font: italic 800 19px/1 var(--font-ui); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.ws-brush::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--tc);
  -webkit-mask: url(ui/brush.svg) center/100% 100% no-repeat; mask: url(ui/brush.svg) center/100% 100% no-repeat; }
.t-base { --tc: linear-gradient(#5b97ff, #2457d6); }
.t-rare { --tc: linear-gradient(#ad7cff, #6b35d8); }
.t-premium { --tc: linear-gradient(#ff6a55, #c81e2a); }
.t-plus { --tc: linear-gradient(#b9c1d0, #6f7a8f); }
.t-custom { --tc: linear-gradient(#ffb44d, #f0701a); }
.ws-sub { font: 600 18px/1.1 var(--font-display); color: var(--navy); }

.ws-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.ws-card { position: relative; display: grid; grid-template-rows: auto auto; align-content: space-between; gap: 6px; min-width: 0; padding: 8px 8px 9px; border-radius: 16px; text-align: center;
  background: #fffbf3; border: 2px solid #e2cfb1; box-shadow: 0 3px 0 #d6bb94, 0 6px 12px rgba(80,40,0,.12); transition: transform .12s; }
.t-rare .ws-card { background: linear-gradient(#fdfbff, #efe6ff); border-color: #cbb5f2; box-shadow: 0 3px 0 #b49ae6, 0 6px 12px rgba(60,20,120,.12); }
.t-premium .ws-card { background: linear-gradient(#fffbe8, #ffe9a6); border-color: #e7b43a; box-shadow: 0 3px 0 #cf961a, 0 0 0 3px rgba(255,214,90,.28), 0 6px 14px rgba(120,70,0,.18); }
.ws-card.sel { border-color: #ffa514; box-shadow: 0 3px 0 #e08a00, 0 0 0 3px rgba(255,184,26,.45), 0 6px 14px rgba(120,70,0,.18); }
.ws-card.worn { border-color: #3cb02a; box-shadow: 0 3px 0 #2a8f1d, 0 0 0 3px rgba(60,176,42,.22), 0 6px 12px rgba(20,80,0,.14); }
.ws-card.just { animation: wsGot .7s cubic-bezier(.3,1.6,.5,1); }
@keyframes wsGot { 0% { transform: scale(.85); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
.ws-look { display: grid; gap: 4px; justify-items: center; min-width: 0; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; font: inherit; border-radius: 10px; }
.ws-name { max-width: 100%; font: 800 13.5px/1.15 var(--font-ui); color: var(--navy); overflow-wrap: anywhere; }
.ws-pic { display: block; width: 100%; height: 66px; object-fit: contain; }
img.ws-pic { filter: drop-shadow(0 3px 2px rgba(40,20,0,.22)); }
canvas.ws-pic { border-radius: 10px; background: linear-gradient(#e0efff, #f5faff); box-shadow: inset 0 0 0 1px rgba(80,120,200,.12); }
.ws-act { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px 6px; min-height: 30px; }
.ws-price { display: inline-flex; align-items: center; gap: 4px; font: 800 15px/1 var(--font-ui); color: #3a2614; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ws-price .coin { width: 19px; height: 19px; }
.ws-btn { flex: 1 1 auto; min-width: 0; min-height: 30px; padding: 0 10px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  font: 800 13px/1 var(--font-ui); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.25);
  border: 2px solid #1d6a12; background: linear-gradient(#7fe35d, #3cb02a 55%, #2a8f1d); box-shadow: inset 0 2px 0 rgba(255,255,255,.45), inset 0 -3px 0 rgba(0,0,0,.18), 0 2px 0 rgba(60,30,0,.2); }
.ws-btn.own { border-color: #164199; background: linear-gradient(#6aa8ff, #2a66e0); }
.ws-btn.short { color: #6a5a48; text-shadow: none; border-color: #c9b18c; background: linear-gradient(#fbf3e4, #e9dbc2); box-shadow: 0 2px 0 #c9ae86; }
.ws-btn:active { transform: translateY(1px); }
.ws-on { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 30px; padding: 0 10px; border-radius: 999px;
  font: 800 13px/1 var(--font-ui); color: #217a16; background: linear-gradient(#ecfbe6, #c9efbf); border: 2px solid #8fd27d; white-space: nowrap; }
.ws-free { font: 700 12px/1 var(--font-ui); color: var(--muted); }
/* one card left alone in its row on a phone: laid out across the row */
@media (max-width: 499px) {
  .ws-grid > .ws-card:last-child:nth-child(odd) { grid-column: 1 / -1; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); grid-template-rows: none; align-items: center; column-gap: 10px; }
  .ws-grid > .ws-card:last-child:nth-child(odd) .ws-act { flex-direction: column; align-items: stretch; }
  .ws-grid > .ws-card:last-child:nth-child(odd) .ws-price { justify-content: center; }
  .ws-grid > .ws-card:last-child:nth-child(odd) .ws-pic { height: 74px; }
}
@media (min-width: 500px) { .ws-grid { grid-template-columns: repeat(var(--n, 3), minmax(0,1fr)); } }

.t-plus .plus { gap: 10px; }
.levels { display: grid; gap: 12px; }
.levels .plus.lv2 { border-color: #e8c25a; box-shadow: 0 3px 0 #d3a832, 0 6px 12px rgba(120,80,0,.16); background: linear-gradient(#fffdf5, #fff6dc); }
.levels .plus.lv3 { border-color: #ff9a5a; box-shadow: 0 3px 0 #e0703a, 0 6px 12px rgba(140,40,0,.16); background: linear-gradient(#fffaf5, #ffeede); }
.levels .plus.current { outline: 3px solid #3cb02a; outline-offset: 2px; }
.lv-head { display: flex; align-items: center; gap: 8px; }
.lv-head .badge-plus { font-size: 12px; padding: 4px 8px; }
.lv-name { font: 800 19px/1.1 var(--font-ui); color: #1f2740; }
.lv-price { margin-left: auto; font: 700 14px/1.2 var(--font-ui); color: #3d4660; white-space: nowrap; }
.lv-incl { font: 700 13.5px/1.3 var(--font-ui); color: #5d667c; }
.levels .plus.lv2 .plus-perks li::before { filter: sepia(1) saturate(4) hue-rotate(-5deg) brightness(1.05); }
.levels .plus.lv3 .plus-perks li::before { filter: sepia(1) saturate(6) hue-rotate(-35deg); }
.t-plus .ws-card { background: linear-gradient(#ffffff, #eef1f7); border-color: #b9c1d0; box-shadow: 0 3px 0 #9aa3b5, 0 6px 12px rgba(40,40,80,.14); }
.t-plus .ws-card.worn { border-color: #3cb02a; }
.t-plus .ws-card.sel { border-color: #ffa514; }
.ws-lock { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; min-height: 30px; padding: 0 10px; border-radius: 999px;
  font: 700 12px/1 var(--font-ui); color: #5d667c; background: #e6e9f1; border: 1.5px dashed #aab2c4; white-space: nowrap; }
.ws-old { margin-left: 5px; font: 700 11.5px/1 var(--font-ui); color: #9a8a74; text-decoration-thickness: 1.5px; }
.plus-perks { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 6px; }
.plus-perks li { position: relative; padding-left: 24px; font-size: 13.5px; line-height: 1.3; color: #2d3446; }
.plus-perks li::before { content: ''; position: absolute; left: 0; top: 0; width: 18px; height: 18px; background: url(ui/silver.svg) center / contain no-repeat; }
.plus-perks b { color: #1f2740; }
.plus-price { margin: 2px 0 0; font-size: 14px; color: #3d4660; }
.plus .row { justify-content: flex-start; }
.plus .row > .ws-on, .plus .row > .btn { flex: 0 1 auto; min-height: 40px; padding: 0 16px; }
.plus-on { color: #217a16; }
/* «Свой самолётик» */
#customMine { margin-bottom: 10px; }
#customMine[hidden] { display: none; }
.t-custom .ws-card { background: linear-gradient(#fffaf2, #ffe9cf); border-color: #f2b56b; box-shadow: 0 3px 0 #e2964a, 0 6px 12px rgba(120,60,0,.14); }
.t-custom .ws-card.worn { border-color: #3cb02a; }
.t-custom .ws-card.sel { border-color: #ffa514; }
.custom { gap: 10px; border-color: #f2b56b; background: linear-gradient(#fffdf8, #fff3e3); box-shadow: 0 3px 0 #e2964a, 0 6px 12px rgba(120,60,0,.14); }
.custom.st-ready { border-color: #e7b43a; background: linear-gradient(#fffbe8, #ffefb8); box-shadow: 0 3px 0 #cf961a, 0 0 0 3px rgba(255,214,90,.3), 0 6px 14px rgba(120,70,0,.18); }
.cu-text { margin: 0; font-size: 14px; line-height: 1.35; color: #2d241c; }
.cu-state { display: flex; align-items: center; gap: 8px; margin: 0; }
.cu-state b { font: 800 17px/1.15 var(--font-ui); color: var(--navy); }
.cu-ic { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #22306f; }
.cu-ic.wait { background: conic-gradient(#ffc928 0 70%, #fff3c4 0); }
.cu-ic.done { background: linear-gradient(#7fe35d, #2a8f1d); border-color: #1d6a12; }
.cu-ic.done::after { content: '✓'; color: #fff; font: 900 15px/1 var(--font-ui); }
.cu-quote { margin: 0; padding: 8px 12px; border-left: 4px solid #f2b56b; border-radius: 0 10px 10px 0; background: rgba(255,255,255,.75);
  font: 600 19px/1.2 var(--font-display); color: var(--navy); overflow-wrap: anywhere; }
.cu-input { display: block; width: 100%; min-height: 76px; resize: vertical; padding: 9px 12px; border-radius: 12px; border: 2px solid #e2cfb1; background: #fff;
  font: 500 15px/1.35 var(--font-body); color: #2d241c; box-shadow: inset 0 2px 4px rgba(80,40,0,.08); }
.cu-input:focus { outline: none; border-color: #f0a35a; box-shadow: 0 0 0 3px rgba(255,165,20,.25); }
.cu-count { margin-top: -6px; text-align: right; font: 600 12px var(--font-ui); color: var(--muted); font-variant-numeric: tabular-nums; }
.cu-terms { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.cu-terms li { position: relative; padding-left: 18px; font-size: 13px; line-height: 1.3; color: #4a3d30; }
.cu-terms li::before { content: ''; position: absolute; left: 3px; top: .45em; width: 8px; height: 8px; border-radius: 50%; background: #f0802a; }
.cu-terms li:last-child { color: var(--muted); }
.cu-terms li:last-child::before { background: #c9b18c; }
.cu-refused { margin: 0; padding: 8px 12px; border-radius: 12px; background: #fff0ee; border: 1.5px solid #f3b7ae; font-size: 13.5px; line-height: 1.35; color: #8c1d10; }
.cu-look { display: grid; justify-items: center; gap: 4px; padding: 6px; border: 0; border-radius: 14px; background: linear-gradient(#e0efff, #f5faff);
  box-shadow: inset 0 0 0 1px rgba(80,120,200,.15); cursor: pointer; font: inherit; color: inherit; }
.cu-pic { display: block; width: min(100%, 300px); height: auto; filter: drop-shadow(0 4px 3px rgba(40,20,0,.25)); }
.cu-btns { justify-content: flex-start; }
.cu-btns .btn { flex: 0 1 auto; min-height: 40px; }
.cu-btns .btn.gold { flex: 1 1 100%; }
.custom .paynote { margin: 0; }
/* the iOS app of VK: nothing is offered for votes there, and nothing says where to buy (App Store rules) */
.support { margin: 10px 0 0; }
.support a { color: var(--navy); font-weight: 700; }
.support[hidden] { display: none; }
.no-votes .votes-info, .no-subs .subs-info, .no-subs .lv-price, .no-subs .plus-price, .no-subs #payNote { display: none !important; }
.ws .shopnote { position: relative; z-index: 1; margin: 14px 4px 0; }
.ws .paynote { margin: 8px 4px 0; }
.ws .ruler { bottom: -18px; }
.ws .eraser { bottom: -14px; }

/* while a bet of yours is in the air: a way back to the game */
.ws-live { position: fixed; left: 50%; bottom: max(16px, calc(env(safe-area-inset-bottom) + 8px)); z-index: 9; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 24px); padding: 10px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  font: italic 800 15px/1 var(--font-ui); color: #fff; text-shadow: 0 1.5px 0 rgba(0,0,0,.3); font-variant-numeric: tabular-nums;
  border: 2.5px solid #a84a00; background: linear-gradient(#ffbf55, #f7871a 55%, #e0620a); box-shadow: inset 0 2px 0 rgba(255,255,255,.45), 0 6px 16px rgba(40,15,0,.45);
  animation: cashPulse .9s ease-in-out infinite; }
.ws-live[hidden] { display: none; }

.info details { background: #fffbf3; border: 2px solid #e2cfb1; border-radius: 14px; padding: 10px 14px; margin-top: 8px; box-shadow: 0 2px 0 #d6bb94; }
.info summary { font: 800 15px var(--font-ui); cursor: pointer; color: #22306f; }
.info details p { margin: 8px 0 4px; font-size: 14px; }
.legal { margin: 12px 2px 0; }

/* ---------- modal, toast, flying coins ---------- */
.modal { position: fixed; inset: 0; background: rgba(40,20,5,.55); display: grid; place-items: center; padding: 16px; z-index: 10; }
.modal[hidden] { display: none; }
.modal-box { width: min(380px, 100%); background: #fffbf3; border-radius: 22px; padding: 20px; display: grid; gap: 12px; box-shadow: 0 20px 50px rgba(40,15,0,.45); border: 3px solid #dcc29b; }
.modal-box h3 { margin: 0; font: italic 800 22px/1.1 var(--font-ui); color: #22306f; }
.modal-box p { margin: 0; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.buy-pic { display: grid; place-items: center; height: 92px; border-radius: 14px; background: linear-gradient(#e0efff, #f5faff); }
.buy-pic .ws-pic { width: 70%; height: 80px; background: none; box-shadow: none; }
.modal-box .cu-input { min-height: 90px; }
.adbox { height: 120px; border-radius: 16px; background: repeating-linear-gradient(45deg, #f3ead9, #f3ead9 10px, #fbf6ec 10px, #fbf6ec 20px); display: grid; place-items: center; font: 800 44px var(--font-ui); color: #22306f; }
.toast { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20;
  background: linear-gradient(#4a2c16, #2e1a0b); color: #fff; padding: 11px 16px; border-radius: 999px; font: 700 14px var(--font-ui);
  max-width: min(420px, calc(100vw - 32px)); box-shadow: 0 10px 30px rgba(20,8,0,.5); border: 2px solid rgba(255,220,170,.35); }
.toast[hidden] { display: none; }
.wallet.bump #balance { animation: bump .45s cubic-bezier(.3,1.6,.5,1); display: inline-block; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.25); color: #2f9e22; } 100% { transform: scale(1); } }
.flycoin { position: fixed; left: 0; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; z-index: 60; pointer-events: none;
  background: url(ui/ico_coin.webp) center/contain no-repeat; filter: drop-shadow(0 2px 3px rgba(40,15,0,.35)); }

@media (max-width: 380px) {
  .desk { padding-left: 6px; padding-right: 6px; }
  .top { gap: 5px; }
  .hbtn { padding: 0 9px 0 7px; gap: 4px; }
  .hbtn .ico { width: 20px; height: 20px; }
  .coin.big { width: 44px; height: 44px; margin-left: -19px; }
  .wallet { margin-left: 17px; }
  .plusbtn { width: 28px; height: 28px; font-size: 21px; }
  .sheet { padding-left: 20px; padding-right: 9px; }
  .gate-sheet { padding-right: 26px; }
  .panel { padding: 7px; }
  .amount { grid-template-columns: 30px minmax(0,1fr) 30px; }
  .step { width: 30px; height: 30px; font-size: 20px; border-radius: 10px; }
  .amt input { font-size: 16px; }
  .main { font-size: 19px; min-height: 58px; }
  .ptitle::before, .ptitle::after { width: 9px; height: 10px; margin: 0 3px; }
  .autos { font-size: 10.5px; }
  #plist li { grid-template-columns: 36px minmax(0,1fr) auto auto; gap: 6px; }
  .av { width: 36px; height: 36px; font-size: 16px; }
  .stt { min-width: 0; padding: 7px 9px; font-size: 12px; }
  .bet { font-size: 13px; }
}
@media (max-width: 430px) {
  .dcell span { font-size: 11.5px; }
  .dcell b { font-size: 9.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .chip.fresh, .main.cash, .wallet.bump #balance, .stt.fly.moving, .ws-live, .ws-card.just { animation: none; }
  .main, .autos input[type="checkbox"], .autos input[type="checkbox"]::after { transition: none; }
}

/* ---------- wide screens: the game lies on a big notebook on a school desk ---------- */
@media (min-width: 760px) {
  body { background: #6b3a1c; }
  body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url(ui/desk_wide.webp?v=6) center / cover no-repeat; }
  .ws { background: #6b3a1c url(ui/desk_wide.webp?v=6) center / cover no-repeat; }
  .ws-wrap { max-width: 640px; }
  .ws-top { background: rgba(84,42,16,.94); }
}
