:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --panel: #ffffff;
  --line: #d9e2e4;
  --text: #142022;
  --muted: #5f6f72;
  --green: #007a4d;
  --green-dark: #005f3c;
  --blue: #0a5fa8;
  --shadow: 0 10px 28px rgba(20, 32, 34, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.tablet-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 86px;
  padding: max(18px, env(safe-area-inset-top)) 24px 18px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}

h2 {
  margin: 0;
  font-size: 22px;
}

h3 {
  margin: 4px 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.tablet-actions {
  display: flex;
  gap: 10px;
}

.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
}

.tablet-shell {
  width: min(100%, 1194px);
  margin: 0 auto;
  padding: 22px 24px 36px;
}

.quick-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}

.quick-tile {
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.quick-tile span {
  display: block;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.quick-tile strong {
  display: block;
  margin-top: 14px;
  font-size: 21px;
  line-height: 1.25;
}

.quick-tile.primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green-dark);
}

.quick-tile.primary span {
  color: rgba(255, 255, 255, 0.78);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 0 0 12px;
}

.tournament-list {
  display: grid;
  gap: 12px;
}

.tournament-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.league,
.meta {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(88px, 1fr));
  gap: 10px;
}

.card-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 8px;
  background: #eef5f1;
  color: var(--green-dark);
  font-size: 17px;
  font-weight: 800;
}

.empty-state {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 980px) {
  .quick-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .tablet-header {
    align-items: stretch;
    flex-direction: column;
  }

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

  .tablet-shell {
    padding: 16px;
  }

  .quick-panel,
  .tournament-card {
    grid-template-columns: 1fr;
  }

  .card-actions {
    grid-template-columns: 1fr 1fr;
  }
}
