/* ==========================================================================
   BOMNIA GIRLFRIEND DAY DESIGN SYSTEM (August 1st Special)
   ========================================================================== */

:root {
    /* Color System - Sweet Romance Mode (Default) */
    --bg-gradient: linear-gradient(135deg, #180914 0%, #2a0820 40%, #3e1234 70%, #150616 100%);
    --accent-pink: #ff4d8d;
    --accent-pink-glow: rgba(255, 77, 141, 0.4);
    --accent-purple: #9d4edd;
    --accent-gold: #ffb703;
    --text-main: #ffffff;
    --text-muted: #e2c2dd;
    
    --card-bg: rgba(255, 255, 255, 0.07);
    --card-border: rgba(255, 255, 255, 0.15);
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    --btn-primary: linear-gradient(45deg, #ff4d8d, #ff758c);
    --btn-secondary: linear-gradient(45deg, #7b2cbf, #9d4edd);
    --btn-success: linear-gradient(45deg, #2ec4b6, #0cb4ce);
    --btn-danger: linear-gradient(45deg, #e63946, #d62828);

    --font-heading: 'Fredoka', 'Outfit', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

/* Theme Variant: Sarcastic Drama Queen Mode */
body.theme-drama {
    --bg-gradient: linear-gradient(135deg, #0b091a 0%, #1a1638 40%, #2b1055 70%, #080314 100%);
    --accent-pink: #ff0055;
    --accent-pink-glow: rgba(255, 0, 85, 0.5);
    --accent-purple: #7209b7;
    --accent-gold: #ffbe0b;
    --card-bg: rgba(30, 20, 50, 0.5);
    --card-border: rgba(255, 0, 85, 0.25);
}

/* Reset & Base Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Background Particle Canvas */
#bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

/* Container & Global Cards */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1.2rem;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.2rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    border-color: rgba(255, 77, 141, 0.4);
}

/* Header Navigation */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.heart-pulse {
    display: inline-block;
    animation: heartBeat 1.5s infinite ease-in-out;
}

.nav-tag {
    background: var(--accent-pink);
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    text-transform: uppercase;
    font-weight: 600;
    margin-left: 0.3rem;
}

.nav-controls {
    display: flex;
    gap: 0.8rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px var(--accent-pink-glow);
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary { background: var(--btn-primary); }
.btn-secondary { background: var(--btn-secondary); }
.btn-success { background: var(--btn-success); }
.btn-danger { background: var(--btn-danger); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }
.btn-block { width: 100%; }

.btn-icon {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* HERO SECTION */
.hero-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3.5rem 2rem;
}

.hero-badge {
    background: rgba(255, 77, 141, 0.15);
    border: 1px solid var(--accent-pink);
    color: #ff80ab;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.avatar-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 1.5rem;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-pink);
    box-shadow: 0 0 30px var(--accent-pink-glow);
    position: relative;
    z-index: 2;
}

.avatar-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px dashed var(--accent-pink);
    border-radius: 50%;
    animation: spinRing 20s linear infinite;
}

.crown-badge {
    position: absolute;
    top: -18px;
    right: 10px;
    font-size: 2rem;
    z-index: 3;
    animation: floatCrown 3s ease-in-out infinite;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.highlight-text {
    background: linear-gradient(45deg, #ff4d8d, #ffb703);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 2rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.15);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* QUOTE SECTION */
.quote-section {
    padding: 1.8rem 2.2rem;
}

.quote-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.quote-header h3 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.quote-box {
    background: rgba(0, 0, 0, 0.25);
    padding: 1.2rem 1.5rem;
    border-radius: 16px;
    border-left: 4px solid var(--accent-pink);
}

#quote-display {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.5;
}

/* GAME COMMON CARDS */
.card-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-pink);
    background: rgba(255, 77, 141, 0.12);
    padding: 0.3rem 0.8rem;
    border-radius: 30px;
    margin-bottom: 0.8rem;
}

.game-card h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.4rem;
}

.card-desc {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1.8rem;
}

/* GAME 1: DECISION SIMULATOR */
.decision-box {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    position: relative;
    min-height: 220px;
}

.question-title {
    font-size: 1.4rem;
    margin-bottom: 2rem;
}

.decision-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
    min-height: 80px;
}

.btn-elusive {
    position: relative;
    transition: all 0.15s ease-out;
}

.feedback-msg {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    animation: fadeIn 0.3s forwards;
}

.feedback-msg.success {
    background: rgba(46, 196, 182, 0.2);
    border: 1px solid #2ec4b6;
    color: #2ec4b6;
}

.feedback-msg.warning {
    background: rgba(230, 57, 70, 0.2);
    border: 1px solid #e63946;
    color: #ff4d8d;
}

/* GAME 2: FEED THE HANGRY BOMNIA ARCADE */
.arcade-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.arcade-hud {
    display: flex;
    justify-content: space-between;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.canvas-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

#hangry-canvas {
    display: block;
    width: 100%;
    height: auto;
    background: #110515;
}

.arcade-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 5, 20, 0.88);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    gap: 1rem;
    z-index: 10;
}

.arcade-overlay.hidden {
    display: none;
}

.arcade-legend {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
    justify-content: center;
}

/* GAME 3: QUIZ */
.quiz-box {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 20px;
}

.quiz-progress {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 1.8rem;
    overflow: hidden;
}

.quiz-progress-bar {
    height: 100%;
    background: var(--btn-primary);
    transition: width 0.3s ease;
}

.quiz-q-title {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.quiz-option-btn {
    text-align: left;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1rem 1.4rem;
    border-radius: 14px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.quiz-option-btn:hover {
    background: rgba(255, 77, 141, 0.15);
    border-color: var(--accent-pink);
    transform: translateX(5px);
}

.quiz-option-btn.selected-correct {
    background: rgba(46, 196, 182, 0.3);
    border-color: #2ec4b6;
}

.quiz-option-btn.selected-wrong {
    background: rgba(230, 57, 70, 0.3);
    border-color: #e63946;
}

.quiz-result-box {
    text-align: center;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.trophy-img {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 0 25px var(--accent-gold);
}

/* GAME 4: WHEEL OF PRIVILEGES */
.wheel-section-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}

.wheel-box {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#wheel-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255, 77, 141, 0.3);
}

.wheel-pointer {
    position: absolute;
    top: -15px;
    font-size: 2rem;
    z-index: 5;
    color: var(--accent-gold);
}

.spin-center-btn {
    position: absolute;
    width: 75px;
    height: 75px;
    border-radius: 50%;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 800;
    z-index: 6;
    border: 3px solid #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.coupons-panel {
    flex: 1;
    min-width: 280px;
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: 20px;
}

.coupons-panel h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coupons-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 280px;
    overflow-y: auto;
}

.claimed-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px dashed var(--accent-gold);
    padding: 0.8rem 1rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    animation: fadeIn 0.3s forwards;
}

.empty-msg {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

/* REASONS GRID & FLIP CARDS */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.flip-card {
    background-color: transparent;
    height: 180px;
    perspective: 1000px;
    cursor: pointer;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner, .flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.flip-card-front {
    background: rgba(255, 255, 255, 0.06);
}

.flip-card-front i {
    font-size: 2.2rem;
    color: var(--accent-pink);
    margin-bottom: 0.8rem;
}

.flip-card-front h3 {
    font-size: 1.1rem;
}

.flip-card-back {
    background: linear-gradient(135deg, rgba(255, 77, 141, 0.25), rgba(157, 78, 221, 0.25));
    transform: rotateY(180deg);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* LOVE ENVELOPE SECTION */
.envelope-section {
    text-align: center;
}

.envelope-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 1rem;
    position: relative;
}

.envelope {
    position: relative;
    width: 300px;
    height: 200px;
    background: #d62828;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.envelope:hover {
    transform: scale(1.03);
}

.envelope-front {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 150px solid #e63946;
    border-right: 150px solid #e63946;
    border-bottom: 100px solid #f25c54;
    border-top: 100px solid transparent;
    border-radius: 0 0 12px 12px;
    z-index: 4;
}

.envelope-flap {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-top: 110px solid #d62828;
    transform-origin: top;
    transition: transform 0.5s ease 0.2s, z-index 0.2s ease 0.2s;
    z-index: 5;
}

.wax-seal {
    position: absolute;
    top: 85px;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 45px;
    background: #ffb703;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 6;
    transition: opacity 0.3s;
}

.letter {
    position: absolute;
    bottom: 10px;
    left: 15px;
    width: 270px;
    height: 180px;
    background: #fff;
    color: #2b2d42;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.6s ease 0.4s, height 0.6s ease 0.4s, bottom 0.6s ease 0.4s;
    z-index: 2;
    overflow: hidden;
    font-family: var(--font-body);
}

.letter-content {
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: left;
}

.letter-content h3 {
    color: #d62828;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.letter-signature {
    margin-top: 0.8rem;
    font-weight: 700;
    color: #9d4edd;
}

/* Envelope Open State */
.envelope.open .envelope-flap {
    transform: rotateX(180deg);
    z-index: 1;
}

.envelope.open .wax-seal {
    opacity: 0;
}

.envelope.open .letter {
    bottom: -60px;
    height: 320px;
    z-index: 7;
    transform: scale(1.15);
    overflow-y: auto;
}

/* CELEBRATION FOOTER */
.celebration-footer {
    text-align: center;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.footer-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.copy-note {
    font-size: 0.85rem;
    color: var(--accent-gold);
    min-height: 20px;
}

/* MODAL FOR CLAIMED VOUCHERS */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-backdrop.hidden {
    display: none;
}

.modal-content {
    max-width: 450px;
    width: 100%;
    position: relative;
    padding: 2.5rem 2rem;
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.voucher-ticket {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    border: 2px dashed var(--accent-gold);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.voucher-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.voucher-ticket h3 {
    font-size: 1.4rem;
    color: var(--accent-pink);
    font-family: var(--font-heading);
}

.voucher-code {
    background: rgba(0, 0, 0, 0.4);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-family: monospace;
    letter-spacing: 2px;
    color: var(--accent-gold);
}

/* Keyframe Animations */
@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}

@keyframes spinRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes floatCrown {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Helper Utilities */
.hidden { display: none !important; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title { font-size: 2.1rem; }
    .hero-subtitle { font-size: 1rem; }
    .stats-bar { gap: 0.8rem; padding: 0.8rem 1rem; }
    .stat-number { font-size: 1.2rem; }
    .wheel-section-container { flex-direction: column; align-items: center; }
    .top-nav { padding: 0.8rem 1rem; }
    .nav-brand { font-size: 1.1rem; }
    .glass-card { padding: 1.5rem; }
}
