:root {
  --bg: #f6f3ee;
  --bg2: #fffaf4;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --muted: #7a736a;
  --line: rgba(26, 26, 26, .08);
  --orange: #ff6a00;
  --orange2: #ff8a2b;
  --orange-deep: #e85d00;
  --shadow: 0 16px 40px rgba(255, 106, 0, .12);
  --radius: 18px;
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Unbounded", "Manrope", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.casino-body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(255,138,43,.22), transparent 60%),
    radial-gradient(700px 380px at 100% 0%, rgba(255,106,0,.12), transparent 55%),
    linear-gradient(180deg, var(--bg2), var(--bg));
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; }

.c-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255,250,244,.88);
  border-bottom: 1px solid var(--line);
}
.c-header__inner {
  max-width: 1240px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; gap: 18px;
}
.c-logo {
  font-family: var(--display);
  font-weight: 800; font-size: 22px; letter-spacing: -.03em;
  color: var(--orange); white-space: nowrap;
}
.c-logo--sm { font-size: 18px; margin-bottom: 8px; }
.c-nav { display: flex; gap: 6px; flex: 1; }
.c-nav a {
  padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 700; font-size: 14px;
}
.c-nav a:hover, .c-nav a.is-active { color: var(--ink); background: rgba(255,106,0,.1); }
.c-user { display: flex; align-items: center; gap: 10px; }
.c-balance {
  display: flex; align-items: baseline; gap: 6px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; box-shadow: var(--shadow);
}
.c-balance__label { color: var(--muted); font-size: 12px; font-weight: 600; }
.c-balance strong { font-family: var(--display); font-size: 16px; }
.c-currency { color: var(--orange); font-weight: 800; }
.c-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 12px;
  background: linear-gradient(135deg, var(--orange), var(--orange2)); color: #fff;
}
.c-btn {
  border: 0; border-radius: 12px; padding: 10px 16px; cursor: pointer;
  font-weight: 800; transition: .15s ease; white-space: nowrap;
}
.c-btn--orange {
  background: linear-gradient(135deg, var(--orange), var(--orange2));
  color: #fff; box-shadow: 0 10px 24px rgba(255,106,0,.28);
}
.c-btn--orange:hover { filter: brightness(1.05); transform: translateY(-1px); }
.c-btn--ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.c-btn--soft { background: #fff; border: 1px solid var(--line); color: var(--muted); }
.c-btn--block { width: 100%; }
.c-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.c-burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
}
.c-burger span {
  display: block; width: 18px; height: 2px;
  background: var(--ink); border-radius: 2px;
}
.c-only-desk { display: inline-flex; align-items: center; justify-content: center; }

.c-main { max-width: 1240px; margin: 0 auto; padding: 28px 20px 60px; }

.c-hero {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px;
  margin-bottom: 36px; align-items: stretch;
}
.c-hero__copy {
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  padding: 36px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.c-hero__copy::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px;
  border-radius: 50%; background: rgba(255,106,0,.12);
}
.c-eyebrow { color: var(--orange); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; margin: 0 0 10px; }
.c-hero h1 {
  font-family: var(--display); font-size: clamp(28px, 4vw, 44px); margin: 0 0 12px; letter-spacing: -.04em; line-height: 1.1;
}
.c-hero p { color: var(--muted); margin: 0 0 22px; max-width: 46ch; line-height: 1.5; }
.c-hero__art {
  border-radius: 28px; min-height: 220px;
  background:
    linear-gradient(145deg, rgba(255,106,0,.95), rgba(255,168,76,.85)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 12px, transparent 12px 24px);
  display: flex; align-items: end; padding: 24px; color: #fff;
  box-shadow: var(--shadow);
}
.c-hero__art strong { font-family: var(--display); font-size: 28px; display: block; }

.c-section { margin-bottom: 40px; }
.c-section__head {
  display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px;
}
.c-section__head h2 {
  font-family: var(--display); font-size: 24px; margin: 0; letter-spacing: -.03em;
}
.c-section__head p { margin: 0; color: var(--muted); }

