:root {
  --bg: #000;
  --panel: rgba(10, 22, 30, 0.72);
  --panel-2: rgba(10, 24, 34, 0.78);
  --text: #eaf8ff;
  --muted: #9ac0cf;
  --brand: #77dbff;
  --brand-2: #6ff0c8;
  --radius: 16px;
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
  --font: "SiteFont", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

@font-face {
  font-family: "SiteFont";
  src:
    local("Minecraft"),
    url("assets/mcsrroguelike/font/Minecraft.ttf") format("truetype"),
    url("font/Minecraft.ttf") format("truetype");
  font-display: swap;
  /* Minecraft.ttf 对 U+00D7（×）字形异常（易看成 ü）；排除后由栈内系统字体绘制乘号 */
  unicode-range: U+0020-007E, U+00A0-00D6, U+00D8-10FFFF;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: var(--font); }
img, svg, video, canvas { max-width: 100%; height: auto; }
html, body { min-height: 100%; width: 100%; overflow-x: clip; overscroll-behavior-x: none; }
body {
  color: var(--text);
  background:
    linear-gradient(rgba(0, 0, 0, 0.80), rgba(0, 0, 0, 0.80)),
    url("assets/mcsrroguelike/textures/gui/websitebackground2.png") center/cover fixed no-repeat;
  animation: pageFadeIn .45s ease;
  transition: opacity .22s ease, transform .22s ease;
}
body.page-leaving { opacity: 0; transform: translateY(4px); }
/* Opacity only: transform on main breaks position:sticky descendants (e.g. Wiki TOC). */
body.gate-enter-ready main {
  opacity: 0;
}
body.gate-enter main {
  opacity: 1;
  transition: opacity .55s ease;
}
a { color: var(--brand); }

/* 全站文字统一加粗（去阴影） */
h1, h2, h3, h4, h5, h6,
p, a, li, span, strong, em,
button, label, input, textarea {
  font-weight: 700;
  text-shadow: none;
}

.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center;
  gap: 12px; padding: 10px 14px;
  background: rgba(4, 10, 16, 0.8); backdrop-filter: blur(10px);
}
.menu-btn { width: 42px; height: 42px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font-size: 24px; cursor: pointer; }
.brand { text-decoration: none; color: var(--text); font-size: 20px; justify-self: center; }
.brand .brand-hi { color: var(--brand); font-weight: 700; }
.sponsor-quick { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); padding: 8px 12px; border-radius: 999px; background: rgba(111, 240, 200, 0.14); }
.sponsor-quick img { width: 18px; height: 18px; image-rendering: pixelated; }

