:root {
  color-scheme: dark;
  --bg: #080a10;
  --panel: rgba(18, 22, 34, 0.78);
  --panel-strong: rgba(25, 30, 46, 0.94);
  --line: rgba(255, 255, 255, 0.11);
  --text: #f7f8ff;
  --muted: #9ca5ba;
  --soft: #c9d1e7;
  --red: #ff4568;
  --gold: #ffcc66;
  --cyan: #34d4ff;
  --green: #5dffa8;
  --violet: #a66cff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 69, 104, 0.26), transparent 34rem),
    radial-gradient(circle at 78% 12%, rgba(52, 212, 255, 0.22), transparent 32rem),
    linear-gradient(135deg, #080a10 0%, #11131d 48%, #050608 100%);
  color: var(--text);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
}

body.bottle-fullscreen-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

.ambient {
  position: fixed;
  inset: auto;
  pointer-events: none;
  filter: blur(42px);
  opacity: 0.3;
}

.ambient-a {
  width: 15rem;
  height: 15rem;
  left: -6rem;
  top: 30%;
  background: #ffcc66;
}

.ambient-b {
  width: 16rem;
  height: 16rem;
  right: -7rem;
  bottom: 11%;
  background: #34d4ff;
}

.app-shell {
  position: relative;
  width: min(100%, 480px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(0.85rem, env(safe-area-inset-top)) 1rem calc(6.3rem + env(safe-area-inset-bottom));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 2.75rem 1fr 2.75rem;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0;
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.brand-mark {
  width: 2.45rem;
  height: 2.45rem;
  flex: 0 0 auto;
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(255, 69, 104, 0.24);
}

.eyebrow {
  margin: 0 0 0.1rem;
  color: var(--gold);
  font-size: 0.63rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 950;
  line-height: 1;
}

h2 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.7rem, 9vw, 2.6rem);
  line-height: 0.96;
}

h3 {
  margin-bottom: 0.35rem;
  font-size: 1.06rem;
}

.screen {
  animation: lift 0.25s ease both;
}

@keyframes lift {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero {
  min-height: 10rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.1rem;
  margin: 0.35rem 0 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(255, 69, 104, 0.82), rgba(31, 35, 55, 0.44) 48%, rgba(52, 212, 255, 0.36)),
    url("./assets/noise.png");
  background-size: cover, 128px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero p {
  max-width: 28rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.83);
  font-weight: 650;
  line-height: 1.42;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.stat {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.stat b {
  display: block;
  font-size: 1.15rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.game-grid {
  display: grid;
  gap: 0.72rem;
}

.game-card {
  position: relative;
  display: grid;
  grid-template-columns: 3.4rem 1fr auto;
  align-items: center;
  min-height: 5.8rem;
  width: 100%;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.26);
  text-align: left;
}

.game-card::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), transparent 42%);
  content: "";
  opacity: 0.14;
}

.game-card > * {
  position: relative;
}

.game-icon {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 22%, rgba(255, 255, 255, 0.07));
}

.game-icon svg,
.icon-button svg,
.dock svg,
.mini-icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.game-title {
  margin: 0 0 0.22rem;
  font-weight: 920;
}

.game-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.chevron {
  color: rgba(255, 255, 255, 0.58);
  font-size: 1.65rem;
}

.dock {
  position: fixed;
  left: 50%;
  bottom: max(0.8rem, env(safe-area-inset-bottom));
  z-index: 20;
  display: grid;
  width: min(28rem, calc(100% - 1.4rem));
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  padding: 0.42rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 11, 18, 0.78);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(24px);
  transform: translateX(-50%);
}

.dock-item {
  display: flex;
  min-width: 0;
  height: 3.35rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
}

.dock-item.is-active {
  background: rgba(255, 255, 255, 0.11);
  color: var(--text);
}

.icon-button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
}

.is-hidden {
  visibility: hidden;
}

.panel,
.setup-panel {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.stack {
  display: grid;
  gap: 0.75rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.button,
.danger-button,
.ghost-button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.72rem 1rem;
  font-weight: 900;
  line-height: 1;
}

.button {
  background: linear-gradient(135deg, var(--red), var(--gold));
  color: #10070b;
}

.danger-button {
  background: rgba(255, 69, 104, 0.16);
  border-color: rgba(255, 69, 104, 0.3);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line);
}

