:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0b0f14;
  color: #f4f7fb;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: #0b0f14; }
body {
  margin: 0; min-width: 320px; min-height: 100vh; overflow-x: hidden;
  background: radial-gradient(circle at 15% 80%, rgba(26, 39, 53, 0.16), transparent 30rem), radial-gradient(circle at 86% 18%, rgba(19, 30, 41, 0.12), transparent 24rem), #0b0f14;
  color: #f4f7fb;
}
.background-wordmark { position: fixed; z-index: 0; inset: 0; width: 100%; max-width: none; overflow: hidden; display: flex; align-items: center; justify-content: center; color: rgba(159, 205, 176, .045); font-size: clamp(8rem, 43vw, 40rem); font-weight: 900; letter-spacing: -.045em; text-indent: -.045em; line-height: 1; pointer-events: none; text-transform: uppercase; white-space: nowrap; user-select: none; }
.site-header { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; height: 39px; border-top: 1px solid rgba(255,255,255,.025); border-bottom: 1px solid rgba(255,255,255,.075); }
.alpha-banner { margin: 0; padding: 10px 20px; color: rgba(179,190,207,.45); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.language-switcher { display: flex; align-items: center; gap: 8px; padding: 5px 20px; }
.language-switcher label { color: #91a0b6; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.language-switcher select { width: auto; height: 29px; border-width: 1px; border-radius: 6px; padding: 0 8px; font-size: .8rem; }
.page-shell { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; min-height: calc(100vh - 39px); padding: 120px 24px 64px; }
.login-card, .public-info { width: min(100%, 392px); }
.private-view { width: min(100%, 920px); color: #c0cad8; }
.login-brand { display: grid; gap: 14px; margin: 0; text-align: center; }
.login-brand-acronym { display: block; color: #48df82; font-size: clamp(3.4rem, 8vw, 4rem); font-weight: 900; letter-spacing: .055em; text-indent: .055em; line-height: 1; }
.login-brand-expansion { max-width: 100%; color: #9fcdb0; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-indent: .1em; line-height: 1.6; text-transform: uppercase; }
.public-info h1 { margin: 0; color: #48df82; font-size: clamp(2.2rem,6vw,2.65rem); font-weight: 800; letter-spacing: -.055em; line-height: 1.08; text-align: center; }
.login-subtitle { margin: 18px 0 41px; color: #91a0b6; font-size: 1.05rem; line-height: 1.5; text-align: center; }
.noscript { display: block; margin: -22px 0 24px; color: #ffcb36; font-size: .9rem; line-height: 1.4; text-align: center; }
#login-form { display: grid; gap: 29px; }
.field-group { display: grid; gap: 11px; }
label { color: #f3f5f8; font-size: 1rem; font-weight: 700; }
.required { color: #ffcb36; }
input, select, button, textarea { font: inherit; }
input, select, textarea { width: 100%; border: 2px solid #303943; border-radius: 9px; outline: 0; background: rgba(13,18,24,.78); color: #f4f7fb; padding: 12px 18px; transition: border-color 140ms ease, box-shadow 140ms ease; }
input, select { height: 55px; }
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #7d8da5; opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: #48df82; box-shadow: 0 0 0 3px rgba(72,223,130,.16); }
#login-form button { min-height: 58px; margin-top: -1px; border: 0; border-radius: 9px; background: #48dc7e; color: #06130b; cursor: pointer; font-size: 1.25rem; font-weight: 800; transition: background 140ms ease, transform 140ms ease; }
#login-form button:hover { background: #58e88c; }
button:active { transform: translateY(1px); }
button:disabled { cursor: wait; opacity: .6; }
.status-message { min-height: 1.5em; margin: 25px 0 0; color: #9eabbf; font-size: .95rem; text-align: center; }
.private-view h2, .public-info h1 { text-align: center; }
.private-view h2 { margin: 0; color: #48df82; font-size: 2rem; }
.private-view label, .private-view p, .public-info p { color: #91a0b6; }
.private-heading { margin-bottom: 28px; text-align: center; }
.private-heading p { margin: 8px 0 0; }
.private-heading strong { color: #f4f7fb; }
.eyebrow { color: #48df82 !important; font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.data-card { margin: 14px 0; border: 1px solid #27313c; border-radius: 12px; background: rgba(18,25,33,.82); padding: 22px; }
.data-card h3 { margin: 0 0 18px; color: #f4f7fb; font-size: 1.05rem; }
.data-card dl, .private-view dl { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px 18px; margin: 28px 0; }
.data-card dl { margin: 0; }
.data-card dt, .private-view dt { color: #91a0b6; }
.data-card dd, .private-view dd { margin: 0; color: #f4f7fb; font-weight: 700; text-align: right; }
.data-card-status { margin: 0 0 14px; color: #48df82 !important; font-weight: 700; }
.profile-chat-preview { padding: 18px; }
.profile-chat-preview h3 { margin-bottom: 12px; }
.chat-profile-line { margin: 0; border: 1px solid #27313c; border-radius: 8px; padding: 12px 14px; font-family: Arial, sans-serif; font-size: 14px; line-height: 1.5; background: #0c131a; }
.chat-profile-toggle-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.private-view #chat-profile-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; border-color: #43586b; padding: 0 12px; }
.private-view #chat-profile-toggle:hover:not(:disabled), .private-view #chat-profile-toggle:focus-visible { border-color: #66eb98; color: #66eb98; }
.chat-profile-toggle-icon::before { content: '+'; color: #66eb98; font-weight: 900; font-size: 1.1rem; }
#chat-profile-toggle[aria-expanded="true"] .chat-profile-toggle-icon::before { content: '−'; }
.chat-profile-warning { margin: 0 !important; color: #ff858b !important; font-size: .82rem; }
.private-view .chat-profile-warning button { min-height: 0; border: 0; padding: 0; color: inherit; background: transparent; cursor: pointer; text-decoration: underline; }
.chat-profile-summary, .chat-profile-hint { margin: 8px 0 0 !important; font-size: .84rem !important; }
.profile-chat-preview #chat-profile-controls { gap: 10px; margin: 8px 0 0; }
.profile-chat-preview #chat-profile-controls[hidden] { display: none !important; }
.profile-chat-preview #chat-profile-status { min-height: 1.2em; margin: 8px 0 0; }
.chat-profile-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.profile-chat-preview select { height: 40px; padding: 7px 10px; }
.chat-profile-actions { display: flex; gap: 8px; }
.private-view #chat-profile-save { border-color: #48df82; background: #48dc7e; color: #06130b; }
@media (max-width: 520px) { .chat-profile-choice-grid { grid-template-columns: 1fr; } }
.activity-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.activity-list li { border-top: 1px solid #27313c; color: #c0cad8; padding-top: 10px; }
.activity-list li:first-child { border-top: 0; padding-top: 0; }
.empty-state { margin: 0 !important; font-style: italic; }
.private-view button, .public-info button { min-height: 48px; border: 1px solid #303943; border-radius: 8px; background: #151c24; color: #f4f7fb; cursor: pointer; padding: 0 18px; }
.private-view form { display: grid; gap: 11px; margin: 28px 0; }
.preferences-form { border-top: 1px solid #27313c; padding-top: 22px; }
.preferences-form p { margin: 0; }
#logout { width: 100%; margin-top: 4px; border-color: rgba(255,109,109,.4); color: #ffb0b0; }
.private-view form p { margin: 0; font-size: .9rem; line-height: 1.45; }
.private-tabs { display: flex; gap: 8px; justify-content: center; margin: 0 0 16px; }
.private-tabs button[aria-selected="true"] { border-color: #48df82; color: #48df82; }
.star-settings { display: flex; align-items: center; gap: 12px; }
.star-settings label { flex: 0 0 auto; }
.star-settings input { width: 7rem; }
.star-settings span { color: #91a0b6; }
#star-players { width: 100%; border-collapse: collapse; }
#star-players th, #star-players td { border-top: 1px solid #27313c; padding: 12px 8px; text-align: left; }
#star-players th { color: #91a0b6; font-size: .8rem; text-transform: uppercase; }
#star-players td:last-child { display: flex; flex-wrap: wrap; gap: 8px; }
#star-action-dialog { width: min(100% - 32px, 480px); border: 1px solid #3a4857; border-radius: 12px; background: #121921; color: #f4f7fb; padding: 22px; }
#star-action-dialog::backdrop { background: rgba(0,0,0,.7); }
#star-action-dialog form { margin: 0; }
#star-action-dialog h3 { margin-top: 0; }
#star-action-target { color: #91a0b6; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.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; }
.private-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 30px; align-items: start; }
.private-rail { position: sticky; top: 24px; border-right: 1px solid #27313c; padding: 4px 20px 18px 0; }
.private-rail .eyebrow { margin: 0 0 6px; }
.private-rail-name { margin: 0 0 22px; color: #f4f7fb !important; font-size: 1rem; font-weight: 800; overflow-wrap: anywhere; }
.private-content { min-width: 0; }
.private-content .private-heading { margin-bottom: 22px; text-align: left; }
.private-content .private-heading h2 { text-align: left; }
.private-tabs { display: grid; gap: 5px; justify-content: stretch; margin: 0; }
.private-tabs button { min-height: 44px; border-color: transparent; padding: 0 12px; text-align: left; }
.private-tabs button:hover { border-color: #303943; background: #151c24; }
.private-tabs button[aria-selected="true"] { border-color: #3e815b; background: #173c28; color: #66eb98; }
.shop-view { min-width: 0; }
.shop-header { display: flex; align-items: stretch; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.shop-header h3 { margin: 0; color: #f4f7fb; font-size: 1.45rem; }
.shop-header > div:first-child > p { max-width: 520px; margin: 7px 0 0; color: #91a0b6; line-height: 1.5; }
.shop-balance-panel { min-width: 168px; border: 1px solid #356d4e; border-radius: 10px; padding: 12px 15px; background: #112a1e; }
.shop-balance-panel span { color: #9fcdb0; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.shop-balance-panel p { margin: 4px 0 0; color: #66eb98; font-size: 1.1rem; font-weight: 800; white-space: nowrap; }
.shop-category { margin: 26px 0 0; }
.shop-category-heading { margin: 0 0 10px; color: #f4f7fb; font-size: 1rem; }
.shop-item-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.shop-item-card { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; border: 1px solid #27313c; border-radius: 10px; padding: 13px 14px; background: rgba(18,25,33,.82); }
.shop-item-card:hover { border-color: #3d5062; background: #17212b; }
.shop-item-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #394a5b; border-radius: 8px; background: #0c131a; font-size: 1.3rem; }
.shop-item-copy { min-width: 0; }
.shop-item-copy h5 { margin: 0; color: #f4f7fb; font-size: .96rem; }
.shop-item-description { margin: 4px 0 0; color: #a8b6c7 !important; font-size: .84rem; line-height: 1.4; }
.shop-item-meta { margin: 5px 0 0; color: #ffcb36 !important; font-size: .75rem; font-weight: 800; }
.shop-item-status { margin: 5px 0 0; color: #91a0b6 !important; font-size: .76rem; font-weight: 700; }
.shop-item-price { color: #ffcb36; font-size: .88rem; white-space: nowrap; }
.private-view .shop-buy { min-height: 39px; min-width: 78px; border-color: #43586b; background: #1b2733; font-size: .85rem; }
.private-view .shop-buy:hover:not(:disabled) { border-color: #48df82; color: #66eb98; }
.private-view .shop-buy:disabled { cursor: not-allowed; color: #718096; opacity: .7; }
.live-servers { width: min(100%, 620px); margin-top: 54px; border: 1px solid #27313c; border-radius: 12px; background: rgba(18,25,33,.82); overflow: hidden; }
.live-servers-header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 20px 22px 16px; border-bottom: 1px solid #27313c; }
.live-servers-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; min-width: 0; }
.live-servers-title { margin: 0; color: #f4f7fb; font-size: 1.05rem; }
.live-servers-account-count { margin: 0; color: #9fcdb0; font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.live-servers-status { min-height: 1.2em; margin: 0; color: #ffcb36; font-size: .78rem; text-align: right; }
.live-servers-empty { margin: 0; padding: 26px 22px; color: #91a0b6; font-size: .9rem; text-align: center; }
.live-server-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.live-server-table th, .live-server-table td { border-bottom: 1px solid #27313c; padding: 13px 12px; text-align: left; }
.live-server-table th { color: #91a0b6; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.live-server-table td { color: #d9e2ed; font-size: .84rem; }
.live-server-table th:first-child, .live-server-table td:first-child { width: 34%; }
.live-server-table th:nth-child(2), .live-server-table td:nth-child(2) { width: 14%; text-align: center; }
.live-server-table th:nth-child(3), .live-server-table td:nth-child(3) { width: 20%; }
.live-server-table th:nth-child(4), .live-server-table td:nth-child(4) { width: 17%; text-align: center; }
.live-server-table th:last-child, .live-server-table td:last-child { width: 15%; text-align: right; }
.live-server-link { color: #66eb98; font-weight: 800; text-decoration: none; }
.live-server-link:hover, .live-server-link:focus { color: #a0f5bc; text-decoration: underline; }
.live-record-card { margin: 16px; border: 1px solid #356d4e; border-radius: 10px; background: #112a1e; overflow: hidden; }
.live-record-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.live-record-metric { min-width: 0; padding: 16px 14px 13px; text-align: center; }
.live-record-metric + .live-record-metric { border-left: 1px solid #356d4e; }
.live-record-value { display: block; color: #66eb98; font-size: 1.65rem; font-weight: 850; letter-spacing: -.04em; line-height: 1; }
.live-record-label { display: block; margin-top: 7px; color: #9fcdb0; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.live-record-detail { min-height: 1.25em; margin: 9px 0 0; color: #e4f7e9; font-size: .8rem; line-height: 1.35; overflow-wrap: anywhere; }
.live-record-source { margin: 0; border-top: 1px solid rgba(53,109,78,.7); padding: 9px 14px; color: #9fcdb0; font-size: .72rem; text-align: center; }
.live-captain-name { color: #66eb98; font-weight: 800; }
.live-captain-badge { display: inline-grid; place-items: center; min-width: 1.2em; height: 1.2em; margin-right: 4px; border: 1px solid #66eb98; border-radius: 3px; color: #66eb98; font-size: .65em; font-weight: 900; vertical-align: .08em; }
.live-captain-draft { margin-top: 18px; border: 1px solid #356d4e; border-radius: 10px; padding: 16px; background: linear-gradient(135deg, rgba(23,60,40,.78), rgba(16,31,25,.88)); }
.live-captain-draft .eyebrow { margin: 0 0 5px; }
.live-captain-draft h4 { margin: 0; color: #f4f7fb; font-size: 1.05rem; }
.live-captain-team { margin: 8px 0 0; color: #66eb98 !important; font-size: .82rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.live-captain-lead { margin: 8px 0 14px; color: #b5cabb !important; font-size: .86rem; line-height: 1.45; }
.live-captain-candidates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.private-view .live-captain-candidate { min-width: 0; min-height: 54px; border-color: #3e815b; padding: 10px 12px; color: #e9fff0; background: rgba(8,22,15,.72); font-weight: 800; overflow-wrap: anywhere; }
.private-view .live-captain-candidate:hover:not(:disabled), .private-view .live-captain-candidate:focus-visible { border-color: #66eb98; background: #173c28; color: #66eb98; }
@media (max-width: 520px) { .live-servers { margin-top: 42px; } .live-servers-header { align-items: flex-start; padding-inline: 16px; } .live-server-table th, .live-server-table td { padding-inline: 8px; } .live-record-card { margin: 12px; } .live-record-metric { padding-inline: 8px; } }
@media (max-width: 520px) { .live-captain-candidates { grid-template-columns: 1fr; } }
@media (max-width: 430px) { .live-server-table { font-size: .78rem; } .live-server-table th, .live-server-table td { padding-block: 10px; } .live-server-table th:nth-child(3), .live-server-table td:nth-child(3) { width: 18%; } .live-record-metrics { grid-template-columns: 1fr; } .live-record-metric + .live-record-metric { border-top: 1px solid #356d4e; border-left: 0; } }
@media (max-width: 520px) { .site-header { height: auto; min-height: 39px; } .alpha-banner { max-width: 48%; } .language-switcher { padding-right: 12px; } .page-shell { padding-top: 80px; } .background-wordmark { font-size: 43vw; } .login-brand-acronym { font-size: 3.4rem; } .public-info h1 { font-size: 2.2rem; } .login-brand-expansion { font-size: .62rem; letter-spacing: .07em; text-indent: .07em; } .login-subtitle { margin-bottom: 34px; } .data-card { padding: 18px; } .star-settings { align-items: flex-start; flex-wrap: wrap; } }
@media (max-width: 720px) { .private-layout { grid-template-columns: 1fr; gap: 18px; } .private-rail { position: static; border-right: 0; border-bottom: 1px solid #27313c; padding: 0 0 14px; } .private-rail-name { display: none; } .private-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .private-tabs button { padding: 0 8px; text-align: center; } .shop-header { display: grid; grid-template-columns: 1fr; } .shop-balance-panel { width: 100%; } .shop-item-card { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; } .shop-item-price { grid-column: 2; } .private-view .shop-buy { grid-column: 3; grid-row: 1 / span 2; } }
