/* Full-screen Google / Meta TV palette — compact TV UI */
:root {
  --g-blue: #4285f4;
  --g-red: #ea4335;
  --g-yellow: #fbbc04;
  --g-green: #34a853;
  --bg0: #202124;
  --bg1: #292a2d;
  --ink: #e8eaed;
  --muted: #9aa0a6;
  --panel: #303134;
  --panel-strong: #3c4043;
  --focus: #8ab4f8;
  --ok: #81c995;
  --bad: #f28b82;
  --brand: #8ab4f8;
  --card-border: rgba(138, 180, 248, 0.22);
  --glow-a: rgba(66, 133, 244, 0.16);
  --glow-b: rgba(52, 168, 83, 0.09);
  --glow-c: rgba(251, 188, 4, 0.07);
  --font: "Lexend", "SamsungOne", system-ui, sans-serif;
  --display: "Outfit", "Lexend", "SamsungOne", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font);
  background: var(--bg0);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  color: inherit;
}

button:focus {
  outline: none;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1000px 560px at 8% -10%, var(--glow-a), transparent 55%),
    radial-gradient(800px 480px at 96% 0%, var(--glow-b), transparent 50%),
    radial-gradient(640px 420px at 50% 110%, var(--glow-c), transparent 55%),
    linear-gradient(165deg, var(--bg0), var(--bg1));
}

.app {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 36px 64px 40px;
}

/* —— Top bar —— */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  flex-shrink: 0;
}

.topbar.has-mode-switch {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto minmax(280px, 1fr);
  align-items: center;
  gap: 20px;
}

.topbar.has-mode-switch .brand {
  justify-self: start;
}

.topbar.has-mode-switch .mode-switch {
  justify-self: center;
}

.topbar-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-shrink: 0;
}

.topbar.has-mode-switch .topbar-end {
  justify-self: end;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.brand-logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.brand h1 {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f1f3f4;
  line-height: 1.15;
}

.brand p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 600;
}

.google-dots {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}

.google-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.google-dots span:nth-child(1) { background: var(--g-blue); }
.google-dots span:nth-child(2) { background: var(--g-red); }
.google-dots span:nth-child(3) { background: var(--g-yellow); }
.google-dots span:nth-child(4) { background: var(--g-green); }

.toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.chip {
  appearance: none;
  border-radius: 999px;
  padding: 16px 28px;
  font-size: 22px;
  font-weight: 700;
  background: var(--g-blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(66, 133, 244, 0.32);
  border: 2px solid transparent;
}

.chip.ghost {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--card-border);
  box-shadow: none;
}

/* Remote-only pause: light dim over content, no blocking popup */
.pause-dim {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.38);
  transition: opacity 0.2s ease;
}

.pause-dim[hidden] {
  display: none;
}

.chip:focus,
.game-card:focus,
.answer:focus,
.count-chip:focus,
.hangman-key:focus {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  box-shadow: 0 0 0 7px rgba(138, 180, 248, 0.2);
}

.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--card-border);
  font-weight: 700;
  font-size: 20px;
  color: #f1f3f4;
  margin-right: 10px;
}

.score-pill strong {
  color: var(--g-yellow);
  font-size: 26px;
}

/* —— Profiles —— */
.profiles-main {
  justify-content: center;
  gap: 28px;
  padding: 12px 0 24px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 300px));
  gap: 20px;
  justify-content: center;
}

.profile-card {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  padding: 22px 24px;
  border-radius: 22px;
  background: var(--panel);
  border: 2px solid rgba(255, 255, 255, 0.1);
  min-height: 110px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.profile-card.add {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.28);
}

.profile-card:focus,
.age-band-card:focus,
.profile-chip:focus,
.profile-name-input:focus {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  box-shadow: 0 0 0 7px rgba(138, 180, 248, 0.2);
}

.profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  color: #fff;
  background: var(--avatar, var(--g-blue));
  flex-shrink: 0;
}

.profile-avatar.lg {
  width: 64px;
  height: 64px;
  font-size: 30px;
}

.profile-card-text,
.profile-chip-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.profile-card-text strong,
.profile-chip-text strong {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
  color: #fff;
}

