/* Spielstart: Editorial greeting, brand typography and an open, centred plane.
   12 columns: 12 * 77px + 11 * 16px = 1100px. Modes span 6 / 3 / 3.
   Isolated launcher names keep the existing match presentation independent. */
:root {
  --launch-ground: #f8f9f6;
  --launch-surface: #e9ede6;
  --launch-panel: #eef0eb;
  --launch-ink: #161a17;
  --launch-muted: #50584f;
  --launch-accent: #d8fc54;
  --launch-edge: #e0e4dc;
  --launch-gap: 16px;
  --launch-radius: 8px;
  --launch-text: "DM Sans", sans-serif;
}
body:has(#start.is-active) { background: var(--launch-ground); }
body:has(#start.is-active)::before { display: none; }
#start.view.is-active {
  display: grid;
  min-height: 100svh;
  align-items: center;
  padding: max(32px, env(safe-area-inset-top)) 24px max(32px, env(safe-area-inset-bottom));
  background: var(--launch-ground);
  color: var(--launch-ink);
  font-family: var(--launch-text);
  text-align: left;
}
#start .launch-shell { width: 100%; max-width: 1100px; margin-inline: auto; }
#start .launch-cover {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--launch-gap);
  min-height: 352px;
  overflow: hidden;
  border-radius: var(--launch-radius);
  background: var(--launch-surface);
}
#start .launch-intro { display: flex; flex-direction: column; justify-content: space-between; gap: 40px; padding: 36px 0 32px 32px; }
#start .launch-wordmark { display: block; width: min(100%, 530px); height: auto; }
#start .launch-description h1 {
  display: block;
  position: static;
  max-width: none;
  margin: 0 0 12px;
  color: var(--launch-ink);
  font: 600 28px/1.15 var(--launch-text);
  letter-spacing: -.03em;
  text-transform: none;
  text-align: left;
}
#start .launch-description p { max-width: 38ch; margin: 0; font: 400 16px/1.5 var(--launch-text); color: var(--launch-ink); }
#start .launch-player { position: relative; align-self: stretch; margin: 0; min-width: 0; overflow: hidden; }
#start .launch-player img { display: block; position: absolute; top: 4px; right: 8px; width: 100%; height: auto; mix-blend-mode: multiply; }
#start .launch-modes { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--launch-gap); margin-top: var(--launch-gap); }
#start .launch-mode {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  grid-column: span 3;
  min-width: 0;
  min-height: 208px;
  padding: 24px;
  border: 1px solid var(--launch-edge);
  border-radius: var(--launch-radius);
  background: var(--launch-ground);
  color: var(--launch-ink);
  text-decoration: none;
  transition: transform 160ms ease;
}
#start .launch-mode--daily { grid-column: span 6; flex-direction: row; align-items: end; gap: 16px; border: 0; background: var(--launch-panel); }
#start .launch-mode-copy { min-width: 0; align-self: start; }
#start .launch-mode h2 { margin: 0; color: inherit; font: 600 24px/1.15 var(--launch-text); letter-spacing: -.03em; text-transform: none; }
#start .launch-detail { margin: 12px 0 0; color: var(--launch-ink); font: 400 16px/1.5 var(--launch-text); }
#start .launch-status { margin: 20px 0 0; color: var(--launch-muted); font: 400 14px/1.5 var(--launch-text); font-variant-numeric: tabular-nums; }
#start .launch-action { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 20px; min-height: 48px; padding: 12px 16px; border-radius: var(--launch-radius); background: var(--launch-accent); color: var(--launch-ink); font: 600 14px/1.4 var(--launch-text); }
#start .launch-action span { font-size: 20px; line-height: 1; transition: transform 160ms ease; }
#start .launch-secondary { font: 600 14px/1.5 var(--launch-text); text-decoration: underline; text-underline-offset: 4px; }
#start .launch-mode:focus-visible, #start .rejoin button:focus-visible { outline: 3px solid var(--launch-ink); outline-offset: 4px; box-shadow: none; }
#start .launch-mode:active { transform: scale(.985); }
@media (hover: hover) {
  #start .launch-mode:hover { transform: translateY(-3px); }
  #start .launch-mode:hover .launch-action span { transform: translate(2px, -2px); }
  #start .launch-mode:hover .launch-secondary { text-decoration-thickness: 2px; }
}
#start .rejoin { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: var(--launch-gap) 0 0; padding: 16px 20px; border: 0; border-radius: var(--launch-radius); background: var(--launch-panel); color: var(--launch-ink); box-shadow: none; }
#start .rejoin > div { flex: 1 1 260px; }
#start .rejoin div span { color: var(--launch-muted); font: 400 14px/1.5 var(--launch-text); }
#start .rejoin .btn { min-height: 44px; width: auto; border: 0; border-radius: var(--launch-radius); background: var(--launch-ink); color: var(--launch-ground); box-shadow: none; font: 600 14px/1.5 var(--launch-text); }
#start .rejoin .btn-link { color: var(--launch-ink); font: 600 14px/1.5 var(--launch-text); }
@media (max-width: 950px) {
  #start .launch-mode--daily { flex-direction: column; align-items: start; }
  #start .launch-intro { padding: 28px 0 28px 28px; }
  #start .launch-cover { min-height: 324px; }
  #start .launch-mode { padding: 20px; }
}
@media (max-width: 650px) {
  #start.view.is-active { padding: max(20px, env(safe-area-inset-top)) 16px max(20px, env(safe-area-inset-bottom)); }
  #start .launch-cover { grid-template-columns: minmax(0, 1fr) 32%; min-height: 260px; gap: 0; }
  #start .launch-intro { position: relative; z-index: 1; padding: 24px 0 24px 20px; gap: 32px; }
  #start .launch-wordmark { width: calc(100% + 12px); }
  #start .launch-description h1 { font-size: 24px; margin-bottom: 10px; }
  #start .launch-description p { max-width: 22ch; font-size: 14px; }
  #start .launch-player img { width: 180px; max-width: none; top: 38px; right: -8px; }
  #start .launch-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
  #start .launch-mode { grid-column: span 1; min-height: 176px; gap: 20px; padding: 20px 16px; }
  #start .launch-mode--daily { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: end; gap: 8px; }
  #start .launch-mode h2 { font-size: 22px; }
  #start .launch-mode--friends h2 { max-width: none; }
  #start .launch-detail { font-size: 14px; margin-top: 8px; }
  #start .launch-status { max-width: 18ch; margin-top: 16px; }
  #start .launch-action { padding: 12px; gap: 8px; max-width: 140px; }
  #start .rejoin { margin-top: 12px; padding: 16px; }
}
@media (max-width: 350px) {
  #start .launch-cover { min-height: 240px; }
  #start .launch-intro { padding-left: 16px; }
  #start .launch-description h1 { font-size: 22px; }
  #start .launch-mode { padding: 16px 12px; }
  #start .launch-mode h2 { font-size: 22px; }
  #start .launch-mode--daily { flex-direction: column; align-items: stretch; gap: 16px; }
  #start .launch-action { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  #start .launch-mode, #start .launch-action span { transition: none; }
  #start .launch-mode:hover, #start .launch-mode:active, #start .launch-mode:hover .launch-action span { transform: none; }
}
