:root {
  --ps-blue: #0070cc;
  --ps-cyan: #1eaedb;
  --ps-link: #1883fd;
  --ps-dark-link: #53b1ff;
  --commerce: #d53b00;
  --commerce-active: #aa2f00;
  --bg-black: #000000;
  --bg-dark: #121314;
  --bg-white: #ffffff;
  --bg-mist: #f5f7fa;
  --divider: #f3f3f3;
  --text-main: #1f1f1f;
  --text-body: #6b6b6b;
  --text-muted: #cccccc;
  --shadow-1: 0 5px 9px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 5px 9px rgba(0, 0, 0, 0.08);
  --shadow-3: 0 5px 9px rgba(0, 0, 0, 0.16);
  --shadow-hero: 0 5px 9px rgba(0, 0, 0, 0.8);
  --radius-input: 3px;
  --radius-xs: 6px;
  --radius-media: 12px;
  --radius-card: 24px;
  --radius-pill: 999px;
  --container: min(1280px, calc(100vw - 32px));
  --transition: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", Arial, Helvetica, sans-serif;
  color: var(--bg-white);
  background: var(--bg-black);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: var(--container);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, #1a1a1a 0%, #000000 100%);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-bar {
  width: var(--container);
  margin: 0 auto;
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--ps-blue);
  box-shadow: var(--shadow-2);
}

.site-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

.site-nav a {
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ps-link);
  border-color: var(--ps-blue);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
}

.primary-button,
.secondary-button,
.ghost-button,
.commerce-button,
.mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: var(--radius-pill);
  transition: transform var(--transition), background var(--transition), border var(--transition), box-shadow var(--transition), opacity var(--transition), color var(--transition);
  cursor: pointer;
}

.primary-button,
.secondary-button,
.commerce-button {
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  border: 2px solid transparent;
}

.primary-button {
  background: var(--ps-blue);
  color: var(--bg-white);
}

.secondary-button {
  background: var(--bg-white);
  color: var(--ps-blue);
  border-color: #000000;
}

.ghost-button {
  padding: 10px 18px;
  border: 1px solid #dedede;
  background: transparent;
  color: inherit;
}

.commerce-button {
  background: var(--commerce);
  color: var(--bg-white);
  font-weight: 700;
  letter-spacing: 0.45px;
}

.mini-button {
  padding: 8px 16px;
  background: var(--ps-blue);
  color: var(--bg-white);
  border: 2px solid transparent;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.324px;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.commerce-button:hover,
.mini-button:hover,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.ghost-button:focus-visible,
.commerce-button:focus-visible,
.mini-button:focus-visible {
  background: var(--ps-cyan);
  color: var(--bg-white);
  border-color: var(--bg-white);
  box-shadow: 0 0 0 2px var(--ps-blue);
  transform: scale(1.2);
  outline: none;
}

.commerce-button:active {
  background: var(--commerce-active);
}

.full-width {
  width: 100%;
}

.hero-section,
.page-shell.dark-shell {
  position: relative;
  background: linear-gradient(180deg, var(--bg-dark), var(--bg-black));
}

.page-shell.light-shell,
.surface-light {
  background-color: var(--bg-white);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='104' viewBox='0 0 60 104'%3E%3Cg fill='none' stroke='%23f1f3f6' stroke-width='1.5'%3E%3Cpath d='M30 0l30 17.3v34.7L30 69.3L0 52V17.3L30 0zm0 0v69.3M0 17.3l60 34.7M0 52l60-17.3M30 34.7L0 17.3m30 17.4l30-17.4m-30 17.4L0 52m30-17.3l30 17.3'/%3E%3Cpath d='M30 104V69.3M0 86.7l30-17.4M60 86.7L30 69.3'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--bg-white) 0%, #dddddd 100%);
  background-size: 60px 104px, 00% 100%;
  color: var(--text-main);
}

