:root {
  --bg: #080b0d;
  --surface-1: #0e1215;
  --surface-2: #14191d;
  --surface-3: #1a2024;
  --border: rgba(255, 255, 255, 0.09);
  --text-primary: #f2f4ef;
  --text-secondary: #929b96;
  --text-muted: #68716c;
  --accent: #a7c58f;
  --accent-strong: #bedba4;
  --accent-soft: rgba(167, 197, 143, 0.12);
  --positive: #9bd082;
  --negative: #d98272;
  --gold: #d8b65d;
  --silver: #aeb8bd;
  --bronze: #bc8069;
  --radius-card: 18px;
  --radius-btn: 14px;
  --radius-sheet: 24px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --max-width: 460px;
  --nav-height: 76px;
  --header-height: 56px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; }
.skip-link {
  position: absolute; left: -999px; top: -999px;
}
.skip-link:focus { left: 12px; top: 12px; background: var(--surface-2); padding: 8px 12px; border-radius: 8px; z-index: 100; }

/* App container */
.app {
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  background: var(--bg);
  overflow-x: clip;
}

/* Login */
.screen--login {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6) var(--space-4);
  position: relative;
  overflow: hidden;
}
.login-wrap {
  width: 100%;
  max-width: 380px;
  position: relative;
  z-index: 1;
}
.login-header { text-align: center; margin-bottom: var(--space-7); }
.brand { display: flex; align-items: center; gap: var(--space-3); justify-content: center; }
.brand--small { gap: 10px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(ellipse at 30% 20%, #1d2a22 0%, var(--surface-2) 58%);
  border: 1px solid rgba(167,197,143,0.28);
  display: grid; place-items: center;
  position: relative;
  box-shadow: 0 0 0 1px rgba(167,197,143,0.10), 0 4px 16px rgba(0,0,0,0.38), 0 0 22px rgba(167,197,143,0.09);
}
.brand-mark--small { width: 34px; height: 34px; }
.brand-mark__inner {
  font-weight: 800; font-size: 19px; letter-spacing: -0.03em;
  color: var(--text-primary);
  text-shadow: 0 1px 0 rgba(0,0,0,0.3);
}
.brand-mark::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  border: 1px solid rgba(167,197,143,0.22);
  box-shadow: 0 0 12px rgba(167,197,143,0.18);
  pointer-events: none;
  opacity: 0.9;
}
.brand-name { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; margin: 0; color: var(--text-primary); }
.brand-name--small { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; }
.brand-subtitle { color: var(--text-secondary); font-size: 13px; letter-spacing: 0.02em; margin: 8px 0 0; }
.login-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-6);
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.login-form .btn--primary {
  width: 100%;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary); }
.field__control { position: relative; display: flex; }
.input {
  width: 100%; height: 48px; padding: 0 44px 0 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  color: var(--text-primary);
  outline: none;
}
.input:focus { border-color: rgba(167,197,143,0.45); box-shadow: 0 0 0 3px var(--accent-soft); }
.field__error { color: var(--negative); font-size: 13px; margin: 0; }
.field__error[hidden] { display: none; }
.login-footnote { color: var(--text-muted); font-size: 12px; text-align: center; margin: var(--space-4) 0 0; }
.login-motif { position: absolute; inset: 0; pointer-events: none; opacity: 0.35; }
.motif-grid {
  position: absolute; inset: 10% -10% -20% -10%;
  background:
    linear-gradient(to right, transparent 0, transparent 49.5%, rgba(255,255,255,0.04) 49.5%, rgba(255,255,255,0.04) 50.5%, transparent 50.5%),
    linear-gradient(to bottom, transparent 0, transparent 49.5%, rgba(255,255,255,0.04) 49.5%, rgba(255,255,255,0.04) 50.5%, transparent 50.5%);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 20%, black 40%, transparent 70%);
}

/* Buttons */
.btn {
  height: 48px; padding: 0 var(--space-5);
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font-weight: 600; font-size: 14px;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; min-height: 44px;
  transition: opacity 150ms, transform 150ms, background 150ms, border-color 150ms;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn--primary { background: var(--accent); color: #0a0e0a; border-color: transparent; }
.btn--primary:hover { background: var(--accent-strong); }
.btn--primary:active { transform: scale(0.98); }
.btn--secondary { background: var(--surface-2); color: var(--text-primary); border-color: var(--border); }
.btn--secondary:hover { background: var(--surface-3); }
.btn--ghost { background: transparent; color: var(--text-secondary); border-color: var(--border); }
.btn--small { height: 36px; padding: 0 14px; font-size: 13px; }
.btn--large { width: 100%; font-size: 15px; }
.btn--danger { background: transparent; color: var(--negative); border-color: rgba(217,130,114,0.3); }
.btn--danger:hover { background: rgba(217,130,114,0.1); }
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid transparent; background: transparent; color: var(--text-secondary);
  display: grid; place-items: center; cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text-primary); border-color: var(--border); }
