/* WinPKR Official — plain CSS (converted from Tailwind/shadcn) */

:root {
  --radius: 0.875rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --radius-2xl: calc(var(--radius) + 8px);

  --background: oklch(0.22 0.09 305);
  --foreground: oklch(0.98 0.01 90);

  --card: oklch(0.28 0.11 305);
  --card-foreground: oklch(0.98 0.01 90);

  --primary: oklch(0.85 0.17 88);
  --primary-foreground: oklch(0.22 0.09 305);

  --secondary: oklch(0.55 0.22 305);
  --secondary-foreground: oklch(0.98 0.01 90);

  --muted: oklch(0.32 0.09 305);
  --muted-foreground: oklch(0.82 0.04 300);

  --border: oklch(0.38 0.11 305);

  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;

  --gradient-gold: linear-gradient(135deg, oklch(0.92 0.16 92), oklch(0.78 0.18 70));
  --gradient-hero: radial-gradient(ellipse at top, oklch(0.42 0.18 305 / 0.85), transparent 60%),
                   radial-gradient(ellipse at bottom right, oklch(0.55 0.22 320 / 0.35), transparent 55%),
                   linear-gradient(180deg, oklch(0.22 0.09 305), oklch(0.16 0.08 305));

  --shadow-glow: 0 20px 60px -20px oklch(0.82 0.16 85 / 0.45);
  --shadow-card: 0 10px 40px -10px oklch(0 0 0 / 0.5);
}

* { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--gradient-hero);
  background-attachment: fixed;
  color: var(--foreground);
  font-family: var(--font-body);
  min-height: 100vh;
}
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.text-gradient-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bg-gradient-gold { background: var(--gradient-gold); }

