/* PATATERE.PARTY — shared theme */
:root {
  --color-bg: #0F0C29;
  --color-bg-2: #2A0845;
  --color-purple: #6441A5;
  --color-orange: #FF512F;
  --color-yellow: #F09819;
  --color-gold: #FFD700;
  --color-cream: #FFF6DA;
  --color-success: #55E28C;
  --color-danger: #FF4D6D;
}

html, body {
  background-color: var(--color-bg);
  color: #fff;
  font-family: 'Inter', Arial, sans-serif;
  overflow-x: hidden;
}

.font-display { font-family: 'Londrina Solid', cursive; }

.glass-panel {
  background: rgba(30, 30, 40, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.text-glow { text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
.shadow-neon-orange { box-shadow: 0 0 20px rgba(255, 81, 47, 0.5); }
.shadow-neon-purple { box-shadow: 0 0 20px rgba(100, 65, 165, 0.5); }
.shadow-neon-gold   { box-shadow: 0 0 15px rgba(255, 215, 0, 0.4); }

.ambient-bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 15% 20%, rgba(100, 65, 165, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(255, 81, 47, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.08) 0%, transparent 60%),
    #0F0C29;
}

@keyframes scene-enter {
  0% { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(8px); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.scene-enter { animation: scene-enter .55s cubic-bezier(.16, 1, .3, 1); }

@keyframes scene-wipe {
  0% { opacity: 0; transform: scaleX(0); transform-origin: left center; }
  18% { opacity: 1; transform: scaleX(1); transform-origin: left center; }
  62% { opacity: 1; transform: scaleX(1); transform-origin: right center; }
  100% { opacity: 0; transform: scaleX(0); transform-origin: right center; }
}
@keyframes scene-label-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.82) rotate(-2deg); }
  25% { opacity: 1; transform: translate(-50%, -50%) scale(1.06) rotate(1deg); }
  80% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(.96) rotate(0); }
}
.scene-transition {
  position: fixed; inset: 0; width: 100vw; height: 100dvh; z-index: 80; pointer-events: none;
  overflow: hidden;
  contain: layout paint;
  background: linear-gradient(90deg, rgba(42,8,69,.95), rgba(255,81,47,.92), rgba(240,152,25,.9));
  animation: scene-wipe .85s cubic-bezier(.16, 1, .3, 1) both;
  box-shadow: 0 0 80px rgba(255, 215, 0, .45);
}
.scene-transition-label {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(92vw, 1200px);
  font-family: 'Londrina Solid', cursive;
  font-size: clamp(2.6rem, 7vw, 7rem);
  line-height: .86;
  text-align: center;
  color: white;
  text-shadow: 0 0 18px rgba(15, 12, 41, .9), 0 0 36px rgba(255, 215, 0, .7);
  white-space: normal;
  overflow-wrap: anywhere;
  animation: scene-label-pop .85s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(85, 226, 140, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(85, 226, 140, 0); }
  100% { box-shadow: 0 0 0 0 rgba(85, 226, 140, 0); }
}
.status-ready { animation: pulse-ring 2s infinite; }

@keyframes join-pop {
  0% { opacity: 0; transform: translateY(18px) scale(.55) rotate(-8deg); filter: blur(5px) saturate(1.5); }
  18% { opacity: 1; transform: translateY(-10px) scale(1.18) rotate(4deg); filter: blur(0) saturate(1.35); }
  38% { transform: translateY(3px) scale(.96) rotate(-2deg); }
  58% { transform: translateY(-4px) scale(1.05) rotate(1deg); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); filter: blur(0) saturate(1); }
}
@keyframes join-shine {
  0% { opacity: 0; transform: rotate(0deg) scale(.65); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: rotate(180deg) scale(1.35); }
}
.player-joining {
  animation: join-pop .9s cubic-bezier(.16, 1, .3, 1) both;
}
.player-joining .relative > div:first-child {
  box-shadow: 0 0 22px rgba(255, 215, 0, .75), 0 0 44px rgba(255, 81, 47, .35);
}
.join-gold-glass {
  position: absolute; inset: -10px;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 215, 0, .15), rgba(240, 152, 25, .22), transparent 68%),
    conic-gradient(from 0deg, transparent 0 18deg, rgba(255,255,255,.35) 18deg 24deg, transparent 24deg 60deg);
  border: 2px solid rgba(255, 215, 0, .7);
  pointer-events: none;
  animation: join-shine 1.8s ease-out both;
}
.join-gold-glass i {
  font-size: 2.2rem;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, .95));
  opacity: .95;
}
.join-caption {
  margin-top: -2px;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(255, 215, 0, .18);
  border: 1px solid rgba(255, 215, 0, .42);
  color: #fef3c7;
  font-size: .66rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
  white-space: nowrap;
  box-shadow: 0 0 14px rgba(255, 215, 0, .18);
}

@keyframes disconnect-wobble {
  0% { opacity: 1; transform: translateY(0) rotate(0) scale(1); filter: saturate(1); }
  8% { transform: translateY(-4px) rotate(-3deg) scale(1.04); filter: saturate(1.35); }
  16% { transform: translateY(2px) rotate(3deg) scale(1.02); }
  28% { opacity: .94; transform: translateY(0) rotate(-1deg) scale(1); }
  70% { opacity: .62; transform: translateY(8px) rotate(2deg) scale(.94); filter: grayscale(.25) saturate(1.15); }
  100% { opacity: 0; transform: translateY(24px) rotate(7deg) scale(.72); filter: blur(5px) grayscale(1); }
}
@keyframes disconnect-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255, 77, 109, .4); }
  50% { box-shadow: 0 0 0 16px rgba(255, 77, 109, 0); }
}
.lobby-player-card { position: relative; }
.player-disconnecting {
  animation: disconnect-wobble 8s cubic-bezier(.16, 1, .3, 1) forwards;
}
.player-disconnecting .relative > div:first-child {
  animation: disconnect-pulse 1.15s ease-in-out infinite;
}
.disconnect-red-glass {
  position: absolute; inset: -6px;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 77, 109, .08), rgba(255, 77, 109, .48)),
    repeating-linear-gradient(-12deg, rgba(255,255,255,.08) 0 3px, transparent 3px 9px);
  border: 2px solid rgba(255, 77, 109, .8);
  backdrop-filter: blur(1px);
  pointer-events: none;
}
.disconnect-red-glass i {
  font-size: 2.3rem;
  filter: drop-shadow(0 0 8px rgba(255, 77, 109, .9));
  opacity: .9;
}
.disconnect-caption {
  margin-top: -2px;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(255, 77, 109, .18);
  border: 1px solid rgba(255, 77, 109, .38);
  color: #fecdd3;
  font-size: .66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

/* TV lobby */
.lobby-tv-screen {
  height: calc(100vh - 208px);
  height: calc(100dvh - 208px);
  max-height: calc(100vh - 208px);
  max-height: calc(100dvh - 208px);
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(330px, .95fr) minmax(460px, 1.25fr) minmax(340px, .9fr);
  gap: 24px;
  align-items: stretch;
  overflow: hidden;
}

.lobby-access-panel,
.lobby-players-panel,
.lobby-games-panel {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
}

.lobby-access-panel {
  min-height: 100%;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(255, 81, 47, .30), transparent 38%),
    linear-gradient(180deg, rgba(42, 8, 69, .82), rgba(15, 12, 41, .92)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 38px);
  border: 1px solid rgba(255, 215, 0, .22);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .34), 0 0 32px rgba(255, 81, 47, .22);
}

.lobby-access-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 215, 0, .18), transparent 30%, rgba(85, 226, 140, .08));
  opacity: .8;
}

.lobby-access-content {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.lobby-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  padding: 7px 12px;
  border-radius: 999px;
  color: #fed7aa;
  background: rgba(255, 81, 47, .16);
  border: 1px solid rgba(255, 152, 25, .35);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.lobby-kicker--small {
  padding: 5px 10px;
  font-size: .66rem;
  color: #fde68a;
  background: rgba(100, 65, 165, .22);
  border-color: rgba(255, 215, 0, .22);
}

.lobby-title {
  margin: 18px 0 8px;
  font-family: 'Londrina Solid', cursive;
  font-size: 3.85rem;
  line-height: .9;
  color: #fff;
  text-shadow: 0 0 20px rgba(255, 215, 0, .30);
}

.lobby-subtitle {
  margin: 0;
  max-width: 28rem;
  color: rgba(255, 255, 255, .76);
  font-size: 1.05rem;
  line-height: 1.45;
}

.lobby-code-display {
  margin: 26px 0 24px;
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  color: #fff;
  background: rgba(0, 0, 0, .44);
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 215, 0, .12), 0 16px 34px rgba(0, 0, 0, .26);
  font-family: 'Londrina Solid', cursive;
  font-size: 5.9rem;
  line-height: 1;
  letter-spacing: .13em;
  text-indent: .13em;
  white-space: nowrap;
}

.lobby-join-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.lobby-qr-wrap {
  width: 154px;
  height: 154px;
  flex: 0 0 auto;
  padding: 10px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .28);
}

.lobby-qr-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lobby-join-copy {
  min-width: 0;
  text-align: left;
}