.surface-dark {
  background-color: var(--bg-dark);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='50' viewBox='0 0 100 50'%3E%3Cdefs%3E%3Cg id='c'%3E%3Cpath d='M0 50c0-27.6 22.4-50 50-50s50 22.4 50 50'/%3E%3Cpath d='M10 50c0-22.1 17.9-40 40-40s40 17.9 40 40'/%3E%3Cpath d='M20 50c0-16.6 13.4-30 30-30s30 13.4 30 30'/%3E%3Cpath d='M30 50c0-11 9-20 20-20s20 9 20 20'/%3E%3C/g%3E%3C/defs%3E%3Cg fill='none' stroke='rgba(15,15,15,1)' stroke-width='2.5'%3E%3Cuse href='%23c' x='0' y='0'/%3E%3Cuse href='%23c' x='-50' y='-25'/%3E%3Cuse href='%23c' x='50' y='-25'/%3E%3Cuse href='%23c' x='-50' y='25'/%3E%3Cuse href='%23c' x='50' y='25'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-black) 100%);
  background-size: 100px 50px, 100% 100%;
  color: var(--bg-white);
}

.hero-section,
.surface-light,
.surface-dark,
.page-shell {
  padding: 88px 0;
}

.inner-surface {
  padding: 88px 0;
}

.cinematic-hero {
  overflow: hidden;
  isolation: isolate;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.78)),
    radial-gradient(circle at 18% 20%, rgba(30, 174, 219, 0.14), transparent 28%),
    radial-gradient(circle at 82% 22%, rgba(0, 112, 204, 0.18), transparent 26%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.04), transparent 42%);
  pointer-events: none;
  z-index: 1;
}

.hero-grid,
.page-hero,
.topup-hero,
.member-hero,
.community-hero,
.auth-layout,
.split-highlight {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.eyebrow,
.card-kicker {
  margin: 0 0 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

.surface-light .eyebrow,
.surface-light .card-kicker,
.light-shell .eyebrow,
.light-shell .card-kicker {
  color: var(--text-body);
}

h1,
h2 {
  margin: 0;
  font-weight: 300;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  letter-spacing: -0.1px;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.75rem);
}

h3,
h4 {
  margin: 0;
}

p {
  margin: 0;
}

.hero-description,
.section-text {
  margin-top: 20px;
  max-width: 720px;
  font-size: 1.03rem;
}

.hero-description,
.section-heading.inverse .section-text,
.page-shell.dark-shell .section-text {
  color: rgba(255, 255, 255, 0.78);
}

.surface-light .section-text,
.light-shell .section-text {
  color: var(--text-body);
}

.hero-actions,
.action-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.hero-metrics,
.portal-grid,
.feature-grid,
.dashboard-grid,
.management-grid,
.timeline-grid,
.topup-grid,
.promo-grid,
.dual-layout,
.forum-layout,
.footer-grid,
.contact-grid,
.event-grid {
  display: grid;
  gap: 24px;
}

.hero-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 36px;
}

.hero-metrics article,
.community-stats article {
  padding: 20px;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-1);
}

.hero-metrics strong,
.community-stats strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.5rem;
}

.hero-card,
.hero-side-panel,
.dashboard-card,
.auth-card,
.feature-panel,
.timeline-card,
.announcement-item,
.promo-banner,
.community-highlight {
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-1);
}

.floating-card {
  animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.hero-card,
.hero-side-panel {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  color: var(--bg-white);
  box-shadow: var(--shadow-hero);
}

.hero-card-media {
  min-height: 280px;
  position: relative;
  padding: 24px;
}

.media-starfield {
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.22), transparent 12%),
    radial-gradient(circle at 78% 25%, rgba(30, 174, 219, 0.26), transparent 24%),
    linear-gradient(145deg, rgba(0, 112, 204, 0.68), rgba(0, 0, 0, 0.18)),
    linear-gradient(180deg, #24324f, #090c12);
}

