/* nunito-cyrillic-ext-600-normal */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/nunito-cyrillic-ext-600-normal.woff2) format('woff2'), url(/fonts/nunito-cyrillic-ext-600-normal.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* nunito-cyrillic-600-normal */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/nunito-cyrillic-600-normal.woff2) format('woff2'), url(/fonts/nunito-cyrillic-600-normal.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* nunito-vietnamese-600-normal */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/nunito-vietnamese-600-normal.woff2) format('woff2'), url(/fonts/nunito-vietnamese-600-normal.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* nunito-latin-ext-600-normal */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fonts/nunito-latin-ext-600-normal.woff2) format('woff2'), url(/fonts/nunito-latin-ext-600-normal.woff) format('woff');
  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;
}

/* nunito-latin-600-normal */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("../fonts/nunito-latin-600-normal.woff2") format('woff2'), url(/fonts/nunito-latin-600-normal.woff) format('woff');
  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;
}
/* nunito-cyrillic-ext-700-normal */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/fonts/nunito-cyrillic-ext-700-normal.woff2) format('woff2'), url(/fonts/nunito-cyrillic-ext-700-normal.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* nunito-cyrillic-700-normal */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/nunito-cyrillic-700-normal.woff2") format('woff2'), url(/fonts/nunito-cyrillic-700-normal.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* nunito-vietnamese-700-normal */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/fonts/nunito-vietnamese-700-normal.woff2) format('woff2'), url(/fonts/nunito-vietnamese-700-normal.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* nunito-latin-ext-700-normal */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/fonts/nunito-latin-ext-700-normal.woff2) format('woff2'), url(/fonts/nunito-latin-ext-700-normal.woff) format('woff');
  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;
}

/* nunito-latin-700-normal */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url("../fonts/nunito-latin-700-normal.woff2") format('woff2'), url(/fonts/nunito-latin-700-normal.woff) format('woff');
  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;
}
/* nunito-cyrillic-ext-800-normal */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url(/fonts/nunito-cyrillic-ext-800-normal.woff2) format('woff2'), url(/fonts/nunito-cyrillic-ext-800-normal.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* nunito-cyrillic-800-normal */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url(/fonts/nunito-cyrillic-800-normal.woff2) format('woff2'), url(/fonts/nunito-cyrillic-800-normal.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* nunito-vietnamese-800-normal */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url(/fonts/nunito-vietnamese-800-normal.woff2) format('woff2'), url(/fonts/nunito-vietnamese-800-normal.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* nunito-latin-ext-800-normal */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url(/fonts/nunito-latin-ext-800-normal.woff2) format('woff2'), url(/fonts/nunito-latin-ext-800-normal.woff) format('woff');
  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;
}

/* nunito-latin-800-normal */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url("../fonts/nunito-latin-800-normal.woff2") format('woff2'), url(/fonts/nunito-latin-800-normal.woff) format('woff');
  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;
}
/* nunito-cyrillic-ext-900-normal */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 900;
  src: url(/fonts/nunito-cyrillic-ext-900-normal.woff2) format('woff2'), url(/fonts/nunito-cyrillic-ext-900-normal.woff) format('woff');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* nunito-cyrillic-900-normal */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 900;
  src: url("../fonts/nunito-cyrillic-900-normal.woff2") format('woff2'), url(/fonts/nunito-cyrillic-900-normal.woff) format('woff');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* nunito-vietnamese-900-normal */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 900;
  src: url(/fonts/nunito-vietnamese-900-normal.woff2) format('woff2'), url(/fonts/nunito-vietnamese-900-normal.woff) format('woff');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* nunito-latin-ext-900-normal */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 900;
  src: url(/fonts/nunito-latin-ext-900-normal.woff2) format('woff2'), url(/fonts/nunito-latin-ext-900-normal.woff) format('woff');
  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;
}

