/* Hub — arcade marquee selection screen */

.hub-container {
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 20px 60px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ---------- Hero / Slot machine signature ---------- */
.hero-stage {
    padding: 40px 32px 34px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    position: relative;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-amber);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple) 55%, var(--accent-rose));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin: 2px 0 4px;
}

.hero-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 420px;
    margin-bottom: 18px;
}

.slot-machine {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.slot-ring {
    position: absolute;
    top: -18px;
    left: 50%;
    width: 220px;
    height: 220px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--accent-blue), var(--accent-purple), var(--accent-rose), var(--accent-amber), var(--accent-emerald), var(--accent-blue));
    filter: blur(2px);
    opacity: 0.35;
    animation: spinRing 6s linear infinite;
    z-index: 0;
}
@keyframes spinRing { to { transform: translateX(-50%) rotate(360deg); } }

.slot-reel {
    position: relative;
    z-index: 1;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: var(--color-surface);
    border: 3px solid var(--color-border);
    box-shadow: var(--shadow-card), inset 0 0 0 6px rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    line-height: 1;
}
.slot-icon .icon-img { width: 52px; height: 52px; }
.slot-reel.spinning .slot-icon {
    animation: reelPulse 0.12s linear infinite;
}
@keyframes reelPulse {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(0.86) rotate(8deg); }
    100% { transform: scale(1) rotate(0deg); }
}
.slot-reel.landed .slot-icon {
    animation: reelLand 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes reelLand {
    0% { transform: scale(1.5) rotate(-10deg); opacity: 0; }
    60% { transform: scale(0.9) rotate(4deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); }
}

.slot-lever {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 34px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    background: var(--color-primary-gradient);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: var(--shadow-glow-lg), 0 10px 0 rgba(0, 0, 0, 0.18);
    transition: transform 0.12s ease;
}
.slot-lever .material-symbols-outlined { font-size: 26px; }
.slot-lever:hover { transform: translateY(-2px); }
.slot-lever:active {
    transform: translateY(4px);
    box-shadow: var(--shadow-glow), 0 4px 0 rgba(0, 0, 0, 0.18);
}
.slot-lever:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.slot-status {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    min-height: 1.2em;
}
.slot-status.picked {
    color: var(--accent-emerald);
    font-weight: 700;
}

/* ---------- Game grid ---------- */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.game-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px 20px;
    text-decoration: none;
    color: var(--text-primary);
    overflow: hidden;
    cursor: pointer;
    --glow: var(--accent-blue);
}

.game-card::before {
    content: '';
    position: absolute;
    inset: -40% -40% auto auto;
    width: 160px;
    height: 160px;
    background: var(--glow);
    filter: blur(60px);
    opacity: 0.25;
    border-radius: 50%;
    transition: opacity 0.3s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--glow);
}
.game-card:hover::before { opacity: 0.4; }
.game-card:active { transform: translateY(-1px) scale(0.98); }

.game-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: color-mix(in srgb, var(--glow) 18%, transparent);
    border: 1px solid color-mix(in srgb, var(--glow) 45%, transparent);
    box-shadow: 0 0 20px color-mix(in srgb, var(--glow) 35%, transparent);
    position: relative;
    z-index: 1;
}
.game-card-icon .icon-img { width: 34px; height: 34px; }

.game-card-name {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    position: relative;
    z-index: 1;
}
.game-card-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--glow);
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}
.game-card-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    position: relative;
    z-index: 1;
}
.game-card-cta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--glow);
    position: relative;
    z-index: 1;
}
.game-card-cta .material-symbols-outlined { font-size: 18px; transition: transform 0.2s ease; }
.game-card:hover .game-card-cta .material-symbols-outlined { transform: translateX(3px); }

/* ---------- Footer ---------- */
.hub-footer {
    text-align: center;
    padding-top: 8px;
}
.hub-footer p {
    font-size: 0.76rem;
    color: var(--text-muted);
}

/* ---------- Ad slot (Google AdSense) ---------- */
.ad-slot { min-height: 100px; display: flex; align-items: center; justify-content: center; margin: 4px 0; }

/* ---------- Help / guide game list ---------- */
#help-game-list { grid-template-columns: 1fr; max-height: 320px; }
.help-game-row { flex-direction: column; align-items: flex-start; gap: 4px; --glow: #8b5cf6; }
.help-game-row .result-player { font-size: 0.92rem; }
#help-game-list .result-value {
    font-weight: 500; font-size: 0.8rem; line-height: 1.4; color: var(--text-secondary);
    background: none; border: none; padding: 0;
}
.help-game-icon { width: 22px; height: 22px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 15px; background: color-mix(in srgb, var(--glow) 18%, transparent); }
.help-game-icon .icon-img { width: 14px; height: 14px; }

@media (max-width: 640px) {
    .hero-stage { padding: 30px 18px 26px; }
    .slot-reel { width: 104px; height: 104px; font-size: 44px; }
    .slot-icon .icon-img { width: 40px; height: 40px; }
    .slot-ring { width: 180px; height: 180px; }

    .game-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .game-card { padding: 14px 12px; gap: 6px; }
    .game-card-icon { width: 44px; height: 44px; border-radius: 14px; font-size: 24px; }
    .game-card-icon .icon-img { width: 26px; height: 26px; }
    .game-card-tag { font-size: 0.6rem; }
    .game-card-name { font-size: 0.92rem; }
    .game-card-desc { display: none; }
    .game-card-cta { font-size: 0.74rem; }
    .game-card-cta .material-symbols-outlined { font-size: 16px; }
}