.media-glow,
.media-orb {
  position: absolute;
  border-radius: 24px;
}

.media-glow {
  inset: auto 24px 24px auto;
  width: 180px;
  height: 180px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.media-orb {
  inset: 58px auto auto 38px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85), rgba(30, 174, 219, 0.15) 65%, transparent 72%);
  filter: blur(2px);
}

.hero-card-body,
.hero-side-panel {
  padding: 28px;
}

.hero-card-app {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
}

.hero-card-app-icon {
  width: 84px;
  aspect-ratio: 1;
  border-radius: 22px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.platform-pill,
.announcement-tag,
.filter-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 10px 16px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 500;
}

.platform-pill,
.announcement-tag {
  background: var(--bg-white);
  color: var(--bg-black);
}

.platform-pill.light {
  background: rgba(255, 255, 255, 0.12);
  color: var(--bg-white);
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
  color: var(--text-main);
}

.section-heading.inverse {
  color: var(--bg-white);
}

.portal-grid,
.feature-grid.three-up {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-card,
.feature-panel,
.dashboard-card,
.promo-banner,
.announcement-item,
.community-highlight,
.forum-sidebar {
  padding: 28px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-main);
}

.portal-card {
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.portal-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-3);
}

.compact-grid,
.game-grid.showcase-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.game-grid {
  display: grid;
  gap: 24px;
}

.featured-strip-shell {
  display: block;
}

#featured-games {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

#featured-games:active {
  cursor: grabbing;
}

#featured-games::-webkit-scrollbar {
  height: 10px;
}

#featured-games::-webkit-scrollbar-track {
  background: transparent;
}

#featured-games::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

#featured-games .game-card {
  flex: 0 0 min(320px, 28vw);
  min-width: 280px;
  scroll-snap-align: start;
}

.game-card {
  border-radius: 19px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-2);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.game-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-3);
}

.game-cover {
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center;
}

.animated-cover {
  animation: coverShift 12s ease-in-out infinite alternate;
}

@keyframes coverShift {
  0% {
    transform: scale(1);
    filter: saturate(1);
  }

  100% {
    transform: scale(1.06);
    filter: saturate(1.12);
  }
}

