/* ============================================================
 * winph777 login password - site stylesheet
 * Class prefix: g244-
 * Palette: #FAFAFA (text) | #2C3E50 (bg) | #CD853F (accent)
 * Mobile-first: max-width 430px
 * ============================================================ */

:root {
  --g244-primary: #CD853F;
  --g244-primary-dark: #A86A28;
  --g244-bg: #2C3E50;
  --g244-bg-2: #1F2D3D;
  --g244-bg-3: #34495E;
  --g244-text: #FAFAFA;
  --g244-muted: #B8C2CC;
  --g244-card: #34495E;
  --g244-border: rgba(250, 250, 250, 0.08);
  --g244-success: #27AE60;
  --g244-danger: #E74C3C;
  --g244-radius: 12px;
  --g244-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  --g244-header-h: 56px;
  --g244-bottom-h: 62px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--g244-bg);
  color: var(--g244-text);
  line-height: 1.5;
  font-size: 1.5rem;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

img { max-width: 100%; display: block; }
a { color: var(--g244-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.g244-container { width: 100%; max-width: 430px; margin: 0 auto; padding: 0 1.2rem; }
.g244-wrapper { padding-top: var(--g244-header-h); }

/* ============================================================
 * Header
 * ============================================================ */
.g244-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--g244-header-h);
  background: var(--g244-bg-2);
  border-bottom: 1px solid var(--g244-border);
}
.g244-header-inner {
  max-width: 430px; margin: 0 auto; padding: 0 1.2rem;
  height: 100%; display: flex; align-items: center; gap: 0.8rem;
}
.g244-logo { display: flex; align-items: center; gap: 0.6rem; color: var(--g244-text); font-weight: 700; font-size: 1.5rem; }
.g244-logo img { width: 28px; height: 28px; border-radius: 6px; }
.g244-logo:hover { text-decoration: none; }
.g244-logo-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.g244-logo-text span { color: var(--g244-primary); }

.g244-header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
.g244-icon-btn {
  background: transparent; border: none; color: var(--g244-text);
  width: 36px; height: 36px; font-size: 2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; border-radius: 8px;
}
.g244-icon-btn:hover { background: rgba(255,255,255,0.08); }

.g244-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-weight: 600; border-radius: 8px; cursor: pointer; border: none;
  padding: 0.7rem 1.2rem; font-size: 1.3rem; transition: transform .15s ease, background .15s ease;
  min-height: 36px;
}
.g244-btn:hover { text-decoration: none; transform: translateY(-1px); }
.g244-btn-primary { background: var(--g244-primary); color: #1F2D3D; }
.g244-btn-primary:hover { background: var(--g244-primary-dark); }
.g244-btn-outline { background: transparent; color: var(--g244-primary); border: 1px solid var(--g244-primary); }
.g244-btn-block { display: flex; width: 100%; }
.g244-btn-lg { padding: 1rem 1.4rem; font-size: 1.5rem; min-height: 44px; }

/* ============================================================
 * Mobile menu drawer
 * ============================================================ */
.g244-menu-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 9998; opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.g244-overlay-visible { opacity: 1; pointer-events: auto; }
.g244-mobile-menu {
  position: fixed; top: 0; right: -280px; width: 280px; max-width: 85vw;
  height: 100%; background: var(--g244-bg-2); z-index: 9999;
  padding: calc(var(--g244-header-h) + 1rem) 1.2rem 1.2rem;
  transition: right .28s ease; overflow-y: auto;
}
.g244-menu-open { right: 0; }
.g244-menu-title { color: var(--g244-muted); font-size: 1.2rem; text-transform: uppercase; margin: 1.2rem 0 0.6rem; letter-spacing: .05em; }
.g244-menu-link {
  display: flex; align-items: center; gap: 0.8rem; padding: 1rem;
  color: var(--g244-text); border-radius: 8px; font-size: 1.4rem; font-weight: 500;
}
.g244-menu-link:hover { background: rgba(255,255,255,0.06); text-decoration: none; }
.g244-menu-link i { width: 22px; text-align: center; color: var(--g244-primary); }
.g244-menu-close { position: absolute; top: 1rem; right: 1rem; }

/* ============================================================
 * Hero carousel
 * ============================================================ */
.g244-hero { position: relative; overflow: hidden; border-radius: var(--g244-radius); margin: 1.2rem 0; }
.g244-hero-track { display: flex; transition: transform .4s ease; }
.g244-hero-slide { flex: 0 0 100%; position: relative; cursor: pointer; }
.g244-hero-slide img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.g244-hero-overlay {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.2rem; background: linear-gradient(to top, rgba(31,45,61,.92), rgba(31,45,61,0));
  color: var(--g244-text);
}
.g244-hero-overlay h2 { font-size: 1.7rem; font-weight: 700; margin-bottom: 0.4rem; }
.g244-hero-overlay p { font-size: 1.25rem; color: var(--g244-muted); }
.g244-hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(31,45,61,.7); color: var(--g244-text); border: none;
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center; z-index: 5;
}
.g244-hero-arrow:hover { background: var(--g244-primary); color: #1F2D3D; }
.g244-hero-prev { left: 0.8rem; }
.g244-hero-next { right: 0.8rem; }
.g244-hero-dots { position: absolute; bottom: 0.6rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; z-index: 5; }
.g244-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(250,250,250,.4); border: none; cursor: pointer; }
.g244-dot-active { background: var(--g244-primary); width: 20px; border-radius: 4px; }

