/* ⬇️ Customize variables here ⬇️ */
:root {
    --background-color: #0f0f0f;
    --text-color: #ffffff;
    --link-color: #ff3954;
    --link-hover-color: #e22b46;
    --box-shadow-color: #0f0f0f;
    --button-background: #cf1734;
    --button-border: #ffffff30;
    --button-hover-filter: #680d20;
    --pulse-shadow-color: rgba(0, 0, 0, 0.5);
    --online-players-bg: #cf1734;
    --online-players-border: #ffffff30;
    --footer-bg: #070707;
    --footer-text-color: gray;
}

/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Default styles for the body */
body {
    font-family: "Outfit", sans-serif;
    background-color: var(--background-color);
}

/* Screen reader-only element */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Container with responsive max-width */
.container {
    max-width: 100rem;
    margin: 2.5rem auto;
    padding: 0 1rem;
}

@media (max-width: 48rem) {
    .container {
        max-width: 45rem;
    }
}

@media (min-width: 48.0625rem) and (max-width: 64rem) {
    .container {
        max-width: 40rem;
    }
}

@media (min-width: 64.0625rem) {
    .container {
        max-width: 75rem;
    }
}

/* Hero section */
.hero {
    position: relative;
    width: 100%;
    background-image: url("images/bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50vh;
    box-shadow: 0px -50px 299px 155px var(--box-shadow-color) inset;
    padding: 0 1rem;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    25%,
    75% {
        transform: scale(1.02);
    }
    50% {
        transform: scale(1);
    }
}

/* Image within the hero */
.hero img {
    animation: pulse 4s infinite;
    filter: drop-shadow(0 0 1.75rem var(--pulse-shadow-color));
    width: 100%;
}

/* Vote links section */
.vote-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

/* Style for vote links */
.vote-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    border-radius: 7px;
    border: 2px solid var(--button-border);
    filter: drop-shadow(0 6px 0rem var(--button-hover-filter));
    background: var(--button-background);
    padding: 2rem 0;
    text-align: center;
    width: 100%;
    transition: all 0.1s ease-in-out;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.vote-links a img {
    width: 2.5rem;
    height: 2.5rem;
}

/* Hover effect for vote links */
.vote-links a:hover {
    filter: drop-shadow(0 0 0);
    transform: translate(0, 5px);
}

.online-players {
    text-align: center;
    margin-top: 6rem;
    padding: 2rem 2rem;
    gap: 2rem;
    width: 100%;
    color: var(--text-color);
    border: 2px solid var(--online-players-border);
    filter: drop-shadow(0 6px 0rem var(--button-hover-filter));
    background: var(--online-players-bg);
    font-weight: 500;
    font-size: 1.5rem;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.1s ease-in-out;
}

.online-players:hover {
    filter: drop-shadow(0 0 0);
    transform: translate(0, 5px);
}

.online-players:active {
    background-color: var(--link-hover-color);
}

.online-players button {
    background: none;
    border: none;
    width: 100%;
    padding: 2rem 0;
    font: inherit;
    cursor: pointer;
}

strong {
    font-weight: 900;
}

footer {
    text-align: center;
    padding: 1rem 0;
    font-size: 1rem;
    font-weight: 300;
    background: var(--footer-bg);
    border-radius: 7px;
    margin-top: 8rem;
    color: var(--footer-text-color);
}

footer a {
    text-decoration: none;
    color: var(--link-color);
}

@media (max-width: 48.0625rem) {
    .hero {
        box-shadow: 0px -45px 90px 45px var(--box-shadow-color) inset;
    }
    .online-players {
        margin-top: 1rem;
    }
    .vote-links {
        flex-direction: column;
    }
}

/* Small additions built on the original design and existing red button styles. */
:root { color-scheme: dark; }
body { color: var(--text-color); }
.hero img { max-width: 1009px; display:block; margin:auto; height:auto; }
.online-players { display:flex; align-items:center; justify-content:center; flex-direction:column; gap: .45rem; min-height:105px; font-family:inherit; line-height:1.35; }
.online-players:focus-visible, .vote-links a:focus-visible, .copy-ip:focus-visible, a:focus-visible { outline:3px solid #fff; outline-offset:4px; }
.status-summary { display:flex; align-items:center; justify-content:center; gap:10px; flex-wrap:wrap; }
.status-dot { width:10px; height:10px; background:#ffd15a; border-radius:50%; box-shadow: 0 0 10px rgba(255,209,90,.6); }
.online-players.is-online .status-dot { background:#91f0a8; box-shadow:0 0 12px #91f0a8; }
.online-players.is-offline .status-dot { background:#fff0f0; box-shadow:0 0 12px #fe8797; }
.status-hint { font-size:.9rem; font-weight:500; opacity:.9; }
.status-loading { display:flex; flex-direction:column; align-items:center; gap:10px; width:min(100%,520px); }
.skeleton-line { display:block; border-radius:7px; height:20px; width:66%; background:linear-gradient(100deg,rgba(255,255,255,.16) 20%,rgba(255,255,255,.42) 38%,rgba(255,255,255,.16) 56%); background-size:200% 100%; animation:skeleton-shimmer 1.3s infinite; }
.skeleton-line.short { height:12px; width:38%; }
@keyframes skeleton-shimmer {to{background-position:-200% 0}} 
.mini-spinner { height:18px; width:18px; border:2px solid rgba(255,255,255,.35); border-top-color:#fff; border-radius:50%; animation:spinner-rotate .75s linear infinite; }
@keyframes spinner-rotate{to{transform:rotate(360deg)}}
[hidden]{display:none!important}
.server-ip-wrap { text-align:center; margin:16px auto 8px; }
.copy-ip { background:transparent; border:1px solid #ffffff30; border-radius:7px; color:#f3f3f3; font:700 1.05rem 'Outfit',sans-serif; padding:12px 21px; cursor:pointer; transition:.2s; }
.copy-ip:hover { border-color:#eb3952; background:rgba(225,32,62,.14); }
.copy-ip span { color:#ff7b8e; font-size:.82rem; font-weight:500; margin-left:12px; }
.main-actions { margin-top:2.6rem; }
.section-title { text-align:center; font-size:clamp(1.8rem,4.5vw,2.6rem); font-weight:900; margin-bottom:.3rem; }
.section-title span {color:#f23551}
.section-sub {text-align:center; color:#b8adb0; font-size:1.05rem; margin-bottom:26px}
.how-join { margin-top:5.5rem; }
.join-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px; }
.join-card { background:#171214; border:2px solid #ffffff20; border-radius:8px; overflow:hidden; }
.join-card-heading { padding:20px 22px 12px; }
.join-card h3 { font-size:1.45rem; font-weight:800; }
.join-card p { color:#c3b9bc; font-size:.94rem; }
.join-card img { width:100%; height:auto; display:block; object-fit:contain; border-block:1px solid #ffffff20; }
.join-steps { padding:15px 21px 22px 42px; color:#e8dfe1; }
.join-steps li { padding-bottom:7px; line-height:1.5; }
.join-steps code { color:#ff7c8d; font:700 .96rem 'Outfit',sans-serif; overflow-wrap:anywhere; }
.join-steps strong { color:#fff; }
.join-note { text-align:center; color:#aaa; margin-top:16px; font-size:.95rem; }
.social-links {display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;margin:20px auto 14px}
.social-links a {display:inline-block; padding:4px 10px; border-radius:6px; border:1px solid #ffffff28; color:#fff; font-weight:600; transition:.2s; }
.social-links a:hover {border-color:#f43e58;color:#ff8396;background:#240c13}
.footer-powered { color:#fff; font-size:1rem; font-weight:600; margin-top:14px }
.footer-powered a {color:#fff; text-decoration:none; border-bottom:1px solid #ffffff88}
.footer-powered a:hover {color:#ff7e8f}
.footer-info p {line-height:1.7}
footer { margin-top:5rem; padding:28px 0 32px; }
.vote-hero { margin-top:2.8rem; margin-bottom:1.3rem; text-align:center; }
.vote-hero img { display:block; width:100%; max-width:780px; margin:0 auto; height:auto; }
.vote-page .vote-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); max-width:980px; margin-inline:auto; }
.vote-page .vote-links a { min-height:120px; }
.vote-note {text-align:center;color:#aaa; margin-top:22px; font-size:.92rem;}
.back-link { color:#ff7d92; display:inline-block; margin:12px 0 0; }
@media (max-width:48.0625rem){
  .hero {height:35vh;min-height:270px}
  .online-players {margin-top:2rem;padding:1.3rem 1rem;font-size:1.22rem}
  .join-grid, .vote-page .vote-links {grid-template-columns:1fr}
  .how-join {margin-top:3rem}
  .main-actions {margin-top:2rem}
  .copy-ip span {display:block;margin:4px 0 0}
  .join-card-heading{padding:15px 16px 10px}
  .vote-hero{margin-top:2rem}
}
@media (prefers-reduced-motion:reduce){.hero img,.skeleton-line,.mini-spinner {animation:none!important}*{scroll-behavior:auto!important}}

/* Nov 2026 requested improvements — original design and cave background preserved. */
.hero {flex-direction:column;}
.hero-brand { width:100%; max-width:1009px; text-align:center; }
.welcome-under-logo {color:#fff; font-size:clamp(1.25rem,3.5vw,2rem); font-weight:700; letter-spacing:.03em; margin-top:clamp(.8rem,2vw,1.3rem); text-shadow:0 3px 14px #000;}
/* The player display is no longer a button. The cave image matches the supplied example. */
.player-section {margin-top:2rem; margin-bottom:2.6rem;}
.player-status-panel { min-height:176px; display:flex; justify-content:center; flex-direction:column; text-align:left; padding:28px clamp(25px,7vw,76px); border-radius:8px; border:1px solid #ffffff29; background:linear-gradient(90deg,rgba(0,0,0,.70),rgba(0,0,0,.30)),url("images/bg.png") center 44%/cover; box-shadow:0 8px 25px #0004; }
.player-status-title {font-size:clamp(1.45rem,3.65vw,2.6rem);font-weight:400;line-height:1.35;letter-spacing:.005em;text-shadow:0 2px 10px #000;}
.player-count-line {font-size:clamp(1.5rem,4vw,3rem);font-weight:400;line-height:1.35;letter-spacing:.005em;text-shadow:0 2px 10px #000;}
.player-count-line strong {color:#20c856;font-weight:800;text-shadow:0 2px 10px #000;}
.player-status-panel.is-offline .player-count-line strong,.player-status-panel.is-unknown .player-count-line strong {color:#ff6d7e;}
.player-status-panel .status-loading {align-items:flex-start;width:min(100%,540px)}
.player-status-panel .skeleton-line {height:23px;width:80%;}
.player-status-panel .skeleton-line.short {height:19px;width:57%;}
.main-actions {margin-top:2.3rem;}
.main-actions .tripwire-icon,.vote-page .tripwire-icon {width:46px; height:46px;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 1px 2px #0006);}
/* Store login card: user reference composition, with red CTA instead of green. */
.store-spot {margin-top:4.5rem; margin-bottom:3rem;}
.store-login-card {display:flex;align-items:center;gap:26px;width:100%;max-width:1030px;margin:auto;background:#19131f;border:2px solid #443044;border-radius:16px;padding:19px 26px;color:white;text-decoration:none;transition:border-color .2s,transform .2s,box-shadow .2s;box-shadow:0 12px 26px rgba(0,0,0,.22);}
.store-login-card:hover {border-color:#f13a58;transform:translateY(-3px);box-shadow:0 17px 30px rgba(0,0,0,.35);}
.store-login-card:focus-visible {outline:3px solid white;outline-offset:4px;}
.store-avatar {display:block;width:106px;height:106px;object-fit:cover;image-rendering:auto;border-radius:12px;flex:0 0 auto;}
.store-login-copy {display:flex;flex-direction:column;gap:1px;flex:1;min-width:0;}
.store-login-copy strong{font-size:clamp(1.45rem,3vw,2.3rem);font-weight:900;line-height:1.16;color:white;}
.store-login-copy>span {font-size:clamp(.98rem,2.25vw,1.6rem);font-weight:500;color:#b9a9c7;}
.store-login-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;background:#cf1734;border-radius:14px;padding:23px 29px;min-width:225px;min-height:81px;white-space:nowrap;font-weight:900;font-size:1.55rem;letter-spacing:.035em;color:white;box-shadow:0 6px 0 #73091d;transition:filter .2s;}
.store-login-card:hover .store-login-button {filter:brightness(1.12);}
/* Four same-style vote choices; inactive links cannot lead visitors to bogus pages. */
.vote-page .vote-links a.pending-vote {opacity:.72;cursor:default;}
.vote-page .vote-links a.pending-vote:hover {transform:none;filter:drop-shadow(0 6px 0rem var(--button-hover-filter));}
@media(max-width:750px){
  .player-status-panel{padding:25px 23px;min-height:145px;}
  .store-login-card{gap:15px;padding:14px;border-radius:12px;flex-wrap:wrap;}
  .store-avatar{width:74px;height:74px;border-radius:9px;}
  .store-login-copy strong{font-size:1.55rem;}
  .store-login-copy>span{font-size:1rem;}
  .store-login-button{width:100%;min-width:0;min-height:54px;padding:10px 20px;font-size:1.2rem;}
  .store-spot {margin-top:3.5rem;}
  .welcome-under-logo {margin-top:16px;}
}
@media(max-width:380px){.store-avatar{width:65px;height:65px}.store-login-copy>span{font-size:.90rem}.main-actions .tripwire-icon{width:35px;height:35px}}
@media(prefers-reduced-motion:reduce){.store-login-card{transition:none}}


/* Final refinement: leave live player text clean, without the banner, border or rounded card. */
.player-status-panel,
.player-status-panel.is-online,
.player-status-panel.is-offline,
.player-status-panel.is-unknown {
  background:none !important;
  background-image:none !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  overflow:visible;
  min-height:122px;
  padding:14px clamp(0px,3vw,26px);
}
.player-status-panel::before,.player-status-panel::after,
.player-status-panel .status-scene-image {display:none !important;content:none !important;}
.player-status-panel .player-status-title,
.player-status-panel .player-count-line{color:#fff;text-shadow:none}
.player-section{margin-top:1.7rem; margin-bottom:2rem}
@media(max-width:48.0625rem){
 .player-status-panel{padding:12px 0;min-height:100px}
}

/* HeavySMP Forms: reuses the site's original Minecraft-style theme and buttons. */
.forms-hero { height:clamp(260px,40vh,390px); }
.forms-hero h1 img {width:100%;max-width:780px;height:auto;display:block;margin:auto;}
.forms-content {margin-top:4rem;margin-bottom:5rem;min-height:200px;text-align:center;}
.forms-notice {width:min(100%,820px);margin:1.5rem auto 0;padding:2rem 1.3rem;background:#171214;border:1px solid #ffffff22;border-radius:8px;}
.forms-notice>p {color:#d7ccd0;font-size:1.1rem;}
.forms-actions {margin-top:1.65rem;max-width:650px;gap:1rem;}
.forms-actions a {padding:1.25rem 1rem;font-size:1.2rem;}
@media(max-width:48.0625rem){.forms-actions{flex-direction:column}.forms-hero {height:260px}.forms-content{margin-top:3rem}}

/* Forms additions follow the existing dark red theme, retaining original layout. */
.hs-request-form{max-width:750px;margin:20px auto;display:flex;flex-direction:column;gap:16px;padding:24px;text-align:left!important}
.hs-request-form label{display:flex;flex-direction:column;gap:7px;color:#fff;font-weight:700}
.hs-request-form input,.hs-request-form select,.hs-request-form textarea{width:100%;padding:13px 15px;background:#171010;border:1px solid #5c2930;color:white;border-radius:7px;font:inherit}
.hs-request-form button{background:#cf1734;color:white;padding:13px 16px;border:1px solid #e2384d;border-radius:7px;font:800 1rem 'Outfit',sans-serif;cursor:pointer}
.hs-request-form button:disabled{opacity:.6;cursor:wait}
#form-feedback{font-weight:600;color:#eee;min-height:20px}