.cover-1 {
  background-image: linear-gradient(180deg, rgba(9, 13, 25, 0.2), rgba(9, 13, 25, 0.9)), linear-gradient(135deg, #4f7cff, #0d1320);
}

.cover-2 {
  background-image: linear-gradient(180deg, rgba(9, 13, 25, 0.2), rgba(9, 13, 25, 0.9)), linear-gradient(135deg, #5dc0a6, #091314);
}

.cover-3 {
  background-image: linear-gradient(180deg, rgba(9, 13, 25, 0.2), rgba(9, 13, 25, 0.9)), linear-gradient(135deg, #ff6b57, #150b17);
}

.cover-4 {
  background-image: linear-gradient(180deg, rgba(9, 13, 25, 0.2), rgba(9, 13, 25, 0.9)), linear-gradient(135deg, #7a73ff, #090d12);
}

.cover-5 {
  background-image: linear-gradient(180deg, rgba(9, 13, 25, 0.2), rgba(9, 13, 25, 0.9)), linear-gradient(135deg, #ffc857, #1a1306);
}

.cover-6 {
  background-image: linear-gradient(180deg, rgba(9, 13, 25, 0.2), rgba(9, 13, 25, 0.9)), linear-gradient(135deg, #ff8ecf, #28101d);
}

.game-body {
  padding: 22px;
}

.game-body p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.74);
}

.game-body h3 a {
  transition: color var(--transition);
}

.game-body h3 a:hover {
  color: var(--ps-cyan);
}

.game-footer,
.post-meta,
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.game-footer {
  margin-top: 22px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
}

.promo-grid {
  grid-template-columns: 1.35fr 0.65fr 0.65fr;
}

.promo-banner {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.promo-large {
  background: linear-gradient(135deg, rgba(0, 112, 204, 0.92), rgba(5, 14, 28, 0.92));
  color: var(--bg-white);
}

.promo-side.alt {
  background: linear-gradient(135deg, rgba(213, 59, 0, 0.12), rgba(255, 255, 255, 0.96));
}

.timeline-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline-card {
  padding: 28px;
  background: rgba(255, 255, 255, 0.08);
}

.timeline-date {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ps-cyan);
}

.dual-layout {
  grid-template-columns: 1.3fr 0.7fr;
  align-items: start;
}

.announcement-list,
.forum-main,
.forum-posts,
.profile-list,
.device-list,
.order-summary,
.toggle-list {
  display: grid;
  gap: 14px;
}

.announcement-item p,
.feature-panel p,
.dashboard-card p,
.promo-banner p,
.community-highlight ul,
.auth-card p,
.forum-sidebar a,
.hero-side-panel p {
  color: var(--text-body);
}

.community-highlight ul {
  margin: 20px 0 28px;
  padding-left: 18px;
}

.cta-band {
  padding-top: 64px;
  padding-bottom: 96px;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-hero);
}

.site-footer {
  background: linear-gradient(180deg, #111111 0%, #000000 100%);
  color: var(--bg-white);
  padding: 56px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
}

.site-footer h4 {
  margin: 0 0 16px;
  font-size: 1rem;
}

.site-footer a,
.site-footer p {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.84);
}

.auth-card,
.member-badge-panel,
.wallet-panel,
.community-stats,
.hero-side-panel.light-panel {
  background: rgba(255, 255, 255, 0.08);
  color: var(--bg-white);
}

.light-shell .member-badge-panel,
.light-shell .community-stats,
.hero-side-panel.light-panel {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-main);
  box-shadow: var(--shadow-1);
}

.auth-card,
.composer-card {
  display: grid;
  gap: 16px;
}

.auth-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.auth-benefits article {
  padding: 20px;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.06);
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-input);
  border: 1px solid var(--text-muted);
  background: var(--bg-white);
  color: var(--text-main);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--ps-blue);
}

.auth-card label,
.composer-card label,
.contact-grid label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}

.form-hint {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.form-hint-dark,
.light-shell .form-hint {
  color: var(--text-body);
}

.dashboard-grid,
.management-grid,
.topup-grid,
.partner-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card h2,
.pricing-card strong {
  font-size: 2rem;
  font-weight: 300;
  color: var(--text-main);
}

.profile-list,
.device-list,
.order-summary {
  padding: 0;
  margin: 0;
  list-style: none;
}

.profile-list div,
.device-list li,
.order-summary li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.forum-layout {
  grid-template-columns: 280px 1fr;
  align-items: start;
}

.forum-sidebar {
  position: sticky;
  top: 108px;
}

.forum-sidebar a {
  display: block;
  padding: 12px 0;
}

.page-hero,
.member-hero,
.topup-hero,
.community-hero {
  margin-bottom: 28px;
}

.community-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 28px;
}

.topup-grid {
  margin-bottom: 24px;
}

.pricing-card {
  display: grid;
  gap: 14px;
}

.pricing-card.featured {
  border: 1px solid rgba(0, 112, 204, 0.18);
  box-shadow: var(--shadow-3);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.08);
  color: var(--bg-white);
}

.filter-pill.active {
  background: var(--bg-white);
  color: var(--bg-black);
}

.contact-card {
  margin-top: 24px;
}

