/* ============================================================
   harper.hotelhuddle.com — Harper™ The Hotel Expert
   Light glass design system matching hotelhuddle.com
   Colors: White #F8F9FC bg, Dark #1A1D2E text, Navy #1e3a5f, Accent #2a5298
   ============================================================ */

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

:root {
    --bg-primary: #F8F9FC;
    --bg-card: rgba(0, 0, 0, 0.03);
    --bg-card-hover: rgba(0, 0, 0, 0.06);
    --bg-card-active: rgba(30, 58, 95, 0.08);
    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-active: rgba(30, 58, 95, 0.4);
    --text-primary: #1A1D2E;
    --text-secondary: #5A6078;
    --text-muted: #8892A6;
    --accent: #1e3a5f;
    --accent-light: #2a5298;
    --accent-dark: #0f1b2d;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --shadow-glow: 0 0 30px rgba(30, 58, 95, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --haggle: #8b5cf6;
    --slots: #f59e0b;
    --rooms: #14b8a6;
    --team: #3b82f6;
    --meeting: #ef4444;
}

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

img { max-width: 100%; height: auto; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ---- Sticky Nav Header ---- */
.hp-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 249, 252, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}
.hp-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.65rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hp-logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}
.hp-logo-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}
.hp-logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent, #1e3a5f);
    letter-spacing: -0.02em;
}
.hp-logo-subtitle {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted, #8892A6);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: -2px;
}
.hp-nav-fb {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    background: #1877F2;
    color: #fff !important;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}
.hp-nav-fb:hover {
    background: #1565D8;
    transform: translateY(-1px);
}
.hp-nav-fb::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z'/%3E%3C/svg%3E") no-repeat center/contain;
}
/* ---- Language Switcher ---- */
.hp-lang-switch {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--border-subtle, rgba(0,0,0,0.1));
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    margin-left: 0.5rem;
}
.hp-lang-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border: none;
    background: transparent;
    color: var(--text-muted, #8892A6);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}
.hp-lang-btn.active {
    background: var(--accent, #1e3a5f);
    color: #fff;
}
.hp-lang-btn:hover:not(.active) {
    background: rgba(30,58,95,0.08);
    color: var(--accent, #1e3a5f);
}
@media (max-width: 768px) {
    .hp-lang-switch { margin: 0.5rem 0; }
}
.hp-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.hp-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}
.hp-nav a:hover, .hp-nav a.active {
    color: var(--accent-light);
}
.hp-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-light);
    border-radius: 1px;
}
.hp-nav-cta {
    background: #1e3a5f !important;
    color: #fff !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 9999px !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    letter-spacing: 0.02em;
    transition: background 0.2s, transform 0.2s !important;
    box-shadow: 0 2px 8px rgba(30,58,95,0.35);
}
.hp-nav-cta:hover {
    background: #2a5298 !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30,58,95,0.4);
}

/* ---- Mobile Nav ---- */
.hp-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.hp-hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}
.hp-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hp-hamburger.open span:nth-child(2) { opacity: 0; }
.hp-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.hp-mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(248, 249, 252, 0.98);
    backdrop-filter: blur(20px);
    padding: 1rem 2rem 2rem;
    border-bottom: 1px solid var(--border-subtle);
    z-index: 99;
    flex-direction: column;
    gap: 1rem;
}
.hp-mobile-menu.open { display: flex; }
.hp-mobile-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
}

@media (max-width: 768px) {
    .hp-nav { display: none; }
    .hp-hamburger { display: flex; }
    .hp-header-inner { padding: 0.5rem 1rem; }
}

