/* ============================================================
   Окошко — design system v2 (asset v=51)
   ONE component system, FOUR skins as pure token layers:
     :root                       → «Премиум» light  (base)
     [data-mode="dark"]          → «Премиум» dark
     [data-vibe="playful"]       → «Яркий» light
     [data-vibe="playful"][data-mode="dark"] → «Яркий» dark
   Rules: components consume tokens ONLY. The 9 pastel families
   (lav/mint/peach/rose/sky/sun/sage/plum + peach) keep their
   names — inline styles across the apps depend on them. In dark
   mode every *-soft becomes a dark tint and every *-deep becomes
   a LIGHT readable tone (deep is always text-on-soft).
   Type: Unbounded (display: headings + time digits — time IS the
   product) + Manrope (body). Signature: the «окошко» window motif
   on chips/day-pills (light-through-pane sheen + inner frame) and
   the breathing blob, now skin-aware.
   ============================================================ */

:root {
  /* — Премиум · light — porcelain, deep indigo ink, violet accent */
  --bg: #F4F3F8;
  --card: #FFFFFF;
  --card-2: #FAFAFD;
  --ink: #211C33;
  --muted: #7A7391;
  --line: rgba(33, 28, 51, .08);
  --line-strong: rgba(33, 28, 51, .14);

  --lav: #8B7BE0;  --lav-soft: #EDEAFB;  --lav-deep: #5A48C8;
  --mint: #6BCBAA; --mint-soft: #E2F5ED; --mint-deep: #1F8663;
  --peach: #F2B885;--peach-soft: #FAEFE3;--peach-deep: #AE6D2F;
  --rose: #E698A9; --rose-soft: #FAE6EA; --rose-deep: #BE5470;
  --sky: #8FC0EA;  --sky-soft: #E2EFFA;  --sky-deep: #2F6FA8;
  --sun: #E5C558;  --sun-soft: #FAF2D8;  --sun-deep: #96781E;
  --sage: #A6C98E; --sage-soft: #E8F1E1; --sage-deep: #4F8032;
  --plum: #C299D4; --plum-soft: #F0E5F4; --plum-deep: #84479A;

  --btn-grad: linear-gradient(135deg, #6B5AD6, #8B7BE0);
  --btn-mint-grad: linear-gradient(135deg, #35A583, #6BCBAA);
  --pane: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,0) 46%);
  --blob-grad: linear-gradient(135deg, #EDEAFB, #E2EFFA 55%, #E2F5ED);
  --veil: rgba(23, 19, 38, .42);
  --toast-bg: #211C33; --toast-ink: #FFFFFF;
  --input-bg: #F4F3F8; --input-focus-bg: #FFFFFF;

  --radius: 18px;
  --radius-s: 14px;
  --bw: 1px;                        /* card/chip border weight */
  --shadow: 0 1px 2px rgba(33,28,51,.05), 0 10px 26px rgba(33,28,51,.07);
  --shadow-lift: 0 2px 4px rgba(33,28,51,.08), 0 14px 34px rgba(33,28,51,.13);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', 'Nunito', system-ui, sans-serif;
}

/* — Премиум · dark — deep indigo night */
html[data-mode="dark"] {
  --bg: #141221;
  --card: #1D1A2C;
  --card-2: #242034;
  --ink: #EEEBF7;
  --muted: #968EAE;
  --line: rgba(238, 235, 247, .09);
  --line-strong: rgba(238, 235, 247, .16);

  --lav: #9C8CEC;  --lav-soft: #2A2544;  --lav-deep: #C3B8F8;
  --mint: #5FC7A5; --mint-soft: #1C312A; --mint-deep: #8FE4C5;
  --peach: #E9B586;--peach-soft: #382A1C;--peach-deep: #F5CFA3;
  --rose: #E39CAF; --rose-soft: #3A2330; --rose-deep: #F2B9C8;
  --sky: #8DC1EE;  --sky-soft: #1D2B3C;  --sky-deep: #B2D7F6;
  --sun: #E2C763;  --sun-soft: #363019;  --sun-deep: #EFD98F;
  --sage: #A2C689; --sage-soft: #26301E; --sage-deep: #C4DEB0;
  --plum: #C79FD9; --plum-soft: #322439; --plum-deep: #E0C2EC;

  --btn-grad: linear-gradient(135deg, #6B5AD6, #8F7FE6);
  --btn-mint-grad: linear-gradient(135deg, #2E9678, #5FC7A5);
  --pane: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,0) 46%);
  --blob-grad: linear-gradient(135deg, #2A2544, #1D2B3C 55%, #1C312A);
  --veil: rgba(0, 0, 0, .55);
  --toast-bg: #EEEBF7; --toast-ink: #211C33;
  --input-bg: #141221; --input-focus-bg: #1D1A2C;

  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 10px 28px rgba(0,0,0,.30);
  --shadow-lift: 0 2px 6px rgba(0,0,0,.4), 0 16px 40px rgba(0,0,0,.45);
}

/* — Яркий · light — warm cream, saturated candy accents, sticker cards */
html[data-vibe="playful"] {
  --bg: #FFF8EE;
  --card: #FFFFFF;
  --card-2: #FFFDF7;
  --ink: #33284E;
  --muted: #8A7FA3;
  --line: rgba(51, 40, 78, .13);
  --line-strong: rgba(51, 40, 78, .22);

  --lav: #7C5CFF;  --lav-soft: #EFE9FF;  --lav-deep: #5B3FE0;
  --mint: #22B884; --mint-soft: #DDF6EB; --mint-deep: #0E8A5D;
  --peach: #FF7A59;--peach-soft: #FFEAE2;--peach-deep: #CE4B26;
  --rose: #F4628C; --rose-soft: #FDE4EC; --rose-deep: #CE3563;
  --sky: #3E9BE8;  --sky-soft: #E0F0FC;  --sky-deep: #1F6FB2;
  --sun: #FFC53D;  --sun-soft: #FFF3D6;  --sun-deep: #A07200;
  --sage: #7CBF4E; --sage-soft: #E9F4DE; --sage-deep: #47821F;
  --plum: #B764D6; --plum-soft: #F4E6FA; --plum-deep: #8A34AD;

  --btn-grad: linear-gradient(135deg, #6B48FF, #9A6BFF);
  --btn-mint-grad: linear-gradient(135deg, #17A473, #2FD096);
  --pane: linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,0) 46%);
  --blob-grad: linear-gradient(135deg, #FFE1CE, #EFE9FF 55%, #DDF6EB);
  --toast-bg: #33284E; --toast-ink: #FFFFFF;
  --input-bg: #FFF8EE; --input-focus-bg: #FFFFFF;

  --radius: 22px;
  --radius-s: 16px;
  --bw: 2px;
  --shadow: 0 3px 0 rgba(51,40,78,.08), 0 10px 22px rgba(51,40,78,.07);
  --shadow-lift: 0 4px 0 rgba(51,40,78,.10), 0 14px 30px rgba(51,40,78,.14);
}

/* — Яркий · dark — deep plum night, candy stays bright */
html[data-vibe="playful"][data-mode="dark"] {
  --bg: #1C1533;
  --card: #281F47;
  --card-2: #2F2553;
  --ink: #F2EDFC;
  --muted: #A297C2;
  --line: rgba(242, 237, 252, .11);
  --line-strong: rgba(242, 237, 252, .2);

  --lav: #9B7FFF;  --lav-soft: #322566;  --lav-deep: #C9B8FF;
  --mint: #2FD096; --mint-soft: #163B2E; --mint-deep: #7BEBC3;
  --peach: #FF8A6B;--peach-soft: #47251B; --peach-deep: #FFB49E;
  --rose: #F87BA0; --rose-soft: #451F30; --rose-deep: #FFAEC7;
  --sky: #5FB0F0;  --sky-soft: #1B2E45;  --sky-deep: #A5D3F8;
  --sun: #FFD05C;  --sun-soft: #423415;  --sun-deep: #FFE29A;
  --sage: #93D465; --sage-soft: #253A17; --sage-deep: #C0EA9E;
  --plum: #CD84E8; --plum-soft: #3B2450; --plum-deep: #E5BDF5;

  --pane: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,0) 46%);
  --blob-grad: linear-gradient(135deg, #322566, #1B2E45 55%, #163B2E);
  --veil: rgba(0, 0, 0, .55);
  --toast-bg: #F2EDFC; --toast-ink: #33284E;
  --input-bg: #1C1533; --input-focus-bg: #281F47;

  --shadow: 0 3px 0 rgba(0,0,0,.28), 0 10px 26px rgba(0,0,0,.32);
  --shadow-lift: 0 4px 0 rgba(0,0,0,.34), 0 16px 36px rgba(0,0,0,.46);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  min-height: 100%;
  overflow-x: hidden;
  transition: background .3s, color .3s;
}

/* ---------- breathing blob header (skin-aware signature #2) ---------- */
.hero { position: relative; padding: 28px 20px 18px; overflow: hidden; }
.blob {
  position: absolute; top: -110px; right: -80px; width: 280px; height: 280px;
  background: var(--blob-grad);
  border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%;
  animation: breathe 9s ease-in-out infinite;
  z-index: 0;
}
@keyframes breathe {
  0%, 100% { border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%; transform: scale(1) rotate(0deg); }
  33%      { border-radius: 45% 55% 48% 52% / 55% 45% 58% 42%; transform: scale(1.08) rotate(4deg); }
  66%      { border-radius: 52% 48% 42% 58% / 44% 52% 48% 56%; transform: scale(0.96) rotate(-3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .blob { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
.hero h1 {
  position: relative; z-index: 1; font-size: 23px; font-weight: 700;
  font-family: var(--font-display); letter-spacing: -.01em;
  padding-right: 64px;   /* reserve space for the absolute header buttons */
}
.hero.two-btns h1 { padding-right: 118px; }  /* admin: gear + sound */
svg.ic { vertical-align: -3.5px; }
.sound-toggle svg.ic { vertical-align: -1px; }
.hero p  { position: relative; z-index: 1; color: var(--muted); margin-top: 6px; font-size: 14px; font-weight: 500; }
.sound-toggle {
  position: absolute; top: 24px; right: 18px; z-index: 2;
  width: 42px; height: 42px; border: var(--bw) solid var(--line); border-radius: 50%;
  background: var(--card); box-shadow: var(--shadow);
  font-size: 18px; cursor: pointer;
  transition: transform .25s var(--spring);
}
.sound-toggle:active { transform: scale(.88); }
.sound-toggle.on { background: var(--lav-soft); border-color: var(--lav); }

/* ---------- layout ---------- */
.wrap { padding: 0 16px 96px; max-width: 560px; margin: 0 auto; }
.section-title {
  font-size: 12px; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin: 24px 4px 10px;
}

/* ---------- day strip (окошко-windows) ---------- */
.days { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
.days::-webkit-scrollbar { display: none; }
.day-pill {
  flex: 0 0 auto; min-width: 52px; padding: 9px 8px; text-align: center; scroll-snap-align: start;
  background: var(--card); background-image: var(--pane);
  border: var(--bw) solid var(--line); border-radius: var(--radius-s);
  box-shadow: var(--shadow); cursor: pointer; user-select: none;
  transition: transform .25s var(--spring), border-color .2s, background-color .2s;
}
.days.week-fit { overflow-x: visible; gap: 5px; }
.days.week-fit .day-pill { flex: 1 1 0; min-width: 0; padding: 9px 4px; border-radius: var(--radius-s); }
.day-pill:active { transform: scale(.93); }
.day-pill.active { border-color: var(--lav); background-color: var(--lav-soft); }
.day-pill.today { border-color: var(--mint); }
.day-pill.today .dw { color: var(--mint-deep); }
.day-pill.today .dot { opacity: 1; background: var(--mint-deep); }
.day-pill.today.active { border-color: var(--lav); }
.day-pill .dw { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .04em; }
.day-pill.active .dw { color: var(--lav-deep); }
.day-pill .dn { font-size: 17px; font-weight: 600; font-family: var(--font-display); }
.day-pill .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); margin: 3px auto 0; opacity: 0; }
.day-pill.has .dot { opacity: 1; }

/* ---------- time chips = little windows (signature #1) ----------
   Time digits in the display face: time IS the product. The pane
   gradient reads as light through a window; the border is its frame. */
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; }
.chip {
  padding: 14px 0 12px; text-align: center; font-weight: 500; font-size: 15px;
  font-family: var(--font-display); letter-spacing: .01em;
  background: var(--card); background-image: var(--pane);
  border: var(--bw) solid var(--line); border-radius: var(--radius-s);
  box-shadow: var(--shadow); cursor: pointer; user-select: none;
  transition: transform .25s var(--spring), border-color .2s, background-color .2s, opacity .3s;
  animation: pop-in .4s var(--spring) backwards;
}
.chip:nth-child(2) { animation-delay: .03s; } .chip:nth-child(3) { animation-delay: .06s; }
.chip:nth-child(4) { animation-delay: .09s; } .chip:nth-child(5) { animation-delay: .12s; }
.chip:nth-child(6) { animation-delay: .15s; } .chip:nth-child(7) { animation-delay: .18s; }
@keyframes pop-in { from { opacity: 0; transform: scale(.7) translateY(8px); } }
.chip:active { transform: scale(.9); }
.chip.selected { border-color: var(--mint); background-color: var(--mint-soft); color: var(--mint-deep); }
.chip.booked { background-color: var(--peach-soft); color: var(--peach-deep); border-color: transparent; }
.chip.open-admin { background-color: var(--mint-soft); color: var(--mint-deep); }
.chip.open-rus { background-color: var(--lav-soft); color: var(--lav-deep); }

/* ---------- cards ---------- */
.card {
  background: var(--card); border: var(--bw) solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; margin-bottom: 12px;
  animation: rise .45s var(--spring) backwards;
  display: flex; align-items: center; gap: 14px;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.card .badge {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: var(--radius-s);
  background: var(--lav-soft); color: var(--lav-deep); background-image: var(--pane);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-weight: 800;
}
.card .badge .b-day { font-size: 10px; letter-spacing: .06em; }
.card .badge .b-num { font-size: 18px; line-height: 1.1; font-family: var(--font-display); font-weight: 600; }
.card .meta { flex: 1; }
.card .meta .title { font-weight: 800; }
.card .meta .sub { font-size: 13px; color: var(--muted); font-weight: 500; }
.card .x {
  border: none; background: var(--rose-soft); color: var(--rose-deep);
  width: 38px; height: 38px; border-radius: 13px; font-size: 16px; cursor: pointer;
  transition: transform .25s var(--spring);
}
.card .x:active { transform: scale(.85) rotate(-8deg); }

.empty { text-align: center; color: var(--muted); padding: 28px 12px; font-size: 14px; font-weight: 500; }
.empty .e-ico { font-size: 34px; margin-bottom: 6px; }

/* ---------- bottom sheet ---------- */
.sheet-veil {
  position: fixed; inset: 0; background: var(--veil);
  opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 70;
}
.sheet-veil.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 71;
  background: var(--card); border-radius: 28px 28px 0 0;
  border-top: var(--bw) solid var(--line);
  padding: 26px 22px calc(26px + env(safe-area-inset-bottom));
  transform: translateY(105%); transition: transform .45s var(--spring);
  max-width: 560px; margin: 0 auto; box-shadow: var(--shadow-lift);
}
.sheet.open { transform: translateY(0); }
.sheet h2 { font-size: 19px; font-weight: 700; margin-bottom: 4px; font-family: var(--font-display); letter-spacing: -.01em; }
.sheet .s-sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; font-weight: 500; }

.btn {
  width: 100%; padding: 16px; border: none; border-radius: var(--radius);
  font-family: var(--font-body); font-size: 16px; font-weight: 800; cursor: pointer;
  transition: transform .25s var(--spring), filter .2s;
}
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--btn-grad); color: #fff; box-shadow: var(--shadow-lift); }
.btn-mint { background: var(--btn-mint-grad); color: #fff; box-shadow: var(--shadow-lift); }
.btn-ghost { background: transparent; color: var(--muted); margin-top: 8px; }
.btn-danger { background: var(--rose-soft); color: var(--rose-deep); margin-top: 8px; }
.btn:disabled { filter: grayscale(.5) opacity(.6); }

/* ---------- success check ---------- */
.success-wrap { text-align: center; padding: 8px 0 4px; }
.check-svg { width: 92px; height: 92px; }
.check-circle {
  fill: none; stroke: var(--mint); stroke-width: 3;
  stroke-dasharray: 290; stroke-dashoffset: 290;
  animation: draw 0.7s ease-out forwards;
}
.check-mark {
  fill: none; stroke: var(--mint-deep); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 80; stroke-dashoffset: 80;
  animation: draw 0.45s ease-out 0.5s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 80px);
  background: var(--toast-bg); color: var(--toast-ink); padding: 12px 20px; border-radius: 16px;
  font-size: 14px; font-weight: 700; z-index: 99; opacity: 0;
  transition: transform .4s var(--spring), opacity .3s; max-width: 88vw; text-align: center;
  box-shadow: var(--shadow-lift);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- tabs (admin) ---------- */
.tabs {
  display: flex; gap: 6px; background: var(--card); padding: 6px;
  border: var(--bw) solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 6px;
}
.tab {
  flex: 1; padding: 11px 0; text-align: center; font-weight: 800; font-size: 14px;
  border: none; background: transparent; color: var(--muted); border-radius: 13px;
  cursor: pointer; font-family: var(--font-body); transition: background .25s, color .25s, transform .25s var(--spring);
}
.tab:active { transform: scale(.95); }
.tab.active { background: var(--lav-soft); color: var(--lav-deep); }

.week-nav { display: flex; align-items: center; justify-content: space-between; margin: 14px 2px 4px; }
.week-nav .wn-label { font-weight: 700; font-size: 13px; color: var(--muted); font-family: var(--font-display); }
.wn-btn {
  border: var(--bw) solid var(--line); width: 38px; height: 38px; border-radius: 13px;
  background: var(--card); box-shadow: var(--shadow); font-size: 16px; cursor: pointer;
  color: var(--ink); transition: transform .25s var(--spring);
}
.wn-btn:active { transform: scale(.85); }

.f-label {
  display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin: 0 4px 6px;
}
textarea.hw, input.hw, select.hw {
  width: 100%; min-height: 110px; border: 2px solid var(--line-strong); border-radius: var(--radius-s);
  padding: 14px; font-family: var(--font-body); font-size: 15px; color: var(--ink);
  resize: vertical; outline: none; background: var(--input-bg); margin-bottom: 14px;
  transition: border-color .2s, background .2s;
}
input.hw { min-height: 0; height: 54px; resize: none; }
textarea.hw:focus, input.hw:focus { border-color: var(--lav); background: var(--input-focus-bg); }

.skeleton {
  height: 64px; border-radius: var(--radius); margin-bottom: 12px;
  background: linear-gradient(90deg, var(--card) 25%, var(--lav-soft) 50%, var(--card) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- full-screen sliding overlay (student card) ---------- */
.overlay {
  position: fixed; inset: 0; background: var(--bg); z-index: 60;
  overflow-y: auto; padding: 16px 16px 70px;
  transform: translateX(105%); transition: transform .45s var(--spring);
}
.overlay.open { transform: translateX(0); }
.back-btn {
  border: var(--bw) solid var(--line); background: var(--card); box-shadow: var(--shadow);
  border-radius: 14px; padding: 10px 16px; font-family: var(--font-body);
  font-weight: 800; font-size: 14px; color: var(--ink); cursor: pointer;
  margin-bottom: 14px; transition: transform .25s var(--spring);
}
.back-btn:active { transform: scale(.93); }
.stat-row { display: flex; gap: 10px; margin: 10px 0 4px; }
.stat-chip {
  flex: 1; background: var(--card); background-image: var(--pane);
  border: var(--bw) solid var(--line);
  border-radius: var(--radius-s); box-shadow: var(--shadow);
  padding: 12px 8px; text-align: center;
}
.stat-chip .v { font-weight: 600; font-size: 19px; font-family: var(--font-display); }
.stat-chip .l { font-size: 11px; color: var(--muted); font-weight: 700; }
details.box { background: var(--card); border: var(--bw) solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 4px 16px; margin-bottom: 12px; }
details.box summary { font-weight: 800; padding: 12px 0; cursor: pointer; list-style: none; }
details.box summary::after { content: '›'; float: right; color: var(--muted);
  transition: transform .3s var(--spring); }
details.box[open] summary::after { transform: rotate(90deg); }
.hw-row { display: flex; align-items: center; gap: 10px; padding: 9px 0;
  border-top: 1px solid var(--line); font-size: 13.5px; }
.hw-row .ico { font-size: 17px; }
.hw-row .t { flex: 1; }
.hw-row .d { color: var(--muted); font-size: 12px; }

/* ---------- games ---------- */
.g-overlay {
  position: fixed; inset: 0; background: var(--bg); z-index: 80;
  overflow-y: auto; padding: 16px 16px 50px;
  transform: translateY(105%); transition: transform .45s var(--spring);
}
.g-overlay.open { transform: none; }
.g-stage { max-width: 480px; margin: 0 auto; text-align: center; position: relative; }
.g-progress { color: var(--muted); font-weight: 800; font-size: 13px; margin: 8px 0 18px; }
.g-item { font-size: 96px; line-height: 1.2; margin: 26px 0 30px; transition: transform .5s var(--spring), opacity .4s; }
.g-item.g-fly { transform: translateY(120px) scale(.3); opacity: 0; }
.g-item.g-return { animation: g-back .8s var(--spring); }
@keyframes g-back { 30% { transform: translateX(-40px) rotate(-8deg); } 100% { transform: none; } }
.g-dot { width: 130px; height: 130px; border-radius: 50%; margin: 30px auto; box-shadow: var(--shadow); }
.g-word { font-size: 30px; font-weight: 600; margin: 30px 0; min-height: 44px; font-family: var(--font-display); }
.g-word .g-gap { color: var(--lav-deep); border-bottom: 3px solid var(--lav); padding: 0 4px; }
.g-word.g-shake { animation: g-shk .4s; }
.g-cols { display: flex; gap: 12px; justify-content: center; }
.g-cols.g-words { flex-direction: column; align-items: stretch; }
.g-col {
  flex: 1; min-height: 76px; border: var(--bw) solid var(--line); border-radius: 20px;
  background: var(--card); background-image: var(--pane); box-shadow: var(--shadow);
  font-family: var(--font-body); font-size: 19px; font-weight: 800; color: var(--ink);
  cursor: pointer; transition: transform .25s var(--spring); padding: 12px;
}
.g-col:active { transform: scale(.93); }
.g-col.g-shake { animation: g-shk .4s; }
@keyframes g-shk { 25% { transform: translateX(-7px); } 75% { transform: translateX(7px); } }
.g-rulecard { background: var(--card); border: var(--bw) solid var(--line);
  border-radius: 24px; box-shadow: var(--shadow); padding: 28px 22px; margin-top: 24px; }
.g-bigemoji { font-size: 56px; margin-bottom: 8px; }
.g-rule { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin: 10px 0 20px; text-align: left; }
.g-part {
  position: absolute; top: 45%; font-size: 26px; pointer-events: none;
  animation: g-pop 1.2s ease-out forwards;
}
@keyframes g-pop { to { transform: translate(var(--dx), -160px) rotate(40deg); opacity: 0; } }
.g-imp {
  position: absolute; top: 38%; left: 50%; transform: translateX(-50%);
  font-size: 54px; pointer-events: none; animation: g-imp 1s var(--spring) forwards;
}
@keyframes g-imp {
  0% { transform: translateX(-50%) scale(0) rotate(-20deg); }
  35% { transform: translateX(-50%) scale(1.2) rotate(10deg); }
  55% { transform: translateX(-50%) scale(1) rotate(-8deg); }
  100% { transform: translateX(-50%) scale(.6) translateY(60px) rotate(20deg); opacity: 0; }
}
.g-hint { color: var(--muted); font-weight: 800; margin-top: 14px; animation: rise .4s var(--spring); }

/* twemoji images in games */
.g-img { width: 132px; height: 132px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.15)); }
.g-item-txt { font-size: 96px; }
.g-box-img { width: 34px; height: 34px; margin-bottom: 4px; }
.g-mid-img { width: 64px; height: 64px; }
.g-imp-img { width: 56px; height: 56px; }

/* game labels and sentences */
.g-item-name { font-size: 21px; font-weight: 800; margin-top: 12px; color: var(--ink); }
.g-sent { color: var(--muted); font-size: 15px; line-height: 1.5; min-height: 24px; margin: -14px 0 18px; animation: rise .4s var(--spring); }
.g-sent b { color: var(--mint-deep); }
.g-dot { border: 3px solid var(--line-strong); }
.g-col:disabled { opacity: .55; }
