/* === BASE RESET & BODY === */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: #0f0f23;
    font-family: 'Raleway', sans-serif;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    color: #f5f5f5;
    position: relative;
}

/* === DIAMOND PATTERN BACKGROUND === */
.diamond-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background:
        linear-gradient(160deg, #1a1a2e 0%, #0f0f23 60%, #12122a 100%),
        repeating-conic-gradient(
            rgba(201,169,110,0.04) 0deg 90deg,
            transparent 90deg 180deg
        ) 0 0 / 40px 40px;
    background-blend-mode: normal;
    z-index: 0;
}

/* Subtle vignette overlay */
.diamond-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(10,10,20,0.6) 100%);
    pointer-events: none;
}

/* === MAIN CONTENT WRAPPER === */
.content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100vh;
    padding: 40px 20px 60px;
    max-width: 1280px;
    margin: 0 auto;
}

/* === LOGO === */
.logo-container {
    margin-bottom: 28px;
    text-align: center;
    width: 100%;
}

.logo {
    width: 420px;
    max-width: 90%;
    height: auto;
    display: block;
    margin: 0 auto;
    /* Elegant subtle glow — no harsh neon */
    filter: drop-shadow(0 2px 16px rgba(201,169,110,0.25));
    opacity: 0.95;
    transition: opacity 0.3s ease;
}

.logo:hover { opacity: 1; }

/* === MARQUEE TEXT === */
.marquee-text {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: rgba(26,26,46,0.95);
    padding: 13px 0;
    border-top: 1px solid #c9a96e;
    border-bottom: 1px solid #c9a96e;
    margin-bottom: 36px;
    overflow: hidden;
    white-space: nowrap;
    color: #c9a96e;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(13px, 3.2vw, 17px);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.marquee-inner {
    display: inline-block;
    animation: scrollText 28s linear infinite;
    padding-left: 100%;
}

@keyframes scrollText {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-inner { animation: none; padding-left: 20px; white-space: normal; }
}