.profile-card-text em,
.profile-chip-text em {
  font-style: normal;
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
}

.profile-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: 10px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--card-border);
  color: #fff;
}

.profile-chip .profile-avatar {
  width: 40px;
  height: 40px;
  font-size: 18px;
}

.profile-chip-text strong {
  font-size: 18px;
}

.profile-chip-text em {
  font-size: 14px;
}

.profile-create {
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-name-label {
  font-weight: 700;
  color: var(--muted);
  font-size: 20px;
}

.profile-name-input {
  appearance: none;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 700;
  padding: 18px 22px;
  width: 100%;
  max-width: 520px;
}

.age-band-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.age-band-card {
  appearance: none;
  text-align: left;
  padding: 22px 20px;
  border-radius: 18px;
  background: var(--panel);
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 120px;
}

.age-band-card strong {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
}

.age-band-card span {
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

.age-band-card.selected {
  border-color: var(--g-blue);
  background: rgba(66, 133, 244, 0.18);
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.25);
}

.profile-create-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

.empty-games {
  color: var(--muted);
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  margin-top: 48px;
}

.remote-status {
  margin: 8px 0 0;
  color: var(--g-yellow);
  font-weight: 700;
  font-size: 20px;
}

.remote-status.is-connected {
  color: var(--g-green, #34a853);
}

.remote-card {
  width: min(520px, 78vw);
  max-width: 520px;
  text-align: center;
  padding: 36px 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.remote-card h2 {
  margin: 0 0 8px;
  text-align: center;
  width: 100%;
}

.remote-pin {
  margin: 12px auto 22px;
  font-size: 92px;
  font-weight: 800;
  letter-spacing: 0.28em;
  /* letter-spacing adds trailing space — pull back so the PIN looks centered */
  padding-left: 0.28em;
  color: var(--g-yellow, #fbbc04);
  line-height: 1.1;
  text-align: center;
}

.remote-card .remote-status {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 700;
  color: var(--g-yellow, #fbbc04);
}

.remote-card .remote-status.is-connected {
  color: #81c995;
}

.remote-card .remote-players {
  width: 100%;
  margin: 0 0 28px;
  min-height: 44px;
  display: flex;
  justify-content: center;
}

.remote-card .remote-players .players-bar {
  justify-content: center;
  padding: 0;
  width: 100%;
}

.remote-card .modal-actions {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  margin: 0;
}

.remote-card .modal-actions .chip {
  min-width: 180px;
  justify-content: center;
  text-align: center;
}

.conn-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 280px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(52, 168, 83, 0.18);
  color: #81c995;
  font-weight: 700;
  font-size: 18px;
  margin-right: 12px;
  border: 2px solid transparent;
}

.conn-pill:focus,
.conn-pill.is-focused {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(138, 180, 248, 0.35);
  outline: none;
}

.conn-pill-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conn-pill .dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34a853;
  box-shadow: 0 0 0 3px rgba(52, 168, 83, 0.35);
}

.remote-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  margin-top: 10px;
}

.remote-status-row .remote-status {
  margin: 0;
}

.remote-status-row .remote-players {
  margin-top: 0;
}

.country-map {
  /* Height is set in JS to a true geographic aspect (Tizen often ignores aspect-ratio). */
  position: relative;
  width: min(1100px, 90vw);
  height: 360px;
  margin: 6px auto 12px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: #5fa8bf;
  flex-shrink: 0;
}

.country-map.map-us {
  background: #9ec9dc;
}

.country-map-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.main.map-quiz {
  padding-bottom: 12px;
}

.main.map-quiz .prompt {
  margin-bottom: 4px;
}

.main.map-quiz .answers {
  max-width: 1180px;
  gap: 22px 36px;
}

.main.map-quiz .answer {
  min-height: 84px;
  padding: 18px 24px;
}

.main.map-quiz .answer-text {
  font-size: 32px;
}

.players-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 48px 4px;
  align-items: center;
}

.players-bar.empty {
  color: var(--muted);
  font-size: 20px;
  font-weight: 600;
}

.player-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #e8eaed;
  font-weight: 700;
  font-size: 22px;
}