.lobby-join-label {
  color: var(--color-orange);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.lobby-join-url {
  margin-top: 4px;
  color: #fff;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.lobby-join-note {
  margin-top: 8px;
  color: rgba(255, 255, 255, .58);
  font-size: .82rem;
  font-weight: 700;
}

.lobby-players-panel {
  min-height: 0;
  padding: 24px;
  border-color: rgba(255, 255, 255, .10);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .26);
  display: flex;
  flex-direction: column;
}

.lobby-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.lobby-section-heading h2 {
  margin: 6px 0 0;
  color: #fff;
  font-family: 'Londrina Solid', cursive;
  font-size: 2.45rem;
  line-height: 1;
}

.lobby-section-heading--compact {
  margin-bottom: 14px;
}

.lobby-section-heading--compact h2 {
  font-size: 2.1rem;
}

.lobby-ready-pill,
.lobby-game-count {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 40px;
  border-radius: 999px;
  color: #fde68a;
  background: rgba(15, 12, 41, .62);
  border: 1px solid rgba(255, 215, 0, .28);
  font-size: .8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.lobby-ready-pill span {
  color: #55E28C;
  font-family: 'Londrina Solid', cursive;
  font-size: 1.7rem;
  line-height: 1;
  margin-right: 4px;
}

.lobby-ready-stack {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.lobby-host-pill {
  max-width: 180px;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0F0C29;
  background: linear-gradient(135deg, #FFD700, #F09819);
  box-shadow: 0 0 18px rgba(255, 215, 0, .24);
  font-size: .78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .05em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lobby-game-count {
  min-width: 42px;
  width: 42px;
  color: #0F0C29;
  background: linear-gradient(135deg, #FFD700, #F09819);
  border: 0;
  font-family: 'Londrina Solid', cursive;
  font-size: 1.55rem;
  letter-spacing: 0;
}

.lobby-player-grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-content: start;
  overflow-y: auto;
  padding-right: 2px;
}

.lobby-player-card {
  min-height: 154px;
  padding: 13px 10px 11px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  text-align: center;
  background: rgba(0, 0, 0, .24);
  border: 1px solid rgba(255, 255, 255, .08);
}

.lobby-player-card--filled {
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(0, 0, 0, .22));
  border-color: rgba(255, 255, 255, .12);
}

.lobby-player-card--clickable {
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.lobby-player-card--clickable:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 0, .32);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .22);
}

.lobby-player-card.is-host {
  border-color: rgba(255, 215, 0, .55);
  box-shadow: inset 0 0 0 1px rgba(255, 215, 0, .22), 0 0 22px rgba(255, 215, 0, .14);
}

.lobby-player-card--empty {
  color: rgba(255, 255, 255, .45);
  border-style: dashed;
  border-color: rgba(255, 255, 255, .14);
}

.lobby-player-avatar-shell {
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
}

@keyframes host-crown-bounce {
  0%, 100% { transform: translate(-50%, -58%) rotate(-8deg) scale(1); }
  45% { transform: translate(-50%, -74%) rotate(7deg) scale(1.14); }
  70% { transform: translate(-50%, -62%) rotate(-3deg) scale(.98); }
}

@keyframes host-crown-shine {
  0% { transform: translateX(-140%) skewX(-18deg); opacity: 0; }
  28% { opacity: .65; }
  62% { transform: translateX(145%) skewX(-18deg); opacity: 0; }
  100% { transform: translateX(145%) skewX(-18deg); opacity: 0; }
}

.host-crown {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 4;
  width: 43px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0F0C29;
  background: linear-gradient(135deg, #FFD700, #F09819);
  border: 2px solid rgba(255, 255, 255, .85);
  box-shadow: 0 0 18px rgba(255, 215, 0, .65), 0 9px 14px rgba(0, 0, 0, .28);
  overflow: hidden;
  animation: host-crown-bounce 1.85s ease-in-out infinite;
}

.host-crown::after {
  content: '';
  position: absolute;
  inset: -20% -35%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .82), transparent);
  animation: host-crown-shine 2.35s ease-in-out infinite;
}

.host-crown i {
  position: relative;
  z-index: 1;
  font-size: 1.2rem;
}

.lobby-player-avatar-ring {
  width: 74px;
  height: 74px;
  padding: 4px;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, .26);
}

.lobby-player-avatar,
.lobby-player-initial {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 3px solid #05030a;
  object-fit: cover;
}

.lobby-player-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--color-purple), var(--color-bg-2));
  font-family: 'Londrina Solid', cursive;
  font-size: 2rem;
}

.lobby-player-empty-avatar {
  width: 74px;
  height: 74px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .045);
  border: 2px dashed rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .35);
  font-size: 1.35rem;
}

.lobby-status-dot {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 2px solid #05030a;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lobby-player-name {
  width: 100%;
  max-width: 100%;
  font-weight: 900;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lobby-player-state {
  color: rgba(255, 255, 255, .52);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.lobby-side-rail {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

.lobby-narrator {
  flex: 0 0 auto;
  border-radius: 26px;
}

.lobby-narrator .narrator-layout {
  align-items: flex-start;
}

.lobby-narrator .narrator-circle {
  width: 132px;
  height: 132px;
  padding: 6px;
}

.lobby-narrator .narrator-spectrum {
  width: 190px;
  height: 190px;
}

.lobby-narrator .game-master-status {
  right: 5px;
  bottom: 5px;
  width: 31px;
  height: 31px;
  font-size: .78rem;
}

.lobby-narrator .narrator-name {
  font-size: 1.75rem;
}

.lobby-narrator .narrator-line {
  font-size: 1rem;
  line-height: 1.35;
}

.lobby-games-panel {
  flex: 1 1 auto;
  min-height: 0;
  padding: 20px;
  border-color: rgba(255, 255, 255, .10);
  display: flex;
  flex-direction: column;
}

.lobby-games-list {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  border-radius: 16px;
}

.lobby-games-list::before,
.lobby-games-list::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  height: 26px;
  pointer-events: none;
}

.lobby-games-list::before {
  top: 0;
  background: linear-gradient(180deg, rgba(20, 17, 35, .98), rgba(20, 17, 35, 0));
}

.lobby-games-list::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(20, 17, 35, .98), rgba(20, 17, 35, 0));
}

.lobby-games-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.lobby-games-list.is-carousel .lobby-games-track {
  animation: lobby-games-carousel 24s linear infinite;
}

.lobby-games-list.is-carousel:hover .lobby-games-track {
  animation-play-state: paused;
}

.lobby-games-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0 0 10px;
  list-style: none;
}

@keyframes lobby-games-carousel {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}

.lobby-game-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 11px;
  border-radius: 16px;
  background: rgba(0, 0, 0, .24);
  border: 1px solid rgba(255, 255, 255, .08);
}

.lobby-game-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #FF512F, #F09819 65%, #FFD700);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
}

.lobby-game-copy {
  min-width: 0;
}

.lobby-game-copy div {
  color: #fff;
  font-size: .98rem;
  font-weight: 900;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lobby-game-copy p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, .55);
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.lobby-start-button {
  flex: 0 0 auto;
  min-height: 76px;
  width: 100%;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: #fff;
  background: linear-gradient(135deg, #FF512F, #F09819);
  border: 2px solid rgba(255, 215, 0, .55);
  box-shadow: 0 16px 34px rgba(255, 81, 47, .28), 0 6px 0 rgba(0, 0, 0, .28);
  font-family: 'Londrina Solid', cursive;
  font-size: 2.45rem;
  line-height: 1;
  transition: transform .08s ease, box-shadow .08s ease, filter .18s ease;
}

.lobby-start-button:active {
  transform: translateY(4px);
  box-shadow: 0 8px 22px rgba(255, 81, 47, .22), 0 2px 0 rgba(0, 0, 0, .32);
}

.lobby-start-button.is-disabled {
  opacity: .48;
  cursor: not-allowed;
  filter: grayscale(.35);
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .lobby-games-list {
    overflow-y: auto;
  }
  .lobby-games-list::before,
  .lobby-games-list::after {
    display: none;
  }
  .lobby-games-list.is-carousel .lobby-games-track {
    animation: none;
  }
  .lobby-games-group[aria-hidden="true"] {
    display: none;
  }
}

@media (max-width: 1400px) {
  .lobby-tv-screen {
    grid-template-columns: minmax(300px, .9fr) minmax(420px, 1.15fr) minmax(300px, .9fr);
    gap: 18px;
  }
  .lobby-access-panel,
  .lobby-players-panel,
  .lobby-games-panel {
    border-radius: 24px;
  }
  .lobby-access-panel,
  .lobby-players-panel {
    padding: 22px;
  }
  .lobby-title {
    font-size: 3.2rem;
  }
  .lobby-code-display {
    min-height: 112px;
    font-size: 5rem;
  }
  .lobby-qr-wrap {
    width: 132px;
    height: 132px;
  }
  .lobby-player-grid {
    gap: 10px;
  }
  .lobby-player-card {
    min-height: 142px;
    padding: 11px 8px;
  }
  .lobby-player-avatar-shell,
  .lobby-player-avatar-ring,
  .lobby-player-empty-avatar {
    width: 64px;
    height: 64px;
  }
  .lobby-narrator .narrator-circle {
    width: 112px;
    height: 112px;
  }
  .lobby-narrator .narrator-spectrum {
    display: none;
  }
  .lobby-narrator .narrator-name {
    font-size: 1.48rem;
  }
  .lobby-narrator .narrator-line {
    font-size: .92rem;
  }
}

@media (max-width: 1023px) {
  .lobby-tv-screen {
    height: auto;
    max-height: none;
    min-height: auto;
    grid-template-columns: 1fr;
    overflow: visible;
  }
  .lobby-player-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lobby-join-row {
    align-items: flex-start;
  }
}

@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 20px rgba(255, 81, 47, 0.5); }
  50% { box-shadow: 0 0 40px rgba(255, 81, 47, 0.9); }
}
.pulse-glow { animation: pulse-glow 2s ease-in-out infinite; }