/* nunito-latin-900-normal */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 900;
  src: url("../fonts/nunito-latin-900-normal.woff2") format('woff2'), url(/fonts/nunito-latin-900-normal.woff) format('woff');
  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:'Playfair Display';font-style:normal;font-weight:800;font-display:swap;src:url("../fonts/playfair-display-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+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:'Playfair Display';font-style:normal;font-weight:800;font-display:swap;src:url("../fonts/playfair-display-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:'Lobster';font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/lobster-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+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:'Lobster';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/lobster-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1EFF,U+20A0-20AB,U+20AD-20C0,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Lobster';font-style:normal;font-weight:400;font-display:swap;src:url("../fonts/lobster-cyrillic-400-normal.woff2") format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
:root {
  --night: #0b1a33; --night2: #13294d; --cream: #fff7e8; --cream2: #fdeccd; --ink: #2a1a08; --muted: #8a6f4d;
  --gold: #ffc93c; --gold2: #f5a623; --gold3: #c47f0a; --red: #e0313b; --red2: #a61e28; --green: #2fbf8f; --green2: #16825f;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  font-family: Nunito, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--ink);
  background: radial-gradient(120% 70% at 50% 0%, #1d3a66 0%, var(--night2) 40%, var(--night) 100%);
  user-select: none; -webkit-user-select: none;
}
button { font: inherit; border: 0; cursor: pointer; }
b { font-weight: 900; }

/* ── sky ───────────────────────────────────────────── */
#sky { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
#snow { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
.moon { position: absolute; top: 34px; right: 26px; width: 38px; height: 38px; border-radius: 50%; box-shadow: -9px 4px 0 0 #fff1c4; transform: rotate(-20deg); opacity: .9; }
.tw { position: absolute; width: 2px; height: 2px; background: #fff; border-radius: 50%; animation: tw 3s ease-in-out infinite; }
@keyframes tw { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.hills { position: absolute; left: -10%; right: -10%; bottom: 0; height: 40%; background: radial-gradient(60% 50% at 25% 100%, #1d3557 60%, transparent 61%), radial-gradient(60% 45% at 80% 100%, #172c4a 60%, transparent 61%); }

/* ── layout ────────────────────────────────────────── */
#app { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; }
.top { position: absolute; top: 10px; left: 12px; right: 12px; display: flex; justify-content: space-between; z-index: 5; }
.chip { background: rgba(255,255,255,.12); color: #fff; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 800; backdrop-filter: blur(6px); }
.chip.round { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; font-size: 16px; }
.chips { display: flex; gap: 8px; }
.stage { position: relative; flex: 0 0 auto; height: 50vh; transition: height .7s cubic-bezier(.3,0,.2,1); display: flex; align-items: flex-end; justify-content: center; }
.mode-full .stage { height: 66vh; padding-top: 96px; }
.mode-home .stage { height: 52vh; padding-top: 128px; }
.stage .xtree { height: 100%; width: 100%; max-width: 520px; overflow: visible; }
.panel {
  position: relative; flex: 1 1 auto; background: linear-gradient(180deg, var(--cream) 0%, var(--cream2) 100%); border-radius: 28px 28px 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,.35); padding: 22px 18px calc(18px + var(--safe-b)); overflow-y: auto; -webkit-overflow-scrolling: touch; margin-top: -8px;
}
.panel::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 16px; background: radial-gradient(14px 10px at 14px 10px, #fff 98%, transparent) 0 0 / 28px 16px repeat-x; opacity: .95; }
.inner { max-width: 460px; margin: 0 auto; }
.fade-in { animation: fadeIn .45s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── type ──────────────────────────────────────────── */
h1 { font-size: 27px; line-height: 1.15; margin: 0 0 8px; text-align: center; font-weight: 800; }
h1 b { color: var(--red); }
h2 { font-size: 22px; line-height: 1.2; margin: 6px 0 14px; text-align: center; font-weight: 900; }
p.sub { text-align: center; color: var(--muted); margin: 0 0 18px; font-size: 15px; line-height: 1.4; font-weight: 600; }
.small { text-align: center; color: var(--muted); font-size: 13px; font-weight: 700; margin: 10px 0 0; }
.hero-title { position: absolute; top: 52px; left: 0; right: 0; text-align: center; color: #fff; font-size: 26px; line-height: 1.15; font-weight: 800; text-shadow: 0 3px 0 rgba(0,0,0,.25); z-index: 4; padding: 0 20px; }
.hero-title b { color: var(--gold); }

/* ── buttons ───────────────────────────────────────── */
.btn { display: block; width: 100%; padding: 16px 18px; border-radius: 18px; font-size: 18px; font-weight: 900; color: #3a2400;
  background: linear-gradient(180deg, #ffd85a, var(--gold2)); box-shadow: 0 5px 0 var(--gold3), 0 10px 20px rgba(196,127,10,.3); transition: transform .08s, box-shadow .08s; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--gold3); }
.btn.green { color: #fff; background: linear-gradient(180deg, #3fd6a2, var(--green)); box-shadow: 0 5px 0 var(--green2), 0 10px 20px rgba(22,130,95,.3); }
.btn.green:active { box-shadow: 0 1px 0 var(--green2); }
.btn.red { color: #fff; background: linear-gradient(180deg, #f2545d, var(--red)); box-shadow: 0 5px 0 var(--red2); }
.btn:disabled { opacity: .55; }
a.btn { text-align: center; text-decoration: none; box-sizing: border-box; }
.btn.tg { margin-top: 12px; color: #fff; display: flex; align-items: center; justify-content: center; gap: 9px;
  background: linear-gradient(180deg, #3cb4ec, #229ed9); box-shadow: 0 5px 0 #1a7fb0, 0 10px 20px rgba(34,158,217,.28); }
.btn.tg:active { box-shadow: 0 1px 0 #1a7fb0; }
.live-count { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 0 12px; color: var(--green2, #16825f); font-size: 14px; font-weight: 800; }
.live-count b { font-weight: 900; }
.live-count i { width: 8px; height: 8px; border-radius: 50%; background: #2fbf86; box-shadow: 0 0 0 0 rgba(47,191,134,.6); animation: livepulse 1.8s infinite; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 8px rgba(47,191,134,0); } 100% { box-shadow: 0 0 0 0 rgba(47,191,134,0); } }
.made-by { text-align: center; color: var(--muted); font-size: 12px; font-weight: 700; margin: 18px 0 0; opacity: .8; }
.made-by a { color: inherit; }
.row { display: flex; gap: 10px; margin-top: 12px; }
.row .btn { font-size: 15px; padding: 13px 10px; }
.link { display: block; margin: 16px auto 0; background: none; color: var(--muted); font-weight: 800; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* ── steps ─────────────────────────────────────────── */
.steps { margin: 20px 0 4px; display: grid; gap: 12px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step i { flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; font-style: normal; font-weight: 900; display: grid; place-items: center; }
.step b { display: block; font-size: 15px; }
.step span { color: var(--muted); font-size: 14px; font-weight: 600; }

/* ── inputs ────────────────────────────────────────── */
label.lbl { display: block; font-weight: 900; margin: 4px 0 8px; }
.input, textarea.input { width: 100%; padding: 15px 16px; font: inherit; font-size: 18px; font-weight: 800; border-radius: 16px; border: 2px solid #f0d9ae; background: #fff; color: var(--ink); outline: none; user-select: text; -webkit-user-select: text; }
.input:focus { border-color: var(--gold2); }
textarea.input { font-size: 16px; font-weight: 700; resize: none; height: 92px; }
.counter { text-align: right; font-size: 12px; color: var(--muted); font-weight: 700; margin: 4px 2px 12px; }

/* ── ribbon + question ─────────────────────────────── */
.ribbon { display: table; margin: -6px auto 12px; background: linear-gradient(180deg, #f04a52, var(--red)); color: #fff6e5; font-weight: 900; font-size: 14px; letter-spacing: .08em; padding: 8px 22px; border-radius: 8px; box-shadow: 0 4px 0 var(--red2); position: relative; z-index: 2; }
.qtext { font-size: 21px; font-weight: 900; text-align: center; line-height: 1.25; margin: 4px 4px 16px; min-height: 52px; }
.qtext em { font-style: normal; color: var(--red); }
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.opts.n3 > :last-child { grid-column: 1 / -1; }
.opt { background: #fff; border: 2px solid #f0dcb5; border-radius: 18px; padding: 12px 8px 12px; text-align: center; box-shadow: 0 4px 0 #eed3a3; transition: transform .15s, background .2s, border-color .2s, box-shadow .15s; color: var(--ink); min-height: 88px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.opt .em { font-size: 30px; line-height: 1; }
.opt .tx { font-size: 15px; font-weight: 800; line-height: 1.2; }
.opt.only .em { font-size: 42px; }
.opt:active { transform: translateY(3px); box-shadow: 0 1px 0 #eed3a3; }
.opt.is-picked { transform: translateY(-4px) scale(1.03); border-color: var(--gold2); box-shadow: 0 8px 0 #e8b85d, 0 0 0 4px rgba(255,201,60,.35); }
.opt.is-right { background: #dff7ea; border-color: var(--green); box-shadow: 0 4px 0 #9fdcc2; }
.opt.is-wrong { background: #ffe3e3; border-color: var(--red); box-shadow: 0 4px 0 #f2a9ad; animation: shake .45s; }
.opt.is-dim { opacity: .45; }
.opts.locked .opt { pointer-events: none; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.verdict { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%) scale(.6); background: #fff; padding: 12px 22px; border-radius: 999px; font-size: 22px; font-weight: 900; box-shadow: 0 10px 30px rgba(0,0,0,.3); opacity: 0; z-index: 6; pointer-events: none; white-space: nowrap; }
.verdict.show { animation: verdict 1s ease both; }
.verdict.ok { color: var(--green2); } .verdict.no { color: var(--red); }
@keyframes verdict { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 20% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 35% { transform: translate(-50%, -50%) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -70%) scale(1); } }
.progress { display: flex; gap: 5px; justify-content: center; margin: 0 0 12px; }
.progress span { width: 18px; height: 6px; border-radius: 3px; background: #f0dcb5; }
.progress span.ok { background: var(--green); } .progress span.no { background: var(--red); } .progress span.cur { background: var(--gold2); }

/* ── result ────────────────────────────────────────── */
.score-big { text-align: center; font-size: 15px; font-weight: 900; color: var(--muted); margin: -6px 0 16px; }
.wish-done { text-align: center; background: #fff; border: 2px dashed #f0c46b; border-radius: 16px; padding: 12px; font-weight: 800; margin: 0 0 14px; }
.cta-box { background: linear-gradient(180deg, #1f3c66, #13294d); color: #fff; border-radius: 20px; padding: 16px; margin: 18px 0 6px; }
.cta-box p { margin: 0 0 12px; text-align: center; font-weight: 800; line-height: 1.35; }

/* ── board ─────────────────────────────────────────── */
.board-title { font-weight: 900; font-size: 18px; margin: 22px 0 10px; }
.board { display: grid; gap: 8px; }
.prow { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 10px 14px; border: 2px solid #f3e2c2; }
.prow.you { border-color: var(--gold2); background: #fffaf0; }
.prow .rk { flex: 0 0 28px; font-weight: 900; color: var(--muted); text-align: center; }
.prow .nm { flex: 1; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .sc { font-weight: 900; color: var(--green2); }
.prow .wi { font-size: 18px; }
.empty { text-align: center; color: var(--muted); font-weight: 700; padding: 14px; background: #fff; border-radius: 16px; border: 2px dashed #f0d9ae; }
.top-holder { text-align: center; font-weight: 700; margin: -6px 0 16px; color: var(--ink); }

/* ── title ribbon over the tree ────────────────────── */
.tree-title { position: absolute; top: 54px; left: 50%; transform: translateX(-50%); background: linear-gradient(180deg, #f04a52, var(--red)); color: #fff6e5; font-weight: 900; font-size: 18px; padding: 9px 22px; border-radius: 10px; box-shadow: 0 5px 0 var(--red2), 0 10px 24px rgba(0,0,0,.3); white-space: nowrap; max-width: 90%; overflow: hidden; text-overflow: ellipsis; z-index: 4; }

/* ── modal + toast ─────────────────────────────────── */
.modal { position: fixed; inset: 0; background: rgba(5,12,26,.6); display: flex; align-items: flex-end; justify-content: center; z-index: 20; animation: fadeIn .2s ease both; }
.sheet { background: var(--cream); width: 100%; max-width: 480px; border-radius: 26px 26px 0 0; padding: 22px 18px calc(22px + var(--safe-b)); animation: up .3s cubic-bezier(.3,0,.2,1) both; }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
.sheet .big-ball { font-size: 44px; text-align: center; }
.sheet .wish { background: #fff; border-radius: 16px; padding: 14px; font-size: 17px; font-weight: 700; text-align: center; margin: 8px 0 14px; border: 2px solid #f3e2c2; user-select: text; }
.toast { position: fixed; left: 0; right: 0; margin: 0 auto; width: max-content; bottom: calc(28px + var(--safe-b)); background: #13294d; color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 800; z-index: 30; box-shadow: 0 10px 30px rgba(0,0,0,.35); animation: fadeIn .25s ease both; max-width: 90%; text-align: center; }
.demo-tag { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11px; color: rgba(255,255,255,.55); font-weight: 800; z-index: 25; pointer-events: none; }
.loading { color: #fff; text-align: center; margin-top: 40vh; font-weight: 800; }

/* ── the tree (SVG) ────────────────────────────────── */
.bulb { transform-box: fill-box; transform-origin: center; }
.bulb.on { animation: twinkle 2.6s ease-in-out infinite; }
.bulb.pop { animation: pop .45s ease both, twinkle 2.6s ease-in-out .45s infinite; }
.bulb.fizz { animation: fizz .5s steps(4) both; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .7; } }
@keyframes pop { 0% { transform: scale(.3); } 60% { transform: scale(1.8); } 100% { transform: scale(1); } }
@keyframes fizz { 0% { opacity: 1; } 25% { opacity: .2; } 50% { opacity: 1; } 75% { opacity: .1; } 100% { opacity: 1; } }
.xstar-rays, .xstar-glow { opacity: 0; transition: opacity .8s; }
.xstar.on .xstar-rays { opacity: 1; animation: spin 16s linear infinite; transform-box: view-box; }
.xstar.on .xstar-glow { opacity: 1; animation: breathe 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.xstar.on .xstar-body { filter: url(#glow); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.xball { cursor: pointer; }
.xball-ring { animation: ring 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ring { 0%, 100% { opacity: .9; transform: scale(1); } 50% { opacity: .3; transform: scale(1.15); } }
.xtree.xpunch .xscene { animation: punch .5s ease; transform-box: view-box; transform-origin: 50% 50%; }
.xtree.xshake .xscene { animation: tshake .45s ease; }
@keyframes punch { 40% { transform: scale(1.04); } }
@keyframes tshake { 20% { transform: translate(-5px, 1px) rotate(-.6deg); } 40% { transform: translate(5px, -1px) rotate(.6deg); } 60% { transform: translate(-3px, 0); } 80% { transform: translate(3px, 0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-height: 640px) { .stage { height: 44vh; } .mode-full .stage { height: 58vh; padding-top: 84px; } .mode-home .stage { padding-top: 110px; } .qtext { font-size: 18px; min-height: 0; } .opt { min-height: 74px; } .opt .em { font-size: 24px; } }
.xstar, .xfx, .xdecos, .xtier { pointer-events: none; }

.eq { background: #fff; border: 2px solid #f3e2c2; border-radius: 16px; padding: 12px; margin: 0 0 10px; }
.eq-q { font-weight: 900; margin: 0 0 8px; line-height: 1.25; }
.eq-q em { font-style: normal; color: var(--red); }
.eq-o { display: flex; flex-wrap: wrap; gap: 6px; }
.chipo { background: var(--cream); border: 2px solid #f0dcb5; border-radius: 999px; padding: 7px 11px; font-weight: 800; font-size: 14px; color: var(--ink); }
.chipo.on { background: #dff7ea; border-color: var(--green); color: var(--green2); }

/* ── admin ─────────────────────────────────────────── */
.mode-admin #snow { display: none; }
.adm { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--cream); z-index: 5; }
.adm-top { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--night); color: #fff; font-size: 17px; }
.adm-live { margin-left: auto; color: #4dd4ac; font-size: 12px; font-weight: 800; }
.adm-tabs { display: flex; background: var(--night); padding: 0 8px 8px; gap: 6px; }
.adm-tabs button, .filters button { flex: 1; padding: 9px 6px; border-radius: 12px; background: rgba(255,255,255,.1); color: #fff; font-weight: 800; font-size: 14px; }
.adm-tabs button.on { background: var(--gold); color: #3a2400; }
.adm-body { flex: 1; overflow-y: auto; padding: 14px 14px calc(24px + var(--safe-b)); -webkit-overflow-scrolling: touch; user-select: text; -webkit-user-select: text; }
.adm-body h3, .adm-sheet h3 { margin: 20px 0 10px; font-size: 16px; font-weight: 900; }
.adm-load { text-align: center; color: var(--muted); font-weight: 800; padding: 30px; }
.adm-note { color: var(--muted); font-size: 13px; font-weight: 700; margin: 8px 0; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { background: #fff; border: 2px solid #f3e2c2; border-radius: 16px; padding: 12px; }
.kpi span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; }
.kpi b { display: block; font-size: 26px; font-weight: 900; line-height: 1.15; }
.kpi i { font-style: normal; color: var(--green2); font-size: 12px; font-weight: 800; }
.funnel { background: #fff; border: 2px solid #f3e2c2; border-radius: 16px; padding: 12px; }
.fr { display: grid; grid-template-columns: 1fr 70px 40px; gap: 8px; align-items: center; margin: 6px 0; font-size: 13px; font-weight: 700; }
.fr-bar { height: 10px; background: var(--cream2); border-radius: 5px; overflow: hidden; }
.fr-bar i { display: block; height: 100%; background: var(--green); border-radius: 5px; }
.fr b { text-align: right; }
.days { display: flex; gap: 4px; align-items: flex-end; height: 130px; background: #fff; border: 2px solid #f3e2c2; border-radius: 16px; padding: 10px 8px 6px; }
.day { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; }
.day-bars { flex: 1; width: 100%; display: flex; gap: 2px; align-items: flex-end; }
.day-bars i { flex: 1; border-radius: 3px 3px 0 0; min-height: 2px; }
.day span { font-size: 10px; color: var(--muted); font-weight: 800; margin-top: 3px; }
i.u { background: var(--gold2); } i.p { background: var(--green); }
.legend { display: flex; gap: 14px; font-size: 12px; font-weight: 800; color: var(--muted); margin: 6px 2px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.langs { display: flex; gap: 8px; flex-wrap: wrap; }
.langs span { background: #fff; border: 2px solid #f3e2c2; border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 14px; }
.filters { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 10px; padding-bottom: 2px; }
.filters button { flex: 0 0 auto; background: #fff; color: var(--ink); border: 2px solid #f0dcb5; }
.filters button.on { background: var(--night); color: #fff; border-color: var(--night); }
.ev { display: flex; gap: 10px; padding: 9px 4px; border-bottom: 1px solid #f0e2c6; cursor: pointer; }
.ev.new { animation: flash 1.6s ease; }
@keyframes flash { 0% { background: #fff1b8; } 100% { background: transparent; } }
.ev-i { flex: 0 0 24px; text-align: center; font-size: 16px; }
.ev-b { flex: 1; font-size: 14px; line-height: 1.35; font-weight: 600; overflow-wrap: anywhere; }
.ev-n { font-weight: 900; }
.ev-t { font-size: 12px; color: var(--muted); font-weight: 700; font-style: normal; }
.adm-sheet { max-height: 88vh; overflow-y: auto; }
.adm-feed { background: #fff; border-radius: 14px; padding: 0 8px; border: 2px solid #f3e2c2; }
.tag { font-style: normal; background: var(--red); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 6px; vertical-align: 2px; }

.xtree.xzoomable { touch-action: none; cursor: grab; }
.zoom { position: absolute; right: 10px; bottom: 14px; display: flex; flex-direction: column; gap: 8px; z-index: 6; }
.zoom button { width: 40px; height: 40px; border-radius: 12px; background: rgba(11,26,51,.72); color: #fff; font-size: 20px; font-weight: 900; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.18); }
.zoom .zr { display: none; }
.zoom.zoomed .zr { display: block; background: var(--gold2); color: #3a2400; }

/* once friends are on the tree, the owner's own decorations step back */
.xdecos { transition: opacity .6s; }
.xdecos.quiet { opacity: .5; }
.zoom-tip { position: absolute; right: 60px; bottom: 18px; max-width: 190px; background: rgba(11,26,51,.85); color: #fff; font-size: 13px; font-weight: 800; line-height: 1.3; padding: 9px 11px; border-radius: 12px; z-index: 6; animation: fadeIn .4s ease both; transition: opacity .6s; pointer-events: none; }
.zoom-tip.gone { opacity: 0; }
.wish.reply, .wish-done.reply { background: #eef9f3; border-color: #9fdcc2; }
.wish-done.reply { border-style: solid; text-align: left; }

/* ── reveal, challenge, sticky CTA ─────────────────── */
.challenge { background: #fff; border: 2px solid #9fdcc2; border-radius: 20px; padding: 14px; margin: 12px 0 6px; }
.challenge p { margin: 0 0 10px; text-align: center; font-weight: 800; line-height: 1.35; }
.reveal { background: #fff; border: 2px solid #f3e2c2; border-radius: 18px; padding: 4px 14px; margin: 14px 0 4px; }
.reveal summary { font-weight: 900; font-size: 17px; padding: 10px 0; cursor: pointer; list-style: none; }
.reveal summary::after { content: ' ▾'; color: var(--muted); }
.reveal[open] summary::after { content: ' ▴'; }
.rv { border-top: 1px solid #f0e2c6; padding: 10px 0; }
.rv-q { font-weight: 800; font-size: 14px; line-height: 1.3; }
.rv-q em { font-style: normal; color: var(--red); }
.rv-a { margin-top: 4px; font-size: 15px; color: var(--ink); }
.rv.ok .rv-a { color: var(--green2); }
.rv-y { font-size: 13px; color: var(--red); font-weight: 700; margin-top: 2px; }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(12px + var(--safe-b)); background: linear-gradient(180deg, rgba(253,236,205,0), var(--cream2) 35%); z-index: 8; }
.sticky-cta .btn { max-width: 460px; margin: 0 auto; }

/* admin: broadcast */
.bc-l { display: block; font-weight: 900; margin: 12px 0 6px; }
.bc-l span { color: var(--muted); font-weight: 700; }
.bc-t { width: 100%; font-size: 16px; resize: vertical; min-height: 92px; }
.bc-chk { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-weight: 800; }
.bc-chk input { width: 20px; height: 20px; }
.bc-item { background: #fff; border: 2px solid #f3e2c2; border-radius: 16px; padding: 12px; margin-bottom: 10px; }
.bc-top { font-size: 13px; color: var(--muted); }
.bc-top b { color: var(--ink); }
.bc-txt { margin: 6px 0; white-space: pre-wrap; line-height: 1.35; }
.bc-num { font-size: 13px; font-weight: 800; color: var(--green2); }
.bc-st.sending { color: #c57a00; } .bc-st.stopped { color: var(--red); } .bc-st.done { color: var(--green2); }
.filters.bc-aud { flex-wrap: wrap; }
.filters.bc-aud button { flex: 1 1 40%; }
.adm-link { background: #fff; border: 2px dashed #f0d9ad; border-radius: 12px; padding: 10px; font-size: 13px; word-break: break-all; text-align: center; margin: 4px 0 10px; user-select: all; -webkit-user-select: all; }
.reveal-gate { background: #fff; border: 2px solid #f3e2c2; border-radius: 20px; padding: 14px; margin: 12px 0 4px; }
.reveal-gate .small { margin: 8px 0 12px; text-align: center; }
.reveal-gate .small:last-child { margin-bottom: 0; }
/* admin as a web page */
body.web-admin { background: var(--cream, #fdf3e1); }
body.web-admin .adm { max-width: 1100px; margin: 0 auto; }
.adm-login { max-width: 360px; margin: 18vh auto 0; padding: 28px; background: #fff; border-radius: 22px; border: 2px solid #f3e2c2; text-align: center; }
.adm-login h1 { font-size: 24px; margin: 0 0 18px; }
.adm-login form { display: grid; gap: 12px; }
.adm-login .input { width: 100%; font-size: 17px; }
@media (min-width: 900px) { body.web-admin .kpis { grid-template-columns: repeat(4, 1fr); } }

/* Instagram story button: warm Instagram-ish gradient (no purple) */
.btn.insta { background: linear-gradient(90deg, #feda75, #fa7e1e 45%, #d62976); color: #fff; box-shadow: 0 6px 0 #b8205f; margin-top: 12px; }
.insta-steps { text-align: left; margin: 8px 0 14px; padding-left: 22px; line-height: 1.45; font-weight: 700; }
.insta-steps li { margin-bottom: 8px; }

/* secondary share options: quiet text links under the two main buttons */
.minor { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 14px 0 4px; color: var(--muted); }
.minor button { background: none; color: var(--muted); font-weight: 800; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; padding: 6px 2px; }
.open-tg { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; color: #fff; }
.open-tg .btn { max-width: 340px; text-decoration: none; display: block; }
@keyframes shake{0%,100%{transform:translateX(0)}25%{transform:translateX(-6px)}75%{transform:translateX(6px)}}
.input.shake{animation:shake .25s 2;border-color:#e5484d}

/* Instagram Story screen: the picture on top, a cream card below it (the card never covers the picture) */
.shot { position: fixed; inset: 0; z-index: 60; background: #0a1730; display: flex; flex-direction: column; opacity: 0; transition: opacity .22s ease; }
.shot.in { opacity: 1; }
.shot-pic { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: max(14px, env(safe-area-inset-top)) 18px 10px; }
.shot-pic img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.45); transform: scale(.96); transition: transform .3s ease; }
.shot.in .shot-pic img { transform: scale(1); }
.shot-card { color: var(--ink); width: 100%; max-width: 480px; margin: 0 auto; background: var(--cream, #fff7e8); border-radius: 26px 26px 0 0; padding: 18px 18px max(16px, env(safe-area-inset-bottom)); transform: translateY(30px); transition: transform .3s ease, opacity .16s ease; }
.shot.in .shot-card { transform: translateY(0); }
.shot-card.swap { opacity: 0; }
.shot-card .link { display: block; margin: 12px auto 0; }
.shot-note { text-align: center; font-weight: 800; margin: 0 0 12px; }
.shot-done { text-align: center; font-weight: 900; font-size: 18px; margin: 0 0 6px; }
.shot-card .insta-steps { margin: 6px 0 14px; }

/* a button that is waiting for the server shows a small spinner instead of just turning grey */
.btn:disabled { position: relative; color: transparent !important; }
.btn:disabled::after { content: ''; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
  border: 3px solid rgba(0,0,0,.18); border-top-color: rgba(0,0,0,.55); animation: btnspin .7s linear infinite; }
.btn.insta:disabled::after, .btn.green:disabled::after { border-color: rgba(255,255,255,.35); border-top-color: #fff; }
@keyframes btnspin { to { transform: rotate(360deg); } }

.shot-link { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; border: 2px dashed #f1d9a8; background: #fff; text-align: left; }
.shot-link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--ink); font-size: 14px; }
.shot-link b { flex: none; color: #1f9d6a; font-size: 14px; }

/* website players: connect Telegram to get messages about their tree */
.tg-connect { display: flex; align-items: center; gap: 11px; margin: 14px 0 4px; padding: 11px 11px 11px 12px; border-radius: 16px;
  background: #e8f5fc; border: 1.5px solid #cbe7f6; color: #134a66; font-size: 14px; font-weight: 800; line-height: 1.3; text-align: left; }
.tg-connect i { flex: 0 0 32px; height: 32px; border-radius: 50%; background: #229ed9; display: grid; place-items: center; }
.tg-connect span { flex: 1; }
.tg-connect button { flex: none; background: #229ed9; color: #fff; font-weight: 900; font-size: 14px; padding: 9px 14px; border-radius: 12px; box-shadow: 0 3px 0 #1a7fb0; }
.tg-connect button:active { transform: translateY(2px); box-shadow: 0 1px 0 #1a7fb0; }

/* ── tabriknoma maker ── */
.btn.ghost-card { margin-top: 12px; background: #fff; color: var(--ink); border: 2px solid #ecdcbc; box-shadow: 0 4px 0 #ecdcbc; }
.btn.ghost-card:active { box-shadow: 0 1px 0 #ecdcbc; }
/* "post to my channel" once three friends played: a soft golden glow, so the next step is obvious */
.btn.ghost-card.glow { border-color: #ffc93c; animation: chglow 2.2s ease-in-out infinite; }
@keyframes chglow { 0%, 100% { box-shadow: 0 4px 0 #ecdcbc, 0 0 0 0 rgba(255,201,60,.0); } 50% { box-shadow: 0 4px 0 #ecdcbc, 0 0 0 7px rgba(255,201,60,.35); } }
@media (prefers-reduced-motion: reduce) { .btn.ghost-card.glow { animation: none; } }
body.cm-open { overflow: hidden; }
.cardmk { position: fixed; inset: 0; z-index: 60; background: var(--cream, #fff7e8); overflow-y: auto; -webkit-overflow-scrolling: touch;
  opacity: 0; transform: translateY(16px); transition: opacity .2s, transform .2s; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.cardmk.in { opacity: 1; transform: none; }
.cm-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: #0b1a33; color: #fff; }
.cm-top b { font-family: Nunito, sans-serif; font-weight: 900; font-size: 18px; }
.cm-top span { width: 38px; }
.cm-top .chip { background: rgba(255,255,255,.12); color: #fff; }
.cm-prev { background: #0b1a33; padding: 6px 0 22px; display: flex; justify-content: center; }
.cm-prev canvas { width: min(62vw, 270px); height: auto; aspect-ratio: 9 / 16; border-radius: 18px; box-shadow: 0 14px 34px rgba(0,0,0,.45); }
.cm-body { max-width: 520px; margin: 0 auto; padding: 4px 18px 0; }
.cm-l { display: block; margin: 20px 0 9px; font-weight: 900; font-size: 15px; color: var(--ink); }
.cm-in { width: 100%; box-sizing: border-box; font: 800 17px Nunito, sans-serif; color: var(--ink); background: #fff; border: 2px solid #ecdcbc; border-radius: 14px; padding: 13px 14px; outline: none; }
.cm-in:focus { border-color: #e0a11a; }
.cm-own { margin-top: 10px; resize: none; font-weight: 700; }
.cm-designs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cm-dz { position: relative; padding: 0; background: none; border: 0; text-align: center; cursor: pointer; }
.cm-dz canvas { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 12px; display: block; border: 3px solid transparent; box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.cm-dz.on canvas { border-color: #e0a11a; }
.cm-dz span { display: block; margin-top: 5px; font-weight: 800; font-size: 12.5px; color: var(--muted); }
.cm-dz.on span { color: var(--ink); }
.cm-dz i { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(11,26,51,.78); color: #fff; font-style: normal; font-size: 14px; display: grid; place-items: center; }
.cm-dz i.pr { background: #e0a11a; color: #3a2400; font-size: 13px; }
.cm-dz.locked canvas { filter: saturate(.55) brightness(.8); }
.cm-wishes { display: grid; gap: 8px; }
.cm-w { text-align: left; background: #fff; border: 2px solid #ecdcbc; border-radius: 14px; padding: 11px 13px; font: 700 14.5px/1.35 Nunito, sans-serif; color: var(--ink); cursor: pointer; }
.cm-w.on { border-color: #e0a11a; background: #fff6df; }
.cm-w.own { font-weight: 900; }
.cm-fonts { display: flex; gap: 8px; }
.cm-f { flex: 1; background: #fff; border: 2px solid #ecdcbc; border-radius: 14px; padding: 11px 6px; font-size: 17px; color: var(--ink); cursor: pointer; }
.cm-f.on { border-color: #e0a11a; background: #fff6df; }
.cm-f.f-nunito { font-family: Nunito, sans-serif; font-weight: 900; }
.cm-f.f-classic { font-family: "Playfair Display", Georgia, serif; font-weight: 800; }
.cm-f.f-hand { font-family: Lobster, cursive; }
.cm-body > .btn { margin-top: 24px; }
.cm-prog { height: 10px; border-radius: 6px; background: #efe3cb; overflow: hidden; }
.cm-prog i { display: block; height: 100%; background: linear-gradient(90deg, #ffd85a, #e0a11a); }
.shake { animation: shake .4s; }

/* two buttons side by side under the main one (game page) */
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.row2 .btn { margin-top: 0; padding: 14px 8px; font-size: 16px; text-align: center; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 6px; }
.btn.insta + .btn { margin-top: 12px; }
a.btn { text-decoration: none; text-align: center; box-sizing: border-box; }

/* ── two million: the countdown chip and the one-time show ── */
.m2chip { position: fixed; top: calc(12px + var(--safe-t, 0px)); left: 0; right: 0; margin: 0 auto; width: -moz-fit-content; width: fit-content; z-index: 6; display: flex; align-items: center; gap: 7px; white-space: nowrap; pointer-events: none;
  background: rgba(11,26,51,.72); border: 1px solid rgba(255,201,60,.55); color: #fff; border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 800; backdrop-filter: blur(6px); animation: fadeIn .4s ease both; }
.m2chip b { color: var(--gold); font-weight: 900; font-variant-numeric: tabular-nums; display: inline-block; min-width: 2ch; text-align: center; }
.m2chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: livepulse 1.8s infinite; box-shadow: 0 0 0 0 rgba(255,201,60,.6); }
.m2chip.hot { border-color: var(--gold); box-shadow: 0 0 18px rgba(255,201,60,.45); }
.m2chip.hot b { animation: breathe .8s ease infinite; }
@media (max-width: 350px) { .m2chip { font-size: 11px; padding: 6px 9px; } }
.m2 { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #fff; text-align: center;
  background: radial-gradient(120% 80% at 50% 38%, #17386e 0%, #0b1a33 55%, #060f20 100%); opacity: 0; transition: opacity .45s ease; }
.m2.in { opacity: 1; } .m2.out { opacity: 0; pointer-events: none; }
.m2-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.m2-in { position: relative; z-index: 1; width: 100%; max-width: 460px; padding: calc(18px + var(--safe-t, 0px)) 20px calc(20px + var(--safe-b, 0px)); display: flex; flex-direction: column; align-items: center; }
.m2-k { font-size: 14px; font-weight: 800; letter-spacing: .04em; color: rgba(255,255,255,.7); margin-bottom: 4px; }
.m2-odo { display: flex; justify-content: center; align-items: flex-start; font-size: min(15vw, 68px); font-weight: 900; line-height: 1.1; height: 1.1em; overflow: hidden; font-variant-numeric: tabular-nums;
  transition: color .5s ease, text-shadow .5s ease, transform .5s cubic-bezier(.2,1.8,.4,1); }
.m2-odo .col { display: block; width: .62em; height: 1.1em; overflow: hidden; }
.m2-odo .col > span { display: block; will-change: transform; transition: transform 2.3s cubic-bezier(.12,.62,.12,1); }
.m2-odo .col > span > u { display: block; height: 1.1em; text-decoration: none; }
.m2-odo .gap { width: .26em; }
.m2-odo.done { color: var(--gold); text-shadow: 0 0 34px rgba(255,201,60,.65), 0 4px 0 var(--gold3); transform: scale(1.1); overflow: visible; }
.m2-odo.done .col { overflow: visible; text-align: center; }
.m2-tree { height: min(36vh, 300px); width: 100%; margin: 10px 0 2px; }
.m2-tree .xtree { height: 100%; width: 100%; overflow: visible; }
.m2-l1, .m2-l2, .m2-btns { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.m2-l1.on, .m2-l2.on, .m2-btns.on { opacity: 1; transform: none; }
.m2-l1 { font-size: 21px; font-weight: 900; margin-top: 4px; line-height: 1.25; }
@media (max-width: 340px) { .m2-l1 { font-size: 19px; } }
.m2-l2 { font-size: 15px; font-weight: 700; color: rgba(255,255,255,.75); margin-top: 6px; }
.m2-btns { margin-top: 18px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.m2-btns .btn { width: 100%; max-width: 320px; }
.m2-btns .m2x { background: none; border: 0; color: rgba(255,255,255,.75); font: inherit; font-weight: 800; font-size: 15px; padding: 8px 14px; }
.tree-crown { position: absolute; top: 100px; left: 50%; transform: translateX(-50%); z-index: 4; background: linear-gradient(180deg, #ffd85a, var(--gold2)); color: #3a2400; border-radius: 999px; padding: 3px 11px; font-size: 12px; font-weight: 900; white-space: nowrap; box-shadow: 0 3px 0 var(--gold3), 0 6px 14px rgba(0,0,0,.25); }
@media (prefers-reduced-motion: reduce) { .m2-odo .col > span { transition-duration: .01s; } }

/* ── Viloyatlar archasi: the regions' race ─────────── */
.rg-card { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; margin: 16px 0 4px; padding: 16px 14px 14px; text-align: left; color: #fff; border-radius: 20px; overflow: hidden;
  background: linear-gradient(135deg, #1f3c66 0%, #13294d 70%); box-shadow: 0 5px 0 #0b1a33, 0 12px 24px rgba(11,26,51,.28); transition: transform .08s, box-shadow .08s; }
.rg-card:active { transform: translateY(4px); box-shadow: 0 1px 0 #0b1a33; }
/* a string of lights along the top edge, twinkling one after another */
.rg-lights { position: absolute; top: 4px; left: 10px; right: 10px; height: 8px;
  background: radial-gradient(circle, #ffd85a 0 2.5px, transparent 3.5px) 0 0 / 22px 8px repeat-x, radial-gradient(circle, #ff6b6b 0 2.5px, transparent 3.5px) 11px 0 / 22px 8px repeat-x;
  animation: rglights 1.6s steps(2) infinite; opacity: .9; }
@keyframes rglights { 50% { filter: hue-rotate(120deg) brightness(1.3); } }
.rg-ic { flex: 0 0 auto; font-size: 30px; line-height: 1; filter: drop-shadow(0 2px 6px rgba(255,201,60,.45)); }
.rg-tx { flex: 1; min-width: 0; }
.rg-tx b { display: block; font-size: 17px; font-weight: 900; }
.rg-tx small { display: block; margin-top: 3px; color: #c9d6ee; font-size: 13px; font-weight: 700; line-height: 1.3; }
.rg-tx small b { display: inline; font-size: inherit; color: var(--gold); }
.rg-go { font-size: 28px; font-weight: 900; color: var(--gold); }
.rg-card.plus .rg-tx small { color: #fff1c4; }

.rg-total { display: flex; flex-direction: column; align-items: center; margin: 0 0 2px; }
.rg-num { font-size: 46px; line-height: 1; font-weight: 900; letter-spacing: -.01em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffd85a, var(--gold3)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 0 rgba(196,127,10,.25)); }
.rg-unit { margin-top: 4px; font-size: 14px; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.rg-how { margin: 8px 6px 14px; }

.rg-me { background: #fff; border: 2px solid var(--gold2); border-radius: 20px; padding: 14px; box-shadow: 0 4px 0 #f0d39a; }
.rg-me-top { display: flex; align-items: center; gap: 12px; }
.rg-me-top b { display: block; font-size: 20px; font-weight: 900; }
.rg-me-top small { display: block; color: var(--muted); font-weight: 800; font-size: 14px; margin-top: 2px; }
.rg-medal { flex: 0 0 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 900; color: #3a2400;
  background: radial-gradient(circle at 35% 30%, #fff3c0, #ffc93c 55%, #c47f0a); box-shadow: 0 0 0 4px #fff6dc, 0 6px 14px rgba(196,127,10,.35); }
.rg-gap { margin: 12px 0 14px; font-weight: 800; font-size: 15px; line-height: 1.35; color: var(--ink); }
.rg-gap b { color: var(--red); font-weight: 900; }
.rg-pickbox h2 { margin-top: 0; }
.rg-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 4px; }
.rg-pick .chipo { padding: 11px 8px; font-size: 14px; border-radius: 14px; background: #fff; box-shadow: 0 3px 0 #eed3a3; }
.rg-pick .chipo.wide { grid-column: 1 / -1; }
.rg-pick .chipo:disabled { opacity: .6; }
.rg-pick .chipo.on { opacity: 1; }

.rg-list { display: grid; gap: 8px; }
.rg-row { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 10px 12px; border: 2px solid #f3e2c2; }
.rg-row.you { border-color: var(--gold2); background: #fffaf0; box-shadow: 0 0 0 4px rgba(255,201,60,.22); }
.rg-row .rk { flex: 0 0 26px; text-align: center; font-weight: 900; color: var(--muted); }
.rg-mid { flex: 1; min-width: 0; }
.rg-nm { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px; }
.rg-nm i { font-style: normal; font-size: 12px; font-weight: 900; color: var(--gold3); }
.rg-n { flex: 0 0 auto; min-width: 56px; text-align: right; font-weight: 900; color: var(--green2); font-variant-numeric: tabular-nums; }
/* each bar is a string of lights: unlit bulbs along the cord, lit ones in the colour of that region's bauble */
.rg-bar { position: relative; height: 12px; border-radius: 6px; background: radial-gradient(circle, #ead9b6 0 2.5px, transparent 3px) 0 50% / 12px 12px repeat-x, #f7ecd6; overflow: hidden; }
.rg-bar i { display: block; height: 100%; border-radius: 6px; width: 0; transition: width 1.1s cubic-bezier(.3,0,.2,1);
  background: radial-gradient(circle, rgba(255,255,255,.95) 0 2px, transparent 3px) 0 50% / 12px 12px repeat-x, linear-gradient(90deg, var(--c1), var(--c2));
  box-shadow: 0 0 10px var(--c1); animation: rgtw 2.4s ease-in-out infinite; }
.rg-row:nth-child(2n) .rg-bar i { animation-delay: -.8s; }
.rg-row:nth-child(3n) .rg-bar i { animation-delay: -1.6s; }
@keyframes rgtw { 50% { filter: brightness(1.18) saturate(1.15); } }
.rg-abroad { text-align: center; font-weight: 800; color: var(--muted); margin: 12px 0 0; }
.rg-abroad:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .rg-lights, .rg-bar i { animation: none; } .rg-bar i { transition: none; } }
/* ── tree levels: Kumush, Oltin, Olmos ── */
.xglint { transform-box: fill-box; transform-origin: center; opacity: 0; animation: xglint 2.6s ease-in-out infinite; }
@keyframes xglint { 0%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); } 45% { opacity: 1; transform: scale(1) rotate(45deg); } 60% { opacity: .9; } }
.lv3 .xglint { fill: #e9fdff; }
.xaura { animation: xaura 3.2s ease-in-out infinite; }
@keyframes xaura { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .xglint, .xaura { animation: none; } .xglint { opacity: .8; } }
.lvcard { display: block; width: 100%; text-align: left; margin: 14px 0 6px; padding: 14px 16px 12px; border-radius: 18px; border: 2px solid #ecdcbc; background: #fff; box-shadow: 0 4px 0 #ecdcbc; color: var(--ink); font: inherit; cursor: pointer; }
.lvcard:active { transform: translateY(2px); box-shadow: 0 2px 0 #ecdcbc; }
.lvtop { display: flex; align-items: center; justify-content: space-between; font-weight: 900; font-size: 17px; }
.lvn { font-size: 14px; opacity: .7; }
.lvbar { height: 10px; border-radius: 6px; background: #f1e6cf; margin: 10px 0 8px; overflow: hidden; }
.lvbar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2fbf86, #6fdc9f); transition: width 1s cubic-bezier(.3,0,.2,1); }
.lvcard.lv1 .lvbar i { background: linear-gradient(90deg, #9fb9c9, #e3f1ff); }
.lvcard.lv2 .lvbar i { background: linear-gradient(90deg, #e8a92a, #ffe08a); }
.lvcard.lv3 .lvbar i { background: linear-gradient(90deg, #3f93d3, #b9f2ff); }
.lvcard.lv1 { border-color: #c9dbe6; box-shadow: 0 4px 0 #c9dbe6; }
.lvcard.lv2 { border-color: #f3cf6b; box-shadow: 0 4px 0 #f3cf6b; }
.lvcard.lv3 { border-color: #8fdcff; box-shadow: 0 4px 0 #8fdcff; }
.lvnext { font-size: 14px; font-weight: 700; opacity: .8; }
.lvbadge { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 12px; font-size: 13px; font-weight: 900; vertical-align: middle; background: rgba(255,255,255,.16); }
.lvlist { text-align: left; margin: 6px 0 16px; }
.lvrow { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid #f1e6cf; font-weight: 800; }
.lvrow:last-child { border-bottom: 0; }
.lvrow .em { font-size: 26px; width: 34px; text-align: center; }
.lvrow .rq { margin-left: auto; font-size: 13px; opacity: .65; font-weight: 700; }
.lvrow.on .rq { opacity: 1; color: #2fbf86; }
.lvrow.cur { background: #fff8e6; border-radius: 12px; }

/* ── paying by card (public/pay.js) ── */
.paymodal.gone { opacity: 0; transition: opacity .2s; }
.paysheet { max-height: 94vh; overflow-y: auto; padding-top: 14px; position: relative; }
.pay-load { text-align: center; font-size: 34px; padding: 40px 0; animation: xaura 1.2s ease-in-out infinite; }
.pay-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.pay-round { width: 40px; height: 40px; border-radius: 50%; background: #f3e6cc; color: var(--muted); font-size: 20px; font-weight: 900; display: grid; place-items: center; }
.pay-round:active { transform: scale(.94); }
.pay-round[data-b] { font-size: 32px; line-height: 1; padding-bottom: 4px; }
.pay-pill { display: table; margin: -30px auto 14px; padding: 7px 20px; border-radius: 14px; font-weight: 900; letter-spacing: .14em; color: #fff; font-size: 17px;
  background: linear-gradient(110deg, #4b4ff0 0%, #7d4bf2 55%, #f5a623 100%); box-shadow: 0 8px 24px rgba(91,79,240,.35); }
.pay-note { text-align: center; font-weight: 800; color: var(--green2); margin: 0 0 12px; font-size: 14px; }
.pay-opts { display: grid; gap: 10px; margin-bottom: 16px; }
.pay-opt { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 14px; border-radius: 18px; background: #fff; border: 2px solid #ecdcbc; box-shadow: 0 4px 0 #ecdcbc; color: var(--ink); font: inherit; transition: transform .12s, border-color .15s, box-shadow .15s; }
.pay-opt.on { border-color: #5b5ff2; box-shadow: 0 4px 0 #b9bbfa, 0 0 0 4px rgba(91,95,242,.14); }
.pay-opt:active { transform: translateY(2px); }
.pay-em { font-size: 30px; flex: 0 0 auto; }
.pay-txt { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pay-txt b { font-size: 16px; font-weight: 900; }
.pay-txt small { font-size: 12.5px; color: var(--muted); font-weight: 700; line-height: 1.3; }
.pay-price { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; white-space: nowrap; }
.pay-price b { font-size: 17px; font-weight: 900; }
.pay-price s { font-size: 12px; color: #b9a585; font-weight: 800; }
.pay-price em { font-style: normal; font-size: 11.5px; font-weight: 900; color: var(--green2); }
.pay-best { position: absolute; top: -10px; right: 14px; background: linear-gradient(180deg, #f04a52, var(--red)); color: #fff; font-size: 11px; font-weight: 900; padding: 3px 10px; border-radius: 999px; letter-spacing: .04em; box-shadow: 0 3px 0 var(--red2); }
.btn.paygo { color: #fff; background: linear-gradient(180deg, #6a6ef7, #4b4ff0); box-shadow: 0 5px 0 #3236b8, 0 12px 24px rgba(75,79,240,.3); display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn.paygo:active { box-shadow: 0 1px 0 #3236b8; }
.btn.paygo.busy { animation: xaura 1s ease-in-out infinite; }
.pay-cardico { width: 26px; height: 18px; border-radius: 4px; background: linear-gradient(135deg, #fff, #cfd2ff); position: relative; flex: 0 0 auto; }
.pay-cardico::after { content: ''; position: absolute; left: 0; right: 0; top: 4px; height: 4px; background: #3236b8; opacity: .6; }
.pay-or { display: flex; align-items: center; gap: 10px; margin: 18px 0 12px; color: var(--muted); font-weight: 900; font-size: 13px; }
.pay-or::before, .pay-or::after { content: ''; flex: 1; height: 2px; background: #ecdcbc; border-radius: 2px; }
.pay-fr { background: #fff; border: 2px dashed #bfe8d6; border-radius: 18px; padding: 14px; }
.pay-frt { text-align: center; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.pay-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; }
.pay-dots i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 13px; background: #f3e6cc; color: var(--muted); }
.pay-dots i.on { background: var(--green); color: #fff; box-shadow: 0 3px 0 var(--green2); }
/* the card */
.pcard-wrap { perspective: 900px; margin: 8px 4px 18px; }
.pcard { position: relative; aspect-ratio: 1.586; border-radius: 20px; padding: 20px 20px 18px; color: #fff; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(125deg, #173d8f 0%, #2d5fc4 50%, #4d93e6 100%); box-shadow: 0 22px 40px rgba(20,48,120,.38), inset 0 1px 0 rgba(255,255,255,.25);
  animation: pcardIn .9s cubic-bezier(.2,.9,.25,1.15) both, pcardFloat 5s ease-in-out .9s infinite; transform-style: preserve-3d; }
.pcard.b-humo { background: linear-gradient(125deg, #0e2a2a 0%, #1f5450 50%, #3a8f7f 100%); }
.pcard.b-visa, .pcard.b-mastercard { background: linear-gradient(125deg, #1b1b2f 0%, #3a2f6b 55%, #7a4bc4 100%); }
@keyframes pcardIn { from { opacity: 0; transform: translateY(40px) rotateX(55deg) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes pcardFloat { 0%, 100% { transform: rotateX(0) rotateY(0) translateY(0); } 50% { transform: rotateX(4deg) rotateY(-6deg) translateY(-4px); } }
.pcard-shine { position: absolute; inset: -50%; background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.28) 50%, transparent 58%); animation: pshine 3.6s ease-in-out 1s infinite; pointer-events: none; }
@keyframes pshine { 0% { transform: translateX(-60%); } 55%, 100% { transform: translateX(60%); } }
.pcard-snow { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(2px 2px at 20% 30%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 70% 20%, #fff 50%, transparent 51%), radial-gradient(2px 2px at 85% 70%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 40% 80%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 60% 55%, #fff 50%, transparent 51%); }
.pcard-top { display: flex; justify-content: space-between; align-items: center; position: relative; }
.pcard-chip { width: 46px; height: 34px; border-radius: 7px; background: linear-gradient(135deg, #f7e1a1, #d4a94a 60%, #f0d48a); box-shadow: inset 0 0 0 1px rgba(120,80,10,.35); position: relative; }
.pcard-chip::before, .pcard-chip::after { content: ''; position: absolute; background: rgba(120,80,10,.35); }
.pcard-chip::before { left: 33%; right: 33%; top: 0; bottom: 0; border-left: 1px solid rgba(120,80,10,.4); border-right: 1px solid rgba(120,80,10,.4); background: none; }
.pcard-chip::after { left: 0; right: 0; top: 50%; height: 1px; }
.pcard-bank { font-weight: 900; font-style: italic; letter-spacing: .06em; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.pcard-bank i { font-style: normal; font-size: 13px; opacity: .85; letter-spacing: -.1em; }
.pcard-num { position: relative; background: none; color: #fff; font: 800 clamp(16px, 5.1vw, 23px)/1 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; letter-spacing: .03em; white-space: nowrap; text-align: left; display: flex; align-items: center; gap: 10px; text-shadow: 0 2px 4px rgba(0,0,0,.25); padding: 0; }
.pcard-bot { display: flex; justify-content: space-between; align-items: flex-end; font-weight: 900; letter-spacing: .08em; font-size: 15px; position: relative; }
.pcard-brand { font-size: 13px; opacity: .85; letter-spacing: .02em; }
.pcopy { display: inline-block; width: 15px; height: 15px; border: 2px solid currentColor; border-radius: 4px; position: relative; opacity: .8; flex: 0 0 auto; }
.pcopy::after { content: ''; position: absolute; left: 3px; top: -6px; width: 11px; height: 11px; border: 2px solid currentColor; border-radius: 4px; border-bottom-color: transparent; border-left-color: transparent; }
.pay-amt { display: flex; align-items: center; gap: 10px; margin: 0 auto 8px; padding: 12px 22px; border-radius: 999px; background: #e9e9ff; color: #3f43d6; font-weight: 900; font-size: 22px; }
.pay-hint { text-align: center; color: var(--muted); font-weight: 800; margin: 4px 0 18px; font-size: 15px; line-height: 1.45; }
.pay-hint small { font-size: 13px; font-weight: 700; opacity: .85; }
/* the receipt */
.pay-h { text-align: center; margin: -26px 0 2px; font-size: 24px; }
.pay-sub { margin-bottom: 16px; }
.pay-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 210px; border-radius: 20px; border: 2.5px dashed #6a6ef7; background: #eeeeff; color: #4b4ff0; margin-bottom: 18px; overflow: hidden; cursor: pointer; text-align: center; padding: 14px; }
.pay-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pay-drop b { font-size: 18px; font-weight: 900; }
.pay-drop small { color: #8f8fb8; font-weight: 800; font-size: 13px; }
.pay-up { width: 34px; height: 30px; position: relative; margin-bottom: 4px; }
.pay-up::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; border: 3px solid #4b4ff0; border-top: 0; border-radius: 0 0 6px 6px; }
.pay-up::after { content: '↑'; position: absolute; left: 0; right: 0; top: -6px; text-align: center; font-size: 26px; font-weight: 900; animation: pup 1.6s ease-in-out infinite; }
@keyframes pup { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.pay-drop.has { border-style: solid; background: #fff; min-height: 0; }
.pay-drop.has img { max-width: 100%; max-height: 280px; border-radius: 12px; display: block; }
/* sent */
.pay-wait { text-align: center; padding-top: 4px; }
.pay-receipt { width: 92px; height: 112px; margin: -8px auto 18px; background: #fff; border-radius: 12px 12px 4px 4px; box-shadow: 0 12px 26px rgba(42,26,8,.16); position: relative; padding: 18px 14px; display: flex; flex-direction: column; gap: 9px; }
.pay-receipt i { display: block; height: 7px; border-radius: 4px; background: #ecdcbc; }
.pay-receipt i:nth-child(2) { width: 70%; } .pay-receipt i:nth-child(3) { width: 50%; }
.pay-receipt b { position: absolute; right: -14px; bottom: -12px; width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 22px; box-shadow: 0 4px 0 var(--green2); }
.pay-wait.fresh .pay-receipt { animation: pslide .7s cubic-bezier(.2,.9,.25,1.2) both; }
.pay-wait.fresh .pay-receipt b { animation: ppop .5s cubic-bezier(.2,.9,.25,1.5) .55s both; }
@keyframes pslide { from { opacity: 0; transform: translateY(30px) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes ppop { from { transform: scale(0); } to { transform: scale(1); } }
/* the tree styles row */
.skincard { margin: 14px 0 6px; padding: 14px 12px 12px; border-radius: 18px; border: 2px solid #ecdcbc; background: #fff; box-shadow: 0 4px 0 #ecdcbc; }
.skincard.flash { animation: chglow 1.1s ease-in-out 3; border-color: #ffc93c; }
.sk-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 0 4px 10px; }
.sk-top b { font-size: 16px; font-weight: 900; white-space: nowrap; }
.sk-top span { font-size: 12px; color: var(--muted); font-weight: 700; text-align: right; }
.sk-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: none; }
.sk-row::-webkit-scrollbar { display: none; }
.sk { position: relative; flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px 6px; border-radius: 14px; background: #fbf4e6; border: 2px solid transparent; color: var(--ink); font: inherit; transition: transform .12s, border-color .15s; }
.sk svg { width: 38px; height: 44px; display: block; }
.sk span { font-size: 11.5px; font-weight: 900; }
.sk.on { border-color: #5b5ff2; background: #eef0ff; }
.sk:active { transform: scale(.95); }
.sk-lock { position: absolute; top: 3px; right: 4px; font-style: normal; font-size: 11px; }
.skincard.owned .sk-lock { display: none; }
.xtw2 { animation: xtw2 2.4s ease-in-out infinite; }
@keyframes xtw2 { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pcard, .pcard-shine, .xtw2, .pay-up::after { animation: none !important; } }
.pay-wait .pay-h { margin-top: 4px; }

/* ── the owner's screen inside Telegram (app.js ownerV2Bind) ── */
.v2 .panel { padding-top: 10px; }
.grip { display: block; width: 64px; height: 18px; margin: -4px auto 6px; background: none; position: relative; }
.grip::after { content: ''; position: absolute; left: 10px; right: 10px; top: 6px; height: 5px; border-radius: 3px; background: #e3cfa6; }
.btn.sendmain { display: flex; align-items: center; justify-content: center; gap: 10px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 16px 0 2px; }
.qk { display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; color: var(--ink); font: inherit; position: relative; -webkit-tap-highlight-color: transparent; }
.qk i { width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; font-style: normal; font-size: 26px; background: #fff; border: 2px solid #ecdcbc; box-shadow: 0 4px 0 #ecdcbc; transition: transform .12s cubic-bezier(.3,0,.2,1.4), box-shadow .12s; }
.qk:active i { transform: translateY(3px) scale(.95); box-shadow: 0 1px 0 #ecdcbc; }
.qk span { font-size: 12.5px; font-weight: 900; white-space: nowrap; }
.qk.ig i { background: linear-gradient(135deg, #feda75, #fa7e1e 35%, #d62976 65%, #962fbf); border: 0; box-shadow: 0 4px 0 #a3256e; }
.qk.ch i { background: linear-gradient(180deg, #4fb8f0, #2a9fd8); border: 0; box-shadow: 0 4px 0 #1a7fb0; }
.qk.nl i { background: linear-gradient(180deg, #ff7a85, #e0313b); border: 0; box-shadow: 0 4px 0 #a61e28; }
.qk b.badge { position: absolute; top: -6px; right: calc(50% - 38px); min-width: 22px; height: 22px; border-radius: 11px; padding: 0 6px; background: var(--gold); color: #3a2400; font-size: 12px; font-weight: 900; display: grid; place-items: center; box-shadow: 0 2px 0 var(--gold3); animation: ppop .5s cubic-bezier(.2,.9,.25,1.5) .4s both; }
.cards { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 18px; margin: 18px -18px 0; padding: 4px 18px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cards::-webkit-scrollbar { display: none; }
.cd { flex: 0 0 80%; max-width: 340px; scroll-snap-align: start; text-align: left; font: inherit; color: var(--ink); background: #fff; border-radius: 20px; border: 2px solid #ecdcbc; box-shadow: 0 4px 0 #ecdcbc; padding: 14px 16px; min-height: 124px; display: flex; flex-direction: column; transition: transform .12s; }
.cd:active { transform: scale(.98); }
.cd h4 { margin: 0 0 4px; font-size: 12.5px; font-weight: 900; color: var(--muted); letter-spacing: .04em; display: flex; justify-content: space-between; }
.cd .big { font-size: 19px; font-weight: 900; line-height: 1.2; }
.cd .sm { font-size: 13.5px; font-weight: 700; color: var(--muted); margin-top: 2px; }
.cd .lvbar { margin: 10px 0 6px; }
.cd.lvc.lv1 .lvbar i { background: linear-gradient(90deg, #9fb9c9, #e3f1ff); } .cd.lvc.lv2 .lvbar i { background: linear-gradient(90deg, #e8a92a, #ffe08a); } .cd.lvc.lv3 .lvbar i { background: linear-gradient(90deg, #3f93d3, #b9f2ff); }
.cd.lvc.lv2 { border-color: #f2cf6b; box-shadow: 0 4px 0 #f2cf6b; background: linear-gradient(180deg, #fffaf0, #fff); }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 6px; }
.dots i { width: 7px; height: 7px; border-radius: 4px; background: #e7d3ab; transition: width .25s, background .25s; } .dots i.on { width: 20px; background: var(--gold2); }
.rgmini { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.rgmini div { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; }
.rgmini div b { flex: 0 0 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .rgmini div i { height: 8px; border-radius: 4px; background: #e9dcc0; max-width: calc(100% - 100px); }
.rgmini div.me i { background: var(--green); } .rgmini div.me { color: var(--green2); }
.swrow { display: flex; gap: 6px; margin-top: 8px; }
.swrow span { width: 34px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #fbf4e6; }
.swrow span.on { outline: 2.5px solid #5b5ff2; background: #eef0ff; }
.swrow svg { width: 24px; height: 30px; }
.links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; margin: 16px 0 0; }
.links button { background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.v2 .btn.ghost-card#qbplay { margin-top: 16px; }
/* pulled up: the tree steps back */
.v2.up .stage { height: 32vh; }
.v2.up .zoom, .v2.up .mailbox, .v2.up .zoom-tip { visibility: hidden; }
.v2 .zoom, .v2 .mailbox { transition: opacity .3s; }
.zoom button.pal { background: linear-gradient(135deg, #25b8b3, #f493c0 50%, #ffc93c); border: 0; font-size: 18px; }
/* the letter box on the tree */
.mailbox { position: absolute; left: 16px; bottom: 26px; z-index: 6; width: 58px; height: 68px; background: none; padding: 0; animation: mbIn .7s cubic-bezier(.2,.9,.25,1.3) .6s both; }
.mailbox svg { width: 100%; height: 100%; filter: drop-shadow(0 4px 8px rgba(0,0,0,.35)); }
.mailbox .n { position: absolute; top: -8px; right: -8px; min-width: 24px; height: 24px; border-radius: 12px; padding: 0 6px; background: var(--gold); color: #3a2400; font-weight: 900; font-size: 13px; display: grid; place-items: center; box-shadow: 0 2px 0 var(--gold3), 0 0 0 3px rgba(11,26,51,.6); }
.mailbox .mb-env { animation: mbEnv 3.4s ease-in-out infinite; transform-box: fill-box; }
@keyframes mbIn { from { opacity: 0; transform: translateY(30px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes mbEnv { 0%, 70%, 100% { transform: translate(19px, 8px) rotate(-8deg); } 80% { transform: translate(19px, 3px) rotate(-14deg); } 90% { transform: translate(19px, 6px) rotate(-4deg); } }
/* letter box sheet */
.lmodal .sheet { max-height: 92vh; overflow-y: auto; }
.lbox { text-align: center; }
.lb-art { position: relative; width: 120px; height: 140px; margin: -30px auto 6px; }
.lb-art svg { width: 100%; height: 100%; }
.lb-art .n { position: absolute; top: -4px; right: -6px; min-width: 32px; height: 32px; border-radius: 16px; padding: 0 8px; background: var(--gold); color: #3a2400; font-weight: 900; font-size: 16px; display: grid; place-items: center; box-shadow: 0 3px 0 var(--gold3); }
.lb-art.sent { animation: pslide .7s cubic-bezier(.2,.9,.25,1.2) both; margin-top: 0; }
.lbox h2 { margin: 0 0 4px; } .lbox .sub { margin-bottom: 4px; }
.lb-empty { color: var(--muted); font-weight: 800; margin: 10px 0 16px; }
.cdown { display: flex; justify-content: center; gap: 8px; margin: 12px 0 14px; }
.cdown div { background: #13294d; color: #fff; border-radius: 14px; padding: 8px 12px; min-width: 66px; text-align: center; }
.cdown b { display: block; font-size: 24px; font-weight: 900; line-height: 1.1; } .cdown small { font-size: 11px; font-weight: 800; opacity: .75; }
.envs { display: grid; gap: 8px; margin: 4px 0 16px; text-align: left; }
.env { display: flex; align-items: center; gap: 12px; background: #fff; border: 2px solid #f0dcb5; border-radius: 16px; padding: 10px 14px; animation: fadeIn .3s ease both; }
.env .seal { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff6b74, #b81d28); color: #ffd9a0; display: grid; place-items: center; font-size: 15px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.2); flex: 0 0 auto; }
.env b { flex: 1; font-size: 15px; } .env b em { font-style: normal; color: var(--muted); filter: blur(3.5px); }
.env small { color: var(--muted); font-weight: 800; font-size: 12px; }
/* writing a letter */
.paper { background: #fffdf6; border-radius: 18px; padding: 18px 18px 12px; border: 2px solid #f0dcb5; box-shadow: 0 10px 26px rgba(42,26,8,.14); position: relative;
  background-image: repeating-linear-gradient(180deg, transparent 0 31px, #f1e4c6 31px 32px); background-position: 0 58px; transition: transform .6s cubic-bezier(.5,0,.3,1), opacity .6s; }
.paper .to { font-weight: 900; font-size: 17px; margin-bottom: 10px; padding-right: 56px; }
.paper .ptxt { width: 100%; min-height: 160px; border: 0; background: transparent; resize: none; outline: none; font: inherit; font-size: 17px; line-height: 32px; font-weight: 700; color: #3a2a12; padding: 0; user-select: text; -webkit-user-select: text; }
.paper .ptxt.shake { animation: shake .4s; }
.paper .sig { text-align: right; font-weight: 900; color: var(--muted); }
.paper .stamp { position: absolute; top: 12px; right: 14px; width: 44px; height: 52px; border: 2px dashed #e0b56a; border-radius: 6px; display: grid; place-items: center; font-size: 22px; background: #fff6e0; transform: rotate(6deg); }
.lock-note { text-align: center; font-size: 13px; font-weight: 800; color: var(--muted); margin: 12px 0 14px; }
.btn.seal { color: #fff; background: linear-gradient(180deg, #f04a52, var(--red)); box-shadow: 0 5px 0 var(--red2), 0 10px 20px rgba(224,49,59,.25); }
.compose .sheet.sealed .paper { transform: translateY(-40px) scale(.35) rotate(-8deg); opacity: 0; }
.compose .sheet.sealed .btn, .compose .sheet.sealed .lock-note { opacity: 0; transition: opacity .3s; }
.lcard-cta { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; margin: 14px 0 6px; padding: 14px 14px; border-radius: 18px; font: inherit; color: var(--ink);
  background: linear-gradient(180deg, #fff6f6, #fff); border: 2px solid #f6c3c6; box-shadow: 0 4px 0 #f6c3c6; }
.lcard-cta .lc-ic { font-size: 30px; } .lcard-cta .lc-tx { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.lcard-cta b { font-size: 16px; font-weight: 900; } .lcard-cta small { font-size: 12.5px; font-weight: 700; color: var(--muted); }
/* the 🎨 sheet: small, so the tree stays in view and changes as you tap */
.modal.clear { background: rgba(5,12,26,.12); }
.stylesheet { padding-top: 10px; }
.stylesheet h2 { margin: 0 0 2px; text-align: center; }
.stylesheet .sub { margin-bottom: 10px; }
.st-row { display: flex; gap: 10px; overflow-x: auto; padding: 8px 2px 10px; scrollbar-width: none; }
.st-row::-webkit-scrollbar { display: none; }
.st { flex: 0 0 76px; border-radius: 18px; background: #fbf4e6; padding: 10px 4px 8px; text-align: center; border: 2.5px solid transparent; position: relative; font: inherit; color: var(--ink); transition: transform .15s cubic-bezier(.3,0,.2,1.4); }
.st:active { transform: scale(.94); }
.st svg { width: 46px; height: 54px; } .st > span:last-child { display: block; font-size: 12.5px; font-weight: 900; margin-top: 2px; }
.st.on { border-color: #5b5ff2; background: #eef0ff; } .st .lk { position: absolute; top: 5px; right: 7px; font-size: 12px; }
.stylemodal.owned .st .lk { display: none; }
.st.on::after { content: '✓'; position: absolute; top: -8px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: #5b5ff2; color: #fff; font-size: 13px; font-weight: 900; display: grid; place-items: center; }
.st-cta { display: flex; align-items: center; gap: 10px; margin-top: 6px; animation: fadeIn .25s ease both; }
.st-cta .btn { flex: 1; font-size: 16px; padding: 14px 12px; }
.st-cta small { flex: 0 0 auto; font-weight: 800; color: var(--muted); font-size: 12.5px; text-align: center; line-height: 1.3; }
.st-cta[hidden] { display: none; }
/* Archa 2026 */
.cd.wrap { background: radial-gradient(120% 140% at 0% 0%, #6b3cf0 0%, #2b1a6e 45%, #120b33 100%); border: 0; box-shadow: 0 6px 18px rgba(75,45,200,.35), inset 0 0 0 1.5px rgba(255,215,120,.45); color: #fff; position: relative; overflow: hidden; }
.cd.wrap::after { content: ''; position: absolute; inset: -40%; background: linear-gradient(105deg, transparent 42%, rgba(255,230,160,.32) 50%, transparent 58%); animation: wshine 3.8s ease-in-out infinite; pointer-events: none; }
@keyframes wshine { 0% { transform: translateX(-60%); } 60%, 100% { transform: translateX(60%); } }
.cd.wrap h4 { color: #ffd76a; }
.cd.wrap .blur { filter: blur(5px); font-weight: 900; font-size: 21px; color: #ffd76a; margin-top: 4px; }
.cd.wrap .chip2 { align-self: flex-start; margin-top: 8px; padding: 4px 10px; border-radius: 999px; background: rgba(255,215,106,.18); color: #ffd76a; font-size: 12px; font-weight: 900; }
.teaser { position: fixed; inset: 0; z-index: 30; background: radial-gradient(120% 80% at 50% 10%, #3a2196 0%, #160f40 55%, #08061c 100%); display: flex; flex-direction: column; align-items: center; padding: 64px 24px calc(24px + var(--safe-b)); color: #fff; text-align: center; overflow: hidden; animation: fadeIn .35s ease both; }
.teaser.gone, .nynight.gone { opacity: 0; transition: opacity .25s; }
.teaser .tt { color: #ffd76a; font-weight: 900; letter-spacing: .18em; font-size: 13px; }
.teaser h1 { font-size: 34px; margin: 6px 0 4px; line-height: 1.1; color: #fff; }
.teaser .ts { color: rgba(255,255,255,.72); font-weight: 700; font-size: 15px; margin: 0 0 24px; }
.fan { position: relative; width: min(230px, 56vw); aspect-ratio: .7; margin-bottom: 26px; flex: 0 1 auto; }
.fan .sl { position: absolute; inset: 0; border-radius: 26px; padding: 22px 18px; text-align: left; box-shadow: 0 24px 50px rgba(0,0,0,.45); overflow: hidden; animation: fanIn .9s cubic-bezier(.2,.9,.25,1.2) both; }
.fan .sl:nth-child(1) { background: linear-gradient(160deg, #ff6fae, #b5179e); --r: rotate(-11deg) translate(-38px, 14px); transform: var(--r); animation-delay: .1s; }
.fan .sl:nth-child(2) { background: linear-gradient(160deg, #25b8b3, #0a5d66); --r: rotate(9deg) translate(38px, 10px); transform: var(--r); animation-delay: .2s; }
.fan .sl:nth-child(3) { background: linear-gradient(160deg, #ffc93c, #e0313b); --r: none; animation-delay: .3s; }
@keyframes fanIn { from { opacity: 0; transform: translateY(60px) scale(.8); } to { opacity: 1; transform: var(--r); } }
.fan .sl b { display: block; font-size: 12px; letter-spacing: .1em; opacity: .85; }
.fan .sl .n { font-size: 60px; font-weight: 900; line-height: 1; margin: 18px 0 8px; filter: blur(9px); }
.fan .sl .l { font-size: 18px; font-weight: 900; filter: blur(5px); }
.fan .sl .lk { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: rgba(0,0,0,.35); display: grid; place-items: center; font-size: 30px; }
.teaser .cdown div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,215,106,.35); }
.teaser .btn { max-width: 340px; }
.teaser .btn.done { background: rgba(255,255,255,.12); color: #ffd76a; box-shadow: none; transform: none; }
.teaser .hint { margin-top: 14px; font-size: 13px; font-weight: 800; color: rgba(255,255,255,.6); max-width: 300px; }
.spark { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #ffd76a; opacity: .5; animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: .9; transform: scale(1.3); } }
.ny-x { position: absolute; top: 16px; right: 16px; z-index: 3; background: rgba(255,255,255,.12) !important; color: #fff !important; }
/* New Year's night */
.nynight { position: fixed; inset: 0; z-index: 30; background: radial-gradient(120% 80% at 50% 20%, #2a2f7a 0%, #10163d 55%, #070b22 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 22px calc(24px + var(--safe-b)); animation: fadeIn .4s ease both; overflow: hidden; }
.nynight .fw { position: absolute; width: 5px; height: 5px; border-radius: 50%; opacity: 0; animation: fw 3s ease-out infinite; }
@keyframes fw { 0% { opacity: 0; transform: scale(.2); } 20% { opacity: 1; } 100% { opacity: 0; transform: scale(1.6) translateY(30px); } }
.nyt { color: #ffe9a8; font-weight: 900; font-size: 14px; letter-spacing: .16em; margin-bottom: 6px; z-index: 2; }
.nyh { color: #fff; font-weight: 900; font-size: 30px; margin: 0 0 22px; text-align: center; z-index: 2; }
.ny-slot { width: 100%; display: flex; justify-content: center; z-index: 2; }
.lcard { width: 100%; max-width: 340px; background: #fffdf6; border-radius: 22px; padding: 22px 20px 18px; box-shadow: 0 30px 60px rgba(0,0,0,.45); transform: rotate(-1.5deg); max-height: 52vh; overflow-y: auto;
  background-image: repeating-linear-gradient(180deg, transparent 0 31px, #f1e4c6 31px 32px); background-position: 0 64px; }
.lcard.in { animation: lcIn .6s cubic-bezier(.2,.9,.25,1.2) both; }
@keyframes lcIn { from { opacity: 0; transform: translateY(40px) rotate(6deg) scale(.9); } to { opacity: 1; transform: rotate(-1.5deg); } }
.lcard .hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 900; color: var(--muted); font-size: 14px; }
.lcard .seal2 { width: 40px; height: 40px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff6b74, #b81d28); display: grid; place-items: center; color: #ffd9a0; font-size: 18px; transform: rotate(-12deg); box-shadow: 0 3px 0 #7d1714; }
.lcard p { font-size: 18px; line-height: 32px; font-weight: 700; margin: 0; color: #3a2a12; white-space: pre-wrap; word-break: break-word; }
.lcard .sig { text-align: right; font-weight: 900; color: var(--red); margin-top: 8px; font-size: 17px; }
.nyprog { display: flex; gap: 6px; margin: 20px 0 16px; z-index: 2; flex-wrap: wrap; justify-content: center; max-width: 320px; } .nyprog i { width: 22px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.25); transition: background .3s; } .nyprog i.on { background: #ffc93c; }
.nynight .btn { max-width: 340px; z-index: 2; }
@media (prefers-reduced-motion: reduce) { .cd.wrap::after, .spark, .nynight .fw, .mailbox .mb-env, .fan .sl, .lcard.in, .mailbox { animation: none !important; } .nynight .fw { opacity: .6; } }
/* sheets come up with a little spring */
.sheet { animation: up .42s cubic-bezier(.2,1.15,.35,1) both; }
.modal.gone { opacity: 0; transition: opacity .2s; }
