/* Play-specific styles layered on hub.css primitives. */
.play-page__main {
  padding-top: calc(var(--nav-h) + 18px);
}

.hero {
  min-height: 40vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 128px 20px 72px;
  overflow: hidden;
  background: linear-gradient(135deg, #0c0e14 0%, #1a1025 30%, #0f1923 70%, #0c0e14 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: url('/og-image.png') center/cover no-repeat;
  filter: blur(14px) brightness(0.33);
  opacity: 0.45;
  transform: scale(1.08);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.07), rgba(12, 14, 20, 0.82));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 900px);
  margin: 0 auto;
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(2.2rem, 8vw, 4rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.hero-subtitle {
  margin: 0 auto;
  max-width: 60ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.6;
}

.catalog {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 20px 24px;
}

.blurred-visuals-banner--play {
  width: min(1200px, calc(100% - 40px));
  margin: 28px auto 0;
}

.is-hidden {
  display: none !important;
}

.player-section {
  --game-bg-color: var(--surface);
  --game-accent: var(--pink);
  --game-gradient: none;
  max-width: 1280px;
  margin: 0 auto 32px;
  padding: 28px 28px 32px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--game-bg-color);
  background-image: var(--game-gradient);
  background-size: cover;
  background-position: center top;
  transition: background-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.player-section[data-game-slug]::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 14, 20, 0.25) 100%);
  z-index: 0;
}

.player-section > * {
  position: relative;
  z-index: 1;
}

.player-meta-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  margin-bottom: 16px;
  align-items: start;
}

.game-info-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 18px 0 12px;
}

.game-panel {
  background: rgba(12, 14, 20, 0.55);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px 18px;
  min-height: 92px;
}

.game-panel h3 {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.panel-coins-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--game-accent);
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-coins-value::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  background-image: url("/images/ShasteCoin.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: drop-shadow(0 0 6px oklch(0.80 0.15 62 / 0.40));
}

.panel-coins-sub {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.panel-achievements-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.panel-achievements-count {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.panel-achievements-count b {
  color: var(--game-accent);
  font-weight: 800;
}

.ach-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

.ach-bar-fill {
  height: 100%;
  background: var(--game-accent);
  border-radius: 999px;
  transition: width 0.6s ease;
  width: 0%;
}

.ach-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
  max-height: 120px;
  overflow-y: auto;
}

.ach-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.3;
}

.ach-list li .ach-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  color: rgba(8, 15, 13, 0.92);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
}

.ach-list li.unlocked .ach-dot {
  background: var(--game-accent);
  box-shadow: 0 0 6px var(--game-accent);
}

.ach-list li.unlocked {
  color: #fff;
}

.ach-list li.locked {
  opacity: 0.55;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  height: auto;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.download-btn:hover,
.download-btn:focus-visible {
  border-color: var(--game-accent);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.download-btn--primary {
  border-color: color-mix(in oklab, var(--game-accent) 72%, white 12%);
  background: color-mix(in oklab, var(--game-accent) 32%, rgba(255, 255, 255, 0.10));
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--game-accent) 42%, transparent), 0 10px 22px rgba(0, 0, 0, 0.18);
}

.download-btn--primary:hover,
.download-btn--primary:focus-visible {
  background: color-mix(in oklab, var(--game-accent) 42%, rgba(255, 255, 255, 0.12));
}

.download-btn--other {
  justify-content: center;
}