/* ============================================================
 * Sections / headings
 * ============================================================ */
.g244-section { padding: 1.6rem 0; }
.g244-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.g244-section-head h2 { font-size: 1.7rem; font-weight: 700; display: flex; align-items: center; gap: 0.6rem; }
.g244-section-head h2 i { color: var(--g244-primary); }
.g244-section-more { font-size: 1.2rem; color: var(--g244-primary); }

.g244-card {
  background: var(--g244-card); border-radius: var(--g244-radius);
  padding: 1.2rem; box-shadow: var(--g244-shadow);
  border: 1px solid var(--g244-border);
}
.g244-card h3 { font-size: 1.4rem; font-weight: 600; margin-bottom: 0.6rem; color: var(--g244-primary); }
.g244-card p { color: var(--g244-muted); font-size: 1.3rem; }

/* ============================================================
 * Game grid
 * ============================================================ */
.g244-chips { display: flex; gap: 0.6rem; overflow-x: auto; padding: 0.5rem 0 1rem; -webkit-overflow-scrolling: touch; }
.g244-chip {
  padding: 0.5rem 1rem; background: var(--g244-bg-3); color: var(--g244-text);
  border-radius: 20px; font-size: 1.2rem; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; transition: all .15s ease;
}
.g244-chip-active, .g244-chip:hover { background: var(--g244-primary); color: #1F2D3D; border-color: var(--g244-primary); }

.g244-game-group { margin-bottom: 1.6rem; }
.g244-game-group-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; }
.g244-game-group-head h3 { font-size: 1.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.g244-game-group-head .g244-tag {
  font-size: 1rem; padding: 0.2rem 0.6rem; border-radius: 4px;
  background: var(--g244-primary); color: #1F2D3D; font-weight: 700;
}
.g244-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.g244-game-card { display: block; cursor: pointer; text-align: center; }
.g244-game-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 10px; border: 1px solid var(--g244-border); background: var(--g244-bg-3); transition: transform .2s ease, box-shadow .2s ease; }
.g244-game-card:hover img { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.4); border-color: var(--g244-primary); }
.g244-game-card span { display: block; margin-top: 0.4rem; font-size: 1.1rem; color: var(--g244-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
 * Promo banner / quick lists
 * ============================================================ */
.g244-promo-banner {
  background: linear-gradient(135deg, var(--g244-primary), var(--g244-primary-dark));
  color: #1F2D3D; border-radius: var(--g244-radius); padding: 1.4rem;
  display: flex; gap: 1rem; align-items: center; margin: 1.2rem 0;
}
.g244-promo-banner .g244-promo-icon { font-size: 3rem; }
.g244-promo-banner h3 { font-size: 1.5rem; margin-bottom: 0.3rem; color: #1F2D3D; }
.g244-promo-banner p { font-size: 1.2rem; color: rgba(31,45,61,.8); }
.g244-promo-banner .g244-btn { margin-left: auto; background: #1F2D3D; color: var(--g244-primary); }

.g244-list { list-style: none; padding: 0; margin: 0; }
.g244-list li { padding: 0.8rem 0; border-bottom: 1px solid var(--g244-border); display: flex; gap: 0.8rem; align-items: flex-start; font-size: 1.3rem; }
.g244-list li:last-child { border-bottom: none; }
.g244-list li i { color: var(--g244-primary); margin-top: 0.2rem; }

/* ============================================================
 * FAQ accordion
 * ============================================================ */
.g244-faq-item { background: var(--g244-card); border-radius: 10px; margin-bottom: 0.6rem; overflow: hidden; border: 1px solid var(--g244-border); }
.g244-faq-q { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.2rem; cursor: pointer; font-weight: 600; font-size: 1.35rem; }
.g244-faq-q .g244-faq-icon { color: var(--g244-primary); transition: transform .2s ease; }
.g244-faq-open .g244-faq-q .g244-faq-icon { transform: rotate(45deg); }
.g244-faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 1.2rem; color: var(--g244-muted); font-size: 1.25rem; }
.g244-faq-open .g244-faq-a { max-height: 320px; padding: 0 1.2rem 1.1rem; }

/* ============================================================
 * Table
 * ============================================================ */
.g244-table { width: 100%; border-collapse: collapse; background: var(--g244-card); border-radius: var(--g244-radius); overflow: hidden; }
.g244-table th, .g244-table td { padding: 0.8rem 1rem; text-align: left; font-size: 1.2rem; border-bottom: 1px solid var(--g244-border); }
.g244-table th { background: var(--g244-bg-3); color: var(--g244-primary); font-weight: 700; }
.g244-table tr:last-child td { border-bottom: none; }

/* ============================================================
 * Testimonial / winner
 * ============================================================ */
.g244-review { background: var(--g244-card); padding: 1.2rem; border-radius: 10px; margin-bottom: 0.8rem; border-left: 3px solid var(--g244-primary); }
.g244-review-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.6rem; }
.g244-review-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--g244-primary); color: #1F2D3D; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.4rem; }
.g244-review-name { font-weight: 600; font-size: 1.3rem; }
.g244-review-stars { color: #F1C40F; font-size: 1.1rem; }
.g244-review-text { color: var(--g244-muted); font-size: 1.25rem; }

.g244-winners { background: var(--g244-card); border-radius: var(--g244-radius); padding: 0.5rem 0; }
.g244-winners-item { display: flex; align-items: center; gap: 0.8rem; padding: 0.7rem 1.2rem; border-bottom: 1px solid var(--g244-border); font-size: 1.2rem; }
.g244-winners-item:last-child { border-bottom: none; }
.g244-winners-name { font-weight: 600; }
.g244-winners-amount { margin-left: auto; color: var(--g244-success); font-weight: 700; }

/* ============================================================
 * Payment grid
 * ============================================================ */
.g244-pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.g244-pay-item {
  background: var(--g244-card); border-radius: 8px; padding: 0.8rem 0.4rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  font-size: 1rem; color: var(--g244-muted); border: 1px solid var(--g244-border);
}
.g244-pay-item i { font-size: 1.8rem; color: var(--g244-primary); }

/* ============================================================
 * Footer
 * ============================================================ */
.g244-footer { background: var(--g244-bg-2); padding: 2rem 0 calc(var(--g244-bottom-h) + 2rem); margin-top: 2rem; border-top: 1px solid var(--g244-border); }
.g244-footer h4 { color: var(--g244-primary); font-size: 1.3rem; margin-bottom: 0.8rem; text-transform: uppercase; letter-spacing: .04em; }
.g244-footer p { color: var(--g244-muted); font-size: 1.2rem; margin-bottom: 1rem; }
.g244-footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1rem; margin: 0.8rem 0; }
.g244-footer-links a { color: var(--g244-muted); font-size: 1.2rem; }
.g244-footer-links a:hover { color: var(--g244-primary); }
.g244-footer-bottom { text-align: center; color: var(--g244-muted); font-size: 1.1rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--g244-border); }

