/* ===========================================================
 * okayplay.cyou - theme stylesheet
 * Palette: #E6E6FA | #F8F8FF | #E9967A | #006400 | #0D1117
 * Mobile-first, max-width 430px. All classes use v220- prefix.
 * =========================================================== */

:root {
  --v220-bg: #0D1117;
  --v220-bg-soft: #141B26;
  --v220-bg-card: #1B2330;
  --v220-primary: #006400;
  --v220-primary-bright: #1E8C2E;
  --v220-accent: #E9967A;
  --v220-accent-soft: #F2B89E;
  --v220-text: #F8F8FF;
  --v220-text-muted: #E6E6FA;
  --v220-text-dim: #9AA6B8;
  --v220-border: rgba(230, 230, 250, 0.12);
  --v220-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --v220-radius: 14px;
  --v220-radius-sm: 9px;
  --v220-header-h: 58px;
  --v220-bottom-nav-h: 62px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: var(--v220-bg);
  color: var(--v220-text);
  line-height: 1.5rem;
  font-size: 1.4rem;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  overflow-x: hidden;
  position: relative;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--v220-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--v220-accent-soft); }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--v220-text);
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }

ul { padding-left: 1.2em; margin: 0 0 1em; }

/* ===========================================================
 * Layout primitives
 * =========================================================== */

.v220-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 14px;
}

.v220-container {
  width: 100%;
  padding: 18px 14px;
}

.v220-section {
  padding: 22px 14px 8px;
}

.v220-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.v220-section-title {
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.v220-section-title i,
.v220-section-title span.mi {
  color: var(--v220-accent);
  font-size: 20px;
}

.v220-section-more {
  font-size: 1.2rem;
  color: var(--v220-text-muted);
}

/* ===========================================================
 * Header / Top Navigation
 * =========================================================== */

.v220-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0.96), rgba(13, 17, 23, 0.88));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--v220-border);
  max-width: 430px;
  margin: 0 auto;
}

.v220-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--v220-header-h);
  padding: 0 12px;
  gap: 8px;
}

.v220-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.v220-brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 0 2px rgba(233, 150, 122, 0.4);
}

.v220-brand-name {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--v220-text);
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.v220-brand-name b { color: var(--v220-accent); }

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

.v220-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  min-height: 36px;
  text-decoration: none;
  font-family: inherit;
}

.v220-btn:active { transform: scale(0.96); }

.v220-btn-primary {
  background: linear-gradient(135deg, var(--v220-primary-bright), var(--v220-primary));
  color: var(--v220-text);
  box-shadow: 0 6px 16px rgba(0, 100, 0, 0.45);
}

.v220-btn-accent {
  background: linear-gradient(135deg, var(--v220-accent), #C66B50);
  color: #1A0E08;
  box-shadow: 0 6px 16px rgba(233, 150, 122, 0.4);
}

.v220-btn-ghost {
  background: rgba(248, 248, 255, 0.08);
  color: var(--v220-text);
  border: 1px solid var(--v220-border);
}

.v220-btn-block {
  width: 100%;
  padding: 12px 16px;
  font-size: 1.4rem;
}

.v220-btn-sm {
  padding: 6px 12px;
  font-size: 1.2rem;
  min-height: 30px;
}

.v220-burger {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(248, 248, 255, 0.06);
  border: 1px solid var(--v220-border);
  color: var(--v220-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
}

.v220-burger-active { color: var(--v220-accent); }

/* ===========================================================
 * Mobile slide-in menu
 * =========================================================== */

.v220-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9998;
}

.v220-backdrop-on {
  opacity: 1;
  pointer-events: auto;
}

.v220-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 82%;
  max-width: 320px;
  height: 100%;
  background: var(--v220-bg-soft);
  z-index: 9999;
  transform: translateX(105%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 20px 18px;
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.v220-menu-open { transform: translateX(0); }

.v220-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.v220-menu-head h3 {
  font-size: 1.6rem;
  color: var(--v220-accent);
  margin: 0;
}

.v220-menu-close {
  background: transparent;
  border: none;
  color: var(--v220-text);
  font-size: 22px;
  cursor: pointer;
}

.v220-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.v220-menu-list li {
  border-bottom: 1px solid var(--v220-border);
}

.v220-menu-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 8px;
  color: var(--v220-text);
  font-size: 1.4rem;
  font-weight: 600;
}

.v220-menu-list a i,
.v220-menu-list a span.mi {
  color: var(--v220-accent);
  font-size: 20px;
  width: 22px;
  text-align: center;
}

.v220-menu-cta {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===========================================================
 * Hero / Carousel
 * =========================================================== */

.v220-hero {
  margin-top: var(--v220-header-h);
  position: relative;
  overflow: hidden;
}

.v220-hero-viewport {
  overflow: hidden;
  border-radius: 0 0 18px 18px;
}

.v220-hero-track {
  display: flex;
  transition: transform 0.5s ease;
}

.v220-hero-slide {
  min-width: 100%;
  position: relative;
}

.v220-hero-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.v220-hero-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  right: 14px;
  background: linear-gradient(180deg, rgba(13, 17, 23, 0), rgba(13, 17, 23, 0.85));
  padding: 24px 14px 12px;
  border-radius: 12px;
}

.v220-hero-caption h2 {
  font-size: 1.9rem;
  margin: 0 0 6px;
  color: var(--v220-text);
}

.v220-hero-caption p {
  font-size: 1.2rem;
  margin: 0 0 10px;
  color: var(--v220-text-muted);
}

.v220-hero-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 3;
}

