/* 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;
}

.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 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.08em;
}

.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;
  }
}

.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-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;
}

.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 {
  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--chimera-haven { background-image: url('/images/games/chimera-haven.webp'); }
.card-thumb--elyra-eden-of-sins { background-image: url('/images/games/elyra-eden-of-sins.webp'); }
.card-thumb--vorenkas-lewd-tales { background-image: url('/images/games/vorenkas-lewd-tales.webp'); }
.card-thumb--full-exposure { background-image: url('/images/games/full-exposure.webp'); }
.card-thumb--massage-parlor { background-image: url('/images/games/massage-parlor.webp'); }
.card-thumb--love-and-life { background-image: url('/images/games/love-and-life.webp'); }
.card-thumb--endless-hot-summers { background-image: url('/images/games/endless-hot-summers.webp'); }

.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-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%;
  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: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 10;
}
.badge-tooltip a {
  color: #60a5fa;
  text-decoration: underline;
  font-weight: 700;
}
.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);
}
/* 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 {
  text-align: center;
  padding: 60px 20px;
  color: #bbc0cc;
}

.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;
  }
}
