/* ==========================================================================
   POKÉMON GUESS WHO (УГАДАЙ КТО?) - 1-SCREEN ULTRA EDITION CSS
   ========================================================================== */

/* Main Container fits seamlessly within PC viewport */
.gw-container,
.gw-container *,
.gw-modal,
.gw-modal * {
    font-family: 'Minecraft', 'Press Start 2P', 'Courier New', monospace !important;
}

.gw-container {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    padding: 6px 16px;
    color: #e2e8f0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

/* 1. Header (Compact Single Line) */
.gw-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 10px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}
.gw-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.gw-title-compact {
    font-family: 'Minecraft', monospace;
    font-size: 1.25rem;
    color: #f6ad55;
    display: flex;
    align-items: center;
    gap: 8px;
}
.gw-edition-badge {
    font-size: 0.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}
.gw-hint-compact {
    font-size: 0.76rem;
    color: #94a3b8;
}
.gw-stats-badge-compact {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(245, 158, 11, 0.35);
    color: #f6ad55;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 0.74rem;
    font-weight: 600;
}

/* 2. Control Bar (Compact Single Line) */
.gw-control-bar-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 6px 14px;
    margin-bottom: 6px;
    flex-shrink: 0;
}
.gw-ctrl-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.gw-ctrl-tag {
    font-size: 0.74rem;
    color: #94a3b8;
    font-weight: 600;
}
.gw-btn-group-mini {
    display: inline-flex;
    background: rgba(30, 41, 59, 0.85);
    border-radius: 6px;
    padding: 2px;
    gap: 1px;
}
.gw-btn-mini {
    border: none;
    background: transparent;
    color: #cbd5e1;
    font-size: 0.74rem;
    padding: 4px 9px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.12s;
}
.gw-btn-mini:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}
.gw-btn-mini.active {
    background: #3b82f6;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 1px 6px rgba(59, 130, 246, 0.4);
}
.gw-select-mini {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.74rem;
    outline: none;
    cursor: pointer;
}
.gw-btn-toggle-mini {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    font-size: 0.74rem;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
}
.gw-btn-toggle-mini.active {
    background: #10b981;
    border-color: #059669;
    color: #fff;
}
.gw-btn-action-mini {
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    font-size: 0.74rem;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
}
.gw-btn-action-mini:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #fff;
}

/* 3. HUD Tray (Compact Single Line) */
.gw-hud-tray-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 6px 14px;
    margin-bottom: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}
.gw-secret-slot-compact {
    flex-shrink: 0;
}
.gw-secret-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.45);
    border: 1.5px solid #f59e0b;
    border-radius: 8px;
    padding: 4px 10px;
}
.gw-secret-img-box {
    position: relative;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gw-secret-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.gw-secret-hidden-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: #0f172a;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1.1rem;
}
.gw-secret-card.is-hidden-secret .gw-secret-img {
    filter: blur(8px) grayscale(1);
}
.gw-secret-card.is-hidden-secret .gw-secret-hidden-overlay {
    display: flex;
}
.gw-secret-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.gw-secret-header-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.gw-secret-title {
    line-height: 1 !important;
    margin: 0 !important;
    font-size: 0.64rem;
    text-transform: uppercase;
    color: #fbbf24;
    font-weight: 700;
}
.gw-secret-eye-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.72rem;
    padding: 0;
}
.gw-secret-eye-btn:hover { color: #fff; }
.gw-secret-name {
    font-size: 0.92rem;
    font-weight: bold;
    color: #fff;
    line-height: 1.1;
}
.gw-secret-dex {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: normal;
}
.gw-secret-meta {
    display: flex;
    gap: 3px;
}
.gw-secret-tags-row {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}
.gw-secret-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: 4px;
}
.gw-secret-btn-opt {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-size: 0.62rem;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}
.gw-secret-btn-opt:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

/* HUD Controls */
.gw-hud-controls-compact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    flex-grow: 1;
}
.gw-hud-top-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.gw-badge-turn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.74rem;
    font-weight: 600;
}
.gw-turn-player {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid #3b82f6;
    color: #60a5fa;
}
.gw-turn-opponent {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #f87171;
}

.gw-pbar-wrap-compact {
    display: flex;
    gap: 12px;
}
.gw-pbar-mini-box {
    font-size: 0.7rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}