.icon-btn--small { width: 36px; height: 36px; }
.icon-btn--ghost { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; background: transparent; border: none; }
.icon-btn.is-loading svg { animation: spin 700ms linear infinite; }
.icon-btn.is-success { color: var(--accent); background: var(--accent-soft); border-color: rgba(167,197,143,0.24); }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn:focus-visible, .btn:focus-visible, .player-select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Shell */
.shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.shell[hidden] { display: none !important; }
.shell-header {
  height: var(--header-height); padding: 0 var(--space-4);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(8,11,13,0.8); backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 20;
}
.shell-header__right { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px;
  min-width: 180px; padding: 6px; box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  z-index: 30;
}
.menu[hidden] { display: none; }
.menu__item {
  width: 100%; text-align: left; padding: 10px 12px; border-radius: 10px;
  background: transparent; border: none; color: var(--text-primary); cursor: pointer; font-size: 14px;
}
.menu__item:hover { background: var(--surface-3); }
.menu__item--danger { color: var(--negative); }
/* Main content - leave room for fixed bottom nav */
.main { flex: 1; padding: var(--space-4) var(--space-4) calc(var(--nav-height) + var(--space-4) + env(safe-area-inset-bottom)); background: radial-gradient(ellipse 700px 400px at 50% 0%, rgba(167,197,143,0.03), transparent 60%); min-height: 50vh; }
.view { animation: fadeIn 180ms ease; }
.view[hidden] { display: none !important; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.view-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
.view-title { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; margin: 0; color: var(--text-primary); }
.view-header__actions { display: flex; align-items: center; gap: 8px; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-xs { font-size: 12px; }
.text-sm { font-size: 13px; }
.status { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.status:empty { display: none; }

/* Ranking */
.ranking-list { display: flex; flex-direction: column; gap: 8px; }
.rank-row {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(90deg, rgba(255,255,255,0.01), transparent), var(--surface-1);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 12px 14px;
  min-height: 62px;
  border-left: 3px solid transparent;
  transition: border-color 150ms, background 150ms;
}
.rank-row:hover { border-color: rgba(255,255,255,0.13); background: var(--surface-2); }
.rank-row:focus-within { border-color: rgba(167,197,143,0.28); }
.rank-pos {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; background: var(--surface-2); color: var(--text-secondary); flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.06);
  letter-spacing: -0.01em;
}
.rank-row--gold { border-left-color: var(--gold); background: linear-gradient(90deg, rgba(216,182,93,0.08), transparent 42%), var(--surface-1); }
.rank-row--gold .rank-pos { background: rgba(216,182,93,0.16); color: var(--gold); border: 1px solid rgba(216,182,93,0.32); box-shadow: 0 0 10px rgba(216,182,93,0.12); }
.rank-row--silver { border-left-color: var(--silver); background: linear-gradient(90deg, rgba(174,184,189,0.06), transparent 42%), var(--surface-1); }
.rank-row--silver .rank-pos { background: rgba(174,184,189,0.14); color: var(--silver); border: 1px solid rgba(174,184,189,0.26); }
.rank-row--bronze { border-left-color: var(--bronze); background: linear-gradient(90deg, rgba(188,128,105,0.07), transparent 42%), var(--surface-1); }
.rank-row--bronze .rank-pos { background: rgba(188,128,105,0.14); color: var(--bronze); border: 1px solid rgba(188,128,105,0.26); }
.rank-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--surface-3);
  display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--text-primary); flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.06);
}
.rank-main { flex: 1; min-width: 0; }
.rank-name { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-primary); }
.rank-sub { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.rank-elo { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--text-primary); }

