:root {
  color-scheme: dark;
  --bg: #111214;
  --panel: #191a1d;
  --panel-2: #202124;
  --line: #323338;
  --line-strong: #474950;
  --text: #f4f1ea;
  --muted: #aaa59b;
  --green: #35c271;
  --green-soft: rgba(53, 194, 113, 0.16);
  --red: #ff6b62;
  --red-soft: rgba(255, 107, 98, 0.15);
  --yellow: #f4bf45;
  --yellow-soft: rgba(244, 191, 69, 0.18);
  --blue: #66a6ff;
  --blue-soft: rgba(102, 166, 255, 0.15);
  --violet: #b990ff;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f5f0;
  --panel: #ffffff;
  --panel-2: #f1eee7;
  --line: #ddd7cd;
  --line-strong: #c7bfb3;
  --text: #171717;
  --muted: #69645d;
  --green-soft: rgba(26, 143, 79, 0.13);
  --red-soft: rgba(202, 56, 49, 0.12);
  --yellow-soft: rgba(187, 126, 0, 0.16);
  --blue-soft: rgba(42, 113, 203, 0.13);
  --shadow: 0 14px 35px rgba(56, 49, 38, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
}

body {
  overflow-x: hidden;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 14px;
  background:
    linear-gradient(140deg, rgba(53, 194, 113, 0.14), transparent 32%),
    linear-gradient(320deg, rgba(102, 166, 255, 0.14), transparent 36%),
    var(--bg);
}

.login-panel {
  width: min(460px, 100%);
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.login-panel .section-title {
  margin-top: 18px;
}

.login-help {
  display: grid;
  gap: 7px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: calc(12px + env(safe-area-inset-top)) 14px 12px;
  background: rgba(17, 18, 20, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

:root[data-theme="light"] .topbar {
  background: rgba(247, 245, 240, 0.9);
}

.icon-btn,
.nav-btn,
.action-icon {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius);
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  cursor: pointer;
}

.icon-btn:hover,
.nav-btn:hover,
.action-icon:hover {
  border-color: var(--line-strong);
}

.brand {
  min-width: 0;
}

.brand-mark {
  width: 30px;
  height: 30px;
  margin-right: 8px;
  border-radius: 7px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.28);
}

.brand-title {
  display: flex;
  align-items: center;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions {
  display: flex;
  gap: 8px;
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
}

.side-nav {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: min(86vw, 320px);
  padding: calc(18px + env(safe-area-inset-top)) 14px 18px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(-105%);
  transition: transform 180ms ease;
}

.side-nav.open {
  transform: translateX(0);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(0, 0, 0, 0.45);
}

.side-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.side-nav-list,
.bottom-nav {
  display: grid;
  gap: 8px;
}

.side-link,
.bottom-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 9px 10px;
  border-radius: var(--radius);
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  text-align: left;
  cursor: pointer;
}

.side-link.active,
.bottom-link.active {
  color: var(--text);
  background: var(--panel-2);
  border-color: var(--line);
}

.nav-glyph {
  width: 22px;
  text-align: center;
  font-size: 15px;
  font-weight: 800;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 25;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
  background: rgba(17, 18, 20, 0.93);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

:root[data-theme="light"] .bottom-nav {
  background: rgba(247, 245, 240, 0.94);
}

.bottom-link {
  justify-content: center;
  min-height: 58px;
  padding: 7px 4px;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
}

.main {
  width: min(1180px, 100%);
  min-width: 0;
  margin: 0 auto;
  padding: 16px 14px 24px;
}

.section-head {
  display: grid;
  gap: 10px;
  margin: 4px 0 16px;
}

.support-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.support-banner.green {
  background: var(--green-soft);
  border-color: rgba(53, 194, 113, 0.34);
}

.support-banner.yellow {
  background: var(--yellow-soft);
  border-color: rgba(244, 191, 69, 0.34);
}

.carryover-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px;
  background: var(--yellow-soft);
  border: 1px solid rgba(244, 191, 69, 0.34);
  border-radius: var(--radius);
}

.support-title {
  font-weight: 850;
}

.support-copy {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 7vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-copy {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.5;
}

.home-screen {
  margin: -6px -2px 16px;
  padding: 20px 0 8px;
}

.home-hero {
  text-align: center;
  padding: 4px 10px 18px;
}

.home-logo {
  display: inline-block;
  width: clamp(92px, 24vw, 138px);
  height: clamp(92px, 24vw, 138px);
  margin: 0 auto 10px;
}

.home-logo img {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.home-wordmark {
  color: #f7f7f7;
  font-size: clamp(27px, 9vw, 48px);
  font-weight: 900;
  letter-spacing: 8px;
  text-indent: 8px;
}

.home-wordmark span {
  color: var(--green);
}

.home-hero h1 {
  margin: 22px 0 6px;
  font-size: clamp(31px, 8vw, 46px);
  font-weight: 500;
}

.home-hero p {
  margin: 0;
  color: rgba(244, 241, 234, 0.82);
  font-size: clamp(22px, 6vw, 32px);
}

.game-control-panel {
  display: grid;
  gap: 14px;
  align-items: center;
  margin: 0 auto 16px;
  max-width: 700px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.game-control-panel.open {
  border-color: rgba(53, 194, 113, 0.4);
  background: linear-gradient(135deg, rgba(53, 194, 113, 0.14), rgba(255, 255, 255, 0.05));
}

.game-control-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.game-control-panel h2 {
  margin: 4px 0;
  font-size: 22px;
}

.game-control-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.home-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 auto;
  max-width: 700px;
}

.home-card {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: clamp(210px, 42vw, 315px);
  padding: 18px 14px;
  color: #fff;
  border-radius: 30px;
  border: 2px solid rgba(255, 255, 255, 0.11);
  box-shadow: inset 0 1px 18px rgba(255, 255, 255, 0.07), 0 14px 34px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  text-align: center;
}

.home-card.wide {
  grid-column: 1 / -1;
  min-height: clamp(135px, 24vw, 190px);
  grid-template-columns: auto 1fr;
  column-gap: 22px;
  align-items: center;
  justify-items: start;
  text-align: left;
  padding-inline: clamp(22px, 7vw, 44px);
}

.home-card.wide .home-card-icon {
  grid-row: 1 / span 2;
  margin: 0;
}

.home-card.wide .home-card-title,
.home-card.wide .home-card-copy {
  grid-column: 2;
}

.home-card.wide .home-card-copy {
  max-width: none;
}

.home-card.green {
  background: radial-gradient(circle at 70% 25%, rgba(59, 210, 116, 0.22), transparent 38%), linear-gradient(145deg, #0b4d25, #062c18);
  border-color: rgba(53, 194, 113, 0.45);
}

.home-card.blue {
  background: radial-gradient(circle at 68% 25%, rgba(102, 166, 255, 0.2), transparent 38%), linear-gradient(145deg, #0d376d, #071d36);
  border-color: rgba(102, 166, 255, 0.45);
}

.home-card.red {
  background: radial-gradient(circle at 68% 25%, rgba(255, 107, 98, 0.18), transparent 38%), linear-gradient(145deg, #78100f, #3c0706);
  border-color: rgba(225, 45, 53, 0.52);
}

.home-card.dark {
  background: radial-gradient(circle at 68% 25%, rgba(255, 255, 255, 0.13), transparent 38%), linear-gradient(145deg, #33373a, #121416);
  border-color: rgba(255, 255, 255, 0.18);
}

.home-card-icon {
  display: grid;
  place-items: center;
  width: clamp(90px, 22vw, 142px);
  height: clamp(90px, 22vw, 142px);
  margin-bottom: 28px;
  color: #111;
  background: #f6f6f6;
  border-radius: 999px;
  font-size: clamp(28px, 7vw, 48px);
  font-weight: 950;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.home-card-title {
  display: block;
  font-size: clamp(28px, 7.5vw, 52px);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.35);
}

.home-card-copy {
  display: block;
  max-width: 230px;
  margin-top: 14px;
  font-size: clamp(16px, 4.2vw, 24px);
  font-weight: 450;
  line-height: 1.22;
  color: rgba(255, 255, 255, 0.88);
}

.home-status-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
  margin: 24px -14px -8px;
  padding: 16px 14px;
  background: rgba(0, 0, 0, 0.42);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.home-money-tile {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 92px;
  padding: 12px 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
}

.home-money-tile.red {
  border-color: rgba(225, 45, 53, 0.45);
}

.home-money-tile.blue {
  border-color: rgba(102, 166, 255, 0.42);
}

.home-money-tile.green {
  border-color: rgba(53, 194, 113, 0.45);
}

.home-money-tile.yellow {
  border-color: rgba(244, 191, 69, 0.48);
}

.home-status-label {
  color: #fff;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.home-status-value {
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(21px, 5vw, 30px);
  font-weight: 900;
}

.home-status-value.green {
  color: var(--green);
}

.home-status-foot {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1.2;
}

.home-money-breakdown {
  display: grid;
  gap: 8px;
  margin: 8px -14px -8px;
  padding: 14px 18px 18px;
  background: rgba(0, 0, 0, 0.42);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.home-money-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.home-money-breakdown strong {
  color: #fff;
}

.payout-preview,
.dealer-cashout-preview {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.pay-player-row {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.pay-player-row span,
.pay-player-row strong {
  color: var(--green);
  font-size: 18px;
}

.grid {
  display: grid;
  gap: 12px;
}

.grid > *,
.form-grid > * {
  min-width: 0;
}

.grid.two,
.grid.three,
.grid.four {
  grid-template-columns: 1fr;
}

.panel,
.metric,
.form-panel,
.table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel,
.form-panel {
  padding: 14px;
}

.panel-head,
.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-title {
  margin: 0;
  font-size: 16px;
}

.panel-note {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.metric {
  min-height: 116px;
  padding: 14px;
  display: grid;
  align-content: space-between;
}

.metric-label {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.metric-value {
  margin-top: 12px;
  font-size: clamp(24px, 8vw, 36px);
  font-weight: 850;
  line-height: 1;
  overflow-wrap: anywhere;
}

.metric-foot {
  color: var(--muted);
  font-size: 12px;
}

.metric.green,
.pill.green {
  background: var(--green-soft);
  border-color: rgba(53, 194, 113, 0.34);
}

.metric.red,
.pill.red {
  background: var(--red-soft);
  border-color: rgba(255, 107, 98, 0.34);
}

.metric.yellow,
.pill.yellow {
  background: var(--yellow-soft);
  border-color: rgba(244, 191, 69, 0.34);
}

.metric.blue,
.pill.blue {
  background: var(--blue-soft);
  border-color: rgba(102, 166, 255, 0.34);
}

.form-grid {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.check-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea,
.search-input {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.search-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 7px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.segmented button {
  min-height: 40px;
  color: var(--muted);
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
}

.segmented button.active {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.item-title-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.title-edit-action {
  min-width: 32px;
  min-height: 32px;
  border-radius: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  cursor: pointer;
  text-decoration: none;
  font-weight: 750;
}

.btn.primary {
  color: #0f1712;
  background: var(--green);
  border-color: var(--green);
}

.btn.danger {
  color: #20100f;
  background: var(--red);
  border-color: var(--red);
}

.btn.full {
  width: 100%;
}

.btn:disabled,
.icon-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.quick-action-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

.quick-action {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 12px;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 16px;
  font-weight: 850;
  text-align: left;
}

.back-btn {
  min-width: 96px;
}

.quick-action.primary {
  color: #0f1712;
  background: var(--green);
  border-color: var(--green);
}

.quick-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 14px;
  font-weight: 900;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.pill.neutral {
  background: var(--panel-2);
}

.table-wrap {
  overflow-x: auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.data-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.list {
  display: grid;
  gap: 9px;
}

.item {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.item.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.item-title {
  font-weight: 800;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.admin-game-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  padding: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-game-status.open {
  background: rgba(53, 194, 113, 0.1);
  border-color: rgba(53, 194, 113, 0.35);
}

.admin-game-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.admin-game-title {
  margin-top: 2px;
  font-weight: 850;
}

.timeline {
  display: grid;
  gap: 10px;
}

.timeline-item {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 12px 12px 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 4px;
  border-radius: 0 8px 8px 0;
  background: var(--blue);
}

.timeline-item.cash::before,
.timeline-item.rake::before {
  background: var(--green);
}

.timeline-item.electronic::before,
.timeline-item.reversal::before {
  background: var(--red);
}

.timeline-item.marker::before {
  background: var(--yellow);
}

.timeline-copy {
  margin: 0;
  line-height: 1.4;
}

.empty {
  padding: 18px;
  color: var(--muted);
  background: var(--panel);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.toast {
  position: fixed;
  right: 14px;
  bottom: 92px;
  left: 14px;
  z-index: 60;
  padding: 13px 14px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.checkbox-list {
  display: grid;
  gap: 8px;
}

.check-row {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.check-row input {
  width: 20px;
  height: 20px;
}

.close-warning {
  grid-column: 1 / -1;
  background: rgba(225, 45, 53, 0.12);
  border-color: rgba(225, 45, 53, 0.42);
  color: var(--text);
  font-weight: 750;
}

.hidden {
  display: none !important;
}

@media (max-width: 480px) {
  .home-status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .app-shell {
    padding-bottom: 0;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    padding-left: 24px;
    padding-right: 24px;
  }

  .topbar .icon-btn.menu-toggle {
    display: none;
  }

  .layout {
    grid-template-columns: 260px 1fr;
  }

  .side-nav {
    position: sticky;
    top: 76px;
    z-index: 5;
    height: calc(100vh - 76px);
    width: 260px;
    transform: none;
    box-shadow: none;
    border-right: 1px solid var(--line);
  }

  .side-nav-head .icon-btn {
    display: none;
  }

  .nav-backdrop,
  .bottom-nav {
    display: none;
  }

  .main {
    padding: 24px;
  }

  .grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-screen {
    margin-top: 0;
  }

  .home-card-grid {
    gap: 18px;
  }

  .game-control-panel {
    grid-template-columns: 1fr auto;
  }

  .quick-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toast {
    right: 24px;
    bottom: 24px;
    left: auto;
    width: min(420px, calc(100vw - 48px));
  }
}
