﻿html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}


.c-icon-x {

 width:60px;
}
.c-title-x-h4 {
    font-family: "Gugi", sans-serif;
    color:lightgray;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

/**?*/
.landing-wrapper {
    height: 100%;

    justify-content: center;

    font-family: 'Segoe UI', sans-serif;

    position: relative;

}

.smoke-layer {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 20% 60%, rgba(255,255,255,0.06), transparent 40%), radial-gradient(circle at 70% 40%, rgba(255,255,255,0.05), transparent 45%), radial-gradient(circle at 50% 80%, rgba(255,255,255,0.04), transparent 50%);
    animation: smokeMove 18s linear infinite;
}

@keyframes smokeMove {
    0% {
        transform: translateX(0px) translateY(0px) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translateX(-30px) translateY(-20px) scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: translateX(0px) translateY(0px) scale(1);
        opacity: 0.6;
    }
}

.landing-card,
.logo-wrapper {
    position: relative;
    z-index: 3;

}


/* Base fog layer */
.fog-layer {
    position: absolute;
    inset: -20%;
    z-index: 1;
    pointer-events: none;
    /* smoky look + soft golden haze */
    background: radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.08), transparent 45%), radial-gradient(circle at 80% 55%, rgba(212, 175, 55, 0.10), transparent 50%), radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.08), transparent 55%), radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.06), transparent 50%), linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.55));
    filter: blur(18px) contrast(1.05) saturate(1.15);
    opacity: 0.9;
    mix-blend-mode: screen; /* gives the gold glow feel on dark bg */
}

/* Back fog: slow + wide */
.fog-back {
    opacity: 0.55;
    filter: blur(26px) saturate(1.2);
    animation: fogDriftBack 32s linear infinite;
}

/* Mid fog: heavier */
.fog-mid {
    opacity: 0.75;
    filter: blur(20px) saturate(1.2);
    animation: fogDriftMid 22s linear infinite;
}

/* Front fog: strongest + slightly darker */
.fog-front {
    opacity: 0.65;
    filter: blur(16px) saturate(1.1);
    mix-blend-mode: overlay; /* adds war-zone depth */
    animation: fogDriftFront 16s linear infinite;
}

/* Optional: vignette to add war-zone mood */
.landing-wrapper::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(circle at 50% 40%, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.75) 100%);
}

/* Animations */
@keyframes fogDriftBack {
    0% {
        transform: translate3d(0, 0, 0) scale(1.10);
    }

    50% {
        transform: translate3d(-4%, -2%, 0) scale(1.16);
    }

    100% {
        transform: translate3d(0, 0, 0) scale(1.10);
    }
}

@keyframes fogDriftMid {
    0% {
        transform: translate3d(0, 0, 0) scale(1.12);
    }

    50% {
        transform: translate3d(5%, -3%, 0) scale(1.18);
    }

    100% {
        transform: translate3d(0, 0, 0) scale(1.12);
    }
}

@keyframes fogDriftFront {
    0% {
        transform: translate3d(0, 0, 0) scale(1.08);
    }

    50% {
        transform: translate3d(-6%, 2%, 0) scale(1.14);
    }

    100% {
        transform: translate3d(0, 0, 0) scale(1.08);
    }
}

.landing-card {
    position: relative; /* important */
    margin-top: 180px; /* space for overlap */
    text-align: center;
    background: #111;
    padding: 30px 46px;
    border-radius: 18px;
    width: 800px;
    border: 1px solid #2c2c2c;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.15), 0 20px 40px rgba(0, 0, 0, 0.6);
    color: #e6e6e6;

}
/* LOGO WRAPPER 
.logo-wrapper {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
  
}*/

/* LOGO WRAPPER */
.logo-wrapper {
    position: absolute;
    top: -200px;
    left: 20%;
    transform: translateX(-50%);
    animation: logoFloat 3s ease-in-out infinite;
    will-change: transform;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
    /* how high it floats */
}



.game-logo {
    width: 480px;
    height: auto;
    position: relative;
    z-index: 2;
    /* Golden glow */
   filter: 
        drop-shadow(0 0 4px rgba(212, 175, 55, 0.8)) 
        drop-shadow(0 0 10px rgba(212, 175, 55, 0.6)) 
        drop-shadow(0 0 18px rgba(255, 215, 0, 0.35));

    animation: goldPulse 3s ease-in-out infinite;
}

@keyframes goldPulse {
    0%, 100% {
        filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.7)) drop-shadow(0 0 8px rgba(212, 175, 55, 0.5)) drop-shadow(0 0 14px rgba(255, 215, 0, 0.25));
    }

    50% {
        filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.9)) drop-shadow(0 0 14px rgba(255, 215, 0, 0.6)) drop-shadow(0 0 22px rgba(255, 215, 0, 0.35));
    }
}


