/* Játékok közös shell – elrendezés. Színek: pa-tokens (+ legacy). */
:root {
  --navy: var(--navy-900, #0b1a33);
  --navy2: var(--navy-800, #13284d);
  --navy3: var(--navy-700, #1d3a6b);
  --line: rgba(255, 255, 255, 0.08);
  --gold: var(--gold-500, #e8b84a);
  --text: var(--on-dark, #eef1fb);
  --muted: var(--on-dark-muted, #a9b8d4);
  --ok: var(--success, #2fae66);
  --bad: var(--danger, #d64545);
  --r: var(--r-lg, 18px);
  --accent: var(--gold-500, #e8b84a);
  --ink: var(--navy-900, #0b1a33);
}

/* Játékidentitás: a játék-UI a --game tokent használja (az arany a platformé) */
body[data-game] {
  --accent: var(--game, var(--gold-500));
}
body[data-adult="1"] {
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E"),
    radial-gradient(900px 520px at 50% -140px, color-mix(in srgb, var(--game) 35%, transparent), transparent 70%),
    var(--game-2, var(--navy-900));
  box-shadow: inset 0 1px 0 var(--game-glow);
}
body[data-adult="1"] .top {
  box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--game-glow) 50%, transparent);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body, Inter, system-ui, sans-serif);
  font-weight: 400;
  background: var(--navy) radial-gradient(900px 520px at 50% -140px, var(--navy3), transparent 70%) no-repeat;
  color: var(--text);
  line-height: 1.45;
  min-height: 100vh;
}

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 16px 48px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0 10px;
}

.brand {
  font-family: var(--font-display, "Bricolage Grotesque", Inter, system-ui, sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.brand.pa-logo,
.top .pa-logo {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  gap: 8px;
}
.brand b {
  color: var(--gold);
  font-weight: 700;
}

.chip {
  font-family: var(--font-display, "Bricolage Grotesque", Inter, system-ui, sans-serif);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 99px;
  background: var(--navy2);
  border: 1px solid var(--line);
  color: var(--muted);
  white-space: nowrap;
}
.chip.acc {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
}

.screen {
  display: none;
}
.screen.active {
  display: block;
  animation: pa-in 0.28s ease;
}

@keyframes pa-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero {
  text-align: center;
  padding: 28px 0 18px;
}
.hero .ico {
  font-size: 68px;
  line-height: 1;
  filter: drop-shadow(0 10px 30px color-mix(in srgb, var(--accent) 45%, transparent));
}

h1,
h2 {
  font-family: var(--font-display, "Bricolage Grotesque", Inter, system-ui, sans-serif);
  font-weight: 700;
}
h1 {
  font-size: 42px;
  letter-spacing: -1.2px;
  margin-top: 10px;
  line-height: 1.1;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.4px;
}
h3 {
  font-family: var(--font-display, "Bricolage Grotesque", Inter, system-ui, sans-serif);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
}

.lead {
  color: var(--muted);
  font-size: 15px;
  margin-top: 8px;
}

.age {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-display, "Bricolage Grotesque", Inter, system-ui, sans-serif);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--bad);
  color: #fff;
}

.stack > * + * {
  margin-top: 12px;
}

.card {
  background: var(--navy2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
}

/* Gombok: pa-ui.css – játék-shell elrendezés (teljes szélesség, --game akcentus) */
body[data-game] .btn,
.wrap .btn {
  display: flex;
  width: 100%;
  background: var(--accent, var(--game, var(--gold-500)));
  color: var(--game-on, var(--ink, #0b1a33));
  border: 0;
  font-family: var(--font-display);
  font-weight: 700;
}
body[data-game] .btn.ghost,
.wrap .btn.ghost {
  background: transparent;
  color: var(--text, #fff);
  border: 1.5px solid var(--navy3, rgba(255, 255, 255, 0.25));
}
body[data-game] .btn.bad,
.wrap .btn.bad {
  background: var(--bad, var(--danger));
  color: #fff;
}

.row {
  display: flex;
  gap: 10px;
}
.row > * {
  flex: 1;
}

.steps {
  counter-reset: s;
  list-style: none;
}
.steps li {
  position: relative;
  padding: 3px 0 12px 40px;
  color: var(--muted);
  font-size: 14px;
}
.steps li b {
  color: var(--text);
}
.steps li:before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy3);
  color: var(--accent);
  font-family: var(--font-display, "Bricolage Grotesque", Inter, system-ui, sans-serif);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 13px;
}

label.f {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.in {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1.5px solid var(--navy3);
  background: var(--navy);
  color: var(--text);
  font-family: var(--font-body, Inter, system-ui, sans-serif);
  font-size: 16px;
  outline: none;
}
.in:focus {
  border-color: var(--accent);
}
textarea.in {
  min-height: 96px;
  resize: none;
}

.seg {
  display: flex;
  background: var(--navy);
  border: 1.5px solid var(--navy3);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}
.seg button {
  flex: 1;
  padding: 10px 4px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display, "Bricolage Grotesque", Inter, system-ui, sans-serif);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.seg button.on {
  background: var(--accent);
  color: var(--ink);
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.check input {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  flex: none;
  margin-top: 1px;
}

.players {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  border-radius: 99px;
  background: var(--navy);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  animation: pa-in 0.3s;
}
.pl.away {
  opacity: 0.45;
}
.av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-family: var(--font-display, "Bricolage Grotesque", Inter, system-ui, sans-serif);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex: none;
}

.code {
  font-family: var(--font-display, "Bricolage Grotesque", Inter, system-ui, sans-serif);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 8px;
  text-align: center;
  color: var(--accent);
}

.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.center {
  text-align: center;
}

.bar {
  height: 6px;
  border-radius: 99px;
  background: var(--navy3);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 1s linear;
}

/* Toast: közös pa-ui.css (#paToast / .toast) – ne legyen külön játék-változat */

footer {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 28px;
}
footer a {
  color: var(--gold);
  text-decoration: none;
}