.full {
  width: 100%;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label,
.section-label {
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.field input,
.field select,
.field textarea,
.player-input {
  width: 100%;
  min-height: 2.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  outline: none;
  padding: 0.78rem 0.85rem;
}

.field textarea {
  min-height: 8.2rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.player-input:focus {
  border-color: rgba(52, 212, 255, 0.58);
  box-shadow: 0 0 0 3px rgba(52, 212, 255, 0.14);
}

.hint {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.player-row {
  display: grid;
  grid-template-columns: 1fr 2.75rem;
  gap: 0.45rem;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--soft);
  padding: 0.52rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 850;
}

.chip.is-active {
  border-color: rgba(255, 204, 102, 0.58);
  background: rgba(255, 204, 102, 0.16);
  color: #fff4d4;
}

.language-switcher {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.language-option {
  display: grid;
  min-height: 4.15rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    rgba(255, 255, 255, 0.04);
  color: var(--soft);
  padding: 0.65rem 0.45rem;
  text-align: center;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.language-option b {
  color: var(--text);
  font-size: 1rem;
  font-weight: 950;
}

.language-option span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.language-option.is-active {
  border-color: rgba(255, 204, 102, 0.58);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 204, 102, 0.2), transparent 4rem),
    rgba(255, 204, 102, 0.12);
  box-shadow: 0 14px 34px rgba(255, 204, 102, 0.08);
}

.language-option:active {
  transform: scale(0.98);
}

.counter-list {
  display: grid;
  gap: 0.48rem;
}

.counter-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.2rem;
  padding: 0.52rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.counter-title {
  min-width: 0;
}

.counter-title b {
  display: block;
  font-size: 0.9rem;
}

.counter-title span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.stepper {
  display: grid;
  grid-template-columns: 2.25rem 2rem 2.25rem;
  align-items: center;
  gap: 0.25rem;
}

.stepper button {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
}

.stepper span {
  text-align: center;
  font-weight: 900;
}

.reveal-card {
  display: grid;
  min-height: 19rem;
  place-items: center;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03)),
    radial-gradient(circle at 50% 0%, rgba(255, 204, 102, 0.16), transparent 58%);
  box-shadow: var(--shadow);
  text-align: center;
}

.reveal-card b {
  display: block;
  font-size: clamp(2rem, 13vw, 3.8rem);
  line-height: 0.95;
}

.reveal-card span {
  display: block;
  color: var(--muted);
  font-weight: 850;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  border-radius: 999px;
  background: rgba(52, 212, 255, 0.14);
  color: #ddf8ff;
  padding: 0.45rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 900;
}

.big-secret {
  margin: 0.8rem 0;
  color: var(--text);
  font-size: clamp(1.75rem, 10vw, 3rem);
  font-weight: 950;
  line-height: 0.98;
}

.timeline {
  display: grid;
  gap: 0.55rem;
  counter-reset: phase;
}

.phase {
  position: relative;
  padding: 0.78rem 0.8rem 0.78rem 3rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.phase::before {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  display: grid;
  width: 1.6rem;
  height: 1.6rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 204, 102, 0.2);
  color: var(--gold);
  content: counter(phase);
  counter-increment: phase;
  font-size: 0.78rem;
  font-weight: 950;
}

.phase b {
  display: block;
}

.phase span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.36;
}

.bottle-stage {
  position: relative;
  display: grid;
  min-height: 23rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 204, 102, 0.14), transparent 8rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  overflow: hidden;
}

.bottle-stage.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 80;
  min-height: 100dvh;
  width: 100vw;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 204, 102, 0.22), transparent 14rem),
    radial-gradient(circle at 18% 18%, rgba(255, 69, 104, 0.18), transparent 15rem),
    linear-gradient(145deg, #090b12, #121824 58%, #07151b);
  padding: max(1rem, env(safe-area-inset-top)) max(0.9rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(0.9rem, env(safe-area-inset-left));
}

.bottle-stage.is-expanded::before {
  position: absolute;
  inset: 0;
  background: url("./assets/noise.png"), linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 35%);
  content: "";
  opacity: 0.5;
  pointer-events: none;
}

