/* Frogmare Rising public portal — Bild-2 implementation, 2026-09-24. */
:root {
  --ink: #060a0f;
  --panel: rgba(10, 17, 24, .965);
  --panel-soft: rgba(14, 23, 32, .94);
  --line: rgba(132, 157, 178, .26);
  --line-hot: rgba(74, 217, 235, .55);
  --text: #f4f7fa;
  --soft: #bdc7d1;
  --muted: #778696;
  --cyan: #55dcea;
  --red: #e5354d;
  --red-dark: #a81731;
  --green: #3de59b;
  --display: "Bahnschrift Condensed", "Arial Narrow", "Segoe UI", sans-serif;
  --ui: "Bahnschrift", "Segoe UI Variable Text", "Segoe UI", sans-serif;
  --portal-width: 1566px;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { min-width: 0; scroll-behavior: smooth; background: var(--ink) !important; }
body {
  min-width: 0 !important;
  overflow-x: hidden;
  background: radial-gradient(circle at 82% 8%, rgba(177, 29, 52, .12), transparent 36rem), #060a0f !important;
  color: var(--soft) !important;
  font: 14px/1.45 var(--ui) !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(128, 156, 180, .022) 1px, transparent 1px), linear-gradient(90deg, rgba(128, 156, 180, .022) 1px, transparent 1px);
  background-size: 48px 48px;
}

.wrapper {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  background: none !important;
  box-shadow: none !important;
}
.page-home .wrapper {
  background: linear-gradient(180deg, transparent 0, transparent 430px, rgba(6, 10, 15, .1) 520px, #060a0f 790px), url(../images/frogmare-portal-hero-v2.png) center top / 100% auto no-repeat !important;
}

/* Header / hero */
.header {
  position: relative;
  height: 360px !important;
  min-height: 360px !important;
  isolation: isolate;
  overflow: hidden;
  background: url(../images/frogmare-portal-hero-v2.png) center top / cover no-repeat !important;
}
.page-home .header { background: transparent !important; }
.header::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  display: block !important;
  background: linear-gradient(90deg, rgba(4, 8, 12, .93) 0%, rgba(4, 8, 12, .63) 33%, rgba(4, 8, 12, .08) 65%, rgba(4, 8, 12, .08) 100%), linear-gradient(180deg, rgba(4, 8, 12, .12) 48%, rgba(4, 8, 12, .92) 100%) !important;
}
.header::after { content: none !important; }
.legacy-logo, .server-load { display: none !important; }

.menu-top {
  position: fixed !important;
  inset: 0 0 auto !important;
  z-index: 100;
  width: 100% !important;
  max-width: none !important;
  height: 62px !important;
  display: grid !important;
  grid-template-columns: minmax(260px, 315px) minmax(560px, 1fr) minmax(285px, 330px);
  align-items: center;
  gap: 16px;
  padding: 0 max(34px, calc((100vw - 1590px) / 2)) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(171, 191, 207, .15) !important;
  background: rgba(5, 9, 14, .78) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18) !important;
  backdrop-filter: blur(15px) saturate(1.12);
}
.is-scrolled .menu-top { background: rgba(5, 9, 14, .96) !important; }
.menu-top::before { content: none !important; }

.site-brand {
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #fff !important;
  text-decoration: none !important;
}
.site-brand-mark {
  position: relative;
  width: 47px;
  height: 47px;
  flex: 0 0 47px;
  overflow: hidden;
  background: url(../images/frogmare-mark-v2.png) center / contain no-repeat;
  filter: drop-shadow(0 0 9px rgba(229, 53, 77, .25));
}
.site-brand-mark::after { content: none; }
.site-brand-name {
  font: 800 24px/.95 var(--display);
  letter-spacing: .14em;
  white-space: nowrap;
  text-shadow: 0 2px 16px #000;
}
.site-brand-name b { color: var(--red); font-weight: 800; }
.site-drawer { display: contents; }