/* Narrator */
.ai-narrator {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(42, 8, 69, .86), rgba(15, 12, 41, .82) 58%, rgba(255, 81, 47, .18)),
    rgba(30, 30, 40, .62);
  border-color: rgba(255, 215, 0, .12);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.ai-narrator::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 215, 0, .12), transparent 32%, rgba(255, 81, 47, .10));
  opacity: .65;
}
.narrator-layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.narrator-circle {
  position: relative;
  width: 180px; height: 180px;
  border-radius: 9999px;
  background:
    linear-gradient(145deg, rgba(255, 215, 0, .9), rgba(255, 81, 47, .92) 48%, rgba(100, 65, 165, .96)),
    #2A0845;
  display: flex; align-items: center; justify-content: center;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .32), 0 0 28px rgba(255, 81, 47, .22);
  transition: box-shadow .3s ease, transform .3s ease, filter .3s ease;
  isolation: isolate;
}
.narrator-circle--compact {
  width: 76px;
  height: 76px;
  padding: 4px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .32), 0 0 18px rgba(255, 81, 47, .2);
}
.game-master-head {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  overflow: hidden;
  background: #0F0C29;
  border: 3px solid rgba(15, 12, 41, .86);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .08);
}
.narrator-circle--compact .game-master-head {
  border-width: 2px;
}
.game-master-portrait {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 26%;
  transform: scale(1.08);
  filter: saturate(1.08) contrast(1.06);
}
.game-master-portrait.is-paused {
  filter: saturate(.95) contrast(1.05) brightness(.92);
}
.game-master-portrait.is-animated {
  filter: saturate(1.22) contrast(1.12) brightness(1.04);
}
.game-master-status {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0F0C29;
  background: linear-gradient(135deg, #FFD700, #F09819);
  border: 3px solid rgba(15, 12, 41, .95);
  box-shadow: 0 0 18px rgba(255, 215, 0, .28);
  font-size: .95rem;
}
.narrator-circle--compact .game-master-status {
  right: -2px;
  bottom: -2px;
  width: 24px;
  height: 24px;
  border-width: 2px;
  font-size: .65rem;
}
.narrator-copy {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}
.narrator-name {
  color: var(--color-gold);
  font-family: 'Londrina Solid', cursive;
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: .45rem;
  text-shadow: 0 0 14px rgba(255, 215, 0, .35);
}
.narrator-mood {
  color: rgba(255, 157, 0, .82);
  font-family: 'Inter', Arial, sans-serif;
  font-size: .9rem;
  font-weight: 800;
}
.narrator-line {
  color: rgba(255, 255, 255, .94);
  font-size: clamp(1.05rem, 1.55vw, 1.45rem);
  font-style: italic;
  font-weight: 600;
  line-height: 1.45;
  margin: 0;
}
.narrator-speaking .narrator-circle {
  box-shadow: 0 0 48px rgba(255, 215, 0, 0.52), 0 0 80px rgba(255, 81, 47, .34);
  transform: scale(1.04);
}
.narrator-speaking .game-master-status {
  background: linear-gradient(135deg, #55E28C, #FFD700);
  box-shadow: 0 0 20px rgba(85, 226, 140, .5);
}
.narrator-spectrum {
  position: absolute;
  width: 260px; height: 260px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

@keyframes confetti-fall {
  0% { transform: translateY(-100vh) rotate(0); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
.confetti {
  position: fixed; top: -20px; width: 10px; height: 16px;
  border-radius: 2px; pointer-events: none; z-index: 50;
  animation: confetti-fall 3.5s linear forwards;
}

/* mobile-specific helpers */
.btn-3d {
  border-bottom-width: 4px;
  transition: transform .08s ease, box-shadow .08s ease;
}
.btn-3d:active {
  transform: translateY(3px);
  border-bottom-width: 1px;
}

.choice-btn {
  background: rgba(15, 12, 41, 0.7);
  border: 2px solid rgba(255, 215, 0, 0.35);
  color: white;
}
.choice-btn.selected {
  background: linear-gradient(135deg, #FF512F 0%, #F09819 100%);
  border-color: #FFD700;
}
.choice-btn.correct {
  background: linear-gradient(135deg, #1FAE5C 0%, #55E28C 100%);
  border-color: #55E28C;
}
.choice-btn.wrong {
  background: rgba(255, 77, 109, 0.7);
  border-color: #FF4D6D;
}

.ref-tv-media-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 48vh;
  margin-bottom: 1.5rem;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .42);
  border: 1px solid rgba(255, 215, 0, .22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05), 0 18px 42px rgba(0, 0, 0, .24);
}

.ref-tv-media-frame--reveal {
  max-height: 38vh;
}

.ref-tv-media-frame--blur .ref-tv-media {
  transition: filter .14s linear, transform .14s linear;
  will-change: filter, transform;
}

.ref-tv-media,
.ref-mobile-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ref-tv-write-card {
  min-height: 104px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #fde68a;
  background: rgba(15, 12, 41, .68);
  border: 2px dashed rgba(255, 215, 0, .34);
  font-family: 'Londrina Solid', cursive;
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 1;
}

.ref-player-panel {
  min-height: 0;
  overflow: hidden;
}

.ref-player-list {
  display: grid;
  gap: 10px;
  max-height: 48vh;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 2px;
}

.ref-player-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(0, 0, 0, .24);
  padding: 10px;
  transition: border-color .16s ease, background .16s ease;
}

.ref-player-avatar {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--player-color, #FFD700);
  background: rgba(100, 65, 165, .72);
  color: white;
  font-family: 'Londrina Solid', cursive;
  font-size: 1.9rem;
  line-height: 1;
}

.ref-player-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ref-player-info {
  min-width: 0;
}

.ref-player-name {
  color: white;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ref-player-detail {
  min-height: 18px;
  color: rgba(255, 255, 255, .54);
  font-size: .82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ref-player-state {
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .72);
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.ref-player-row.is-wrong {
  border-color: rgba(255, 77, 109, .52);
  background: rgba(255, 77, 109, .16);
}

.ref-player-row.is-wrong .ref-player-avatar {
  border-color: #FF4D6D;
  box-shadow: 0 0 18px rgba(255, 77, 109, .38);
}

.ref-player-row.is-wrong .ref-player-state {
  color: #fecdd3;
  background: rgba(255, 77, 109, .22);
}

.ref-player-row.just-wrong .ref-player-avatar {
  animation: ref-wrong-shake .46s ease-in-out 0s 2;
}

.ref-player-row.is-correct {
  border-color: rgba(85, 226, 140, .62);
  background: rgba(85, 226, 140, .16);
}

.ref-player-row.is-correct .ref-player-avatar {
  border-color: #55E28C;
  box-shadow: 0 0 24px rgba(85, 226, 140, .42);
}

.ref-player-row.is-correct .ref-player-state {
  color: #bbf7d0;
  background: rgba(85, 226, 140, .2);
}

.ref-player-row.just-correct .ref-player-avatar {
  animation: ref-correct-pop .72s cubic-bezier(.2, 1.4, .35, 1) both;
}

@keyframes ref-wrong-shake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  20% { transform: translateX(-5px) rotate(-4deg); }
  40% { transform: translateX(5px) rotate(4deg); }
  60% { transform: translateX(-3px) rotate(-3deg); }
  80% { transform: translateX(3px) rotate(3deg); }
}

@keyframes ref-correct-pop {
  0% { transform: scale(.96); }
  45% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.ref-mobile-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 34vh;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .42);
  border: 1px solid rgba(255, 215, 0, .24);
}

.ref-mobile-media--blur img {
  transition: filter .14s linear, transform .14s linear;
  will-change: filter, transform;
}

.bowling-tv-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 24px;
  min-height: calc(100vh - 170px);
}

.bowling-tv-layout--reveal {
  min-height: calc(100vh - 150px);
}

.bowling-tv-stage-shell {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bowling-tv-topline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.bowling-kicker {
  color: #FFD700;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.bowling-tv-topline h2 {
  font-family: 'Londrina Solid', cursive;
  font-size: clamp(3.2rem, 7vw, 8.4rem);
  line-height: .82;
  color: #fff;
  text-shadow: 0 0 22px rgba(255, 157, 0, .34);
}

.bowling-shot-card {
  min-width: 150px;
  border-radius: 18px;
  background: rgba(0, 0, 0, .42);
  border: 1px solid rgba(255, 215, 0, .28);
  padding: 12px 16px;
  text-align: right;
}

.bowling-shot-card span {
  display: block;
  color: rgba(255, 255, 255, .6);
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.bowling-shot-card strong {
  display: block;
  font-family: 'Londrina Solid', cursive;
  font-size: 3.1rem;
  line-height: .92;
  color: #FFD700;
}

.bowling-shot-card.is-reveal strong {
  color: #55E28C;
}

.bowling-tv-stage {
  position: relative;
  flex: 1;
  min-height: 540px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15, 12, 41, .12), rgba(15, 12, 41, .74)),
    radial-gradient(circle at 50% 12%, rgba(255, 215, 0, .2), transparent 42%),
    #120920;
}

.bowling-tv-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.bowling-tv-timer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bowling-tv-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bowling-player-panel {
  overflow: hidden;
}

.bowling-player-list {
  display: grid;
  gap: 10px;
  max-height: 52vh;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 2px;
}

.bowling-player-row,
.bowling-reveal-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-radius: 17px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-left: 4px solid var(--player-color, #FFD700);
  background: rgba(0, 0, 0, .28);
  padding: 10px;
}

.bowling-reveal-row {
  grid-template-columns: 34px 52px minmax(0, 1fr) auto;
}

.bowling-player-row.is-thrown {
  border-color: rgba(85, 226, 140, .28);
  border-left-color: var(--player-color, #FFD700);
  background: rgba(85, 226, 140, .12);
}

.bowling-player-row.is-second {
  border-color: rgba(255, 215, 0, .28);
  border-left-color: var(--player-color, #FFD700);
  background: rgba(255, 215, 0, .1);
}

.bowling-player-avatar {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(100, 65, 165, .7);
  border: 2px solid var(--player-color, #FFD700);
  font-family: 'Londrina Solid', cursive;
  font-size: 1.8rem;
}

.bowling-player-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bowling-player-copy {
  min-width: 0;
}

.bowling-player-name,
.bowling-player-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bowling-player-name {
  font-weight: 900;
  color: #fff;
}

.bowling-player-meta {
  color: rgba(255, 255, 255, .56);
  font-size: .82rem;
}

.bowling-player-score {
  font-family: 'Londrina Solid', cursive;
  font-size: 1.8rem;
  color: #FFD700;
  white-space: nowrap;
}

.bowling-reveal-rank {
  width: 34px;
  font-family: 'Londrina Solid', cursive;
  font-size: 2rem;
  color: rgba(255, 255, 255, .62);
  text-align: center;
}

.bowling-winner-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  border-radius: 999px;
  padding: 11px 16px;
  background: rgba(85, 226, 140, .16);
  border: 1px solid rgba(85, 226, 140, .42);
  color: #bbf7d0;
  font-weight: 900;
}

.bowling-tv-fullscreen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 20;
  overflow: hidden;
  background: #0d0716;
}

.bowling-tv-fullscreen .bowling-tv-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
  background: #0d0716;
}

.bowling-tv-fullscreen .bowling-tv-stage canvas {
  width: 100% !important;
  height: 100% !important;
}

.bowling-result-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
}

.bowling-result-overlay[data-visible="true"] {
  opacity: 1;
}

.bowling-tv-debug-panel {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 7;
  min-width: 230px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  background: rgba(10, 13, 22, .86);
  box-shadow: 0 16px 32px rgba(0, 0, 0, .34);
  color: #fff;
  font-family: var(--font-display);
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease;
}

.bowling-tv-debug-panel[data-visible="true"] {
  opacity: 1;
  transform: translateY(0);
}

.bowling-tv-debug-title {
  margin-bottom: 8px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .66);
}

.bowling-tv-debug-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 1rem;
  font-weight: 800;
}