.v220-hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(248, 248, 255, 0.4);
  border: none;
  cursor: pointer;
}

.v220-dot-active {
  background: var(--v220-accent);
  width: 18px;
  border-radius: 4px;
}

/* ===========================================================
 * Game grid / cards
 * =========================================================== */

.v220-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.v220-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.v220-card {
  background: var(--v220-bg-card);
  border: 1px solid var(--v220-border);
  border-radius: var(--v220-radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: block;
  color: var(--v220-text);
}

.v220-card:active {
  transform: scale(0.97);
  box-shadow: var(--v220-shadow);
}

.v220-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #0A0E13;
}

.v220-card-name {
  padding: 6px 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--v220-text-muted);
}

.v220-card-badge {
  display: inline-block;
  background: var(--v220-accent);
  color: #1A0E08;
  font-size: 1rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.v220-card-hot .v220-card-img { box-shadow: inset 0 0 0 2px rgba(233, 150, 122, 0.55); }

/* ===========================================================
 * Category pills
 * =========================================================== */

.v220-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 12px;
  -webkit-overflow-scrolling: touch;
}

.v220-pills::-webkit-scrollbar { display: none; }

.v220-pill {
  flex: 0 0 auto;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(248, 248, 255, 0.06);
  border: 1px solid var(--v220-border);
  color: var(--v220-text-muted);
  font-size: 1.2rem;
  font-weight: 600;
  white-space: nowrap;
}

.v220-pill a { color: inherit; }

/* ===========================================================
 * Info / promo / feature blocks
 * =========================================================== */

.v220-panel {
  background: var(--v220-bg-card);
  border: 1px solid var(--v220-border);
  border-radius: var(--v220-radius);
  padding: 16px;
  margin-bottom: 14px;
}

.v220-panel-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.v220-panel-title i,
.v220-panel-title span.mi { color: var(--v220-accent); }

.v220-text-muted { color: var(--v220-text-muted); }

.v220-text-dim { color: var(--v220-text-dim); font-size: 1.25rem; }

.v220-lead {
  font-size: 1.4rem;
  color: var(--v220-text-muted);
  line-height: 1.6;
}

.v220-promo-link {
  color: var(--v220-accent);
  font-weight: 700;
  text-decoration: underline;
}

.v220-inline-link {
  color: var(--v220-accent);
  font-weight: 600;
}

/* Feature list */
.v220-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.v220-feature-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(248, 248, 255, 0.04);
  padding: 10px 12px;
  border-radius: var(--v220-radius-sm);
  border-left: 3px solid var(--v220-primary-bright);
}

.v220-feature-list i,
.v220-feature-list span.mi {
  color: var(--v220-accent);
  font-size: 20px;
  margin-top: 2px;
}

.v220-feature-list b { color: var(--v220-text); }

/* Steps */
.v220-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.v220-steps li {
  counter-increment: step;
  padding: 10px 12px 10px 44px;
  position: relative;
  background: rgba(248, 248, 255, 0.04);
  border-radius: var(--v220-radius-sm);
  border: 1px solid var(--v220-border);
}

.v220-steps li::before {
  content: counter(step);
  position: absolute;
  left: 10px;
  top: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--v220-accent);
  color: #1A0E08;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FAQ */
.v220-faq { display: grid; gap: 8px; }

.v220-faq-item {
  background: var(--v220-bg-card);
  border: 1px solid var(--v220-border);
  border-radius: var(--v220-radius-sm);
  padding: 10px 12px;
}

.v220-faq-q {
  font-weight: 700;
  color: var(--v220-text);
  margin-bottom: 4px;
  font-size: 1.35rem;
}

.v220-faq-a {
  color: var(--v220-text-muted);
  font-size: 1.25rem;
  margin: 0;
}

/* RTP table */
.v220-rtp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.2rem;
}

.v220-rtp-table th,
.v220-rtp-table td {
  padding: 8px 6px;
  text-align: left;
  border-bottom: 1px solid var(--v220-border);
}

.v220-rtp-table th { color: var(--v220-accent); }

.v220-rtp-table td b { color: var(--v220-primary-bright); }

/* Testimonials */
.v220-testi-grid {
  display: grid;
  gap: 10px;
}