/* ---- Hero Section ---- */
.hp-hero {
    padding: 4rem 2rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    align-items: center;
    min-height: 520px;
}
.hp-hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.hp-hero-text-card {
    background: linear-gradient(135deg, rgba(248, 249, 252, 0.92), rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
.hp-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #1e3a5f !important;
    -webkit-text-fill-color: #1e3a5f !important;
    background: none !important;
    text-shadow: 0 1px 3px rgba(10,22,40,0.15);
    margin-bottom: 0.75rem;
    line-height: 1.15;
}
.hp-hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}
.hp-hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    border-radius: 14px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}
.hp-btn-primary {
    background: #1e3a5f;
    color: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 8px 30px rgba(30, 58, 95, 0.3);
}
.hp-btn-primary:hover {
    background: #2a5298;
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(30, 58, 95, 0.4);
}
.hp-btn-secondary {
    background: rgba(30, 58, 95, 0.08);
    color: #1e3a5f;
    padding: 1rem 2rem;
    border: 1px solid rgba(30, 58, 95, 0.15);
}
.hp-btn-secondary:hover {
    background: rgba(30, 58, 95, 0.14);
    transform: translateY(-2px);
}
.hp-hero-canvas-wrap {
    flex: 0 0 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hp-hero-canvas-wrap canvas {
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .hp-hero {
        flex-direction: column-reverse;
        padding: 2rem 1rem;
        min-height: auto;
    }
    .hp-hero-canvas-wrap { flex: none; width: 100%; }
    .hp-hero-canvas-wrap canvas { max-width: 280px; }
    .hp-hero-title { font-size: 1.8rem; }
}

/* ---- Section Common ---- */
.hp-section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.hp-section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1e3a5f;
    text-shadow: 0 1px 3px rgba(10,22,40,0.15);
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}
.hp-section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
}
.hp-section-alt {
    background: linear-gradient(180deg, rgba(30, 58, 95, 0.03) 0%, rgba(30, 58, 95, 0.06) 100%);
}

/* ---- Where's Harper Game ---- */
.hp-game-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}
.hp-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.hp-game-score {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
}
.hp-game-timer {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}
.hp-game-scene {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: crosshair;
    border: 2px solid var(--border-subtle);
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s;
}
.hp-game-scene:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}
.hp-game-scene-loc {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    z-index: 5;
}
.hp-game-harper {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #4D82FF, #1757FF, #0F43CC);
    cursor: pointer;
    z-index: 3;
    transition: transform 0.2s;
    opacity: 0;
}
.hp-game-harper.visible { opacity: 1; }
.hp-game-harper::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    top: 8px;
    left: 10px;
}
.hp-game-harper:hover { transform: scale(1.3); }

.hp-miss-marker {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(239, 68, 68, 0.6);
    border-radius: 50%;
    pointer-events: none;
    animation: hp-miss-fade 1s forwards;
    z-index: 4;
}
@keyframes hp-miss-fade {
    0% { opacity: 1; transform: scale(0.5); }
    50% { opacity: 0.8; transform: scale(1.2); }
    100% { opacity: 0; transform: scale(1.5); }
}

.hp-game-found {
    position: absolute;
    inset: 0;
    background: rgba(30, 58, 95, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: var(--radius-xl);
    color: #fff;
    text-align: center;
    animation: hp-found-in 0.5s ease;
}
@keyframes hp-found-in {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.hp-game-found h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.hp-game-found p {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}
.hp-game-results {
    text-align: center;
    padding: 3rem 2rem;
}
.hp-game-results h3 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}
.hp-game-results p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}
.hp-confetti {
    position: fixed;
    pointer-events: none;
    z-index: 999;
    animation: hp-confetti-fall 1.5s forwards;
}
@keyframes hp-confetti-fall {
    0% { opacity: 1; transform: translateY(0) rotate(0deg); }
    100% { opacity: 0; transform: translateY(100vh) rotate(720deg); }
}

