@font-face{font-family:"Unbounded";font-style:normal;font-weight:500;font-display:swap;src:url(fonts/unbounded-cyrillic-ext-500.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"Unbounded";font-style:normal;font-weight:500;font-display:swap;src:url(fonts/unbounded-cyrillic-500.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Unbounded";font-style:normal;font-weight:500;font-display:swap;src:url(fonts/unbounded-latin-ext-500.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Unbounded";font-style:normal;font-weight:500;font-display:swap;src:url(fonts/unbounded-latin-500.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Unbounded";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/unbounded-cyrillic-ext-600.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"Unbounded";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/unbounded-cyrillic-600.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Unbounded";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/unbounded-latin-ext-600.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Unbounded";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/unbounded-latin-600.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Unbounded";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/unbounded-cyrillic-ext-700.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"Unbounded";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/unbounded-cyrillic-700.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Unbounded";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/unbounded-latin-ext-700.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Unbounded";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/unbounded-latin-700.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,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-style:normal;font-weight:400;font-display:swap;src:url(fonts/golos-text-cyrillic-ext-400.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/golos-text-cyrillic-400.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-style:normal;font-weight:400;font-display:swap;src:url(fonts/golos-text-latin-ext-400.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:400;font-display:swap;src:url(fonts/golos-text-latin-400.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,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-style:normal;font-weight:500;font-display:swap;src:url(fonts/golos-text-cyrillic-ext-500.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:500;font-display:swap;src:url(fonts/golos-text-cyrillic-500.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-style:normal;font-weight:500;font-display:swap;src:url(fonts/golos-text-latin-ext-500.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:500;font-display:swap;src:url(fonts/golos-text-latin-500.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,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-style:normal;font-weight:600;font-display:swap;src:url(fonts/golos-text-cyrillic-ext-600.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/golos-text-cyrillic-600.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-style:normal;font-weight:600;font-display:swap;src:url(fonts/golos-text-latin-ext-600.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:600;font-display:swap;src:url(fonts/golos-text-latin-600.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,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-style:normal;font-weight:700;font-display:swap;src:url(fonts/golos-text-cyrillic-ext-700.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/golos-text-cyrillic-700.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-style:normal;font-weight:700;font-display:swap;src:url(fonts/golos-text-latin-ext-700.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Golos Text";font-style:normal;font-weight:700;font-display:swap;src:url(fonts/golos-text-latin-700.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
/* KORT — справочник игрока. Стиль игры: кремовый стол, приподнятые плашки, золотые кнопки, тёмное сукно. */
:root {
  --bg: #F1EBE2;
  --bg-2: #E9E1D5;
  --plate: #FBF8F3;
  --plate-2: #F3EDE4;
  --plate-in: #ECE4D8;
  --ink: #2E261F;
  --ink-2: #6C5F52;
  --ink-3: #95887A;
  --line: rgba(90, 70, 45, .13);
  --line-2: rgba(90, 70, 45, .22);
  --gold: #C9A157;
  --gold-hi: #E0C07B;
  --gold-lo: #B18A43;
  --gold-ink: #87652A;
  --felt: #2A2C31;
  --felt-hi: #3A3D44;
  --rim: #C2A361;
  --red: #C3352B;
  --blue: #2B5FA8;
  --brand: #2E5A8C;
  --brand-2: #1E3D63;
  --green: #3DA85A;
  --tag: #FFF7E6;
  --shadow-up: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 10px 24px -14px rgba(84, 62, 34, .45), 0 2px 6px -2px rgba(84, 62, 34, .18);
  --shadow-soft: 0 18px 40px -26px rgba(84, 62, 34, .55);
  --r: 22px;
  --r-s: 14px;
  --font-d: "Unbounded", "Golos Text", system-ui, sans-serif;
  --font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --top-h: 64px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #171513; --bg-2: #1D1A17; --plate: #221F1B; --plate-2: #2A2621; --plate-in: #1A1815;
  --ink: #F1EAE0; --ink-2: #BDB1A2; --ink-3: #8D8273; --line: rgba(255, 236, 210, .1); --line-2: rgba(255, 236, 210, .18);
  --gold-ink: #E3C27E; --felt: #101113; --felt-hi: #1D1F23; --tag: #2B261F; --brand: #24497A; --brand-2: #142B49;
  --shadow-up: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 12px 26px -16px rgba(0, 0, 0, .8);
  --shadow-soft: 0 18px 40px -24px rgba(0, 0, 0, .9);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171513; --bg-2: #1D1A17; --plate: #221F1B; --plate-2: #2A2621; --plate-in: #1A1815;
    --ink: #F1EAE0; --ink-2: #BDB1A2; --ink-3: #8D8273; --line: rgba(255, 236, 210, .1); --line-2: rgba(255, 236, 210, .18);
    --gold-ink: #E3C27E; --felt: #101113; --felt-hi: #1D1F23; --tag: #2B261F; --brand: #24497A; --brand-2: #142B49;
    --shadow-up: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 12px 26px -16px rgba(0, 0, 0, .8);
    --shadow-soft: 0 18px 40px -24px rgba(0, 0, 0, .9);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.62 var(--font); font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background-image: radial-gradient(1200px 600px at 85% -10%, rgba(201, 161, 87, .10), transparent 60%);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--plate); padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- верхняя панель ---------- */
.top {
  position: sticky; top: 0; z-index: 40; height: var(--top-h);
  display: flex; align-items: center; gap: 10px; padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 4px 10px -4px rgba(30, 50, 90, .5); }
.brand b { font: 700 21px/1 var(--font-d); letter-spacing: .02em; }
.brand span { font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbtn {
  height: 42px; min-width: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px;
  border: 0; border-radius: 13px; background: var(--plate); color: var(--ink); font: 500 15px var(--font); cursor: pointer;
  box-shadow: var(--shadow-up);
}
.tbtn svg { width: 20px; height: 20px; flex: none; }
.tbtn:hover { background: var(--plate-2); }
.tbtn.search { min-width: 210px; justify-content: flex-start; color: var(--ink-3); }
.tbtn.search kbd { margin-left: auto; font: 500 12px var(--font); border: 1px solid var(--line-2); border-radius: 6px; padding: 1px 6px; color: var(--ink-3); }
.lang { position: relative; }
.lang > button { font: 600 13px var(--font-d); letter-spacing: .04em; }
.lang ul {
  position: absolute; right: 0; top: 50px; min-width: 190px; margin: 0; padding: 6px; list-style: none; z-index: 60;
  background: var(--plate); border-radius: 16px; box-shadow: var(--shadow-soft), 0 0 0 1px var(--line); display: none;
}
.lang.open ul { display: block; }
.lang li a { display: flex; justify-content: space-between; gap: 14px; padding: 9px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.lang li a small { color: var(--ink-3); font: 600 12px var(--font-d); }
.lang li a:hover, .lang li a[aria-current] { background: var(--plate-2); }
.lang li a[aria-current] { color: var(--gold-ink); font-weight: 600; }
.menu-btn { display: none; }

/* ---------- раскладка ---------- */
.layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; max-width: 1320px; margin: 0 auto; padding: 24px 24px 40px; }
.side { position: sticky; top: calc(var(--top-h) + 20px); align-self: start; max-height: calc(100vh - var(--top-h) - 40px); overflow: auto; padding: 4px 6px 20px 4px; scrollbar-width: thin; }

/* меню — как главное меню игры: плашки с объёмной иконкой */
.nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nav > li > a {
  display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; min-height: 58px;
  text-decoration: none; color: var(--ink); border-radius: 18px; background: var(--plate); box-shadow: var(--shadow-up);
  transition: transform .15s ease, background .15s ease;
}
.nav > li > a:hover { transform: translateY(-1px); background: var(--plate-2); }
.nav > li > a img { width: 44px; height: 44px; }
.nav > li > a b { display: block; font: 600 13.5px/1.25 var(--font-d); letter-spacing: .03em; text-transform: uppercase; }
.nav > li > a small { display: block; font-size: 12.5px; line-height: 1.3; color: var(--ink-3); margin-top: 2px; }
.nav > li > a[aria-current="page"] { background: linear-gradient(180deg, #FFF9EC, #F7EBD2); box-shadow: 0 0 0 2px var(--gold), var(--shadow-up); }
:root[data-theme="dark"] .nav > li > a[aria-current="page"] { background: #2E281F; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav > li > a[aria-current="page"] { background: #2E281F; } }
.nav .sub { list-style: none; margin: 6px 0 6px 28px; padding: 2px 0 2px 16px; border-left: 2px solid var(--line-2); }
.nav .sub a { display: block; padding: 5px 8px; font-size: 14px; color: var(--ink-2); text-decoration: none; border-radius: 8px; }
.nav .sub a:hover { color: var(--ink); background: var(--plate-2); }
.nav .sub a.on { color: var(--gold-ink); font-weight: 600; }
.side .apps { margin: 18px 6px 0; font-size: 14px; color: var(--ink-2); }

/* лист с содержанием */
.sheet {
  position: relative; min-width: 0; background: var(--plate); border-radius: 30px; box-shadow: var(--shadow-up), var(--shadow-soft);
  padding: 44px clamp(20px, 5vw, 64px) 40px;
}
.pip { position: absolute; font: 700 18px/1 var(--font-d); color: var(--ink); text-align: center; opacity: .85; }
.pip small { display: block; font-size: 17px; margin-top: 2px; }
.pip.r { color: var(--red); }
.pip.tl { left: 20px; top: 18px; }
.pip.br { right: 20px; bottom: 18px; transform: rotate(180deg); }
.doc { max-width: 760px; margin: 0 auto; }
.doc.wide { max-width: 940px; }

/* ---------- текст ---------- */
h1, h2, h3 { font-family: var(--font-d); color: var(--ink); letter-spacing: -.01em; }
h1 { font-weight: 700; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; margin: 0 0 16px; text-wrap: balance; }
h2 { font-weight: 600; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; margin: 52px 0 14px; text-wrap: balance; }
h3 { font-weight: 600; font-size: 19px; line-height: 1.3; margin: 32px 0 10px; }
h2 .anchor, h3 .anchor { margin-left: 8px; color: var(--ink-3); text-decoration: none; opacity: 0; font-weight: 500; }
h2:hover .anchor, h3:hover .anchor, .anchor:focus { opacity: 1; }
p { margin: 0 0 14px; }
.lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); margin-bottom: 24px; max-width: 64ch; }
.small { font-size: 14.5px; }
.muted { color: var(--ink-2); }
.nw { white-space: nowrap; }
ul, ol { padding-left: 1.3em; margin: 0 0 16px; }
li { margin: 5px 0; }
li::marker { color: var(--gold-lo); }
b, strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }

/* надпись с кнопки игры */
.ui {
  display: inline-block; font: 600 .78em/1.2 var(--font-d); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
  padding: .32em .7em .3em; border-radius: 999px; vertical-align: .08em; color: #fff;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); box-shadow: 0 2px 0 rgba(120, 85, 30, .35), 0 1px 0 rgba(255, 255, 255, .5) inset;
}
.ui.w { color: var(--ink-2); background: var(--plate-2); box-shadow: 0 0 0 1px var(--line-2); }
.suit { font-style: normal; }
.suit.r { color: var(--red); }
kbd { font: 600 .85em var(--font); }

/* шаги */
ol.steps { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 10px; }
ol.steps > li { counter-increment: s; position: relative; padding: 14px 16px 14px 60px; margin: 0; background: var(--plate-2); border-radius: 16px; }
ol.steps > li::before {
  content: counter(s); position: absolute; left: 14px; top: 13px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font: 700 14px var(--font-d); color: #fff; background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo));
  box-shadow: 0 2px 0 rgba(120, 85, 30, .35);
}

/* заметки */
.note, .warn, .tip {
  border-radius: 18px; padding: 16px 18px 16px 56px; margin: 20px 0; position: relative; background: var(--plate-2);
}
.note::before, .warn::before, .tip::before {
  position: absolute; left: 16px; top: 15px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font: 700 14px var(--font-d); color: #fff;
}
.note::before { content: "i"; background: var(--brand); }
.warn { background: color-mix(in srgb, var(--red) 9%, var(--plate)); }
.warn::before { content: "!"; background: var(--red); }
.tip { background: color-mix(in srgb, var(--green) 10%, var(--plate)); }
.tip::before { content: "✓"; background: var(--green); font-size: 13px; }
.note p:last-child, .warn p:last-child, .tip p:last-child { margin-bottom: 0; }

/* таблицы */
.tw { overflow-x: auto; margin: 18px 0 22px; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); -webkit-overflow-scrolling: touch; }
table.t { border-collapse: collapse; width: 100%; font-size: 15.5px; min-width: 420px; }
.t th { text-align: left; font: 600 12px/1.3 var(--font-d); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); background: var(--plate-2); padding: 12px 14px; }
.t td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.t .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.t .plus { color: var(--green); font-weight: 600; }
.t .minus { color: var(--red); font-weight: 600; }
.res { font-weight: 600; }

/* карты */
figure { margin: 22px 0; }
figcaption { font-size: 14.5px; color: var(--ink-2); margin-top: 10px; text-align: center; }
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 20px; border-radius: 22px; background: var(--felt); box-shadow: inset 0 0 0 3px var(--rim), inset 0 0 40px rgba(0, 0, 0, .45); }
.cards img { width: 74px; border-radius: 7px; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .7); }
.cards img.hl { outline: 3px solid var(--gold-hi); outline-offset: 2px; transform: translateY(-8px); }
.cards img.dim { filter: brightness(.55) saturate(.6); }
.cards figcaption { color: #E9DFCF; width: 100%; margin-top: 4px; }
.cards.fan img { margin: 0 -14px; }
.cards.fan img:nth-child(odd) { transform: rotate(-4deg); }
.cards.fan img:nth-child(even) { transform: rotate(4deg) translateY(4px); }
.cards.fan img.hl { transform: translateY(-12px); }

/* скриншоты */
.shot { text-align: center; }
.shot img { width: min(320px, 78%); border-radius: 28px; box-shadow: 0 0 0 8px #1D1D1F, 0 22px 40px -18px rgba(0, 0, 0, .6); }
.shot.land img { width: min(640px, 100%); border-radius: 22px; }

/* вопросы-ответы */
.faq-tools { position: sticky; top: calc(var(--top-h) + 8px); z-index: 5; background: var(--plate); padding: 8px 0 12px; margin-bottom: 8px; }
.field { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 50px; border-radius: 16px; background: var(--plate-in); box-shadow: inset 0 2px 4px rgba(84, 62, 34, .12); }
.field svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.field input { flex: 1; border: 0; background: none; font: 400 17px var(--font); color: var(--ink); outline: none; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  border: 0; cursor: pointer; padding: 8px 14px; border-radius: 999px; font: 600 12.5px var(--font-d); letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-2); background: var(--plate-2); box-shadow: var(--shadow-up);
}
.chip[aria-pressed="true"] { color: #fff; background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); }
.faq-group h2 { margin-top: 36px; }
details.q { border-radius: 16px; background: var(--plate-2); margin: 8px 0; }
details.q > summary { list-style: none; cursor: pointer; padding: 14px 48px 14px 18px; font-weight: 600; position: relative; }
details.q > summary::-webkit-details-marker { display: none; }
details.q > summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font: 500 24px var(--font-d); color: var(--gold-lo); transition: transform .2s; }
details.q[open] > summary::after { transform: rotate(45deg); }
details.q .a { padding: 0 18px 14px; }
details.q.hit { box-shadow: 0 0 0 2px var(--gold); }
.faq-empty { display: none; padding: 18px; border-radius: 16px; background: var(--plate-2); }

/* словарь */
dl.gloss { display: grid; grid-template-columns: minmax(130px, 200px) 1fr; gap: 0; margin: 20px 0; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
dl.gloss dt, dl.gloss dd { margin: 0; padding: 12px 16px; border-top: 1px solid var(--line); }
dl.gloss dt { font: 600 15px var(--font-d); background: var(--plate-2); }
dl.gloss > :nth-child(1), dl.gloss > :nth-child(2) { border-top: 0; }

/* маскот */
.mascot { display: grid; grid-template-columns: 120px 1fr; align-items: end; gap: 14px; margin: 26px 0; }
.mascot img { width: 120px; }
.mascot .bubble { position: relative; background: var(--tag); border-radius: 20px; padding: 16px 18px; margin-bottom: 26px; box-shadow: var(--shadow-up); }
.mascot .bubble::after { content: ""; position: absolute; left: -10px; bottom: 18px; border: 10px solid transparent; border-right-color: var(--tag); border-left: 0; }

/* калькулятор */
.calc { background: var(--plate-2); border-radius: 22px; padding: 18px; margin: 20px 0; }
.calc label { display: block; font: 600 12.5px var(--font-d); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); margin: 12px 0 8px; }
.calc .row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { border: 0; cursor: pointer; padding: 10px 14px; border-radius: 13px; font: 500 15px var(--font); color: var(--ink); background: var(--plate); box-shadow: var(--shadow-up); }
.opt[aria-pressed="true"] { color: #fff; background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); }
.calc .out { margin-top: 16px; padding: 16px 18px; border-radius: 16px; background: var(--plate); box-shadow: inset 0 0 0 1px var(--line); }
.calc .big { font: 700 22px var(--font-d); margin-bottom: 6px; }

/* ---------- главная справочника ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5.2vw, 56px); }
.store { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.sbtn {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 13px; border-radius: 14px; text-decoration: none;
  color: #fff; background: #1D1A17; box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .7);
}
.sbtn svg { width: 24px; height: 24px; }
.sbtn span { display: flex; flex-direction: column; font: 600 16px/1.1 var(--font); }
.sbtn small { font-size: 11px; font-weight: 400; opacity: .8; }
.help-strip { margin: 34px 0 6px; padding: 20px; border-radius: 24px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #F6EFE3; }
.help-strip h2 { color: #fff; margin: 0 0 4px; font-size: 22px; }
.help-strip p { color: #DCE6F2; margin: 0 0 14px; }
.help-strip .chips a { text-decoration: none; }
.help-strip .chip { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); text-transform: none; letter-spacing: 0; font: 600 14.5px/1.2 var(--font); padding: 9px 14px; }
.help-strip .chip:hover { background: rgba(255, 255, 255, .2); }
.menu { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.menu a {
  display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 20px;
  text-decoration: none; color: var(--ink); background: var(--plate); box-shadow: var(--shadow-up), 0 0 0 1px var(--line);
}
.menu a:hover { background: var(--plate-2); }
.menu img { width: 52px; height: 52px; }
.menu b { display: block; font: 600 14px/1.25 var(--font-d); letter-spacing: .03em; text-transform: uppercase; }
.menu small { display: block; color: var(--ink-3); font-size: 13.5px; line-height: 1.35; margin-top: 3px; }

/* ---------- сцены: стол и телефон ---------- */
.scene { margin: 26px 0; border-radius: 26px; background: var(--plate-2); padding: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.scene .stage { position: relative; margin: 0 auto; user-select: none; }
.scene .bar { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.scene .cap { flex: 1; min-height: 3.2em; font-size: 15.5px; line-height: 1.45; }
.scene .cap b { color: var(--gold-ink); }
.scene .play {
  flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); box-shadow: 0 3px 0 rgba(120, 85, 30, .35), 0 1px 0 rgba(255, 255, 255, .5) inset;
}
.scene .play svg { width: 20px; height: 20px; }
.scene .dots { display: flex; gap: 6px; justify-content: center; margin-top: 10px; }
.scene .dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--line-2); cursor: pointer; }
.scene .dots button[aria-current="true"] { background: var(--gold); width: 22px; border-radius: 6px; }
.scene ol.script { display: none; }
.scene.static ol.script { display: block; margin: 14px 0 0; font-size: 15px; }
.scene.static .bar, .scene.static .dots { display: none; }

/* стол */
.tbl { width: 100%; max-width: 520px; aspect-ratio: 1 / 1.02; }
.tbl .felt {
  position: absolute; left: 22%; right: 22%; top: 16%; bottom: 14%; border-radius: 999px; background: radial-gradient(120% 90% at 50% 40%, var(--felt-hi), var(--felt) 70%);
  box-shadow: 0 0 0 4px var(--rim), 0 0 0 9px rgba(194, 163, 97, .18), 0 24px 40px -18px rgba(0, 0, 0, .6), inset 0 0 50px rgba(0, 0, 0, .55);
}
.tbl .seat { position: absolute; width: 23%; text-align: center; transition: filter .3s; }
.tbl .seat img.av { width: 72%; display: block; margin: 0 auto -6px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .25)); }
.tbl .seat .nm {
  position: relative; display: inline-block; min-width: 78%; padding: 4px 8px 3px; border-radius: 9px; background: #FBF7F0; color: #2E261F;
  font: 600 12px/1.15 var(--font); box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}
.tbl .seat .nm small { display: block; font-size: 9.5px; color: #C0392B; font-weight: 500; }
.tbl .seat.mate .nm, .tbl .seat.me .nm { background: #4A4E57; color: #fff; }
.tbl .seat.mate .nm small, .tbl .seat.me .nm small { color: #9EC2FF; }
.tbl .seat.turn .nm { box-shadow: 0 0 0 2px var(--gold-hi), 0 0 16px rgba(224, 192, 123, .9); }
.tbl .seat.n { left: 38.5%; top: 0; }
.tbl .seat.w { left: 0; top: 34%; }
.tbl .seat.e { right: 0; top: 34%; }
.tbl .seat.s { left: 38.5%; bottom: -1%; }
.tbl .badge { position: absolute; z-index: 3; width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 3px 8px rgba(0, 0, 0, .25); transition: transform .2s; }
.tbl .badge i { width: 18px; height: 18px; background: #2E261F; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.tbl .card {
  position: absolute; width: 13.5%; aspect-ratio: 200 / 306; z-index: 4; border-radius: 6px; box-shadow: 0 6px 12px -4px rgba(0, 0, 0, .6);
  transition: left .55s cubic-bezier(.2, .8, .2, 1), top .55s cubic-bezier(.2, .8, .2, 1), transform .55s cubic-bezier(.2, .8, .2, 1), opacity .4s, box-shadow .3s;
}
.tbl .card.win { box-shadow: 0 0 0 3px var(--gold-hi), 0 0 22px rgba(224, 192, 123, .95); }
.tbl .score {
  position: absolute; left: 50%; top: -1%; transform: translateX(-50%); display: none;
}
.tbl .trump {
  position: absolute; left: 3%; top: 2%; z-index: 5; padding: 5px 10px; border-radius: 10px; background: #FBF7F0; color: #2E261F;
  font: 600 11px/1 var(--font-d); letter-spacing: .05em; text-transform: uppercase; box-shadow: 0 3px 8px rgba(0, 0, 0, .2); display: flex; gap: 5px; align-items: center;
}
.tbl .trump .s { color: var(--red); font-size: 14px; }
.tbl .tally {
  position: absolute; right: 3%; top: 2%; z-index: 5; display: flex; gap: 0; border-radius: 12px; background: #FBF7F0; box-shadow: 0 3px 8px rgba(0, 0, 0, .2); overflow: hidden;
  font: 700 18px/1 var(--font-d);
}
.tbl .tally span { padding: 5px 10px 6px; text-align: center; }
.tbl .tally small { display: block; font: 600 8px/1.2 var(--font-d); letter-spacing: .06em; color: #7A6C5D; margin-bottom: 2px; }
.tbl .tally .they { color: #C0392B; }
.tbl .tally .we { color: #2B5FA8; }
.tbl .plaque {
  position: absolute; left: 50%; top: 46%; z-index: 8; transform: translate(-50%, -50%) scale(.6); opacity: 0; pointer-events: none;
  padding: 12px 22px; border-radius: 16px; text-align: center; white-space: nowrap;
  background: linear-gradient(180deg, #FFF8E8, #F2DFB4); color: #5A3E12; box-shadow: 0 0 0 3px var(--gold), 0 18px 40px -10px rgba(0, 0, 0, .7);
  font: 700 22px/1.1 var(--font-d); letter-spacing: .03em; transition: transform .35s cubic-bezier(.2, 1.4, .4, 1), opacity .25s;
}
.tbl .plaque small { display: block; font: 600 12px var(--font); letter-spacing: 0; color: #7A5A22; margin-top: 4px; }
.tbl .plaque.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.tbl .vote {
  position: absolute; left: 50%; bottom: 23%; z-index: 9; transform: translate(-50%, 20px); opacity: 0; width: 76%; pointer-events: none;
  background: #FBF7F0; color: #2E261F; border-radius: 18px; padding: 12px 12px 12px; text-align: center; box-shadow: 0 18px 30px -10px rgba(0, 0, 0, .6);
  transition: transform .35s, opacity .25s;
}
.tbl .vote.on { transform: translate(-50%, 0); opacity: 1; }
.tbl .vote p { margin: 0 0 8px; font: 600 13px/1.3 var(--font); }
.tbl .vote .bt { display: flex; gap: 8px; justify-content: center; }
.tbl .vote .bt span { flex: 1; padding: 8px 6px; border-radius: 999px; font: 600 11px/1 var(--font-d); letter-spacing: .04em; text-transform: uppercase; }
.tbl .vote .go { color: #fff; background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); }
.tbl .vote .stop { color: #5A4E42; background: #EFE7DA; }
.tbl .vote .pressed { box-shadow: 0 0 0 3px #2B5FA8; }
.tbl .vote .timer { height: 4px; border-radius: 4px; background: #E7DCC9; margin-top: 10px; overflow: hidden; }
.tbl .vote .timer i { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left; }
.tbl .hand { position: absolute; left: 6%; right: 6%; bottom: -4%; height: 20%; z-index: 6; pointer-events: none; }
.tbl .tag {
  position: absolute; z-index: 7; padding: 4px 8px; border-radius: 8px; font: 600 11px/1.1 var(--font); white-space: nowrap; color: #fff; background: rgba(30, 26, 22, .86);
  transform: translate(-50%, -100%); opacity: 0; transition: opacity .3s;
}
.tbl .tag.on { opacity: 1; }

/* касание пальцем */
.tap { position: absolute; z-index: 20; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: rgba(255, 255, 255, .5); box-shadow: 0 0 0 3px rgba(201, 161, 87, .9); transition: left .5s, top .5s, opacity .2s; }
.tap.on { opacity: 1; }
.tap.hit { animation: tap .55s ease-out; }
@keyframes tap { 0% { transform: scale(1); } 40% { transform: scale(.7); background: rgba(201, 161, 87, .55); } 100% { transform: scale(1.35); opacity: 0; } }

/* телефон (схемы интерфейса) */
.phone {
  position: relative; width: 300px; max-width: 100%; aspect-ratio: 9 / 18.5; margin: 0 auto; border-radius: 40px; padding: 10px;
  background: #1C1C1E; box-shadow: 0 0 0 2px #3A3A3C inset, 0 30px 50px -24px rgba(0, 0, 0, .7);
}
.phone .scr { position: relative; height: 100%; border-radius: 31px; overflow: hidden; background: #F3EDE4; color: #2E261F; font-family: var(--font); }
.phone .scr::before { content: ""; position: absolute; left: 50%; top: 8px; width: 34%; height: 20px; transform: translateX(-50%); border-radius: 14px; background: #1C1C1E; z-index: 30; }
.phone .scr .layer { position: absolute; inset: 0; transition: opacity .35s, transform .35s; }
.phone .scr .layer.off { opacity: 0; pointer-events: none; transform: translateY(10px); }
.phone .top2 { position: absolute; left: 0; right: 0; top: 40px; display: flex; justify-content: center; gap: 4px; padding: 0 10px; }
.phone .tabs { display: flex; gap: 2px; background: #EAE2D6; border-radius: 999px; padding: 3px; margin: 40px 12px 0; }
.phone .tabs span { flex: 1 1 auto; white-space: nowrap; text-align: center; padding: 6px 3px; border-radius: 999px; font: 600 7.5px/1 var(--font-d); letter-spacing: .05em; text-transform: uppercase; color: #8A7E70; }
.phone .tabs span.on { color: #fff; background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); }
.phone .pl { position: absolute; left: 12px; right: 12px; border-radius: 16px; background: #FBF8F3; box-shadow: 0 6px 16px -10px rgba(84, 62, 34, .6), 0 1px 0 #fff inset; }
.phone .row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 12px; border-top: 1px solid rgba(90, 70, 45, .1); }
.phone .row:first-child { border-top: 0; }
.phone .row img, .phone .row i.ic { width: 16px; height: 16px; flex: none; }
.phone .row .r { margin-left: auto; font-weight: 600; font-size: 11px; color: #8A7E70; }
.phone .row .r.go { color: #2B7FD0; }
.phone .row .r.ok { color: var(--green); }
.phone .gb {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 9px 12px; border-radius: 999px; color: #fff; text-align: center;
  font: 600 9px/1.1 var(--font-d); letter-spacing: .05em; text-transform: uppercase; background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo));
  box-shadow: 0 2px 0 rgba(120, 85, 30, .35);
}
.phone .gb.w { color: #6C5F52; background: #F3EDE4; box-shadow: 0 2px 6px rgba(84, 62, 34, .2), 0 1px 0 #fff inset; }
.phone .gb.dis { filter: grayscale(.8); opacity: .55; }
.phone .gb small { display: block; font: 600 8px var(--font); letter-spacing: 0; text-transform: none; opacity: .95; }
.phone .dim { position: absolute; inset: 0; background: rgba(40, 32, 24, .45); transition: opacity .3s; }
.phone .dlg { position: absolute; left: 14px; right: 14px; border-radius: 20px; background: #FBF8F3; padding: 14px 12px 12px; text-align: center; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .55); }
.phone .dlg h5 { margin: 0 0 6px; font: 600 10.5px/1.2 var(--font-d); letter-spacing: .08em; text-transform: uppercase; }
.phone .dlg p { margin: 0 0 10px; font-size: 10.5px; line-height: 1.4; color: #6C5F52; }
.phone .dlg .bt { display: flex; gap: 8px; }
.phone .dlg .bt .gb { flex: 1; }
.phone .nav5 { position: absolute; left: 0; right: 0; bottom: 0; height: 58px; display: flex; justify-content: space-around; align-items: center; padding-bottom: 8px; background: #F3EDE4; border-top: 1px solid rgba(90, 70, 45, .1); }
.phone .nav5 span { display: grid; justify-items: center; gap: 3px; font: 600 6px/1 var(--font-d); letter-spacing: .04em; text-transform: uppercase; color: #8A7E70; }
.phone .nav5 i { width: 18px; height: 18px; background: #9A8A7A; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.phone .toast { position: absolute; left: 50%; bottom: 74px; transform: translate(-50%, 10px); opacity: 0; padding: 8px 12px; border-radius: 12px; background: rgba(30, 26, 22, .9); color: #fff; font-size: 10.5px; line-height: 1.35; white-space: nowrap; transition: opacity .3s, transform .3s; text-align: center; }
.phone .toast.on { opacity: 1; transform: translate(-50%, 0); }
.mk { -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; background: currentColor; display: inline-block; }
.phone .coins { display: flex; align-items: center; gap: 5px; font: 700 16px var(--font-d); }
.phone .coins img { width: 20px; height: 20px; }
.phone .plusb { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 16px/1 var(--font-d); background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); box-shadow: 0 2px 0 rgba(120, 85, 30, .35); }

/* две колонки: схема + пояснение */
.how { display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: center; margin: 22px 0 30px; }
.how .scene { margin: 0; }
.how > div > :first-child { margin-top: 0; }

/* ---------- помощь ---------- */
.probs { list-style: none; padding: 0; margin: 18px 0 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.probs a {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; text-decoration: none; color: var(--ink);
  background: var(--plate); box-shadow: var(--shadow-up), 0 0 0 1px var(--line); font-weight: 600; font-size: 15px; line-height: 1.3;
}
.probs a:hover { background: var(--plate-2); }
.probs .ic { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #6A9BD8, var(--brand)); }
.probs .ic i { width: 18px; height: 18px; }
.probs .ic.g { background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); }
.probs .ic.r { background: linear-gradient(180deg, #E8776D, var(--red)); }
.probs .ic.t { background: linear-gradient(180deg, #5CC8E8, #2A8BC4); }
.probs .ic.v { background: linear-gradient(180deg, #A58BF0, #6A4CC9); }
.probs .ic.n { background: linear-gradient(180deg, #7FCB8A, #3A9A50); }
.fix { border-radius: 24px; background: var(--plate-2); padding: 20px 22px 8px; margin: 18px 0 26px; }
.fix > h3:first-child { margin-top: 0; }
.fix .why { font-size: 15.5px; color: var(--ink-2); }
.cause { display: grid; grid-template-columns: 26px 1fr; gap: 10px; margin: 12px 0; }
.cause::before { content: ""; width: 10px; height: 10px; border-radius: 50%; margin: 8px 0 0 8px; background: var(--gold); }

/* ---------- соседние разделы, подвал ---------- */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 56px; }
.pager a { display: block; padding: 14px 18px; border-radius: 18px; text-decoration: none; color: var(--ink); background: var(--plate-2); }
.pager a:hover { box-shadow: 0 0 0 2px var(--gold); }
.pager .next { text-align: right; }
.pager small { display: block; color: var(--ink-3); font-size: 13px; }
.pager b { font: 600 15px var(--font-d); }
.foot { max-width: 1320px; margin: 0 auto; padding: 18px 24px 120px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; color: var(--ink-2); }
.foot a { color: var(--ink-2); }
.foot .c { width: 100%; color: var(--ink-3); }

/* нижняя панель на телефоне — как в игре */
.btm { display: none; }

/* меню-шторка */
.drawer { position: fixed; inset: 0; z-index: 70; visibility: hidden; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(28, 22, 16, .45); opacity: 0; transition: opacity .25s; }
.drawer .panel {
  position: absolute; left: 0; top: 0; bottom: 0; width: min(360px, 88vw); background: var(--bg); padding: 14px 14px 30px; overflow: auto;
  transform: translateX(-102%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); box-shadow: 20px 0 40px -20px rgba(0, 0, 0, .5);
}
.drawer .head { display: flex; align-items: center; justify-content: space-between; margin: 2px 4px 14px; }
.drawer .head b { font: 700 20px var(--font-d); }
.drawer.open { visibility: visible; }
.drawer.open .scrim { opacity: 1; }
.drawer.open .panel { transform: none; }

/* поиск */
dialog.search { width: min(680px, 94vw); max-height: 80vh; padding: 0; border: 0; border-radius: 24px; background: var(--plate); color: var(--ink); box-shadow: var(--shadow-soft); }
dialog.search::backdrop { background: rgba(28, 22, 16, .45); backdrop-filter: blur(3px); }
.sbox { padding: 14px; }
.sbox .x { border: 0; background: var(--plate-2); border-radius: 8px; padding: 4px 8px; font: 500 12px var(--font); color: var(--ink-3); cursor: pointer; }
.shint { padding: 14px 6px 4px; color: var(--ink-2); font-size: 14.5px; list-style: none; }
.shint button { margin: 8px 6px 0 0; border: 0; padding: 7px 12px; border-radius: 999px; background: var(--plate-2); color: var(--ink); font: 500 14px var(--font); cursor: pointer; }
.sres { list-style: none; margin: 8px 0 0; padding: 0; max-height: 58vh; overflow: auto; }
.sres a { display: block; padding: 10px 12px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.sres a:hover, .sres a.sel { background: var(--plate-2); }
.sres .p { display: block; font: 600 11px var(--font-d); letter-spacing: .05em; text-transform: uppercase; color: var(--gold-ink); }
.sres .h { display: block; font-weight: 600; }
.sres .s { display: block; font-size: 14px; color: var(--ink-2); }
mark { background: rgba(224, 192, 123, .45); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; padding: 14px 12px 24px; }
  .side { display: none; }
  .menu-btn { display: inline-flex; }
  .tbtn.search { min-width: 0; }
  .tbtn .lbl, .tbtn.search kbd { display: none; }
  .btm {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; justify-content: space-around; align-items: stretch;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  }
  .btm a, .btm button { flex: 1; display: grid; justify-items: center; gap: 4px; padding: 4px 2px; border: 0; background: none; cursor: pointer; text-decoration: none; color: var(--ink-3); font: 600 9.5px/1.1 var(--font-d); letter-spacing: .04em; text-transform: uppercase; }
  .btm i { width: 24px; height: 24px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
  .btm [aria-current="page"] { color: var(--gold-ink); }
  .foot { padding-bottom: 110px; }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .brand span { display: none; }
  .sheet { border-radius: 24px; padding: 56px 18px 34px; }
  body.legal .sheet { padding-top: 28px; }
  .lead { font-size: 17.5px; }
  .pip { font-size: 14px; }
  .pip.tl { left: 12px; top: 12px; } .pip.br { right: 12px; bottom: 12px; }
  .hero { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; }
  .mascot { grid-template-columns: 84px 1fr; }
  .mascot img { width: 84px; }
  dl.gloss { grid-template-columns: 1fr; }
  dl.gloss dd { border-top: 0; padding-top: 0; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { text-align: left; }
  .cards img { width: 58px; }
  .scene { padding: 12px; border-radius: 22px; }
  .tbl .seat .nm { font-size: 10px; }
  .tbl .tally { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
  .top, .side, .btm, .drawer, .pager, .foot, .scene .bar { display: none !important; }
  .layout { display: block; padding: 0; }
  .sheet { box-shadow: none; padding: 0; }
}

/* сцены: раскладка */
.stage.instant, .stage.instant * { transition: none !important; animation: none !important; }
.scene.t .stage { max-width: 500px; }
.scene.ph { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 24px; align-items: center; padding: 22px; }
.scene.ph .stage { width: 100%; }
.scene.ph .ctl { align-self: center; }
.scene.ph .cap { font-size: 16.5px; min-height: 4.4em; }
.scene.ph .dots { justify-content: flex-start; margin-left: 58px; }
.scene.ph.static { grid-template-columns: 1fr; }
.hero .scene { margin: 0; background: none; box-shadow: none; padding: 0; }
.hero .scene .cap { font-size: 14.5px; min-height: 4.4em; }
@media (max-width: 760px) {
  .scene.ph { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .scene.ph .stage { width: 100%; }
  .scene.ph .phone { width: 280px; max-width: 100%; }
  .scene.ph .dots { justify-content: center; margin-left: 0; }
}

/* ---------- схема стола в телефоне ---------- */
.ptbl { position: absolute; inset: 0; background: #F3EDE4; }
.ptbl .pbtn { position: absolute; width: 40px; height: 28px; border-radius: 9px; background: #FBF8F3; display: grid; place-items: center; box-shadow: 0 3px 8px -3px rgba(84, 62, 34, .45), 0 1px 0 #fff inset; transition: box-shadow .3s; }
.ptbl .pbtn .mk, .ptbl .pbtn > i { width: 17px; height: 17px; color: #2E261F; }
.ptbl .pbtn.mnu { left: 10px; top: 42px; }
.ptbl .pbtn.snd { right: 10px; top: 42px; }
.ptbl .pbtn.mic { right: 10px; top: 76px; }
.ptbl .pbtn.mic .i-off { display: none; color: #D94040; }
.ptbl .pbtn.mic.moff .i-on { display: none; }
.ptbl .pbtn.mic.moff .i-off { display: block; }
.ptbl .pbtn.mic.mon .i-on { display: block; }
.ptbl .psc { position: absolute; left: 50%; top: 38px; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 8px; padding: 4px 10px 5px; border-radius: 10px; background: #FBF8F3; box-shadow: 0 3px 8px -3px rgba(84, 62, 34, .45); font: 700 15px/1 var(--font-d); }
.ptbl .psc span { text-align: center; }
.ptbl .psc small { display: block; font: 600 5.5px/1.4 var(--font-d); letter-spacing: .05em; color: #8A7E70; }
.ptbl .psc .th { color: #D23531; } .ptbl .psc .we { color: #2B5FA8; } .ptbl .psc .vi { font-size: 8px; color: #2E261F; }
.ptbl .ptr { position: absolute; left: 50%; top: 78px; transform: translateX(-50%); padding: 3px 8px; border-radius: 8px; background: #FBF8F3; font: 600 7px/1 var(--font-d); letter-spacing: .06em; display: flex; gap: 4px; align-items: center; box-shadow: 0 2px 6px -2px rgba(84, 62, 34, .45); }
.ptbl .ptr i { color: var(--red); font-style: normal; font-size: 10px; }
.ptbl .pfelt { position: absolute; left: 14%; right: 14%; top: 21%; bottom: 25%; border-radius: 999px; background: radial-gradient(120% 90% at 50% 40%, #3A3D44, #2A2C31 70%); box-shadow: 0 0 0 3px var(--rim), inset 0 0 30px rgba(0, 0, 0, .5); }
.ptbl .pseat { position: absolute; width: 74px; text-align: center; z-index: 2; }
.ptbl .pseat img { width: 46px; display: block; margin: 0 auto -4px; }
.ptbl .pseat .pn { display: inline-block; min-width: 60px; padding: 3px 6px 2px; border-radius: 7px; background: #FBF8F3; font: 600 8.5px/1.15 var(--font); color: #2E261F; box-shadow: 0 2px 5px rgba(0, 0, 0, .18); }
.ptbl .pseat .pn small { display: block; font-size: 5.5px; letter-spacing: .05em; color: #D23531; }
.ptbl .pseat.n .pn small { color: #2E8B57; }
.ptbl .pseat.n { left: calc(50% - 37px); top: 17%; }
.ptbl .pseat.w { left: 2px; top: 41%; }
.ptbl .pseat.e { right: 2px; top: 41%; }
.ptbl .spk { position: absolute; right: 6px; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: #BFBFBF; display: grid; place-items: center; box-shadow: 0 2px 5px rgba(0, 0, 0, .25); transition: background .2s, box-shadow .3s; }
.ptbl .spk .mk { width: 12px; height: 12px; color: #2E261F; }
.ptbl .spk .i-off { display: none; }
.ptbl .spk.muted .i-on { display: none; }
.ptbl .spk.muted .i-off { display: block; }
.ptbl .spk.talk { background: #fff; animation: talk 1.2s ease-in-out infinite; }
.ptbl .spk.muted.talk { animation: none; background: #BFBFBF; }
@keyframes talk { 50% { box-shadow: 0 0 0 4px rgba(255, 255, 255, .55), 0 2px 5px rgba(0, 0, 0, .25); } }
.ptbl .phand { position: absolute; left: 0; right: 0; bottom: 20px; height: 90px; }
.ptbl .phand img { position: absolute; bottom: 0; width: 17%; left: calc(7% + var(--i) * 8.6%); transform: rotate(calc((var(--i) - 4) * 4deg)); transform-origin: 50% 160%; border-radius: 4px; box-shadow: -2px 2px 6px rgba(0, 0, 0, .25); }
.ptbl .pme { position: absolute; right: 8px; bottom: 94px; text-align: center; width: 54px; z-index: 3; }
.ptbl .pme img { width: 40px; display: block; margin: 0 auto -3px; }
.ptbl .pme span { display: inline-block; padding: 2px 6px; border-radius: 6px; background: #8C6A3F; color: #fff; font: 600 7.5px var(--font); }
.ptbl .glow, .phone .glow { box-shadow: 0 0 0 3px var(--gold-hi), 0 0 18px 4px rgba(224, 192, 123, .9) !important; }
.phone .off { opacity: 0 !important; pointer-events: none; }
.phone .dlg, .phone .dim { transition: opacity .3s, transform .3s; }
.phone .dlg.off { transform: translateY(12px); }
.phone .dlg.card { padding-top: 46px; }
.phone .dlg .cav { position: absolute; left: 50%; top: -30px; width: 70px; transform: translateX(-50%); }
.phone .dlg .gb.blk { display: flex; width: 100%; margin: 6px 0; font-size: 8.5px; }
.phone .dlg .gb.sel { box-shadow: 0 0 0 2px var(--gold), 0 2px 6px rgba(84, 62, 34, .2); color: #2E261F; }
.phone .lnk { display: block; margin-top: 10px; font-size: 10.5px; color: #8A7E70; }
.phone .dlg.sys { background: rgba(246, 246, 246, .97); border-radius: 16px; padding: 14px 0 0; }
.phone .dlg.sys p { color: #111; padding: 0 14px; font-size: 11px; }
.phone .sysb { display: flex; border-top: 1px solid #d6d6d6; }
.phone .sysb span { flex: 1; padding: 10px 4px; font-size: 11.5px; color: #1677E6; }
.phone .sysb span + span { border-left: 1px solid #d6d6d6; font-weight: 600; }
.phone .afk { position: absolute; left: 0; right: 0; bottom: 0; height: 128px; background: rgba(40, 32, 24, .55); display: grid; place-content: center; gap: 8px; text-align: center; z-index: 5; transition: opacity .3s; }
.phone .afk p { margin: 0; color: #fff; font-size: 9.5px; }
.phone .afk .gb { animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.035); } }

/* ---------- схемы профиля ---------- */
.phone .prof { position: absolute; inset: 0; background: #F3EDE4; }
.phone .pav { position: absolute; left: 50%; top: 78px; width: 86px; height: 86px; transform: translateX(-50%); }
.phone .pav img.old, .phone .pav img.new { position: absolute; inset: 0; width: 100%; transition: opacity .5s; }
.phone .pav img.new { opacity: 0; }
.phone .pav.new img.new { opacity: 1; } .phone .pav.new img.old { opacity: 0; }
.phone .pav .pen { position: absolute; right: -2px; bottom: 2px; width: 26px; height: 26px; border-radius: 50%; overflow: hidden; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.phone .pav .pen img { width: 100%; display: block; }
.phone .pnick { position: absolute; left: 30px; right: 30px; top: 172px; height: 30px; border-radius: 10px; background: #FBF8F3; display: grid; place-items: center; font-size: 12px; color: #6C5F52; box-shadow: inset 0 1px 3px rgba(84, 62, 34, .15); }
.phone .pid { position: absolute; left: 50%; top: 210px; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; border: 1px solid #D8C08A; color: #8C6A2B; font: 600 9px var(--font-d); background: #FFF8EA; }
.phone .acc { padding: 10px 12px 12px; text-align: center; }
.phone .acc .h { font: 600 8.5px var(--font-d); letter-spacing: .1em; color: #8A7E70; margin-bottom: 6px; }
.phone .acc .hint { font-size: 9.5px; color: #6C5F52; margin: 0 0 8px; line-height: 1.35; }
.phone .sbt { display: flex; align-items: center; justify-content: center; gap: 6px; height: 30px; margin: 6px 0; border-radius: 9px; font: 600 10.5px var(--font); color: #fff; transition: box-shadow .3s; }
.phone .sbt img { width: 14px; height: 14px; filter: brightness(10); }
.phone .sbt.apple { background: #111; }
.phone .sbt.tgb { background: #2AABEE; }
.phone .acc .linked { display: none; justify-content: space-between; align-items: center; padding: 8px 4px; font-size: 11px; }
.phone .acc .linked span { display: flex; align-items: center; gap: 6px; }
.phone .acc .linked .tgi { width: 14px; height: 14px; filter: invert(48%) sepia(91%) saturate(1500%) hue-rotate(170deg); }
.phone .acc .linked b { color: var(--green); font-weight: 600; }
.phone .acc.done .hint, .phone .acc.done .sbt { display: none; }
.phone .acc.done .linked { display: flex; }
.phone .tgapp { position: absolute; inset: 0; z-index: 25; background: #EFF3F7; transition: opacity .35s; }
.phone .tgtop { height: 70px; padding-top: 38px; text-align: center; background: #2AABEE; color: #fff; font: 600 13px var(--font); }
.phone .tgcard { margin: 60px 18px 0; padding: 18px 14px; border-radius: 16px; background: #fff; text-align: center; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .3); }
.phone .tgcard img { width: 54px; border-radius: 13px; }
.phone .tgcard b { display: block; margin: 6px 0 2px; font-size: 14px; }
.phone .tgcard p { font-size: 11px; color: #555; margin: 0 0 12px; }
.phone .tgok { display: block; padding: 10px; border-radius: 10px; background: #2AABEE; color: #fff; font: 600 12px var(--font); }
.phone .agrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.phone .agrid img { width: 100%; border-radius: 10px; background: #EFE7DA; }
.phone .agrid .own { display: grid; place-content: center; border-radius: 10px; background: #F4E2B6; color: #5A4632; font: 700 8.5px var(--font-d); transition: box-shadow .3s; }
.phone .agrid .own b { font-size: 20px; line-height: 1; }
.phone .ex, .phone .vr { display: flex; gap: 6px; justify-content: center; margin: 4px 0 10px; }
.phone .ex img, .phone .vr img { width: 30%; border-radius: 10px; background: #EFE7DA; }
.phone .vr img { border-bottom: 3px solid transparent; transition: border-color .3s; }
.phone .vr img.sel { border-bottom-color: #C9A24B; }
.phone .cn { width: 10px; height: 10px; vertical-align: -1px; }
.phone .camv { position: relative; width: 70%; margin: 6px auto 8px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.phone .camv img { width: 100%; display: block; }
.phone .camv .oval { position: absolute; left: 24%; right: 24%; top: 12%; bottom: 18%; border: 2px solid rgba(255, 255, 255, .85); border-radius: 50%; }
.phone .camv.dimmed img { filter: brightness(.45); }
.phone .camv .wdots { position: absolute; inset: 0; display: flex; gap: 6px; align-items: center; justify-content: center; }
.phone .camv .wdots b { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: dot 1.2s infinite; }
.phone .camv .wdots b:nth-child(2) { animation-delay: .2s; } .phone .camv .wdots b:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.phone .swap .b { display: none; }
.phone .swap.b2 .a { display: none; } .phone .swap.b2 .b { display: inline; }
.phone .swap.b2 { color: #fff; background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); }
.phone em { font-style: normal; }
.phone .balchip { position: absolute; left: 50%; top: 60px; transform: translateX(-50%); z-index: 22; display: flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 999px; background: #FBF8F3; font: 700 13px var(--font-d); box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .4); transition: box-shadow .3s; }
.phone .balchip img { width: 16px; height: 16px; }
.phone .balrow { position: absolute; left: 12px; right: 12px; top: 74px; display: flex; align-items: center; gap: 10px; }
.phone .balrow .coins b { font: 700 18px var(--font-d); }
.phone .balrow u { margin-left: auto; font-size: 10px; color: #8C6A2B; }
.phone .shopfill { position: absolute; left: 12px; right: 12px; top: 116px; bottom: 70px; border-radius: 16px; background: repeating-linear-gradient(180deg, #FBF8F3 0 60px, transparent 60px 70px); opacity: .8; }
.phone .adrow { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 12px; background: #F3EDE4; text-align: left; margin-bottom: 8px; }
.phone .adrow > img { width: 28px; height: 28px; }
.phone .adrow .t { flex: 1; }
.phone .adrow .t b { display: block; font: 600 8.5px var(--font-d); letter-spacing: .04em; }
.phone .adrow .t small { display: block; font-size: 8.5px; color: #8A7E70; margin-top: 2px; }
.phone .adrow .gb { padding: 8px 10px; font-size: 10px; }
.phone .video { position: absolute; inset: 0; z-index: 26; background: #111; color: #fff; display: grid; place-content: center; justify-items: center; gap: 10px; transition: opacity .35s; }
.phone .video span { font: 600 13px var(--font); opacity: .9; }
.phone .video i { width: 46px; height: 46px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: spin 1s linear infinite; }
.phone .video small { font-size: 10px; opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }
.phone .toast { z-index: 28; white-space: normal; width: max-content; max-width: 86%; }

.phone .dim { z-index: 18; }
.phone .dlg { z-index: 19; }
.phone .afk { z-index: 17; }
.phone .dlg .gb { white-space: nowrap; }
.phone .dlg .bt .gb { font-size: 8px; padding: 9px 8px; }
.phone .dlg .gb small { font-size: 7.5px; }
.phone .gb:has(small) { flex-direction: column; gap: 1px; }

/* ---------- главная студии ---------- */
body.studio { background: var(--bg); }
.studio-brand b { font-size: 20px; }
.sband { background: radial-gradient(900px 500px at 80% 0%, #3E73AE, transparent 60%), linear-gradient(160deg, #24497A, #142B49); color: #F6EFE3; padding: 56px 20px 64px; }
.sin { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 300px; grid-template-areas: "t t s" "c c s"; gap: 28px 40px; align-items: start; }
.stext { grid-area: t; }
.sband h1 { color: #fff; font-size: clamp(34px, 5vw, 58px); margin: 0 0 14px; max-width: 16ch; }
.sband .lead { color: #D7E3F1; margin: 0; }
.gamecard { grid-area: c; background: var(--plate); color: var(--ink); border-radius: 28px; padding: 22px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); max-width: 640px; }
.gc-head { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.gc-head img { border-radius: 20px; box-shadow: 0 8px 18px -8px rgba(20, 40, 80, .6); }
.gc-head h2 { margin: 0; font-size: 30px; }
.gc-head p { margin: 2px 0 0; color: var(--ink-2); }
.gc-links { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gc-links a { display: inline-block; padding: 8px 13px; border-radius: 999px; background: var(--plate-2); color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.gc-links a:hover { box-shadow: 0 0 0 2px var(--gold); }
.gc-shot { grid-area: s; margin: 0; }
.gc-shot img { width: 100%; border-radius: 34px; box-shadow: 0 0 0 9px #111, 0 40px 60px -30px rgba(0, 0, 0, .8); }
.studio .foot { padding-bottom: 40px; }
.layout.one { grid-template-columns: minmax(0, 1fr); max-width: 940px; }
.legal .doc h1 { font-size: clamp(28px, 4vw, 40px); }
.legal .meta { color: var(--ink-2); font-size: 15px; }
.legal .lsec h2 { font-size: 21px; margin-top: 36px; }
@media (max-width: 900px) {
  .sin { grid-template-columns: 1fr; grid-template-areas: "t" "c" "s"; }
  .gc-shot { max-width: 260px; margin: 0 auto; }
}
@media (max-width: 1080px) { .studio .btm, .legal .btm { display: none; } .studio .foot, .legal .foot { padding-bottom: 40px; } }
@media (max-width: 760px) {
  .probs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .probs a { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; font-size: 14px; }
  .probs .ic { width: 32px; height: 32px; border-radius: 10px; }
}

/* троп и перераздача на столе */
.tbl .trump .s.k { color: #2E261F; }
.tbl .tropb { position: absolute; left: 3%; top: 11%; z-index: 5; padding: 4px 9px; border-radius: 8px; background: #2B5FA8; color: #fff; font: 700 10px/1 var(--font-d); letter-spacing: .08em; opacity: 0; transform: scale(.7); transition: opacity .3s, transform .3s; }
.tbl .tropb.on { opacity: 1; transform: none; }
.tbl .hand { position: absolute; left: 8%; right: 8%; bottom: 22%; height: 24%; z-index: 6; border-radius: 14px; transition: box-shadow .3s; }
.tbl .hand img { position: absolute; bottom: 0; width: 15%; left: calc(var(--i) * (85% / (var(--n) - 1))); transform: rotate(calc((var(--i) - (var(--n) - 1) / 2) * 2.5deg)); transform-origin: 50% 200%; border-radius: 5px; box-shadow: -2px 2px 6px rgba(0, 0, 0, .35); animation: dealin .4s both; animation-delay: calc(var(--i) * 40ms); }
@keyframes dealin { from { opacity: 0; transform: translateY(-40px); } }
.tbl .rdb { position: absolute; left: 50%; bottom: 40%; transform: translateX(-50%); z-index: 9; padding: 9px 16px; border-radius: 999px; color: #fff; font: 600 11px/1 var(--font-d); letter-spacing: .05em; background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); box-shadow: 0 3px 0 rgba(120, 85, 30, .35); transition: opacity .3s; }
.tbl .off { opacity: 0 !important; pointer-events: none; }
.tbl .glow { box-shadow: 0 0 0 3px var(--gold-hi), 0 0 22px 6px rgba(224, 192, 123, .85) !important; }

/* 404 */
.doc ul.nf { list-style: none; padding: 0; margin: 22px 0 8px; display: grid; gap: 10px; max-width: 440px; }
.doc ul.nf li { margin: 0; padding: 0; }
.doc ul.nf li::before { content: none; }
.doc ul.nf a { display: block; padding: 14px 18px; border-radius: var(--r-s); background: var(--plate-2); color: var(--ink); text-decoration: none; font-weight: 600; box-shadow: var(--shadow-up); }
.doc ul.nf a:hover, .doc ul.nf a:focus-visible { box-shadow: 0 0 0 2px var(--gold); }
.layout > * { min-width: 0; }
@media (max-width: 480px) {
  .ui { white-space: normal; max-width: 100%; border-radius: .8em; }
  ol.steps { grid-template-columns: minmax(0, 1fr); }
}
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
@media (max-width: 480px) {
  h1 { font-size: clamp(24px, 7.6vw, 30px); }
  .legal .doc h1 { font-size: clamp(19px, 5.4vw, 28px); }
  .hero h1 { font-size: clamp(28px, 8.6vw, 34px); }
}

/* В Unbounded нет казахских и кыргызских букв (ә ғ қ ң ө ұ ү һ) — для kk и ky заголовки и надписи набираем Golos Text */
:lang(kk), :lang(ky) { --font-d: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
:lang(kk) h1, :lang(ky) h1, :lang(kk) h2, :lang(ky) h2 { letter-spacing: -.015em; }