.download-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.download-btn .dl-label {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.download-btn .dl-label b {
  font-size: 0.95rem;
}

.download-btn .dl-label span {
  font-size: 0.7rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0;
}

.panel-login-prompt {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
}

.panel-login-prompt a {
  color: var(--game-accent);
  font-weight: 600;
  text-decoration: none;
}

.panel-login-prompt a:hover { text-decoration: underline; }

.panel-login-prompt--spaced {
  margin-top: 8px;
}

@media (max-width: 900px) {
  .game-info-panels {
    grid-template-columns: 1fr;
  }
  .player-section {
    padding: 20px 16px 24px;
  }
}

.panel-build-value {
  color: var(--game-accent);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.2;
}

.panel-build-sub {
  margin: 6px 0 0;
  color: rgba(255,255,255,0.64);
  font-size: 0.86rem;
  line-height: 1.4;
}

.build-channel-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.build-channel-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 52px;
  padding: 9px 10px;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.build-channel-btn span {
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.15;
}

.build-channel-btn small {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.68rem;
  line-height: 1.2;
}

.build-channel-btn:hover,
.build-channel-btn:focus-visible {
  border-color: var(--game-accent);
  background: rgba(255, 255, 255, 0.11);
  transform: translateY(-1px);
}

.build-channel-btn.is-active {
  border-color: color-mix(in oklab, var(--game-accent) 76%, white 10%);
  background: color-mix(in oklab, var(--game-accent) 26%, rgba(255, 255, 255, 0.08));
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--game-accent) 32%, transparent);
}

.build-channel-btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.panel-build-access {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  line-height: 1.35;
}

.player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

#player-title {
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 1.65rem);
}

.player-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.player-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.player-access-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.player-access-status--supporter {
  border-color: rgba(0, 184, 148, 0.52);
  background: rgba(0, 184, 148, 0.16);
  color: #7fffd6;
}

.player-access-status--follower {
  border-color: rgba(96, 165, 250, 0.52);
  background: rgba(96, 165, 250, 0.16);
  color: #bfdbfe;
}

.player-access-status--free {
  border-color: rgba(245, 158, 11, 0.44);
  background: rgba(245, 158, 11, 0.13);
  color: #facc15;
}

.btn-close {
  border: 1px solid rgba(245, 246, 250, 0.28);
  background: rgba(245, 246, 250, 0.14);
  color: #fff;
  font-weight: 700;
  transition: filter 0.2s ease;
}

.btn-close:hover,
.btn-close:focus-visible {
  filter: brightness(1.12);
}

.dimension-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
}

.dimension-controls label {
  font-weight: 600;
  margin-right: 6px;
}

.dimension-btn {
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid rgba(245, 246, 250, 0.24);
  background: rgba(245, 246, 250, 0.08);
  color: var(--text);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dimension-btn:hover,
.dimension-btn:focus-visible {
  background: rgba(245, 246, 250, 0.16);
  border-color: rgba(245, 246, 250, 0.36);
  transform: translateY(-1px);
}

.dimension-btn.active {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}

.player-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #000;
  display: none;
  flex-direction: column;
}

.player-fullscreen.active {
  display: flex;
}

.age-gate {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(5, 7, 12, 0.82);
  backdrop-filter: blur(10px);
}

.age-gate.is-active {
  display: grid;
}

.age-gate[hidden] {
  display: none;
}

body.age-gate-open {
  overflow: hidden;
}

.age-gate__panel {
  width: min(100%, 460px);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #121724;
  color: #fff;
  padding: 24px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.age-gate__eyebrow {
  margin: 0 0 8px;
  color: var(--pink);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.age-gate h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.15;
}

.age-gate p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.55;
}

.age-gate__game {
  min-height: 1.5em;
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 700;
}

.age-gate__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.age-gate__actions .btn {
  min-width: 132px;
}

.player-fullscreen-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#player-iframe-fullscreen {
  width: 100%;
  height: 100%;
  border: 0;
}

.player-fullscreen-exit {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 1001;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.7;
  backdrop-filter: blur(8px);
}

.player-fullscreen-exit:hover,
.player-fullscreen-exit:focus-visible {
  background: rgba(0, 0, 0, 0.8);
  border-color: rgba(255, 255, 255, 0.4);
  opacity: 1;
  transform: scale(1.05);
}

.browser-fullscreen-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
  opacity: 0.75;
  backdrop-filter: blur(8px);
}

.browser-fullscreen-toggle:hover,
.browser-fullscreen-toggle:focus-visible {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(0, 0, 0, 0.78);
  transform: translateY(-1px);
}

