:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #18221d;
  background: #f5f7f5;
  --ink: #18221d;
  --muted: #647069;
  --line: #dce3de;
  --surface: #ffffff;
  --surface-soft: #eef3ef;
  --green: #17643a;
  --green-dark: #0e4a2a;
  --green-light: #dcefe3;
  --coral: #d95d45;
  --coral-dark: #a73b2a;
  --danger: #b42318;
  --shadow: 0 14px 38px rgba(25, 45, 34, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #f5f7f5;
}

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

a {
  color: var(--green);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--green-dark);
}

button,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 9px 16px;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: var(--green);
  color: #ffffff;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

button:hover,
.button:hover {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: #ffffff;
}

button:active,
.button:active {
  transform: translateY(1px);
}

button:focus-visible,
.button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(217, 93, 69, 0.35);
  outline-offset: 2px;
}

.button-primary {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
}

.button-ghost {
  border-color: #b8c7be;
  background: #ffffff;
  color: var(--ink);
}

.button-ghost:hover {
  border-color: var(--green);
  background: var(--surface-soft);
  color: var(--green-dark);
}

.button-light {
  border-color: rgba(255, 255, 255, 0.72);
  background: #ffffff;
  color: var(--green-dark);
}

.button-light:hover {
  border-color: #ffffff;
  background: var(--green-light);
  color: var(--green-dark);
}

.button-row,
.form-actions,
.context-actions,
.member-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.nav-shell {
  min-height: 72px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 850;
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  color: #425047;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover {
  background: var(--surface-soft);
  color: var(--green-dark);
}

.nav-actions {
  justify-content: flex-end;
}

.nav-actions .button {
  min-height: 38px;
  padding: 7px 13px;
  font-size: 0.88rem;
}

.nav-actions .action-form {
  margin: 0;
}

.nav-actions button {
  min-height: 38px;
  padding: 7px 13px;
  border-color: #b8c7be;
  background: #ffffff;
  color: var(--ink);
  font-size: 0.88rem;
}

.app-main {
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 180px);
  margin: 0 auto;
  padding: 38px 0 72px;
}

.app-footer {
  width: min(1180px, calc(100% - 40px));
  min-height: 96px;
  margin: 0 auto;
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.app-footer > div {
  display: grid;
  gap: 4px;
}

.app-footer strong {
  color: var(--ink);
}

.app-footer nav {
  display: flex;
  gap: 20px;
}

.app-footer a {
  color: var(--muted);
}

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

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.12;
}

h1 {
  margin: 0;
  font-size: 2.55rem;
}

h2 {
  margin: 0;
  font-size: 1.35rem;
}

h3 {
  margin: 0;
  font-size: 1rem;
}

p {
  line-height: 1.65;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--coral-dark);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-header,
.team-header,
.game-hero {
  margin-bottom: 34px;
}

.page-header {
  max-width: 760px;
}

.page-header h1,
.team-header h1,
.game-hero h1 {
  margin-bottom: 10px;
}