.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.span-2 {
  grid-column: span 2;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.app-detail-shell {
  position: relative;
  padding-top: 620px;
  background: linear-gradient(180deg, #23262d, #050608 68%, #000000);
  color: var(--text-main);
}

.app-detail-shell .reveal,
.app-detail-shell .reveal.is-visible {
  transform: none;
}

.app-detail-shell .reveal {
  transition: opacity 500ms ease;
}

.app-detail-shell .reveal.is-visible {
  opacity: 1;
}

.app-banner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  min-height: 620px;
  background: linear-gradient(135deg, #24324f, #090c12);
  overflow: hidden;
  z-index: 0;
}

.app-banner-image {
  position: absolute;
  inset: 0;
  background-image: var(--app-banner-image);
  background-size: cover;
  background-position: center center;
  transform: scale(1.02);
}

.app-banner-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 22%, rgba(255, 255, 255, 0.18), transparent 18%),
    radial-gradient(circle at 82% 24%, rgba(30, 174, 219, 0.16), transparent 22%),
    linear-gradient(180deg, rgba(5, 9, 18, 0.18), rgba(5, 9, 18, 0.78)),
    linear-gradient(90deg, rgba(5, 9, 18, 0.82), rgba(5, 9, 18, 0.2) 56%, rgba(5, 9, 18, 0.68));
}

.app-banner-content {
  position: relative;
  z-index: 1;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  padding-top: 64px;
  padding-bottom: 64px;
}

.app-detail-shell .section-text {
  color: rgba(255, 255, 255, 0.78);
}

.app-hero {
  display: grid;
  grid-template-columns: 200px minmax(0, 720px);
  gap: 32px;
  align-items: center;
  width: 100%;
  margin-bottom: 0;
  padding: 0;
  color: var(--bg-white);
  position: relative;
}

.app-icon {
  aspect-ratio: 1;
  width: 100%;
  max-width: 200px;
  border-radius: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.42);
  background-size: cover;
  background-position: center;
}

.app-summary {
  max-width: 720px;
}

.hero-banner-pill {
  margin-bottom: 18px;
}

.app-summary .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.app-summary h1 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.app-subtitle {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.06rem;
}

.app-meta-row,
.store-button-row,
.detail-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.app-meta-row {
  margin-top: 18px;
}

.app-meta-card {
  min-width: 130px;
  padding: 14px 16px;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.app-meta-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--bg-white);
}

.app-meta-card span {
  color: rgba(255, 255, 255, 0.72);
}

.store-button-row {
  margin-top: 24px;
}

.store-button {
  padding: 12px 20px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--ps-blue);
  color: var(--bg-white);
  font-weight: 600;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
  transition: transform var(--transition), background var(--transition), border var(--transition), box-shadow var(--transition);
}

.store-button:hover {
  background: var(--ps-cyan);
  border-color: var(--bg-white);
  box-shadow: 0 0 0 2px var(--ps-blue);
  transform: scale(1.12);
}

.store-button.outline {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
}

.detail-surface {
  margin-top: 0;
  padding: 32px 0 88px;
  position: relative;
  z-index: 2;
}

.detail-surface>.detail-panel:last-child {
  margin-top: 40px;
}

.detail-panel {
  padding: 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-1);
}

.detail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.detail-eyebrow {
  color: var(--text-body);
}

.carousel-controls {
  display: flex;
  gap: 10px;
}

.carousel-button {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: #eef4fb;
  color: var(--ps-blue);
  font-size: 1.4rem;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}

.carousel-button:hover {
  background: var(--ps-cyan);
  color: var(--bg-white);
  box-shadow: 0 0 0 2px var(--ps-blue);
  transform: scale(1.12);
}

.carousel-button:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.shots-viewport {
  overflow: hidden;
  margin-top: 20px;
}

.screenshot-strip {
  display: flex;
  gap: 18px;
  transition: transform 320ms ease;
  will-change: transform;
}

.shot-card {
  flex: 0 0 calc((100% - 36px) / 3);
  aspect-ratio: 16 / 10;
  padding: 0;
  border: none;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-2);
  background-size: cover;
  background-position: center;
  cursor: zoom-in;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.shot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3);
}

.shot-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.2));
}