.bowling-tv-debug-row + .bowling-tv-debug-row {
  margin-top: 6px;
}

.bowling-tv-debug-row strong {
  color: #ffd34d;
  font-size: 1.12rem;
}

.bowling-result-count {
  position: absolute;
  top: clamp(42px, 8vh, 86px);
  left: 50%;
  min-width: min(680px, 80vw);
  transform: translateX(-50%) scale(.88);
  opacity: 0;
  text-align: center;
  font-family: 'Londrina Solid', cursive;
  font-size: clamp(4.6rem, 9vw, 8.6rem);
  line-height: .8;
  letter-spacing: 0;
  color: #5ddcff;
  -webkit-text-stroke: clamp(3px, .55vw, 7px) #ffffff;
  text-shadow:
    0 6px 0 #0969b8,
    0 12px 0 rgba(1, 33, 82, .88),
    0 22px 32px rgba(0, 0, 0, .62),
    0 0 24px rgba(112, 226, 255, .7);
}

.bowling-result-overlay[data-visible="true"][data-count-only="true"] .bowling-result-count {
  animation: bowling-result-count-pop .72s cubic-bezier(.18, 1.25, .26, 1) both;
}

.bowling-result-splash {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(1120px, 84vw);
  min-height: clamp(142px, 18vh, 194px);
  transform: translate(-50%, -50%) scale(.84) rotate(-1.5deg);
  opacity: 0;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 110px;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  border-top: 4px solid rgba(255, 255, 255, .92);
  border-bottom: 4px solid rgba(54, 68, 100, .9);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .76) 17%, rgba(198, 232, 255, .94) 49%, rgba(255, 255, 255, .8) 82%, rgba(255, 255, 255, .18)),
    linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(115, 144, 186, .92) 53%, rgba(36, 52, 88, .96));
  box-shadow:
    0 26px 60px rgba(0, 0, 0, .55),
    inset 0 4px 0 rgba(255, 255, 255, .8),
    inset 0 -8px 0 rgba(13, 28, 61, .28);
}

.bowling-result-overlay[data-visible="true"][data-count-only="false"] .bowling-result-splash {
  animation: bowling-result-splash-in .84s cubic-bezier(.15, 1.22, .25, 1) both;
}

.bowling-result-shine {
  position: absolute;
  inset: -45% -18%;
  transform: translateX(-78%) rotate(12deg);
  background: linear-gradient(90deg, transparent 0 36%, rgba(255, 255, 255, .7) 48%, transparent 62% 100%);
  opacity: .88;
}

.bowling-result-overlay[data-visible="true"] .bowling-result-shine {
  animation: bowling-result-shine 1.18s ease-out both .08s;
}

.bowling-result-splash strong {
  grid-column: 2;
  align-self: end;
  z-index: 1;
  min-width: 0;
  font-family: 'Londrina Solid', cursive;
  font-size: clamp(6rem, 12vw, 12.5rem);
  line-height: .7;
  letter-spacing: 0;
  color: #37d7ff;
  -webkit-text-stroke: clamp(4px, .7vw, 9px) #ffffff;
  text-shadow:
    0 7px 0 #066cbb,
    0 14px 0 rgba(4, 27, 74, .95),
    0 28px 40px rgba(0, 0, 0, .68),
    0 0 28px rgba(87, 213, 255, .72);
  white-space: nowrap;
}

.bowling-result-splash span {
  grid-column: 2;
  align-self: start;
  z-index: 1;
  margin-top: 12px;
  padding: 4px 16px 6px;
  border-radius: 999px;
  color: #123153;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(12, 63, 116, .22);
  font-weight: 1000;
  text-transform: uppercase;
  font-size: clamp(.88rem, 1.4vw, 1.15rem);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

.bowling-result-ball {
  z-index: 1;
  grid-row: 1 / span 2;
  color: #d2a233;
  font-size: clamp(3.8rem, 6vw, 6.2rem);
  filter:
    drop-shadow(0 7px 0 #8f5d0b)
    drop-shadow(0 16px 20px rgba(0, 0, 0, .5));
}

.bowling-result-ball--left { grid-column: 1; }
.bowling-result-ball--right { grid-column: 3; }

.bowling-result-overlay[data-kind="strike"] .bowling-result-splash strong {
  color: #ffd257;
  -webkit-text-stroke-color: #ffffff;
  text-shadow:
    0 7px 0 #da6a00,
    0 14px 0 rgba(91, 34, 0, .95),
    0 28px 42px rgba(0, 0, 0, .7),
    0 0 34px rgba(255, 225, 99, .9);
}

.bowling-result-overlay[data-kind="strike"] .bowling-result-splash {
  background:
    radial-gradient(circle at 12% 50%, rgba(255, 226, 103, .55), transparent 22%),
    radial-gradient(circle at 88% 50%, rgba(255, 226, 103, .55), transparent 22%),
    linear-gradient(90deg, rgba(59, 45, 14, .38), rgba(255, 255, 255, .76) 18%, rgba(255, 230, 139, .94) 48%, rgba(255, 255, 255, .82) 82%, rgba(59, 45, 14, .38)),
    linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(199, 151, 45, .94) 54%, rgba(81, 49, 5, .96));
  border-top-color: rgba(255, 255, 255, .96);
  border-bottom-color: rgba(121, 71, 0, .92);
}

.bowling-result-overlay[data-kind="spare"] .bowling-result-splash strong {
  color: #5edcff;
}

.bowling-result-overlay[data-kind="gutter"] .bowling-result-count {
  color: #e8f3ff;
  -webkit-text-stroke-color: #33527a;
  text-shadow:
    0 6px 0 #14233a,
    0 14px 22px rgba(0, 0, 0, .62),
    0 0 20px rgba(148, 163, 184, .44);
}

.bowling-player-turn-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
}

.bowling-player-turn-overlay[data-visible="true"] {
  opacity: 1;
}

