/* ============================================
   ConeCraft
   Blocky / pixel game aesthetic
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
    /* surfaces — deep forest night */
    --bg:        #0a0f0b;
    --bg-2:      #0e1610;
    --panel:     #16221a;
    --panel-2:   #1d2c22;
    --panel-3:   #26382b;
    --line:      #2c4033;
    --line-lit:  #3d5844;

    /* text */
    --text:      #f2f7f2;
    --text-dim:  #a4b8a9;
    --text-mute: #6f8577;

    /* cone orange — the primary accent */
    --orange:     #f0812f;
    --orange-lit: #ff9a4d;
    --orange-dark:#a8501a;
    --orange-rgb: 240 129 47;

    /* grass green — "yes", success, confirmations */
    --green:      #67c23a;
    --green-lit:  #86d95c;
    --green-dark: #3d7a1f;
    --green-rgb:  103 194 58;

    /* supporting tier colours */
    --gold:      #f5b301;
    --gold-rgb:  245 179 1;
    --aqua:      #35c8d6;
    --aqua-rgb:  53 200 214;
    --violet:    #9b7ce0;
    --violet-rgb:155 124 224;
    --rose:      #e5568b;
    --rose-rgb:  229 86 139;
    --steel:     #8fa396;
    --steel-rgb: 143 163 150;
    --red:       #e5544b;

    --block: 16px;

    /* Silkscreen stays readable at UI sizes — Pixelify Sans's uppercase C
       collapses into an O, which is fatal for a name like ConeCraft. */
    --font-pixel: 'Silkscreen', system-ui, sans-serif;
    --font-body:  'Inter', system-ui, -apple-system, sans-serif;
    --font-mono:  'JetBrains Mono', ui-monospace, Consolas, monospace;

    --wrap: 1180px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    /* faint block grid across the whole page */
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 32px 32px;
    color: var(--text);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
img.pixel { image-rendering: pixelated; }

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-lit); }

code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    color: var(--green-lit);
    background: rgba(var(--green-rgb) / 0.1);
    border: 1px solid rgba(var(--green-rgb) / 0.22);
    border-radius: 3px;
    padding: 0.08em 0.36em;
    white-space: nowrap;
}

::selection { background: var(--orange); color: #1a0e05; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.container {
    max-width: var(--wrap);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

section { padding-top: 76px; padding-bottom: 76px; }

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3 {
    font-family: var(--font-pixel);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text);
}

/* pill label used as a section header, like a game UI tab */
.pill {
    display: inline-block;
    font-family: var(--font-pixel);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1a0e05;
    background: var(--orange);
    border-bottom: 3px solid var(--orange-dark);
    border-radius: 6px;
    padding: 7px 18px 5px;
    margin-bottom: 20px;
}

.pill.green {
    background: var(--green);
    border-bottom-color: var(--green-dark);
}

.section-head { margin-bottom: 36px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* Silkscreen runs wide — keep display sizes conservative so headings
   don't wrap into three lines. */
.section-head h2 {
    font-size: clamp(1.45rem, 3vw, 2.05rem);
    letter-spacing: 0.01em;
    text-shadow: 0 3px 0 rgba(0, 0, 0, 0.5);
}

.lead {
    color: var(--text-dim);
    font-size: 1.0625rem;
    max-width: 62ch;
    margin-top: 14px;
}

.note { color: var(--text-mute); font-size: 0.9rem; }

.link-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-pixel);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.link-more::after { content: '▸'; }

/* ============================================
   BUTTONS — chunky blocks with a hard bottom edge
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--font-pixel);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
    padding: 15px 26px 13px;
    border: none;
    border-bottom: 4px solid;
    border-radius: 6px;
    cursor: pointer;
    transition: filter 0.12s ease, transform 0.06s ease, border-bottom-width 0.06s ease;
    white-space: nowrap;
}

.btn:active {
    transform: translateY(2px);
    border-bottom-width: 2px;
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary {
    background: var(--orange);
    border-bottom-color: var(--orange-dark);
    color: #1a0e05;
}
.btn-primary:hover { filter: brightness(1.1); color: #1a0e05; }

.btn-gold {
    background: var(--gold);
    border-bottom-color: #a87a00;
    color: #1a1200;
}
.btn-gold:hover { filter: brightness(1.1); color: #1a1200; }

.btn-ghost {
    background: var(--panel-2);
    border-bottom-color: #0d140f;
    box-shadow: inset 0 0 0 2px var(--line-lit);
    color: var(--text);
}
.btn-ghost:hover { background: var(--panel-3); color: var(--text); }

.btn-block { width: 100%; }

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
   BANNER / HERO
   ============================================ */