.fullscreen-controls {
  position: absolute;
  left: max(0.9rem, env(safe-area-inset-left));
  right: max(0.9rem, env(safe-area-inset-right));
  top: max(0.9rem, env(safe-area-inset-top));
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
}

.fullscreen-controls .button,
.fullscreen-controls .ghost-button {
  width: auto;
  min-height: 2.75rem;
  padding-inline: 0.95rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
}

.bottle-ring {
  position: absolute;
  width: 18rem;
  max-width: 78vw;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
}

.bottle-stage.is-expanded .bottle-ring {
  width: min(86vw, 38rem);
  max-width: none;
  box-shadow:
    0 0 0 1.1rem rgba(255, 255, 255, 0.025),
    inset 0 0 60px rgba(255, 204, 102, 0.11),
    0 0 80px rgba(52, 212, 255, 0.12);
}

.bottle-pointer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3rem;
  height: 13rem;
  transform-origin: 50% 50%;
  transition: transform 2.4s cubic-bezier(0.12, 0.82, 0.15, 1);
}

.bottle-stage.is-expanded .bottle-pointer {
  width: 4.8rem;
  height: 20rem;
}

.bottle-stage.is-expanded .bottle-pointer::before {
  width: 1.8rem;
  height: 11rem;
}

.bottle-stage.is-expanded .bottle-pointer::after {
  top: 10.2rem;
  width: 3.6rem;
  height: 6.9rem;
}

.bottle-pointer.is-spinning::before,
.bottle-pointer.is-spinning::after {
  filter: saturate(1.25) brightness(1.12);
}

.bottle-pointer::before {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1.2rem;
  height: 7.6rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, rgba(93, 255, 168, 0.92), rgba(52, 212, 255, 0.56));
  box-shadow: 0 0 34px rgba(52, 212, 255, 0.35);
  content: "";
  transform: translateX(-50%);
}

.bottle-pointer::after {
  position: absolute;
  left: 50%;
  top: 7.1rem;
  width: 2.3rem;
  height: 4.3rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 9px 9px 18px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 69, 104, 0.74));
  content: "";
  transform: translateX(-50%);
}

.bottle-pointer.skin-jager::before,
.skin-preview.skin-jager::before {
  background: linear-gradient(180deg, #0f3b24, #1ca05b);
  box-shadow: 0 0 34px rgba(93, 255, 168, 0.34);
}

.bottle-pointer.skin-jager::after,
.skin-preview.skin-jager::after {
  background: linear-gradient(180deg, rgba(255, 238, 174, 0.65), rgba(23, 80, 45, 0.94));
}

.bottle-pointer.skin-nemiroff::before,
.skin-preview.skin-nemiroff::before {
  background: linear-gradient(180deg, #f6f7ff, #ff405f 62%, #68111f);
  box-shadow: 0 0 34px rgba(255, 69, 104, 0.36);
}

.bottle-pointer.skin-nemiroff::after,
.skin-preview.skin-nemiroff::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 29, 72, 0.82));
}

.bottle-pointer.skin-morosha::before,
.skin-preview.skin-morosha::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(80, 211, 255, 0.72));
  box-shadow: 0 0 38px rgba(52, 212, 255, 0.42);
}

.bottle-pointer.skin-morosha::after,
.skin-preview.skin-morosha::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(34, 134, 190, 0.68));
}

.bottle-pointer.skin-party::before,
.skin-preview.skin-party::before {
  background: linear-gradient(180deg, #fff8d8, #ffcc66 58%, #a66cff);
  box-shadow: 0 0 42px rgba(255, 204, 102, 0.45);
}

.bottle-pointer.skin-party::after,
.skin-preview.skin-party::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 204, 102, 0.9));
}

.bottle-pointer.skin-adult::before,
.skin-preview.skin-adult::before {
  width: 1.45rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd1e6, #ff5dac 70%, #c22c79);
  box-shadow: 0 0 36px rgba(255, 93, 172, 0.42);
}