.page-header > p:last-child,
.team-header > div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.page-header-actions {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.home-hero {
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(10, 35, 23, 0.94) 0%, rgba(10, 35, 23, 0.76) 37%, rgba(10, 35, 23, 0.1) 72%),
    url("/assets/volleyball-hero.webp") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.hero-copy {
  width: min(590px, 58%);
  padding: 56px;
  color: #ffffff;
}

.hero-copy .eyebrow {
  color: #ffab92;
}

.hero-copy h1 {
  color: #ffffff;
  font-size: 3.4rem;
}

.hero-copy > p:not(.eyebrow) {
  margin: 18px 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
}

.home-overview {
  padding: 52px 0 8px;
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 2fr;
  gap: 50px;
}

.home-overview h2 {
  font-size: 1.8rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.feature-grid article {
  min-width: 0;
  padding: 22px 24px 12px 0;
}

.feature-grid article + article {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.feature-grid h3 {
  margin: 14px 0 8px;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.feature-number {
  color: var(--coral);
  font-size: 0.75rem;
  font-weight: 800;
}

.auth-page {
  min-height: 610px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 470px);
  align-items: center;
  gap: 80px;
}

.auth-intro {
  max-width: 540px;
}

.auth-intro h1 {
  margin-bottom: 18px;
  font-size: 3rem;
}

.auth-intro > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.auth-panel,
.form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-panel {
  padding: 34px;
}

.auth-switch {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.notice,
.status-message {
  border-left: 4px solid var(--coral);
  border-radius: 0 6px 6px 0;
  background: #fff1ed;
}

.notice {
  max-width: 480px;
  margin-top: 28px;
  padding: 15px 17px;
  display: grid;
  gap: 4px;
  color: #733125;
}

.notice span {
  font-size: 0.9rem;
}

.status-message {
  padding: 12px 15px;
  color: #733125;
}

form {
  margin: 0;
}

.form-stack {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 16px;
}

label {
  min-width: 0;
  display: grid;
  gap: 7px;
  color: #33423a;
  font-size: 0.86rem;
  font-weight: 750;
}

label small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
}

input,
textarea,
select {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #bdc8c1;
  border-radius: 5px;
  background: #ffffff;
  color: var(--ink);
  line-height: 1.35;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:hover,
textarea:hover,
select:hover {
  border-color: #8da095;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 100, 58, 0.12);
  outline: 0;
}

input::placeholder,
textarea::placeholder {
  color: #929d97;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

.form-panel {
  max-width: 720px;
  padding: 30px;
}

.form-panel-wide {
  max-width: 940px;
}

.form-actions {
  justify-content: flex-end;
  padding-top: 4px;
}

.search-form {
  margin-bottom: 24px;
  padding: 18px;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.search-form > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.team-list,
.record-list,
.membership-list,
.participant-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-list {
  display: grid;
  gap: 10px;
}

.team-list:empty::after,
.record-list:empty::after,
.membership-list:empty::after,
.participant-list:empty::after {
  content: "Noch keine Eintraege.";
  display: block;
  padding: 22px;
  border: 1px dashed #bdc8c1;
  border-radius: 6px;
  color: var(--muted);
  text-align: center;
}

.team-row {
  min-height: 94px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.team-row:hover {
  border-color: #adbbb2;
  box-shadow: 0 8px 22px rgba(25, 45, 34, 0.07);
}

.team-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 2px solid var(--green);
  border-radius: 50%;
  background: #ffffff;
}

.team-avatar::before,
.team-avatar::after {
  content: "";
  position: absolute;
  border: 5px solid var(--coral);
  border-radius: 50%;
}

.team-avatar::before {
  width: 40px;
  height: 40px;
  top: -20px;
  left: -9px;
}

.team-avatar::after {
  width: 34px;
  height: 34px;
  right: -22px;
  bottom: -4px;
  border-color: var(--green);
}

.team-avatar-large {
  width: 74px;
  height: 74px;
}

.team-row-main {
  min-width: 0;
}

.team-name {
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 800;
  text-decoration: none;
}

.team-row-main p {
  max-width: 620px;
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-stats {
  display: flex;
  gap: 22px;
  margin: 0;
}

.team-stats div {
  min-width: 66px;
  display: grid;
  gap: 3px;
}

.team-stats dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.team-stats dd {
  margin: 0;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
}

.row-link {
  font-size: 0.86rem;
  font-weight: 750;
}

.team-header {
  display: flex;
  align-items: center;
  gap: 22px;
}

.team-header > div:last-child {
  min-width: 0;
}

.team-meta {
  margin-bottom: 24px;
  display: flex;
  gap: 34px;
  padding: 16px 0;
  border-block: 1px solid var(--line);
}

.team-meta div {
  display: grid;
  gap: 3px;
}

.team-meta span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
}

.context-actions {
  margin: 18px 0 30px;
}

.content-columns,
.management-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
  align-items: start;
  gap: 44px;
}

.content-columns > section:only-child {
  grid-column: 1 / -1;
  max-width: 760px;
}

.section-heading {
  min-height: 50px;
  margin-bottom: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.section-heading .eyebrow {
  margin-bottom: 4px;
}

.record-list {
  border-top: 1px solid var(--line);
}

.record-list li {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
}

.record-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
}

.dashboard-section {
  min-width: 0;
}

.dashboard-section h2 {
  margin-bottom: 12px;
}

.settings-section,
.danger {
  margin-top: 54px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.danger {
  border-top-color: #e1a69e;
}

.danger > p {
  max-width: 760px;
  color: #7d342b;
}

.danger-button {
  border-color: var(--danger);
  background: var(--danger);
}

.danger-button:hover {
  border-color: #85180f;
  background: #85180f;
}

.management-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1.1fr);
}

.management-section {
  min-width: 0;
  margin-bottom: 36px;
}

.membership-list,
.participant-list {
  border-top: 1px solid var(--line);
}

.membership-list > li,
.participant-list > li {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.member-identity {
  min-width: 150px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.member-avatar {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green-light);
  box-shadow: inset 0 0 0 1px #b7d6c2;
}

.member-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.member-badges span,
.status-badge {
  padding: 4px 8px;
  border: 1px solid #c8d5cd;
  border-radius: 999px;
  background: var(--surface-soft);
  color: #405047;
  font-size: 0.68rem;
  font-weight: 800;
}

.member-actions {
  justify-content: flex-end;
}

.action-form {
  display: inline-flex;
}

.member-actions button,
.context-actions button,
.subtle-danger button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.76rem;
}

.subtle-danger {
  margin-top: 20px;
}

.subtle-danger button {
  border-color: #d9a49c;
  background: #ffffff;
  color: var(--danger);
}

.subtle-danger button:hover {
  border-color: var(--danger);
  background: #fff0ee;
  color: var(--danger);
}

.game-form {
  display: grid;
  gap: 26px;
}

.game-form > .team-select {
  max-width: 420px;
}

.game-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border: 0;
  border-top: 1px solid var(--line);
}

.game-form legend {
  padding: 0 12px 0 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 850;
}

.field-wide {
  grid-column: 1 / -1;
}

.status-badge {
  padding: 7px 11px;
  border-color: #abd0b9;
  background: var(--green-light);
  color: var(--green-dark);
}

.participants-section {
  max-width: 760px;
  margin-top: 40px;
}

.edit-details {
  width: 100%;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.edit-details summary {
  padding: 18px 0;
  color: var(--green);
  font-weight: 800;
  cursor: pointer;
}

.edit-details .form-panel {
  box-shadow: none;
}

code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #e8ede9;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.88em;
}

.legal-page {
  max-width: 780px;
}

.legal-page h1 {
  margin-bottom: 28px;
}

.legal-page h2 {
  margin: 34px 0 10px;
}

.legal-page p {
  color: #455149;
}

.error-page {
  max-width: 620px;
  padding: 70px 0;
}

.error-page h1 {
  margin-bottom: 16px;
}

.error-page p:not(.eyebrow) {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 1.05rem;
}

.map-link {
  margin-left: 5px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .nav-shell {
    grid-template-columns: auto auto;
    gap: 10px 20px;
    padding: 12px 0;
  }

  .nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .home-hero {
    min-height: 470px;
    background-position: 58% center;
  }

  .hero-copy {
    width: 70%;
    padding: 42px;
  }

  .home-overview,
  .auth-page,
  .content-columns,
  .management-layout {
    grid-template-columns: 1fr;
  }

  .auth-page {
    min-height: 0;
    gap: 34px;
  }

  .auth-intro {
    max-width: 680px;
  }

  .auth-panel {
    max-width: 620px;
  }

  .home-overview {
    gap: 28px;
  }

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

@media (max-width: 680px) {
  .nav-shell,
  .app-main,
  .app-footer {
    width: min(100% - 28px, 1180px);
  }

  .app-main {
    padding-top: 24px;
  }

  h1 {
    font-size: 2rem;
  }

  .home-hero {
    min-height: 440px;
    align-items: flex-end;
    background-position: 67% center;
  }

  .hero-copy {
    width: 100%;
    padding: 28px 24px;
  }

  .hero-copy h1 {
    font-size: 2.45rem;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 1rem;
  }

  .feature-grid,
  .form-grid,
  .field-row {
    grid-template-columns: 1fr;
  }

  .feature-grid article,
  .feature-grid article + article {
    padding: 18px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .auth-intro h1 {
    font-size: 2.3rem;
  }

  .auth-panel,
  .form-panel {
    padding: 22px;
  }

  .search-form {
    grid-template-columns: 1fr;
  }

  .search-form > div {
    grid-template-columns: 1fr;
  }

  .search-form button {
    width: 100%;
  }

  .team-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .team-avatar {
    width: 42px;
    height: 42px;
  }

  .team-stats {
    grid-column: 2 / -1;
    grid-row: 2;
  }

  .row-link {
    grid-column: 3;
    grid-row: 1;
  }

  .team-row-main p {
    white-space: normal;
  }

  .team-header {
    align-items: flex-start;
  }

  .team-avatar-large {
    width: 58px;
    height: 58px;
  }

  .membership-list > li,
  .participant-list > li {
    align-items: flex-start;
    flex-direction: column;
  }

  .member-actions {
    justify-content: flex-start;
  }

  .button-row .button {
    flex: 1 1 150px;
  }
}

@media (max-width: 420px) {
  .brand span:last-child {
    display: none;
  }

  .nav-shell {
    grid-template-columns: 40px 1fr;
  }

  .nav-actions {
    gap: 4px;
  }

  .nav-actions .button {
    padding-inline: 10px;
  }

  .nav-links {
    justify-content: space-between;
    gap: 0;
    overflow: visible;
  }

  .nav-links a {
    padding-inline: 5px;
    font-size: 0.78rem;
  }

  .hero-copy {
    padding: 24px 20px;
  }

  .auth-panel {
    padding: 20px 16px;
  }

  .team-row {
    grid-template-columns: 1fr auto;
  }

  .team-avatar {
    display: none;
  }

  .team-stats {
    grid-column: 1 / -1;
  }

  .row-link {
    grid-column: 2;
  }
}

/* Guest sign-up, sharing and recovery codes */
.guest-join {
  display: grid;
  gap: 10px;
  max-width: 420px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-soft);
}

.guest-join label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.guest-join input {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font: inherit;
}

.guest-join small {
  color: var(--muted);
  font-size: 0.85rem;
}

.guest-badge {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.checkbox-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600;
}

.checkbox-field input {
  margin-top: 3px;
  width: auto;
  min-height: 0;
}

.checkbox-field small {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
}

.share-section {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.copy-field {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}

.copy-field-block {
  align-items: flex-start;
}

.copy-source {
  flex: 1 1 260px;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
  font-size: 0.9rem;
  resize: vertical;
}

.recovery-code {
  margin: 0;
  padding: 16px 18px;
  border: 1px dashed var(--green);
  border-radius: 10px;
  background: var(--green-light);
  color: var(--green-dark);
  font-family: ui-monospace, "SFMono-Regular", "Menlo", monospace;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  word-break: break-all;
}

/* ============================================================
   Feedback banners
   ============================================================ */
.banner {
  margin: 0 0 26px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  border-left: 4px solid var(--green);
  background: var(--green-light);
  color: var(--green-dark);
  font-weight: 650;
}

.banner-error {
  border-left-color: var(--danger);
  background: #fdeceb;
  color: #8d201a;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav-links a[aria-current="page"] {
  background: var(--surface-soft);
  color: var(--green-dark);
}

.nav-links .nav-cta {
  border: 1px solid #b8c7be;
  color: var(--green-dark);
  font-weight: 750;
}

.nav-links .nav-cta:hover {
  border-color: var(--green);
  background: var(--green-light);
}

/* ============================================================
   Date badge
   ============================================================ */
.date-badge {
  flex: 0 0 auto;
  width: 68px;
  padding: 10px 6px;
  display: grid;
  justify-items: center;
  gap: 2px;
  border-radius: 12px;
  background: var(--green);
  color: #ffffff;
  line-height: 1;
}

.date-badge-day {
  font-size: 1.9rem;
  font-weight: 800;
}

.date-badge-month {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.date-badge-small {
  width: 52px;
  padding: 8px 4px;
  border-radius: 10px;
}

.date-badge-small .date-badge-day {
  font-size: 1.35rem;
}

.date-badge-small .date-badge-month {
  font-size: 0.66rem;
}

/* ============================================================
   Game page
   ============================================================ */
.game-hero {
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.game-hero-main {
  min-width: 0;
  flex: 1 1 auto;
}

.game-hero h1 {
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}

.game-hero .eyebrow a {
  color: var(--coral-dark);
}

.game-when {
  margin: 0 0 4px;
  font-size: 1.12rem;
}

.game-when strong {
  font-weight: 800;
}

.game-timezone,
.game-where {
  color: var(--muted);
}

.game-where {
  margin: 0;
  font-size: 1.02rem;
}

.game-action {
  margin: 22px 0 30px;
  padding: 20px;
  display: grid;
  gap: 12px;
  justify-items: start;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.game-action:empty {
  display: none;
}

.action-form-primary button,
.game-action .guest-join button {
  min-height: 52px;
  padding-inline: 26px;
  font-size: 1.05rem;
}

.action-note {
  margin: 0;
  color: var(--muted);
}

.game-description {
  margin-bottom: 30px;
}

.game-description h2 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.game-description p {
  margin: 0;
  max-width: 70ch;
  white-space: pre-line;
}

.status-badge-danger {
  border-color: #f0c3bd;
  background: #fdeceb;
  color: #8d201a;
}

/* ============================================================
   Cards
   ============================================================ */
.card-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 160ms ease, transform 160ms ease;
}

.card:hover {
  border-color: #b8c7be;
}

.card-link {
  min-height: 72px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  text-decoration: none;
}

.card-link:hover {
  color: var(--ink);
}

.card-main {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 3px;
}

.card-main strong {
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.card-meta,
.card-team {
  color: var(--muted);
  font-size: 0.9rem;
}

.card-team {
  font-size: 0.82rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.team-card .card-link,
.request-card .card-link {
  min-height: 64px;
}

.team-card .manage-link,
.team-card .button-ghost {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
}

.team-card .card-link {
  padding-right: 160px;
}

/* ============================================================
   Chips and empty states
   ============================================================ */
.chip {
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: #425047;
  font-size: 0.76rem;
  font-weight: 750;
  white-space: nowrap;
}

.chip-joined {
  background: var(--green-light);
  color: var(--green-dark);
}

.chip-open {
  background: #fff1ed;
  color: var(--coral-dark);
}

.chip-muted {
  color: var(--muted);
}

.empty-state {
  margin: 0;
  padding: 26px 20px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.dashboard-section {
  margin-bottom: 40px;
}

/* ============================================================
   Forms
   ============================================================ */
.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.more-options,
.settings-details,
.share-section,
.edit-details {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.more-options > summary,
.settings-details > summary,
.share-section > summary,
.edit-details > summary {
  min-height: 52px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  color: var(--green-dark);
  font-weight: 750;
  cursor: pointer;
}

.more-options-body,
.settings-body,
.share-section > p,
.share-section .copy-field {
  padding-inline: 18px;
}

.more-options-body {
  padding-bottom: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.share-section {
  margin: 30px 0;
  box-shadow: none;
}

.share-section > p {
  margin-top: 0;
  color: var(--muted);
}

.share-section .copy-field {
  padding-bottom: 18px;
}

.settings-details {
  margin-top: 46px;
}

.settings-body {
  padding-bottom: 22px;
}

.settings-body .settings-section,
.settings-body .danger {
  margin-top: 26px;
  padding-top: 22px;
}

.settings-hint {
  color: var(--muted);
}

/* ============================================================
   Phones
   ============================================================ */
@media (max-width: 680px) {
  .date-badge {
    width: 58px;
  }

  .date-badge-day {
    font-size: 1.6rem;
  }

  .game-action {
    padding: 16px;
  }

  .action-form-primary,
  .action-form-primary button,
  .game-action .guest-join,
  .game-action .guest-join button {
    width: 100%;
  }

  .more-options-body,
  .field-row {
    grid-template-columns: 1fr;
  }

  .card-link {
    padding: 12px;
    gap: 12px;
  }

  .team-card .card-link {
    padding-right: 12px;
  }

  .team-card .manage-link,
  .team-card .button-ghost {
    position: static;
    margin: 0 12px 12px;
    transform: none;
  }
}