.v220-testi {
  background: rgba(248, 248, 255, 0.04);
  border-radius: var(--v220-radius-sm);
  padding: 12px;
  border-left: 3px solid var(--v220-accent);
}

.v220-testi-stars { color: #FFCE3D; font-size: 1.2rem; margin-bottom: 4px; }

.v220-testi-text { font-size: 1.25rem; color: var(--v220-text-muted); margin: 0 0 6px; }

.v220-testi-author { font-size: 1.15rem; color: var(--v220-text-dim); }

/* Payment methods */
.v220-pay-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.v220-pay-item {
  background: rgba(248, 248, 255, 0.04);
  border-radius: var(--v220-radius-sm);
  padding: 10px 4px;
  text-align: center;
  font-size: 1rem;
  color: var(--v220-text-muted);
}

.v220-pay-item i,
.v220-pay-item span.mi {
  font-size: 22px;
  color: var(--v220-accent);
  display: block;
  margin-bottom: 4px;
}

/* Winners showcase */
.v220-winner-list {
  display: grid;
  gap: 6px;
}

.v220-winner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(248, 248, 255, 0.04);
  border-radius: var(--v220-radius-sm);
  padding: 8px 12px;
  font-size: 1.2rem;
}

.v220-winner-name { color: var(--v220-text); font-weight: 600; }

.v220-winner-amt { color: var(--v220-primary-bright); font-weight: 800; }

/* CTA banner */
.v220-cta {
  background: linear-gradient(135deg, var(--v220-primary), #003200);
  border-radius: var(--v220-radius);
  padding: 18px;
  text-align: center;
  margin: 14px 0;
  border: 1px solid rgba(233, 150, 122, 0.4);
}

.v220-cta h3 {
  color: var(--v220-text);
  font-size: 1.7rem;
  margin: 0 0 6px;
}

.v220-cta p {
  color: var(--v220-text-muted);
  font-size: 1.25rem;
  margin: 0 0 12px;
}

/* ===========================================================
 * Footer
 * =========================================================== */

.v220-footer {
  background: var(--v220-bg-soft);
  border-top: 1px solid var(--v220-border);
  padding: 22px 14px 100px;
  margin-top: 18px;
}

.v220-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.v220-footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.v220-footer-brand b { color: var(--v220-accent); }

.v220-footer-desc {
  color: var(--v220-text-muted);
  font-size: 1.25rem;
  line-height: 1.5;
  margin-bottom: 14px;
}

.v220-footer-promos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.v220-footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 10px;
  margin-bottom: 14px;
}

.v220-footer-links a {
  color: var(--v220-text-muted);
  font-size: 1.2rem;
}

.v220-footer-copy {
  color: var(--v220-text-dim);
  font-size: 1.1rem;
  border-top: 1px solid var(--v220-border);
  padding-top: 10px;
  text-align: center;
}

/* ===========================================================
 * Mobile bottom navigation
 * =========================================================== */

.v220-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--v220-bottom-nav-h);
  background: linear-gradient(180deg, rgba(20, 27, 38, 0.98), rgba(13, 17, 23, 0.98));
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--v220-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
}

.v220-bottom-nav-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--v220-text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 2px;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  transition: color 0.2s ease, transform 0.15s ease;
}

.v220-bottom-nav-btn:active { transform: scale(0.92); }

.v220-bottom-nav-btn i,
.v220-bottom-nav-btn span.mi,
.v220-bottom-nav-btn ion-icon {
  font-size: 22px;
}

.v220-bottom-nav-btn ion-icon { font-size: 24px; }

.v220-bottom-nav-label {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.v220-bottom-nav-btn.v220-nav-current {
  color: var(--v220-accent);
}

.v220-bottom-nav-btn.v220-nav-current::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--v220-accent);
}

.v220-nav-badge {
  position: absolute;
  top: 4px;
  right: 18px;
  background: #E54B4B;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Back-to-top */
.v220-to-top {
  position: fixed;
  right: 14px;
  bottom: calc(var(--v220-bottom-nav-h) + 12px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--v220-accent);
  color: #1A0E08;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 999;
  box-shadow: var(--v220-shadow);
}

.v220-to-top-show {
  opacity: 1;
  pointer-events: auto;
}

/* ===========================================================
 * Desktop: hide bottom nav, expand layout
 * =========================================================== */

@media (min-width: 769px) {
  .v220-bottom-nav,
  .v220-to-top { display: none; }
  .v220-footer { padding-bottom: 30px; }
}

@media (max-width: 768px) {
  main { padding-bottom: 80px; }
}

/* small helpers */
.v220-row { display: flex; gap: 10px; align-items: center; }
.v220-spacer { height: 14px; }
.v220-center { text-align: center; }
.v220-mt-8 { margin-top: 8px; }
.v220-mt-16 { margin-top: 16px; }