.player-chip.host {
  background: rgba(251, 188, 4, 0.22);
  color: #fdd663;
  box-shadow: inset 0 0 0 2px rgba(251, 188, 4, 0.45);
}

.host-star {
  color: #fbbc04;
  font-size: 1.05em;
}

.remote-players {
  margin-top: 12px;
  min-height: 24px;
}

.remote-players .players-bar {
  padding: 0;
  justify-content: center;
}

.party-scoreboard li.winner {
  background: rgba(251, 188, 4, 0.2);
  box-shadow: inset 0 0 0 2px rgba(251, 188, 4, 0.55);
}

.party-scoreboard li.winner .party-name {
  color: #fdd663;
}

.party-scoreboard li.winner .party-pts {
  color: #fdd663;
  font-weight: 800;
}

.winner-crown {
  margin-right: 2px;
}

.host-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.65em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(232, 234, 237, 0.7);
  background: rgba(255, 255, 255, 0.1);
  vertical-align: middle;
}

.party-waiting {
  margin-top: 20px;
  text-align: center;
}

.party-waiting ul {
  list-style: none;
  padding: 0;
  margin: 12px auto;
  max-width: 520px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.party-waiting li {
  padding: 10px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
  font-size: 22px;
}

.party-waiting li.done {
  background: rgba(52, 168, 83, 0.25);
  color: #81c995;
}

.party-count {
  color: var(--muted);
  font-size: 20px;
}

.party-scoreboard {
  list-style: none;
  padding: 0;
  margin: 24px auto;
  max-width: 640px;
}

.party-scoreboard li {
  display: grid;
  grid-template-columns: 48px 1fr 80px;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 26px;
  font-weight: 700;
}

.party-rank {
  color: var(--g-yellow, #fbbc04);
}

.party-pts {
  text-align: right;
  color: #81c995;
}

.party-reveal-note {
  margin-top: 16px;
  font-size: 28px;
  font-weight: 700;
  color: var(--g-yellow, #fbbc04);
  text-align: center;
}

.party-empty {
  color: var(--muted);
  text-align: center;
}

#remote-modal .profile-name-input {
  max-width: 100%;
  font-size: 28px;
  margin-bottom: 10px;
}

/* —— Home —— */
.main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.home-main {
  justify-content: flex-start;
  padding-top: 4px;
  gap: 28px;
  overflow: auto;
}

/* Games / Explore — premium segmented control in the top bar */
.mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.mode-switch-btn {
  appearance: none;
  border: 2px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  padding: 14px 34px;
  min-width: 148px;
  letter-spacing: -0.01em;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.mode-switch-btn.is-active {
  color: #fff;
  background: rgba(66, 133, 244, 0.95);
  box-shadow: 0 8px 20px rgba(66, 133, 244, 0.35);
}

.mode-switch-btn:focus {
  color: #fff;
  border-color: rgba(138, 180, 248, 0.95);
  box-shadow: 0 0 0 3px rgba(138, 180, 248, 0.35);
}

.mode-switch-btn.is-active:focus {
  background: rgba(66, 133, 244, 1);
  box-shadow: 0 0 0 3px rgba(138, 180, 248, 0.4), 0 8px 20px rgba(66, 133, 244, 0.35);
}

.mode-switch-label {
  display: inline-block;
}

.settings-wrap {
  position: relative;
  flex-shrink: 0;
}

.chip-settings {
  appearance: none;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.chip-settings:focus,
.chip-settings[aria-expanded="true"] {
  border-color: rgba(138, 180, 248, 0.95);
  background: rgba(66, 133, 244, 0.35);
  box-shadow: 0 0 0 3px rgba(138, 180, 248, 0.35);
}

.settings-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 280px;
  padding: 10px;
  border-radius: 18px;
  background: #303134;
  border: 1px solid rgba(138, 180, 248, 0.22);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-dropdown[hidden] {
  display: none !important;
}

.settings-item {
  appearance: none;
  width: 100%;
  text-align: left;
  border: 2px solid transparent;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #f1f3f4;
  font-family: var(--font);
  font-size: 22px;
  font-weight: 700;
  padding: 16px 18px;
}

.settings-item:focus {
  border-color: rgba(138, 180, 248, 0.95);
  background: rgba(66, 133, 244, 0.28);
  box-shadow: 0 0 0 3px rgba(138, 180, 248, 0.28);
}

.settings-item-danger {
  color: #f28b82;
}

.settings-item-label {
  display: block;
}

.explore-hero {
  margin: 0 0 18px;
}

.explore-hero-title {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}

.explore-hero-sub {
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  font-weight: 600;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 20px;
  justify-content: stretch;
}

.explore-grid-4 {
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  max-width: 1100px;
}

.explore-card {
  appearance: none;
  text-align: left;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  border: 2px solid rgba(255, 255, 255, 0.14);
  padding: 24px 24px 22px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.explore-card:focus {
  border-color: rgba(66, 133, 244, 0.95);
  box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.3), 0 12px 28px rgba(0, 0, 0, 0.28);
}

.explore-card-icon {
  font-size: 36px;
  line-height: 1;
  margin-bottom: 4px;
}

.explore-card-kicker {
  font-size: 16px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.explore-card-title {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.explore-card-desc {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.35;
  margin-top: auto;
}

.explore-main {
  gap: 14px;
  padding-bottom: 18px;
}

/* Full-screen map-only explore (TV remote: arrows + OK + Back) */
body.explore-immersive .bg {
  opacity: 0;
}

body.explore-immersive .app.explore-immersive,
.app.explore-immersive {
  padding: 0;
  width: 100%;
  height: 100%;
}

.explore-immersive-main {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0 !important;
  margin: 0 !important;
  gap: 0 !important;
  display: block;
  overflow: hidden;
}

.explore-map {
  width: min(1600px, 96vw);
  height: 620px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
  background: #5fa8bf;
  flex: 1 1 auto;
}

.explore-map.map-fill {
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
}

.explore-map.map-us {
  background: #9ec9dc;
}

.explore-watermark {
  position: absolute;
  top: 28px;
  left: 28px;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  opacity: 0.18;
  pointer-events: none;
  z-index: 2;
  filter: saturate(0.85);
}

.explore-label {
  text-align: center;
  font-family: var(--display);
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin: 4px 0 0;
}

.explore-hint {
  text-align: center;
  color: var(--muted);
  font-size: 20px;
  margin: 0;
}

.explore-nav-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.dictionary-main {
  --dict-display: "Outfit", "Lexend", system-ui, sans-serif;
  --dict-body: "Lexend", "Nunito", system-ui, sans-serif;
  gap: 24px;
  align-items: center;
  justify-content: center;
  font-family: var(--dict-body);
}

.dictionary-stage {
  width: min(1560px, 94%);
  margin: 0 auto;
  padding: 44px 56px 40px;
  border-radius: 28px;
  background:
    radial-gradient(960px 360px at 12% 0%, rgba(66, 133, 244, 0.24), transparent 55%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
  border: 2px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.4);
  text-align: center;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.dictionary-pos {
  display: inline-block;
  margin: 0 0 16px;
  padding: 9px 22px;
  border-radius: 999px;
  background: rgba(138, 180, 248, 0.22);
  color: #c2d7ff;
  font-family: var(--dict-body);
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.dictionary-word {
  font-family: var(--dict-display);
  font-size: 108px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  line-height: 1.08;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.35);
}

.dictionary-label {
  display: block;
  font-family: var(--dict-body);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 10px;
}

.dictionary-meaning {
  font-family: var(--dict-body);
  font-size: 46px;
  color: #ffffff;
  line-height: 1.38;
  letter-spacing: 0.005em;
  margin: 0 auto 28px;
  max-width: 1360px;
  font-weight: 700;
}

.dictionary-usage {
  margin: 0 auto 24px;
  max-width: 1360px;
  padding: 26px 32px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  text-align: left;
}

.dictionary-example {
  margin: 0;
  font-family: var(--dict-body);
  font-size: 38px;
  font-style: normal;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.42;
  letter-spacing: 0.005em;
}

.dictionary-related-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 0 auto 24px;
  max-width: 1360px;
  text-align: left;
}

.dictionary-related {
  padding: 20px 24px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.26);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
}

.dictionary-related-syn {
  border-color: rgba(52, 168, 83, 0.45);
}

.dictionary-related-ant {
  border-color: rgba(234, 67, 53, 0.45);
}

.dictionary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.dictionary-chip {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--dict-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.005em;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.dictionary-related-syn .dictionary-chip {
  background: rgba(52, 168, 83, 0.26);
  color: #a8dab5;
}

.dictionary-related-ant .dictionary-chip {
  background: rgba(234, 67, 53, 0.24);
  color: #f6aea9;
}

.dictionary-tip {
  margin: 0;
  font-family: var(--dict-body);
  font-size: 30px;
  line-height: 1.4;
  letter-spacing: 0.005em;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.dictionary-hint {
  margin: 0;
  font-family: var(--dict-body);
  color: rgba(255, 255, 255, 0.72);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.section-block {
  flex-shrink: 0;
}

.section-label {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 280px));
  gap: 16px;
  align-content: start;
  justify-content: start;
}

.game-card {
  appearance: none;
  text-align: left;
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 2px solid var(--card-border);
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 108px;
  max-width: 280px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: var(--accent, var(--g-blue));
}

.game-example {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1.1;
}

.game-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.25;
}

/* —— Hangman / Guess the word —— */
.hangman {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 12px 0 16px;
}

.hangman-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}

.hangman-tries {
  font-size: 22px;
  font-weight: 700;
  color: var(--muted);
}

.hangman-tries strong {
  color: var(--g-yellow);
  font-size: 28px;
}

.hangman-word-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 200px;
  padding: 12px 8px 40px;
}

.hangman-blanks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  padding: 12px 8px;
  align-items: center;
}

.hangman-blank {
  width: 84px;
  height: 104px;
  border-radius: 16px;
  border-bottom: 6px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 58px;
  font-weight: 800;
  color: #fff;
}

.hangman-blank.filled {
  border-bottom-color: var(--g-green);
  background: rgba(52, 168, 83, 0.16);
}

.hangman-blank.reveal {
  border-bottom-color: var(--g-red);
  background: rgba(234, 67, 53, 0.16);
  color: #f28b82;
}

.hangman-status {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  min-height: 36px;
}

.hangman-status .hangman-word-reveal {
  display: block;
  margin-top: 8px;
  font-family: var(--display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hangman-status.ok {
  color: var(--g-green);
}

.hangman-status.bad {
  color: #f28b82;
}

.hangman-keypad {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 0 8px;
  flex-shrink: 0;
}

.hangman-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.hangman-row-z .hangman-key {
  grid-column: 3; /* same cell size as A–Y; centered under C/H/M/R/W */
}

.hangman-key {
  appearance: none;
  min-height: 72px;
  border-radius: 16px;
  background: var(--panel);
  border: 2px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

.hangman-key.hit {
  background: rgba(52, 168, 83, 0.28);
  border-color: var(--g-green);
  color: #81c995;
}

.hangman-key.miss {
  background: rgba(234, 67, 53, 0.22);
  border-color: var(--g-red);
  color: #f28b82;
  opacity: 0.85;
}

.hangman-key:disabled {
  cursor: default;
}

/* —— Quiz: use full vertical space —— */
.quiz {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0 12px;
}

.quiz-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-shrink: 0;
}

.progress-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.progress-track {
  position: relative;
  flex: 1;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: visible;
}

.progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--g-blue), var(--g-green));
}

.progress-bar.running {
  animation: bar-grow var(--progress-duration, 10s) linear forwards;
}

.progress-bar.full {
  width: calc(100% - 4px);
  animation: none;
}

.progress-runner {
  position: absolute;
  right: -6px;
  bottom: -12px;
  font-size: 26px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
  animation: runner-bounce 0.55s ease-in-out infinite;
}

.progress-runner.static {
  animation: none;
}

.progress-end {
  font-size: 22px;
  line-height: 1;
}

.q-counter {
  font-size: 20px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.prompt {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
  font-family: var(--display);
  font-size: 88px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
  padding: 12px 24px;
  min-height: 160px;
}

.prompt .term {
  display: inline-block;
}

.prompt .op {
  display: inline-block;
  margin: 0 0.32em;
  font-weight: 800;
}

.prompt .op.eq {
  color: var(--g-yellow);
  margin-left: 0.38em;
  margin-right: 0.38em;
}

.prompt.prompt-wide {
  font-size: 44px;
  letter-spacing: -0.01em;
  line-height: 1.3;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.prompt-text {
  display: block;
  max-width: 1100px;
  white-space: pre-line;
}

.answers {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 48px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 8px 8px;
}

.answer {
  appearance: none;
  border-radius: 20px;
  background: var(--panel);
  border: 2px solid rgba(255, 255, 255, 0.1);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 110px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
}

.answer-text {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.answer.selected {
  border-color: var(--focus);
  background: #3c4043;
}

.answer.correct {
  border-color: var(--g-green);
  background: rgba(52, 168, 83, 0.22);
  box-shadow: 0 0 0 3px rgba(52, 168, 83, 0.25), 0 8px 20px rgba(0, 0, 0, 0.22);
}

.answer.wrong {
  border-color: var(--g-red);
  background: rgba(234, 67, 53, 0.2);
}

/* —— Story time —— */
.main.story-read {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 0 8px;
  min-height: 0;
}

.main.story-ask {
  gap: 16px;
}

.story-panel {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 28px 36px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  transition: font-size 0.35s ease, padding 0.35s ease, max-height 0.35s ease;
}

.story-panel.story-large {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1500px;
  margin: 0 auto;
  width: 100%;
  padding: 40px 48px;
}

.story-panel.story-compact {
  flex: 0 0 auto;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 12px 28px 14px;
}

.story-title {
  font-family: var(--display);
  font-weight: 800;
  color: var(--g-yellow);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.story-panel.story-large .story-title {
  font-size: 40px;
  margin-bottom: 20px;
}

.story-panel.story-compact .story-title {
  font-size: 22px;
  margin-bottom: 6px;
}

.story-text {
  margin: 0;
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.45;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.story-panel.story-large .story-text {
  font-size: 34px;
  line-height: 1.5;
}

.story-panel.story-compact .story-text {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
}

.story-read-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.story-read-meta {
  width: 100%;
  max-width: 1400px;
}

.story-read-hint {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--muted);
}

.story-ready {
  min-width: 220px;
  font-size: 26px;
  padding: 18px 36px;
}

.prompt.prompt-story-q {
  flex: 0 0 auto;
  min-height: 0;
  padding: 4px 16px 8px;
  font-size: 36px;
}

.main.story-ask .answers {
  gap: 28px 40px;
  padding-bottom: 4px;
}

.main.story-ask .answer {
  min-height: 88px;
  padding: 22px 28px;
}

.main.story-ask .answer-text {
  font-size: 36px;
}

@keyframes bar-grow {
  from { width: 0; }
  to { width: calc(100% - 4px); }
}

@keyframes runner-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* —— Results —— */
.results {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
}

.results h2 {
  font-family: var(--display);
  font-size: 48px;
  font-weight: 800;
  color: #fff;
}

.score-ring {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 999px;
  background: var(--panel);
  border: 2px solid var(--card-border);
  margin: 8px 0;
}

.score-num {
  font-family: var(--display);
  font-size: 64px;
  font-weight: 800;
  color: var(--g-yellow);
  line-height: 1;
}

.score-of {
  font-size: 28px;
  font-weight: 700;
  color: var(--muted);
}

.results p {
  font-size: 24px;
  color: var(--muted);
  font-weight: 600;
  max-width: 720px;
}

.results-actions {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

/* —— Modals —— */
.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.62);
}

.modal[hidden] {
  display: none !important;
}

.modal-card {
  width: min(640px, 78vw);
  background: #303134;
  border: 1px solid rgba(138, 180, 248, 0.22);
  border-radius: 22px;
  padding: 34px 36px;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.5);
}

.modal-card h2 {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.modal-card p {
  font-size: 20px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.4;
}

.modal-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.explore-info-card {
  width: min(720px, 82vw);
}

.explore-info-card h2 {
  font-size: 40px;
  margin-bottom: 8px;
}

.explore-info-capital {
  font-size: 24px !important;
  color: #e8eaed !important;
  margin-bottom: 18px !important;
}

.explore-info-capital strong {
  color: #8ab4f8;
  font-weight: 700;
}

.explore-info-facts {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.explore-info-facts li {
  position: relative;
  padding: 14px 16px 14px 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
}

.explore-info-facts li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: #8ab4f8;
}

.explore-list-main {
  gap: 18px;
  padding-bottom: 24px;
}

.explore-list-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.explore-list-card {
  appearance: none;
  text-align: left;
  border-radius: 16px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 92px;
}

.explore-list-card:focus {
  border-color: rgba(66, 133, 244, 0.95);
  box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.28);
}

.explore-list-title {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 800;
}

.explore-list-sub {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.explore-list-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* Full-screen immersive splash — like the maps: no chrome, fills the screen. */
.periodic-main.periodic-splash {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 36px 40px;
  margin: 0;
  gap: 0;
  display: block;
  overflow: hidden;
  box-sizing: border-box;
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(66, 133, 244, 0.28), transparent 55%),
    radial-gradient(900px 500px at 85% 100%, rgba(167, 139, 250, 0.22), transparent 55%),
    linear-gradient(160deg, #0b1220 0%, #111c33 55%, #0b1220 100%);
}

.periodic-splash .explore-watermark {
  top: 20px;
  left: 20px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  opacity: 0.22;
}

.pt-watermark-ghost {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 640px;
  height: 640px;
  margin-left: -320px;
  margin-top: -320px;
  border-radius: 50%;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
  filter: saturate(0.9);
}

.pt-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(18, minmax(0, 1fr));
  grid-template-rows: repeat(9, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 0;
  box-sizing: border-box;
}

.pt-cell {
  appearance: none;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.28), rgba(15, 23, 42, 0.58)), var(--pt, #64748b);
  color: #fff;
  padding: 8px 6px 10px;
  min-height: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  line-height: 1.1;
  box-sizing: border-box;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 8px 20px rgba(0, 0, 0, 0.28);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.pt-cell:focus {
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.65), 0 0 28px rgba(66, 133, 244, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  z-index: 2;
  transform: scale(1.07);
}

.pt-placeholder {
  opacity: 0.55;
  background: rgba(148, 163, 184, 0.16);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.pt-placeholder .pt-z {
  font-size: 14px;
  align-self: center;
  padding-left: 0;
}

.pt-placeholder .pt-sym {
  font-size: 20px;
  opacity: 0.9;
}

.pt-z {
  font-family: "Nunito", "Lexend", var(--font);
  font-size: 16px;
  font-weight: 800;
  opacity: 0.95;
  align-self: flex-start;
  padding-left: 5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.pt-sym {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.pt-name {
  font-family: "Nunito", "Lexend", var(--font);
  font-size: 15px;
  font-weight: 800;
  opacity: 1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 3px;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

.count-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.count-chip {
  appearance: none;
  border-radius: 16px;
  padding: 20px 8px;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 800;
  background: var(--panel-strong);
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.count-chip.is-selected {
  border-color: rgba(66, 133, 244, 0.95);
  background: rgba(66, 133, 244, 0.28);
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.25);
}

/* —— Celebrate —— */
.celebrate {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -24px;
  border-radius: 3px;
  animation-name: confetti-fall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translate3d(0, -10vh, 0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate3d(0, 110vh, 0) rotate(calc(var(--spin, 20deg) * 8));
    opacity: 0.85;
  }
}

.balloon {
  position: absolute;
  bottom: -120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(var(--scale, 1));
  animation-name: balloon-rise;
  animation-timing-function: ease-out;
  animation-fill-mode: forwards;
}

.balloon-body {
  width: 48px;
  height: 60px;
  border-radius: 50% 50% 48% 48%;
  position: relative;
  box-shadow: inset -8px -10px 0 rgba(0, 0, 0, 0.12);
}

.balloon-body::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  background: inherit;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.balloon-string {
  width: 2px;
  height: 48px;
  background: rgba(255, 255, 255, 0.55);
}

@keyframes balloon-rise {
  0% {
    transform: translate3d(0, 0, 0) scale(var(--scale, 1));
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  100% {
    transform: translate3d(18px, -120vh, 0) scale(var(--scale, 1));
    opacity: 0.9;
  }
}