/* ============================================================
 * Bottom navigation (mobile only)
 * ============================================================ */
.g244-bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: var(--g244-bottom-h);
  background: var(--g244-bg-2);
  border-top: 1px solid var(--g244-border);
  display: flex; justify-content: space-around; align-items: stretch;
}
.g244-bottom-item {
  flex: 1; min-width: 60px; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--g244-muted); background: transparent; border: none; cursor: pointer;
  font-size: 1rem; gap: 0.2rem; padding: 0.4rem;
  transition: color .15s ease, transform .15s ease;
}
.g244-bottom-item i, .g244-bottom-item span.material-symbols-outlined { font-size: 2.2rem; }
.g244-bottom-item:hover, .g244-bottom-item.g244-bottom-active { color: var(--g244-primary); transform: translateY(-2px); }
.g244-bottom-item.g244-bottom-active::before {
  content: ''; position: absolute; top: 0; width: 32px; height: 3px; background: var(--g244-primary); border-radius: 0 0 4px 4px;
}
.g244-bottom-item { position: relative; }

/* Back to top button */
.g244-totop {
  position: fixed; right: 1.2rem; bottom: calc(var(--g244-bottom-h) + 1rem); z-index: 999;
  width: 44px; height: 44px; border-radius: 50%; background: var(--g244-primary); color: #1F2D3D;
  border: none; font-size: 1.8rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .15s ease; box-shadow: var(--g244-shadow);
}
.g244-totop:hover { transform: translateY(-2px); }
.g244-totop-visible { opacity: 1; pointer-events: auto; }

/* ============================================================
 * Utilities / responsive
 * ============================================================ */
.g244-text-center { text-align: center; }
.g244-mt-1 { margin-top: 0.5rem; } .g244-mt-2 { margin-top: 1rem; } .g244-mt-3 { margin-top: 1.5rem; }
.g244-highlight { color: var(--g244-primary); font-weight: 700; }
.g244-prose p { margin-bottom: 0.8rem; color: var(--g244-muted); font-size: 1.3rem; }
.g244-prose strong { color: var(--g244-text); }

@media (max-width: 768px) {
  main.g244-main { padding-bottom: calc(var(--g244-bottom-h) + 1.5rem); }
}
@media (min-width: 769px) {
  .g244-bottom-nav { display: none; }
  .g244-totop { bottom: 1.5rem; }
  .g244-container { max-width: 760px; }
}