/* === CTA BUTTON === */
.btn-wrapper {
    margin-bottom: 52px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.ref-btn {
    display: inline-block;
    background: transparent;
    color: #c9a96e;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: clamp(18px, 5vw, 26px);
    padding: clamp(14px, 2.5vw, 18px) clamp(36px, 8vw, 64px);
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid #c9a96e;
    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
    transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease;
    white-space: nowrap;
}

.ref-btn:hover {
    background: rgba(201,169,110,0.1);
    opacity: 0.9;
}

.ref-btn:active { opacity: 0.75; }

/* === FLAG SECTION === */
.flag-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.flag-row {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.flag-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    margin-bottom: 12px;
    cursor: pointer;
}

.flag {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #c9a96e;
    /* Understated — no spin animation, elegant static presentation */
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.flag-item:hover .flag { opacity: 0.85; }
.flag-item:active .flag { opacity: 0.65; }

.country-name {
    margin-top: 8px;
    font-family: 'Raleway', sans-serif;
    font-size: clamp(13px, 3.8vw, 16px);
    font-weight: 600;
    color: #f5f5f5;
    text-align: center;
    pointer-events: none;
    letter-spacing: 0.04em;
}

.greeting {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(12px, 3.5vw, 15px);
    font-weight: 600;
    color: #c9a96e;
    margin-top: 6px;
    margin-bottom: 2px;
    pointer-events: none;
    letter-spacing: 0.06em;
}

/* === SEO CONTENT === */
.seo-content {
    width: 100%;
    max-width: 1200px;
    background: rgba(26,26,46,0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(201,169,110,0.4);
    padding: 44px 36px;
    border-radius: 6px;
    text-align: left;
    margin-top: 52px;
    color: #f5f5f5;
}

.seo-content h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(20px, 3.5vw, 26px);
    font-weight: 700;
    color: #c9a96e;
    margin-bottom: 24px;
    letter-spacing: 0.1em;
    border-left: 2px solid #c9a96e;
    padding-left: 16px;
    line-height: 1.3;
}

.seo-content p {
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 18px;
    color: rgba(245,245,245,0.88);
}

.seo-content b {
    color: #c9a96e;
    font-weight: 600;
}

.security-badge {
    background: rgba(201,169,110,0.08);
    border: 1px solid rgba(201,169,110,0.5);
    padding: 14px 20px;
    border-radius: 4px;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #c9a96e;
    text-align: center;
    margin-top: 24px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* === JACKPOT TICKER === */
.jackpot-section {
    width: 100%;
    max-width: 1200px;
    margin: 24px auto 0;
    padding: 18px 24px;
    background: rgba(26,26,46,0.9);
    border: 1px solid rgba(201,169,110,0.25);
    border-radius: 6px;
}

.jackpot-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    font-weight: 700;
    color: #c9a96e;
    margin-bottom: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ticker-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ticker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(201,169,110,0.12);
    font-size: 13px;
    color: rgba(245,245,245,0.8);
}

.ticker-item:last-child { border-bottom: none; }
.ticker-time { color: rgba(201,169,110,0.6); min-width: 45px; font-size: 12px; }
.ticker-game { color: #f5f5f5; min-width: 100px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.ticker-user { color: rgba(245,245,245,0.65); flex: 1; font-family: monospace; font-size: 12px; }
.ticker-amount { color: #c9a96e; font-weight: 600; font-size: 13px; }

/* === REVIEW SECTION === */
.review-section {
    width: 100%;
    max-width: 1200px;
    margin: 52px auto 40px;
    padding: 44px 36px;
    background: rgba(26,26,46,0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(201,169,110,0.25);
    border-radius: 6px;
}

.review-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 700;
    color: #c9a96e;
    text-align: center;
    margin-bottom: 32px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.review-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(201,169,110,0.2);
}

.rating-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.rating-label {
    font-family: 'Raleway', sans-serif;
    color: #c9a96e;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.stars {
    display: flex;
    flex-direction: row-reverse;
    gap: 8px;
}

.stars input { display: none; }

.stars label {
    font-size: 32px;
    color: rgba(201,169,110,0.3);
    cursor: pointer;
    transition: color 0.15s ease;
}

.stars label:hover,
.stars label:hover ~ label,
.stars input:checked ~ label {
    color: #c9a96e;
}

.review-input {
    width: 100%;
    max-width: 600px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.review-input textarea {
    flex: 1;
    min-width: 250px;
    padding: 14px 18px;
    background: rgba(245,245,245,0.05);
    border: 1px solid rgba(201,169,110,0.4);
    border-radius: 4px;
    color: #f5f5f5;
    font-size: 14px;
    font-family: 'Raleway', sans-serif;
    resize: none;
    height: 58px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.review-input textarea:focus {
    outline: none;
    border-color: #c9a96e;
    background: rgba(245,245,245,0.08);
}

.review-input textarea::placeholder {
    color: rgba(245,245,245,0.35);
}

.submit-btn {
    padding: 0 28px;
    background: transparent;
    border: 1px solid #c9a96e;
    border-radius: 4px;
    color: #c9a96e;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
    height: 58px;
    min-width: 110px;
    text-transform: uppercase;
}

.submit-btn:hover {
    background: rgba(201,169,110,0.1);
}

.submit-btn:active { opacity: 0.7; }

.reviews-header {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 700;
    color: #c9a96e;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.reviews-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: stretch;
    gap: 20px;
    flex-wrap: wrap;
    min-height: 260px;
}

.review-card {
    flex: 1;
    min-width: 240px;
    max-width: 340px;
    background: rgba(15,15,35,0.6);
    border: 1px solid rgba(201,169,110,0.2);
    border-radius: 6px;
    padding: 24px 20px;
    backdrop-filter: blur(6px);
    transition: border-color 0.25s ease, background 0.25s ease;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.review-card:hover {
    background: rgba(26,26,46,0.85);
    border-color: rgba(201,169,110,0.5);
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(201,169,110,0.15);
    border: 1px solid #c9a96e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c9a96e;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Cormorant Garamond', serif;
    flex-shrink: 0;
}

.reviewer-info {
    display: flex;
    flex-direction: column;
}

.reviewer-name {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    color: #c9a96e;
    font-size: 15px;
    letter-spacing: 0.04em;
}

.review-date {
    font-size: 11px;
    color: rgba(245,245,245,0.45);
    font-family: monospace;
    margin-top: 2px;
}

.review-stars {
    color: #c9a96e;
    margin-bottom: 12px;
    font-size: 14px;
}

.review-stars i { margin-right: 2px; }

.review-text {
    font-family: 'Raleway', sans-serif;
    color: rgba(245,245,245,0.82);
    font-size: 13px;
    line-height: 1.65;
    word-break: break-word;
}

/* === MODAL STYLES === */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10,10,20,0.88);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: linear-gradient(160deg, #1a1a2e 0%, #12122a 100%);
    border: 1px solid #c9a96e;
    border-radius: 6px;
    padding: 44px 40px;
    width: 90%;
    max-width: 480px;
    text-align: center;
    animation: modal-pop 0.25s ease-out;
}

@keyframes modal-pop {
    0% { transform: scale(0.92); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.modal-title {
    font-family: 'Cormorant Garamond', serif;
    color: #c9a96e;
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 700;
    margin-bottom: 32px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* === COIN FLIP MINI-GAME === */
.minigame-container {
    background: rgba(15,15,35,0.8);
    border: 1px solid rgba(201,169,110,0.25);
    border-radius: 6px;
    padding: 32px 20px;
    margin-bottom: 28px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 140px;
}

.coin-wrap {
    /* 3D perspective for coin flip */
    perspective: 600px;
}

.coin {
    width: 100px;
    height: 100px;
    position: relative;
    transform-style: preserve-3d;
    /* Default state: heads facing up */
    transform: rotateY(0deg);
    transition: transform 0.05s linear;
    cursor: default;
}

/* Coin flip animation: multiple full rotations then land on heads */
@keyframes coinFlip {
    0%   { transform: rotateY(0deg); }
    /* Rapid spins */
    80%  { transform: rotateY(1440deg); }
    /* Decelerate to heads (even multiple of 360 = heads face forward) */
    100% { transform: rotateY(1800deg); }
}

@keyframes coinFlipFast {
    0%   { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.coin.flipping {
    animation: coinFlip 2.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@media (prefers-reduced-motion: reduce) {
    .coin.flipping {
        animation: none;
        transform: rotateY(1800deg);
    }
}

/* Two faces of the coin */
.coin-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid rgba(201,169,110,0.7);
}

/* Heads: gold face */
.coin-heads {
    background: radial-gradient(circle at 35% 35%, #e8c97e, #c9a96e 50%, #a07840 100%);
    transform: rotateY(0deg);
}

/* Tails: slightly darker gold reverse */
.coin-tails {
    background: radial-gradient(circle at 65% 35%, #d4b96e, #b89050 50%, #8a6030 100%);
    transform: rotateY(180deg);
}

.coin-symbol {
    font-size: 44px;
    color: rgba(26,26,46,0.85);
    line-height: 1;
    /* Chess king symbol used as coin emblem */
    font-family: serif;
    user-select: none;
}

.modal-message {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    color: rgba(245,245,245,0.85);
    margin-bottom: 24px;
    min-height: 22px;
    letter-spacing: 0.03em;
}

.success-text {
    color: #c9a96e;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: 0.05em;
}

.hidden { display: none !important; }

/* Flip trigger button */
.flip-btn {
    display: inline-block;
    background: transparent;
    color: #c9a96e;
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 700;
    padding: 12px 32px;
    border: 1px solid #c9a96e;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 0.08em;
    transition: background 0.2s ease, opacity 0.2s ease;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.flip-btn:hover { background: rgba(201,169,110,0.1); }
.flip-btn:active { opacity: 0.7; }
.flip-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Final CTA after win */
.modal-cta-btn {
    background: transparent;
    color: #c9a96e;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(16px, 3.5vw, 20px);
    font-weight: 700;
    padding: 14px 28px;
    border: 1px solid #c9a96e;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: background 0.2s ease, opacity 0.2s ease;
    margin-top: 4px;
}

.modal-cta-btn:hover { background: rgba(201,169,110,0.12); }
.modal-cta-btn:active { opacity: 0.7; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .logo { width: 320px; }
    .flag { width: 76px; height: 76px; }
    .flag-item { min-width: 105px; }
    .seo-content { padding: 28px 20px; }
    .review-section { padding: 28px 16px; }
    .modal-content { padding: 32px 24px; }
}

@media (max-width: 480px) {
    .content { padding: 28px 14px 48px; }
    .logo { width: 260px; }
    .flag { width: 66px; height: 66px; }
    .flag-item { min-width: 90px; }
    .marquee-text { font-size: 12px; padding: 10px 0; letter-spacing: 0.12em; }
    .ref-btn { white-space: normal; font-size: 17px; padding: 14px 24px; line-height: 1.35; word-break: keep-all; }
    .ticker-item { font-size: 11px; gap: 6px; }
    .ticker-time { min-width: 36px; }
    .ticker-game { min-width: 80px; }
    .coin { width: 80px; height: 80px; }
    .coin-symbol { font-size: 34px; }
    .modal-content { padding: 28px 16px; }
}