@keyframes ringGlow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}


.game-title {
    font-size: 34px;
    margin-bottom: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    color: #d4af37; /* military gold */
    text-transform: uppercase;
}
 .game_hs {
     height:100px;

}
.game-subtitle {
    font-size: 20px;
    margin-bottom: 10px;
    margin-top: 15px;
    color: white;
    letter-spacing: 1px;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.btn-primary {
    padding: 14px;
    font-size: 15px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(145deg, #d4af37, #b8962e);
    color: black;
    font-weight: bold;
    cursor: pointer;
    transition: 0.25s ease;
    letter-spacing: 1px;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
    }

.btn-secondary {
    padding: 12px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #444;
    background-color: #1a1a1a;
    color: #ccc;
    cursor: pointer;
    transition: 0.25s ease;
}

    .btn-secondary:hover {
        background-color: #2a2a2a;
        border-color: #d4af37;
        color: #d4af37;
    }

.game-footer {
    margin-top: 35px;
    font-size: 12px;
    letter-spacing: 1px;
    color: #777;
}

.footer-link {
    position: relative;
    text-decoration: none;
    font-weight: 600;
    color: #bfa94c;
    transition: 0.3s ease;
}

    /* Hover glow */
    .footer-link:hover {
        color: #ffd700;
    }

    /* Animated underline */
    .footer-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -3px;
        width: 0%;
        height: 1px;
        background-color: #ffd700;
        transition: width 0.3s ease;
    }

    .footer-link:hover::after {
        width: 100%;
    }

.divider {
    margin: 0 8px;
    color: #444;
}

.build-version {
    color: #666;
}


.main-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.main-modal-box {
    background: #111;
    border: 1px solid #333;
    padding: 40px;
    border-radius: 15px;
    width: 600px;
    text-align: center;
    color: #ddd;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.2), 0 20px 40px rgba(0, 0, 0, 0.7);
}

    .main-modal-box h3 {
        color: #d4af37;
        margin-bottom: 15px;
        letter-spacing: 1px;
    }

    .main-modal-box p {
        margin-bottom: 25px;
        color: #aaa;
    }




:root {
    --bg: #070a08;
    --card: rgba(10, 16, 12, 0.74);
    --border: rgba(120, 170, 120, 0.22);
    --text: #e7efe7;
    --muted: rgba(231,239,231,0.70);
    --accent: #68ff7f;
    --accent2: #d7b56d;
    --shadow: rgba(0, 0, 0, 0.60);
}

.howto-hero {
    position: relative;
    min-height: 100vh;
    padding: 56px 18px;
    background-image: url('/img/field/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* optional cinematic effect */
    font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    
    display: flex;
    flex-direction: column;
}
/* ===== STANDARD PAGE HEADER ===== */

.page-header {
    width: 100%;
}

.hs-20 {
 height:20px;
}
.page-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* LEFT SIDE */
.page-header-text {
    flex: 1;
    text-align: left;
}

.page-header-title {
    font-family: "Gugi", sans-serif;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
    background: linear-gradient(180deg, #fff6c7 0%, #ffd700 50%, #caa433 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 6px rgba(255, 215, 0, 0.4), 0 0 14px rgba(212, 175, 55, 0.3);
}

.page-header-divider {
    width: 100px;
    height: 2px;
    margin: 14px 0;
    background: linear-gradient(to right, #d4af37, transparent);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}
.page-header-divider-green {
    width: 100%;
    height: 2px;
    margin-top: -10px;
    margin-bottom: 20px;
    background: linear-gradient(to right, #1f4121, transparent);
    
}

.page-header-subtitle {
    font-size: 14px;
    letter-spacing: 1px;
    color: #cccccc;
    max-width: 600px;
    line-height: 1.6;
}

/* RIGHT SIDE */
.page-header-logo {
    flex: 0 0 auto;
    text-align: right;
}

    .page-header-logo img {
        width: 300px;
        height: auto;
        filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.5)) drop-shadow(0 0 14px rgba(212, 175, 55, 0.4));
    }

/* Responsive 
@media (max-width: 768px) {
    .page-header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-header-logo {
        align-self: center;
        margin-top: 20px;
    }

        .page-header-logo img {
            width: 130px;
        }
}   */

/* Wrapper */
.hero-text {
  
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}


/* Main Title */
.hero-title-bf {
    font-family: "Gugi", sans-serif;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
    /* Gold gradient text */
    background: linear-gradient(180deg, #fff6c7 0%, #ffd700 40%, #caa433 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Soft gold glow */
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5), 0 0 18px rgba(212, 175, 55, 0.4);

}


/* Main Title */
.hero-title {
    font-family: "Gugi", sans-serif;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 0;
    /* Gold gradient text */
    background: linear-gradient(180deg, #fff6c7 0%, #ffd700 40%, #caa433 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Soft gold glow */
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.5), 0 0 18px rgba(212, 175, 55, 0.4);
    animation: heroGlow 3s ease-in-out infinite;
}
/* Main Title */
.win {
    font-family: "Gugi", sans-serif;
    font-size: 50px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 1px;
    color: green;
}
.lose {
    font-family: "Gugi", sans-serif;
    font-size: 50px;
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin: 1px;
    color: red;
}

/* Divider Line */
.hero-divider {
    width: 120px;
    height: 2px;
    margin: 14px auto;
    background: linear-gradient(to right, transparent, #d4af37, transparent);
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

/* Subtitle */
.hero-subtitle {
    font-size: 15px;
    letter-spacing: 1.5px;
    color: #cccccc;
  /*  max-width: 600px;*/
  
    margin: 0 auto;
    line-height: 1.6;
}

/* Subtle breathing glow */
@keyframes heroGlow {
    0%, 100% {
        text-shadow: 0 0 6px rgba(255, 215, 0, 0.4), 0 0 14px rgba(212, 175, 55, 0.3);
    }

    50% {
        text-shadow: 0 0 14px rgba(255, 215, 0, 0.8), 0 0 28px rgba(212, 175, 55, 0.6);
    }
}
.howto-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(1200px 700px at 50% 20%, rgba(0,0,0,0.35), rgba(0,0,0,0.85)), linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.92));
    pointer-events: none;
}

.howto-wrap {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.howto-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.howto-back {
    text-decoration: none;
    color: rgba(231,239,231,0.85);
    border: 1px solid rgba(231,239,231,0.12);
    background: rgba(255,255,255,0.04);
    padding: 10px 12px;
    border-radius: 14px;
    transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

    .howto-back:hover {
        transform: translateY(-1px);
        border-color: rgba(104,255,127,0.22);
        background: rgba(255,255,255,0.06);
    }

.howto-title h1 {
    margin: 0;
    color: var(--text);
    font-weight: 900;
    letter-spacing: 2px;
    font-size: clamp(26px, 3vw, 40px);
    text-transform: uppercase;
}

.howto-title p {
    margin: 6px 0 0;
    color: var(--muted);
    max-width: 780px;
    line-height: 1.5;
}

.howto-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: start;
}
.howto-nav-link {
    display: flex;
    align-items: center;
    gap: 20px;
}

.dot-on {
    display: inline-block; /* ✅ makes width/height apply */
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent, #68ff7f); /* ✅ fallback color */
    box-shadow: 0 0 0 6px rgba(104,255,127,0.10);
    animation: pulse 1.2s ease-in-out infinite;
    flex: 0 0 auto;
}
.dot-off {
    display: inline-block; /* ✅ makes width/height apply */
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background-color:gray;
    flex: 0 0 auto;
}

    .howto-nav-link:hover .dot {
        transform: scale(1.3);
        transition: 0.3s ease;
    }

.dot-2 {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(104,255,127,0.10);
    animation: pulse 1.2s ease-in-out infinite;
    flex: 0 0 auto;
}
    .howto-nav-logo {
    margin-top: -151px;
    width: 300px;
    height: auto;
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.5)) drop-shadow(0 0 14px rgba(212, 175, 55, 0.4));
}

.howto-nav {
    position: sticky;
    top: 24px;
    align-self: start;
}

@media (max-width: 9a00px) {
    .howto-grid {
        grid-template-columns: 1fr;
    }

    .howto-nav {
        position: static;
    }
}

.howto-nav-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 18px 55px var(--shadow);
    backdrop-filter: blur(10px);
    margin-bottom: 12px;
    margin-top: 120px;
}
.howto-nav-card-sub {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 18px 55px var(--shadow);
    backdrop-filter: blur(10px);
    margin-bottom: 12px;

}
.howto-nav-title {
    color: var(--accent2);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    margin-bottom: 10px;
}

.howto-nav-link {
   
    text-decoration: none;
    color: rgba(231,239,231,0.90);
    padding: 10px 10px;
    border-radius: 14px;
    border: 1px solid rgba(231,239,231,0.10);
    background: rgba(255,255,255,0.03);
    margin-bottom: 8px;
    transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

    .howto-nav-link:hover {
        color:green;
        transform: translateY(-1px);
        border-color: rgba(104,255,127,0.20);
        background: rgba(255,255,255,0.05);
    }

.howto-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.howto-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 18px 60px var(--shadow);
    backdrop-filter: blur(10px);
}

    .howto-card h2 {
        margin: 0 0 8px;
        color: var(--text);
        letter-spacing: 0.4px;
    }

    .howto-card p {
        margin: 0;
        color: rgba(231,239,231,0.85);
        line-height: 1.6;
    }

.howto-bullets {
    margin: 10px 0 0;
    padding-left: 18px;
    color: rgba(231,239,231,0.84);
    line-height: 1.7;
}

.howto-steps {
    margin: 10px 0 0;
    padding-left: 18px;
    color: rgba(231,239,231,0.84);
    line-height: 1.7;
}

.howto-callout {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(104,255,127,0.22);
    background: rgba(104,255,127,0.06);
    color: rgba(231,239,231,0.88);
}

    .howto-callout.warn {
        border-color: rgba(215,181,109,0.28);
        background: rgba(215,181,109,0.08);
    }

    .howto-callout .dot {
        width: 10px;
        height: 10px;
        border-radius: 999px;
        background: var(--accent);
        box-shadow: 0 0 0 6px rgba(104,255,127,0.10);
        margin-top: 4px;
        animation: pulse 1.2s ease-in-out infinite;
        flex: 0 0 auto;
    }

    .howto-callout.warn .dot {
        background: var(--accent2);
        box-shadow: 0 0 0 6px rgba(215,181,109,0.12);
        animation: none;
    }

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.howto-mini {
    margin-top: 12px;
    border-radius: 16px;
    border: 1px solid rgba(231,239,231,0.10);
    background: rgba(255,255,255,0.03);
    padding: 12px;
}

.howto-mini-title {
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent2);
    font-weight: 900;
    margin-bottom: 8px;
}