/* Scene backgrounds */
.hp-scene-lobby {
    background:
        radial-gradient(ellipse at 50% 20%, rgba(255,215,0,0.3) 0%, transparent 40%),
        linear-gradient(180deg, #2c1810 0%, #4a2c17 30%, #8B6914 60%, #654321 100%);
}
.hp-scene-beach {
    background:
        radial-gradient(circle at 80% 30%, rgba(255,200,0,0.4) 0%, transparent 30%),
        linear-gradient(180deg, #87CEEB 0%, #87CEEB 50%, #F4D03F 50%, #E8C72E 70%, #2E8B57 70%, #228B22 100%);
}
.hp-scene-mountain {
    background:
        radial-gradient(circle at 50% 10%, rgba(255,255,255,0.3) 0%, transparent 20%),
        linear-gradient(180deg, #4A6FA5 0%, #6B8DBE 30%, #4A7C59 60%, #2D5016 80%, #3E2723 100%);
}
.hp-scene-city {
    background:
        linear-gradient(180deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #1a1a2e 100%);
}
.hp-scene-desert {
    background:
        radial-gradient(circle at 70% 20%, rgba(255,165,0,0.5) 0%, transparent 35%),
        linear-gradient(180deg, #87CEEB 0%, #F4D03F 40%, #D4A017 70%, #C19A6B 100%);
}

/* Scene decorative elements */
.hp-scene-element {
    position: absolute;
    pointer-events: none;
    z-index: 2;
}

/* ---- Deal Radar ---- */
.hp-radar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}
.hp-radar-container {
    width: 100%;
    max-width: 700px;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, #060d1f 0%, #0a1628 30%, #0d1f3c 60%, #0a1225 100%);
    border-radius: 20px;
    border: 2px solid rgba(30, 58, 95, 0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), inset 0 0 60px rgba(0, 20, 60, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hp-radar-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
      linear-gradient(0deg, transparent 49.5%, rgba(30,100,180,0.06) 49.5%, rgba(30,100,180,0.06) 50.5%, transparent 50.5%),
      linear-gradient(90deg, transparent 49.5%, rgba(30,100,180,0.06) 49.5%, rgba(30,100,180,0.06) 50.5%, transparent 50.5%);
    pointer-events: none;
    z-index: 1;
}
.hp-radar {
    position: relative;
    width: min(85vw, 600px);
    height: min(85vw, 600px);
    max-width: 600px;
    max-height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, #0a1628 0%, #0d1f3c 60%, #1a3a5c 100%);
    border: 3px solid rgba(30, 58, 95, 0.5);
    box-shadow: 0 0 40px rgba(30, 58, 95, 0.3), inset 0 0 30px rgba(0, 20, 60, 0.5);
    overflow: hidden;
    z-index: 2;
}
.hp-radar-ring {
    position: absolute;
    border: 1px solid rgba(30, 100, 180, 0.2);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.hp-radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50%;
    height: 2px;
    transform-origin: left center;
    background: linear-gradient(90deg, rgba(20, 184, 166, 0.8), transparent);
    animation: hp-sweep 4s linear infinite;
    box-shadow: 0 0 15px rgba(20, 184, 166, 0.4);
}
.hp-radar-sweep::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(20, 184, 166, 0.3), transparent);
    transform-origin: left center;
    animation: hp-sweep-cone 4s linear infinite;
    clip-path: polygon(0 0, 100% -50%, 100% 50%);
}
@keyframes hp-sweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.hp-radar-ping {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: hp-ping-appear 0.5s ease, hp-ping-glow 2s ease-in-out infinite;
    cursor: pointer;
    z-index: 3;
    text-decoration: none;
}
@keyframes hp-ping-appear {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes hp-ping-glow {
    0%, 100% { box-shadow: 0 0 4px currentColor; }
    50% { box-shadow: 0 0 12px currentColor, 0 0 24px currentColor; }
}
.hp-radar-ping-label {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    background: rgba(0,0,0,0.7);
    padding: 2px 8px;
    border-radius: 4px;
    pointer-events: none;
}
.hp-radar-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: radial-gradient(circle, #4D82FF, #1757FF);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(23, 87, 255, 0.6);
    z-index: 4;
}
.hp-radar-stats {
    text-align: center;
}
.hp-radar-count {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    text-shadow: 0 1px 3px rgba(10,22,40,0.15);
}
.hp-radar-label {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}
.hp-radar-fun {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.5rem;
}

/* ---- Mini Games ---- */
.hp-games-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.hp-game-card {
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hp-game-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transform: translateY(-4px);
    border-color: var(--border-active);
}
.hp-game-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1;
}
.hp-game-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}
.hp-game-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Game modals */
.hp-game-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    z-index: 200;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.hp-game-modal.open { display: flex; }
.hp-game-modal-content {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.hp-game-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}
.hp-game-modal-close:hover { color: var(--text-primary); }
.hp-game-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}
.hp-game-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.hp-game-option {
    background: var(--bg-primary);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--text-secondary);
}
.hp-game-option:hover {
    border-color: var(--accent-light);
    background: var(--bg-card-hover);
}
.hp-game-option.correct {
    border-color: #10b981;
    background: #ecfdf5;
    color: #065f46;
}
.hp-game-option.wrong {
    border-color: #ef4444;
    background: #fef2f2;
    color: #991b1b;
}
.hp-game-progress {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.hp-game-result {
    text-align: center;
    padding: 2rem 0;
}
.hp-game-result h3 {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

/* Match game */
.hp-match-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}
.hp-match-card {
    aspect-ratio: 1;
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-primary);
    color: var(--text-secondary);
    position: relative;
}
.hp-match-card:hover {
    border-color: var(--accent-light);
}
.hp-match-card.selected {
    border-color: var(--accent);
    background: var(--bg-card-active);
    box-shadow: 0 0 0 2px var(--accent);
}
.hp-match-card.matched {
    border-color: #10b981;
    background: #ecfdf5;
    color: #065f46;
    pointer-events: none;
}
.hp-match-card.wrong-flash {
    border-color: #ef4444;
    background: #fef2f2;
    animation: hp-shake 0.5s;
}
@keyframes hp-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* ---- Blog Cards ---- */
.hp-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.hp-blog-card {
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.hp-blog-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}
.hp-blog-card-img {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}
.hp-blog-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.hp-blog-card-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-light);
    margin-bottom: 0.5rem;
}
.hp-blog-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}
.hp-blog-card-excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
}
.hp-blog-card-read {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.hp-blog-card-read:hover { text-decoration: underline; }

@media (max-width: 960px) and (min-width: 769px) {
  .hp-blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hp-blog-grid { grid-template-columns: 1fr; }
    .hp-games-grid { grid-template-columns: 1fr; }
}

/* ---- About Page ---- */
.hp-about-hero {
    padding: 5rem 2rem 3rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.hp-about-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #1e3a5f;
    text-shadow: 0 1px 3px rgba(10,22,40,0.15);
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
}
.hp-about-hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}
.hp-step-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}
.hp-step-card {
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: var(--transition);
}
.hp-step-card:hover {
    box-shadow: var(--shadow-glow);
}
.hp-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}
.hp-step-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.hp-step-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.hp-step-card.bold-step {
    border-color: var(--accent-light);
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.04), rgba(42, 82, 152, 0.06));
}
.hp-step-card.bold-step .hp-step-num {
    background: var(--accent-light);
}
.hp-brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}
.hp-brand-card {
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}
.hp-brand-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.hp-brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-bottom: 0.25rem;
}
.hp-brand-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}
.hp-brand-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ---- Origin Story ---- */
.hp-origin {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecf4 100%);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    max-width: 800px;
    margin: 3rem auto 0;
    position: relative;
    overflow: hidden;
}
.hp-origin::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 8rem;
    color: rgba(30, 58, 95, 0.08);
    font-family: Georgia, serif;
    line-height: 1;
}
.hp-origin p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* ---- FAQ ---- */
.hp-faq-item {
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem 0;
}
.hp-faq-item > summary.hp-faq-q {
    list-style: none;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.hp-faq-item > summary.hp-faq-q::-webkit-details-marker { display: none; }
.hp-faq-item > summary.hp-faq-q::marker { display: none; content: ''; }
.hp-faq-item > summary.hp-faq-q::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: var(--transition);
    flex-shrink: 0;
}
.hp-faq-item[open] > summary.hp-faq-q::after {
    content: '−';
}
.hp-faq-a {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding-top: 0.75rem;
}