.browser-fullscreen-toggle svg,
.player-fullscreen-exit svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.player-supporter-banner {
  display: none;
  margin: 0 0 10px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 184, 148, 0.5);
  background: rgba(0, 184, 148, 0.12);
  color: #7fffd6;
  font-size: 0.92rem;
  font-weight: 700;
  width: fit-content;
}

.player-frame-wrap {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 0;
  padding-bottom: min(56.25%, 80vh);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin: 0 auto;
  background: #000;
}

#player-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.collection {
  margin-bottom: 54px;
}

.collection h2 {
  margin: 0 0 20px;
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  letter-spacing: 0.02em;
}

.collection-link {
  color: inherit;
  text-decoration: none;
}

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

.game-card {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.card-thumb {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #191f31;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-thumb img.card-thumb__logo {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 10px;
  width: min(76%, 270px);
  height: auto;
  max-height: 64px;
  object-fit: contain;
  object-position: center;
  transform: translateX(-50%);
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.55));
  pointer-events: none;
}
.card-thumb img.card-thumb__logo--stacked {
  width: min(58%, 210px);
  max-height: 74px;
}
.card-thumb--erotoy-game-gem-crush-1,
.card-thumb--erotoy-game-gem-crush-1 img {
  background-position: center bottom;
  object-position: center bottom;
}
.game-card--release-locked .card-thumb img {
  object-fit: contain;
  padding: 18px;
  background: #0e1119;
}

.card-thumb--chimera-haven { background-image: url('/images/public-safe/images/games/chimera-haven.webp?v=20260829-5'); }
.card-thumb--elyra-eden-of-sins { background-image: url('/images/public-safe/images/games/elyra-eden-of-sins.webp?v=20260829-5'); }
.card-thumb--vorenkas-lewd-tales { background-image: url('/images/public-safe/images/games/vorenkas-lewd-tales.webp?v=20260829-5'); }
.card-thumb--full-exposure { background-image: url('/images/public-safe/images/games/full-exposure.webp?v=20260829-5'); }
.card-thumb--massage-parlor { background-image: url('/images/public-safe/images/games/massage-parlor.webp?v=20260829-5'); }
.card-thumb--love-and-life { background-image: url('/images/public-safe/images/games/love-and-life.webp?v=20260829-5'); }
.card-thumb--endless-hot-summers { background-image: url('/images/public-safe/images/games/endless-hot-summers.webp?v=20260829-5'); }
.card-thumb--work-mates {
  background-image:
    linear-gradient(135deg, rgba(10, 12, 18, .08), rgba(10, 12, 18, .72)),
    url('/images/public-safe/images/games/work-mates.webp?v=20260829-5');
  filter: saturate(.9) contrast(1.04);
}
.game-card--private-preview { border-color: color-mix(in srgb, var(--pink) 54%, var(--hairline)); }
.game-card--private-preview[hidden] { display: none !important; }
.card-thumb--erotoy-game-breakit-1 { background-image: url('/images/public-safe/images/games/erotoy-game-breakit-1.webp?v=20260829-5'); }
.card-thumb--erotoy-game-breakit-2 { background-image: url('/images/public-safe/images/games/erotoy-game-breakit-2.webp?v=20261016-release-2'); }
.card-thumb--erotoy-game-gem-crush-1 { background-image: url('/images/public-safe/images/games/erotoy-game-gem-crush-1.webp?v=20260829-5'); }
.card-thumb--erotoy-game-storm-score-1 { background-image: url('/images/public-safe/images/games/erotoy-game-storm-score-1.webp?v=20260829-5'); }
.card-thumb--erotoy-game-ribbon-snake-1 { background-image: url('/images/public-safe/images/games/erotoy-game-ribbon-snake-1.webp?v=20260829-5'); }
.card-thumb--erotoy-game-dare-deck-1 { background-image: url('/images/public-safe/images/games/erotoy-game-dare-deck-1.webp?v=20260829-5'); }
.card-thumb--erotoy-game-pumpkin-blocks-1 { background-image: url('/images/public-safe/images/games/erotoy-game-pumpkin-blocks-1.webp?v=20260829-5'); }
.card-thumb--erotoy-game-moon-knight-1 { background-image: url('/images/public-safe/images/games/erotoy-game-moon-knight-1.webp?v=20260829-5'); }
.card-thumb--erotoy-game-cell-merge-1 { background-image: url('/images/public-safe/images/games/erotoy-game-cell-merge-1.webp?v=20260829-5'); }
.card-thumb--erotoy-game-ribbon-code-1 { background-image: url('/images/public-safe/images/games/erotoy-game-ribbon-code-1.webp?v=20260829-5'); }
.card-thumb--erotoy-game-abyss-maze-1 { background-image: url('/images/public-safe/images/games/erotoy-game-abyss-maze-1.webp?v=20260829-5'); }

