/* partyactivo játékok – közös stílus (Baloo 2 / Nunito) */
:root {
  --navy: #0b1430;
  --navy2: #131e44;
  --navy3: #1d2b5c;
  --line: rgba(255, 255, 255, 0.08);
  --gold: #e3b445;
  --text: #eef1fb;
  --muted: #96a2c6;
  --ok: #37d08f;
  --bad: #ff5b61;
  --r: 18px;
  --accent: #e3b445;
  --ink: #1c1300;
  --font-display: 'Baloo 2', cursive;
  --font-body: 'Nunito', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  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);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
.brand b {
  color: var(--gold);
  font-weight: 700;
}

.chip {
  font-family: var(--font-display);
  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);
  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);
  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);
  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;
}

.btn {
  display: block;
  width: 100%;
  padding: 15px 16px;
  border-radius: 14px;
  border: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  background: var(--accent);
  color: var(--ink);
  transition: transform 0.08s, opacity 0.2s;
  text-align: center;
  text-decoration: none;
}
.btn:active {
  transform: scale(0.98);
}
.btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--navy3);
}
.btn.bad {
  background: var(--bad);
  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);
  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);
  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);
  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);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex: none;
}

.code {
  font-family: var(--font-display);
  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 {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 40px);
  opacity: 0;
  background: var(--text);
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 12px;
  transition: 0.25s;
  z-index: 50;
  max-width: 90vw;
  text-align: center;
  pointer-events: none;
}
.toast.on {
  transform: translate(-50%, 0);
  opacity: 1;
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  margin-top: 28px;
}
footer a {
  color: var(--gold);
  text-decoration: none;
}