.howto-mini-body {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(231,239,231,0.90);
}

.k {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    border: 1px solid rgba(231,239,231,0.10);
    background: rgba(255,255,255,0.04);
    font-size: 18px;
}

.muted {
    color: var(--muted);
    font-size: 13px;
}

.howto-table {
    margin-top: 12px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(231,239,231,0.10);
    background: rgba(255,255,255,0.02);
}

    .howto-table .row {
        display: grid;
        grid-template-columns: 180px 1fr;
        gap: 10px;
        padding: 10px 12px;
        border-bottom: 1px solid rgba(231,239,231,0.07);
        color: rgba(231,239,231,0.86);
    }

        .howto-table .row:last-child {
            border-bottom: none;
        }

        .howto-table .row.head {
            background: rgba(255,255,255,0.04);
            color: rgba(231,239,231,0.92);
            font-weight: 900;
            letter-spacing: 0.5px;
        }

.howto-faq {
    margin-top: 10px;
    border-radius: 16px;
    border: 1px solid rgba(231,239,231,0.10);
    background: rgba(255,255,255,0.03);
    padding: 12px;
}

    .howto-faq .q {
        font-weight: 900;
        color: rgba(231,239,231,0.92);
        margin-bottom: 6px;
    }

    .howto-faq .a {
        color: rgba(231,239,231,0.82);
        line-height: 1.6;
    }

