:root {
    --glas-bg: rgba(16, 16, 20, 0.85);
    --border-colr: rgba(184, 134, 11, 0.35);
    --accent-gold: #cca44c;
    --accent-light: #e3b652;
    --text-mute: #a0a0aa;
    --text-main: #f4f4f5;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #09090d;
    color: var(--text-main);
    font-family: 'VT323', monospace;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0d0d10;
    border-left: 2px solid var(--border-colr);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border: 2px solid #000;
    border-radius: 2px;
}

.hidden {
    display: none !important;
}

.swipe-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100vw;
    height: 100vh;
    background-color: #050507;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swipe-bee-img {
    max-width: 220px;
    height: auto;
}

.swipe-animation {
    animation: perform-swipe 1.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes perform-swipe {
    0% { left: -100%; }
    35% { left: 0; }
    65% { left: 0; }
    100% { left: 100%; }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 3, 4, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.glass-disclaimer-card {
    background: rgba(18, 16, 14, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 4px solid var(--border-colr);
    outline: 2px solid #000;
    border-radius: 4px;
    width: 90%;
    max-width: 480px;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.modal-brand-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.froggie-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--accent-gold);
    box-shadow: 0 0 12px rgba(184, 134, 11, 0.4);
}

.modal-brand-header h2 {
    font-size: 2.2rem;
    color: var(--accent-gold);
    text-shadow: 2px 2px 0px #000;
}

.froggie-tag {
    font-size: 1.2rem;
    color: var(--text-mute);
}

.scroll-disclaimer-box {
    height: 200px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.45);
    border: 3px solid rgba(255, 255, 255, 0.05);
    outline: 1px solid #000;
    padding: 14px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 1.15rem;
    color: var(--text-mute);
    line-height: 1.35;
}

.scroll-disclaimer-box h3 {
    color: var(--accent-gold);
    font-size: 1.3rem;
}

.scroll-end-tag {
    text-align: center;
    color: var(--accent-gold);
    font-size: 1.1rem;
    margin-top: 10px;
}

.modal-footer {
    display: flex;
    justify-content: center;
}

.disclaimer-btn {
    width: 100%;
    padding: 10px 18px;
    border-radius: 4px;
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.btn-disabled {
    background: rgba(35, 35, 42, 0.8) !important;
    color: #666670 !important;
    border: 3px solid #222228 !important;
    outline: 1px solid #000;
    cursor: not-allowed;
}

.btn-unlocked {
    background: #cca44c !important;
    color: #000 !important;
    border: 3px solid #e3b652 !important;
    outline: 2px solid #000;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 0 16px rgba(184, 134, 11, 0.5);
    animation: pulseYellow 1.5s infinite alternate;
}

@keyframes pulseYellow {
    from {
        box-shadow: 0 0 10px rgba(184, 134, 11, 0.4);
        transform: scale(1);
    }
    to {
        box-shadow: 0 0 22px rgba(227, 182, 82, 0.8);
        transform: scale(1.02);
    }
}

.btn-bee-icon {
    width: 24px;
    height: auto;
}

#arcade-app-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: #09090d;
}

.view-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    flex-direction: column;
    z-index: 10;
    background: #09090d;
}

.view-panel.active {
    display: flex !important;
    z-index: 20;
}

#games-home-view {
    z-index: 20;
}

#game-player-view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000;
    z-index: 50;
}

.arcade-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: rgba(10, 10, 13, 0.9);
    border-bottom: 3px solid var(--border-colr);
    outline: 2px solid #000;
    flex-shrink: 0;
}

.arcade-title-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.arcade-bee-logo {
    width: 42px;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(184, 134, 11, 0.4));
}

.arcade-title {
    font-size: 2.2rem;
    color: var(--accent-gold);
    text-shadow: 2px 2px 0px #000;
    line-height: 1;
}

.arcade-sub {
    font-size: 1.1rem;
    color: var(--text-mute);
}