.bowling-player-turn-name {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(980px, 84vw);
  min-height: clamp(132px, 17vh, 188px);
  transform: translate(-50%, -50%) scale(.84) rotate(-1.5deg);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-top: 4px solid rgba(255, 255, 255, .92);
  border-bottom: 4px solid rgba(54, 68, 100, .9);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, .76) 17%, rgba(198, 232, 255, .94) 49%, rgba(255, 255, 255, .8) 82%, rgba(255, 255, 255, .18)),
    linear-gradient(180deg, rgba(255, 255, 255, .78), rgba(115, 144, 186, .92) 53%, rgba(36, 52, 88, .96));
  box-shadow:
    0 26px 60px rgba(0, 0, 0, .55),
    inset 0 4px 0 rgba(255, 255, 255, .8),
    inset 0 -8px 0 rgba(13, 28, 61, .28);
}

.bowling-player-turn-overlay[data-visible="true"] .bowling-player-turn-name {
  animation: bowling-result-splash-in .84s cubic-bezier(.15, 1.22, .25, 1) both;
}

.bowling-player-turn-name strong {
  z-index: 1;
  min-width: 0;
  max-width: 92%;
  font-family: 'Londrina Solid', cursive;
  font-size: clamp(5rem, 10vw, 11rem);
  line-height: .72;
  letter-spacing: 0;
  color: #5edcff;
  -webkit-text-stroke: clamp(4px, .7vw, 9px) #ffffff;
  text-align: center;
  text-shadow:
    0 7px 0 #066cbb,
    0 14px 0 rgba(4, 27, 74, .95),
    0 28px 40px rgba(0, 0, 0, .68),
    0 0 28px rgba(87, 213, 255, .72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bowling-result-replay {
  position: absolute;
  left: clamp(24px, 4vw, 56px);
  bottom: clamp(24px, 5vh, 58px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  color: rgba(255, 255, 255, .9);
  font-weight: 950;
  font-size: clamp(1rem, 1.4vw, 1.28rem);
  text-shadow: 0 4px 12px rgba(0, 0, 0, .66);
}

.bowling-result-replay i {
  color: #56d9ff;
  font-size: .9em;
}

.bowling-result-overlay[data-visible="true"] .bowling-result-replay {
  animation: bowling-result-replay-in .42s ease both .2s;
}

@keyframes bowling-result-count-pop {
  0% { opacity: 0; transform: translateX(-50%) translateY(-18px) scale(.78); filter: blur(2px); }
  54% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.08); filter: blur(0); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); filter: blur(0); }
}

@keyframes bowling-result-splash-in {
  0% { opacity: 0; transform: translate(-50%, -50%) translateY(34px) scale(.62) rotate(-5deg); filter: blur(4px); }
  58% { opacity: 1; transform: translate(-50%, -50%) translateY(0) scale(1.07) rotate(1deg); filter: blur(0); }
  100% { opacity: 1; transform: translate(-50%, -50%) translateY(0) scale(1) rotate(-1.5deg); filter: blur(0); }
}

@keyframes bowling-result-shine {
  from { transform: translateX(-78%) rotate(12deg); }
  to { transform: translateX(78%) rotate(12deg); }
}

@keyframes bowling-result-replay-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: .92; transform: translateY(0); }
}

.bowling-hud {
  position: absolute;
  inset: 24px;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(250px, 340px) minmax(260px, 1fr) minmax(330px, 460px);
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  pointer-events: none;
}

.bowling-hud-card,
.bowling-hud-narrator .glass-panel {
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(15, 23, 42, .36), rgba(15, 12, 41, .22));
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .18);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.bowling-hud-card {
  pointer-events: auto;
}

.bowling-hud-player {
  grid-column: 1;
  grid-row: 1;
  padding: 16px 18px;
}

.bowling-hud-room {
  color: rgba(255, 255, 255, .74);
  font-weight: 900;
  text-transform: uppercase;
  font-size: .75rem;
  letter-spacing: .08em;
  margin-bottom: 9px;
}

.bowling-hud-title-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.bowling-hud-title-row > i {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #19233a;
  font-size: 1.65rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}

.bowling-hud-title-row h2 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'Londrina Solid', cursive;
  font-size: clamp(2.4rem, 4vw, 4.8rem);
  line-height: .86;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .5);
}

.bowling-pin-map-card {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  width: 178px;
  min-height: 212px;
  padding: 10px 10px 12px;
  background: rgba(255, 255, 255, .2);
}

.bowling-pin-map {
  position: relative;
  width: 100%;
  height: 150px;
}

.bowling-pin-map span {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #182034;
  font-family: 'Londrina Solid', cursive;
  font-size: 1.45rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  transition: opacity .14s ease, transform .14s ease, background .14s ease, color .14s ease;
}

.bowling-pin-map span.is-fallen {
  background: rgba(255, 82, 82, .92);
  color: #fff;
  opacity: .56;
  transform: translate(-50%, -50%) scale(.82) rotate(-10deg);
  text-decoration: line-through;
}

.bowling-pin-map span.is-standing {
  background: rgba(255, 255, 255, .94);
  color: #182034;
}

.bowling-pin-map-counts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin-top: 8px;
  color: rgba(255, 255, 255, .75);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bowling-pin-map-counts span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.bowling-pin-map-counts b {
  color: #FFD700;
  font-family: 'Londrina Solid', cursive;
  font-size: 1.15rem;
  line-height: 1;
}

.bowling-live-control {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  align-self: start;
  width: min(560px, 100%);
  padding: 14px 16px 16px;
  opacity: .68;
  transition: opacity .16s ease, transform .16s ease;
}

.bowling-live-control.is-active {
  opacity: 1;
  transform: translateY(2px);
}

.bowling-live-head,
.bowling-live-power-row,
.bowling-live-numbers {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bowling-live-head span,
.bowling-live-power-row span,
.bowling-live-numbers span {
  color: rgba(255, 255, 255, .7);
  font-size: .75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.bowling-live-head strong,
.bowling-live-power-row strong,
.bowling-live-numbers b {
  color: #FFD700;
  font-family: 'Londrina Solid', cursive;
  font-size: 1.8rem;
  line-height: 1;
}

.bowling-live-lane {
  position: relative;
  height: 104px;
  margin: 10px 0 12px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 13, 25, .76) 0 18%, rgba(216, 155, 77, .86) 18% 82%, rgba(8, 13, 25, .76) 82% 100%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .12) 0 2px, transparent 2px 48px);
  border: 1px solid rgba(255, 255, 255, .18);
}

.bowling-live-lane::before,
.bowling-live-lane::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, .24);
}

.bowling-live-lane::before { left: 42%; }
.bowling-live-lane::after { right: 42%; }

.bowling-live-line,
.bowling-live-ball {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transition: transform .08s linear;
}

.bowling-live-line {
  width: 8px;
  height: 72px;
  margin-left: -4px;
  transform-origin: 50% 100%;
  border-radius: 999px;
  background: repeating-linear-gradient(0deg, #ff304f 0 12px, transparent 12px 22px);
  box-shadow: 0 0 18px rgba(255, 48, 79, .42);
}

.bowling-live-line::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -18px;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 13px solid transparent;
  border-right: 13px solid transparent;
  border-bottom: 22px solid #ff304f;
  filter: drop-shadow(0 0 10px rgba(255, 48, 79, .58));
}

.bowling-live-ball {
  width: 38px;
  height: 38px;
  margin-left: -19px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: radial-gradient(circle at 35% 30%, #8b5cf6, #312e81 62%, #111827);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .36), 0 0 20px rgba(255, 215, 0, .28);
}

.bowling-live-arrow {
  position: absolute;
  bottom: 18px;
  color: rgba(255, 48, 79, .92);
  font-size: 2rem;
  text-shadow: 0 0 12px rgba(255, 48, 79, .45);
}

.bowling-live-arrow--left { left: 20%; }
.bowling-live-arrow--right { right: 20%; }

.bowling-live-power-track {
  height: 12px;
  margin-top: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, .34);
}

.bowling-live-power-track div {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #55E28C, #FFD700, #FF512F);
  transition: width .08s linear;
}

.bowling-live-numbers {
  margin-top: 9px;
}

.bowling-scoreboard-hud {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  overflow: hidden;
  width: min(460px, 100%);
  padding: 6px;
  background: rgba(18, 16, 20, .76);
  border-color: rgba(255, 255, 255, .3);
}

.bowling-score-grid {
  display: grid;
  grid-template-columns: 58px repeat(var(--round-count, 10), minmax(35px, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .34);
  background: rgba(255, 255, 255, .24);
}

.bowling-score-head,
.bowling-score-frame,
.bowling-score-player {
  border-right: 1px solid rgba(255, 255, 255, .26);
  border-bottom: 1px solid rgba(255, 255, 255, .22);
}

.bowling-score-head {
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(33, 105, 196, .96), rgba(20, 66, 142, .96));
  font-family: 'Londrina Solid', cursive;
  font-size: clamp(.86rem, 1.1vw, 1.25rem);
  line-height: 1;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .28);
}

.bowling-score-head.is-current {
  background: linear-gradient(180deg, rgba(35, 151, 226, 1), rgba(15, 105, 184, 1));
  color: white;
}

.bowling-score-row {
  display: contents;
}

.bowling-score-player {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--player-color, #FFD700) 58%, rgba(255, 255, 255, .24));
}

.bowling-score-player span,
.bowling-score-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(0, 0, 0, .18);
  color: white;
  font-family: 'Londrina Solid', cursive;
  font-size: 1.35rem;
}

.bowling-score-avatar-img {
  object-fit: cover;
}

.bowling-score-frame {
  min-height: 44px;
  display: grid;
  grid-template-rows: 19px minmax(25px, 1fr);
  background: linear-gradient(180deg, rgba(44, 39, 37, .96), rgba(27, 24, 24, .96));
  color: #fff;
  font-family: 'Londrina Solid', cursive;
  overflow: hidden;
}