.howto-end {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.howto-btn {
    border-radius: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(231,239,231,0.12);
    background: rgba(255,255,255,0.04);
    color: rgba(231,239,231,0.92);
    font-weight: 900;
    cursor: pointer;
    transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

    .howto-btn:hover {
        transform: translateY(-1px);
        border-color: rgba(104,255,127,0.20);
        background: rgba(255,255,255,0.06);
    }



.resolution-modal {
    max-width: 560px;
}

.resolution-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
    margin-top: 26px;
    padding-bottom: 11px;
}

body.board-page .viewport-wrapper {
    background-image: linear-gradient(rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.95)), url(/img/field/background.png) ;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}



    @media (max-width: 520px) {
        .resolution-actions {
            grid-template-columns: 1fr;
        }
    }

    .resolution-tip {
    margin-top: 12px;
    font-size: 12px;
    color: #aaa;
    line-height: 1.4;
}
.viewport-wrapper {
    position: fixed;
    inset: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    /* background: radial-gradient(circle at center, #1a1a1a 0%, #0d0d0d 100%); */
    font-family: 'Segoe UI', sans-serif;
    background-image: linear-gradient(rgba(0, 0, 0, 0.70)), url(/img/field/background.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.scale-container {
   /* width: 1920px;
    height: 1080px;*/
    transform-origin: center center;
    transform: scale(var(--gogScale, 1));
}


.overlay-root {
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none; /* lets game clicks pass when no modal */
}
.main-modal-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,.75);
    z-index: 10001;
    pointer-events: auto; /* modal can be clicked */
}



html.no-scale, body.no-scale {
    overflow: auto !important;
    height: auto !important;
}

.viewport-wrapper.no-scale {
    position: relative !important;
    inset: auto !important;
    min-height: 100vh;
    display: block !important;
    overflow: visible !important;
}

.scale-container.no-scale {
    width: 100% !important;
    height: auto !important;
    transform: none !important; /* important */
}