.c-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.c-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 210px; padding: 16px; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 10px 30px rgba(0,0,0,.04);
  transition: transform .18s ease, box-shadow .18s ease;
}
.c-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.c-card__badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,.92); color: var(--orange);
  font-size: 11px; font-weight: 800; padding: 5px 9px; border-radius: 999px;
}
.c-card__badge.hot { background: var(--orange); color: #fff; }
.c-card__visual {
  position: absolute; inset: 0 0 70px 0;
  display: grid; place-items: center; font-size: 56px;
  background: linear-gradient(180deg, rgba(255,138,43,.18), transparent);
}
.c-card h3 {
  position: relative; margin: 0; font-family: var(--display); font-size: 15px; letter-spacing: -.02em;
}
.c-card span {
  position: relative; color: var(--muted); font-size: 12px; font-weight: 600; margin-top: 4px;
}

.c-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px;
  padding: 22px; box-shadow: var(--shadow);
}
.c-back {
  display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700;
  margin-bottom: 14px;
}
.c-back:hover { color: var(--orange); }
.c-game-title {
  font-family: var(--display); font-size: clamp(22px, 3vw, 32px); margin: 0 0 6px; letter-spacing: -.03em;
}
.c-game-sub { color: var(--muted); margin: 0 0 18px; }

