html {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, Helvetica, sans-serif;
  font-size: 1.2em;
  color: #FFFFFF;
  letter-spacing: 1px;
  min-height: 100vh;
  background-color: #002450; 
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    
    background-image: 
        url('tex1_128x64_9f4abbf3f9e630cb_2.png'),
        linear-gradient(180deg, rgba(0,0,0,0) 5%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0) 95%);
    
    background-size: 96px 48px, 100% 200px;
    background-repeat: repeat, repeat;
    
    opacity: 0.10;
    background-blend-mode: multiply, normal;
    
    animation: flatRightUpDrift 20s linear infinite;
}

@keyframes flatRightUpDrift {
    0% {
        background-position: 0px 0px, 0px 0px;
    }
    100% {
        background-position: 512px -256px, 0px 1000px;
    }
}


a, a:link, a:visited {
	color: blue;
	text-decoration: none;
}
a:hover, a:active, a:focus {
	color: blue;
}

h1, h2, h3{
	text-align: center;
	margin: 0;
	line-height: 1;
	font-family: "Kooper Kart Double Dash", system-ui, Helvetica, sans-serif;
    text-transform: uppercase;
    background: linear-gradient(to bottom, #FDFD2C 0%, #FFFFCD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 3px #000000;
    filter: drop-shadow(3px 3px 0px rgba(0, 0, 0, 0.4));
}
h1 {
	font-size: 2.5em;
}
h2 {
	margin-top: 1em;
	font-size: 1.1em;
}
h3 {
	margin-top: 1em;
	font-size: 0.8em;
}

section > header {
    background-image: 
        linear-gradient(90deg, 
            rgba(255,255,255,0) 15%, 
            rgba(255,255,255,0.35) 40%, 
            rgba(255,255,255,0.35) 60%, 
            rgba(255,255,255,0) 85%
        ),
        repeating-conic-gradient(#1818BE 0 25%, #18648F 0 50%);
    
    background-size: 900px 100%, 24px 24px;
    background-repeat: repeat-x, repeat;
    background-blend-mode: screen, normal;
    
	margin-top: 25px;
    padding: 4px 0; 
    border-top: 1px solid #007bCC;
    border-bottom: 1px solid #007bCC;
    
    animation: checkerScroll 4s linear infinite;
}

@keyframes checkerScroll {
    0% {
        background-position: 0px 0px, 0px 0px;
    }
    100% {
        background-position: -900px 0px, 0px 0px;
    }
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
	font-style: italic;
	background-repeat: no-repeat;
	background-size: cover;
	shape-margin: 1rem;
}

p {
	margin: 0 auto;
}

.b {font-weight: bold;}
.center {text-align: center;}
.muted {font-size: 0.9em; }

main {
	width: 100%;
	margin: 0 auto;
	display: grid;
	grid-template-rows: auto 1fr auto;
	min-height: 100vh; 
	margin: 0;
	padding: 0;
}


.site-header {
    width: 100%;
    max-width: 1200px;
	margin: 0 auto; 
	box-sizing: border-box;
    background-color: rgba(6, 7, 20, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px 0;
    text-align: center;
    border: 1px solid #007bCC;
	border-width: 0 1px 0 1px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.4);
}

.site-title {
    font-size: 4em;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    font-family: "Kooper Kart Double Dash", system-ui, sans-serif;
    background: linear-gradient(to right, #FE4902 0%, #FFEE02 50%, #FE4902 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 3px #000000;
    filter: drop-shadow(4px 4px 0px rgba(0, 0, 0, 0.5));
    
    line-height: 1;
    margin: 0;
    display: block;
}

.site-subtitle {
    font-size: 2em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
	font-family: "Kooper Kart Double Dash", system-ui, sans-serif;
    margin-top: 8px;
    display: block;
    color: #DEDEDE;
    -webkit-text-stroke: 2px #222222;
    font-style: italic; 
}



.content {
    width: 100%;
    max-width: 1200px; 
    margin: 0 auto; 
    box-sizing: border-box;
    
    background-color: rgba(6, 7, 20, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    
    border: 1px solid #007bCC;
	border-width: 0 1px 0 1px;
}



.main-content section {
	margin: 10px 0;
}
.main-content section:first-child {
	margin-top: 0;
}
.main-content section:last-child {
	margin-bottom: 0;
}

.main-content .box {
}

.main-content .box a:hover {
	text-decoration: underline;
}

.server-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
}

.server-card {
    background-color: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(0, 123, 204, 0.3);
    border-radius: 8px;
    padding: 10px 20px;
    box-sizing: border-box;
    align-items: center;
    gap: 25px;
}

.server-card:hover {
    background-color: rgba(255, 255, 255, 0.18);
}

.server-card.type-lobby,
.server-card.type-empty {
    display: grid;
    grid-template-columns: 2fr 5fr 110px;
}
.server-card.type-race {
    display: grid;
    grid-template-columns: 2fr 1fr auto 4fr 110px;
    align-items: center;
    gap: 25px;
}

.server-card.type-archive {
    display: grid;
    grid-template-columns: 1fr auto 3fr 1fr 110px;
    align-items: center;
    gap: 25px;
}

.server-card.is-completed {
    background-color: rgba(255, 215, 0, 0.12);
    border: 2px solid rgba(255, 215, 0, 0.7);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.server-card.is-completed:hover {
    background-color: rgba(255, 215, 0, 0.18);
    border-color: rgba(255, 215, 0, 1.0);
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.4);
}

.card-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.card-section .label { 
    font-size: 0.75em; 
    text-transform: uppercase; 
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
}
.card-section .value { 
    font-weight: bold; 
    color: #ffffff; 
}
.status-center {
    text-align: center;
}
.status-center .value {
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

.map-preview-box {
    width: 120px;
    height: 68px;
    border: 2px solid #000000;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.5);
    background-color: #111;
}
.map-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cup-inline-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.race-meta-row {
    display: flex;
    gap: 12px;
    font-size: 0.85em;
    text-transform: uppercase;
    font-weight: bold;
    margin-top: 2px;
}
.badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #000000;
    line-height: 1;
    display: inline-block;
}

.cc-badge {
    background-color: #ffe600;
    color: #000000;
}

.mirror-badge {
    background-color: #ff4902;
    color: #ffffff;
}

.mode-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7em;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #000000;
    margin-bottom: 2px;
    width: max-content;
}
.mode-badge.gp { background-color: #ff4902; color: #ffffff; }
.mode-badge.vs { background-color: #007bCC; color: #ffffff; }
.mode-badge.battle { background-color: #ffe600; color: #000000; }


.players-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.player-counter { 
    padding: 6px 14px; 
    font-weight: 900; 
    font-size: 1.1em;
    color: #ffffff; 
    text-align: center;
    min-width: 65px;
}

@media (max-width: 900px) {
    .server-card.type-lobby,
    .server-card.type-empty,
    .server-card.type-race,
	.server-card.type-archive {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .players-right { 
        align-items: flex-start; 
    }
}

footer {
    width: 100%;
    max-width: 1200px;
	margin: 0 auto; 
	box-sizing: border-box;
    background-color: rgba(6, 7, 20, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px 0;
    text-align: center;
    border: 1px solid #007bCC;
	border-width: 0 1px 0 1px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.4);
}

footer .credits {
	display: inline-block;
	margin: auto;
	border-radius: 10px;
	border: 2px solid transparent;
	color: rgb(181, 195, 204);
}

@font-face {
    font-family: 'Kooper Kart Double Dash';
    src: url('KoopaKartDoubleDash-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
	
	font-display: swap;
}