.banner {
    position: relative;
    display: grid;
    align-items: center;
    min-height: 560px;
    background: linear-gradient(180deg, #121c14 0%, var(--bg) 100%);
    padding-bottom: 48px;
    overflow: hidden;
    isolation: isolate;
}

.banner.compact { min-height: 380px; }

/* the in-game screenshot behind everything */
.banner-img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* bias downward so the two players stay in frame on short banners */
    object-position: center 58%;
}

/* scrim: dark at top under the nav and at the bottom into the blocky edge,
   lighter through the middle so the build stays visible */
.banner::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        /* horizontal: heavy behind the text, clearing toward the players */
        linear-gradient(90deg,
            rgba(10, 15, 11, 0.80) 0%,
            rgba(10, 15, 11, 0.62) 40%,
            rgba(10, 15, 11, 0.24) 66%,
            rgba(10, 15, 11, 0.30) 100%),
        /* vertical: seat it under the nav and into the blocky bottom edge */
        linear-gradient(180deg,
            rgba(10, 15, 11, 0.62) 0%,
            rgba(10, 15, 11, 0.10) 30%,
            rgba(10, 15, 11, 0.16) 60%,
            rgba(10, 15, 11, 0.88) 100%);
}

/* drifting pixel blocks in the banner background */
.banner-blocks {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.5;
}

.banner-blocks i {
    position: absolute;
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 2px;
    background: rgba(var(--orange-rgb) / 0.5);
    animation: drift 9s ease-in-out infinite;
}
.banner-blocks i:nth-child(1) { left: 8%;  top: 24%; }
.banner-blocks i:nth-child(2) { left: 20%; top: 62%; width: 10px; height: 10px; background: rgba(var(--green-rgb) / 0.55); animation-delay: -2s; }
.banner-blocks i:nth-child(3) { left: 78%; top: 20%; width: 22px; height: 22px; background: rgba(var(--green-rgb) / 0.35); animation-delay: -4s; }
.banner-blocks i:nth-child(4) { left: 88%; top: 66%; background: rgba(var(--gold-rgb) / 0.45); animation-delay: -1s; }
.banner-blocks i:nth-child(5) { left: 62%; top: 78%; width: 10px; height: 10px; animation-delay: -6s; }
.banner-blocks i:nth-child(6) { left: 40%; top: 14%; width: 12px; height: 12px; background: rgba(var(--gold-rgb) / 0.35); animation-delay: -3s; }

@keyframes drift {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-16px) rotate(8deg); }
}

/* the blocky chewed edge where the banner meets the page */
.banner::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 48px;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(90deg, var(--bg) 0 16px, transparent 16px 96px),
        repeating-linear-gradient(90deg, var(--bg) 0 32px, transparent 32px 48px),
        linear-gradient(var(--bg), var(--bg));
    background-size: 100% 16px, 100% 16px, 100% 16px;
    background-position: 0 0, 0 16px, 0 32px;
    background-repeat: no-repeat;
}

/* Content is held to the left half so the two players in the screenshot
   stay clear of it on the right — they're the subject of the shot. */
.banner-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 76px 24px 92px;
}

.banner-inner > div { max-width: 600px; }

.banner h1 {
    font-size: clamp(2.4rem, 6.4vw, 4.2rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-shadow:
        0 4px 0 rgba(0, 0, 0, 0.75),
        0 2px 18px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(var(--orange-rgb) / 0.4);
    margin-bottom: 16px;
}

.brand-name {
    color: var(--orange);
}

.brand-name em {
    font-style: normal;
    color: var(--text);
}

.banner .lead {
    font-size: 1.125rem;
    max-width: 50ch;
    color: #dbe4dd;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

/* page banner for inner pages — shorter */
.banner.compact .banner-inner { padding: 56px 24px 76px; }
.banner.compact h1 { font-size: clamp(2.1rem, 5.4vw, 3.2rem); }

/* ============================================
   SERVER ADDRESS BAR
   ============================================ */

.server-ip {
    display: flex;
    align-items: stretch;
    max-width: 430px;
    margin-top: 30px;
    background: var(--panel);
    border-radius: 8px;
    box-shadow: inset 0 0 0 3px var(--line-lit);
    overflow: hidden;
}

.ip-value {
    flex: 1;
    min-width: 0;
    padding: 11px 18px;
}

.ip-label {
    display: block;
    font-family: var(--font-pixel);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-mute);
}

.ip-value strong {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--green-lit);
}