.bottle-pointer.skin-adult::after,
.skin-preview.skin-adult::after {
  width: 2.8rem;
  height: 3.5rem;
  border-radius: 999px 999px 18px 18px;
  background: linear-gradient(180deg, rgba(255, 230, 242, 0.85), rgba(255, 93, 172, 0.82));
}

.bottle-pointer.skin-dragon::before,
.skin-preview.skin-dragon::before {
  background: linear-gradient(180deg, #caff5d, #1ee682 58%, #0b3f2c);
  box-shadow: 0 0 40px rgba(93, 255, 168, 0.5);
}

.bottle-pointer.skin-dragon::after,
.skin-preview.skin-dragon::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(35, 255, 151, 0.88));
}

.bottle-pointer.skin-diamond::before,
.skin-preview.skin-diamond::before {
  background: linear-gradient(180deg, #e6f2ff, #151923 46%, #050608);
  box-shadow: 0 0 44px rgba(214, 232, 255, 0.36);
}

.bottle-pointer.skin-diamond::after,
.skin-preview.skin-diamond::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(6, 8, 14, 0.94));
}

.bottle-pointer.skin-cyber::before,
.skin-preview.skin-cyber::before {
  background: linear-gradient(180deg, #c9fbff, #34d4ff 62%, #172dff);
  box-shadow: 0 0 42px rgba(52, 212, 255, 0.5);
}

.bottle-pointer.skin-cyber::after,
.skin-preview.skin-cyber::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(52, 119, 255, 0.86));
}

.bottle-pointer.skin-lava::before,
.skin-preview.skin-lava::before {
  background: linear-gradient(180deg, #ffe0a3, #ff8a3d 48%, #9c101f);
  box-shadow: 0 0 42px rgba(255, 138, 61, 0.48);
}

.bottle-pointer.skin-lava::after,
.skin-preview.skin-lava::after {
  background: linear-gradient(180deg, rgba(255, 246, 210, 0.35), rgba(255, 69, 104, 0.9));
}

.bottle-pointer.skin-royal::before,
.skin-preview.skin-royal::before {
  background: linear-gradient(180deg, #f4dcff, #a66cff 58%, #3d137d);
  box-shadow: 0 0 42px rgba(166, 108, 255, 0.48);
}

.bottle-pointer.skin-royal::after,
.skin-preview.skin-royal::after {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(166, 108, 255, 0.9));
}

.bottle-pointer::marker {
  content: "";
}

.player-orbit {
  position: absolute;
  inset: 1.1rem;
}

.bottle-stage.is-expanded .player-orbit {
  left: 50%;
  top: 50%;
  width: min(90vw, 42rem);
  aspect-ratio: 1;
  inset: auto;
  transform: translate(-50%, -50%);
}

.orbit-name {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: 5.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 10, 16, 0.7);
  padding: 0.32rem 0.55rem;
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 850;
  text-align: center;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(-9.2rem) rotate(calc(var(--a) * -1));
}

.bottle-stage.is-expanded .orbit-name {
  max-width: 7.2rem;
  padding: 0.43rem 0.66rem;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(8, 10, 16, 0.82);
  color: #fff;
  font-size: 0.86rem;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(max(-39vw, -16rem)) rotate(calc(var(--a) * -1));
}

.active-skin {
  display: grid;
  grid-template-columns: 4.25rem 1fr;
  gap: 0.85rem;
  align-items: center;
  margin-top: 1rem;
}

.skin-grid {
  display: grid;
  gap: 0.55rem;
}

.skin-card {
  display: grid;
  grid-template-columns: 3.4rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  width: 100%;
  min-height: 4.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(10, 13, 22, 0.66);
  padding: 0.65rem;
  text-align: left;
}

.skin-card.is-selected {
  border-color: rgba(255, 204, 102, 0.55);
  box-shadow: 0 0 34px rgba(255, 204, 102, 0.12);
}

.skin-card.is-locked {
  opacity: 0.68;
}

.skin-card-copy {
  min-width: 0;
}

.skin-card-copy b,
.skin-card-copy small {
  display: block;
}

.skin-card-copy b {
  font-size: 0.92rem;
}