.c-betbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0;
}
.c-betbar input {
  width: 120px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fffaf4;
}
.c-choice-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.c-choice, .ow-choice {
  border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 12px 14px;
  cursor: pointer; font-weight: 700; color: var(--ink);
}
.c-choice.active, .ow-choice.active, .c-choice:hover, .ow-choice:hover {
  border-color: var(--orange); background: rgba(255,106,0,.08); color: var(--orange-deep);
}
.c-result, .ow-result { min-height: 28px; font-weight: 800; margin-top: 10px; }
.c-result.win, .ow-result.win { color: #149a4a; }
.c-result.lose, .ow-result.lose { color: #d64545; }
.ow-mult, .c-mult {
  font-family: var(--display); font-size: 40px; color: var(--orange); text-align: center; margin: 8px 0;
}
.ow-board { display: grid; gap: 6px; margin: 14px auto; max-width: 420px; }
.ow-board.sz5 { grid-template-columns: repeat(5, 1fr); }
.ow-board.sz6 { grid-template-columns: repeat(6, 1fr); }
.ow-board.sz7 { grid-template-columns: repeat(7, 1fr); }
.ow-cell {
  aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); background: #fffaf4;
  display: grid; place-items: center; cursor: pointer; font-size: 18px;
}
.ow-cell.safe { background: rgba(20,154,74,.12); border-color: #149a4a; }
.ow-cell.boom { background: rgba(214,69,69,.12); border-color: #d64545; }
.ow-cell.locked { pointer-events: none; opacity: .75; }
.ow-cards-row, .ow-thimbles, .ow-dice-box { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.ow-cardface, .ow-thimble, .ow-wire, .ow-die, .ow-coin {
  border: 1px solid var(--line); background: #fff; border-radius: 14px;
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 20px rgba(0,0,0,.05);
}
.ow-cardface { width: 84px; height: 110px; font-size: 28px; }
.ow-thimble { width: 90px; height: 90px; border-radius: 50% 50% 40% 40%; font-size: 22px; }
.ow-wire { width: min(280px, 100%); height: 54px; font-weight: 800; }
.ow-wire.red { box-shadow: inset 0 0 0 2px #ff4757; }
.ow-wire.blue { box-shadow: inset 0 0 0 2px #3d8bfd; }
.ow-wire.yellow { box-shadow: inset 0 0 0 2px #ffd54f; }
.ow-wire.green { box-shadow: inset 0 0 0 2px #00c853; }
.ow-die { width: 64px; height: 64px; font-size: 28px; font-weight: 800; }
.ow-coin {
  width: 120px; height: 120px; border-radius: 50%; margin: 16px auto; font-size: 42px; font-weight: 800;
  background: radial-gradient(circle at 30% 30%, #ffe082, #f9a825 60%, #ef6c00); color: #3e2723;
}
.ow-panel-title { font-family: var(--display); font-size: 22px; margin: 0 0 4px; }
.ow-panel-sub { color: var(--muted); margin: 0 0 14px; }
.ow-bet-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }

.c-footer { border-top: 1px solid var(--line); padding: 28px 20px; margin-top: 20px; background: rgba(255,255,255,.55); }
.c-footer__inner { max-width: 1240px; margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.c-footer p { color: var(--muted); margin: 0; max-width: 42ch; font-size: 14px; }
.c-footer__links { display: flex; gap: 14px; flex-wrap: wrap; font-weight: 700; color: var(--muted); }
.c-fk-badge {
  display: flex; justify-content: center; padding: 16px 20px 28px;
}
.c-fk-badge a { display: inline-block; line-height: 0; }
.c-fk-badge img { max-width: min(240px, 70vw); height: auto; border-radius: 8px; }
body.has-tabbar .c-fk-badge {
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

.c-modal[hidden], .c-sheet[hidden] { display: none !important; }
.c-modal, .c-sheet {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: flex-end; justify-content: center;
}
.c-sheet__backdrop, .c-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(20,14,8,.48);
  backdrop-filter: blur(3px);
}
.c-sheet__panel, .c-modal__panel {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -20px 60px rgba(0,0,0,.25);
  max-height: min(92vh, 760px);
  overflow: auto;
  animation: cSheetUp .28s cubic-bezier(.2,.8,.2,1);
}
.c-sheet__grab {
  width: 42px; height: 4px; border-radius: 99px;
  background: rgba(0,0,0,.14);
  margin: 4px auto 12px;
}
.c-sheet__x, .c-modal__x {
  position: absolute; right: 12px; top: 10px;
  border: 0; background: rgba(0,0,0,.05);
  width: 36px; height: 36px; border-radius: 50%;
  font-size: 24px; line-height: 1; cursor: pointer; color: var(--muted);
}
.c-sheet h3, .c-modal h3 { margin: 0 0 6px; font-family: var(--display); padding-right: 36px; }
.c-muted { color: var(--muted); margin: 0 0 14px; }

@media (min-width: 901px) {
  .c-modal, .c-sheet { align-items: center; padding: 20px; }
  .c-sheet__panel, .c-modal__panel {
    border-radius: 20px;
    padding: 24px;
    animation: cFadeIn .2s ease;
  }
  .c-sheet__grab { display: none; }
}

@keyframes cSheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
@keyframes cFadeIn {
  from { opacity: .4; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.c-pay-list { display: grid; gap: 8px; margin-bottom: 14px; }
.c-pay {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.c-pay small { color: var(--muted); font-weight: 700; font-size: 12px; }
.c-pay:has(input:checked) { border-color: var(--orange); background: rgba(255,106,0,.06); }
.c-pay__name { flex: 1; }
.c-pay__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.c-pay__badge {
  font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .02em;
  padding: 2px 8px; border-radius: 999px; text-transform: lowercase;
}
.c-pay__badge--on { background: rgba(34,160,90,.12); color: #1a7a45; }
.c-pay__badge--off { background: rgba(160,40,40,.1); color: #9a2a2a; }
.c-pay--off {
  opacity: .55; cursor: not-allowed; background: rgba(0,0,0,.03);
}
.c-pay--off input { pointer-events: none; }
.c-field { display: grid; gap: 6px; font-weight: 700; margin-bottom: 12px; }
.c-field input {
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-weight: 600;
}
.c-alert { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #ffe4e4; color: #a11818; font-weight: 700; }
.c-alert--ok { background: #e5f8ec; color: #146b35; }
.c-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.c-chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 12px; font-weight: 800; font-size: 13px; cursor: pointer; color: var(--ink);
}
.c-chip:hover, .c-chip.is-active {
  border-color: var(--orange); background: rgba(255,106,0,.08); color: var(--orange-deep);
}

/* Mobile drawer extras */
.c-scrim[hidden], .c-drawer[hidden] { display: none !important; }
.c-scrim {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20,14,8,.4);
  backdrop-filter: blur(2px);
}
.c-drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(320px, 86vw);
  z-index: 110;
  background: #fffaf4;
  border-right: 1px solid var(--line);
  box-shadow: 20px 0 50px rgba(0,0,0,.18);
  display: flex; flex-direction: column;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px));
  animation: cDrawerIn .24s ease;
  overflow: auto;
}
.c-drawer__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.c-drawer__user { color: var(--muted); font-size: 13px; font-weight: 700; margin-top: 4px; }
.c-drawer__close {
  width: 40px; height: 40px; border: 0; border-radius: 12px;
  background: rgba(0,0,0,.05); font-size: 26px; color: var(--muted); cursor: pointer; line-height: 1;
}
.c-drawer__nav { display: flex; flex-direction: column; gap: 4px; }
.c-drawer__nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: 14px;
  color: var(--muted); font-weight: 800; font-size: 15px;
}
.c-drawer__nav a i { width: 18px; text-align: center; color: var(--orange); }
.c-drawer__nav a.is-active, .c-drawer__nav a:hover {
  background: rgba(255,106,0,.1); color: var(--ink);
}
.c-drawer__actions {
  margin-top: auto; padding-top: 16px;
  display: grid; gap: 8px;
  border-top: 1px solid var(--line);
}
@keyframes cDrawerIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.c-tabbar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 0;
  background: rgba(255,250,244,.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -8px 30px rgba(0,0,0,.06);
}
.c-tabbar__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; min-height: 52px;
  border: 0; background: transparent;
  color: var(--muted); font-size: 10px; font-weight: 800;
  font-family: var(--font); cursor: pointer; padding: 6px 2px;
  text-decoration: none;
}
.c-tabbar__item i { font-size: 17px; }
.c-tabbar__item.is-active, .c-tabbar__item:hover { color: var(--orange); }
.c-tabbar__item--main { position: relative; top: -10px; }
.c-tabbar__fab {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--orange), var(--orange2));
  color: #fff; font-size: 22px;
  box-shadow: 0 10px 24px rgba(255,106,0,.35);
  margin-bottom: 2px;
}
.c-tabbar__item--main span:last-child { color: var(--orange); }
html.is-locked, body.is-locked {
  overflow: hidden !important;
  touch-action: none;
}

.minefield { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 360px; margin: 0 auto; }
.mine {
  aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); background: #fffaf4;
  font-weight: 800; cursor: pointer;
}
.mine:disabled { opacity: .6; }

/* Cases lobby */
.egg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.egg-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.egg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(255,106,0,.18);
}
.egg-card__cover {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  background: linear-gradient(160deg, #fff3e6, #ffe0c2);
}
.egg-card__price {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
}
.egg-card__body { padding: 14px 16px 18px; }
.egg-card__body h3 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: -.02em;
}
.egg-card__body span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.c-guest-banner {
  max-width: 1240px;
  margin: 0 auto 18px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,106,0,.28);
  background: linear-gradient(90deg, rgba(255,106,0,.14), rgba(255,106,0,.04));
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}
.c-guest-banner a { color: var(--orange-deep); text-decoration: underline; }

.c-legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 8px 4px 40px;
}
.c-legal h1 {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 10px;
  color: var(--ink);
}
.c-legal .lead {
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 28px;
  line-height: 1.5;
}
.c-legal h2 {
  font-family: var(--display);
  font-size: 18px;
  margin: 28px 0 10px;
  color: var(--ink);
}
.c-legal p, .c-legal li {
  color: var(--ink);
  line-height: 1.65;
  font-weight: 600;
  margin: 0 0 12px;
  opacity: .88;
}
.c-legal ul { padding-left: 1.2em; margin: 0 0 12px; }
.c-faq details {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.65);
  border-radius: 14px;
  margin-bottom: 10px;
  padding: 14px 16px;
}
.c-faq summary {
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  color: var(--ink);
}
.c-faq summary::-webkit-details-marker { display: none; }
.c-faq details[open] summary { color: var(--orange-deep); margin-bottom: 8px; }
.c-pay-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
.c-pay-table th, .c-pay-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 8px;
  text-align: left;
  font-weight: 700;
  color: var(--ink);
}
.c-ref-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 28px;
}
.c-ref-stat {
  border: 1px solid var(--line);
  background: rgba(255,106,0,.06);
  border-radius: 16px;
  padding: 16px;
}
.c-ref-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
}
.c-ref-stat strong {
  font-family: var(--display);
  font-size: 22px;
  color: var(--ink);
}
.c-ref-copy {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 10px 0 18px;
}
.c-ref-copy input {
  flex: 1;
  min-width: 220px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 600;
}