.copy-btn {
    border: none;
    background: var(--panel-3);
    color: var(--text);
    font-family: var(--font-pixel);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0 22px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.copy-btn:hover { background: var(--orange); color: #1a0e05; }
.copy-btn.copied { background: var(--green); color: #0c1a05; }

/* ============================================
   STAT STRIP
   ============================================ */

.stat-strip {
    position: relative;
    z-index: 1;
    max-width: var(--wrap);
    margin: -32px auto 0;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.stat {
    background: var(--panel);
    border-radius: 8px;
    box-shadow: inset 0 0 0 2px var(--line);
    padding: 16px 18px;
    text-align: center;
}

.stat dt {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-mute);
    margin-bottom: 3px;
}

.stat dd {
    font-family: var(--font-pixel);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--orange);
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 15, 11, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--line);
}

.nav-container {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
    font-family: var(--font-pixel);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--text);
}
.nav-logo:hover { color: var(--orange); }
.nav-logo img { width: 34px; height: 34px; }

.nav-menu {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.nav-menu a {
    display: block;
    font-family: var(--font-pixel);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 8px 15px 6px;
    border-radius: 5px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-menu a:hover { color: var(--text); background: var(--panel-2); }

.nav-menu a.active {
    color: #1a0e05;
    background: var(--orange);
    border-bottom: 3px solid var(--orange-dark);
    padding-bottom: 3px;
}

/* ============================================
   TIER TILES — glowing item slots
   ============================================ */

.tile-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 20px;
}

.tile-card { text-align: center; }

.tile {
    position: relative;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 42%, rgba(var(--tier) / 0.32) 0%, rgba(var(--tier) / 0.06) 62%, transparent 78%),
        var(--panel);
    box-shadow:
        inset 0 0 0 3px rgba(var(--tier) / 0.55),
        inset 0 0 36px rgba(var(--tier) / 0.16),
        0 0 30px rgba(var(--tier) / 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tile-card:hover .tile {
    transform: translateY(-5px);
    box-shadow:
        inset 0 0 0 3px rgba(var(--tier) / 0.8),
        inset 0 0 40px rgba(var(--tier) / 0.24),
        0 0 46px rgba(var(--tier) / 0.5);
}

.tile svg {
    width: 56%;
    height: 56%;
    color: rgb(var(--tier));
    filter: drop-shadow(0 0 12px rgba(var(--tier) / 0.75));
}

.tile-name {
    display: block;
    font-family: var(--font-pixel);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgb(var(--tier));
    margin: 14px 0 2px;
    text-shadow: 0 0 14px rgba(var(--tier) / 0.5);
}

/* tier colour assignments */
.t-common   { --tier: var(--steel-rgb); }
.t-uncommon { --tier: var(--green-rgb); }
.t-rare     { --tier: var(--aqua-rgb); }
.t-minigame { --tier: var(--rose-rgb); }
.t-premium  { --tier: var(--gold-rgb); }
.t-spawner  { --tier: var(--orange-rgb); }
.t-prestige { --tier: var(--violet-rgb); }
.t-vip      { --tier: var(--violet-rgb); }
.t-vip48    { --tier: var(--aqua-rgb); }

/* ============================================
   FEATURE CARDS
   ============================================ */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(278px, 1fr));
    gap: 18px;
}

.card {
    position: relative;
    background: var(--panel);
    border-radius: 10px;
    box-shadow: inset 0 0 0 2px var(--line);
    padding: 26px;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 2px var(--line-lit), 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(var(--orange-rgb) / 0.14);
    box-shadow: inset 0 0 0 2px rgba(var(--orange-rgb) / 0.35);
    margin-bottom: 16px;
}
.card-icon svg { width: 26px; height: 26px; color: var(--orange); }

.card h3 {
    font-size: 1.25rem;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

.card p { color: var(--text-dim); font-size: 0.94rem; }

.card ul {
    list-style: none;
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card ul li {
    position: relative;
    padding-left: 20px;
    color: var(--text-dim);
    font-size: 0.94rem;
}

.card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--orange);
}

.card ul li strong { color: var(--text); font-weight: 600; }