.shot-1 {
  background: linear-gradient(135deg, #466dff, #131d30);
}

.shot-2 {
  background: linear-gradient(135deg, #11a7b5, #0a1018);
}

.shot-3 {
  background: linear-gradient(135deg, #ff8266, #251017);
}

.shot-4 {
  background: linear-gradient(135deg, #8f78ff, #15111e);
}

.shot-5 {
  background: linear-gradient(135deg, #ffbf4d, #24170c);
}

.shot-6 {
  background: linear-gradient(135deg, #ff8fc3, #26131c);
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  margin-top: 24px;
}

.detail-copy,
.detail-sidebar {
  padding: 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-1);
}

.detail-copy p+p {
  margin-top: 16px;
}

.detail-tag-row {
  margin-top: 22px;
}

.detail-tag {
  padding: 10px 16px;
  border-radius: 999px;
  background: #eef4fb;
  color: var(--ps-blue);
  font-size: 0.9rem;
  font-weight: 500;
}

.info-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--divider);
}

.app-section-title {
  margin-bottom: 16px;
  color: var(--text-main);
}

.more-games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.mini-game-link {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-1);
  color: var(--text-main);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.mini-game-cover {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-2);
}

.mini-game-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-3);
}

.mini-game-link strong,
.mini-game-link p {
  margin: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3, 8, 16, 0.86);
  backdrop-filter: blur(12px);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: var(--bg-white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-stage {
  width: min(92vw, 1400px);
  height: min(82vh, 920px);
  display: grid;
  place-items: center;
  overflow: visible;
}

.lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.36);
}

.lightbox-stage.is-portrait img,
.lightbox-stage img.is-portrait {
  max-width: none;
  max-height: none;
  transform: rotate(90deg);
  transform-origin: center center;
}

body.is-lightbox-open {
  overflow: hidden;
}

@media (max-width: 1080px) {

  .hero-grid,
  .page-hero,
  .topup-hero,
  .member-hero,
  .community-hero,
  .auth-layout,
  .split-highlight,
  .promo-grid,
  .dual-layout,
  .footer-grid,
  .dashboard-grid,
  .management-grid,
  .topup-grid,
  .timeline-grid,
  .portal-grid,
  .feature-grid.three-up,
  .partner-stats,
  .game-grid.showcase-grid {
    grid-template-columns: 1fr 1fr;
  }

  .compact-grid,
  .forum-layout,
  .detail-grid,
  .app-hero {
    grid-template-columns: 1fr;
  }

  .app-banner {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
  }

  .app-banner,
  .app-banner-content {
    min-height: auto;
  }

  .app-detail-shell {
    padding-top: 0;
  }

  .app-icon {
    max-width: 180px;
  }

  .forum-sidebar {
    position: static;
  }

  .shot-card {
    flex-basis: calc((100% - 18px) / 2);
  }
}