/* Skeleton */
.skeleton-list { display: flex; flex-direction: column; gap: 8px; }
.skeleton-row, .skeleton-card {
  height: 64px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-card);
  animation: pulse 1.2s ease infinite alternate;
}
.skeleton-card { height: 88px; }
@keyframes pulse { from { opacity: 0.6; } to { opacity: 0.9; } }
.empty { text-align: center; padding: 32px 16px; color: var(--text-secondary); }
.empty__title { font-weight: 600; margin: 0 0 6px; color: var(--text-primary); }
.empty__text { margin: 0; font-size: 13px; }
.error { text-align: center; padding: 16px; background: rgba(217,130,114,0.08); border: 1px solid rgba(217,130,114,0.2); border-radius: 14px; }
.error__text { margin: 0 0 10px; color: var(--text-secondary); }

/* Teams */
.teams { display: grid; gap: 12px; margin-bottom: 16px; }
.team-card {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 16px;
}
.team-label { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 12px; }
.player-select {
  width: 100%; height: 52px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 8px 14px; margin-bottom: 8px; cursor: pointer; text-align: left;
}
.player-select:last-child { margin-bottom: 0; }
.player-select:hover { border-color: rgba(167,197,143,0.3); }
.player-select__label { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.player-select__value { font-weight: 600; font-size: 14px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.vs {
  text-align: center; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; color: var(--text-muted);
  padding: 4px;
}
.scores { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 20px 0 8px; min-width: 0; }
.score-control { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 14px; text-align: center; min-width: 0; overflow: hidden; }
.score-control.is-winner { border-color: rgba(167,197,143,0.35); box-shadow: 0 0 0 1px rgba(167,197,143,0.15); }
.score-label { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); display: block; margin-bottom: 10px; }
.score-row { display: flex; align-items: center; justify-content: center; gap: 8px; }
.score-btn {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-primary); font-size: 20px; font-weight: 600; cursor: pointer;
  display: grid; place-items: center; flex-shrink: 0;
}
.score-btn:active { transform: scale(0.96); }
.score-value { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; min-width: 36px; text-align: center; font-variant-numeric: tabular-nums; }
.score-divider { font-size: 18px; color: var(--text-muted); text-align: center; flex-shrink: 0; }
.winner-preview { text-align: center; font-size: 13px; font-weight: 600; color: var(--accent); min-height: 20px; margin: 8px 0 12px; }

/* Result */
.result-panel {
  margin-top: 16px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 16px;
  animation: fadeIn 180ms ease;
}
.result-panel[hidden] { display: none; }
.result-title { font-size: 16px; font-weight: 700; margin: 0 0 12px; }
.result-summary { font-size: 14px; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.4; }
.result-changes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.result-change {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px;
}
.result-change__name { font-weight: 600; font-size: 13px; }
.result-change__elo { font-size: 12px; color: var(--text-muted); }
.result-change__delta { font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }
.result-change__delta--positive { color: var(--positive); }
.result-change__delta--negative { color: var(--negative); }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* History */
.history-list { display: flex; flex-direction: column; gap: 10px; }
.history-card {
  background: var(--surface-1); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px;
  transition: border-color 150ms, background 150ms;
}
.history-card:hover { border-color: rgba(255,255,255,0.13); background: var(--surface-2); }
.history-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.history-teams { font-size: 13px; line-height: 1.4; }
.history-team { font-weight: 600; }
.history-team--loser { color: var(--text-secondary); font-weight: 400; }
.history-score { text-align: right; }
.history-score__line { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.history-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--text-muted); }
.history-details { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; }
.history-details[hidden] { display: none; }
.history-detail-row { display: flex; justify-content: space-between; font-size: 12px; padding: 4px 0; }
.history-detail-row span:first-child { color: var(--text-secondary); }
.detail-delta--positive { color: var(--positive); font-weight: 700; }
.detail-delta--negative { color: var(--negative); font-weight: 700; }
.history-actions { margin-top: 10px; display: flex; gap: 8px; }
.link-btn {
  background: none; border: none; color: var(--text-secondary); font-size: 12px; font-weight: 600; cursor: pointer; padding: 4px 0;
  text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--text-primary); }
.icon-btn--danger { color: var(--negative); }