.skin-card-copy small {
  margin-top: 0.16rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.skin-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2rem;
  min-height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  color: var(--soft);
  padding: 0.35rem 0.52rem;
  font-size: 0.68rem;
  font-weight: 950;
}

.skin-preview {
  position: relative;
  display: block;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.18), transparent 1.2rem),
    rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.active-skin .skin-preview {
  width: 4.1rem;
  height: 4.1rem;
}

.skin-preview::before {
  position: absolute;
  left: 50%;
  top: 0.35rem;
  width: 0.48rem;
  height: 1.55rem;
  border-radius: 999px 999px 5px 5px;
  background: linear-gradient(180deg, rgba(93, 255, 168, 0.92), rgba(52, 212, 255, 0.56));
  content: "";
  transform: translateX(-50%);
}

.skin-preview::after {
  position: absolute;
  left: 50%;
  top: 1.55rem;
  width: 1.1rem;
  height: 1.75rem;
  border-radius: 5px 5px 11px 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 69, 104, 0.74));
  content: "";
  transform: translateX(-50%);
}

button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.5);
  opacity: 0.62;
}

.chest-timer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.85rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 204, 102, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 204, 102, 0.12), rgba(52, 212, 255, 0.06));
}

.chest-timer span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.chest-timer b {
  color: var(--gold);
  font-size: 1.15rem;
}

.google-account {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 0.8rem;
  align-items: center;
}

.google-avatar {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
  font-weight: 950;
  overflow: hidden;
}

.google-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prompt-card {
  min-height: 15rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 69, 104, 0.18), transparent 10rem),
    rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
}

.prompt-type {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.prompt-text {
  margin: 0.75rem 0 1rem;
  font-size: clamp(1.35rem, 7vw, 2rem);
  font-weight: 900;
  line-height: 1.12;
}

.small-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.small-list li {
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--soft);
  font-size: 0.86rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(5.5rem + env(safe-area-inset-bottom));
  z-index: 40;
  max-width: min(25rem, calc(100% - 2rem));
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 10, 16, 0.88);
  box-shadow: var(--shadow);
  color: var(--text);
  padding: 0.75rem 0.9rem;
  transform: translate(-50%, 1rem);
  opacity: 0;
  pointer-events: none;
  transition: 0.22s ease;
}

.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.modal {
  width: min(25rem, 100%);
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

@media (min-width: 720px) {
  .app-shell {
    width: min(100%, 860px);
  }

  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .desktop-two {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 0.9rem;
    align-items: start;
  }

  .bottle-stage {
    min-height: 31rem;
  }
}

@media (max-width: 370px) {
  .split,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .dock-item span {
    display: none;
  }
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 72%);
}

.ambient {
  inset: 0;
  z-index: -2;
  width: auto;
  height: auto;
  filter: none;
  opacity: 1;
}

.ambient-a {
  background:
    linear-gradient(115deg, rgba(255, 69, 104, 0.22), transparent 26%),
    linear-gradient(245deg, rgba(52, 212, 255, 0.17), transparent 28%);
  animation: atmosphereShift 10s ease-in-out infinite alternate;
}

.ambient-b {
  background:
    linear-gradient(180deg, transparent 0%, rgba(255, 204, 102, 0.08) 42%, transparent 78%),
    linear-gradient(90deg, transparent, rgba(166, 108, 255, 0.1), transparent);
  mix-blend-mode: screen;
  animation: atmosphereDrift 13s ease-in-out infinite alternate;
}

@keyframes atmosphereShift {
  from {
    transform: translate3d(-1.2rem, -0.5rem, 0) scale(1);
  }
  to {
    transform: translate3d(1rem, 0.8rem, 0) scale(1.04);
  }
}

@keyframes atmosphereDrift {
  from {
    transform: translateY(-0.8rem);
    opacity: 0.65;
  }
  to {
    transform: translateY(0.9rem);
    opacity: 0.95;
  }
}

.topbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(8, 10, 16, 0.82), rgba(8, 10, 16, 0.2));
}

.brand-mark {
  border: 1px solid rgba(255, 255, 255, 0.18);
  animation: markPulse 4.8s ease-in-out infinite;
}