@media (max-width: 860px) {
  .brand-bar {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 36px;
    background: transparent;
    color: var(--bg-white);
    padding: 10px 16px;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 0 8px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 8px;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {

  .hero-grid,
  .page-hero,
  .topup-hero,
  .member-hero,
  .community-hero,
  .auth-layout,
  .split-highlight,
  .promo-grid,
  .dual-layout,
  .footer-grid,
  .dashboard-grid,
  .management-grid,
  .topup-grid,
  .timeline-grid,
  .portal-grid,
  .feature-grid.three-up,
  .partner-stats,
  .game-grid.showcase-grid,
  .hero-metrics,
  .community-stats,
  .contact-grid,
  .auth-benefits,
  .screenshot-strip,
  .more-games-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .detail-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-banner {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
  }

  .app-banner,
  .app-banner-content {
    min-height: auto;
  }

  .app-banner-content {
    align-items: flex-start;
    padding-top: 12px;
    padding-bottom: 20px;
  }

  .app-detail-shell {
    padding: 0 0 56px;
  }

  .app-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: flex-start;
    padding: 24px 0;
  }

  .app-icon {
    max-width: 140px;
    border-radius: 32px;
  }

  .app-summary h1 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .app-subtitle {
    font-size: 0.98rem;
  }

  .app-meta-row,
  .store-button-row {
    gap: 10px;
  }

  .app-meta-card {
    min-width: 100%;
  }

  .store-button {
    width: 100%;
  }

  .detail-surface {
    padding-top: 24px;
  }

  .detail-panel,
  .detail-copy,
  .detail-sidebar {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .detail-grid {
    gap: 18px;
  }

  .detail-surface>.detail-panel:last-child {
    margin-top: 24px;
  }

  .info-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox-close {
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
  }

  .shot-card {
    flex-basis: 100%;
  }

  .hero-section,
  .surface-light,
  .surface-dark,
  .page-shell,
  .inner-surface {
    padding: 56px 0;
  }

  .page-shell.app-detail-shell {
    padding: 0 0 56px;
  }

  .brand-bar,
  .container {
    width: min(100vw - 24px, 1280px);
  }
}

/* ─── Auth Tabs (login.html) ─────────────────────────────────────────────── */
.auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 1.5em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 0;
}

.auth-tab {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5em 1em 0.75em;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.18s, border-color 0.18s;
}

.auth-tab.is-active {
  color: #fff;
  border-bottom-color: #0070cc;
}

.auth-tab:hover:not(.is-active) {
  color: rgba(255, 255, 255, 0.8);
}

/* ─── Attachment Slots (partners.html) ──────────────────────────────────── */
.attachment-section {
  margin: 1.25em 0 0.5em;
}

.attachment-label {
  font-size: 0.9rem;
  margin-bottom: 0.6em;
  color: rgba(255, 255, 255, 0.85);
}

.attachment-hint {
  font-size: 0.78rem;
  opacity: 0.55;
  margin-left: 0.4em;
}

.attachment-slots {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.attachment-slot {
  position: relative;
  width: 108px;
  height: 108px;
  border: 1.5px dashed rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.18s;
  flex-shrink: 0;
}

.attachment-slot:hover {
  border-color: #0070cc;
}

.slot-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 6px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
  pointer-events: none;
}

.slot-icon {
  font-size: 1.6rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.3);
}

.slot-preview {
  position: absolute;
  inset: 0;
}

.slot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slot-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: none;
  color: #fff;
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ─── Ticket Result ──────────────────────────────────────────────────────── */
.ticket-result {
  margin-top: 1.25em;
  padding: 1em 1.25em;
  border-radius: 8px;
  background: rgba(0, 112, 204, 0.12);
  border: 1px solid rgba(0, 112, 204, 0.35);
}

.ticket-result-label {
  font-weight: 600;
  margin-bottom: 0.4em;
  color: #1eaedb;
}

.ticket-result-id {
  font-size: 0.95rem;
  margin-bottom: 0.4em;
}

.ticket-result-id strong {
  font-family: monospace;
  letter-spacing: 0.04em;
  color: #fff;
}

.ticket-result-hint {
  font-size: 0.82rem;
  opacity: 0.6;
}

/* ─── Header Username (logged-in state) ──────────────────────────────────── */
.header-username {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Ticket List (member page) ──────────────────────────────────────────── */
.ticket-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.ticket-item {
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ticket-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.ticket-status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.ticket-status-badge.is-open {
  background: rgba(0, 112, 204, 0.25);
  color: #53b1ff;
}

.ticket-status-badge.is-in_progress {
  background: rgba(220, 160, 0, 0.22);
  color: #f5c842;
}

.ticket-status-badge.is-resolved {
  background: rgba(0, 180, 80, 0.22);
  color: #4cd97b;
}

.ticket-status-badge.is-closed {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
}

.ticket-item-subject {
  font-weight: 500;
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.ticket-item-id {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 4px;
}

.ticket-item-id code {
  font-family: monospace;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
}

.ticket-item-date {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}

.no-tickets {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
  margin: 8px 0;
}