.drawer-mask { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); opacity: 0; pointer-events: none; z-index: 39; transition: opacity .2s; }
.drawer {
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 40; width: min(320px, 86vw);
  transform: translateX(-104%); transition: transform .25s ease;
  background: linear-gradient(180deg, #0a1b29, #08131d); padding: 18px 12px; box-shadow: var(--shadow);
}
.drawer.open { transform: translateX(0); }
.drawer-mask.open { opacity: 1; pointer-events: auto; }
.drawer h2 { margin: 8px 10px 14px; color: var(--brand); font-size: 17px; }
.drawer a { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 10px; text-decoration: none; color: var(--text); padding: 11px 12px; border-radius: 10px; margin-bottom: 6px; }
.drawer a img { width: 20px; height: 20px; object-fit: contain; image-rendering: pixelated; }
.drawer a:hover, .drawer a.active { background: rgba(119, 219, 255, .14); }

main { max-width: 1100px; margin: 0 auto; padding: 76px 16px 42px; }
.section { background: transparent; border-radius: var(--radius); padding: 22px; margin-bottom: 18px; box-shadow: none; border: none; }
.section h1, .section h2 { color: var(--brand); margin-bottom: 10px; }
.section h3 { color: var(--brand-2); margin: 16px 0 8px; }
.section p, .section li { color: var(--muted); line-height: 1.72; }
.kicker { color: var(--brand-2); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.section-title-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 12px; }
.players-layout, .atlas-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 14px; }
.player-detail-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 14px; }
.bento { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }
.bento-stack, .side-info { display: grid; gap: 12px; }
.panel-card, .feature-item, .atlas-preview, .sponsor-hero, .lanyard-card { background: transparent; border: none; border-radius: 0; padding: 8px 0; box-shadow: none; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.content-image { width: min(100%, 1100px); max-height: 620px; object-fit: contain; border-radius: 12px; display: block; margin: 0 auto; }
.intro-content-image { width: min(100%, 1240px); max-height: 700px; }
.intro-article { padding-top: 4px; }
.intro-lead-center {
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(20px, 1.8vw, 30px);
  line-height: 1.7;
}
.intro-inline-image {
  width: min(100%, 1320px);
  max-height: 780px;
  margin-top: 18px;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 8px 14px; border-radius: 10px; text-decoration: none; color: #ebfbff; background: linear-gradient(140deg, rgba(59,149,255,.55), rgba(68,219,187,.45)); border: 0; cursor: pointer; }
.btn.ghost { background: rgba(119, 219, 255, .18); }

.download-card {
  margin-bottom: 16px; border-radius: 24px; padding: 16px 16px 0; color: #fff; overflow: hidden;
  background: linear-gradient(180deg, rgba(7, 20, 8, .14), rgba(7, 20, 8, .14)), url("assets/mcsrroguelike/textures/gui/cardbackground.png") center/cover no-repeat;
  border: 1px solid rgba(255, 255, 255, .2);
}
.download-card h2 { font-size: 0; }
.download-card p { color: #fff; max-width: 760px; font-size: clamp(16px, 1.9vw, 30px); font-weight: 700; line-height: 1.28; text-shadow: none; }
.download-card .card-actions { margin-top: 10px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 10px 8px 12px; }
.download-card .card-actions .btn { min-height: 48px; min-width: 156px; border-radius: 0; font-size: clamp(16px,1.4vw,24px); font-weight: 700; background: rgba(4,36,48,.92); border: 5px solid rgba(255,255,255,.96); }
.download-card .card-actions .btn.ghost { min-width: unset; border: 0; background: transparent; text-decoration: underline; color: #fff; font-size: clamp(18px,1.6vw,28px); }

.hero { min-height: 100vh; height: 100vh; min-height: 100svh; height: 100svh; position: relative; display: grid; place-items: center; text-align: center; padding: 24px; overflow: hidden; cursor: pointer; border-radius: 0; }
.hero-fullscreen { margin: 0; }
.hero.hero-exiting-up { animation: heroExitUp .68s cubic-bezier(.22,.78,.18,1) forwards; }
@keyframes heroExitUp { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-18vh); filter: blur(2px); } }
.hero-galaxy { position: absolute; inset: 0; z-index: 2; pointer-events: none; mix-blend-mode: normal; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.32); z-index: 1; }
.hero > div { position: relative; z-index: 3; }
.hero-content { transform: translateY(-140px); }
.hero img { width: min(860px, 92vw); animation: titleBreath 4.2s ease-in-out infinite; }
.hero-subtitle { margin-top: 12px; font-size: clamp(18px, 2.2vw, 28px); color: rgba(201,236,245,.76); font-style: italic; }
.hero-center-enter {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4;
  color: #fff; font-size: clamp(16px,1.4vw,22px); font-style: italic;
  -webkit-text-stroke: .5px rgba(255,255,255,.35);
  text-shadow: none;
  animation: enterGlowPulse 2.4s ease-in-out infinite;
}
@keyframes enterGlowPulse { 0%,100% { opacity: .85; } 50% { opacity: 1; } }
.hero-download-btn { min-width: 220px; min-height: 56px; font-size: 28px; font-weight: 700; }
.hero-download-slot {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - 100px);
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
}
.hero-bottom-download {
  position: relative;
  left: auto !important;
  right: auto !important;
  top: auto;
  bottom: auto;
  transform: translateY(-50%) !important;
  margin-left: 0 !important;
  width: max-content;
  max-width: 92vw;
  pointer-events: auto;
  z-index: 5;
}