.container {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: color-mix(in oklch, var(--background) 70%, transparent);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand-mark {
  height: 2.25rem;
  width: 2.25rem;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary-foreground);
}
.brand-logo {
  height: 2.5rem;
  width: 2.5rem;
  border-radius: var(--radius-lg);
  object-fit: cover;
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.nav-links a:hover { color: var(--foreground); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.header-actions .btn-outline {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--foreground);
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  cursor: pointer;
  border: none;
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-xl { padding: 0.75rem 2rem; font-size: 1rem; }
.btn-gold {
  background: var(--gradient-gold);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}
.btn-gold:hover { opacity: 0.95; }
.btn-outline {
  border: 1px solid var(--border);
  color: var(--foreground);
  background: transparent;
  font-weight: 500;
}
.btn-outline:hover { background: var(--card); }
.btn-outline.on-bg { background: var(--background); }

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .header-actions .btn-outline { display: inline-flex; }
}

/* Mobile nav panel */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1.5rem 1.5rem;
  font-size: 0.95rem;
  color: var(--muted-foreground);
}
.mobile-nav.open { display: flex; }
@media (min-width: 768px) {
  .mobile-nav { display: none !important; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
}
.hero .container {
  display: grid;
  gap: 3rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: color-mix(in oklch, var(--card) 60%, transparent);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.pulse-dot {
  height: 0.5rem;
  width: 0.5rem;
  border-radius: 9999px;
  background: var(--secondary);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  margin-top: 1.25rem;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.05;
}
.hero p.lede {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 32rem;
}
.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-login-hint {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.hero-login-hint a {
  color: var(--primary);
  font-weight: 600;
}
.hero-login-hint a:hover { text-decoration: underline; }

.hero-stats {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 28rem;
}
.hero-stats dt {
  font-size: 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
}
.hero-stats dd {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}
.hero-image-wrap { position: relative; }
.hero-image-glow {
  position: absolute;
  inset: -2rem;
  background: var(--gradient-gold);
  opacity: 0.2;
  filter: blur(64px);
  border-radius: 9999px;
}
.hero-image-wrap img {
  position: relative;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .hero .container { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 7rem; padding-bottom: 7rem; }
  .hero h1 { font-size: 3.75rem; }
}

/* Section basics */
section { padding: 5rem 0; }
.section-head { max-width: 42rem; }
.section-head h2 { font-size: 1.875rem; font-weight: 700; }
.section-head p { margin-top: 0.75rem; color: var(--muted-foreground); }
.section-head.centered { max-width: none; text-align: center; margin: 0 auto; }

@media (min-width: 768px) {
  .section-head h2, .section-title { font-size: 2.25rem; }
}

.about-copy {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 56rem;
  color: var(--muted-foreground);
  line-height: 1.7;
}

/* Cards grid */
.card {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}
.card:hover { border-color: color-mix(in oklch, var(--primary) 50%, transparent); }

.icon-badge {
  height: 2.5rem;
  width: 2.5rem;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  color: var(--primary-foreground);
  font-weight: 700;
  margin-bottom: 1rem;
}
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; }
.card p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }

.grid { display: grid; gap: 1.25rem; margin-top: 3rem; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* How it works */
.step-card { position: relative; }
.step-num {
  position: absolute;
  top: -0.75rem;
  left: -0.75rem;
  height: 2rem;
  width: 2rem;
  border-radius: 9999px;
  background: var(--gradient-gold);
  color: var(--primary-foreground);
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* Login */
.login-box {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2.5rem;
}
.login-copy { max-width: 40rem; }
.login-copy h2 { font-size: 1.875rem; font-weight: 700; }
.login-copy > p { margin-top: 0.75rem; color: var(--muted-foreground); }
.login-steps {
  margin: 1.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted-foreground);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.login-steps strong { color: var(--foreground); }
.login-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Providers */
.providers-grid { grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .providers-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.provider-card {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.provider-card:hover { border-color: color-mix(in oklch, var(--primary) 60%, transparent); transform: translateY(-4px); }
.provider-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.provider-media img { height: 100%; width: 100%; object-fit: cover; transition: transform 0.5s ease; }
.provider-card:hover .provider-media img { transform: scale(1.05); }
.provider-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--gradient-gold);
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-foreground);
  box-shadow: var(--shadow-glow);
}
.provider-body { padding: 1.5rem; }
.provider-body h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.provider-body p { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.provider-tags { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  border-radius: 9999px;
  border: 1px solid var(--border);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

/* Games */
.games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.game-card {
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  position: relative;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.game-media {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.game-card:hover .game-media { transform: scale(1.06); }
.game-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, oklch(0.16 0.08 305 / 0.15), oklch(0.12 0.06 305 / 0.85));
  transition: opacity 0.2s ease;
}
.game-card:hover .game-glow { opacity: 0.9; }
.game-content {
  position: absolute;
  inset: 0;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.game-index { font-size: 0.75rem; color: var(--muted-foreground); }
.game-content h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.game-content .game-sub { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.25rem; }

/* FAQ */
.faq-list {
  margin-top: 2.5rem;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--border); padding: 1.5rem; }
.faq-item:last-child { border-bottom: none; }
.faq-item[open] { background: color-mix(in oklch, var(--background) 40%, transparent); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { color: var(--primary); transition: transform 0.2s ease; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item p { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); }

.faq-section .container { max-width: 48rem; }

/* CTA */
.cta-box {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--card);
  padding: 2.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .cta-box { padding: 4rem; } }
.cta-glow { position: absolute; inset: 0; background: var(--gradient-gold); opacity: 0.1; }
.cta-content { position: relative; }
.cta-content h2 { font-size: 1.875rem; font-weight: 700; }
@media (min-width: 768px) { .cta-content h2 { font-size: 3rem; } }
.cta-content p { margin-top: 1rem; color: var(--muted-foreground); max-width: 36rem; margin-left: auto; margin-right: auto; }
.cta-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.cta-login-hint { margin-top: 1.25rem; font-size: 0.875rem; color: var(--muted-foreground); }
.cta-login-hint a { color: var(--primary); font-weight: 600; }
.cta-login-hint a:hover { text-decoration: underline; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); margin-top: 2.5rem; }
.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: center;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.35rem; }
.footer-aliases { font-size: 0.75rem; letter-spacing: 0.02em; opacity: 0.85; }
.footer-contact { margin-top: 0.25rem; font-size: 0.875rem; }
.footer-contact a { color: var(--primary); font-weight: 600; }
.footer-contact a:hover { text-decoration: underline; }
@media (min-width: 768px) {
  .site-footer .container { flex-direction: row; text-align: left; }
}

/* Blog */
.blog-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--card);
  overflow: hidden;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.blog-card:hover {
  border-color: color-mix(in oklch, var(--primary) 45%, var(--border));
  transform: translateY(-2px);
}
.blog-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--muted);
}
.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.blog-card:hover .blog-card-media img { transform: scale(1.04); }
.blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem;
  flex: 1;
}
.blog-meta {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  letter-spacing: 0.02em;
}
.blog-card-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}
.blog-card-body p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.55;
  flex: 1;
}
.blog-read {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}
.blog-section-actions {
  margin-top: 2rem;
  text-align: center;
}

/* Blog pages */
.blog-hero {
  padding: 3.5rem 0 2rem;
}
.blog-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  max-width: 40rem;
}
@media (min-width: 768px) { .blog-hero h1 { font-size: 2.75rem; } }
.blog-hero .lede {
  margin-top: 0.85rem;
  color: var(--muted-foreground);
  max-width: 36rem;
  line-height: 1.6;
}
.blog-list-page { padding-bottom: 4rem; }
.article-wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}
.article-wrap h1 {
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) { .article-wrap h1 { font-size: 2.5rem; } }
.article-cover {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
  aspect-ratio: 16 / 9;
}
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: color-mix(in oklch, var(--foreground) 92%, var(--muted-foreground));
}
.article-body p { margin-bottom: 1.15rem; }
.article-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
}
.article-body ul, .article-body ol {
  margin: 0 0 1.15rem;
  padding-left: 1.25rem;
}
.article-body li { margin-bottom: 0.4rem; }
.article-body a { color: var(--primary); font-weight: 600; }
.article-body a:hover { text-decoration: underline; }
.article-cta {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border);
  background: var(--card);
  text-align: center;
}
.article-cta p { margin-bottom: 1rem; color: var(--muted-foreground); }
.article-nav {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}
.article-nav a { color: var(--primary); font-weight: 600; font-size: 0.875rem; }
.article-nav a:hover { text-decoration: underline; }