/* Bottom nav - centered via margin auto to avoid transform offset */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  width: 100%; max-width: var(--max-width);
  margin: 0 auto;
  height: var(--nav-height);
  background: rgba(14,18,21,0.98); backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,0.07);
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  z-index: 20;
  box-shadow: 0 -1px 0 rgba(255,255,255,0.04), 0 -12px 32px rgba(0,0,0,0.35);
}
.nav-item {
  background: transparent; border: 1px solid transparent; color: var(--text-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  cursor: pointer; border-radius: 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  position: relative; padding-top: 2px;
}
.nav-item.is-active { color: var(--accent-strong); background: var(--accent-soft); border-color: rgba(167,197,143,0.18); }
.nav-item.is-active svg { color: var(--accent); }
.nav-item.is-active::before { content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 28px; height: 3px; background: var(--accent); border-radius: 999px; box-shadow: 0 0 8px rgba(167,197,143,0.5); }
.nav-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.nav-item__label { font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }
.nav-item.is-active .nav-item__label { font-weight: 700; color: var(--text-primary); }

/* Sheets */
.sheet { position: fixed; inset: 0; z-index: 40; display: grid; align-items: end; }
.sheet[hidden] { display: none !important; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.56); animation: fadeIn 150ms ease; }
.sheet__panel {
  position: relative; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  max-height: 80vh; overflow: auto; padding: 20px 16px calc(16px + env(safe-area-inset-bottom));
  animation: sheetIn 200ms ease;
}
.sheet__panel--confirm { text-align: left; }
@keyframes sheetIn { from { transform: translateY(16px); } to { transform: translateY(0); } }
.sheet__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sheet__title { font-size: 16px; font-weight: 700; margin: 0; }
.sheet__list { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow: auto; }
.sheet-item {
  width: 100%; text-align: left; padding: 14px; background: var(--surface-1); border: 1px solid var(--border);
  border-radius: 12px; font-weight: 600; color: var(--text-primary); cursor: pointer;
}
.sheet-item:disabled { opacity: 0.45; cursor: not-allowed; }
.sheet-item.is-selected { border-color: var(--accent); background: var(--accent-soft); }
.sheet__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.confirm-content { font-size: 14px; line-height: 1.5; color: var(--text-secondary); margin: 12px 0; }
.confirm-teams { font-weight: 700; color: var(--text-primary); }
.confirm-score { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0; }

/* Toast */
.toast-root {
  position: fixed; left: 50%; bottom: calc(var(--nav-height) + 16px + env(safe-area-inset-bottom));
  transform: translateX(-50%); z-index: 50;
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none; width: min(92%, 400px);
}
.toast {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-primary);
  padding: 12px 16px; border-radius: 14px; font-size: 13px; font-weight: 600;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35); animation: toastIn 180ms ease;
  pointer-events: auto;
}
.toast--error { border-color: rgba(217,130,114,0.3); }
.toast--success { border-color: rgba(167,197,143,0.3); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Narrow screens: prevent score controls from overflowing */
@media (max-width: 400px) {
  .scores { gap: 6px; }
  .score-control { padding: 10px 8px; }
  .score-btn { width: 36px; height: 36px; font-size: 18px; border-radius: 10px; }
  .score-value { font-size: 26px; min-width: 28px; }
  .score-row { gap: 6px; }
  .score-divider { font-size: 14px; }
  .team-card { padding: 14px; }
}
@media (max-width: 340px) {
  .score-value { font-size: 24px; }
  .score-btn { width: 34px; height: 34px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .view, .sheet__panel, .sheet__backdrop, .toast { animation: none; }
}

/* Focus */
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Responsive desktop shell - narrow premium */
@media (min-width: 720px) {
  body {
    background:
      radial-gradient(ellipse 900px 520px at 50% -8%, rgba(167,197,143,0.08), transparent 58%),
      linear-gradient(180deg, #080b0d 0%, #0a0f11 100%);
    position: relative;
  }
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
      linear-gradient(to right, transparent 0, transparent 49.6%, rgba(255,255,255,0.028) 49.6%, rgba(255,255,255,0.028) 50.4%, transparent 50.4%),
      linear-gradient(to bottom, transparent 0, transparent 49.6%, rgba(255,255,255,0.028) 49.6%, rgba(255,255,255,0.028) 50.4%, transparent 50.4%);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 78% 52% at 50% 0%, black 28%, transparent 72%);
    pointer-events: none;
    opacity: 0.5;
  }
  .app {
    border-left: 1px solid rgba(255,255,255,0.06);
    border-right: 1px solid rgba(255,255,255,0.06);
    box-shadow:
      0 1px 0 rgba(255,255,255,0.04) inset,
      0 20px 60px rgba(0,0,0,0.45),
      0 0 0 1px rgba(255,255,255,0.02);
    min-height: 100vh;
  }
  .shell { min-height: 100vh; }
}