.gw-pbar-mini-box strong { color: #fff; }
.gw-pbar-mini-track {
    width: 70px;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}
.gw-pbar-fill {
    height: 100%;
    transition: width 0.3s ease;
}
.gw-fill-user { background: #3b82f6; }
.gw-fill-bot { background: #ef4444; }

.gw-hud-btns-compact {
    display: flex;
    gap: 8px;
}
.gw-hbtn {
    border: none;
    border-radius: 6px;
    padding: 7px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s;
}
.gw-btn-ask {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}
.gw-btn-ask:hover { filter: brightness(1.1); transform: translateY(-1px); }
.gw-btn-guess {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
}
.gw-btn-guess:hover { filter: brightness(1.1); transform: translateY(-1px); }
.gw-btn-guess.active {
    background: #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.7);
    animation: gw-pulse 1s infinite alternate;
}
.gw-btn-help {
    background: rgba(51, 65, 85, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}
.gw-btn-help:hover { background: rgba(71, 85, 105, 0.9); color: #fff; }
.gw-btn-reset-cards {
    background: rgba(51, 65, 85, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
}
.gw-btn-reset-cards:hover { background: rgba(71, 85, 105, 0.7); color: #fff; }

/* 4. Strict 1-Screen 3D Board Layout */
.gw-board-container-1screen {
    perspective: 1200px;
    perspective-origin: 50% 20%;
    background: radial-gradient(circle at 50% 15%, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.98));
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 14px;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.55);
}

/* Custom sleek scrollbar for board container if cards overflow */
.gw-board-container-1screen::-webkit-scrollbar {
    width: 6px;
}
.gw-board-container-1screen::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.gw-board-grid {
    display: grid;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

/* Grid Layouts - Comfortable, Spacious & Scrollable */


@media (max-width: 1200px) {
    .gw-grid-50 { grid-template-columns: repeat(6, minmax(125px, 1fr)); }
    .gw-grid-100 { grid-template-columns: repeat(6, minmax(120px, 1fr)); }
}
@media (max-width: 900px) {
    .gw-grid-36 { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
    .gw-grid-50 { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
    .gw-grid-100 { grid-template-columns: repeat(5, minmax(115px, 1fr)); }
}

/* STRICT UNIFORM 3D TILE */
.gw-tile {
    position: relative;
    cursor: pointer;
    user-select: none;
    transform-style: preserve-3d;
    box-sizing: border-box;
    width: 100%;
}
.gw-tile:hover {
    transform: translateY(-2px);
}

/* Stand */
.gw-stand {
    position: absolute;
    bottom: -3px;
    left: 8%;
    right: 8%;
    height: 5px;
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
    border-radius: 3px;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* Card Face (Uniform Spacious Sizing for ALL modes) */
.gw-card-face {
    height: 136px !important;
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 5px 6px !important;
    text-align: center;
    position: relative;
    transform-origin: bottom center;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s, filter 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 2;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.gw-card-img-wrap {
    height: 60px !important;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gw-card-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45));
    transition: transform 0.2s ease;
}
.gw-tile:hover .gw-card-img {
    transform: scale(1.08);
}

.gw-card-name {
    font-size: 0.76rem !important;
    font-weight: bold;
    color: #f8fafc;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Minecraft', monospace !important;
    line-height: 1.1;
    margin: 2px 0 3px 0;
}

/* Card Knocked Down state */
.gw-tile.is-down .gw-card-face {
    transform: rotateX(74deg) scale(0.92);
    opacity: 0.28;
    filter: grayscale(0.85) brightness(0.5);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.gw-tile.is-down .gw-stand {
    background: #475569;
}

/* Card Back Pokéball */
.gw-card-back {
    display: none;
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: #1e293b;
    border: 1px solid #475569;
    z-index: 1;
}

/* Hover preview match in constructor */
.gw-tile.gw-preview-match .gw-card-face {
    border-color: #10b981;
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.65);
    transform: translateY(-3px) scale(1.03);
}
.gw-tile.gw-preview-dim .gw-card-face {
    opacity: 0.35;
    filter: grayscale(0.7);
}

/* Card Internal Details */
.gw-card-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 2px;
    height: 14px;
}
.gw-card-num {
    font-size: 0.62rem;
    color: #64748b;
    font-weight: bold;
}
.gw-card-tag-icons {
    display: flex;
    gap: 2px;
}
.gw-card-info-btn {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    font-size: 0.72rem;
    padding: 0;
}
.gw-card-info-btn:hover {
    color: #3b82f6;
}

.gw-card-img-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.gw-card-img-wrap img {
    max-width: 90%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.45));
}
.gw-card-name {
    font-size: 0.70rem;
    font-weight: bold;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 96%;
    height: 16px;
    line-height: 16px;
    text-align: center;
    margin: 1px auto 2px auto;
}
.gw-card-types {
    display: flex;
    justify-content: center;
    gap: 3px;
    width: 100%;
    padding: 0 4px;
    box-sizing: border-box;
    height: 16px;
    align-items: center;
    overflow: hidden;
}

/* 5. VIBRANT NEON POKÉMON TYPE BADGES (ALL 18 TYPES) */
.gw-badge-type {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 1px 4px;
    border-radius: 4px;
    font-size: 0.52rem;
    font-weight: 700;
    text-transform: capitalize;
    letter-spacing: 0.2px;
    white-space: nowrap;
    line-height: 1;
    backdrop-filter: blur(4px);
    box-sizing: border-box;
    transition: transform 0.15s, box-shadow 0.15s;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 50%;
}
.gw-badge-type span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.gw-badge-type.gw-is-single {
    max-width: 85%;
    padding: 1.5px 6px;
    gap: 3px;
    font-size: 0.55rem;
}
.gw-badge-type:hover {
    transform: scale(1.05);
}
.gw-badge-type.gw-badge-mini {
    padding: 1px 3px;
    font-size: 0.46rem;
    gap: 1.5px;
}
.gw-type-icon {
    width: 10px;
    height: 10px;
    object-fit: contain;
    flex-shrink: 0;
}
.gw-badge-mini .gw-type-icon {
    width: 9px;
    height: 9px;
}

/* 18 Official Neon Types */
.gw-neon-fire {
    background: rgba(238, 129, 48, 0.22) !important;
    border: 1px solid #ee8130 !important;
    color: #ffc49e !important;
    box-shadow: 0 0 8px rgba(238, 129, 48, 0.5), inset 0 0 4px rgba(238, 129, 48, 0.25) !important;
    text-shadow: 0 0 5px rgba(238, 129, 48, 0.8) !important;
}
.gw-neon-fire .gw-type-icon { filter: drop-shadow(0 0 3px #ee8130); }

.gw-neon-water {
    background: rgba(56, 189, 248, 0.22) !important;
    border: 1px solid #38bdf8 !important;
    color: #bae6fd !important;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.5), inset 0 0 4px rgba(56, 189, 248, 0.25) !important;
    text-shadow: 0 0 5px rgba(56, 189, 248, 0.8) !important;
}
.gw-neon-water .gw-type-icon { filter: drop-shadow(0 0 3px #38bdf8); }

.gw-neon-grass {
    background: rgba(74, 222, 128, 0.22) !important;
    border: 1px solid #4ade80 !important;
    color: #bbf7d0 !important;
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.5), inset 0 0 4px rgba(74, 222, 128, 0.25) !important;
    text-shadow: 0 0 5px rgba(74, 222, 128, 0.8) !important;
}
.gw-neon-grass .gw-type-icon { filter: drop-shadow(0 0 3px #4ade80); }

.gw-neon-electric {
    background: rgba(250, 204, 21, 0.25) !important;
    border: 1px solid #facc15 !important;
    color: #fef08a !important;
    box-shadow: 0 0 9px rgba(250, 204, 21, 0.55), inset 0 0 4px rgba(250, 204, 21, 0.3) !important;
    text-shadow: 0 0 5px rgba(250, 204, 21, 0.8) !important;
}
.gw-neon-electric .gw-type-icon { filter: drop-shadow(0 0 3px #facc15); }

.gw-neon-ice {
    background: rgba(103, 232, 249, 0.22) !important;
    border: 1px solid #67e8f9 !important;
    color: #cffafe !important;
    box-shadow: 0 0 8px rgba(103, 232, 249, 0.5), inset 0 0 4px rgba(103, 232, 249, 0.25) !important;
    text-shadow: 0 0 5px rgba(103, 232, 249, 0.8) !important;
}
.gw-neon-ice .gw-type-icon { filter: drop-shadow(0 0 3px #67e8f9); }

.gw-neon-fighting {
    background: rgba(248, 113, 113, 0.22) !important;
    border: 1px solid #f87171 !important;
    color: #fecaca !important;
    box-shadow: 0 0 8px rgba(248, 113, 113, 0.5), inset 0 0 4px rgba(248, 113, 113, 0.25) !important;
    text-shadow: 0 0 5px rgba(248, 113, 113, 0.8) !important;
}
.gw-neon-fighting .gw-type-icon { filter: drop-shadow(0 0 3px #f87171); }

.gw-neon-poison {
    background: rgba(192, 132, 252, 0.22) !important;
    border: 1px solid #c084fc !important;
    color: #f3e8ff !important;
    box-shadow: 0 0 8px rgba(192, 132, 252, 0.5), inset 0 0 4px rgba(192, 132, 252, 0.25) !important;
    text-shadow: 0 0 5px rgba(192, 132, 252, 0.8) !important;
}
.gw-neon-poison .gw-type-icon { filter: drop-shadow(0 0 3px #c084fc); }

.gw-neon-ground {
    background: rgba(226, 191, 101, 0.22) !important;
    border: 1px solid #e2bf65 !important;
    color: #fef3c7 !important;
    box-shadow: 0 0 8px rgba(226, 191, 101, 0.5), inset 0 0 4px rgba(226, 191, 101, 0.25) !important;
    text-shadow: 0 0 5px rgba(226, 191, 101, 0.8) !important;
}
.gw-neon-ground .gw-type-icon { filter: drop-shadow(0 0 3px #e2bf65); }

.gw-neon-flying {
    background: rgba(167, 139, 250, 0.22) !important;
    border: 1px solid #a78bfa !important;
    color: #ede9fe !important;
    box-shadow: 0 0 8px rgba(167, 139, 250, 0.5), inset 0 0 4px rgba(167, 139, 250, 0.25) !important;
    text-shadow: 0 0 5px rgba(167, 139, 250, 0.8) !important;
}
.gw-neon-flying .gw-type-icon { filter: drop-shadow(0 0 3px #a78bfa); }

.gw-neon-psychic {
    background: rgba(244, 114, 182, 0.22) !important;
    border: 1px solid #f472b6 !important;
    color: #fce7f3 !important;
    box-shadow: 0 0 8px rgba(244, 114, 182, 0.5), inset 0 0 4px rgba(244, 114, 182, 0.25) !important;
    text-shadow: 0 0 5px rgba(244, 114, 182, 0.8) !important;
}
.gw-neon-psychic .gw-type-icon { filter: drop-shadow(0 0 3px #f472b6); }

.gw-neon-bug {
    background: rgba(163, 230, 53, 0.22) !important;
    border: 1px solid #a3e635 !important;
    color: #ecfccb !important;
    box-shadow: 0 0 8px rgba(163, 230, 53, 0.5), inset 0 0 4px rgba(163, 230, 53, 0.25) !important;
    text-shadow: 0 0 5px rgba(163, 230, 53, 0.8) !important;
}
.gw-neon-bug .gw-type-icon { filter: drop-shadow(0 0 3px #a3e635); }

.gw-neon-rock {
    background: rgba(182, 161, 54, 0.25) !important;
    border: 1px solid #b6a136 !important;
    color: #fef9c3 !important;
    box-shadow: 0 0 8px rgba(182, 161, 54, 0.5), inset 0 0 4px rgba(182, 161, 54, 0.25) !important;
    text-shadow: 0 0 5px rgba(182, 161, 54, 0.8) !important;
}
.gw-neon-rock .gw-type-icon { filter: drop-shadow(0 0 3px #b6a136); }

.gw-neon-ghost {
    background: rgba(168, 85, 247, 0.22) !important;
    border: 1px solid #a855f7 !important;
    color: #f3e8ff !important;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.5), inset 0 0 4px rgba(168, 85, 247, 0.25) !important;
    text-shadow: 0 0 5px rgba(168, 85, 247, 0.8) !important;
}
.gw-neon-ghost .gw-type-icon { filter: drop-shadow(0 0 3px #a855f7); }

.gw-neon-dragon {
    background: rgba(129, 140, 248, 0.22) !important;
    border: 1px solid #818cf8 !important;
    color: #e0e7ff !important;
    box-shadow: 0 0 9px rgba(129, 140, 248, 0.55), inset 0 0 4px rgba(129, 140, 248, 0.25) !important;
    text-shadow: 0 0 5px rgba(129, 140, 248, 0.8) !important;
}
.gw-neon-dragon .gw-type-icon { filter: drop-shadow(0 0 3px #818cf8); }

.gw-neon-steel {
    background: rgba(203, 213, 225, 0.22) !important;
    border: 1px solid #cbd5e1 !important;
    color: #f8fafc !important;
    box-shadow: 0 0 8px rgba(203, 213, 225, 0.5), inset 0 0 4px rgba(203, 213, 225, 0.25) !important;
    text-shadow: 0 0 5px rgba(203, 213, 225, 0.8) !important;
}
.gw-neon-steel .gw-type-icon { filter: drop-shadow(0 0 3px #cbd5e1); }

.gw-neon-dark {
    background: rgba(251, 146, 60, 0.2) !important;
    border: 1px solid #fb923c !important;
    color: #ffedd5 !important;
    box-shadow: 0 0 8px rgba(251, 146, 60, 0.45), inset 0 0 4px rgba(251, 146, 60, 0.2) !important;
    text-shadow: 0 0 5px rgba(251, 146, 60, 0.8) !important;
}
.gw-neon-dark .gw-type-icon { filter: drop-shadow(0 0 3px #fb923c); }

.gw-neon-fairy {
    background: rgba(244, 114, 182, 0.25) !important;
    border: 1px solid #f472b6 !important;
    color: #fce7f3 !important;
    box-shadow: 0 0 9px rgba(244, 114, 182, 0.55), inset 0 0 4px rgba(244, 114, 182, 0.3) !important;
    text-shadow: 0 0 5px rgba(244, 114, 182, 0.8) !important;
}
.gw-neon-fairy .gw-type-icon { filter: drop-shadow(0 0 3px #f472b6); }

.gw-neon-normal {
    background: rgba(168, 167, 122, 0.22) !important;
    border: 1px solid #a8a77a !important;
    color: #fefce8 !important;
    box-shadow: 0 0 8px rgba(168, 167, 122, 0.45), inset 0 0 4px rgba(168, 167, 122, 0.2) !important;
    text-shadow: 0 0 5px rgba(168, 167, 122, 0.8) !important;
}
.gw-neon-normal .gw-type-icon { filter: drop-shadow(0 0 3px #a8a77a); }

/* 6. RUSSIAN TAG PILLS */
.gw-pill-tag {
    font-size: 0.6rem;
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}
.gw-tag-starter { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid #10b981; }
.gw-tag-legend  { background: rgba(245, 158, 11, 0.25); color: #fbbf24; border: 1px solid #f59e0b; }
.gw-tag-mythic  { background: rgba(168, 85, 247, 0.25); color: #c084fc; border: 1px solid #a855f7; }
.gw-tag-pseudo  { background: rgba(249, 115, 22, 0.25); color: #fb923c; border: 1px solid #f97316; }
.gw-tag-baby    { background: rgba(236, 72, 153, 0.2); color: #f472b6; border: 1px solid #ec4899; }
.gw-tag-fossil  { background: rgba(180, 83, 9, 0.25); color: #d97706; border: 1px solid #b45309; }
.gw-tag-paradox { background: rgba(6, 182, 212, 0.25); color: #22d3ee; border: 1px solid #06b6d4; }
.gw-tag-ub      { background: rgba(147, 51, 234, 0.25); color: #a855f7; border: 1px solid #9333ea; }
.gw-tag-gen     { background: rgba(100, 116, 139, 0.2); color: #94a3b8; border: 1px solid #64748b; }
.gw-tag-mega    { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid #ef4444; }
.gw-tag-gmax    { background: rgba(234, 88, 12, 0.2); color: #fb923c; border: 1px solid #ea580c; }

/* 7. History Ticker (Compact Horizontal) */
.gw-history-bar-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 4px 12px;
    margin-top: 6px;
    flex-shrink: 0;
    overflow-x: auto;
    white-space: nowrap;
}
.gw-ticker-title {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 600;
    flex-shrink: 0;
}
.gw-history-ticker {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}
.gw-history-empty {
    font-size: 0.72rem;
    color: #64748b;
    font-style: italic;
}
.gw-ticker-chip {
    font-size: 0.72rem;
    background: rgba(30, 41, 59, 0.85);
    border-radius: 5px;
    padding: 3px 8px;
    border-left: 2.5px solid #3b82f6;
    color: #e2e8f0;
}
.gw-chip-bot {
    border-left-color: #ef4444;
}
.gw-ans-yes { color: #34d399; }
.gw-ans-no  { color: #f87171; }

/* 8. Banners & Alerts */
.gw-banner {
    padding: 7px 14px;
    border-radius: 6px;
    text-align: center;
    font-weight: bold;
    font-size: 0.82rem;
    margin-bottom: 6px;
    flex-shrink: 0;
}
.gw-banner-pick { background: linear-gradient(90deg, #3b82f6, #1d4ed8); color: #fff; }
.gw-banner-guess { background: linear-gradient(90deg, #dc2626, #b91c1c); color: #fff; }
.gw-answer-alert {
    display: none;
    text-align: center;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: bold;
    margin-bottom: 6px;
    flex-shrink: 0;
}
.gw-answer-alert.show { display: block; }
.gw-alert-yes { background: rgba(16, 185, 129, 0.2); border: 1px solid #10b981; color: #34d399; }
.gw-alert-no  { background: rgba(239, 68, 68, 0.2); border: 1px solid #ef4444; color: #f87171; }

/* 9. Modals (Question constructor & Dossier) */
.gw-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.gw-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}
.gw-modal-content {
    position: relative;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65);
    z-index: 2;
    overflow: hidden;
}
.gw-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.gw-modal-header h3 {
    margin: 0;
    font-size: 1rem;
    color: #f8fafc;
    display: flex;
    align-items: center;
    gap: 8px;
}
.gw-modal-subhint {
    background: rgba(59, 130, 246, 0.1);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    padding: 6px 18px;
    font-size: 0.72rem;
    color: #93c5fd;
}
.gw-modal-close {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.4rem;
    cursor: pointer;
}
.gw-qtabs-row {
    display: flex;
    gap: 5px;
    padding: 8px 16px;
    background: rgba(15, 23, 42, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    overflow-x: auto;
}
.gw-qtab-btn {
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    font-size: 0.74rem;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
}
.gw-qtab-btn.active { background: #3b82f6; color: #fff; font-weight: 600; }
.gw-questions-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.gw-q-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 7px;
    padding: 9px 14px;
    cursor: pointer;
    transition: all 0.12s;
    gap: 8px;
}
.gw-q-item:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    transform: translateX(2px);
}
.gw-q-text { font-size: 0.82rem; color: #f1f5f9; flex-grow: 1; }
.gw-q-badge {
    font-size: 0.66rem;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
}
.gw-eff-perfect { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid #10b981; }
.gw-eff-good    { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid #3b82f6; }
.gw-eff-risky   { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid #f59e0b; }
.gw-eff-useless { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.4); }
.gw-custom-q-row {
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.gw-custom-input {
    flex-grow: 1;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 8px 12px;
    color: #fff;
    font-size: 0.8rem;
    outline: none;
}
.gw-btn-ask-custom {
    background: #10b981;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

/* Dossier Modal */
.gw-insp-content {
    max-width: 760px !important;
    width: 95vw !important;
    max-height: 88vh !important;
    background: #0f172a !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.8), 0 0 20px rgba(59, 130, 246, 0.25) !important;
}
.gw-insp-body {
    display: flex;
    padding: 18px 20px;
    gap: 20px;
    overflow-y: auto;
}
.gw-insp-left {
    flex: 0 0 235px;
    text-align: center;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 10px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gw-insp-img-container {
    position: relative;
    display: inline-block;
    cursor: zoom-in;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}
.gw-insp-img {
    width: 155px;
    height: 155px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.55));
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.gw-insp-img-container:hover .gw-insp-img {
    transform: scale(1.08);
}
.gw-insp-zoom-badge {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #60a5fa;
    font-size: 0.64rem;
    font-family: 'Minecraft', monospace !important;
    padding: 2px 7px;
    border-radius: 4px;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}
.gw-insp-img-container:hover .gw-insp-zoom-badge {
    background: #2563eb;
    color: #fff;
    border-color: #93c5fd;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.7);
}

.gw-insp-name { font-size: 1.05rem; font-weight: bold; color: #fff; margin: 4px 0 2px 0; }
.gw-insp-dex { font-size: 0.72rem; color: #94a3b8; }
.gw-insp-cat { font-size: 0.7rem; color: #fbbf24; font-style: italic; margin: 3px 0 6px 0; }
.gw-insp-types { display: flex; justify-content: center; gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
.gw-insp-tags-cloud { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.gw-insp-guess-btn {
    width: 100%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 0.76rem;
    font-weight: bold;
    padding: 8px 6px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    transition: all 0.15s ease;
}
.gw-insp-guess-btn:hover {
    background: linear-gradient(135deg, #f87171, #ef4444);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.7);
    transform: translateY(-1px);
}
.gw-insp-right { flex: 1; }
.gw-insp-sec-title { font-size: 0.82rem; color: #94a3b8; margin: 0 0 8px 0; }
.gw-insp-stat-grid { display: flex; flex-direction: column; gap: 6px; }
.gw-stat-row { display: flex; align-items: center; gap: 8px; font-size: 0.72rem; }
.gw-stat-row span {
    width: 86px !important;
    min-width: 86px !important;
    color: #cbd5e1;
    white-space: nowrap !important;
    flex-shrink: 0;
}
.gw-sbar { flex-grow: 1; height: 6px; background: rgba(255, 255, 255, 0.1); border-radius: 3px; overflow: hidden; }
.gw-sfill { height: 100%; background: #3b82f6; }
.gw-stat-row strong { width: 30px; text-align: right; color: #fff; flex-shrink: 0; }
.gw-insp-info-list { font-size: 0.74rem; color: #cbd5e1; display: flex; flex-direction: column; gap: 5px; }

/* Image Zoom Modal Lightbox */
.gw-zoom-modal {
    z-index: 10005 !important;
}
.gw-zoom-wrapper {
    position: relative;
    background: rgba(15, 23, 42, 0.96);
    border: 1.5px solid rgba(59, 130, 246, 0.5);
    border-radius: 14px;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.9), 0 0 25px rgba(59, 130, 246, 0.4);
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 2;
}
.gw-zoom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    background: rgba(30, 41, 59, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 12px;
}
.gw-zoom-title {
    font-family: 'Minecraft', monospace !important;
    color: #fbbf24;
    font-size: 0.95rem;
    font-weight: bold;
}
.gw-zoom-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}
.gw-zoom-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    font-family: 'Minecraft', monospace !important;
    font-size: 0.74rem;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}
.gw-zoom-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: #60a5fa;
    color: #fff;
}
.gw-zoom-close {
    font-size: 1.1rem;
    padding: 2px 9px;
    margin-left: 6px;
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.4);
}
.gw-zoom-close:hover {
    background: #ef4444;
    color: #fff;
}
.gw-zoom-pct {
    font-family: 'Minecraft', monospace !important;
    font-size: 0.74rem;
    color: #93c5fd;
    min-width: 44px;
    text-align: center;
}
.gw-zoom-body {
    padding: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: zoom-in;
    min-width: 320px;
    min-height: 320px;
    max-height: calc(85vh - 70px);
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.95) 75%);
}
.gw-zoom-img {
    max-width: 75vw;
    max-height: calc(75vh - 80px);
    object-fit: contain;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: drop-shadow(0 0 25px rgba(59, 130, 246, 0.4));
}

/* Bot Dialog */
.gw-bot-dialog-content { max-width: 440px; padding: 22px; text-align: center; }
.gw-bot-avatar-box {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.gw-bot-icon { font-size: 1.8rem; color: #fff; }
.gw-bot-question-bubble {
    background: rgba(15, 23, 42, 0.8);
    border: 2px solid #3b82f6;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: bold;
    color: #60a5fa;
    margin: 10px 0 6px 0;
}
.gw-bot-note { font-size: 0.8rem; color: #94a3b8; margin-bottom: 4px; }
.gw-bot-countdown { font-size: 0.72rem; color: #64748b; margin-bottom: 14px; }
.gw-bot-actions { display: flex; gap: 12px; justify-content: center; }
.gw-pvp-btn {
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.gw-pvp-yes { background: #10b981; color: #fff; }
.gw-pvp-no  { background: #ef4444; color: #fff; }

.gw-gameover-content { max-width: 420px; padding: 24px; text-align: center; }
.gw-gameover-title { font-family: 'Minecraft', monospace; font-size: 1.5rem; color: #fbbf24; margin: 0 0 12px 0; }
.gw-gameover-img { width: 110px; height: 110px; object-fit: contain; margin-bottom: 12px; }
.gw-gameover-desc { font-size: 0.9rem; color: #cbd5e1; margin-bottom: 18px; }
.gw-btn-play-again {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
}

/* 10. Pool Customizer Styles */
.gw-btn-pool-settings {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.5);
    color: #93c5fd;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-family: 'Minecraft', 'Press Start 2P', 'Courier New', monospace !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.gw-btn-pool-settings:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: #60a5fa;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}
.gw-pool-badge {
    background: rgba(59, 130, 246, 0.35);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.4);
    padding: 1px 6px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.72rem;
}

.gw-pool-modal-content {
    max-width: 740px !important;
    width: 95vw !important;
    max-height: 90vh !important;
    background: #0f172a !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    box-shadow: 0 0 35px rgba(15, 23, 42, 0.9), 0 0 20px rgba(59, 130, 246, 0.3) !important;
    display: flex;
    flex-direction: column;
}

.gw-pool-top-status {
    background: rgba(30, 41, 59, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.gw-pool-count-box {
    font-size: 0.82rem;
    color: #cbd5e1;
    font-family: 'Minecraft', monospace !important;
}
.gw-pool-live-num {
    font-size: 1rem;
    color: #34d399;
    margin-left: 4px;
    text-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
}

.gw-pool-presets-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.gw-presets-label {
    font-size: 0.72rem;
    color: #94a3b8;
    text-transform: uppercase;
    margin-right: 2px;
}
.gw-preset-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    font-family: 'Minecraft', monospace !important;
    font-size: 0.68rem;
    padding: 3px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.gw-preset-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: #60a5fa;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.gw-pool-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gw-pool-section {
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 14px;
}
.gw-pool-sec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.gw-pool-sec-header h4 {
    margin: 0;
    font-size: 0.8rem;
    color: #93c5fd;
    font-family: 'Minecraft', monospace !important;
    display: flex;
    align-items: center;
    gap: 6px;
}
.gw-pool-subactions {
    display: flex;
    gap: 6px;
}
.gw-pool-subactions button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    font-family: 'Minecraft', monospace !important;
    font-size: 0.64rem;
    padding: 2px 7px;
    border-radius: 4px;
    cursor: pointer;
}
.gw-pool-subactions button:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.gw-pool-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.gw-pool-chip {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    font-family: 'Minecraft', monospace !important;
    font-size: 0.72rem;
    padding: 5px 11px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}
.gw-pool-chip:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #cbd5e1;
    transform: translateY(-1px);
}
.gw-pool-chip.active {
    background: rgba(59, 130, 246, 0.25);
    border-color: #3b82f6;
    color: #60a5fa;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.35);
}

.gw-pool-types-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
}
@media (max-width: 640px) {
    .gw-pool-types-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.gw-pool-type-btn {
    border-radius: 6px;
    padding: 6px 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-family: 'Minecraft', monospace !important;
    font-size: 0.68rem;
    cursor: pointer;
    transition: all 0.18s ease;
    user-select: none;
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
}
.gw-pool-type-btn .gw-type-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}
.gw-pool-type-btn.dimmed {
    opacity: 0.35;
    filter: grayscale(85%);
    background: rgba(30, 41, 59, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: none !important;
    color: #64748b !important;
}
.gw-pool-type-btn.dimmed:hover {
    opacity: 0.65;
    filter: grayscale(40%);
}
.gw-pool-type-btn.active {
    opacity: 1;
    transform: scale(1.02);
}

.gw-pool-footer {
    background: rgba(15, 23, 42, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.gw-btn-pool-reset {
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    color: #94a3b8;
    font-family: 'Minecraft', monospace !important;
    font-size: 0.74rem;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}
.gw-btn-pool-reset:hover {
    border-color: #ef4444;
    color: #f87171;
    background: rgba(239, 68, 68, 0.1);
}
.gw-pool-footer-right {
    display: flex;
    gap: 8px;
}
.gw-btn-pool-cancel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    font-family: 'Minecraft', monospace !important;
    font-size: 0.74rem;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
}
.gw-btn-pool-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}
.gw-btn-pool-apply {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none;
    color: #fff;
    font-family: 'Minecraft', monospace !important;
    font-size: 0.76rem;
    font-weight: bold;
    padding: 7px 18px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
    transition: all 0.15s;
}
.gw-btn-pool-apply:hover {
    background: linear-gradient(135deg, #34d399, #10b981);
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.6);
}

/* ==========================================================================
   POKÉMON GUESS WHO (УГАДАЙ КТО?) - ONLINE 1V1 DUEL STYLES
   ========================================================================== */

.gw-btn-online {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(147, 51, 234, 0.25)) !important;
    border-color: rgba(96, 165, 250, 0.5) !important;
    color: #93c5fd !important;
    position: relative;
}
.gw-btn-online:hover, .gw-btn-online.active {
    background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
    color: #fff !important;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.5) !important;
}
.gw-btn-online::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    margin-left: 5px;
    box-shadow: 0 0 6px #10b981;
    animation: gwPulseDot 1.5s infinite;
}
@keyframes gwPulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.gw-online-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.5);
    padding: 3px 12px;
    border-radius: 16px;
    font-size: 0.74rem;
    color: #93c5fd;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.25);
}
.gw-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}
.gw-btn-leave-online {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    cursor: pointer;
    font-size: 0.72rem;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}
.gw-btn-leave-online:hover {
    background: #ef4444;
    color: #fff;
}

.gw-online-content {
    max-width: 480px !important;
    padding: 18px 22px !important;
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(59, 130, 246, 0.2) !important;
}

.gw-online-tabs {
    display: flex;
    gap: 8px;
    margin: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}
.gw-online-tab-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.2s;
}
.gw-online-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.gw-online-tab-btn.active {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-color: #60a5fa;
    color: #fff;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

.gw-online-form-row {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.gw-online-form-row label {
    font-size: 0.76rem;
    color: #cbd5e1;
    font-weight: 700;
}
.gw-online-input {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 8px 12px;
    color: #fff;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}
.gw-online-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}
.gw-code-input {
    text-align: center;
    font-size: 1.4rem !important;
    letter-spacing: 4px;
    font-weight: 900;
    color: #f59e0b !important;
}

.gw-btn-online-create, .gw-btn-online-join {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, #10b981, #059669);
    border: 1px solid #34d399;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}
.gw-btn-online-create:hover, .gw-btn-online-join:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #059669, #047857);
}

.gw-online-share-box {
    margin-top: 14px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    padding: 14px;
    text-align: center;
}
.gw-online-code-banner {
    margin-bottom: 12px;
}
.gw-code-label {
    display: block;
    font-size: 0.7rem;
    color: #94a3b8;
    letter-spacing: 1px;
}
.gw-code-number {
    font-size: 2.2rem;
    color: #fbbf24;
    letter-spacing: 6px;
    text-shadow: 0 0 16px rgba(251, 191, 36, 0.4);
}
.gw-online-link-row {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}
.gw-online-link-input {
    flex: 1;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    padding: 6px 10px;
    color: #93c5fd;
    font-size: 0.74rem;
    outline: none;
}
.gw-btn-copy-link {
    background: #2563eb;
    border: 1px solid #60a5fa;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.74rem;
    font-weight: 700;
    transition: all 0.2s;
    white-space: nowrap;
}
.gw-btn-copy-link:hover {
    background: #1d4ed8;
}
.gw-btn-tg-share {
    width: 100%;
    background: #0284c7;
    border: 1px solid #38bdf8;
    color: #fff;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.2s;
}
.gw-btn-tg-share:hover {
    background: #0369a1;
}

.gw-online-waiting-status {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.74rem;
    color: #cbd5e1;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 6px;
    padding: 8px 12px;
}
.gw-online-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: gwSpin 1s infinite linear;
    flex-shrink: 0;
}

.gw-incoming-q-content {
    max-width: 440px !important;
    padding: 18px 22px !important;
    text-align: center;
    background: linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%) !important;
    border: 2px solid #8b5cf6 !important;
    border-radius: 12px !important;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4) !important;
    animation: gwPopIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.gw-incoming-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}
.gw-incoming-avatar {
    width: 36px;
    height: 36px;
    background: #6d28d9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
}
.gw-incoming-text {
    font-size: 1.1rem;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 14px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border-left: 3px solid #a855f7;
}

.gw-incoming-secret-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 16px;
    text-align: left;
}
.gw-incoming-secret-label {
    font-size: 0.68rem;
    color: #94a3b8;
    display: block;
    margin-bottom: 6px;
}
.gw-incoming-secret-card {
    display: flex;
    align-items: center;
    gap: 10px;
}
.gw-incoming-secret-card img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.gw-incoming-hint-badge {
    margin-top: 8px;
    font-size: 0.72rem;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid #10b981;
    color: #6ee7b7;
    text-align: center;
}
.gw-incoming-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.gw-btn-pass-turn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8) !important;
    border-color: #60a5fa !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4) !important;
    animation: gwBtnPulse 1.8s infinite;
}
@keyframes gwBtnPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.8); }
}

.gw-btn-pass-turn:disabled {
    background: #1f2937 !important;
    border-color: #374151 !important;
    color: #6b7280 !important;
    box-shadow: none !important;
    animation: none !important;
    opacity: 0.45 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}


/* ==========================================================================
   PREMIUM FULLSCREEN CENTERED MODALS & GAMEOVER SCREEN
   ========================================================================== */
.gw-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    transform: none !important;
}

.gw-modal[style*="display: none"],
.gw-modal[style*="display:none"] {
    display: none !important;
}

.gw-modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(8, 12, 24, 0.85) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    z-index: 1 !important;
}

.gw-modal-content {
    position: relative !important;
    z-index: 2 !important;
    margin: auto !important;
}

/* GAME OVER POPUP STYLES */
.gw-gameover-content {
    max-width: 440px !important;
    width: 90% !important;
    padding: 28px 24px 24px !important;
    text-align: center !important;
    background: linear-gradient(165deg, rgba(24, 32, 54, 0.96) 0%, rgba(13, 19, 36, 0.98) 100%) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8) !important;
    transition: all 0.3s ease !important;
    animation: gwModalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes gwModalPop {
    0% { opacity: 0; transform: scale(0.85); }
    100% { opacity: 1; transform: scale(1); }
}

.gw-modal.is-victory .gw-gameover-content {
    border: 1.5px solid rgba(16, 185, 129, 0.6) !important;
    box-shadow: 0 0 50px rgba(16, 185, 129, 0.3), 0 25px 60px rgba(0, 0, 0, 0.85) !important;
}

.gw-modal.is-defeat .gw-gameover-content {
    border: 1.5px solid rgba(239, 68, 68, 0.6) !important;
    box-shadow: 0 0 50px rgba(239, 68, 68, 0.3), 0 25px 60px rgba(0, 0, 0, 0.85) !important;
}

.gw-gameover-icon {
    font-size: 2.8rem !important;
    margin-bottom: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.gw-modal.is-victory .gw-gameover-icon {
    color: #fbbf24 !important;
    filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.6)) !important;
    animation: gwTrophyShine 2s infinite ease-in-out !important;
}

.gw-modal.is-defeat .gw-gameover-icon {
    color: #f87171 !important;
    filter: drop-shadow(0 0 16px rgba(239, 68, 68, 0.6)) !important;
}

@keyframes gwTrophyShine {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.08) rotate(3deg); }
}

.gw-gameover-title {
    font-family: 'Minecraft', monospace !important;
    font-size: 1.6rem !important;
    letter-spacing: 1px !important;
    margin: 0 0 16px 0 !important;
}

.gw-modal.is-victory .gw-gameover-title {
    color: #34d399 !important;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.5) !important;
}

.gw-modal.is-defeat .gw-gameover-title {
    color: #f87171 !important;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.5) !important;
}

/* Pokemon sprite pedestal */
.gw-gameover-pedestal {
    position: relative !important;
    width: 140px !important;
    height: 140px !important;
    margin: 0 auto 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 70%, transparent 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.gw-gameover-aura {
    position: absolute !important;
    inset: -10px !important;
    border-radius: 50% !important;
    pointer-events: none !important;
}

.gw-modal.is-victory .gw-gameover-aura {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%) !important;
}

.gw-modal.is-defeat .gw-gameover-aura {
    background: radial-gradient(circle, rgba(239, 68, 68, 0.2) 0%, transparent 70%) !important;
}

.gw-gameover-img {
    width: 110px !important;
    height: 110px !important;
    object-fit: contain !important;
    position: relative !important;
    z-index: 2 !important;
    animation: gwFloatSprite 3s ease-in-out infinite !important;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.6)) !important;
}

@keyframes gwFloatSprite {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.gw-gameover-poke-meta {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
}

.gw-gameover-poke-name {
    font-family: 'Minecraft', monospace !important;
    font-size: 1rem !important;
    color: #f1f5f9 !important;
    font-weight: 700 !important;
}

.gw-gameover-poke-types {
    display: flex !important;
    gap: 6px !important;
    justify-content: center !important;
}

.gw-gameover-desc {
    font-size: 0.95rem !important;
    color: #cbd5e1 !important;
    margin: 0 0 20px 0 !important;
    line-height: 1.45 !important;
}

.gw-gameover-actions {
    display: flex !important;
    gap: 12px !important;
    justify-content: center !important;
    align-items: center !important;
}

.gw-btn-play-again {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%) !important;
    color: #fff !important;
    border: 1px solid #60a5fa !important;
    border-radius: 10px !important;
    padding: 12px 26px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    font-family: 'Minecraft', monospace !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4) !important;
    transition: all 0.2s ease !important;
}

.gw-btn-play-again:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 22px rgba(59, 130, 246, 0.6) !important;
}

.gw-btn-rematch {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
    border-color: #34d399 !important;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4) !important;
}

.gw-btn-rematch:hover {
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.6) !important;
}

.gw-btn-gameover-leave {
    background: rgba(51, 65, 85, 0.8) !important;
    color: #94a3b8 !important;
    border: 1px solid #475569 !important;
    border-radius: 10px !important;
    padding: 12px 20px !important;
    font-size: 0.92rem !important;
    font-family: 'Minecraft', monospace !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.2s ease !important;
}

.gw-btn-gameover-leave:hover {
    background: #475569 !important;
    color: #fff !important;
}


/* Centered modal container and scroll handling */
.gw-modal-content,
.gw-zoom-wrapper {
    position: relative !important;
    z-index: 2 !important;
    margin: auto !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(59, 130, 246, 0.5) rgba(15, 23, 42, 0.4);
}

.gw-modal-content::-webkit-scrollbar,
.gw-zoom-wrapper::-webkit-scrollbar {
    width: 6px;
}
.gw-modal-content::-webkit-scrollbar-thumb,
.gw-zoom-wrapper::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 4px;
}

/* Online Modal Center & Polish */
.gw-online-content {
    max-width: 520px !important;
    width: 92% !important;
    background: linear-gradient(165deg, rgba(24, 32, 54, 0.97) 0%, rgba(13, 19, 36, 0.98) 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    border-radius: 20px !important;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(59, 130, 246, 0.25) !important;
}

/* Pool / Filter Modal Center & Polish */
.gw-pool-modal-content {
    max-width: 680px !important;
    width: 94% !important;
    background: linear-gradient(165deg, rgba(24, 32, 54, 0.97) 0%, rgba(13, 19, 36, 0.98) 100%) !important;
    border: 1px solid rgba(168, 85, 247, 0.4) !important;
    border-radius: 20px !important;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(168, 85, 247, 0.25) !important;
}

/* Inspector / Dossier Modal Center & Polish */
.gw-insp-content {
    max-width: 500px !important;
    width: 92% !important;
    background: linear-gradient(165deg, rgba(24, 32, 54, 0.97) 0%, rgba(13, 19, 36, 0.98) 100%) !important;
    border: 1px solid rgba(251, 191, 36, 0.4) !important;
    border-radius: 20px !important;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(251, 191, 36, 0.25) !important;
}

/* Incoming Question / PvP Dialog Center & Polish */
.gw-incoming-q-content,
.gw-pvp-content {
    max-width: 480px !important;
    width: 90% !important;
    background: linear-gradient(165deg, rgba(24, 32, 54, 0.97) 0%, rgba(13, 19, 36, 0.98) 100%) !important;
    border: 1.5px solid rgba(168, 85, 247, 0.5) !important;
    border-radius: 20px !important;
    box-shadow: 0 0 45px rgba(0, 0, 0, 0.8), 0 0 30px rgba(168, 85, 247, 0.3) !important;
}


/* SLIM SLEEK SINGLE-LINE TURN INDICATOR */
.gw-turn-indicator-compact {
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.gw-badge-turn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    height: 28px !important;
    max-height: 28px !important;
    padding: 0 12px !important;
    border-radius: 14px !important;
    font-size: 0.74rem !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
    line-height: 28px !important;
    letter-spacing: 0.3px !important;
    transition: all 0.2s ease !important;
}

.gw-turn-player {
    background: rgba(16, 185, 129, 0.16) !important;
    border: 1px solid rgba(16, 185, 129, 0.6) !important;
    color: #34d399 !important;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.2) !important;
}

.gw-turn-opponent {
    background: rgba(239, 68, 68, 0.16) !important;
    border: 1px solid rgba(239, 68, 68, 0.5) !important;
    color: #f87171 !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.15) !important;
}

/* PICK SECRET BANNER & BOARD HOVER */
.gw-banner-pick {
    display: none;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    background: linear-gradient(90deg, #1e3a8a, #2563eb) !important;
    color: #fff !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3) !important;
}

.gw-banner-pick.show,
.gw-banner-pick[style*="display: flex"],
.gw-banner-pick[style*="display: block"] {
    display: flex !important;
}

.gw-banner-pick[style*="display: none"],
.gw-banner-pick[style*="display:none"] {
    display: none !important;
}

.gw-banner-cancel-btn {
    background: rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    color: #fff !important;
    padding: 3px 10px !important;
    border-radius: 6px !important;
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: all 0.2s !important;
}

.gw-banner-cancel-btn:hover {
    background: rgba(239, 68, 68, 0.7) !important;
    border-color: #ef4444 !important;
}

.gw-board-grid.is-picking-secret .gw-tile {
    cursor: pointer !important;
}

.gw-board-grid.is-picking-secret .gw-tile:hover {
    transform: translateY(-8px) scale(1.05) !important;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.8) !important;
    outline: 2px solid #3b82f6 !important;
    outline-offset: 2px;
}


/* FIXED WIDTH SECRET POKEMON CARD */
.gw-secret-slot-compact {
    flex-shrink: 0 !important;
    width: 360px !important;
    min-width: 360px !important;
    max-width: 360px !important;
    box-sizing: border-box !important;
}

.gw-secret-card {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: rgba(0, 0, 0, 0.45) !important;
    border: 1.5px solid #f59e0b !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: 78px !important;
    overflow: visible !important;
}

.gw-secret-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.gw-secret-name {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 0.88rem !important;
}

.gw-secret-badges {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    overflow: hidden !important;
}

.gw-secret-tags-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    overflow: hidden !important;
}

.gw-secret-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
}

@media (max-width: 820px) {
    .gw-secret-slot-compact {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }
}


/* HUD TOP LINE - CLEAN GAPS & SLEEK PILLS */
.gw-hud-top-line {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
    box-sizing: border-box !important;
}

.gw-online-status-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(15, 23, 42, 0.9) !important;
    border: 1px solid rgba(59, 130, 246, 0.5) !important;
    padding: 0 12px !important;
    height: 28px !important;
    max-height: 28px !important;
    border-radius: 14px !important;
    font-size: 0.74rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    line-height: 28px !important;
}

.gw-turn-indicator-compact {
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}

.gw-counts-wrap-compact {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: auto !important;
    flex-shrink: 0 !important;
}

.gw-count-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    height: 28px !important;
    max-height: 28px !important;
    padding: 0 10px !important;
    border-radius: 14px !important;
    font-size: 0.74rem !important;
    white-space: nowrap !important;
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #cbd5e1 !important;
    box-sizing: border-box !important;
    line-height: 28px !important;
}

.gw-count-pill strong {
    font-weight: 700 !important;
    font-size: 0.78rem !important;
}

.gw-count-player {
    border-color: rgba(59, 130, 246, 0.5) !important;
}
.gw-count-player strong {
    color: #60a5fa !important;
}

.gw-count-opponent {
    border-color: rgba(239, 68, 68, 0.5) !important;
}
.gw-count-opponent strong {
    color: #f87171 !important;
}

/* Hide legacy progress tracks */
.gw-pbar-mini-track,
.gw-pbar-wrap-compact {
    display: none !important;
}


/* ==========================================================================
   MOBILE RESPONSIVE OVERHAUL: GUESS WHO («УГАДАЙ КТО?»)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Main Game Container */
    .gw-container {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 4px 6px !important;
    }

    /* 2. Compact Header */
    .gw-header-compact {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        padding: 6px 4px !important;
    }

    .gw-header-left {
        flex-wrap: wrap !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .gw-title-compact {
        font-size: 1.05rem !important;
    }

    .gw-edition-badge {
        font-size: 0.55rem !important;
    }

    .gw-hint-compact {
        font-size: 0.68rem !important;
        width: 100% !important;
        line-height: 1.3 !important;
    }

    .gw-header-right {
        width: 100% !important;
        display: flex !important;
        justify-content: flex-end !important;
    }

    .gw-stats-badge-compact {
        font-size: 0.65rem !important;
        padding: 2px 8px !important;
    }

    /* 3. Control Bar */
    .gw-control-bar-compact {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 8px 10px !important;
    }

    .gw-ctrl-item {
        justify-content: space-between !important;
        width: 100% !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    .gw-btn-group-mini {
        flex-wrap: wrap !important;
    }

    .gw-btn-mini {
        padding: 4px 7px !important;
        font-size: 0.68rem !important;
    }

    .gw-btn-pool-settings {
        width: 100% !important;
        justify-content: center !important;
        padding: 5px 10px !important;
        font-size: 0.7rem !important;
    }

    /* 4. HUD Tray & Secret Card */
    .gw-hud-tray-compact {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 8px 10px !important;
        gap: 8px !important;
    }

    .gw-secret-slot-compact {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .gw-secret-card {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 6px 8px !important;
    }

    .gw-secret-img-box {
        width: 40px !important;
        height: 40px !important;
    }

    .gw-secret-name {
        font-size: 0.82rem !important;
    }

    .gw-hud-controls-compact {
        align-items: stretch !important;
        width: 100% !important;
        gap: 8px !important;
    }

    .gw-hud-top-line {
        flex-wrap: wrap !important;
        gap: 6px !important;
        justify-content: space-between !important;
    }

    .gw-counts-wrap-compact {
        margin-left: 0 !important;
        width: 100% !important;
        justify-content: space-between !important;
        gap: 4px !important;
    }

    .gw-count-pill {
        flex: 1 1 calc(50% - 4px) !important;
        justify-content: center !important;
        font-size: 0.68rem !important;
        height: 26px !important;
        padding: 0 6px !important;
    }

    .gw-hud-btns-compact {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .gw-hbtn {
        padding: 6px 6px !important;
        font-size: 0.68rem !important;
        justify-content: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    /* 5. 3D Board & Tiles Grid */
    .gw-board-container-1screen {
        max-height: 52vh !important;
        padding: 8px 6px !important;
        border-radius: 10px !important;
    }

    .gw-board-grid {
        gap: 6px !important;
    }

    .gw-grid-20,
    .gw-grid-24 {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    .gw-grid-36,
    .gw-grid-50,
    .gw-grid-100 {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 5px !important;
    }

    .gw-card-face {
        height: 124px !important;
        padding: 4px !important;
    }

    .gw-card-img-wrap {
        height: 52px !important;
    }

    .gw-card-name {
        font-size: 0.65rem !important;
    }

    .gw-card-types {
        gap: 2px !important;
    }

    .gw-card-type-tag {
        font-size: 0.52rem !important;
        padding: 1px 3px !important;
    }

    /* 6. History Ticker */
    .gw-history-bar-compact {
        padding: 4px 8px !important;
        gap: 6px !important;
    }

    .gw-ticker-title {
        font-size: 0.65rem !important;
        white-space: nowrap !important;
    }

    .gw-history-ticker {
        font-size: 0.65rem !important;
    }

    /* 7. Question Modal */
    .gw-modal-content {
        max-width: 95vw !important;
        max-height: 88vh !important;
        padding: 12px 10px !important;
    }
}

@media (max-width: 480px) {
    .gw-grid-20,
    .gw-grid-24 {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .gw-grid-36,
    .gw-grid-50,
    .gw-grid-100 {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .gw-card-face {
        height: 116px !important;
    }

    .gw-card-img-wrap {
        height: 46px !important;
    }

    .gw-card-name {
        font-size: 0.6rem !important;
    }

    .gw-hud-btns-compact {
        grid-template-columns: 1fr 1fr !important;
    }

    .gw-btn-ask {
        grid-column: 1 / -1 !important;
        padding: 8px 10px !important;
        font-size: 0.76rem !important;
    }
}

/* Explicit active state for gwCardsPicker */
#gwCardsPicker .dexid-rounds-btn.active {
    background: #e94560 !important;
    border-color: #e94560 !important;
    color: #fff !important;
    box-shadow: 0 0 14px rgba(233, 69, 96, 0.6) !important;
}


/* STRICT PERFECT EVEN-ROW GRIDS (No dangling single cards at the bottom!) */
.gw-grid-20 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; } /* 5 x 4 = 20 */
.gw-grid-24 { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; } /* 6 x 4 = 24 */
.gw-grid-36 { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; } /* 6 x 6 = 36 */
.gw-grid-50 { grid-template-columns: repeat(10, minmax(0, 1fr)) !important; } /* 10 x 5 = 50 */
.gw-grid-100 { grid-template-columns: repeat(10, minmax(0, 1fr)) !important; gap: 6px !important; } /* 10 x 10 = 100 */

@media (max-width: 960px) {
    .gw-grid-20 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } /* 4 x 5 = 20 */
    .gw-grid-24 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } /* 4 x 6 = 24 */
    .gw-grid-36 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } /* 4 x 9 = 36 */
    .gw-grid-50 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; } /* 5 x 10 = 50 */
    .gw-grid-100 { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
}

/* Explicit active state for gwCardsPicker buttons */
#gwCardsPicker .dexid-rounds-btn,
#gwCardsPicker .gw-card-count-btn {
    padding: 12px 28px !important;
    border-radius: 24px !important;
    border: 1px solid rgba(233,69,96,0.3) !important;
    background: rgba(15,52,96,0.3) !important;
    color: rgba(255,255,255,0.6) !important;
    cursor: pointer !important;
    font-family: 'Minecraft', monospace !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease !important;
}

#gwCardsPicker .dexid-rounds-btn:hover,
#gwCardsPicker .gw-card-count-btn:hover {
    border-color: #e94560 !important;
    color: #fff !important;
}

#gwCardsPicker .dexid-rounds-btn.active,
#gwCardsPicker .gw-card-count-btn.active {
    background: #e94560 !important;
    border-color: #e94560 !important;
    color: #fff !important;
    box-shadow: 0 0 14px rgba(233, 69, 96, 0.6) !important;
}

/* ==========================================================================
   POKEDEX DOSSIER V2 - ULTRA POLISHED & MODERN
   ========================================================================== */
.gw-insp-content {
    max-width: 740px !important;
    width: 95vw !important;
    max-height: 90vh !important;
    background: linear-gradient(165deg, rgba(17, 24, 39, 0.98) 0%, rgba(10, 15, 29, 0.99) 100%) !important;
    border: 1.5px solid rgba(245, 158, 11, 0.35) !important;
    border-radius: 22px !important;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.85), 0 0 35px rgba(245, 158, 11, 0.2) !important;
    overflow: hidden !important;
}

.gw-insp-header {
    background: linear-gradient(90deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 12px 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.gw-insp-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gw-pokedex-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px currentColor;
}
.gw-pokedex-dot.red { background: #ef4444; color: #ef4444; }
.gw-pokedex-dot.yellow { background: #f59e0b; color: #f59e0b; }
.gw-pokedex-dot.green { background: #10b981; color: #10b981; }

.gw-insp-header-title {
    margin: 0 0 0 8px !important;
    font-size: 1.05rem !important;
    font-family: 'Minecraft', monospace !important;
    color: #f1f5f9 !important;
    letter-spacing: 0.5px;
}

.gw-insp-close {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    color: #cbd5e1 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    transition: all 0.2s ease !important;
}
.gw-insp-close:hover {
    background: #ef4444 !important;
    border-color: #ef4444 !important;
    color: #fff !important;
    transform: rotate(90deg);
}

.gw-insp-body {
    display: flex !important;
    padding: 20px !important;
    gap: 20px !important;
    overflow-y: auto !important;
    max-height: calc(90vh - 65px) !important;
}

/* LEFT COLUMN */
.gw-insp-left {
    flex: 0 0 260px !important;
    background: rgba(15, 23, 42, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 16px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    position: relative !important;
}

.gw-insp-img-container {
    position: relative !important;
    width: 170px !important;
    height: 170px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: zoom-in !important;
    margin-bottom: 12px !important;
}

.gw-insp-img-halo {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    pointer-events: none;
    transition: background 0.3s ease;
}

.gw-insp-img {
    max-width: 155px !important;
    max-height: 155px !important;
    object-fit: contain !important;
    position: relative !important;
    z-index: 1 !important;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.65)) !important;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.gw-insp-img-container:hover .gw-insp-img {
    transform: scale(1.1) translateY(-4px) !important;
}

.gw-insp-zoom-badge {
    position: absolute !important;
    bottom: 6px !important;
    right: 6px !important;
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(4px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #94a3b8 !important;
    font-size: 0.62rem !important;
    padding: 3px 8px !important;
    border-radius: 12px !important;
    z-index: 2 !important;
    pointer-events: none !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: all 0.2s ease !important;
}

.gw-insp-img-container:hover .gw-insp-zoom-badge {
    background: #3b82f6 !important;
    border-color: #60a5fa !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6) !important;
}

.gw-insp-identity {
    margin-bottom: 10px;
    width: 100%;
}

.gw-insp-dex-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    padding: 2px 10px;
    font-size: 0.72rem;
    color: #94a3b8;
    font-family: 'Minecraft', monospace !important;
    margin-bottom: 6px;
}

.gw-insp-name {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 2px 0 4px 0 !important;
    line-height: 1.25 !important;
    font-family: 'Minecraft', monospace !important;
}

.gw-insp-cat {
    font-size: 0.75rem !important;
    color: #f59e0b !important;
    font-style: italic !important;
    margin-bottom: 10px !important;
}

.gw-insp-types {
    display: flex !important;
    justify-content: center !important;
    gap: 6px !important;
    margin-bottom: 10px !important;
    flex-wrap: wrap !important;
}

.gw-insp-tags-cloud {
    display: flex !important;
    justify-content: center !important;
    gap: 5px !important;
    flex-wrap: wrap !important;
    margin-bottom: 16px !important;
    width: 100% !important;
}

.gw-insp-final-wrap {
    width: 100%;
    margin-top: auto;
}

.gw-insp-guess-btn {
    width: 100% !important;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-size: 0.82rem !important;
    font-family: 'Minecraft', monospace !important;
    font-weight: bold !important;
    padding: 12px 10px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 18px rgba(239, 68, 68, 0.45) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.gw-insp-guess-btn:hover {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%) !important;
    box-shadow: 0 6px 24px rgba(239, 68, 68, 0.7) !important;
    transform: translateY(-2px) scale(1.02) !important;
}

.gw-guess-icon-wrap {
    font-size: 1rem;
    animation: gwPulseSlow 1.8s infinite;
}

@keyframes gwPulseSlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.85; }
}

/* RIGHT COLUMN */
.gw-insp-right {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
}

.gw-insp-card {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 14px 18px !important;
}

.gw-insp-card-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 12px !important;
    padding-bottom: 6px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.gw-card-h-title {
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    color: #e2e8f0 !important;
    font-family: 'Minecraft', monospace !important;
    display: flex;
    align-items: center;
    gap: 7px;
}
.gw-card-h-title i {
    color: #38bdf8;
}

.gw-bst-chip {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.3) 100%);
    border: 1px solid rgba(245, 158, 11, 0.4);
    border-radius: 8px;
    padding: 2px 10px;
    font-size: 0.78rem;
    color: #fbbf24;
    font-family: 'Minecraft', monospace !important;
}
.gw-bst-chip strong {
    color: #fff;
    font-size: 0.92rem;
}

/* STATS BARS */
.gw-insp-stat-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
}

.gw-stat-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 0.76rem !important;
}

.gw-stat-label {
    width: 90px !important;
    min-width: 90px !important;
    color: #94a3b8 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-family: 'Minecraft', monospace !important;
    font-size: 0.75rem !important;
}
.gw-stat-label i { font-size: 0.7rem; width: 12px; text-align: center; }

.gw-stat-row.hp .gw-stat-label i { color: #22c55e; }
.gw-stat-row.atk .gw-stat-label i { color: #f97316; }
.gw-stat-row.def .gw-stat-label i { color: #eab308; }
.gw-stat-row.spa .gw-stat-label i { color: #06b6d4; }
.gw-stat-row.spd .gw-stat-label i { color: #a855f7; }
.gw-stat-row.spe .gw-stat-label i { color: #ec4899; }

.gw-sbar {
    flex-grow: 1 !important;
    height: 9px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

.gw-sfill {
    height: 100% !important;
    border-radius: 6px !important;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.stat-hp { background: linear-gradient(90deg, #16a34a, #4ade80) !important; box-shadow: 0 0 8px rgba(74, 222, 128, 0.5); }
.stat-atk { background: linear-gradient(90deg, #ea580c, #fb923c) !important; box-shadow: 0 0 8px rgba(251, 146, 60, 0.5); }
.stat-def { background: linear-gradient(90deg, #ca8a04, #facc15) !important; box-shadow: 0 0 8px rgba(250, 204, 21, 0.5); }
.stat-spa { background: linear-gradient(90deg, #0284c7, #38bdf8) !important; box-shadow: 0 0 8px rgba(56, 189, 248, 0.5); }
.stat-spd { background: linear-gradient(90deg, #9333ea, #c084fc) !important; box-shadow: 0 0 8px rgba(192, 132, 252, 0.5); }
.stat-spe { background: linear-gradient(90deg, #db2777, #f472b6) !important; box-shadow: 0 0 8px rgba(244, 114, 182, 0.5); }

.gw-stat-num {
    width: 36px !important;
    text-align: right !important;
    color: #f8fafc !important;
    font-family: 'Minecraft', monospace !important;
    font-size: 0.82rem !important;
    flex-shrink: 0 !important;
}

/* BIOLOGY GRID */
.gw-bio-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
}

.gw-bio-chip-box {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 10px !important;
    padding: 8px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}

.gw-chip-k {
    font-size: 0.68rem !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-family: 'Minecraft', monospace !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}
.gw-chip-k i { color: #f59e0b; }

.gw-chip-v {
    font-size: 0.78rem !important;
    color: #e2e8f0 !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
}

.gw-chip-v.highlight-gold {
    color: #fbbf24 !important;
    font-weight: 700 !important;
}

/* Gender Badges */
.gw-gender-m {
    color: #60a5fa !important;
    font-weight: 600 !important;
}
.gw-gender-f {
    color: #f472b6 !important;
    font-weight: 600 !important;
}
.gw-gender-sep {
    color: #475569 !important;
    margin: 0 4px !important;
}
.gw-gender-none,
.gw-gender-neutral {
    color: #94a3b8 !important;
}

/* RESPONSIVE ON SMALL SCREENS */
@media (max-width: 680px) {
    .gw-insp-content {
        max-width: 95vw !important;
        border-radius: 16px !important;
    }
    .gw-insp-body {
        flex-direction: column !important;
        padding: 14px !important;
        gap: 14px !important;
    }
    .gw-insp-left {
        flex: auto !important;
        width: 100% !important;
    }
    .gw-bio-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Secret Card Dossier Button & Full Obscured Display */
.gw-secret-dossier-btn {
    background: rgba(59, 130, 246, 0.25) !important;
    border: 1px solid rgba(59, 130, 246, 0.5) !important;
    color: #93c5fd !important;
    font-size: 0.62rem !important;
    font-family: 'Minecraft', monospace !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    margin-left: auto !important;
    transition: all 0.2s ease !important;
}

.gw-secret-dossier-btn:hover {
    background: #2563eb !important;
    border-color: #60a5fa !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.6) !important;
    transform: translateY(-1px) !important;
}

.gw-secret-obscured-msg {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.72rem !important;
    color: #94a3b8 !important;
    font-family: 'Minecraft', monospace !important;
    margin-top: 4px !important;
    padding: 3px 0 !important;
}

.gw-secret-obscured-msg i {
    color: #fbbf24 !important;
}

/* Ensure no child elements leak through when secret is hidden */
.gw-secret-card.is-hidden-secret {
    background: rgba(15, 23, 42, 0.85) !important;
    border-color: rgba(251, 191, 36, 0.4) !important;
}

.gw-secret-card.is-hidden-secret .gw-secret-badges,
.gw-secret-card.is-hidden-secret .gw-secret-tags-row {
    display: none !important;
}

/* Explicit Perfect Screen Centering for Bot Speech Dialog */
#gwBotSpeechDialog {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
    margin: 0 !important;
    padding: 0 !important;
}

#gwBotSpeechDialog[style*="display: none"],
#gwBotSpeechDialog[style*="display:none"] {
    display: none !important;
}

#gwBotSpeechDialog .gw-modal-backdrop {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(8, 12, 24, 0.8) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 1 !important;
}

#gwBotSpeechDialog .gw-bot-dialog-content {
    position: relative !important;
    z-index: 2 !important;
    margin: auto !important;
    max-width: 440px !important;
    width: 90% !important;
    background: linear-gradient(165deg, rgba(24, 32, 54, 0.98) 0%, rgba(13, 19, 36, 0.99) 100%) !important;
    border: 1.5px solid rgba(59, 130, 246, 0.5) !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.85), 0 0 35px rgba(59, 130, 246, 0.25) !important;
    transform: none !important;
}

/* Robust text styling for bot speech bubble */
.gw-bot-question-bubble {
    color: #ffffff !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}

.gw-bot-note {
    color: #cbd5e1 !important;
    font-size: 0.82rem !important;
    margin: 8px 0 6px 0 !important;
}

.gw-bot-countdown {
    color: #f59e0b !important;
    font-size: 0.74rem !important;
    margin-bottom: 12px !important;
}

/* SFX VOLUME CONTROL SLIDER */
.gw-volume-control-box {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 20px !important;
    padding: 3px 12px !important;
    height: 28px !important;
    box-sizing: border-box !important;
}

.gw-volume-icon {
    font-size: 0.85rem !important;
    color: #60a5fa !important;
    cursor: pointer !important;
    width: 14px !important;
    text-align: center !important;
    transition: all 0.15s ease !important;
}
.gw-volume-icon:hover {
    color: #93c5fd !important;
    transform: scale(1.15) !important;
}

.gw-volume-slider {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 75px !important;
    height: 4px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 2px !important;
    outline: none !important;
    cursor: pointer !important;
}
.gw-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none !important;
    appearance: none !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: #3b82f6 !important;
    border: 2px solid #fff !important;
    cursor: pointer !important;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.8) !important;
    transition: all 0.15s ease !important;
}
.gw-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25) !important;
    background: #60a5fa !important;
}

.gw-volume-label {
    font-size: 0.7rem !important;
    font-family: 'Minecraft', monospace !important;
    color: #cbd5e1 !important;
    min-width: 32px !important;
    text-align: right !important;
}

/* ==========================================================================
   MOBILE HOTFIX: PREVENT BUTTON WRAPPING & SLEEK TOP BAR
   ========================================================================== */

/* Strict anti-wrap on action buttons */
.gw-btn-close-overlay,
.gw-secret-dossier-btn,
.gw-secret-eye-btn {
    white-space: nowrap !important;
    word-break: keep-all !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.gw-secret-header-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
}

.gw-secret-dossier-btn {
    padding: 3px 8px !important;
    font-size: 0.68rem !important;
    height: 24px !important;
    min-width: fit-content !important;
}

@media (max-width: 768px) {
    .gw-header-compact {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 6px 8px !important;
    }

    .gw-header-left {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 3px !important;
    }

    .gw-hint-compact {
        width: 100% !important;
        font-size: 0.68rem !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        margin-top: 2px !important;
    }

    .gw-header-right {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px !important;
        flex-wrap: nowrap !important;
    }

    .gw-volume-control-box {
        padding: 2px 6px !important;
        height: 26px !important;
        gap: 5px !important;
        flex-shrink: 1 !important;
    }

    .gw-volume-slider {
        width: 48px !important;
    }

    .gw-volume-label {
        font-size: 0.65rem !important;
        min-width: 24px !important;
    }

    .gw-stats-badge-compact {
        font-size: 0.62rem !important;
        padding: 4px 6px !important;
        white-space: nowrap !important;
        flex-shrink: 1 !important;
    }

    .gw-btn-close-overlay {
        padding: 4px 10px !important;
        font-size: 0.72rem !important;
        min-width: fit-content !important;
        height: 28px !important;
    }
}

@media (max-width: 380px) {
    .gw-volume-label {
        display: none !important;
    }
    .gw-btn-close-overlay span {
        display: none !important;
    }
    .gw-btn-close-overlay {
        padding: 4px 8px !important;
        width: 28px !important;
    }
}