/* ---- Blog Page ---- */
.hp-blog-post {
    max-width: 720px;
    margin: 3rem auto;
    padding: 0 2rem;
}
.hp-blog-post-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.hp-blog-post h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.25;
}
.hp-blog-post p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}
.hp-blog-post h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2rem 0 0.75rem;
}
.hp-blog-cta {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.05), rgba(42, 82, 152, 0.08));
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    margin: 2rem 0;
}
.hp-blog-cta p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ---- Footer ---- */
.hp-footer {
    background: #1e3a5f;
    color: rgba(255,255,255,0.7);
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
}
.hp-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
}
.hp-footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.hp-footer-brand img {
    width: 32px;
    height: 32px;
}
.hp-footer-brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}
.hp-footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.hp-footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.hp-footer-links a:hover { color: #fff; }
.hp-footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.8rem;
    text-align: center;
    color: rgba(255,255,255,0.4);
}

/* ---- Hero Image ---- */
.hp-hero-img {
    max-width: 380px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 60px rgba(23,87,255,0.3));
    animation: hp-float 3s ease-in-out infinite;
}
@keyframes hp-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ---- Adventures + Deal Radar Side by Side ---- */
.hp-side-by-side {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}
.hp-side-left,
.hp-side-right {
    flex: 1 1 50%;
    min-width: 0;
}
.hp-adventures-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.hp-adventure-card {
    border-radius: var(--radius-lg, 16px);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid var(--border-subtle, rgba(0,0,0,0.06));
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
    display: flex;
    align-items: stretch;
}
.hp-adventure-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(23,87,255,0.18);
}
.hp-adventure-card img {
    width: 200px;
    height: 180px;
    object-fit: cover;
    flex-shrink: 0;
}
.hp-adventure-card-body {
    padding: 1.25rem 1.5rem;
}
.hp-adventure-card-body h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent, #1e3a5f);
    margin: 0 0 0.35rem;
}
.hp-adventure-card-body p {
    font-size: 0.9rem;
    color: var(--text-muted, #8892A6);
    margin: 0;
    line-height: 1.5;
}

/* ---- AI Brain ---- */
.hp-brain-section {
    background: linear-gradient(135deg, #0a0e27 0%, #121840 40%, #1a2555 70%, #0d1235 100%);
    position: relative;
    overflow: hidden;
}
.hp-brain-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(23,87,255,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hp-brain-inner {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 0 2rem;
}
.hp-brain-text {
    flex: 1;
    color: #e0e8ff;
}
.hp-brain-text h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}
.hp-brain-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 1rem;
    opacity: 0.85;
}
.hp-brain-text .hp-brain-whimsy {
    font-size: 1.15rem;
    font-style: italic;
    color: #93b5ff;
    border-left: 3px solid #4D82FF;
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    line-height: 1.6;
}
.hp-brain-visual {
    flex: 0 0 380px;
    text-align: center;
}
.hp-brain-visual img {
    width: 100%;
    max-width: 380px;
    border-radius: 20px;
    box-shadow: 0 20px 80px rgba(23,87,255,0.35), 0 0 120px rgba(77,130,255,0.15);
    border: 2px solid rgba(77,130,255,0.3);
}
.hp-brain-pipeline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.hp-brain-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #c8d8ff;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}
.hp-brain-step:hover {
    background: rgba(77,130,255,0.15);
}
.hp-brain-step-num {
    background: #1757FF;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .hp-section { padding: 3rem 1rem; }
    .hp-section-title { font-size: 1.75rem; }
    .hp-step-grid { grid-template-columns: 1fr; }
    .hp-about-hero h1 { font-size: 2rem; }
    .hp-radar { width: 280px; height: 280px; max-width: 280px; max-height: 280px; }
    .hp-radar-container { max-width: 340px; }
    .hp-footer-inner { flex-direction: column; }
    .hp-adventures-grid { flex-direction: column; }
    .hp-adventure-card { flex-direction: column; }
    .hp-adventure-card img { width: 100%; height: 200px; }
    .hp-side-by-side { flex-direction: column; }
    .hp-side-left, .hp-side-right { flex: 1 1 100%; }
    .hp-brain-inner { flex-direction: column; text-align: center; }
    .hp-brain-visual { flex: 0 0 auto; }
    .hp-brain-visual img { max-width: 280px; }
}
@media (max-width: 480px) {
    .hp-hero-buttons { flex-direction: column; }
    .hp-btn { width: 100%; text-align: center; }
    .hp-game-options { grid-template-columns: 1fr; }
    .hp-match-grid { grid-template-columns: repeat(3, 1fr); }
}