.bowling-score-frame.is-current {
  box-shadow: inset 0 0 0 2px rgba(255, 211, 77, .92);
}

.bowling-score-frame.is-pending .bowling-score-total::after {
  content: '...';
  color: rgba(255, 255, 255, .4);
  font-size: 1.1rem;
}

.bowling-score-throws {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid rgba(255, 255, 255, .28);
}

.bowling-score-throws.is-bonus-frame {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bowling-score-throw {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-size: clamp(.78rem, .95vw, 1.05rem);
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .34);
}

.bowling-score-throw:first-child {
  border-left: 0;
}

.bowling-score-throw.is-spare::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0 49%, rgba(255, 255, 255, .9) 50% 100%);
  opacity: .95;
  pointer-events: none;
}

.bowling-score-throw.is-spare,
.bowling-score-throw.is-strike {
  font-size: clamp(.88rem, 1.08vw, 1.18rem);
}

.bowling-score-throw.is-spare {
  color: #182034;
  text-shadow: none;
  isolation: isolate;
}

.bowling-score-throw.is-spare,
.bowling-score-throw.is-strike,
.bowling-score-throw.is-gutter {
  font-weight: 900;
}

.bowling-score-total {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: clamp(1.05rem, 1.45vw, 1.65rem);
  line-height: .9;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .36);
}

.bowling-final-scoreboard-view,
.bowling-final-podium-view {
  position: absolute;
  inset: clamp(16px, 2.5vw, 34px);
  z-index: 3;
  pointer-events: none;
}

.bowling-final-scoreboard-view {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(620px, 1fr) minmax(260px, 360px);
  grid-template-rows: auto 1fr auto;
  gap: clamp(12px, 1.4vw, 22px);
}

.bowling-final-scoreboard-title {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  padding: 18px 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(15, 23, 42, .48), rgba(15, 12, 41, .26));
  border: 1px solid rgba(255, 255, 255, .24);
  box-shadow: 0 22px 58px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .18);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
}

.bowling-final-scoreboard-title h2,
.bowling-final-podium-panel h2 {
  margin: 0;
  font-family: 'Londrina Solid', cursive;
  line-height: .86;
  color: #fff;
  text-shadow: 0 5px 22px rgba(0, 0, 0, .54);
}

.bowling-final-scoreboard-title h2 {
  font-size: clamp(4rem, 7vw, 8.8rem);
}

.bowling-final-scoreboard-title p {
  margin-top: 10px;
  color: rgba(255, 255, 255, .76);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.bowling-scoreboard-hud--final {
  grid-column: 2;
  grid-row: 1 / 3;
  justify-self: center;
  align-self: center;
  width: min(1120px, 100%);
  max-height: calc(100vh - 140px);
  padding: 10px;
  overflow: auto;
  background: rgba(15, 16, 22, .84);
  border-color: rgba(255, 255, 255, .36);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .48), 0 0 34px rgba(255, 211, 77, .12);
  pointer-events: auto;
}

.bowling-scoreboard-hud--final .bowling-score-grid {
  grid-template-columns: 82px repeat(var(--round-count, 10), minmax(56px, 1fr));
}

.bowling-scoreboard-hud--final .bowling-score-head {
  min-height: 34px;
  font-size: clamp(1.25rem, 1.8vw, 2.1rem);
}

.bowling-scoreboard-hud--final .bowling-score-player {
  min-height: 72px;
}

.bowling-scoreboard-hud--final .bowling-score-player span,
.bowling-scoreboard-hud--final .bowling-score-avatar-img {
  width: 54px;
  height: 54px;
  font-size: 2rem;
}

.bowling-scoreboard-hud--final .bowling-score-frame {
  min-height: 72px;
  grid-template-rows: 30px minmax(42px, 1fr);
}

.bowling-scoreboard-hud--final .bowling-score-throw {
  font-size: clamp(1.05rem, 1.45vw, 1.65rem);
}

.bowling-scoreboard-hud--final .bowling-score-total {
  font-size: clamp(1.75rem, 2.55vw, 3rem);
}

.bowling-final-rankings {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: start;
  max-height: calc(100vh - 140px);
  padding: 16px;
  overflow: auto;
  pointer-events: auto;
}

.bowling-final-rankings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: #FFD700;
  font-family: 'Londrina Solid', cursive;
  font-size: clamp(2rem, 3vw, 3.8rem);
  line-height: .9;
}

.bowling-final-rankings-list {
  display: grid;
  gap: 10px;
}

.bowling-final-rank {
  display: grid;
  grid-template-columns: 38px 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-left: 5px solid var(--player-color, #FFD700);
  border-radius: 8px;
  background: rgba(0, 0, 0, .34);
}

.bowling-final-rank-number,
.bowling-final-rank-score {
  font-family: 'Londrina Solid', cursive;
  line-height: .9;
}

.bowling-final-rank-number {
  color: rgba(255, 255, 255, .72);
  font-size: 2rem;
  text-align: center;
}

.bowling-final-rank-avatar {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--player-color, #FFD700) 50%, rgba(0, 0, 0, .36));
  color: white;
  font-family: 'Londrina Solid', cursive;
  font-size: 1.5rem;
}

.bowling-final-rank-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bowling-final-rank-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 950;
  font-size: 1.05rem;
}

.bowling-final-rank-score {
  color: #FFD700;
  font-size: 2.15rem;
}

.bowling-final-narrator {
  grid-column: 1 / -1;
  grid-row: 3;
  align-self: end;
  width: min(760px, 100%);
  pointer-events: auto;
}

.bowling-final-podium-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  align-items: end;
  gap: clamp(14px, 2vw, 28px);
}

.bowling-final-podium-panel {
  justify-self: center;
  width: min(1080px, 100%);
  padding: clamp(24px, 3vw, 42px);
  text-align: center;
  pointer-events: auto;
}

.bowling-final-podium-panel h2 {
  margin: 8px auto 26px;
  font-size: clamp(4rem, 6vw, 8rem);
}

.bowling-final-podium-stand {
  min-height: 430px;
}

.bowling-final-podium-view .bowling-final-narrator {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
}