/* difficulty / status chip */
.chip {
    display: inline-block;
    font-family: var(--font-pixel);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 11px 2px;
    border-radius: 5px;
    margin-bottom: 13px;
    color: #0c1206;
}
.chip.easy { background: var(--green); }
.chip.hard { background: var(--orange); }
.chip.raid { background: var(--red); color: #1a0605; }
.chip.soon { background: var(--violet); color: #12081f; }

/* ============================================
   PANEL
   ============================================ */

.panel {
    background: var(--panel);
    border-radius: 10px;
    box-shadow: inset 0 0 0 2px var(--line);
    padding: 28px 30px;
}
.panel + .panel { margin-top: 16px; }
.card-grid + .panel, .tile-row + .panel { margin-top: 20px; }

.panel p { color: var(--text-dim); font-size: 0.94rem; }
.panel p + p { margin-top: 14px; }
.panel strong { color: var(--text); font-weight: 600; }

.spec-list {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 12px 30px;
    font-size: 0.94rem;
}
.spec-list dt { color: var(--text-mute); font-weight: 500; }
.spec-list dd { color: var(--text); }

/* ============================================
   RULES
   ============================================ */

.rules-list { display: flex; flex-direction: column; gap: 10px; }

.rule-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--panel);
    border-radius: 8px;
    box-shadow: inset 0 0 0 2px var(--line);
    padding: 18px 22px;
    transition: box-shadow 0.15s ease;
}
.rule-item:hover { box-shadow: inset 0 0 0 2px var(--line-lit); }

.rule-number {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: var(--orange);
    border-bottom: 3px solid var(--orange-dark);
    font-family: var(--font-pixel);
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a0e05;
}

.rule-text { font-size: 0.97rem; font-weight: 500; color: var(--text); }

.rule-text small {
    display: block;
    margin-top: 6px;
    color: var(--text-mute);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.6;
}

/* ============================================
   RANK LADDER
   ============================================ */

.rank-ladder {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.rank-step {
    background: var(--panel);
    border-radius: 8px;
    box-shadow: inset 0 0 0 2px var(--line);
    padding: 14px 16px;
    text-align: center;
}

.rank-step .rank-index {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-mute);
}

.rank-step .rank-name {
    font-family: var(--font-pixel);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 2px;
}

.rank-step.peak {
    box-shadow: inset 0 0 0 2px rgba(var(--orange-rgb) / 0.6), 0 0 24px rgba(var(--orange-rgb) / 0.22);
    background: linear-gradient(rgba(var(--orange-rgb) / 0.1), rgba(var(--orange-rgb) / 0.1)), var(--panel);
}
.rank-step.peak .rank-name { color: var(--orange); }

/* ============================================
   COMPARISON MATRIX
   ============================================ */

.matrix-scroll {
    overflow-x: auto;
    padding-bottom: 10px;
}

.matrix {
    --col: 150px;
    display: grid;
    grid-template-columns: minmax(250px, 1.4fr) repeat(var(--cols, 3), minmax(var(--col), 1fr));
    gap: 8px;
    min-width: 660px;
}

/* header cells */
.mx-corner { background: transparent; }

.mx-head {
    display: grid;
    place-items: center;
    gap: 6px;
    background: var(--panel);
    border-radius: 10px;
    box-shadow: inset 0 0 0 2px rgba(var(--tier) / 0.5);
    padding: 14px 10px 12px;
    text-align: center;
}

.mx-head svg { width: 30px; height: 30px; color: rgb(var(--tier)); filter: drop-shadow(0 0 9px rgba(var(--tier) / 0.65)); }

.mx-head span {
    font-family: var(--font-pixel);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgb(var(--tier));
}

.mx-head small { font-family: var(--font-body); font-size: 0.78rem; color: var(--text-mute); }

/* full-width category divider inside the grid */
.mx-group {
    grid-column: 1 / -1;
    font-family: var(--font-pixel);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-align: center;
    color: var(--text);
    text-shadow: 0 3px 0 rgba(0, 0, 0, 0.5);
    padding: 22px 0 6px;
}

/* perk label cell */
.mx-perk {
    background: var(--panel-2);
    border-radius: 8px;
    padding: 13px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mx-perk b { font-weight: 600; font-size: 0.94rem; color: var(--text); }
.mx-perk code {
    align-self: flex-start;
    margin-top: 3px;
    background: none;
    border: none;
    padding: 0;
    color: var(--orange);
    font-size: 0.82rem;
}

/* yes / no cells */
.mx-cell {
    display: grid;
    place-items: center;
    background: var(--bg-2);
    border-radius: 8px;
    box-shadow: inset 0 0 0 2px var(--line);
    padding: 13px;
}

.mx-cell svg { width: 27px; height: 27px; }
.mx-cell.yes svg { color: var(--green); filter: drop-shadow(0 0 8px rgba(var(--green-rgb) / 0.6)); }
.mx-cell.no svg  { color: var(--text-mute); opacity: 0.55; }

.mx-cell.text {
    font-family: var(--font-pixel);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--green-lit);
    text-align: center;
}

/* ============================================
   STORE
   ============================================ */

.username-box {
    background: var(--panel);
    border-radius: 10px;
    box-shadow: inset 0 0 0 2px var(--line);
    padding: 24px 28px;
    max-width: 560px;
}

