/* мини-приложение · glass */
main { animation: fadeUp .35s var(--ease); }

/* нижнее меню — плавающая стеклянная капсула */
.tabs { position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 50; display: flex; max-width: 536px;
  margin: 0 auto; padding: 6px; border-radius: 26px; background: rgba(16, 20, 42, .55); -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%); border: 1px solid var(--line); box-shadow: var(--hi), 0 14px 40px rgba(0, 0, 0, .5); }
.tabs button { position: relative; flex: 1; border: 0; background: none; color: var(--muted); font: 600 11px/1 var(--font); padding: 9px 0 7px;
  display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; border-radius: 20px; transition: color .25s, background .25s; }
.tabs svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .3s var(--ease); }
.tabs button.active { color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); }
.tabs button.active svg { transform: translateY(-1px) scale(1.08); stroke: url(#tabgrad); filter: drop-shadow(0 2px 8px rgba(120, 130, 255, .6)); }

/* шапка */
.top { display: flex; align-items: center; justify-content: space-between; margin: 2px 2px 16px; }
.pill { font: 650 13px/1 var(--font); padding: 8px 12px; border-radius: 999px; background: var(--glass); color: var(--text); cursor: pointer;
  border: 1px solid var(--line); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--hi); }

/* вход по шагам */
.hello { margin: 4px 4px 14px; }
.hello h1 { font-size: 30px; }
.steps { padding: 6px 16px; }
.step { display: flex; gap: 14px; align-items: flex-start; padding: 15px 0; transition: opacity .3s; }
.step + .step { border-top: 1px solid var(--line-soft); }
.step.locked { opacity: .45; }
.step .grow > .muted { display: block; }
.num { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 750; font-size: 15px;
  background: var(--glass-strong); color: var(--muted); border: 1px solid var(--line); transition: background .3s, color .3s; }
.step.active .num { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 0 0 6px rgba(120, 120, 255, .16), var(--glow); }
.step.done .num { background: var(--ok); color: #05281b; border-color: transparent; box-shadow: 0 0 18px rgba(70, 227, 165, .45); }
.step b { display: block; font-size: 17px; margin-bottom: 3px; }
.state { display: inline-flex; align-items: center; gap: 7px; margin-top: 9px; font-size: 13px; color: var(--muted); padding: 5px 10px;
  border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-soft); }
.state.ok { color: var(--ok); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 10px var(--warn); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
.cta-area { margin: 6px 0 14px; }
.helpers { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px 8px; margin-top: 6px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feature { padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .045); border: 1px solid var(--line-soft); }
.feature .ico { font-size: 24px; display: block; margin-bottom: 8px; }
.feature b { display: block; font-size: 15px; }
.feature span.muted { font-size: 12px; line-height: 1.3; display: block; margin-top: 2px; }

/* проверка */
.vs { text-align: center; padding: 6px 0 4px; }
.ring { width: 64px; height: 64px; margin: 8px auto 18px; border-radius: 50%; border: 4px solid rgba(255, 255, 255, .1); border-top-color: #8a8bff;
  animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.okmark { width: 72px; height: 72px; margin: 4px auto 14px; filter: drop-shadow(0 0 18px rgba(70, 227, 165, .5)); }
.okmark circle { fill: none; stroke: var(--ok); stroke-width: 4; stroke-dasharray: 170; stroke-dashoffset: 170; animation: draw .6s .05s forwards var(--ease); }
.okmark path { fill: none; stroke: var(--ok); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 50;
  animation: draw .4s .5s forwards var(--ease); }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* «Доступ открыт» */
.overlay { position: fixed; inset: 0; z-index: 200; background: rgba(7, 10, 23, .7); -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px; animation: fade .3s; }
.overlay .okmark { width: 116px; height: 116px; }
.overlay h1 { animation: fadeUp .5s .7s both var(--ease); font-size: 32px; }
.overlay p { animation: fadeUp .5s .85s both var(--ease); }
.overlay .btn { animation: fadeUp .5s 1s both var(--ease); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 201; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 8px; height: 14px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ставка дня */
.hero { position: relative; overflow: hidden; padding: 18px;
  background: linear-gradient(150deg, rgba(138, 107, 255, .28) 0%, rgba(91, 140, 255, .14) 45%, rgba(255, 255, 255, .04) 100%);
  border-color: rgba(160, 150, 255, .35); }
.hero::before { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 198, 255, .45), transparent 65%); filter: blur(10px); pointer-events: none; }
.hero .label { font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.hero .meta { color: var(--muted); font-size: 13px; margin-top: 12px; }
.hero .teams { font-size: 23px; font-weight: 750; line-height: 1.2; margin: 4px 0 14px; letter-spacing: -.015em; }
.hero .teams span { color: var(--muted); font-weight: 400; margin: 0 5px; }
.outcome { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; border-radius: 16px;
  background: rgba(0, 0, 0, .22); border: 1px solid var(--line); margin-bottom: 12px; box-shadow: var(--hi); }
.outcome b { font-size: 18px; }
.coef { font-weight: 800; padding: 6px 11px; border-radius: 11px; background: var(--grad); color: #fff; white-space: nowrap; font-size: 15px;
  box-shadow: 0 4px 14px rgba(110, 120, 255, .4); }
.reason { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.note { color: var(--muted); font-size: 12px; text-align: center; margin-top: 10px; opacity: .85; }
.lockbox { text-align: center; padding: 22px 16px 18px; }
.lockbox .ico { font-size: 38px; margin-bottom: 6px; filter: drop-shadow(0 4px 16px rgba(140, 120, 255, .6)); }
.timer { display: inline-block; margin-top: 4px; padding: 6px 14px; border-radius: 999px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line);
  font-variant-numeric: tabular-nums; font-weight: 700; }

.leg { display: flex; gap: 10px; padding: 11px 0; align-items: center; }
.leg + .leg { border-top: 1px solid var(--line-soft); }
.leg .grow b { display: block; }
.leg .k, .cards .k { color: #b8c4ff; font-weight: 750; }
.total { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line-soft); font-weight: 650; }

/* матчи */
.m { display: flex; gap: 12px; align-items: center; padding: 13px 14px; cursor: pointer; transition: background .15s, transform .12s var(--ease); }
.m:active { transform: scale(.985); background: rgba(255, 255, 255, .06); }
.m .time { flex: none; width: 54px; font-size: 13px; color: var(--muted); line-height: 1.25; }
.m .time b { display: block; color: var(--text); font-size: 15px; }
.m .names { font-weight: 650; line-height: 1.25; }
.m .sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.m .k { flex: none; font-size: 13px; padding: 6px 9px; border-radius: 10px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line-soft); }
.live { color: var(--bad); font-weight: 800; font-size: 11px; letter-spacing: .06em; }
.live::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--bad); margin-right: 5px;
  box-shadow: 0 0 8px var(--bad); animation: pulse 1.2s infinite; }