@keyframes markPulse {
  0%,
  100% {
    box-shadow: 0 12px 34px rgba(255, 69, 104, 0.24);
  }
  50% {
    box-shadow: 0 14px 42px rgba(52, 212, 255, 0.25);
  }
}

h2 {
  font-size: 2.15rem;
  letter-spacing: 0;
}

.premium-hero {
  position: relative;
  min-height: 13.5rem;
  padding: 1.25rem;
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02) 38%),
    linear-gradient(135deg, rgba(255, 69, 104, 0.74), rgba(22, 28, 44, 0.88) 46%, rgba(52, 212, 255, 0.42)),
    url("./assets/noise.png");
  background-size: cover, cover, 128px;
  isolation: isolate;
}

.premium-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent),
    linear-gradient(180deg, transparent 70%, rgba(0, 0, 0, 0.26));
  content: "";
  transform: translateX(-100%);
  animation: heroSweep 5.5s ease-in-out infinite;
}

.hero-glint {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 5.5rem;
  height: 0.32rem;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  opacity: 0.42;
}

.hero-kicker {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-bottom: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(8, 10, 16, 0.38);
  color: #fff4d4;
  padding: 0.42rem 0.62rem;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

@keyframes heroSweep {
  0%,
  42% {
    transform: translateX(-100%);
  }
  70%,
  100% {
    transform: translateX(100%);
  }
}

.launch-panel,
.panel,
.setup-panel,
.prompt-card {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.042)),
    rgba(10, 13, 22, 0.76);
  backdrop-filter: blur(20px);
}

.launch-panel {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.launch-panel h3 {
  margin-bottom: 0.7rem;
}

.step-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.38rem;
}

.desktop-two > .step-rail {
  grid-column: 1 / -1;
}

.step-pill {
  display: grid;
  min-width: 0;
  min-height: 3.25rem;
  align-content: center;
  justify-items: center;
  gap: 0.18rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
}

.step-pill b {
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--soft);
  font-size: 0.68rem;
}

.step-pill.is-done {
  border-color: rgba(255, 204, 102, 0.28);
  background: linear-gradient(135deg, rgba(255, 204, 102, 0.18), rgba(52, 212, 255, 0.08));
  color: var(--text);
}

.step-pill.is-done b {
  background: linear-gradient(135deg, var(--gold), var(--red));
  color: #12080b;
}

.player-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.player-chip {
  display: inline-flex;
  max-width: 9rem;
  min-height: 2rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--soft);
  padding: 0.38rem 0.62rem;
  font-size: 0.76rem;
  font-weight: 850;
}

.muted-chip {
  color: var(--muted);
}

.game-card {
  min-height: 6.35rem;
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.036)),
    rgba(12, 15, 25, 0.74);
  animation: cardIn 0.45s ease both;
  animation-delay: var(--delay, 0ms);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  overflow: hidden;
}

.game-card::after {
  position: absolute;
  inset: 1px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.045);
  content: "";
  pointer-events: none;
}

.game-card:hover {
  border-color: color-mix(in srgb, var(--accent) 58%, white);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.38), 0 0 34px color-mix(in srgb, var(--accent) 22%, transparent);
  transform: translateY(-2px);
}

.game-card:active,
.button:active,
.ghost-button:active,
.danger-button:active,
.icon-button:active,
.chip:active,
.dock-item:active {
  transform: scale(0.98);
}