.site-navigation {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.85vw, 35px);
  min-width: 0;
}
.site-navigation a, .site-account-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  color: #aeb8c3 !important;
  font: 700 10px/1 var(--display) !important;
  letter-spacing: .12em;
  text-decoration: none !important;
  text-transform: uppercase;
  white-space: nowrap;
}
.site-navigation a:hover, .site-navigation a.active { color: #fff !important; }
.site-navigation a.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -12px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red), #ff7285);
  box-shadow: 0 0 13px rgba(229, 53, 77, .8);
}
.site-account-nav {
  grid-column: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.site-search-toggle {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #b8c3cd;
  cursor: pointer;
}
.menu-top .site-search-toggle { border: 0 !important; background: transparent !important; box-shadow: none !important; }
.site-search-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.site-login-link {
  min-width: 98px;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid rgba(139, 159, 178, .25);
  border-radius: 4px;
  background: rgba(12, 19, 27, .72);
}
.site-create-link {
  min-width: 164px;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid rgba(255, 92, 111, .48);
  border-radius: 4px;
  background: linear-gradient(135deg, #dc3049, #a71731);
  color: #fff !important;
  box-shadow: inset 0 1px rgba(255,255,255,.11), 0 8px 20px rgba(120, 9, 31, .25);
}
.site-menu-toggle { display: none !important; }

.site-search-panel {
  position: fixed;
  top: 72px;
  left: 50%;
  z-index: 130;
  width: min(650px, calc(100vw - 32px));
  padding: 20px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 13, 19, .985);
  box-shadow: 0 28px 80px rgba(0,0,0,.62);
}
.site-search-panel[hidden] { display: none !important; }
.site-search-panel > label { display: block; margin-bottom: 8px; color: #fff; font: 700 13px var(--display); letter-spacing: .1em; text-transform: uppercase; }
.site-search-panel > div { display: grid; grid-template-columns: 1fr 42px; gap: 8px; }
.site-search-panel input { width: 100%; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 4px; outline: 0; background: #070d13; color: #fff; }
.site-search-panel input:focus { border-color: var(--cyan); }
.site-search-close { border: 1px solid var(--line); border-radius: 4px; background: #111a23; color: #fff; font-size: 22px; }
.site-search-panel nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 11px; }
.site-search-panel nav a { padding: 9px 11px; border-radius: 3px; color: #9cabb9 !important; text-decoration: none; }
.site-search-panel nav a:hover { background: rgba(82, 220, 234, .08); color: #fff !important; }

.site-hero {
  position: relative;
  z-index: 2;
  width: min(var(--portal-width), calc(100% - 106px));
  height: 100%;
  margin: 0 auto;
  padding-top: 101px;
}
.site-hero-kicker { display: block; margin-bottom: 5px; color: #a8b6c3; font: 650 11px/1.2 var(--display); letter-spacing: .31em; text-transform: uppercase; }
.site-hero h1 { margin: 0 !important; color: #f4f4f2 !important; font: 900 clamp(52px, 4vw, 68px)/.94 var(--display) !important; letter-spacing: .01em; text-shadow: 0 5px 25px #000; text-transform: uppercase; }
.site-hero h1 em { color: var(--red); font-style: normal; }
.site-hero h2 { margin: 10px 0 7px !important; color: #e4e7e9 !important; font: 700 21px/1 var(--display) !important; letter-spacing: .42em; text-transform: uppercase; }
.site-hero p { margin: 0; color: #bec8d1; font-size: 13px; line-height: 1.4; }
.site-hero-actions { display: flex; gap: 10px; margin-top: 15px; }
.site-cta {
  min-width: 246px;
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 10px 20px;
  border: 1px solid rgba(143, 176, 200, .52);
  border-radius: 4px;
  background: rgba(7, 13, 20, .75);
  color: #f2f5f7 !important;
  font: 750 12px/1 var(--display);
  letter-spacing: .11em;
  text-decoration: none !important;
  text-transform: uppercase;
  box-shadow: inset 0 1px rgba(255,255,255,.04);
}
.site-cta.primary { border-color: #fc566b; background: linear-gradient(135deg, #e83b54, #b31a35); box-shadow: 0 10px 26px rgba(151, 15, 40, .3); }
.site-cta:hover { transform: translateY(-1px); filter: brightness(1.08); }
.hero-manifesto { position: absolute; left: 36.5%; top: 207px; margin: 0; padding: 0 0 0 3px; color: rgba(215, 222, 228, .65); font: 500 12px/1.55 var(--display); letter-spacing: .28em; text-transform: uppercase; }
.hero-manifesto::after { content: ""; display: block; width: 27px; height: 2px; margin-top: 14px; background: var(--red); box-shadow: 0 0 9px var(--red); }

/* Five-part live rail */
.live-status {
  position: relative;
  z-index: 20;
  width: min(var(--portal-width), calc(100% - 106px));
  height: 66px;
  display: grid;
  grid-template-columns: 1.08fr .9fr 1.03fr 1.12fr 1.08fr;
  margin: -36px auto 10px;
  overflow: hidden;
  border: 1px solid rgba(113, 157, 186, .56);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(11, 24, 32, .985), rgba(11, 16, 24, .985));
  box-shadow: 0 15px 40px rgba(0,0,0,.54), inset 0 1px rgba(255,255,255,.04);
  backdrop-filter: blur(16px);
}
.live-status > div { min-width: 0; display: flex; align-items: center; justify-content: center; gap: 13px; padding: 9px 20px; border-right: 1px solid var(--line); }
.live-status > div:last-child { border-right: 0; }
.live-status > div > span:not(.status-icon) { min-width: 0; }
.live-status small, .live-status strong, .live-status em { display: block; }
.live-status small { color: #9ba9b7; font: 650 9px/1.15 var(--display); letter-spacing: .11em; text-transform: uppercase; }
.live-status strong { margin-top: 2px; overflow: hidden; color: var(--cyan); font: 750 14px/1.15 var(--ui); text-overflow: ellipsis; white-space: nowrap; }
.live-status strong em { display: inline; color: #aab6c1; font-style: normal; font-weight: 500; }
.live-status > div > span > em { margin-top: 2px; color: #758392; font-size: 9px; font-style: normal; white-space: nowrap; }
.status-dot { width: 17px; height: 17px; flex: 0 0 17px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 8px rgba(61,229,155,.1), 0 0 19px rgba(61,229,155,.9); }
.status-icon { flex: 0 0 34px; color: var(--cyan); font-size: 27px; line-height: 1; text-align: center; text-shadow: 0 0 15px rgba(85,220,234,.5); }

/* Main layout */
.container {
  position: relative;
  z-index: 10;
  width: min(var(--portal-width), calc(100% - 106px)) !important;
  max-width: var(--portal-width) !important;
  min-width: 0 !important;
  display: grid !important;
  grid-template-columns: 245px minmax(0, 1fr) 230px !important;
  gap: 15px !important;
  margin: 0 auto !important;
  padding: 0 0 58px !important;
  background: transparent !important;
}
.content { min-width: 0 !important; }
.page-home .container { display: block !important; }
.page-home .container > .sidebar, .page-home .container > .right-sidebar { display: none !important; }
.page-home .container > .content { width: 100% !important; }

.content > .home-dashboard {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 340px 166px;
  gap: 10px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.home-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(13, 22, 30, .97), rgba(8, 14, 20, .98)); box-shadow: 0 12px 33px rgba(0,0,0,.36), inset 0 1px rgba(255,255,255,.035); }
.home-card > header:not(.feature-heading) { height: 45px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 13px; border-bottom: 1px solid var(--line); background: rgba(8, 14, 20, .28); }
.home-card > header > a { color: #82909f !important; font: 650 8px/1 var(--display); letter-spacing: .11em; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.home-card > header > a:hover { color: var(--cyan) !important; }
.card-heading { min-width: 0; display: flex; align-items: center; gap: 9px; }
.card-heading h2, .feature-heading h2 { margin: 0 !important; overflow: hidden; color: #f5f7f9 !important; font: 750 14px/1 var(--display) !important; letter-spacing: .12em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.card-icon { width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; color: var(--red); font-size: 17px; }
.card-icon.cyan { color: var(--cyan); }
.card-icon.green { color: var(--green); }

/* Main update card */
.update-feature { position: relative; grid-column: span 6; scroll-margin-top: 76px; }
.update-backdrop { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; object-position: center 51%; filter: saturate(.88) contrast(1.08); }
.update-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4,8,12,.64) 0, rgba(4,8,12,.06) 37%, rgba(4,8,12,.12) 52%, rgba(5,9,13,.94) 100%); }
.feature-heading { position: absolute; top: 0; right: 0; left: 0; z-index: 3; height: 45px; display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-bottom: 1px solid rgba(173,192,208,.13); }
.version-badge { position: absolute; z-index: 3; top: 50px; left: 21px; padding: 5px 11px; border: 1px solid rgba(239,76,95,.38); border-radius: 3px; background: rgba(126,17,37,.72); color: #ff778a; font: 700 9px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.update-overlay { position: absolute; z-index: 3; right: 0; bottom: 0; left: 0; padding: 0 25px 14px; }
.update-overlay h3 { margin: 0 0 3px !important; overflow: hidden; color: #fff !important; font: 850 24px/1.06 var(--display) !important; letter-spacing: .06em; text-overflow: ellipsis; text-shadow: 0 2px 16px #000; text-transform: uppercase; white-space: nowrap; }
.update-overlay p { max-width: 92%; margin: 0 0 9px; overflow: hidden; color: #d1d8de; font-size: 11px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.site-card-button { min-height: 28px; display: inline-flex; align-items: center; justify-content: center; gap: 15px; padding: 5px 15px; border: 1px solid rgba(135,168,193,.56); border-radius: 3px; background: rgba(7,13,19,.75); color: #eaf0f4 !important; font: 700 9px/1 var(--display); letter-spacing: .09em; text-decoration: none !important; text-transform: uppercase; }
.site-card-button.primary { border-color: rgba(244,73,94,.7); background: linear-gradient(135deg,#db3049,#a41932); }

/* Events */
.event-stream { grid-column: span 3; }
.event-list { position: relative; padding: 7px 15px 8px 19px; }
.event-list::before { content: ""; position: absolute; top: 12px; bottom: 14px; left: 24px; width: 1px; background: linear-gradient(var(--cyan), rgba(126,149,168,.24)); }
.event-row { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 9px; min-height: 68px; }
.event-symbol { position: relative; z-index: 2; width: 45px; height: 43px; display: grid; place-items: center; border: 1px solid rgba(130,152,170,.27); border-radius: 5px; background: #0d151d; color: #a0aab3; font-size: 18px; }
.event-row.active .event-symbol { border-color: rgba(85,220,234,.48); color: var(--cyan); box-shadow: 0 0 15px rgba(85,220,234,.09); }
.event-row::before { content: ""; position: absolute; z-index: 3; top: 32px; left: 2px; width: 7px; height: 7px; border-radius: 50%; background: #939da7; box-shadow: 0 0 0 3px rgba(147,157,167,.1); }
.event-row.active::before { background: var(--cyan); box-shadow: 0 0 0 3px rgba(85,220,234,.1), 0 0 11px var(--cyan); }
.event-row span { color: var(--cyan); font: 700 8px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.event-row h3 { margin: 5px 0 3px !important; overflow: hidden; color: #f2f5f7 !important; font: 750 13px/1 var(--display) !important; letter-spacing: .05em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.event-row p { margin: 0; overflow: hidden; color: #7f8d9a; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

/* Compact top ten */
.ranking-preview { grid-column: span 3; display: flex; flex-direction: column; }
.ranking-range { min-width: 66px; padding: 6px 8px; border: 1px solid rgba(130,153,171,.28); border-radius: 3px; color: #c2cbd3; font-size: 9px; text-align: center; }
.ranking-head, .ranking-preview li { display: grid; grid-template-columns: 29px minmax(74px, 1fr) 43px minmax(68px, .85fr); align-items: center; column-gap: 5px; }
.ranking-head { height: 24px; margin: 0 13px; border-bottom: 1px solid var(--line); color: #8391a0; font: 650 8px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.ranking-preview ol { flex: 1; margin: 0; padding: 0 13px; list-style: none; }
.ranking-preview li { min-height: 21px; border-bottom: 1px solid rgba(129,152,171,.11); }
.ranking-preview li strong { overflow: hidden; color: #e7ecf0; font-size: 9.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ranking-preview li b { color: #c5ced6; font-size: 9px; font-weight: 600; }
.ranking-preview li small { overflow: hidden; color: #8996a2; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.rank-position { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; color: #a8b1ba; font-size: 8px; font-weight: 700; }
.ranking-preview li:nth-child(1) .rank-position { border: 1px solid #ffbf45; color: #ffe09c; box-shadow: 0 0 8px rgba(255,191,69,.45); }
.ranking-preview li:nth-child(2) .rank-position { border: 1px solid #aeb8c2; color: #d8e0e7; }
.ranking-preview li:nth-child(3) .rank-position { border: 1px solid #d77f58; color: #efae8f; }
.ranking-footer { align-self: center; min-width: 190px; height: 27px; display: inline-flex; align-items: center; justify-content: center; gap: 15px; margin: 4px 0 8px; border: 1px solid rgba(130,154,175,.35); border-radius: 3px; color: #c8d1d9 !important; font: 650 8px/1 var(--display); letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }

/* Bottom row */
.news-stream { grid-column: span 6; scroll-margin-top: 76px; }
.news-list { height: 120px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 9px 12px; }
.news-list > a { min-width: 0; display: grid; grid-template-columns: 75px minmax(0, 1fr); align-items: center; gap: 10px; padding: 0 10px 0 0; margin-right: 10px; border-right: 1px solid var(--line); color: inherit !important; text-decoration: none; }
.news-list > a:last-child { margin-right: 0; padding-right: 0; border-right: 0; }
.news-list img { width: 75px !important; height: 75px !important; border-radius: 4px; object-fit: cover; filter: saturate(.72) contrast(1.06); }
.news-list > a:nth-child(3) img { object-position: left center; }
.news-list span { min-width: 0; }
.news-list time, .news-list strong, .news-list small { display: block; }
.news-list time { color: #81909e; font-size: 8px; }
.news-list strong { margin: 4px 0; overflow: hidden; color: #edf1f4; font: 700 10px/1.2 var(--ui); text-overflow: ellipsis; white-space: nowrap; }
.news-list small { display: -webkit-box; overflow: hidden; color: #8c9aa7; font-size: 8.5px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }

.account-panel { grid-column: span 3; padding: 10px 16px; scroll-margin-top: 76px; }
.account-panel > .card-heading { height: 27px; }
.account-panel .card-heading h2 { font-size: 12px !important; }
.home-login { display: grid; gap: 5px; margin-top: 5px; }
.home-login > label { min-width: 0; }
.home-login > label > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.home-login > label input { width: 100%; height: 29px; padding: 0 11px 0 31px; border: 1px solid var(--line) !important; border-radius: 3px !important; outline: 0; background: #080e14 !important; color: #fff !important; font: 9px var(--ui) !important; }
.home-login > label:first-of-type { position: relative; }
.home-login > label:first-of-type::before { content: "♙"; position: absolute; z-index: 2; top: 6px; left: 11px; color: #9aa7b3; font-size: 12px; }
.home-login > label:nth-of-type(2) { position: relative; }
.home-login > label:nth-of-type(2)::before { content: "▣"; position: absolute; z-index: 2; top: 7px; left: 11px; color: #9aa7b3; font-size: 10px; }
.home-login input:focus { border-color: var(--cyan) !important; }
.login-options { display: flex; align-items: center; justify-content: space-between; min-width: 0; color: #82909d; font-size: 7.5px; }
.login-options label { display: flex; align-items: center; gap: 5px; min-width: 0; }
.login-options input { width: 13px; height: 13px; margin: 0; accent-color: var(--red); }
.login-options a, .register-shortcut { color: #aeb8c1 !important; font-size: 7.5px; }
.home-login > button { height: 29px; border: 1px solid rgba(255,90,109,.52); border-radius: 3px; background: linear-gradient(135deg,#df334c,#a71631); color: #fff; font: 750 9px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.register-shortcut { display: none; text-align: center; }
.account-overview { margin-top: 12px; }
.account-overview > strong { color: var(--cyan); font-size: 22px; }
.account-overview p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }

.community-banner {
  grid-column: span 3;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px 18px;
  scroll-margin-top: 76px;
  background: linear-gradient(90deg, rgba(5,9,13,.89), rgba(5,9,13,.2)), linear-gradient(0deg, rgba(5,9,13,.83), transparent 80%), url(../images/slider-img04.jpg) center / cover no-repeat !important;
  color: #fff !important;
  text-decoration: none !important;
}
.community-banner small, .community-banner strong, .community-banner em { display: block; }
.community-banner small { color: #d2dae0; font: 700 8px/1 var(--display); letter-spacing: .09em; text-transform: uppercase; }
.community-banner strong { max-width: 230px; margin: 4px 0 7px; font: 800 16px/1.05 var(--display); letter-spacing: .05em; text-transform: uppercase; }
.community-banner em { color: #9eabb6; font: 600 7px/1 var(--display); font-style: normal; letter-spacing: .13em; text-transform: uppercase; }
.community-banner > b { align-self: flex-start; min-width: 160px; height: 27px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; margin-top: 10px; border: 1px solid rgba(136,168,192,.51); border-radius: 3px; background: rgba(7,13,19,.72); color: #dfe6eb; font: 650 8px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }

.empty-state { grid-column: 1 / -1; padding: 18px; color: var(--muted); }

/* Existing functional inner pages, restyled but unchanged. */
.sidebar > div, .right-sidebar > div, .content > div, .page-block { border: 1px solid var(--line) !important; border-radius: 7px !important; background: var(--panel) !important; box-shadow: 0 18px 48px rgba(0,0,0,.34) !important; }
.page-block { padding: clamp(22px, 3vw, 38px) !important; }
.page-block h1 { color: #fff !important; font: 800 clamp(30px, 3vw, 44px)/1 var(--display) !important; letter-spacing: .03em; text-transform: uppercase; }
.page-block h2, .page-block h3 { color: #eef3f6 !important; font-family: var(--display) !important; }
.eyebrow { color: var(--cyan) !important; font: 700 10px var(--display); letter-spacing: .14em; text-transform: uppercase; }
.sidebar-title, .login-title, .content-title { background: rgba(255,255,255,.025) !important; color: #fff !important; text-shadow: none !important; }
.shop { min-height: 122px !important; background: linear-gradient(145deg,#111c28,#091019) !important; }
.blue-a, .green-a, .login-button, .register-form button, .support-form button, .ticket-player-reply button, .resend-form button, .unstuck-panel button { border-color: rgba(237,64,87,.52) !important; background: linear-gradient(135deg,#df3650,#9b1f37) !important; }
.ranking-table { width: 100% !important; }
.ranking-table th { color: #91a1af !important; }

footer { width: min(var(--portal-width), calc(100% - 106px)) !important; margin: 0 auto !important; padding: 28px 0 40px !important; border-color: var(--line) !important; background: transparent !important; }
.footer-nav { display: flex !important; align-items: flex-start; justify-content: space-between; gap: 24px; }
.footer-brand { color: #fff !important; font: 800 18px var(--display); letter-spacing: .13em; text-decoration: none; white-space: nowrap; }
.footer-brand b { color: var(--red); }
.f-menu ul { display: flex !important; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; }
.f-menu li { float: none !important; }
.f-menu a { color: #8493a0 !important; font-size: 10px; }
.footer-info { margin-top: 15px; color: #657481; }

@media (max-width: 1390px) {
  .menu-top { grid-template-columns: minmax(225px, 270px) minmax(500px, 1fr) minmax(260px, 300px); padding-inline: 26px !important; }
  .site-brand-name { font-size: 20px; }
  .site-brand-mark { width: 41px; height: 41px; flex-basis: 41px; }
  .site-navigation { gap: 15px; }
  .site-navigation a, .site-account-nav a { font-size: 9px !important; }
  .site-create-link { min-width: 145px; }
  .site-login-link { min-width: 83px; padding-inline: 10px; }
}

@media (max-width: 1100px) {
  .page-home .wrapper { background-size: auto 720px !important; background-position: 58% top !important; }
  .menu-top { grid-template-columns: minmax(0, 1fr) 46px; padding-inline: 18px !important; }
  .site-drawer { display: none; }
  .menu-top .site-menu-toggle { grid-column: 2; width: 42px; height: 42px; display: grid !important; place-items: center; border: 1px solid rgba(255,92,111,.48) !important; border-radius: 4px; background: linear-gradient(135deg,#dc3049,#a71731) !important; color: #fff; font-size: 23px; cursor: pointer; box-shadow: none !important; }
  .site-nav-open { overflow: hidden; }
  .site-nav-open .menu-top { height: 100vh !important; grid-template-rows: 62px minmax(0, 1fr); align-items: center; row-gap: 0; overflow: hidden !important; background: #050a0f !important; backdrop-filter: none; }
  .site-nav-open .site-brand, .site-nav-open .site-menu-toggle { grid-row: 1; }
  .site-nav-open .site-drawer { position: static; grid-column: 1 / -1; grid-row: 2; z-index: 120; width: calc(100% + 36px); height: 100%; display: flex; flex-direction: column; gap: 18px; align-self: stretch; overflow-y: auto; margin-left: -18px; padding: 22px 18px 40px; background: #050a0f; }
  .site-nav-open .site-hero, .site-nav-open .live-status, .site-nav-open .container, .site-nav-open footer { visibility: hidden !important; }
  .site-nav-open .site-navigation { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .site-nav-open .site-navigation a { min-height: 48px; justify-content: center; border: 1px solid var(--line); border-radius: 4px; background: #0c141c; font-size: 11px !important; }
  .site-nav-open .site-navigation a.active::after { right: 22%; bottom: 5px; left: 22%; }
  .site-nav-open .site-account-nav { display: grid; grid-template-columns: 50px minmax(0,1fr) minmax(0,1fr); gap: 8px; }
  .site-nav-open .site-account-nav > * { width: 100%; min-width: 0; min-height: 48px; }
  .site-search-panel { top: 70px; }
  .site-hero, .live-status, .container, footer { width: calc(100% - 44px) !important; }
  .hero-manifesto { display: none; }
  .content > .home-dashboard { grid-template-rows: auto; }
  .update-feature { grid-column: span 12; min-height: 370px; }
  .event-stream, .ranking-preview { grid-column: span 6; min-height: 340px; }
  .news-stream { grid-column: span 12; min-height: 166px; }
  .account-panel, .community-banner { grid-column: span 6; min-height: 166px; }
  .container { grid-template-columns: 220px minmax(0,1fr) !important; }
  .right-sidebar { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .page-home .wrapper { background-size: auto 600px !important; background-position: 62% top !important; }
  .header { height: 486px !important; min-height: 486px !important; background-position: 61% top !important; }
  .page-home .header { background: transparent !important; }
  body:not(.page-home) .header { height: 350px !important; min-height: 350px !important; }
  .header::before { background: linear-gradient(90deg,rgba(4,8,12,.93),rgba(4,8,12,.45)),linear-gradient(180deg,rgba(4,8,12,.08) 35%,rgba(4,8,12,.94) 100%) !important; }
  .menu-top { height: 60px !important; padding-inline: 12px !important; }
  .site-brand { gap: 8px; }
  .site-brand-mark { width: 38px; height: 38px; flex-basis: 38px; }
  .site-brand-name { overflow: hidden; font-size: 17px; letter-spacing: .1em; text-overflow: ellipsis; }
  .site-nav-open .menu-top { grid-template-rows: 60px minmax(0, 1fr); }
  .site-nav-open .site-drawer { width: calc(100% + 24px); margin-left: -12px; }
  .site-nav-open .site-navigation { grid-template-columns: 1fr; }
  .site-nav-open .site-account-nav { grid-template-columns: 48px 1fr; }
  .site-nav-open .site-create-link { grid-column: 1 / -1; }
  .site-hero { width: calc(100% - 32px) !important; padding-top: 102px; }
  .site-hero-kicker { font-size: 9px; letter-spacing: .18em; }
  .site-hero h1 { max-width: 340px; font-size: clamp(39px, 13vw, 58px) !important; line-height: .92 !important; }
  .site-hero h2 { max-width: 330px; font-size: 15px !important; line-height: 1.15 !important; letter-spacing: .25em; }
  .site-hero p { max-width: 285px; font-size: 12px; }
  .site-hero-actions { width: min(330px, 100%); display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 17px; }
  .site-cta { width: 100%; min-width: 0; min-height: 45px; }
  .live-status { width: calc(100% - 24px) !important; height: auto; grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: -28px; }
  .live-status > div { min-height: 66px; justify-content: flex-start; padding: 8px 12px; border-bottom: 1px solid var(--line); }
  .live-status > div:nth-child(2n) { border-right: 0; }
  .live-status > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .live-status strong { overflow: visible; font-size: 12px; text-overflow: clip; white-space: normal; }
  .status-icon { flex-basis: 27px; font-size: 22px; }
  .container { width: calc(100% - 24px) !important; display: flex !important; flex-direction: column; }
  .page-home .container { display: block !important; }
  .content { order: 1; width: 100% !important; }
  .sidebar { order: 2; width: 100% !important; }
  .right-sidebar { order: 3; width: 100% !important; }
  .content > .home-dashboard { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .update-feature, .event-stream, .ranking-preview, .news-stream, .account-panel, .community-banner { grid-column: 1; }
  .update-feature { min-height: 315px; }
  .update-backdrop { object-position: 58% center; }
  .update-overlay { padding-inline: 17px; }
  .update-overlay h3 { font-size: 19px !important; white-space: normal; }
  .update-overlay p { max-width: 100%; display: -webkit-box; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .event-stream, .ranking-preview { min-height: 340px; }
  .news-stream { min-height: auto; }
  .news-list { height: auto; grid-template-columns: 1fr; padding: 7px 12px; }
  .news-list > a { min-height: 92px; margin: 0; padding: 8px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .news-list > a:last-child { border-bottom: 0; }
  .account-panel { min-height: 220px; padding: 16px; }
  .account-panel > .card-heading { height: 34px; }
  .home-login { gap: 8px; }
  .home-login > label input, .home-login > button { height: 44px; }
  .home-login > label:first-of-type::before, .home-login > label:nth-of-type(2)::before { top: 13px; }
  .login-options { font-size: 9px; }
  .register-shortcut { display: block; font-size: 9px; }
  .community-banner { min-height: 210px; }
  footer { width: calc(100% - 24px) !important; }
  .footer-nav { flex-direction: column; }
  .f-menu ul { justify-content: flex-start; }
}

@media (max-width: 350px) {
  .site-brand-name { font-size: 14px; }
  .live-status { grid-template-columns: 1fr; }
  .live-status > div, .live-status > div:last-child { grid-column: 1; border-right: 0; }
  .ranking-head, .ranking-preview li { grid-template-columns: 27px minmax(70px,1fr) 42px; }
  .ranking-head span:last-child, .ranking-preview li small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
