/* ⬇️ 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. */
@media(max-width:48.0625rem){.forms-actions{flex-direction:column}.forms-hero {height:260px}.forms-content{margin-top:3rem}}

/* HeavySMP targeted November 30 additions: preserve base red/black cave theme */
#open-store-login{font-family:inherit;text-align:left;width:100%;cursor:pointer}
#open-store-login:focus-visible,.continue-login:focus-visible,.modal-dismiss:focus-visible{outline:3px solid #ff7c90;outline-offset:3px}
.notice-strip{margin:2rem auto 0;background:#241217;color:#ffdddd;border:1px solid #973247;border-left:5px solid #ef2448;border-radius:7px;padding:14px 21px;text-align:center;font-weight:700}
.stats-layout{display:grid;grid-template-columns:1fr 1.15fr;gap:22px;margin-top:3.4rem;margin-bottom:4rem}
.community-panel{background:#171214;border:2px solid #ffffff21;border-radius:9px;padding:29px 30px;min-width:0}
.small-eyebrow{display:block;color:#e98493;font-size:.76rem;letter-spacing:.12em;font-weight:800;text-transform:uppercase;margin-bottom:6px}
.community-panel .section-title{text-align:left;font-size:clamp(1.65rem,3vw,2.15rem);line-height:1.15;margin:0 0 26px}
.goal-summary{display:flex;align-items:baseline;justify-content:space-between;gap:18px;margin-bottom:13px}
.goal-summary>strong{font-size:clamp(1.6rem,4vw,2.7rem);font-weight:900;color:#fff}
.goal-summary>span{color:#ada0a5;font-size:1rem}.goal-summary span strong{color:#f8dadd}
.goal-progress{height:16px;border-radius:30px;overflow:hidden;background:#32252a;border:1px solid #62313e}
.goal-progress>div{background:linear-gradient(90deg,#9b1028,#f32d50);height:100%;width:0%;border-radius:30px;transition:width .6s ease}
.goal-footer{display:flex;flex-direction:column;gap:5px;margin-top:14px;color:#ad9ea3;font-size:.85rem}.goal-footer strong{color:#ffe0e4;font-size:.94rem;font-weight:650}
.customer-list{display:flex;flex-direction:column;gap:10px}
.customer-row{display:flex;align-items:center;gap:13px;background:#23181d;border:1px solid #ffffff1b;border-radius:8px;padding:10px 13px}
.customer-row img{width:50px;height:50px;image-rendering:pixelated;border-radius:7px;flex-shrink:0;background:#21151a}
.customer-row>div{min-width:0;display:flex;flex-direction:column;line-height:1.35;flex:1}
.customer-row strong{font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.customer-row span{color:#a69ba0;font-size:.8rem;overflow-wrap:anywhere}
.customer-row b{font-weight:800;font-size:.95rem;color:#ff9ca9;white-space:nowrap}
.login-backdrop{position:fixed;inset:0;background:#000b;z-index:1000;display:flex;align-items:center;justify-content:center;padding:18px;backdrop-filter:blur(5px)}
.login-backdrop[hidden]{display:none!important}
.minecraft-login-modal{position:relative;background:#1b1217;border:1px solid #6f293b;border-radius:14px;box-shadow:0 25px 85px #000b;width:min(100%,480px);padding:30px}
.minecraft-login-modal h2{font-weight:900;font-size:2rem;line-height:1.25}.minecraft-login-modal>p{color:#bcaab0;margin:9px 0 25px}
.minecraft-login-modal label{font-weight:800;display:block;margin-bottom:9px}
.modal-dismiss{position:absolute;right:18px;top:15px;border:0;background:transparent;color:#b9a6ac;font-size:2rem;cursor:pointer}
.name-field{display:flex;align-items:center;border:1px solid #6a3442;border-radius:9px;background:#291a21;overflow:hidden}
.name-field img{width:54px;height:54px;image-rendering:pixelated;object-fit:contain;background:#24151a}
.name-field input{width:100%;min-width:0;padding:15px 13px;color:white;background:transparent;outline:none;border:0;font:600 1rem 'Outfit',sans-serif}
.login-help{color:#998c91;font-size:.81rem;margin:12px 0 22px}.login-error{color:#ff9eaa;font-weight:600;font-size:.9rem;margin-bottom:14px}
.continue-login{border:0;background:#c71939;box-shadow:0 4px 0 #7c1025;cursor:pointer;border-radius:8px;padding:14px 20px;font:800 1rem 'Outfit',sans-serif;color:#fff;width:100%;display:flex;align-items:center;justify-content:space-between;transition:filter .15s,transform .15s}
.continue-login:hover{filter:brightness(1.15)}.continue-login:active{transform:translateY(2px)}
.custom-page-links{display:flex;justify-content:center;flex-wrap:wrap;gap:15px;margin-top:14px}.custom-page-links a{color:#ff8496;text-decoration:none;font-weight:650}
.custom-page{min-height:65vh;padding:70px 16px}.custom-page h1{font-size:clamp(2rem,5vw,3rem);margin:30px 0 16px}.custom-page-content{background:#191316;border:1px solid #ffffff20;border-radius:9px;padding:26px;max-width:940px}.custom-page-content p{color:#d4c8cc;line-height:1.9;margin-bottom:14px}
@media(max-width:760px){.stats-layout{grid-template-columns:1fr;margin-top:2.3rem}.community-panel{padding:23px 20px}.login-backdrop{padding:12px}.minecraft-login-modal{padding:26px 21px}}
@media(prefers-reduced-motion:reduce){.goal-progress>div,.continue-login{transition:none}}