@keyframes cardIn {
  from {
    transform: translateY(12px) scale(0.985);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.game-icon {
  position: relative;
  color: color-mix(in srgb, var(--accent) 70%, white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 26px color-mix(in srgb, var(--accent) 18%, transparent);
}

.game-meta {
  display: block;
  margin-top: 0.42rem;
  color: color-mix(in srgb, var(--accent) 42%, var(--soft));
  font-size: 0.72rem;
  font-weight: 900;
}

.button {
  box-shadow: 0 12px 32px rgba(255, 69, 104, 0.22);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.button:hover {
  filter: saturate(1.1) brightness(1.04);
  box-shadow: 0 15px 38px rgba(255, 204, 102, 0.2);
}

.ghost-button,
.danger-button,
.icon-button,
.chip,
.dock-item,
.stepper button {
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.ghost-button:hover,
.icon-button:hover,
.chip:hover,
.stepper button:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.11);
}

.dock {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(8, 10, 16, 0.82);
}

.dock-item.is-active {
  background: linear-gradient(135deg, rgba(255, 204, 102, 0.18), rgba(52, 212, 255, 0.11));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.reveal-card {
  position: relative;
  min-height: 21rem;
  overflow: hidden;
  animation: revealLift 0.36s ease both;
}

.reveal-card b {
  font-size: 2.85rem;
}

.big-secret {
  font-size: 2.35rem;
}

.prompt-text {
  font-size: 1.55rem;
}

.reveal-card::before {
  position: absolute;
  inset: -1px;
  background:
    linear-gradient(120deg, transparent 12%, rgba(255, 255, 255, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent);
  content: "";
  opacity: 0.75;
  transform: translateX(-35%);
  animation: cardSheen 4.2s ease-in-out infinite;
}

.reveal-card > * {
  position: relative;
}

@keyframes revealLift {
  from {
    transform: translateY(10px) rotateX(5deg);
    opacity: 0;
  }
  to {
    transform: translateY(0) rotateX(0);
    opacity: 1;
  }
}

@keyframes cardSheen {
  0%,
  55% {
    transform: translateX(-65%);
  }
  100% {
    transform: translateX(85%);
  }
}

.counter-row,
.small-list li,
.phase,
.player-row {
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.counter-row:hover,
.small-list li:hover,
.phase:hover,
.player-row:focus-within {
  border-color: rgba(52, 212, 255, 0.22);
  background: rgba(255, 255, 255, 0.075);
  transform: translateY(-1px);
}

.bottle-ring {
  animation: ringBreath 3.2s ease-in-out infinite;
}

@keyframes ringBreath {
  0%,
  100% {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 0 0 rgba(52, 212, 255, 0);
  }
  50% {
    box-shadow: inset 0 0 0 1px rgba(255, 204, 102, 0.16), 0 0 40px rgba(52, 212, 255, 0.13);
  }
}

@media (min-width: 720px) {
  h2 {
    font-size: 2.55rem;
  }

  .reveal-card b {
    font-size: 3.55rem;
  }

  .big-secret {
    font-size: 2.9rem;
  }

  .prompt-text {
    font-size: 1.9rem;
  }

  .launch-panel {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
  }

  .launch-panel .toolbar {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.brand-mark,
.creator-avatar {
  object-fit: cover;
}

.creator-panel {
  display: grid;
  grid-template-columns: 4.25rem 1fr;
  gap: 0.9rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(10, 13, 22, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.creator-avatar {
  width: 4.25rem;
  height: 4.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.36);
}

.creator-copy {
  min-width: 0;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
}

.social-link {
  display: inline-flex;
  min-height: 2.15rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
  padding: 0.45rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.social-link:hover {
  border-color: rgba(255, 204, 102, 0.4);
  background: rgba(255, 204, 102, 0.12);
  transform: translateY(-1px);
}

.bottle-pointer.has-image {
  width: 6.2rem;
  height: 16rem;
}

.bottle-pointer.has-image::before,
.bottle-pointer.has-image::after {
  display: none;
}

.bottle-pointer.has-image img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  width: auto;
  height: 15.5rem;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.42));
  pointer-events: none;
}

.bottle-stage.is-expanded .bottle-pointer.has-image {
  width: min(34vw, 12rem);
  height: min(74dvh, 35rem);
}

.bottle-stage.is-expanded .bottle-pointer.has-image img {
  height: min(72dvh, 34rem);
  filter:
    drop-shadow(0 28px 36px rgba(0, 0, 0, 0.58))
    drop-shadow(0 0 34px rgba(255, 204, 102, 0.18));
}

.skin-preview.has-image::before,
.skin-preview.has-image::after {
  display: none;
}

.skin-preview.has-image img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: auto;
  height: 92%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 9px 12px rgba(0, 0, 0, 0.34));
}

.active-skin .skin-preview.has-image img {
  height: 96%;
}