.game-card__ribbons {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.game-card__ribbon {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.game-card__ribbon--locked {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.14);
}

.game-card__ribbon--promo {
  margin-left: auto;
  box-shadow: 0 10px 22px rgba(0,0,0,0.24);
}

.game-card__ribbon--offer {
  color: #fff4cf;
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.24);
}

.game-card__ribbon--new {
  color: #d9f1ff;
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(96, 165, 250, 0.22);
}

.game-card__ribbon--updated {
  color: #d7ffe9;
  border-color: rgba(0, 184, 148, 0.52);
  background: rgba(0, 184, 148, 0.2);
}

.game-card__ribbon--complete {
  color: rgba(255,255,255,0.88);
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.12);
}

.game-card__ribbon--development {
  color: #eadcff;
  border-color: rgba(168, 85, 247, 0.48);
  background: rgba(168, 85, 247, 0.18);
}

.game-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.game-tagline {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  min-height: 1.45em;
}

.game-release-date {
  margin: -3px 0 0;
  color: #fbbf24;
  font-size: 0.82rem;
  font-weight: 800;
}

.game-access-badge {
  display: none;
  width: fit-content;
  border-radius: 999px;
  font-size: 0.76rem;
  padding: 5px 10px;
  font-weight: 700;
  position: relative;
}
.game-access-badge.supporter {
  background: rgba(0, 184, 148, 0.15);
  color: #7fffd6;
  border: 1px solid rgba(0, 184, 148, 0.5);
}
.game-access-badge.follower {
  background: rgba(96, 165, 250, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(96, 165, 250, 0.5);
}
.game-access-badge.partial {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  cursor: pointer;
}
.game-access-badge.partial:hover .badge-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.badge-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  width: max-content;
  max-width: min(24rem, calc(100vw - 32px));
  transform: translateX(-50%) translateY(4px);
  background: #1a1e2e;
  color: #e2e8f0;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: normal;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 10;
}
.badge-tooltip a {
  color: #60a5fa;
  text-decoration: underline;
  font-weight: 700;
}
.badge-tooltip__release {
  display: block;
  margin-top: 6px;
  color: #fbbf24;
  font-weight: 800;
}
@media (max-width: 640px) {
  .badge-tooltip {
    position: fixed;
    inset-inline: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: auto;
    max-width: none;
    transform: translateY(6px);
    text-align: left;
  }

  .game-access-badge.partial:hover .badge-tooltip {
    transform: translateY(0);
  }
}
.use-token-btn {
  display: none;
  width: fit-content;
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-radius: 999px;
  font-size: 0.74rem;
  height: 30px;
  padding: 0 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.use-token-btn:hover {
  background: rgba(245, 158, 11, 0.3);
}

.game-card[data-status="locked"] .use-token-btn {
  display: none !important;
}

.erotoy-month-btn {
  display: none;
  width: fit-content;
  background: rgba(217, 72, 95, 0.18);
  color: #ffd4dc;
  border: 1px solid rgba(217, 72, 95, 0.58);
  border-radius: 999px;
  font-size: 0.74rem;
  height: 30px;
  padding: 0 10px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.erotoy-month-btn:hover {
  background: rgba(217, 72, 95, 0.3);
  border-color: rgba(255, 185, 198, 0.85);
}

.game-card--locked .play-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
  color: #f5f6fa;
}
/* Legacy class kept for compatibility */
.supporter-badge { display: none; }

.play-btn {
  font-weight: 700;
  border-radius: 12px;
  height: 44px;
  padding: 0 18px;
  color: #fff;
  background: var(--pink);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.play-btn:hover,
.play-btn:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.supporter-panel-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 62px;
}

.supporter-panel {
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 26px 22px;
}

.supporter-section {
  display: none;
  line-height: 1.6;
  color: var(--muted);
}

.supporter-section.active {
  display: block;
}

.supporter-section p {
  margin: 0 0 14px;
  font-size: 1rem;
}

.supporter-section p:last-child {
  margin-bottom: 0;
}

.cta-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.cta-link:hover { text-decoration: underline; }

.btn-login {
  font-weight: 700;
  border-radius: 12px;
  height: 44px;
  padding: 0 18px;
  color: #fff;
  background: rgba(245, 246, 250, 0.14);
  border: 1px solid rgba(245, 246, 250, 0.28);
}

.success {
  color: #89f9d8;
  font-weight: 700;
}

.player-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  text-align: center;
  padding: 60px 20px;
  color: #bbc0cc;
  background: #07110e;
}

