@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;600;700;800&display=swap');

:root {
    --bg: #020b08;
    --panel: rgba(3, 25, 19, .88);
    --line: rgba(0, 255, 156, .19);
    --text: #f4f7ff;
    --muted: #9ab9aa;
    --blue: #00e88f;
    --cyan: #00ffa3;
    --pink: #73f7b8;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background:
        linear-gradient(125deg, rgba(1, 12, 9, .91), rgba(1, 20, 14, .78)),
        url('/ayusnake-background.png') center / cover fixed,
        var(--bg);
    font-family: Manrope, Arial, sans-serif;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.glow {
    position: fixed;
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .13;
    pointer-events: none;
}

.glow-blue { top: 28%; left: -9rem; background: #00ff9d; }
.glow-pink { top: 45%; right: -10rem; background: #00c879; }

.topbar, main, footer {
    width: min(1120px, calc(100% - 40px));
    margin: auto;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 27px 0;
    border-bottom: 1px solid var(--line);
}

.brand, .telegram-link, .actions, .eyebrow, footer {
    display: flex;
    align-items: center;
}

.brand { gap: 11px; font-size: 19px; font-weight: 800; letter-spacing: -.04em; }
.brand > span:last-child span { color: var(--cyan); }
.brand-mark {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 1px solid var(--cyan);
    border-radius: 9px;
    color: var(--cyan);
    font-size: 14px;
    box-shadow: 0 0 22px rgba(0, 255, 157, .32);
}

.telegram-link {
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    transition: color .2s ease;
}

.telegram-link:hover, footer a:hover { color: var(--cyan); }
.telegram-icon { color: var(--cyan); font-size: 16px; }

.hero {
    display: grid;
    grid-template-columns: 1.04fr .96fr;
    gap: clamp(45px, 8vw, 105px);
    align-items: center;
    min-height: 640px;
    padding: 74px 0 88px;
}

.eyebrow {
    gap: 9px;
    margin: 0 0 22px;
    color: var(--cyan);
    font: 500 11px/1 DM Mono, monospace;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
}

h1, h2, p { margin-top: 0; }
h1 {
    max-width: 650px;
    margin-bottom: 24px;
    font-size: clamp(48px, 7vw, 84px);
    line-height: .98;
    letter-spacing: -.07em;
}
h1 em, h2 em { color: var(--cyan); font-style: normal; }
.lead {
    max-width: 520px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}
.actions { flex-wrap: wrap; gap: 13px; margin-top: 35px; }
.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 19px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
    color: #07101f;
    background: var(--cyan);
    box-shadow: 0 12px 30px rgba(121, 255, 225, .18);
}
.button-ghost { border-color: var(--line); color: var(--muted); }
.button-ghost:hover { border-color: var(--cyan); color: var(--text); }

.snake-card {
    position: relative;
    height: 420px;
    overflow: hidden;
    border: 1px solid rgba(121, 255, 225, .25);
    border-radius: 24px;
    background: #06150f;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35), inset 0 0 60px rgba(0, 255, 157, .07);
    transform: rotate(2deg);
}
.card-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(121,255,225,.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(121,255,225,.09) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.score, .coordinate, .card-caption {
    position: absolute;
    z-index: 1;
    font: 11px DM Mono, monospace;
    letter-spacing: .1em;
}
.score { top: 25px; left: 28px; color: var(--muted); }
.score strong { margin-left: 8px; color: var(--cyan); font-weight: 500; }
.coordinate { color: rgba(157, 169, 197, .58); }
.coordinate-one { right: 25px; top: 28px; }
.coordinate-two { left: 28px; bottom: 31px; color: var(--pink); }
.card-caption { right: 27px; bottom: 28px; text-align: right; }
.card-caption span { display: block; color: var(--text); font-size: 13px; }
.card-caption small { color: var(--cyan); font-size: 9px; }
.snake { position: absolute; width: 210px; height: 150px; }
.snake-one { top: 130px; left: 89px; transform: rotate(-18deg); }
.snake i, .snake b {
    position: absolute;
    display: block;
    width: 43px;
    height: 43px;
    border: 2px solid var(--cyan);
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(121,255,225,.35), rgba(38,93,136,.2));
    box-shadow: 0 0 17px rgba(121,255,225,.42);
}
.snake i:nth-child(1) { left: 0; top: 0; }
.snake i:nth-child(2) { left: 39px; top: 4px; }
.snake i:nth-child(3) { left: 76px; top: 25px; }
.snake i:nth-child(4) { left: 104px; top: 57px; }
.snake i:nth-child(5) { left: 133px; top: 88px; }
.snake b { left: 165px; top: 97px; border-color: var(--cyan); background: var(--cyan); }
.snake b::before, .snake b::after {
    content: "";
    position: absolute;
    top: 12px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #07101f;
}
.snake b::before { left: 11px; }
.snake b::after { right: 11px; }
.food {
    position: absolute;
    top: 137px;
    right: 75px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 25px var(--pink);
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 30px 0 110px;
}
.feature {
    padding: 27px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: rgba(15, 21, 39, .42);
}
.feature-number { color: var(--pink); font: 12px DM Mono, monospace; }
.feature h2 { margin: 32px 0 11px; font-size: 17px; }
.feature p, .about-panel > p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.about-panel {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    padding: 62px 0;
    border-top: 1px solid var(--line);
}
.about-panel h2 { margin: 0; font-size: clamp(28px, 4vw, 45px); letter-spacing: -.06em; }
.about-panel > p { max-width: 420px; padding-top: 12px; }
footer {
    justify-content: space-between;
    margin-top: 30px;
    padding: 25px 0 32px;
    border-top: 1px solid var(--line);
    color: #64708c;
    font: 11px DM Mono, monospace;
}
footer a { color: var(--blue); }

.account-page { width: min(680px, calc(100% - 28px)); margin: 0 auto; padding: 34px 0 80px; }
.account-page > .brand { display: inline-flex; margin-bottom: 48px; }
.account-card { padding: clamp(24px, 6vw, 58px); border: 1px solid var(--line); border-radius: 24px; background: var(--panel); box-shadow: 0 28px 80px rgba(0,0,0,.25); }
.account-card h1 { font-size: clamp(40px, 8vw, 68px); }
.account-card h2 { margin: 0 0 22px; color: var(--cyan); }
.account-card label { display: grid; gap: 8px; margin: 17px 0; color: var(--muted); font: 12px DM Mono, monospace; }
.account-card input, .account-card textarea { width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: var(--text); background: rgba(5, 10, 22, .72); font: 14px Manrope, sans-serif; }
.account-card textarea { min-height: 100px; resize: vertical; }
.account-status { min-height: 20px; margin: 22px 0 0; color: var(--cyan); }
.account-status.error { color: var(--pink); }
.muted { color: var(--muted); font-size: 13px; }

/* Account hub */
.account-body { min-height: 100vh; background-attachment: fixed; }
.account-topbar { position: relative; z-index: 1; width: min(1180px, calc(100% - 44px)); padding: 21px 0; }
.account-nav { display: flex; align-items: center; gap: 19px; color: var(--muted); font-size: 13px; font-weight: 700; }
.nav-link { transition: color .18s ease; }
.nav-link:hover, .account-footer a:hover { color: var(--cyan); }
.nav-divider { width: 1px; height: 20px; background: var(--line); }
.nav-current { display: inline-flex; align-items: center; gap: 9px; color: var(--text); }
.nav-current .status-dot, .server-pill .status-dot { width: 8px; height: 8px; }
.account-main { position: relative; z-index: 1; width: min(1180px, calc(100% - 44px)); margin: auto; padding: 45px 0 35px; }
.auth-layout { display: grid; grid-template-columns: 1fr minmax(340px, 470px); gap: clamp(40px, 8vw, 110px); align-items: center; min-height: min(720px, calc(100vh - 160px)); }
.account-intro h1, .dashboard-heading h1 { margin: 0 0 20px; font-size: clamp(46px, 6vw, 74px); line-height: .99; letter-spacing: -.065em; }
.account-intro .lead { max-width: 470px; }
.intro-points { display: grid; gap: 15px; margin-top: 38px; color: #c3ddcf; font-size: 14px; font-weight: 700; }
.intro-points span { display: flex; align-items: center; gap: 14px; }
.intro-points b { color: var(--cyan); font: 11px 'DM Mono', monospace; }
.account-card { border-color: rgba(0, 255, 157, .17); background: linear-gradient(145deg, rgba(5, 34, 25, .94), rgba(2, 18, 14, .92)); box-shadow: 0 24px 75px rgba(0, 0, 0, .32), inset 0 1px rgba(140, 255, 198, .035); backdrop-filter: blur(16px); }
.auth-card { padding: clamp(26px, 4vw, 42px); border-radius: 23px; }
.auth-card .eyebrow { margin-bottom: 12px; }
.auth-card h2 { margin: 0 0 24px; color: var(--text); font-size: 28px; letter-spacing: -.04em; }
.account-card label { color: #c1d5ca; font: 600 12px/1.4 Manrope, Arial, sans-serif; }
.account-card input, .account-card textarea, .account-card select { min-height: 46px; padding: 12px 14px; border: 1px solid rgba(140, 220, 175, .16); border-radius: 11px; outline: none; color: var(--text); background-color: rgba(1, 12, 9, .76); font: 14px Manrope, Arial, sans-serif; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.account-card select { width: 100%; appearance: none; background-image: linear-gradient(45deg, transparent 50%, #88dcae 50%), linear-gradient(135deg, #88dcae 50%, transparent 50%); background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.account-card input:focus, .account-card textarea:focus, .account-card select:focus { border-color: rgba(0, 255, 157, .7); background-color: rgba(2, 23, 15, .95); box-shadow: 0 0 0 3px rgba(0, 255, 157, .09), 0 0 22px rgba(0, 255, 157, .07); }
.account-card input::placeholder { color: #60786b; }
.transfer-panel { display: grid; gap: 10px; margin-top: 18px; padding: 16px; border: 1px solid rgba(0,255,157,.14); border-radius: 15px; background: rgba(0,12,9,.38); }
.transfer-panel p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.transfer-panel strong { color: var(--text); }
.transfer-code { padding: 10px; border-radius: 10px; color: #8fffc5; background: rgba(0,255,157,.08); text-align: center; font: 700 26px 'DM Mono', monospace; letter-spacing: .22em; }
.transfer-expiry { color: #8ca99a; font-size: 11px; }
.button { min-height: 48px; border-radius: 12px; cursor: pointer; }
.button-primary { color: #03130c; background: linear-gradient(110deg, #00ffa3, #5df7a4); box-shadow: 0 10px 28px rgba(0, 255, 157, .17); }
.button-primary:hover { box-shadow: 0 13px 34px rgba(0, 255, 157, .27); }
.button-secondary { justify-content: center; border: 1px solid rgba(0, 255, 157, .28); color: #c8f5dd; background: rgba(0, 105, 67, .17); }
.button-secondary:hover { border-color: rgba(0, 255, 157, .65); background: rgba(0, 155, 91, .24); }
.button-wide { width: 100%; justify-content: center; }
.auth-card form { display: grid; gap: 4px; }
.auth-switch { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 21px; color: var(--muted); font-size: 12px; }
.text-button { padding: 7px 3px; border: 0; color: var(--cyan); background: transparent; font: 700 12px Manrope, sans-serif; cursor: pointer; }
.text-button:hover { color: #a5ffd2; text-decoration: underline; text-underline-offset: 4px; }
.account-status { min-height: 18px; margin: 13px 0 0; color: #86f6bd; font-size: 12px; line-height: 1.5; }
.account-status.error { color: #ff9898; }
.dashboard-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 31px; }
.dashboard-heading .eyebrow { margin-bottom: 15px; }
.dashboard-heading h1 { margin-bottom: 12px; font-size: clamp(38px, 5vw, 58px); }
.dashboard-heading .lead { margin: 0; font-size: 14px; }
.server-pill { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; color: #c6e5d3; background: rgba(0, 39, 27, .65); font-size: 12px; font-weight: 700; }
.dashboard-grid { display: grid; grid-template-columns: minmax(245px, 300px) minmax(0, 1fr); align-items: start; gap: 24px; }
.profile-card { padding: 22px; border-radius: 20px; text-align: center; }
.profile-card-head { display: flex; justify-content: space-between; align-items: center; }
.profile-card-head .eyebrow { margin: 0; }
.icon-button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: rgba(2, 15, 10, .65); cursor: pointer; transform: rotate(45deg); }
.icon-button:hover { color: var(--cyan); border-color: var(--cyan); }
.profile-avatar-wrap { position: relative; display: grid; width: 88px; height: 88px; place-items: center; margin: 25px auto 14px; border: 2px solid var(--cyan); border-radius: 50%; background: radial-gradient(circle, rgba(0, 255, 157, .2), rgba(0, 38, 25, .75)); box-shadow: 0 0 30px rgba(0, 255, 157, .16); overflow: hidden; }
.profile-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.avatar-fallback { color: var(--cyan); font-size: 34px; font-weight: 800; }
.avatar-online { position: absolute; right: 2px; bottom: 3px; width: 15px; height: 15px; border: 3px solid #062017; border-radius: 50%; background: #20f792; }
.profile-card h2 { margin: 0; color: var(--text); font-size: 21px; }
.profile-handle { margin: 4px 0 20px; color: var(--muted); font: 12px 'DM Mono', monospace; }
.profile-form { display: grid; gap: 10px; text-align: left; }
.profile-form label { gap: 7px; margin: 0; }
.profile-form input { min-height: 42px; }
.upload-button { display: flex; justify-content: center; align-items: center; gap: 7px; min-height: 40px; margin: 10px 0 0 !important; border: 1px solid transparent; border-radius: 10px; color: #9fe7bf !important; background: rgba(0, 120, 72, .12); cursor: pointer; }
.upload-button:hover { border-color: var(--line); background: rgba(0, 160, 89, .16); }
.upload-button span { color: var(--cyan); font-size: 17px; }
.upload-button input { display: none; }
.profile-meta { margin: 14px 0 0; color: #779485; font-size: 11px; }
.token-panel { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); text-align: left; }
.token-panel summary { color: #b4e3c7; font-size: 12px; font-weight: 700; cursor: pointer; }
.token-panel p { margin: 11px 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.account-card textarea#token { min-height: 72px; margin-bottom: 9px; color: #a6e8c0; font: 10px/1.5 'DM Mono', monospace; overflow-wrap: anywhere; }
.rooms-column { min-width: 0; }
.room-overview { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 0 0 17px; padding: 20px 22px; border: 1px solid rgba(0, 255, 157, .2); border-radius: 18px; background: linear-gradient(105deg, rgba(0, 87, 51, .37), rgba(2, 26, 18, .78)); }
.room-overview .eyebrow { margin-bottom: 7px; }
.room-overview h2 { margin: 0 0 5px; font-size: 23px; letter-spacing: -.04em; }
.room-overview p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 12px; }
.room-stats { display: flex; gap: 10px; }
.room-stats div { display: grid; min-width: 68px; gap: 2px; padding: 9px 11px; border: 1px solid rgba(177, 255, 206, .1); border-radius: 12px; text-align: center; background: rgba(0, 13, 9, .55); }
.room-stats strong { color: var(--cyan); font-size: 19px; }
.room-stats span { color: var(--muted); font-size: 10px; }
.create-room-card { margin: 0 0 25px; padding: 0; border-radius: 17px; overflow: hidden; }
.create-room-summary { display: flex; align-items: center; gap: 13px; padding: 16px 18px; cursor: pointer; list-style: none; }
.create-room-summary::-webkit-details-marker { display: none; }
.create-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border: 1px solid rgba(0, 255, 157, .36); border-radius: 12px; color: var(--cyan); background: rgba(0, 155, 85, .13); font-size: 22px; }
.create-room-summary strong, .create-room-summary small { display: block; }
.create-room-summary strong { font-size: 14px; }
.create-room-summary small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.summary-chevron { margin-left: auto; color: var(--cyan); font-size: 18px; transition: transform .2s ease; }
.create-room-card[open] .summary-chevron { transform: rotate(180deg); }
.room-editor { padding: 5px 19px 19px; border-top: 1px solid rgba(0, 255, 157, .1); }
.editor-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 14px 0 14px; }
.editor-heading .eyebrow { margin: 0 0 4px; }
.editor-heading h3 { margin: 0; font-size: 17px; }
.mode-badge { padding: 7px 9px; border: 1px solid rgba(0, 255, 157, .2); border-radius: 999px; color: #8fdfb1; background: rgba(0, 100, 57, .13); font: 9px 'DM Mono', monospace; white-space: nowrap; }
.room-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 13px; }
.room-fields label { display: grid; gap: 6px; margin: 0; }
.room-fields .field-wide { grid-column: 1 / -1; }
.room-fields input, .room-fields select { min-height: 41px; padding: 9px 11px; font-size: 12px; }
.input-suffix { position: relative; }
.input-suffix input { width: 100%; padding-right: 48px; }
.input-suffix span { position: absolute; top: 50%; right: 12px; color: #739583; font-size: 11px; transform: translateY(-50%); pointer-events: none; }
.editor-actions { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 15px; }
.editor-actions p { margin: 0; color: var(--muted); font-size: 11px; }
.editor-actions .button { min-height: 42px; padding: 0 14px; font-size: 12px; }
.rooms-list-head { display: flex; justify-content: space-between; align-items: center; margin: 0 2px 10px; }
.rooms-list-head h3 { margin: 0; font-size: 15px; }
.rooms-list { display: grid; gap: 11px; }
.room-card { padding: 17px; border: 1px solid rgba(135, 213, 168, .13); border-radius: 16px; background: linear-gradient(120deg, rgba(4, 29, 21, .88), rgba(3, 20, 15, .85)); box-shadow: 0 13px 36px rgba(0, 0, 0, .16); }
.room-card-top { display: flex; align-items: flex-start; gap: 12px; }
.room-card-icon { display: grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; border: 1px solid rgba(0, 255, 157, .23); border-radius: 12px; color: var(--cyan); background: rgba(0, 117, 68, .14); font-size: 18px; }
.room-card-title { min-width: 0; flex: 1; }
.room-card-title h4 { overflow: hidden; margin: 1px 0 5px; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.room-id { color: #769484; font: 10px 'DM Mono', monospace; }
.room-status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid rgba(0, 255, 157, .2); border-radius: 999px; color: #8fffc1; background: rgba(0, 139, 77, .12); font: 10px 'DM Mono', monospace; white-space: nowrap; }
.room-status::before { width: 6px; height: 6px; border-radius: 50%; background: #00ffa3; box-shadow: 0 0 9px #00ffa3; content: ""; }
.room-status.closed { border-color: rgba(182, 197, 185, .16); color: #a0b0a6; background: rgba(110, 125, 115, .09); }
.room-status.closed::before { background: #78867d; box-shadow: none; }
.room-card-summary { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0 0 51px; }
.room-chip { padding: 6px 8px; border: 1px solid rgba(152, 212, 176, .1); border-radius: 8px; color: #afcbbc; background: rgba(0, 10, 7, .32); font-size: 10px; }
.room-card-actions { display: flex; gap: 8px; margin: 14px 0 0 51px; }
.room-card-actions .button { min-height: 36px; padding: 0 12px; font-size: 11px; }
.room-card-actions .button-primary { color: #02140b; }
.room-card-actions .button-danger { border-color: rgba(255, 92, 112, .28); color: #ff9aa8; background: rgba(140, 30, 48, .16); }
.room-card-actions .button-danger:hover { border-color: rgba(255, 92, 112, .65); color: #ffd0d5; background: rgba(160, 35, 55, .28); }
.room-card-actions .button-danger:disabled { opacity: .55; cursor: wait; }
.room-settings { margin: 16px 0 0 51px; padding-top: 14px; border-top: 1px solid var(--line); }
.room-settings[hidden] { display: none; }
.room-settings .room-fields { gap: 8px 11px; }
.room-settings .room-fields input, .room-settings .room-fields select { min-height: 38px; font-size: 11px; }
.room-settings-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.room-settings-actions .button { min-height: 36px; padding: 0 12px; font-size: 11px; }
.empty-rooms { padding: 28px 20px; border-radius: 16px; text-align: center; }
.empty-mark { display: grid; width: 45px; height: 45px; place-items: center; margin: 0 auto 11px; border: 1px solid var(--line); border-radius: 14px; color: var(--cyan); background: rgba(0, 140, 76, .12); font-size: 25px; }
.empty-rooms h3 { margin: 0 0 6px; font-size: 15px; }
.empty-rooms p { max-width: 330px; margin: 0 auto 15px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.empty-rooms .button { min-height: 38px; padding: 0 13px; font-size: 11px; }
.dashboard-status { margin-top: 16px; }
.account-footer { display: flex; justify-content: space-between; width: min(1180px, calc(100% - 44px)); margin: 30px auto 0; padding: 18px 0 27px; border-top: 1px solid rgba(0, 255, 157, .12); color: #6d8b7c; font: 11px 'DM Mono', monospace; }
.account-footer a { color: #8fcaab; }
.account-footer a span { color: var(--cyan); }

[hidden] { display: none !important; }

@media (max-width: 760px) {
    .topbar, main, footer { width: min(100% - 28px, 520px); }
    .hero { grid-template-columns: 1fr; min-height: auto; padding: 65px 0 75px; }
    .snake-card { height: 350px; transform: rotate(0); }
    .snake-one { left: 13%; top: 105px; transform: scale(.85) rotate(-18deg); transform-origin: left top; }
    .features { grid-template-columns: 1fr; padding-bottom: 75px; }
    .about-panel { display: block; }
    .about-panel > p { padding-top: 25px; }
    .account-topbar { width: calc(100% - 28px); padding: 17px 0; }
    .account-nav { gap: 11px; font-size: 11px; }
    .account-main, .account-footer { width: calc(100% - 28px); }
    .account-main { padding-top: 30px; }
    .auth-layout { grid-template-columns: 1fr; gap: 28px; min-height: auto; }
    .account-intro h1 { font-size: clamp(43px, 12vw, 62px); }
    .intro-points { grid-template-columns: 1fr; gap: 10px; margin-top: 23px; }
    .auth-card { padding: 24px; }
    .dashboard-heading { display: block; }
    .server-pill { width: fit-content; margin-top: 17px; }
    .dashboard-grid { grid-template-columns: 1fr; gap: 18px; }
    .profile-card { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; text-align: left; }
    .profile-card-head, .profile-avatar-wrap, .profile-card h2, .profile-handle, .profile-meta, .token-panel { grid-column: 1 / -1; }
    .profile-avatar-wrap { margin: 17px auto 12px; }
    .profile-card h2, .profile-handle { text-align: center; }
    .profile-form { grid-column: 1 / -1; }
    .room-overview { padding: 17px; }
    .room-stats { gap: 6px; }
    .room-stats div { min-width: 53px; padding: 8px 7px; }
    .room-stats strong { font-size: 17px; }
    .room-overview p:not(.eyebrow) { max-width: 210px; line-height: 1.45; }
    .editor-heading { align-items: flex-start; }
    .mode-badge { max-width: 123px; white-space: normal; line-height: 1.4; text-align: center; }
    .room-card { padding: 14px; }
    .room-card-summary, .room-card-actions, .room-settings { margin-left: 0; }
    .room-card-top { gap: 9px; }
    .room-card-icon { width: 34px; height: 34px; flex-basis: 34px; }
}

@media (max-width: 420px) {
    .account-topbar .brand { gap: 7px; font-size: 16px; }
    .account-topbar .brand-mark { width: 28px; height: 28px; }
    .account-nav { gap: 8px; font-size: 10px; }
    .nav-divider { height: 16px; }
    .room-fields { grid-template-columns: 1fr 1fr; gap: 8px; }
    .room-fields label { font-size: 11px; }
    .room-fields input, .room-fields select { padding: 9px 8px; font-size: 11px; }
    .editor-actions { display: grid; }
    .editor-actions .button { width: 100%; }
    .room-card-top { flex-wrap: wrap; }
    .room-status { margin-left: auto; }
    .room-card-actions { flex-wrap: wrap; }
    .room-card-actions .button { flex: 1; padding: 0 8px; }
    .room-settings .room-fields { grid-template-columns: 1fr 1fr; }
    .account-footer { font-size: 10px; }
}
