/* =========================================================================
   Zockbox – Startseite. made by Oskar

   Sehr schlicht: Hero, eine Zeile zum Beitreten, die Spiele, ein ruhiger
   Hain-Hinweis, Fuß. Alles andere (Profil, Zahlen, Tarnmodus) steckt im
   Einstellungs-Fenster (shared/ui.css → .settings).
   ========================================================================= */

body.hm { background: #fff; }

/* ---------- Hero ---------- */
.hero { margin: 4px 0 22px; }
.hero h1 { font-size: clamp(30px, 5.4vw, 42px); letter-spacing: -.04em; }
.hero p { margin-top: 10px; color: var(--muted); font-size: clamp(15px, 2vw, 17px); max-width: 34em; }

/* ---------- Beitreten ---------- */
.join {
  display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr);
  align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.join-code input {
  width: 100%; height: 52px; padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: #fff; color: var(--ink);
  font-size: 22px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
}
.join-code input::placeholder { color: #c9cdd1; letter-spacing: .08em; font-weight: 400; font-size: 17px; text-transform: none; }
.join-code input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px #f0f0ee; }
.join select {
  width: 100%; height: 52px; padding: 0 38px 0 14px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; color: var(--ink-2);
  font-size: 15px; appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.6 6 7.8l3-3.2' fill='none' stroke='%236d7378' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
}
.join select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px #f0f0ee; }
.join .go {
  height: 52px; padding: 0 26px; border: 0; border-radius: var(--r);
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 500;
}
.join .go:hover { background: #2c3137; }
.join .go[aria-busy="true"] { opacity: .6; cursor: progress; }
.join-status { grid-column: 1 / -1; margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.join-status[data-kind="err"] { color: var(--danger); }
.join-status[data-kind="ok"] { color: var(--ok); }
@media (min-width: 620px) {
  .join { grid-template-columns: 130px minmax(0, 1fr) auto; }
  .join-code input { font-size: 24px; }
}

/* ---------- Spiele ---------- */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 34px 0 14px; }
.sec-head h2 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.sec-head span { color: var(--faint); font-size: 11.5px; text-align: right; }

.games { display: grid; gap: 22px 20px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .games { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.game { display: block; color: var(--ink); text-decoration: none; }
.game:hover { text-decoration: none; }
.game-art {
  display: block; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
  transition: transform .18s ease, border-color .18s ease;
}
.game-art svg { width: 100%; height: 100%; display: block; }
a.game:hover .game-art { transform: translateY(-2px); border-color: var(--line-2); }
.game-tx { display: block; padding: 11px 2px 0; }
.game-tx b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
a.game:hover .game-tx b { text-decoration: underline; text-underline-offset: 3px; }
.game-tx small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.game-tx em { display: block; margin-top: 6px; color: var(--faint); font-size: 11.5px; font-style: normal; }
.game-tx em:empty { display: none; }
.game.soon { cursor: default; }
.game.soon .game-art { opacity: .75; }
.game.soon .game-tx b { color: var(--muted); }
.game .soon-tag {
  display: inline-block; margin-top: 7px; padding: 1px 8px; border: 1px solid var(--line);
  border-radius: 999px; color: var(--faint); font-size: 11px; font-style: normal;
}

/* ---------- Hain: fester Teil der Seite ---------- */
.hain {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 42px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.hain-icon { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.hain-tx { min-width: 0; flex: 1 1 240px; }
.hain-tx b { display: block; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
.hain-tx span { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }
.hain-go { flex: none; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.hain-go:hover { color: var(--accent); }

.foot-note { margin-top: 22px; color: var(--faint); font-size: 12px; }
.foot-note a { color: var(--muted); }

/* ---------- Profil im Fenster ---------- */
.prof-row { display: flex; gap: 10px; align-items: flex-end; }
.prof-av {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface-2);
  font-size: 22px; line-height: 1; padding: 0;
}
.prof-av:hover { border-color: var(--ink); }
.prof-field { min-width: 0; }
.prof-field .inp { height: 44px; }
.prof-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px;
  margin-top: 12px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2);
}
.prof-grid button {
  aspect-ratio: 1; display: grid; place-items: center; padding: 0;
  border: 1px solid transparent; border-radius: 6px; background: #fff; font-size: 19px; line-height: 1;
}
.prof-grid button:hover { border-color: var(--line-2); }
.prof-grid button[aria-pressed="true"] { border-color: var(--ink); }

/* Zahlen im Fenster: vier Spalten, ohne Kartenrahmen */
.mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.mini .stat-cell { padding: 12px 0; }
.mini .stat-cell + .stat-cell { padding-left: 12px; border-left: 1px solid var(--line); }
.mini .stat-cell b { font-size: 21px; }
.mini .stat-cell span { font-size: 10px; letter-spacing: .04em; }
@media (max-width: 380px) {
  .mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini .stat-cell:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* Was tarnung.js in das Einstellungs-Fenster schreibt */
.tarn-set { display: grid; gap: 4px; }
.tarn-set .set-sub {
  display: flex; align-items: center; gap: 10px; margin: 18px 0 8px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--faint);
}
.tarn-set .set-sub:first-child { margin-top: 0; }
.tarn-set .note { margin: 8px 0 0; }
.tarn-set .picks { margin-top: 2px; }
.tarn-set .row { margin-top: 8px; }
.tarn-set ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.tarn-set li { display: flex; gap: 9px; align-items: baseline; font-size: 12px; color: var(--ink-2); }
.tarn-set .opt { padding: 11px 0; }

/* Aufklappbare Abschnitte im Fenster */
.set-fold { border-top: 1px solid var(--line); margin-top: 14px; }
.set-fold > summary {
  display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none;
  padding: 12px 0 10px; margin: 0;
  font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--faint);
}
.set-fold > summary::-webkit-details-marker { display: none; }
.set-fold > summary::after {
  content: ''; flex: none; width: 6px; height: 6px; margin-left: auto;
  border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .18s;
}
.set-fold[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.set-fold > summary:hover { color: var(--ink-2); }
.set-fold-b { padding: 0 0 6px; }
.set-fold-b > .opt:first-child { padding-top: 0; }

/* Kleiner Installationshinweis (nur iOS, über hub.js eingeblendet) */
.install {
  display: flex; align-items: flex-start; gap: 10px; margin-top: 22px;
  padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--muted); font-size: 12.5px; line-height: 1.5;
}
.install button { flex: none; margin-left: auto; border: 0; background: none; color: var(--faint); font-size: 16px; line-height: 1; }
