:root{
	--bg:#00c3ff; /* changed to requested cyan */
	--card:#008fb3; /* updated: darker cyan that pairs with --bg */
	--accent:#3bd671;
	--muted:#9aa4b2;
	--text:#e6eef3;

	/* new contrast-friendly colors */
	--nav-color: #00363f;       /* darker/nav links */
	--hero-desc-color: #000000; /* UPDATED: hero paragraph set to black */
	--ip-color: #00181d;        /* server IP highlight (dark) */
	font-family:Inter,Segoe UI,system-ui,Arial,sans-serif;
}
/* smooth transition when JS updates the palette */
html, body, .site-header, .section, .motd, .btn, button {
	transition: background-color 360ms ease, color 360ms ease, border-color 360ms ease;
}
*{box-sizing:border-box}
body{
	margin:0;
	/* solid background color as requested */
	background: #00c3ff;
	color:var(--text);
	line-height:1.5;
}
.container{max-width:1000px;margin:0 auto;padding:24px;display:flex;flex-direction:column;align-items:center}
.site-header{background:rgba(0,0,0,0.20);backdrop-filter: blur(4px);}
.site-header .container{display:flex;align-items:center;justify-content:space-between;width:100%}
.logo{margin:0;font-size:1.25rem;letter-spacing:0.6px}
.logo img{
	height:80px;
	width:auto;
	display:block;
	object-fit:contain;
}
.logo a{display:inline-flex;align-items:center;gap:10px}
/* nav links use new variable for better contrast on cyan bg */
.nav a{ color:var(--nav-color); margin-left:14px; text-decoration:none }
/* hero description and hero-specific muted text contrast */
.hero-desc { color: var(--hero-desc-color); }
.hero .muted { color: var(--hero-desc-color); }
/* stronger rule to ensure hero description color overrides .hero p */
.hero .hero-desc {
	color: var(--hero-desc-color) !important;
}
/* make both visible server IPs dark for readability */
#server-ip, #server-ip-2 { color: var(--ip-color); font-weight:700; }
/* subtle hover state for nav */
.nav a:hover { color: color-mix(in srgb, var(--nav-color) 60%, var(--accent) 40%); }
.hero{padding:48px 0;text-align:center}
.hero h2{font-size:2rem;margin:0 0 8px}
.hero p{margin:0 0 16px;color:var(--muted)}
.hero-actions{display:flex;gap:12px;justify-content:center;margin-bottom:8px}
button, .btn{
	background:var(--accent);
	color:var(--text);
	padding:10px 16px;border-radius:8px;border:none;cursor:pointer;text-decoration:none;font-weight:600
}
button.secondary{background:transparent;border:1px solid rgba(255,255,255,0.06);color:var(--text)}
.muted{color:var(--muted)}
.section{
	background:var(--card, rgba(255,255,255,0.02));
	margin:18px auto;
	padding:20px;
	border-radius:8px;
	display:flex;
	flex-direction:column;
	align-items:center;
	width:100%;
	max-width:900px; /* limit box width so it appears centered inside the main container */
	text-align:center
}
/* Center lists visually but keep list items left-aligned for readability */
.features ul, .section ul, .section ol {
	padding-left:0;
	display:inline-block;
	text-align:left;
	margin:0 auto;
	/* place the marker inside so it sits next to the text with minimal gap */
	list-style-position: inside;
}
/* Ensure status grid children center and don't stretch full width */
.status-grid{
	display:flex;
	gap:20px;
	align-items:center;
	flex-wrap:wrap;
	width:100%;
	justify-content:center; /* center the boxes inside the grid */
}
.status-grid > * {
	text-align:center;
	flex:0 1 340px; /* allow boxes to size up to ~340px but wrap and stay centered */
	max-width:100%;
	background: var(--card);
	padding: 14px;
	border-radius: 8px;
	box-shadow: 0 6px 18px rgba(0,0,0,0.08);
	border: 1px solid rgba(255,255,255,0.05);
}
/* Hide MOTD element */
.motd {
	display: none !important;
}
.small{font-size:0.9rem;color:var(--muted)}
.site-footer{
	padding:18px 0;
	text-align:center;
	color:#000000; /* changed to black */
}
/* Ensure links in the footer inherit the black color */
.site-footer a { color: inherit; text-decoration: underline; }
code{background:rgba(255,255,255,0.03);padding:2px 6px;border-radius:4px}
@media (max-width:640px){
	.site-header .container{flex-direction:column;gap:10px}
	.hero h2{font-size:1.5rem}
	.status-grid{flex-direction:column;align-items:flex-start}
}

/* stronger header background so buttons pop */
.site-header {
	background: rgba(0,0,0,0.20);
}

/* style nav links as visible pill buttons */
.site-header .nav a{
	display:inline-block;
	padding:8px 14px;
	margin-left:10px; /* slightly tighter than before */
	background: rgba(255,255,255,0.06);
	color: var(--text);
	border-radius:12px;
	font-weight:700;
	box-shadow: 0 8px 20px rgba(0,0,0,0.14);
	text-decoration:none;
	transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease, color 140ms ease;
}

/* hover / focus states for nav buttons */
.site-header .nav a:hover,
.site-header .nav a:focus{
	transform: translateY(-3px);
	background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
	color: var(--text);
	box-shadow: 0 14px 34px rgba(0,0,0,0.22);
	outline: none;
}
.site-header .nav a:focus-visible {
	outline: 3px solid rgba(0,0,0,0.12);
	outline-offset:3px;
}

/* make header logo area and nav items align nicely on small screens */
.site-header .container { gap: 12px; }