.c-bonus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.c-bonus-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(0,0,0,.04);
}
.c-bonus-card--wide {
  grid-column: 1 / -1;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.c-bonus-body { flex: 1; min-width: 0; }
.c-bonus-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; font-size: 20px; margin-bottom: 12px; flex-shrink: 0;
}
.c-bonus-icon--daily { background: rgba(255,106,0,.12); color: var(--orange); }
.c-bonus-icon--tg { background: rgba(34,158,217,.14); color: #2a9fd8; }
.c-bonus-icon--yt { background: rgba(255,0,0,.1); color: #e33; }
.c-bonus-icon--ig { background: rgba(225,48,108,.12); color: #e1306c; }
.c-bonus-icon--bot { background: rgba(45,180,120,.12); color: #1faa6e; }
.c-bonus-card h3 {
  font-family: var(--display);
  font-size: 18px;
  margin: 0 0 6px;
  letter-spacing: -.02em;
  color: var(--ink);
}
.c-bonus-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 12px;
  line-height: 1.45;
}
.c-bonus-reward {
  color: #1faa6e;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 12px;
}
.c-bonus-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.c-bonus-actions .c-btn { flex: 1 1 auto; min-width: 120px; text-align: center; }
.c-btn.is-done {
  opacity: .55;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .c-nav--desk a { padding: 8px 10px; font-size: 13px; }
  .c-header__inner { gap: 10px; }
}

@media (max-width: 900px) {
  .c-hero { grid-template-columns: 1fr; }
  .c-only-desk { display: none !important; }
  .c-header { z-index: 80; }
  .c-header__inner {
    padding: 10px 12px;
    gap: 10px;
  }
  .c-burger { display: flex; }
  .c-nav--desk { display: none !important; }
  .c-logo { font-size: 18px; flex: 1; text-align: center; }
  .c-user { margin-left: 0; gap: 6px; }
  .c-balance { padding: 7px 10px; }
  .c-balance__label { display: none; }
  .c-balance strong { font-size: 14px; }
  .c-tabbar { display: grid; }
  .c-footer { display: none; }
  body.has-tabbar .c-main { padding: 16px 14px calc(100px + env(safe-area-inset-bottom, 0px)); }
  .c-main { padding: 16px 14px 40px; }
  .c-hero__copy { padding: 22px; border-radius: 22px; }
  .c-section__head { flex-direction: column; align-items: flex-start; }
  .c-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .c-card { min-height: 170px; border-radius: 16px; }
  .egg-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .egg-card { min-height: 220px; }
  .egg-card__cover { height: 130px; }
  .c-panel { padding: 16px; border-radius: 18px; }
  .c-sheet__panel, .c-modal__panel { max-width: none; }
  .c-ref-stats { grid-template-columns: 1fr; }
  .c-bonus-grid { grid-template-columns: 1fr; }
  .c-bonus-card--wide { flex-direction: column; }
  .c-ref-copy { flex-direction: column; align-items: stretch; }
  .c-ref-copy input { min-width: 0; width: 100%; }
  .c-pay-table { font-size: 13px; display: block; overflow-x: auto; }
}

@media (max-width: 560px) {
  .c-user { gap: 6px; }
  .c-btn { padding: 9px 12px; font-size: 13px; }
  .c-hero h1 { font-size: clamp(24px, 8vw, 34px); }
  .ow-mult, .c-mult { font-size: 32px; }
  .ow-cardface { width: 70px; height: 94px; }
  .c-legal { padding: 4px 2px 24px; }
  .c-legal h1 { font-size: clamp(24px, 7vw, 34px); }
  .c-tabbar__fab { width: 48px; height: 48px; }
}

/* Telegram Mini App */
html.is-tgapp, body.is-tgapp {
  min-height: 100vh;
  min-height: var(--tg-viewport-stable-height, 100vh);
}
body.is-tgapp .c-header {
  padding-top: env(safe-area-inset-top, 0);
  background: rgba(255,250,244,.96);
}
body.is-tgapp .c-header__inner { padding-top: 10px; padding-bottom: 10px; }
body.is-tgapp.has-tabbar .c-main {
  padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
}
body.is-tgapp .c-footer { display: none; }
body.is-tgapp .c-tabbar {
  display: grid;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}
body.is-tgapp .c-burger { display: flex; }
body.is-tgapp .c-nav--desk { display: none !important; }
body.is-tgapp .c-only-desk { display: none !important; }
body.is-tgapp .c-logo { flex: 1; text-align: center; font-size: 18px; }

@media (min-width: 901px) and (max-width: 1100px) {
  .c-bonus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-main { padding: 22px 16px 48px; }
}

@media (hover: none) {
  .c-card:hover, .egg-card:hover { transform: none; }
  .c-btn--orange:hover { transform: none; }
}