.group { margin: 20px 6px 8px; color: var(--muted); font-size: 13px; font-weight: 650; }
.cards { padding: 0; overflow: hidden; }
.cards .m + .m { border-top: 1px solid var(--line-soft); }

.odds { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin: 14px 0; }
.odd { text-align: center; padding: 11px 6px; border-radius: 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.odd b { display: block; font-size: 19px; color: var(--text); margin-top: 3px; }
.odd.fav { border-color: rgba(150, 150, 255, .6); background: rgba(120, 120, 255, .14); box-shadow: 0 0 20px rgba(120, 120, 255, .2); }
.odd.fav b { color: #c7ceff; }
.formrow { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 6px 0; }

/* игры */
.games { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.game { position: relative; overflow: hidden; text-align: left; padding: 16px; margin: 0; cursor: pointer; color: inherit; font: inherit;
  transition: transform .15s var(--ease); }
.game::before { content: ""; position: absolute; width: 120px; height: 120px; right: -40px; top: -40px; border-radius: 50%; opacity: .5;
  background: radial-gradient(circle, var(--tint, #7b6bff), transparent 70%); pointer-events: none; }
.game:active { transform: scale(.96); }
.game .ico { position: relative; font-size: 32px; display: block; margin-bottom: 12px; }
.game b { position: relative; display: block; font-size: 17px; }
.game span.muted { position: relative; font-size: 13px; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass-strong); color: var(--text);
  font-size: 22px; cursor: pointer; box-shadow: var(--hi); }
.stepper button:active { transform: scale(.94); }
.stepper b { flex: 1; text-align: center; font-size: 24px; font-variant-numeric: tabular-nums; }
.result { background: rgba(0, 0, 0, .22); border: 1px solid var(--line-soft); border-radius: 16px; padding: 14px; margin: 14px 0; }
.result .row + .row { margin-top: 8px; }
.result b { font-size: 18px; }
.mines { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 12px; }
.mines i { aspect-ratio: 1; border-radius: 10px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line-soft); transition: background .3s, box-shadow .3s; }
.mines i.safe { background: rgba(70, 227, 165, .32); border-color: rgba(70, 227, 165, .5); box-shadow: 0 0 14px rgba(70, 227, 165, .3); }
.tips { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.tips li { margin: 5px 0; }
.plinko { display: flex; align-items: flex-end; gap: 3px; height: 90px; }
.plinko i { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #8a8bff, #5b8cff); transition: height .4s var(--ease); }
.plinko i.edge { background: var(--warn); min-height: 3px; box-shadow: 0 0 10px var(--warn); }

/* клуб */
.level-card { position: relative; overflow: hidden; text-align: center; padding: 26px 18px 20px; }
.level-card::before { content: ""; position: absolute; inset: -40% -20% auto; height: 260px; border-radius: 50%; filter: blur(30px); opacity: .55;
  background: radial-gradient(circle, var(--lvl, #8a6bff), transparent 65%); pointer-events: none; }
.level-card > * { position: relative; }
.level-card.bronze { --lvl: #d0844a; } .level-card.silver { --lvl: #b8c6e6; } .level-card.gold { --lvl: #ffc542; } .level-card.platinum { --lvl: #6fe3ff; }
.level-card .big { font-size: 56px; line-height: 1; filter: drop-shadow(0 6px 22px var(--lvl)); animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.level-card h2 { margin: 12px 0 2px; font-size: 26px; }
.bar { height: 10px; border-radius: 10px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line-soft); overflow: hidden; margin: 16px 0 8px; }
.bar i { display: block; height: 100%; width: 0; border-radius: 10px; background: var(--grad); transition: width .9s .15s var(--ease); position: relative; overflow: hidden;
  box-shadow: 0 0 12px rgba(120, 130, 255, .6); }
.bar i::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent);
  animation: shimmer 2.4s 1s infinite; }
.perk { display: flex; gap: 12px; align-items: center; padding: 12px 0; }
.perk + .perk { border-top: 1px solid var(--line-soft); }
.perk .ico { font-size: 24px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .06); flex: none; }
.perk.closed { opacity: .5; }
.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 32px; background: rgba(255, 255, 255, .12); border: 1px solid var(--line); transition: background .25s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3); transition: transform .25s var(--ease); }
.switch input:checked + span { background: var(--grad); border-color: transparent; }
.switch input:checked + span::after { transform: translateX(20px); }

/* баннеры */
.vpn { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; border-radius: var(--radius);
  padding: 15px 16px; margin-bottom: 12px; border: 1px solid rgba(255, 255, 255, .18); box-shadow: var(--hi), var(--shadow);
  background: linear-gradient(135deg, rgba(110, 70, 255, .55), rgba(30, 120, 255, .45)); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  transition: transform .15s var(--ease); }
.vpn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .18) 50%, transparent 70%);
  transform: translateX(-120%); animation: sheen 6s 2s infinite; }
.vpn:active { transform: scale(.985); }
.vpn .ico { font-size: 26px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .16); flex: none; }
.vpn small { display: block; opacity: .85; font-size: 13px; margin-top: 2px; }
.vpn > span:last-child { font-size: 22px; opacity: .7; }

/* режим просмотра для владельца */
.preview-bar { position: sticky; top: 8px; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px;
  margin-bottom: 12px; border-radius: 16px; background: rgba(255, 194, 94, .16); border: 1px solid rgba(255, 194, 94, .4); color: var(--warn);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); font-size: 13px; font-weight: 600; }
.preview-bar button { background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 10px; padding: 7px 11px; font: 600 13px var(--font); cursor: pointer; }