.arcade-search-box {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border: 3px solid var(--border-colr);
    outline: 1px solid #000;
    padding: 4px 12px;
    border-radius: 4px;
    gap: 8px;
    width: 240px;
    transition: all 0.25s ease;
}

.arcade-search-box:focus-within {
    border-color: var(--accent-gold);
    box-shadow: 0 0 14px rgba(184, 134, 11, 0.5);
}

.arcade-search-box i {
    color: var(--accent-gold);
    font-size: 1rem;
}

.custom-search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.arcade-search-box input {
    background: transparent;
    border: none;
    color: transparent;
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    outline: none;
    width: 100%;
    caret-color: transparent;
    z-index: 2;
}

.arcade-search-box input::placeholder {
    color: #666670;
    font-family: 'VT323', monospace;
}

.search-rendered-text {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 1;
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    color: var(--accent-gold);
    white-space: pre;
}

#typed-text-label {
    color: var(--accent-gold);
    font-family: 'VT323', monospace;
}

.search-type-cursor {
    color: var(--accent-gold);
    font-family: 'VT323', monospace;
    font-size: 1.4rem;
    font-weight: bold;
    animation: blinkCursor 0.7s infinite;
}

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.arcade-viewport {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.game-card {
    position: relative;
    background: rgba(16, 16, 20, 0.9);
    border: 3px solid var(--border-colr);
    outline: 2px solid #000;
    border-radius: 4px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    box-shadow: inset 0 0 10px rgba(184, 134, 11, 0.08), 0 4px 12px rgba(0, 0, 0, 0.4);
    animation: cardEntrance 0.35s ease-out forwards;
}

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

.game-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -70%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.15) 30%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0.15) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: all 0.65s ease;
    opacity: 0;
    pointer-events: none;
    z-index: 8;
}

.game-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: var(--accent-gold);
    box-shadow: inset 0 0 16px rgba(184, 134, 11, 0.25), 0 12px 28px rgba(0, 0, 0, 0.7);
}

.game-card:hover::after {
    left: 140%;
    opacity: 1;
}

.card-thumb-wrapper {
    position: relative;
    width: 100%;
    height: 150px;
    background: #000;
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.game-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.game-card:hover .game-thumb {
    transform: scale(1.1);
}

.card-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 4;
}

.game-card:hover .card-hover-overlay {
    opacity: 1;
}

.play-pill {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-gold) 100%);
    color: #000;
    font-weight: 800;
    font-size: 1.35rem;
    padding: 6px 18px;
    border-radius: 4px;
    border: 2px solid #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6), 0 0 10px rgba(204, 164, 76, 0.6);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-card:hover .play-pill {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.8), 0 0 16px rgba(227, 182, 82, 0.9);
}

.play-pill i {
    font-size: 1.1rem;
}

.card-details h3 {
    font-size: 1.4rem;
    color: var(--text-main);
    line-height: 1.1;
}

.genre-tag {
    font-size: 1.1rem;
    color: var(--text-mute);
}

.player-header {
    height: 56px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background: rgba(10, 10, 13, 0.95);
    border-bottom: 3px solid var(--border-colr);
    outline: 2px solid #000;
    flex-shrink: 0;
    z-index: 60;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-bee-icon {
    width: 28px;
    height: auto;
}

.player-game-title {
    font-size: 1.8rem;
    color: var(--accent-gold);
    text-shadow: 2px 2px 0px #000;
}

.player-froggie-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
    margin-left: 6px;
}

.player-froggie-tag {
    font-size: 1.1rem;
    color: var(--text-mute);
}

.exit-btn {
    background: rgba(184, 134, 11, 0.25);
    border: 3px solid var(--accent-gold);
    outline: 1px solid #000;
    color: var(--accent-gold);
    padding: 6px 18px;
    font-family: 'VT323', monospace;
    font-size: 1.3rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.exit-btn:hover {
    background: rgba(184, 134, 11, 0.45);
    transform: scale(1.05);
}

.player-viewport {
    width: 100%;
    height: calc(100vh - 56px);
    background: #000000;
    position: relative;
    flex: 1;
}

.game-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #000000;
    display: block;
}