/* more prominent hero action buttons */
.hero-actions button,
.hero-actions .btn {
	padding:12px 18px;
	font-size:0.95rem;
	border-radius:12px;
	box-shadow: 0 12px 32px rgba(2,16,18,0.18);
	border: 1px solid rgba(255,255,255,0.06);
	transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

/* make copy-ip stand out as a light button with dark text */
.hero-actions #copy-ip {
	background: #ffffff;
	color: var(--card);
	font-weight:800;
}

/* make discord/join button use a vivid gradient and dark text for contrast */
.hero-actions .btn {
	background: linear-gradient(90deg, var(--accent), #2bd1a1);
	color:#021012;
	font-weight:700;
}

/* hover states for hero actions */
.hero-actions button:hover,
.hero-actions .btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 40px rgba(2,16,18,0.22);
	opacity:0.98;
}

/* ensure header nav is still usable on narrow screens */
@media (max-width:640px){
	.site-header .nav a{ padding:8px 10px; font-size:0.95rem; }
	.hero-actions{flex-direction:column; gap:10px}
}

/* allow buttons/links with .btn to contain an icon and text */
.btn {
	display:inline-flex;
	align-items:center;
	gap:8px;
}
/* sizing for the discord icon inside buttons */
.btn-icon {
	height:20px;
	width:auto;
	display:block;
}
/* slightly larger icon on larger screens */
@media (min-width:960px){
	.btn-icon { height:22px; }
}

/* intro overlay that shows the large logo on entry */
#intro {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg);
	z-index: 9999;
	pointer-events: none;
	opacity: 1;
	transition: opacity 320ms ease;
}

/* large intro logo centered */
#intro-logo {
	max-width: 70vw;
	max-height: 70vh;
	width: auto;
	height: auto;
	transform-origin: center center;
	will-change: transform, opacity;
}

/* hide header logo until animation completes */
#header-logo {
	opacity: 0;
	transition: opacity 220ms ease;
}

/* when intro is removed, fade out overlay */
#intro.hidden {
	opacity: 0;
	pointer-events: none;
	transition: opacity 320ms ease;
}

/* spin animation for logo on hover */
@keyframes ae-spin {
	from { transform: rotate(0deg); }
	to   { transform: rotate(360deg); }
}

/* ensure transform origin and pointer feedback */
.logo img {
	transform-origin: center center;
	cursor: pointer;
}

/* start a slow continuous spin while the cursor is over the logo */
#header-logo:hover,
.logo img:hover {
	animation: ae-spin 6s linear infinite;
}

/* respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
	#header-logo:hover,
	.logo img:hover {
		animation: none !important;
	}
}

/* Pretty numbered rules */
.section.rules-box { 
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 10px 28px rgba(0,0,0,0.10);
}

/* reset built-in markers for our custom counters */
.section .rules-ol,
.section .rules-ol ol,
.section .subrules-ol {
    list-style: none !important;
    padding-left: 0;
    margin-left: 0;
}

/* top-level 1,2,3,... */
.rules-ol { counter-reset: section; }
.rules-ol > li {
    counter-increment: section;
    position: relative;
    padding-left: 64px;
    margin: 18px 0;
    text-align: left; /* keep content left-aligned inside centered box */
}
.rules-ol > li::before {
    content: counter(section);
    position: absolute;
    left: 0;
    top: 0.05rem;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 72%, #ffffff 28%));
    color: #021012;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(2,16,18,0.18);
    border: 1px solid rgba(255,255,255,0.25);
}

/* optional heading inside each rule item */
.rules-ol > li > h4 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

/* nested 1.1, 1.2,... (keeps parent section number) */
.subrules-ol { 
    counter-reset: subsection;
    margin: 8px 0 0 0;
}
.subrules-ol > li {
    counter-increment: subsection;
    position: relative;
    padding-left: 56px;
    margin: 10px 0;
}
.subrules-ol > li::before {
    /* access parent section counter from scope */
    content: counter(section) "." counter(subsection);
    position: absolute;
    left: 0;
    top: 0.1rem;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,0.9);
    color: var(--card);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(2,16,18,0.12);
    border: 1px solid rgba(0,0,0,0.05);
}

/* nicer small headings inside rules boxes */
.rules-box h2 {
    margin-bottom: 10px;
}
.rules-box h3 {
    margin-top: 16px;
    margin-bottom: 8px;
    border-left: 4px solid color-mix(in srgb, var(--accent) 80%, #ffffff 20%);
    padding-left: 10px;
}

/* bullets under Additional Provisions and War lists */
.rules-box ul {
    margin: 8px 0 0 0;
    padding-left: 0;
    list-style: none;
    text-align: left;
}
.rules-box ul > li {
    position: relative;
    padding-left: 20px;
    margin: 6px 0;
}
.rules-box ul > li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: color-mix(in srgb, var(--accent) 90%, #000 10%);
    font-weight: 900;
}

/* tighter center alignment on very narrow screens */
@media (max-width:640px){
    .rules-ol > li { padding-left: 56px; }
    .rules-ol > li::before { width: 36px; height: 36px; border-radius: 10px; }
    .subrules-ol > li { padding-left: 48px; }
    .subrules-ol > li::before { width: 32px; height: 32px; }
}

/* disabled nav link styling: gray, not-allowed, no hover effects */
.site-header .nav a.disabled{
    background: rgba(200,200,200,0.16);
    color: #6e7678; /* muted gray text */
    cursor: not-allowed;
    pointer-events: none; /* make it non-interactive */
    opacity: 0.74;
    box-shadow: none;
    transform: none;
}
.site-header .nav a.disabled:hover,
.site-header .nav a.disabled:focus{
    transform: none;
    box-shadow: none;
    background: rgba(200,200,200,0.16);
    color: #6e7678;
    outline: none;
}

/* accessibility: visually indicate disabled state if JS toggles aria-disabled instead of class */
.site-header .nav a[aria-disabled="true"]{
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.74;
}