.player-fallback__title {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.player-fallback a {
  color: #74b9ff;
}

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 28px 20px 34px;
  text-align: center;
}

.footer-inner {
  width: min(100%, 800px);
  margin: 0 auto;
  color: #98a0b3;
  line-height: 1.7;
}

.footer-links {
  margin-top: 6px;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-links a {
  color: #c9d0e0;
  text-decoration: none;
}

.footer-links a:hover { text-decoration: underline; }

.language-row {
  margin-top: 14px;
  font-size: 0.82rem;
  color: #8c93a5;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  justify-content: center;
}

.language-row a {
  color: #c9d0e0;
  text-decoration: none;
}

.language-row a:hover,
.language-row a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .nav-inner {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .nav-links { display: none; }

  .hamburger { display: flex; }

  .hero {
    padding-top: 146px;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }

  #dimension-fullscreen,
  #browser-fullscreen-toggle {
    display: none;
  }

  .player-frame-wrap {
    max-width: 100% !important;
    height: clamp(520px, 78dvh, 760px) !important;
    padding-bottom: 0 !important;
  }
}

/* May 2026 monthly theme, kept subtle around the active game panel. */
body[data-monthly-theme="may-2026"] .hero {
  background: linear-gradient(135deg, #07150d 0%, #12361e 34%, #0f3540 70%, #07150d 100%);
}

body[data-monthly-theme="may-2026"] .hero::after {
  background:
    linear-gradient(180deg, rgba(7,21,13,0.16), rgba(7,21,13,0.88)),
    linear-gradient(115deg, rgba(216,169,74,0.16), transparent 45%);
}

body[data-monthly-theme="may-2026"] .player-section {
  border-color: rgba(216, 169, 74, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 247, 223, 0.05),
    0 22px 48px rgba(3, 14, 8, 0.34);
}

body[data-monthly-theme="may-2026"] .player-section[data-game-slug]::before {
  background:
    linear-gradient(180deg, rgba(216,169,74,0.055) 0%, transparent 24%),
    linear-gradient(180deg, transparent 0%, rgba(7, 21, 13, 0.24) 100%);
}

body[data-monthly-theme="may-2026"] .game-panel {
  background: rgba(7, 21, 13, 0.50);
  border-color: rgba(216, 169, 74, 0.16);
}

body[data-monthly-theme="may-2026"] .player-frame-wrap {
  border-color: rgba(216, 169, 74, 0.22);
  box-shadow: 0 0 0 1px rgba(47, 125, 63, 0.18);
}

body[data-monthly-theme="may-2026"] .dimension-btn.active,
body[data-monthly-theme="may-2026"] .play-btn {
  background: linear-gradient(90deg, #2f7d3f, #0f7f86);
  border-color: rgba(216, 169, 74, 0.34);
}

body[data-monthly-theme="may-2026"] .card-thumb {
  border-color: rgba(216, 169, 74, 0.18);
}

body[data-monthly-theme="may-2026"] .supporter-panel {
  border-color: rgba(216, 169, 74, 0.18);
}

/* Sepia mode for the play surface. Mirrors the hub theme variables. */
body:is([data-theme="sepia"], [data-theme="light"]).play-page {
  background: var(--bg);
  color: var(--text);
}

body:is([data-theme="sepia"], [data-theme="light"]).play-page .play-page__main {
  background:
    linear-gradient(180deg, color-mix(in oklab, var(--bg) 88%, white 12%), var(--bg) 360px),
    var(--bg);
}

body:is([data-theme="sepia"], [data-theme="light"]).play-page .hero {
  background: linear-gradient(135deg, #f5e5cb 0%, #ead0a5 42%, #d3a66c 100%);
}

body:is([data-theme="sepia"], [data-theme="light"]).play-page .hero::before {
  filter: sepia(0.32) saturate(0.92) brightness(1.08);
  opacity: 0.22;
}

body:is([data-theme="sepia"], [data-theme="light"]).play-page .hero::after {
  background:
    radial-gradient(circle at center, rgba(255, 250, 240, 0.58), rgba(105, 66, 32, 0.16)),
    linear-gradient(180deg, rgba(250, 237, 214, 0.16), rgba(244, 228, 204, 0.88));
}

body:is([data-theme="sepia"], [data-theme="light"]).play-page .hero-title,
body:is([data-theme="sepia"], [data-theme="light"]).play-page #player-title,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .collection h2,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .game-title {
  color: var(--text);
}

body:is([data-theme="sepia"], [data-theme="light"]).play-page .hero-subtitle,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .game-tagline,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .dimension-controls,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .panel-coins-sub,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .panel-build-sub,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .panel-build-access,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .panel-login-prompt,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .supporter-section,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .player-fallback,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .footer-inner,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .language-row {
  color: var(--muted);
}

body:is([data-theme="sepia"], [data-theme="light"]).play-page .player-section {
  --game-bg-color: color-mix(in oklab, var(--surface) 86%, var(--game-accent, #b98035) 14%);
  border-color: var(--hairline);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 24px 54px rgba(100, 62, 25, 0.14);
}

body:is([data-theme="sepia"], [data-theme="light"]).play-page .player-section[data-game-slug]::before {
  background:
    linear-gradient(180deg, rgba(255, 248, 237, 0.72) 0%, rgba(244, 228, 204, 0.44) 42%, rgba(96, 59, 26, 0.12) 100%),
    linear-gradient(115deg, color-mix(in oklab, var(--game-accent, #b98035) 18%, transparent), transparent 48%);
}

body:is([data-theme="sepia"], [data-theme="light"]).play-page .game-panel,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .supporter-panel,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .age-gate__panel,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .badge-tooltip {
  background: color-mix(in oklab, var(--surface) 92%, white 8%);
  border-color: var(--hairline);
  color: var(--text);
  box-shadow: 0 14px 32px rgba(100, 62, 25, 0.10);
}

body:is([data-theme="sepia"], [data-theme="light"]).play-page .game-panel h3 {
  color: color-mix(in oklab, var(--muted) 82%, var(--text) 18%);
}

body:is([data-theme="sepia"], [data-theme="light"]).play-page .panel-achievements-count,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .ach-list li.unlocked,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .download-btn,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .build-channel-btn,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .dimension-btn,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .btn-close,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .age-gate h2,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .age-gate__game {
  color: var(--text) !important;
}

body:is([data-theme="sepia"], [data-theme="light"]).play-page .ach-list li {
  color: color-mix(in oklab, var(--text) 82%, var(--muted) 18%);
}

body:is([data-theme="sepia"], [data-theme="light"]).play-page .ach-list li .ach-dot,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .ach-bar {
  background: color-mix(in oklab, var(--surface-2) 72%, var(--text) 8%);
}

body:is([data-theme="sepia"], [data-theme="light"]).play-page .download-btn,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .build-channel-btn,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .dimension-btn,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .btn-close,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .btn-login {
  background: var(--surface-2);
  border-color: var(--hairline);
}

body:is([data-theme="sepia"], [data-theme="light"]).play-page .build-channel-btn small {
  color: var(--muted);
}

body:is([data-theme="sepia"], [data-theme="light"]).play-page .download-btn:hover,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .download-btn:focus-visible,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .build-channel-btn:hover,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .build-channel-btn:focus-visible,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .dimension-btn:hover,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .dimension-btn:focus-visible,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .btn-close:hover,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .btn-close:focus-visible {
  background: color-mix(in oklab, var(--surface-2) 82%, white 18%);
  border-color: color-mix(in oklab, var(--pink) 54%, var(--hairline) 46%);
}

body:is([data-theme="sepia"], [data-theme="light"]).play-page .dimension-btn.active,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .build-channel-btn.is-active,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .download-btn--primary,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .play-btn {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff !important;
}

body:is([data-theme="sepia"], [data-theme="light"]).play-page .build-channel-btn.is-active small,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .download-btn--primary .dl-label span {
  color: rgba(255, 255, 255, 0.78);
}

body:is([data-theme="sepia"], [data-theme="light"]).play-page .player-access-status,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .card-thumb {
  background-color: var(--surface-2);
  border-color: var(--hairline);
  color: var(--muted);
}

body:is([data-theme="sepia"], [data-theme="light"]).play-page .player-access-status--supporter {
  border-color: rgba(20, 133, 92, 0.42);
  background: rgba(20, 133, 92, 0.12);
  color: #176b4c;
}

body:is([data-theme="sepia"], [data-theme="light"]).play-page .player-access-status--follower {
  border-color: rgba(72, 105, 172, 0.38);
  background: rgba(72, 105, 172, 0.12);
  color: #31568f;
}

body:is([data-theme="sepia"], [data-theme="light"]).play-page .player-access-status--free,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .game-release-date,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .badge-tooltip__release {
  color: #9a5b00;
}

body:is([data-theme="sepia"], [data-theme="light"]).play-page .game-card--release-locked .card-thumb img {
  background: var(--surface-2);
}

body:is([data-theme="sepia"], [data-theme="light"]).play-page .game-card__ribbon {
  border-color: rgba(68, 43, 20, 0.18);
  background: rgba(64, 40, 18, 0.58);
}

body:is([data-theme="sepia"], [data-theme="light"]).play-page .game-card--locked .play-btn {
  background: var(--surface-2);
  border-color: var(--hairline);
  color: var(--muted) !important;
}

body:is([data-theme="sepia"], [data-theme="light"]).play-page .player-frame-wrap {
  border-color: var(--hairline);
  box-shadow: 0 0 0 1px rgba(143, 92, 38, 0.08), 0 18px 42px rgba(88, 52, 18, 0.14);
}

body:is([data-theme="sepia"], [data-theme="light"]).play-page .age-gate {
  background: rgba(88, 53, 20, 0.36);
}

body:is([data-theme="sepia"], [data-theme="light"]).play-page .age-gate p {
  color: var(--muted);
}

body:is([data-theme="sepia"], [data-theme="light"]).play-page .site-footer {
  background: var(--bg);
  border-color: var(--hairline);
}

body:is([data-theme="sepia"], [data-theme="light"]).play-page .footer-links a,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .language-row a,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .panel-login-prompt a,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .badge-tooltip a,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .player-fallback a,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .cta-link {
  color: var(--pink);
}

body:is([data-theme="sepia"], [data-theme="light"]).play-page .success,
body:is([data-theme="sepia"], [data-theme="light"]).play-page .player-supporter-banner {
  color: #176b4c;
}