@media (min-width: 881px) {
  .hero-download-slot { top: calc(50% - 100px); }
  .hero-bottom-download {
    transform: translate3d(0, -50%, 0) !important;
  }
}
@keyframes titleBreath { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.border-glow-card {
  --edge-proximity: 0;
  --cursor-angle: 45deg;
  --edge-sensitivity: 30;
  --color-sensitivity: calc(var(--edge-sensitivity) + 20);
  --border-radius: 24px;
  --glow-padding: 30px;
  --cone-spread: 25;
  --fill-opacity: 0.5;
  --card-bg: #0c1e2a;
  --gradient-one: radial-gradient(at 80% 55%, #77dbff 0px, transparent 50%);
  --gradient-two: radial-gradient(at 69% 34%, #6ff0c8 0px, transparent 50%);
  --gradient-three: radial-gradient(at 8% 6%, #8ad1ff 0px, transparent 50%);
  --gradient-four: radial-gradient(at 41% 38%, #4bbdff 0px, transparent 50%);
  --gradient-five: radial-gradient(at 86% 85%, #6fe8d4 0px, transparent 50%);
  --gradient-six: radial-gradient(at 82% 18%, #79cbff 0px, transparent 50%);
  --gradient-seven: radial-gradient(at 51% 4%, #58d6ff 0px, transparent 50%);
  --gradient-base: linear-gradient(#77dbff 0 100%);
  --glow-color: hsl(194deg 80% 80% / 100%);
  --glow-color-60: hsl(194deg 80% 80% / 60%);
  --glow-color-50: hsl(194deg 80% 80% / 50%);
  --glow-color-40: hsl(194deg 80% 80% / 40%);
  --glow-color-30: hsl(194deg 80% 80% / 30%);
  --glow-color-20: hsl(194deg 80% 80% / 20%);
  --glow-color-10: hsl(194deg 80% 80% / 10%);
  position: relative;
  display: grid;
  border-radius: var(--border-radius);
  border: 1px solid rgb(255 255 255 / 15%);
  background: var(--card-bg);
  overflow: visible;
  isolation: isolate;
  text-decoration: none;
}
.border-glow-card::before,
.border-glow-card::after,
.border-glow-card > .edge-light {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: opacity 0.25s ease-out;
  z-index: -1;
}
.border-glow-card:not(:hover)::before,
.border-glow-card:not(:hover)::after,
.border-glow-card:not(:hover) > .edge-light {
  opacity: 1;
  transition: opacity 0.35s ease-in-out;
}
.border-glow-card::before {
  border: 1px solid transparent;
  background:
    linear-gradient(var(--card-bg) 0 100%) padding-box,
    linear-gradient(rgb(255 255 255 / 0%) 0% 100%) border-box,
    var(--gradient-one) border-box,
    var(--gradient-two) border-box,
    var(--gradient-three) border-box,
    var(--gradient-four) border-box,
    var(--gradient-five) border-box,
    var(--gradient-six) border-box,
    var(--gradient-seven) border-box,
    var(--gradient-base) border-box;
  opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mask-image: conic-gradient(from var(--cursor-angle) at center, black calc(var(--cone-spread) * 1%), transparent calc((var(--cone-spread) + 15) * 1%), transparent calc((100 - var(--cone-spread) - 15) * 1%), black calc((100 - var(--cone-spread)) * 1%));
}
.border-glow-card::after {
  background: var(--gradient-one),var(--gradient-two),var(--gradient-three),var(--gradient-four),var(--gradient-five),var(--gradient-six),var(--gradient-seven),var(--gradient-base);
  mask-image: conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);
  opacity: calc(var(--fill-opacity) * (var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mix-blend-mode: soft-light;
}
.border-glow-card > .edge-light {
  inset: calc(var(--glow-padding) * -1);
  pointer-events: none;
  z-index: 1;
  opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
  mask-image: conic-gradient(from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%);
}
.border-glow-card > .edge-light::before {
  content: "";
  position: absolute;
  inset: var(--glow-padding);
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px var(--glow-color),
    inset 0 0 3px 0 var(--glow-color-50),
    inset 0 0 15px 0 var(--glow-color-30),
    inset 0 0 25px 2px var(--glow-color-20),
    0 0 3px 0 var(--glow-color-50),
    0 0 15px 0 var(--glow-color-30),
    0 0 25px 2px var(--glow-color-20);
}
.border-glow-inner {
  position: relative;
  z-index: 2;
  border-radius: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, rgba(17,58,86,.96), rgba(14,46,68,.94));
  color: #eafcff;
}
.hero-download-borderglow .border-glow-inner { min-width: 220px; min-height: 56px; font-size: 28px; font-weight: 700; }
.hero-download-borderglow {
  --edge-proximity: 84;
  --cursor-angle: 180deg;
  animation: borderGlowAutoSpin 10s linear infinite;
}
@keyframes borderGlowAutoSpin {
  0% { --cursor-angle: 0deg; }
  100% { --cursor-angle: 360deg; }
}

.season-switch { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.season-switch button { border: 0; width: 28px; height: 28px; border-radius: 8px; background: rgba(119,219,255,.16); color: var(--text); }
.search-wrap { position: relative; max-width: 420px; }
.search-wrap input { width: 100%; background: rgba(7,20,29,.82); border: 0; border-radius: 10px; padding: 10px 12px; color: var(--text); }
.suggest-box { position: absolute; left: 0; right: 0; top: 102%; background: #0c2232; border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; z-index: 3; }
.suggest-box button { width: 100%; text-align: left; padding: 8px 10px; border: 0; background: transparent; color: var(--text); cursor: pointer; }
.suggest-box button:hover { background: rgba(119,219,255,.15); }
.rank-table { margin-top: 18px; }
.animated-list-shell { position: relative; border-radius: 12px; overflow: hidden; }
.rank-scroll { max-height: 62vh; overflow-y: auto; padding-right: 4px; }
.rank-grad-top, .rank-grad-bottom { position: absolute; left: 0; right: 0; height: 42px; pointer-events: none; z-index: 2; transition: opacity .22s ease; }
.rank-grad-top { top: 0; opacity: 0; background: linear-gradient(to bottom, rgba(7,20,30,.95), rgba(7,20,30,0)); }
.rank-grad-bottom { bottom: 0; opacity: 1; background: linear-gradient(to top, rgba(7,20,30,.95), rgba(7,20,30,0)); }
.rank-head, .rank-row { display: grid; grid-template-columns: 72px 56px 1fr 120px; align-items: center; gap: 8px; padding: 10px 12px; }
.rank-head { color: var(--muted); font-size: 13px; }
.rank-row { border-radius: 10px; background: rgba(9,30,44,.32); margin-bottom: 8px; text-decoration: none; color: var(--text); opacity: 0; transform: translateY(10px) scale(.985); transition: transform .35s ease, opacity .35s ease, background-color .22s ease; }
.rank-row.in { opacity: 1; transform: translateY(0) scale(1); }
.rank-row:hover { background: rgba(29,78,108,.68); }
.player-avatar { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; image-rendering: pixelated; }

.player-hero { display: grid; gap: 10px; font-size: 34px; font-weight: 700; }
.player-hero-top { display: grid; grid-template-columns: auto auto 1fr; gap: 12px; align-items: center; }
.player-detail-avatar { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; image-rendering: pixelated; }
.player-hero .rank-lite { color: #9eb8c2; font-weight: 500; }
.player-hero .player-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1; }
.player-hero .score { color: var(--brand-2); font-size: 26px; }
.panel-nav { margin-top: 14px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; }
.panel-nav button, .diff-btn { border: 0; border-radius: 10px; height: 38px; color: var(--text); cursor: pointer; }
.panel-nav button { background: rgba(119,219,255,.2); }
.diff-btn { background: rgba(111,240,200,.2); }
.panel-tabs { margin: 10px 0; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; }
.panel-tabs span.active { color: var(--brand); font-weight: 700; }
.stats-box {
  background: var(--panel-2);
  border-radius: 12px;
  padding: 12px;
  min-height: 52vh;
  height: 52vh;
  max-height: 52vh;
  overflow: auto;
  white-space: pre-wrap;
  transition: opacity .18s ease, transform .18s ease, filter .18s ease;
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.stats-box::-webkit-scrollbar { width: 0; height: 0; display: none; }
.stats-box.is-leaving { opacity: 0; transform: translateY(8px); filter: blur(1px); }
.stats-box.is-entering { opacity: 1; transform: translateY(0); filter: blur(0); }

.atlas-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.atlas-toolbar button { border: 0; border-radius: 999px; background: rgba(119,219,255,.16); color: var(--text); padding: 8px 12px; cursor: pointer; }
.atlas-toolbar button.active { background: rgba(111,240,200,.28); }
.atlas-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.atlas-card { border-radius: 12px; background: rgba(9,28,39,.22); padding: 10px; text-align: center; cursor: pointer; }
.atlas-card img { width: 64px; height: 64px; object-fit: contain; image-rendering: pixelated; }
.atlas-card-title { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.atlas-preview img { width: 80px; height: 80px; object-fit: contain; image-rendering: pixelated; display: block; margin-bottom: 10px; }
#atlasPreviewText { white-space: pre-line; line-height: 1.55; }
.atlas-tip-italic { font-style: italic; color: #b8b8b8; }
.atlas-tip-em { font-weight: 700; text-decoration: underline; color: #e6b422; }
.atlas-tip-plain { color: #d0d0d0; }
#atlasModalText { line-height: 1.55; }
.atlas-modal-mask {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(0, 0, 0, .62);
  backdrop-filter: blur(2px);
}
.atlas-modal-mask.show { display: flex; }
.atlas-modal-card {
  position: relative;
  width: min(100%, 420px);
  max-height: 82vh;
  overflow: auto;
  border-radius: 14px;
  padding: 14px 12px 12px;
  background: rgba(7, 24, 34, .96);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.atlas-modal-card::-webkit-scrollbar { width: 0; height: 0; display: none; }
.atlas-modal-close {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
.atlas-modal-card img { width: 72px; height: 72px; object-fit: contain; image-rendering: pixelated; display: block; margin: 0 auto 10px; }
.atlas-modal-card h3 { text-align: center; margin-bottom: 8px; }
.atlas-modal-card p { white-space: pre-wrap; line-height: 1.55; color: #d8eef2; }
body.atlas-modal-open { overflow: hidden; }

.sponsor-layout { display: grid; grid-template-columns: 210px 1fr; gap: 14px; align-items: start; }
.lanyard-wrap { position: relative; height: 360px; display: flex; justify-content: center; align-items: flex-start; }
.lanyard-string { position: absolute; top: 0; width: 4px; height: 110px; border-radius: 4px; background: linear-gradient(180deg, rgba(179,242,255,.9), rgba(116,224,255,.35)); }
.lanyard-card { margin-top: 104px; width: 144px; height: 188px; box-shadow: 0 18px 30px rgba(0,0,0,.35); display: grid; place-items: center; color: var(--brand); font-size: 36px; font-weight: 700; letter-spacing: .1em; transform-origin: 50% -20px; animation: lanyardSwing 4.3s ease-in-out infinite; }
@keyframes lanyardSwing { 0%,100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
.price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.price-item { border-radius: 12px; background: rgba(8,28,41,.14); padding: 12px; }

footer { text-align: center; color: var(--muted); padding: 20px 14px 28px; }

body.landing-page { background: linear-gradient(rgba(0, 0, 0, 0.20), rgba(0, 0, 0, 0.20)), url("assets/mcsrroguelike/textures/gui/websitebackground.png") center/cover no-repeat; overflow: hidden; }
body.landing-page { transition: opacity .68s ease, filter .68s ease; }
body.landing-page.landing-exiting { opacity: 0; filter: brightness(0.72); }
@media (max-width: 880px) {
  html, body { overscroll-behavior-y: none; }
  body { overflow-x: clip; }
  main { padding: 70px 12px 26px; }
  .section { padding: 14px 10px; margin-bottom: 12px; }

  .topbar {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 10px;
  }
  .menu-btn { width: 36px; height: 36px; font-size: 20px; }
  .brand { font-size: 15px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sponsor-quick { padding: 6px 8px; font-size: 12px; gap: 4px; }
  .sponsor-quick img { width: 14px; height: 14px; }

  .drawer { top: 56px; width: min(300px, 92vw); }

  .btn-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .btn { width: 100%; min-height: 40px; font-size: 15px; }

  .download-card { padding: 12px 10px 0; border-radius: 16px; }
  .download-card p { font-size: clamp(14px, 4.2vw, 19px); max-width: 100%; line-height: 1.45; }
  .download-card .card-actions {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 8px;
    padding: 8px 0 10px;
  }
  .download-card .card-actions .btn,
  .download-card .card-actions .btn.ghost {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    font-size: 15px;
    text-align: center;
    justify-content: center;
  }
  .download-card .card-actions .btn { border-width: 3px; }
  .download-card .card-actions .btn.ghost { text-decoration: none; }

  body.landing-page { height: 100svh; overflow: hidden; touch-action: manipulation; }
  .rank-scroll, .stats-box { overscroll-behavior: contain; }
  .player-hero { font-size: 24px; }
  .player-hero-top { grid-template-columns: auto auto 1fr; gap: 10px; }
  .player-detail-avatar { width: 80px; height: 80px; }
  .stats-box { min-height: 46vh; height: 46vh; max-height: 46vh; }
  .price-grid { grid-template-columns: 1fr; }
  .rank-head, .rank-row { grid-template-columns: 42px 34px minmax(0, 1fr) 64px; font-size: 11px; gap: 6px; padding: 8px; }
  .rank-table, .animated-list-shell, .rank-scroll { max-width: 100%; overflow-x: hidden; }
  .rank-row span:nth-child(1),
  .rank-row span:nth-child(4) { white-space: nowrap; }
  .rank-row span:nth-child(3) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .player-avatar { width: 28px; height: 28px; }
  .bento, .feature-grid, .players-layout, .player-detail-layout, .atlas-layout, .sponsor-layout { grid-template-columns: 1fr; }
  .sponsor-layout > div { order: 1; }
  .sponsor-layout .lanyard-wrap { order: 2; }
  .sponsor-layout .btn-row { margin-bottom: 12px; }
  .lanyard-wrap { height: 220px; }
  .lanyard-card { width: 120px; height: 150px; font-size: 30px; margin-top: 70px; }
  .lanyard-string { height: 78px; }
  .hero { padding: 12px 8px; }
  .hero img {
    width: min(88vw, 420px);
    max-height: 32vh;
    object-fit: contain;
  }
  .hero-content { transform: translateY(calc(-8vh - 24px)); }
  .hero-subtitle { font-size: clamp(14px, 4vw, 18px); }
  .hero-center-enter { top: 52%; font-size: 14px; letter-spacing: .01em; }
  .hero-download-btn { min-width: 156px; min-height: 44px; font-size: 20px; }
  .hero-download-borderglow .border-glow-inner { min-width: 156px; min-height: 44px; font-size: 20px; }
  .hero-download-slot { top: calc(50% - 64px); }
  .hero-bottom-download { transform: translateY(-50%) !important; }
  .border-glow-card { --edge-proximity: 86; --glow-padding: 12px; overflow: hidden; }
  .border-glow-card::before, .border-glow-card::after, .border-glow-card > .edge-light { opacity: 1; }
  .border-glow-card > .edge-light::before {
    box-shadow:
      inset 0 0 0 1px var(--glow-color),
      inset 0 0 8px 0 var(--glow-color-40),
      0 0 8px 0 var(--glow-color-40);
  }
  .atlas-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .atlas-card { padding: 8px; }
  .atlas-card img { width: 52px; height: 52px; }
  .atlas-card-title { font-size: 11px; }
  .atlas-preview { display: none; }
  .atlas-modal-mask {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: rgba(0, 0, 0, .62);
    backdrop-filter: blur(2px);
  }
  .atlas-modal-mask.show { display: flex; }
  .atlas-modal-card {
    position: relative;
    width: min(100%, 420px);
    max-height: 82vh;
    overflow: auto;
    border-radius: 14px;
    padding: 14px 12px 12px;
    background: rgba(7, 24, 34, .96);
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .atlas-modal-card::-webkit-scrollbar { width: 0; height: 0; display: none; }
  .atlas-modal-close {
    position: absolute;
    right: 8px;
    top: 8px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
  }
  .atlas-modal-card img { width: 72px; height: 72px; object-fit: contain; image-rendering: pixelated; display: block; margin: 0 auto 10px; }
  .atlas-modal-card h3 { text-align: center; margin-bottom: 8px; }
  .atlas-modal-card p { white-space: pre-wrap; line-height: 1.55; color: #d8eef2; }
  body.atlas-modal-open { overflow: hidden; }

  .intro-content-image { width: min(100%, 900px); max-height: 460px; }
  .intro-inline-image { width: min(100%, 900px); max-height: 500px; }
  .intro-lead-center { font-size: clamp(16px, 4.2vw, 20px); line-height: 1.6; }

  .section p, .section li, .price-item p, .stats-box, #atlasPreviewText {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (hover: none) and (pointer: coarse) {
  .border-glow-card { --edge-proximity: 86; }
}

@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