.username-box label {
    display: block;
    font-family: var(--font-pixel);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--text);
    margin-bottom: 5px;
}

.username-box .note { margin-bottom: 15px; }

#usernameInput {
    width: 100%;
    max-width: 310px;
    background: var(--bg);
    border: none;
    box-shadow: inset 0 0 0 3px var(--line-lit);
    border-radius: 7px;
    color: var(--green-lit);
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    padding: 12px 15px;
    transition: box-shadow 0.15s ease;
}
#usernameInput::placeholder { color: var(--text-mute); font-weight: 400; }
#usernameInput:focus { outline: none; box-shadow: inset 0 0 0 3px var(--orange); }
#usernameInput.valid:not(:focus)   { box-shadow: inset 0 0 0 3px var(--green); }
#usernameInput.invalid:not(:focus) { box-shadow: inset 0 0 0 3px var(--red); }

.username-error {
    margin-top: 12px;
    color: var(--red);
    font-size: 0.9rem;
    font-weight: 600;
}

/* product cards */
.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(262px, 1fr));
    gap: 18px;
}

.product {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: center;
    background: var(--panel);
    border-radius: 12px;
    box-shadow: inset 0 0 0 2px rgba(var(--tier) / 0.45);
    padding: 26px 22px 24px;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.product:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 2px rgba(var(--tier) / 0.8), 0 0 34px rgba(var(--tier) / 0.28);
}

.product .tile {
    width: 108px;
    height: 108px;
    aspect-ratio: auto;
    margin: 0 auto 14px;
    border-radius: 12px;
}

.product h3 {
    font-size: 1.3rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgb(var(--tier));
    text-shadow: 0 0 14px rgba(var(--tier) / 0.45);
    margin-bottom: 4px;
}

.product-price {
    font-family: var(--font-pixel);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 18px;
}
.product-price span { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; color: var(--text-mute); }

.product-perks {
    list-style: none;
    flex-grow: 1;
    text-align: left;
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.product-perks li {
    position: relative;
    padding-left: 24px;
    font-size: 0.92rem;
    color: var(--text-dim);
}

.product-perks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.36em;
    width: 13px;
    height: 8px;
    border-left: 3px solid var(--green);
    border-bottom: 3px solid var(--green);
    transform: rotate(-45deg);
}

.product-perks code { background: none; border: none; padding: 0; color: var(--text); }

.product-tag {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-pixel);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a0e05;
    background: var(--gold);
    border-bottom: 3px solid #a87a00;
    border-radius: 5px;
    padding: 4px 13px 2px;
    white-space: nowrap;
}

.purchase-banner {
    background: rgba(var(--green-rgb) / 0.12);
    box-shadow: inset 0 0 0 2px rgba(var(--green-rgb) / 0.5);
    border-radius: 8px;
    color: var(--green-lit);
    font-family: var(--font-pixel);
    font-size: 1.1rem;
    letter-spacing: 0.03em;
    padding: 16px 20px;
    margin-bottom: 24px;
}
.purchase-banner.cancelled {
    background: rgba(229, 84, 75, 0.1);
    box-shadow: inset 0 0 0 2px rgba(229, 84, 75, 0.5);
    color: var(--red);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    border-top: 3px solid var(--line);
    background: var(--bg-2);
    padding: 34px 0;
}

.footer-inner {
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

footer p { color: var(--text-mute); font-size: 0.88rem; }

.footer-links { display: flex; gap: 8px; list-style: none; flex-wrap: wrap; }

.footer-links a {
    font-family: var(--font-pixel);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 4px 10px;
    border-radius: 5px;
}
.footer-links a:hover { color: var(--text); background: var(--panel-2); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
    .banner { min-height: 460px; }
    .banner.compact { min-height: 320px; }
    .banner-inner { padding: 56px 24px 80px; }

    .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .nav-container {
        height: auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 16px 0;
    }
    .nav-logo { justify-content: center; }
    .nav-menu {
        margin-top: 10px;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 8px;
        scrollbar-width: none;
    }
    .nav-menu::-webkit-scrollbar { display: none; }

    .container, .nav-container, .banner-inner, .stat-strip, .footer-inner {
        padding-left: 16px;
        padding-right: 16px;
    }

    section { padding-top: 52px; padding-bottom: 52px; }

    .banner-actions .btn { flex: 1 1 auto; }
    .server-ip { max-width: none; }

    .card { padding: 22px; }
    .panel { padding: 22px; }

    .spec-list { grid-template-columns: 1fr; gap: 3px 0; }
    .spec-list dd { margin-bottom: 11px; }

    .footer-inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