@media (max-width: 1180px) {
  .bowling-final-scoreboard-view {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .bowling-final-scoreboard-title,
  .bowling-scoreboard-hud--final,
  .bowling-final-rankings,
  .bowling-final-narrator {
    grid-column: 1;
  }

  .bowling-scoreboard-hud--final {
    grid-row: 2;
  }

  .bowling-final-rankings {
    grid-row: 3;
  }

  .bowling-final-narrator {
    grid-row: 4;
  }

  .bowling-final-podium-view {
    grid-template-columns: minmax(0, 1fr);
  }

  .bowling-final-podium-view .bowling-final-narrator {
    grid-column: 1;
    grid-row: 2;
  }
}

.bowling-hud-shot {
  grid-column: 1;
  grid-row: 3;
  align-self: end;
  width: 180px;
  padding: 13px 16px;
}

.bowling-hud-shot span {
  display: block;
  color: rgba(255, 255, 255, .7);
  font-size: .76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bowling-hud-shot strong {
  display: block;
  font-family: 'Londrina Solid', cursive;
  font-size: 3.6rem;
  line-height: .9;
  color: #FFD700;
}

.bowling-hud-shot.is-reveal strong {
  color: #55E28C;
}

.bowling-hud-timer {
  grid-column: 2;
  grid-row: 3;
  align-self: end;
  justify-self: center;
  width: min(520px, 100%);
  padding: 12px 14px 14px;
}

.bowling-hud-timer .bowling-tv-timer {
  color: rgba(255, 255, 255, .86);
  font-weight: 900;
}

.bowling-hud-timer .timer-seconds {
  color: #FFD700;
  font-size: 2.25rem;
  line-height: .9;
}

.bowling-hud-progress {
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, .26);
}

.bowling-hud-progress .timer-bar {
  height: 100%;
}

.bowling-hud-narrator {
  grid-column: 3;
  grid-row: 3;
  align-self: end;
  pointer-events: auto;
}

.bowling-hud-narrator .glass-panel {
  padding: 14px !important;
}

.bowling-hud-results {
  grid-column: 3;
  grid-row: 2 / span 2;
  align-self: end;
  max-height: min(48vh, 420px);
  padding: 15px;
  overflow: hidden;
}

.bowling-hud-results h3 {
  font-family: 'Londrina Solid', cursive;
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.bowling-hud-winner {
  grid-column: 2;
  grid-row: 3;
  align-self: end;
  justify-self: center;
  margin-bottom: 82px;
}

.bowling-fallback-lane {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: linear-gradient(90deg, #171025 0 13%, #bf7d31 13% 87%, #171025 87% 100%);
}

.bowling-fallback-ball,
.bowling-fallback-pin {
  position: absolute;
  border-radius: 999px;
}

.bowling-fallback-ball {
  left: calc(50% + var(--ball-x, 0%));
  bottom: 12%;
  width: 54px;
  height: 54px;
  margin-left: -27px;
  background: radial-gradient(circle at 35% 30%, #7c4dff, #28136a 64%, #100626);
}

.bowling-fallback-pin {
  width: 24px;
  height: 42px;
  margin-left: -12px;
  background: linear-gradient(#fff, #fef3c7);
  border: 4px solid #ff304f;
}

.bowling-fallback-pin.is-down {
  transform: rotate(76deg) translateX(18px);
  opacity: .62;
}

.bowling-mobile-screen {
  min-height: calc(100dvh - 92px);
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.bowling-mobile-screen * {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.bowling-mobile-scorebar,
.bowling-mobile-footer {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bowling-mobile-scorebar > div {
  flex: 1;
  border-radius: 16px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .1);
  padding: 10px 12px;
}

.bowling-mobile-scorebar span {
  display: block;
  color: rgba(255, 255, 255, .58);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.bowling-mobile-scorebar strong {
  display: block;
  font-family: 'Londrina Solid', cursive;
  font-size: 1.85rem;
  line-height: 1;
  color: #FFD700;
}

.bowling-mobile-frame-status {
  min-height: 48px;
  border-radius: 16px;
  background: rgba(85, 226, 140, .12);
  border: 1px solid rgba(85, 226, 140, .34);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
}

.bowling-mobile-frame-status span {
  color: #55E28C;
  font-family: 'Londrina Solid', cursive;
  font-size: 1.8rem;
  line-height: 1;
}

.bowling-mobile-frame-status strong {
  color: rgba(255, 255, 255, .82);
  font-size: .9rem;
  text-align: right;
}

.bowling-mobile-mode {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.bowling-mobile-mode button {
  min-height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, .76);
  font-weight: 900;
}

.bowling-mobile-mode button.is-active {
  border-color: rgba(255, 215, 0, .55);
  background: rgba(255, 215, 0, .16);
  color: #FFD700;
}

.bowling-gesture-shell {
  max-width: none;
}

.bowling-gesture-shell #app {
  padding: 0 !important;
  min-height: 100dvh;
}

.bowling-mobile-gesture-screen {
  position: relative;
  min-height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: #000;
  color: #fff;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.bowling-mobile-gesture-screen.is-pressing {
  background: #020202;
}

.bowling-mobile-gesture-copy {
  width: min(78vw, 360px);
  display: grid;
  gap: 12px;
  pointer-events: none;
}

.bowling-mobile-gesture-copy span {
  color: rgba(255, 255, 255, .42);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.bowling-mobile-gesture-copy strong {
  font-family: 'Londrina Solid', cursive;
  font-size: clamp(2.3rem, 12vw, 4.6rem);
  line-height: .92;
  font-weight: 900;
  letter-spacing: 0;
}

.bowling-mobile-move-toggle {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  min-height: 58px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 900;
  z-index: 5;
  touch-action: manipulation;
}

.bowling-mobile-move-toggle.is-active {
  border-color: rgba(255, 215, 0, .78);
  background: rgba(255, 215, 0, .18);
  color: #FFD700;
}

.bowling-mobile-gesture-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(34px + 70px * var(--power, 0));
  height: calc(34px + 70px * var(--power, 0));
  margin-left: calc((34px + 70px * var(--power, 0)) / -2);
  margin-top: calc((34px + 70px * var(--power, 0)) / -2);
  border-radius: 999px;
  opacity: .22;
  transform: translateX(calc(var(--position, 0) * 30vw)) rotate(calc(var(--angle, 0) * 24deg));
  background: radial-gradient(circle, rgba(255, 255, 255, .45), rgba(255, 255, 255, .08) 58%, transparent 70%);
  pointer-events: none;
  transition: width .08s linear, height .08s linear, margin .08s linear, transform .08s linear, opacity .12s ease;
}

.bowling-mobile-gesture-screen.is-move-mode .bowling-mobile-gesture-dot {
  opacity: .34;
  background: radial-gradient(circle, rgba(255, 215, 0, .55), rgba(255, 215, 0, .1) 58%, transparent 70%);
}

.bowling-mobile-pad {
  position: relative;
  height: min(43dvh, 390px);
  min-height: 300px;
  border-radius: 28px;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  background:
    radial-gradient(circle at 50% 16%, rgba(255, 215, 0, .18), transparent 36%),
    linear-gradient(90deg, #160d25 0 13%, #a9672d 13% 87%, #160d25 87% 100%);
  border: 2px solid rgba(255, 215, 0, .34);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .04), 0 16px 34px rgba(0, 0, 0, .28);
}

.bowling-mobile-lane-lines,
.bowling-mobile-lane-lines::before,
.bowling-mobile-lane-lines::after {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, .16);
}

.bowling-mobile-lane-lines {
  left: 50%;
}

.bowling-mobile-lane-lines::before,
.bowling-mobile-lane-lines::after {
  content: '';
}

.bowling-mobile-lane-lines::before { left: -64px; }
.bowling-mobile-lane-lines::after { left: 64px; }

.bowling-mobile-pin-deck {
  position: absolute;
  top: 22px;
  left: 50%;
  width: 128px;
  height: 86px;
  transform: translateX(-50%);
}

.bowling-mobile-pin-deck span {
  position: absolute;
  width: 16px;
  height: 28px;
  border-radius: 999px 999px 7px 7px;
  background: linear-gradient(#fff, #ffe8b5);
  border-top: 5px solid #ff304f;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .28);
}

.bowling-mobile-pin-deck span:nth-child(1) { left: 56px; top: 0; }
.bowling-mobile-pin-deck span:nth-child(2) { left: 40px; top: 20px; }
.bowling-mobile-pin-deck span:nth-child(3) { left: 72px; top: 20px; }
.bowling-mobile-pin-deck span:nth-child(4) { left: 24px; top: 40px; }
.bowling-mobile-pin-deck span:nth-child(5) { left: 56px; top: 40px; }
.bowling-mobile-pin-deck span:nth-child(6) { left: 88px; top: 40px; }
.bowling-mobile-pin-deck span:nth-child(7) { left: 8px; top: 60px; }
.bowling-mobile-pin-deck span:nth-child(8) { left: 40px; top: 60px; }
.bowling-mobile-pin-deck span:nth-child(9) { left: 72px; top: 60px; }
.bowling-mobile-pin-deck span:nth-child(10) { left: 104px; top: 60px; }

.bowling-mobile-target,
.bowling-mobile-aim-line,
.bowling-mobile-ghost,
.bowling-mobile-direction-arrow,
.bowling-mobile-ball {
  position: absolute;
  left: 50%;
  bottom: 34px;
}

.bowling-mobile-target {
  width: 74px;
  height: 74px;
  margin-left: -37px;
  border-radius: 999px;
  border: 2px dashed rgba(255, 255, 255, .34);
}

.bowling-mobile-ghost {
  top: 92px;
  bottom: auto;
  width: 8px;
  height: calc(100% - 138px);
  margin-left: -4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 215, 0, .65), transparent);
  transform-origin: 50% 100%;
  transition: opacity .12s ease;
}

.bowling-mobile-aim-line {
  width: 10px;
  height: calc(100% - 136px);
  margin-left: -5px;
  border-radius: 999px;
  transform-origin: 50% 100%;
  background: repeating-linear-gradient(0deg, #ff304f 0 16px, transparent 16px 28px);
  box-shadow: 0 0 18px rgba(255, 48, 79, .35);
  transition: opacity .12s ease, transform .08s linear;
}

.bowling-mobile-aim-line::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -20px;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-bottom: 26px solid #ff304f;
  filter: drop-shadow(0 0 12px rgba(255, 48, 79, .6));
}

.bowling-mobile-direction-arrow {
  bottom: calc(50% - 8px);
  width: 56px;
  height: 56px;
  margin-left: -28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  background: rgba(255, 48, 79, .92);
  border: 3px solid rgba(255, 255, 255, .76);
  box-shadow: 0 0 24px rgba(255, 48, 79, .5), 0 10px 24px rgba(0, 0, 0, .34);
  pointer-events: none;
  transform-origin: 50% calc(50% + 116px);
  transition: opacity .12s ease, transform .08s linear;
  z-index: 4;
}

.bowling-mobile-ball {
  width: 64px;
  height: 64px;
  margin-left: -32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.4rem;
  background: radial-gradient(circle at 35% 30%, #7c4dff, #28136a 64%, #100626);
  box-shadow: 0 12px 24px rgba(0, 0, 0, .38), 0 0 22px rgba(255, 215, 0, .28);
  transition: transform .08s linear;
  z-index: 5;
}

.bowling-mobile-pad.is-aiming .bowling-mobile-ball {
  box-shadow: 0 16px 30px rgba(0, 0, 0, .46), 0 0 30px rgba(255, 215, 0, .5);
}

.bowling-mobile-pad.is-released .bowling-mobile-ball {
  animation: bowling-mobile-release .42s ease-out both;
}

.bowling-mobile-arrow-hint {
  position: absolute;
  left: 50%;
  bottom: 108px;
  width: min(72%, 280px);
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  color: rgba(255, 48, 79, .9);
  font-size: 2.3rem;
  text-shadow: 0 0 12px rgba(255, 48, 79, .45);
  pointer-events: none;
}

.bowling-mobile-arrow-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 82px;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.bowling-mobile-arrow-row button {
  min-height: 62px;
  border-radius: 20px;
  border: 3px solid rgba(255, 215, 0, .52);
  background: linear-gradient(180deg, #ffbf3d, #ff7a18);
  color: white;
  font-size: 1.9rem;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .38);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.bowling-mobile-arrow-row button:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .45);
}

.bowling-mobile-mode-label {
  min-height: 50px;
  border-radius: 18px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFD700;
  font-family: 'Londrina Solid', cursive;
  font-size: 1.65rem;
}

.bowling-throw-button {
  width: 100%;
  min-height: 86px;
  border-radius: 26px;
  border: 4px solid rgba(255, 255, 255, .24);
  background: linear-gradient(180deg, #ff3366, #c81f4a);
  color: white;
  font-family: 'Londrina Solid', cursive;
  font-size: clamp(1.85rem, 8vw, 2.6rem);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
  box-shadow: 0 9px 0 rgba(0, 0, 0, .48), 0 0 28px rgba(255, 51, 102, .26);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.bowling-throw-button.is-holding {
  transform: translateY(7px) scale(.99);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .5), 0 0 36px rgba(255, 215, 0, .4);
  background: linear-gradient(180deg, #FFD700, #FF512F);
}

.bowling-throw-button:disabled {
  opacity: .68;
}

.bowling-power-meter {
  width: 18px;
  height: 76px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(0, 0, 0, .34);
  border: 1px solid rgba(255, 255, 255, .18);
  display: flex;
  align-items: flex-end;
}

.bowling-power-meter div {
  width: 100%;
  height: 55%;
  border-radius: 999px;
  background: linear-gradient(180deg, #55E28C, #FFD700, #FF512F);
}

@keyframes bowling-mobile-release {
  0% { opacity: 1; }
  100% { opacity: .35; }
}

@media (max-width: 1100px) {
  .bowling-tv-layout {
    grid-template-columns: 1fr;
  }

  .bowling-tv-stage {
    min-height: 460px;
  }
}

.timer-bar {
  height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, #FF512F, #F09819, #FFD700);
  transition: width 0.3s linear;
}

body.gribouillis-drawer-mode {
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}
body.gribouillis-drawer-mode #mobileShell {
  height: 100dvh;
  max-height: 100dvh;
  max-width: 430px;
  overflow: hidden;
}
body.gribouillis-drawer-mode #mobileHeader {
  display: none;
}
body.gribouillis-drawer-mode #app {
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.pwa-install-prompt {
  position: fixed;
  left: max(14px, env(safe-area-inset-left));
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 10000;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto 34px;
  align-items: center;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
  padding: 12px;
  border: 2px solid rgba(255, 157, 0, .68);
  border-radius: 18px;
  background: rgba(26, 11, 46, .96);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .42), 0 0 22px rgba(255, 157, 0, .22);
  color: #fff;
  transform: translateY(130%);
  opacity: 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.pwa-install-prompt[data-visible="true"] {
  transform: translateY(0);
  opacity: 1;
}

.pwa-install-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: #ff9d00;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .42);
}

.pwa-install-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.pwa-install-copy strong {
  font-family: 'Londrina Solid', sans-serif;
  font-size: 1.3rem;
  line-height: 1;
  color: #ffcc00;
}

.pwa-install-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .78rem;
  color: rgba(255, 255, 255, .78);
}

.pwa-install-action,
.pwa-install-dismiss {
  border: 0;
  color: #fff;
  font-weight: 800;
}

.pwa-install-action {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  background: #ff9d00;
}

.pwa-install-dismiss {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
}

@media (max-width: 360px) {
  .pwa-install-prompt {
    grid-template-columns: 40px minmax(0, 1fr) 34px;
  }

  .pwa-install-action {
    grid-column: 2 / 4;
    width: 100%;
  }
}

.gribouillis-drawer-screen {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}
.gribouillis-canvas-frame {
  min-height: 0;
}
.gribouillis-canvas-frame canvas {
  touch-action: none;
  cursor: crosshair;
}
.gribouillis-timer-pulse {
  animation: gribouillis-timer-pulse 1s infinite;
}
@keyframes gribouillis-timer-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); color: #ff3366; }
}
.color-swatch {
  transition: transform .15s ease, box-shadow .15s ease;
}
.color-swatch.active {
  transform: scale(1.12);
  box-shadow: 0 0 0 3px #ff9d00;
}
.brush-size {
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.brush-size.active {
  background: #ff9d00;
  color: #1a0b2e;
  transform: translateY(-2px);
}

.word-hint-slot {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.word-hint-slot.revealed {
  border-color: rgba(85, 226, 140, .95);
  box-shadow: 0 0 18px rgba(85, 226, 140, .28);
  transform: translateY(-2px);
}
.gribouillis-tv-screen {
  height: calc(100vh - 48px);
  max-height: calc(100vh - 48px);
  overflow: hidden;
}
@media (min-width: 1024px) {
  .gribouillis-tv-screen {
    height: calc(100vh - 80px);
    max-height: calc(100vh - 80px);
  }
}
.gribouillis-chat-message {
  animation: gribouillis-chat-slide .25s ease-out both;
}
@keyframes gribouillis-chat-slide {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}
.countdown-circle {
  animation: countdown-pulse 1s ease-in-out infinite;
}
@keyframes countdown-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.audio-bar {
  animation: audio-wave .8s ease-in-out infinite;
  animation-play-state: paused;
  transform-origin: bottom;
  transform: scaleY(.45);
}
.narrator-speaking .audio-bar { animation-play-state: running; }
.audio-bar:nth-child(1) { animation-delay: 0s; }
.audio-bar:nth-child(2) { animation-delay: .1s; }
.audio-bar:nth-child(3) { animation-delay: .2s; }
.audio-bar:nth-child(4) { animation-delay: .3s; }
.audio-bar:nth-child(5) { animation-delay: .4s; }
.audio-bar:nth-child(6) { animation-delay: .5s; }
.audio-bar:nth-child(7) { animation-delay: .6s; }
@keyframes audio-wave {
  0%, 100% { transform: scaleY(.45); }
  50% { transform: scaleY(1); }
}

.quete-tv-screen {
  height: calc(100vh - 48px);
  max-height: calc(100vh - 48px);
  overflow: hidden;
}
@media (min-width: 1024px) {
  .quete-tv-screen {
    height: calc(100vh - 80px);
    max-height: calc(100vh - 80px);
  }
}
.quete-map-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(92px, 1fr);
  gap: 10px;
  align-items: stretch;
}
.quete-map-node {
  position: relative;
  min-height: 78px;
  border-radius: 16px;
  padding: 10px 8px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .10);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}
.quete-map-node::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -11px;
  width: 12px;
  height: 2px;
  background: rgba(255, 215, 0, .28);
}
.quete-map-node:last-child::after { display: none; }
.quete-map-dot {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(100, 65, 165, .9);
  border: 2px solid rgba(255, 255, 255, .14);
}
.quete-map-label {
  width: 100%;
  color: rgba(255, 255, 255, .82);
  font-size: .68rem;
  font-weight: 800;
  line-height: 1.05;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.quete-map-node.current {
  border-color: rgba(255, 215, 0, .78);
  box-shadow: 0 0 18px rgba(255, 215, 0, .22);
  background: rgba(240, 152, 25, .16);
}
.quete-map-node.current .quete-map-dot {
  background: linear-gradient(135deg, #FF512F, #FFD700);
  color: #0F0C29;
  border-color: rgba(255, 255, 255, .55);
}
.quete-map-node.resolved .quete-map-dot {
  background: rgba(85, 226, 140, .28);
  border-color: rgba(85, 226, 140, .72);
  color: #bbf7d0;
}
.quete-map-node.hidden,
.quete-map-node.locked {
  opacity: .42;
}
.quete-map-node.boss .quete-map-dot {
  background: rgba(220, 38, 38, .38);
  border-color: rgba(248, 113, 113, .75);
  color: #fecaca;
}
.quete-dice {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Londrina Solid', cursive;
  font-size: 2rem;
  background: linear-gradient(135deg, rgba(255, 81, 47, .95), rgba(255, 215, 0, .9));
  color: #0F0C29;
  box-shadow: 0 8px 0 rgba(0, 0, 0, .24);
}

.masquee-tv-screen {
  height: calc(100vh - 48px);
  max-height: calc(100vh - 48px);
  overflow: hidden;
}
@media (min-width: 1024px) {
  .masquee-tv-screen {
    height: calc(100vh - 80px);
    max-height: calc(100vh - 80px);
  }
}
.masquee-clue-card {
  animation: masquee-clue-pop .25s ease-out both;
}
@keyframes masquee-clue-pop {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.masquee-player-card {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.masquee-player-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 0, .42);
  box-shadow: 0 0 16px rgba(255, 215, 0, .12);
}

.qui-tv-screen {
  height: calc(100vh - 48px);
  max-height: calc(100vh - 48px);
  overflow: hidden;
}
@media (min-width: 1024px) {
  .qui-tv-screen {
    height: calc(100vh - 80px);
    max-height: calc(100vh - 80px);
  }
}
.qui-player-card,
.qui-answer-card,
.qui-portrait-card,
.qui-portrait-tv-card {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.qui-player-card:hover,
.qui-answer-card:hover,
.qui-portrait-tv-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 0, .42);
  box-shadow: 0 0 16px rgba(255, 215, 0, .14);
}
.qui-answer-card,
.qui-portrait-card {
  animation: qui-card-pop .22s ease-out both;
}
@keyframes qui-card-pop {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.qui-mobile-draw-frame canvas,
.qui-mobile-draw-frame img {
  user-select: none;
  -webkit-user-select: none;
}
.qui-mobile-draw-frame canvas {
  cursor: crosshair;
}
