:root {
  --bg: #090b0d;
  --surface: #1b1e22;
  --surface2: #24282d;
  --line: #41474c;
  --text: #f8f7f1;
  --muted: #adb1b7;
  --gold: #ffda0a;
  --warm: #a0791b;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse at 5% 0%, #302815 0, transparent 27%),
    radial-gradient(ellipse at 100% 55%, #211b0e 0, transparent 28%), var(--bg);
  font:
    15px/1.48 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
a {
  color: var(--gold);
}
:is(button, a, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.topbar {
  position: relative;
  z-index: 2;
  max-width: 1030px;
  height: calc(76px + env(safe-area-inset-top));
  margin: auto;
  padding: env(safe-area-inset-top) 19px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #ffffff10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  text-align: left;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -1.1px;
}
.brand > span:last-child {
  display: block;
}
.brand small {
  display: block;
  margin-top: 6px;
  color: #a5a6a5;
  font-size: 8px;
  letter-spacing: 1.3px;
  font-weight: 600;
}
.logo-disc {
  position: relative;
  display: block;
  flex: none;
  width: 43px;
  height: 43px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--gold);
  box-shadow:
    0 0 0 1px #ffdd4780,
    0 0 18px #ffcf0040;
}
.logo-disc img {
  position: absolute;
  left: -13%;
  top: -1.5%;
  width: 121%;
  height: auto;
  max-width: none;
}
.support-top {
  min-height: 40px;
  flex: none;
  padding: 8px 14px;
  border: 1px solid #6b6136;
  border-radius: 50px;
  background: #24241d;
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
}
.support-top small {
  color: #f1efe4;
  font-size: 11px;
}
main {
  max-width: 1030px;
  margin: auto;
  padding: 22px 19px calc(135px + env(safe-area-inset-bottom));
}
.view {
  display: none;
}
.view.active {
  display: block;
}
.eyebrow {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
}
h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}
.title-dot {
  color: var(--gold);
}
.rank-heading,
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 12px 0 21px;
}
.rank-heading h1,
.page-heading h1 {
  font-size: clamp(37px, 5.6vw, 58px);
  line-height: 1.02;
  letter-spacing: -2.2px;
  font-weight: 700;
  margin: 7px 0;
}
.rank-heading p,
.page-heading p {
  margin: 0;
  color: #b7babd;
  font-size: 13px;
}
.page-heading {
  display: block;
}
.page-heading.compact {
  margin-top: 8px;
}
.head-action,
.back-link,
.text-action {
  border: 0;
  background: none;
  color: var(--gold);
  font-weight: 700;
}
.head-action {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px;
  white-space: nowrap;
  font-size: 13px;
}
.head-action span {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--gold);
  color: #181814;
  font-size: 20px;
}
.back-link {
  padding: 10px 0;
  font-size: 13px;
}
.text-action {
  padding: 8px;
  font-size: 12px;
}
.rank-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 1px 1px 11px;
  scrollbar-width: thin;
}
.rank-filters label {
  display: block;
  flex: 1;
  min-width: 130px;
  font-size: 0;
}
.rank-filters label:nth-child(3) {
  min-width: 160px;
}
.rank-filters select,
.build-config select {
  width: 100%;
  min-height: 46px;
  padding: 9px 15px;
  border: 1px solid #545a5e;
  border-radius: 13px;
  background: #262a2e;
  color: #f1f2ef;
  font-size: 13px;
  font-weight: 700;
}
.rank-filters label:first-child select,
.build-config label:first-child select {
  background: var(--gold);
  border-color: var(--gold);
  color: #151515;
}
.rank-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #a8acaf;
  font-size: 11px;
  margin-bottom: 10px;
}
.rank-meta span {
  min-width: 0;
}
.rank-meta button {
  flex: none;
}
.rank-summary {
  display: flex;
  gap: 12px;
  margin: 5px 0 18px;
  font-size: 11px;
  color: #aeb1b2;
}
.rank-summary span {
  border: 1px solid #414448;
  border-radius: 8px;
  padding: 6px 11px;
}
.rank-summary b {
  color: var(--gold);
}
.rank-list {
  display: grid;
  gap: 12px;
}
.rank-card {
  min-width: 0;
  overflow: hidden;
  position: relative;
  background: linear-gradient(145deg, #25282b, #181a1d);
  border: 1px solid #44484d;
  border-radius: 18px;
  box-shadow: 0 18px 35px #0004;
}
.rank-card.featured {
  border: 1px solid #ae9025;
  box-shadow:
    0 0 0 1px #ffdc0029,
    0 20px 36px #0007,
    0 0 35px #ffce0014;
}
.rank-media {
  position: relative;
  min-height: 185px;
  background:
    radial-gradient(ellipse at 48% 82%, #64531c85 0, transparent 48%),
    linear-gradient(140deg, #292b2c, #181a1c);
  overflow: hidden;
}
.rank-card.featured .rank-media {
  min-height: 270px;
}
.rank-art {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 185px;
  border: 0;
  background: none;
  padding: 28px 18px 4px;
  color: inherit;
}
.rank-card.featured .rank-art {
  min-height: 270px;
  padding: 32px 24px 8px;
}
.rank-art img,
.rank-art svg {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 16px 12px #000a);
}
.rank-card.featured .rank-art img,
.rank-card.featured .rank-art svg {
  height: 225px;
}
.rank-number,
.rank-heart {
  position: absolute;
  z-index: 1;
  top: 12px;
  padding: 5px 10px;
  border-radius: 9px;
  font-weight: 700;
}
.rank-number {
  left: 13px;
  background: var(--gold);
  color: #151515;
  font-size: 21px;
  box-shadow: 0 0 18px #ffd00062;
}
.rank-heart {
  right: 13px;
  color: #ffdc5d;
  background: #161616aa;
  font-size: 13px;
}
.rank-body {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  padding: 14px 17px 16px;
}
.rank-tag {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
}
.rank-copy h2 {
  font-size: 23px;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 5px 0;
}
.rank-copy h2 button {
  border: 0;
  background: none;
  color: var(--text);
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-align: left;
  padding: 0;
}
.rank-copy p {
  font-size: 12px;
  color: #b8babd;
  margin: 0;
}
.rank-author {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.rank-author span:last-child {
  min-width: 0;
}
.post-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #c4a93c;
  background: #37332a;
  color: #ffdb54;
  font-size: 12px;
  font-weight: 700;
}
.rank-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
}
.like-btn {
  width: 43px;
  height: 43px;
  border: 1px solid #646469;
  border-radius: 11px;
  background: #292d31;
  color: #ffd75a;
  font-size: 24px;
}
.copy-btn,
.primary-btn {
  min-height: 46px;
  border: 1px solid #ffde46;
  border-radius: 11px;
  padding: 10px 17px;
  background: linear-gradient(135deg, #ffe252, #ffce00);
  box-shadow: 0 4px 16px #f6bd002b;
  color: #1a1710;
  font-weight: 700;
}
.copy-btn span,
.primary-btn span {
  margin-left: 8px;
}
.copy-btn:hover,
.primary-btn:hover {
  filter: brightness(1.08);
}
.rank-card.compact {
  display: grid;
  grid-template-columns: 230px 1fr;
}
.rank-card.compact .rank-media,
.rank-card.compact .rank-art {
  min-height: 145px;
}
.rank-card.compact .rank-art {
  padding: 20px 10px 2px;
}
.rank-card.compact .rank-art img,
.rank-card.compact .rank-art svg {
  height: 120px;
}
.rank-card.compact .rank-number {
  font-size: 14px;
}
.rank-card.compact .rank-body {
  align-items: center;
  padding: 13px;
}
.rank-card.compact .rank-copy h2 {
  font-size: 19px;
}
.rank-card.compact .rank-heart {
  font-size: 11px;
}
.empty {
  padding: 25px;
  background: #1d2023;
  border: 1px dashed #5b5c59;
  border-radius: 16px;
}
.empty strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}
.empty p {
  font-size: 13px;
  color: var(--muted);
}
.detail-top {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin: 13px 0;
}
.detail-top h1 {
  font-size: clamp(33px, 5vw, 53px);
  line-height: 1;
  margin: 9px 0;
  letter-spacing: -1.7px;
}
.detail-top p {
  margin: 0;
  color: #aeb2b4;
}
.detail-likes {
  white-space: nowrap;
  color: #ffdc72;
  font-weight: 700;
  font-size: 16px;
}
.detail-place {
  display: grid;
  justify-items: end;
  flex: none;
  padding: 9px 12px;
  border: 1px solid #a18a2d;
  border-radius: 12px;
  background: #35301f;
  color: var(--gold);
}
.detail-place b {
  font-size: 24px;
  line-height: 1;
}
.detail-place small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
}
.detail-place span {
  font-size: 12px;
  color: #f7edc9;
}
.detail-stage,
.gunsmith-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid #545044;
  border-radius: 19px;
  background:
    radial-gradient(ellipse at 48% 60%, #55451b 0, transparent 47%), linear-gradient(135deg, #292c2f, #17191c);
  box-shadow:
    inset 0 1px #ffffff11,
    0 18px 35px #0006;
}
.detail-stage {
  min-height: 350px;
  padding: 25px;
  display: flex;
  flex-direction: column;
}
.detail-stage .stage-label {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}
.detail-stage img,
.detail-stage svg {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 22px 17px #000b);
}
.detail-stage strong {
  font-size: 21px;
}
.detail-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 11px;
}
.detail-two div {
  padding: 15px;
  background: #222529;
  border: 1px solid #484c50;
  border-radius: 13px;
}
.detail-two small,
.detail-two b {
  display: block;
}
.detail-two small {
  color: #a4a9ae;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}
.detail-two b {
  font-size: 17px;
  margin-top: 5px;
}
.detail-section {
  margin-top: 20px;
}
.detail-section p {
  color: #c6c8ca;
  font-size: 13px;
}
.detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}
.detail-chips span {
  padding: 8px 11px;
  background: #25282d;
  border: 1px solid #4c5155;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}
.creator-note {
  border-left: 3px solid var(--gold);
  padding-left: 12px;
  color: #c5c8c8;
}
.detail-actions {
  display: flex;
  gap: 9px;
  margin-top: 23px;
}
.detail-actions button {
  flex: 1;
}
.ghost-btn,
.small-btn {
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid #54595d;
  border-radius: 11px;
  background: #292d31;
  color: #f5f4ed;
  font-weight: 700;
}
.ghost-btn:hover,
.small-btn:hover {
  background: #34393d;
}
.build-config {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 14px 0 16px;
}
.build-config label {
  font-size: 0;
}
.build-weapons {
  display: grid;
  gap: 11px;
}
.build-primary {
  padding: 16px;
  border: 1px solid #b2962a;
  border-radius: 18px;
  background: linear-gradient(145deg, #282a2b, #17191b);
  box-shadow: 0 0 22px #ffdc0012;
}
.slot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.slot-row span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}
.slot-row button {
  border: 0;
  background: none;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}
.build-gun {
  width: 100%;
  height: 285px;
  display: grid;
  place-items: center;
  margin: 8px 0;
  border: 0;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 48% 60%, #53441a91, transparent 50%), linear-gradient(145deg, #26292b, #1c1e21);
  color: inherit;
  overflow: hidden;
}
.build-gun img,
.build-gun svg {
  width: 98%;
  height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 18px 14px #000b);
}
.build-gun-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}
.build-gun-meta strong,
.build-gun-meta small {
  display: block;
}
.build-gun-meta strong {
  font-size: 27px;
  letter-spacing: -0.6px;
}
.build-gun-meta small {
  color: #b4b9ba;
  font-size: 12px;
}
.build-gun-meta button {
  padding: 8px 10px;
  border: 1px solid #756b3c;
  border-radius: 9px;
  background: #343024;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}
.build-secondary {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 116px;
  padding: 11px;
  text-align: left;
  border: 1px solid #4a4e52;
  border-radius: 15px;
  background: #222529;
  color: var(--text);
}
.secondary-select {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  padding: 0;
  text-align: left;
  border: 0;
  background: none;
  color: inherit;
}
.secondary-attach {
  flex: none;
  padding: 9px 7px;
  border: 1px solid #706840;
  border-radius: 9px;
  background: #343124;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
}
.secondary-art {
  display: grid;
  place-items: center;
  flex: none;
  width: 38%;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  background: radial-gradient(ellipse, #3d371e, #25282b 65%);
}
.secondary-art img,
.secondary-art svg {
  width: 97%;
  height: 78px;
  object-fit: contain;
}
.secondary-select > span:last-child {
  min-width: 0;
}
.build-secondary small,
.build-secondary strong,
.build-secondary em {
  display: block;
}
.build-secondary small {
  color: #aeb2b4;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
}
.build-secondary strong {
  margin: 4px 0;
  font-size: 19px;
}
.build-secondary em {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
}
.section-line {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin: 25px 0 11px;
}
.section-line h2 {
  font-size: 23px;
  line-height: 1.1;
  margin: 4px 0 0;
  letter-spacing: -0.5px;
}
.section-line > small {
  color: #9ca1a4;
  font-size: 11px;
}
.gap-top {
  margin-top: 37px;
}
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.equip-tile {
  min-width: 0;
  min-height: 119px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 6px;
  border: 1px solid #4b5054;
  border-radius: 12px;
  background: #25282d;
  color: #e9e9e4;
  text-align: center;
}
.equip-tile:hover,
.attachment-tile:hover {
  border-color: #bfa439;
}
.equip-tile.wildcard {
  border-color: #a78f2e;
  background: linear-gradient(145deg, #35301d, #24262a);
}
.equip-icon {
  display: grid;
  place-items: center;
  color: var(--gold);
  width: 37px;
  height: 37px;
}
.equip-icon svg {
  width: 34px;
  height: 34px;
}
.equip-tile small {
  color: #b6babe;
  font-size: 10px;
  font-weight: 600;
}
.equip-tile b {
  max-width: 100%;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.game-note,
.fine-print {
  color: #9da2a3;
  font-size: 11px;
  line-height: 1.55;
}
.gunsmith-stage {
  padding: 16px;
}
.gunsmith-gun {
  display: grid;
  place-items: center;
  min-height: 290px;
  background:
    linear-gradient(#ffffff0d 1px, transparent 1px), linear-gradient(90deg, #ffffff0d 1px, transparent 1px),
    radial-gradient(ellipse at 50% 70%, #5d4d1d88, transparent 55%);
  background-size:
    35px 35px,
    35px 35px,
    auto;
}
.gunsmith-gun img,
.gunsmith-gun svg {
  width: 100%;
  height: 275px;
  object-fit: contain;
  filter: drop-shadow(0 20px 14px #000c);
}
.gunsmith-name {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
}
.gunsmith-name strong {
  font-size: 22px;
}
.gunsmith-name span {
  font-size: 11px;
  color: #b5b9b9;
}
.attachment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.attachment-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 74px;
  min-width: 0;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid #4d5155;
  border-radius: 12px;
  background: #24282c;
  color: var(--text);
}
.attachment-tile.selected {
  border-color: var(--gold);
  background: #38321d;
  box-shadow: 0 0 17px #ffcc0026;
}
.attach-symbol {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--gold);
  font-size: 24px;
}
.attachment-tile span:nth-child(2) {
  min-width: 0;
  flex: 1;
}
.attachment-tile b,
.attachment-tile small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.attachment-tile b {
  font-size: 13px;
}
.attachment-tile small {
  color: #abb0b1;
  font-size: 10px;
}
.attach-chevron {
  font-size: 21px;
  color: #c4c7c7;
}
.bottom-nav {
  position: fixed;
  z-index: 10;
  left: 50%;
  bottom: calc(9px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  width: min(480px, calc(100% - 18px));
  padding: 5px;
  border: 1px solid #5b5d5d;
  border-radius: 18px;
  background: #111417f2;
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px #000c;
}
.bottom-nav a {
  position: relative;
  min-height: 57px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 0;
  border-radius: 11px;
  background: none;
  color: #aeb3b6;
  font-size: 10px;
  font-weight: 600;
}
.bottom-nav a.active {
  color: var(--gold);
}
.bottom-nav a.active:before {
  position: absolute;
  top: 0;
  left: 19%;
  width: 62%;
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
  content: '';
}
.nav-icon {
  font-size: 20px;
  line-height: 1;
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: end center;
}
.shade {
  position: absolute;
  inset: 0;
  background: #040506cf;
  backdrop-filter: blur(5px);
}
.dialog {
  position: relative;
  width: min(660px, 100%);
  max-height: min(92vh, 960px);
  overflow-y: auto;
  padding: 15px 20px calc(28px + env(safe-area-inset-bottom));
  border: 1px solid #646568;
  border-radius: 23px 23px 0 0;
  background: radial-gradient(ellipse at 90% 0%, #322b17, transparent 48%), #1b1e22;
  box-shadow: 0 -18px 75px #000b;
}
.handle {
  width: 42px;
  height: 5px;
  margin: 0 auto 16px;
  border-radius: 5px;
  background: #72767a;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 9px;
}
.dialog-head h2 {
  font-size: 25px;
  line-height: 1.1;
  margin: 0 0 7px;
}
.dialog-head p {
  color: #b9bdbe;
  font-size: 12px;
  margin: 0 0 15px;
}
.close {
  width: 35px;
  height: 35px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: #353a3d;
  color: #fff;
  font-size: 23px;
}
.field {
  width: 100%;
  min-height: 45px;
  padding: 10px 12px;
  border: 1px solid #5a6063;
  border-radius: 10px;
  background: #25292d;
  color: #f7f5ee;
}
.field-label {
  display: block;
  color: #c2c5c4;
  font-size: 11px;
  font-weight: 700;
}
.field-label input {
  display: block;
  margin-top: 7px;
}
.search {
  margin: 9px 0 12px;
}
.class-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 12px;
  padding-bottom: 4px;
}
.class-row button {
  flex: none;
  min-height: 37px;
  padding: 8px 12px;
  border: 1px solid #54585c;
  border-radius: 99px;
  background: #282b2f;
  color: #eee;
  font-size: 11px;
  font-weight: 700;
}
.class-row button.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #111;
}
.weapon-options {
  display: grid;
  gap: 7px;
  max-height: 52vh;
  overflow-y: auto;
}
.weapon-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 77px;
  padding: 7px 11px;
  border: 1px solid #4c5154;
  border-radius: 11px;
  background: #272b2e;
  color: #fff;
  text-align: left;
}
.weapon-option img,
.weapon-option svg {
  flex: none;
  width: 112px;
  height: 64px;
  object-fit: contain;
}
.weapon-option span b,
.weapon-option small {
  display: block;
}
.weapon-option small {
  color: #b4b8ba;
  font-size: 11px;
}
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 9px 0;
}
.choice-grid button {
  min-height: 47px;
  padding: 8px;
  border: 1px solid #52575b;
  border-radius: 10px;
  background: #282c2e;
  color: #f3f3ec;
  font-size: 12px;
  font-weight: 700;
}
.choice-grid button.selected {
  border-color: var(--gold);
  color: var(--gold);
}
.modal-gun {
  display: grid;
  place-items: center;
  min-height: 150px;
  margin: 10px 0;
  border-radius: 12px;
  background: radial-gradient(ellipse, #564819, #25282a 65%);
}
.modal-gun img,
.modal-gun svg {
  height: 140px;
  width: 95%;
  object-fit: contain;
}
.attach-example {
  font-size: 11px;
  color: #b7bab9;
}
.dialog-actions {
  display: flex;
  gap: 8px;
  margin: 15px 0;
}
.dialog-actions > * {
  flex: 1;
  display: grid;
  place-items: center;
}
.publish-preview {
  padding: 12px;
  border: 1px solid #9b8429;
  border-radius: 14px;
  background: #252729;
  margin: 6px 0 15px;
}
.publish-preview .preview-image {
  display: grid;
  place-items: center;
  height: 185px;
  background: radial-gradient(ellipse, #5e4c1b, #242729 63%);
  border-radius: 10px;
}
.publish-preview .preview-image img,
.publish-preview .preview-image svg {
  width: 96%;
  height: 174px;
  object-fit: contain;
}
.publish-preview .rank-tag {
  display: block;
  margin-top: 10px;
}
.publish-preview h3 {
  font-size: 20px;
  margin: 4px 0;
}
.publish-preview p {
  font-size: 11px;
  color: #adb3b4;
  margin: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.form-grid label {
  display: grid;
  gap: 5px;
  color: #c4c6c5;
  font-size: 11px;
  font-weight: 700;
}
.form-grid textarea {
  min-height: 72px;
  resize: vertical;
}
.form-grid .consent {
  display: flex;
  align-items: start;
}
.consent input {
  flex: none;
  width: 17px;
  height: 17px;
}
.form-grid button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.saved-avatar {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c4c7c7;
  font-size: 11px;
}
.saved-avatar .post-avatar {
  width: 48px;
  height: 48px;
  font-size: 18px;
}
.stats {
  display: flex;
  gap: 8px;
  margin: 13px 0;
}
.stats div {
  flex: 1;
  padding: 15px;
  border: 1px solid #4e5255;
  border-radius: 12px;
  background: #24272b;
}
.stats b {
  display: block;
  color: var(--gold);
  font-size: 25px;
}
.stats span {
  font-size: 10px;
  color: #b7bbbc;
  text-transform: uppercase;
  font-weight: 700;
}
.creator-card,
.panel,
.tip {
  padding: 18px;
  border: 1px solid #41464a;
  border-radius: 15px;
  background: #1e2225;
}
.card-grid,
.event-grid,
.tip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.creator-head {
  display: flex;
  gap: 10px;
  align-items: center;
}
.creator-head img,
.creator-avatar {
  width: 55px;
  height: 55px;
  flex: none;
  object-fit: cover;
  border-radius: 50%;
  background: #3a3e40;
  display: grid;
  place-items: center;
  font-size: 23px;
}
.creator-card h3 {
  margin: 3px 0;
  font-size: 18px;
}
.creator-card p,
.panel p,
.tip p {
  font-size: 12px;
  color: #b7bbbc;
}
.card-art {
  display: grid;
  place-items: center;
  min-height: 130px;
  margin: 10px 0;
  border-radius: 11px;
  background: radial-gradient(ellipse, #4b411c, #25282b 65%);
}
.card-art img,
.card-art svg {
  width: 95%;
  height: 120px;
  object-fit: contain;
}
.card-sub {
  color: #ddd7bd;
  font-size: 12px;
}
.card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.card-actions button {
  flex: 1;
  min-height: 43px;
  border: 1px solid #565b5c;
  border-radius: 9px;
  background: #2b2e30;
  color: #fff;
  font-weight: 700;
}
.card-actions button:first-child {
  background: var(--gold);
  color: #111;
  border-color: var(--gold);
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.social-links a {
  padding: 6px 9px;
  border-radius: 8px;
  background: #303439;
  text-decoration: none;
  font-size: 11px;
}
.launch-card {
  min-height: 286px;
  padding: 28px;
  border: 1px solid #9b7624;
  border-radius: 19px;
  background:
    radial-gradient(ellipse at 78% 20%, #8c671b77, transparent 48%), linear-gradient(120deg, #292821, #151719);
}
.launch-card h2 {
  margin: 12px 0;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 0.9;
  letter-spacing: -2px;
}
.launch-card p {
  color: #c1beb0;
}
.launch-card strong {
  display: block;
  color: var(--gold);
  font-size: 31px;
  margin: 11px 0;
}
.event-grid {
  margin-top: 10px;
}
.panel h3 {
  font-size: 20px;
  margin: 7px 0;
}
.mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.mode-tabs button {
  min-height: 43px;
  padding: 9px 14px;
  border: 1px solid #51565a;
  border-radius: 10px;
  background: #24282d;
  color: #f2f2ed;
  font-weight: 700;
}
.mode-tabs button.active {
  background: var(--gold);
  color: #111;
  border-color: var(--gold);
}
.tip-grid {
  margin-top: 11px;
}
.tip b {
  display: block;
  color: var(--gold);
  margin-top: 9px;
}
.tip a,
.panel a {
  font-size: 11px;
  font-weight: 700;
}
.crop-box {
  position: relative;
  overflow: hidden;
  width: 220px;
  height: 220px;
  margin: 10px auto;
  border: 3px solid var(--gold);
  border-radius: 50%;
  background: #31373a;
  touch-action: none;
}
.crop-box img {
  position: absolute;
  max-width: none;
  user-select: none;
  pointer-events: none;
}
.crop-controls {
  display: flex;
  gap: 9px;
  align-items: center;
}
.crop-controls input {
  flex: 1;
}
#toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 110px;
  max-width: 90vw;
  padding: 11px 15px;
  border-radius: 10px;
  background: var(--gold);
  color: #111;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 20px);
  transition: 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 850px) {
  #view-feed,
  #view-builder,
  #view-attachments,
  #view-detail {
    max-width: 820px;
    margin: auto;
  }
}
@media (max-width: 650px) {
  .topbar {
    height: calc(66px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 13px 0;
  }
  .brand {
    font-size: 20px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 0.9px;
  }
  .logo-disc {
    width: 40px;
    height: 40px;
  }
  .support-top {
    padding: 7px 11px;
  }
  .support-top small {
    display: none;
  }
  main {
    padding: 17px 13px calc(125px + env(safe-area-inset-bottom));
  }
  .rank-heading,
  .page-heading {
    margin: 5px 0 19px;
  }
  .rank-heading h1,
  .page-heading h1 {
    font-size: 38px;
  }
  .rank-heading p,
  .page-heading p {
    font-size: 12px;
  }
  .head-action {
    align-self: center;
    font-size: 11px;
  }
  .head-action span {
    width: 23px;
    height: 23px;
    font-size: 16px;
  }
  .rank-filters label {
    min-width: 102px;
  }
  .rank-filters label:nth-child(3) {
    min-width: 120px;
  }
  .rank-filters select {
    min-height: 43px;
    padding: 8px 10px;
    font-size: 11px;
  }
  .rank-card.featured .rank-media,
  .rank-card.featured .rank-art {
    min-height: 210px;
  }
  .rank-card.featured .rank-art img,
  .rank-card.featured .rank-art svg {
    height: 180px;
  }
  .rank-body {
    padding: 12px;
  }
  .rank-copy h2 {
    font-size: 19px;
  }
  .rank-actions {
    gap: 5px;
  }
  .like-btn {
    width: 38px;
    height: 40px;
    font-size: 20px;
  }
  .copy-btn {
    min-height: 40px;
    padding: 7px 11px;
    font-size: 11px;
  }
  .rank-card.compact {
    grid-template-columns: 37% 63%;
  }
  .rank-card.compact .rank-media,
  .rank-card.compact .rank-art {
    min-height: 130px;
  }
  .rank-card.compact .rank-art img,
  .rank-card.compact .rank-art svg {
    height: 114px;
  }
  .rank-card.compact .rank-body {
    display: block;
    padding: 9px;
  }
  .rank-card.compact .rank-copy h2 {
    font-size: 16px;
  }
  .rank-card.compact .rank-copy p {
    font-size: 10px;
  }
  .rank-card.compact .rank-tag {
    font-size: 8px;
  }
  .rank-card.compact .rank-actions {
    margin-top: 6px;
  }
  .rank-card.compact .rank-heart {
    font-size: 10px;
    top: 7px;
    right: 6px;
    padding: 3px 5px;
  }
  .rank-card.compact .rank-number {
    top: 6px;
    left: 6px;
    padding: 3px 6px;
  }
  .rank-card.compact .like-btn {
    width: 33px;
    height: 33px;
    font-size: 18px;
  }
  .rank-card.compact .copy-btn {
    min-height: 33px;
    font-size: 10px;
    padding: 5px 8px;
  }
  .build-gun {
    height: 207px;
  }
  .build-gun img,
  .build-gun svg {
    height: 190px;
  }
  .build-gun-meta strong {
    font-size: 22px;
  }
  .build-secondary {
    min-height: 95px;
    flex-wrap: wrap;
  }
  .secondary-select {
    flex-basis: 100%;
  }
  .secondary-attach {
    width: 100%;
    min-height: 35px;
  }
  .secondary-art {
    height: 70px;
  }
  .secondary-art img,
  .secondary-art svg {
    height: 66px;
  }
  .equipment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .equip-tile {
    min-height: 101px;
  }
  .equip-tile b {
    font-size: 10px;
  }
  .gunsmith-gun {
    min-height: 218px;
  }
  .gunsmith-gun img,
  .gunsmith-gun svg {
    height: 208px;
  }
  .attachment-tile {
    min-height: 69px;
  }
  .detail-stage {
    min-height: 270px;
  }
  .detail-stage img,
  .detail-stage svg {
    height: 215px;
  }
  .card-grid,
  .event-grid,
  .tip-grid {
    grid-template-columns: 1fr;
  }
  .dialog {
    padding: 14px 15px calc(25px + env(safe-area-inset-bottom));
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .wide {
    grid-column: 1;
  }
}
@media (max-width: 390px) {
  .rank-heading {
    display: block;
  }
  .head-action {
    margin-top: 10px;
  }
  .rank-card.featured .rank-body {
    display: block;
  }
  .rank-card.featured .rank-actions {
    margin-top: 11px;
  }
  .rank-card.featured .copy-btn {
    flex: 1;
  }
  .equipment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .attachment-grid {
    grid-template-columns: 1fr;
  }
  .detail-actions {
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.streamer-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px;
  border: 1px solid #494230;
  border-radius: 22px;
  background:
    radial-gradient(circle at 75% 0%, #66551555, transparent 46%), linear-gradient(130deg, #242522, #111310);
  margin: 18px 0 20px;
}
.streamer-intro strong {
  display: block;
  font-size: clamp(22px, 5vw, 34px);
  line-height: 1.05;
  margin: 8px 0;
}
.streamer-intro p {
  color: #b9baaf;
  margin: 0;
  line-height: 1.45;
}
.streamer-intro .primary-btn {
  white-space: nowrap;
}
.streamer-filters {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1.3fr 1fr;
  gap: 10px;
  margin: 0 0 12px;
}
.streamer-filters label {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 6px;
  color: #aeb2ad;
  font-size: 12px;
  font-weight: 600;
}
.streamer-filters select {
  width: 100%;
  min-width: 0;
  background: #1c1e1c;
  color: #f4f5ed;
  border: 1px solid #454843;
  border-radius: 12px;
  padding: 12px 10px;
  font: inherit;
}
.streamer-filter-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 16px;
  color: #aeb2ad;
  font-size: 14px;
}
.streamer-filter-status span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.streamer-filter-status .text-action {
  margin: 0;
  min-height: 44px;
}
.local-hint {
  color: #a6a8a2;
  font-size: 13px;
  line-height: 1.45;
  margin: 12px 0 24px;
}
.streamer-card .creator-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.streamer-card .creator-head img,
.streamer-card .creator-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}
.streamer-card .creator-head small {
  color: #8d968c;
}
.streamer-card .card-art {
  min-height: 175px;
}
.streamer-card .card-art img {
  width: 100%;
  height: 190px;
  object-fit: contain;
}
.streamer-gun {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.streamer-gun span {
  color: #ffda00;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.streamer-gun strong {
  font-size: 22px;
}
.streamer-gun small,
.local-label {
  color: #9ca39b;
}
@media (max-width: 600px) {
  .streamer-intro {
    display: block;
  }
  .streamer-intro .primary-btn {
    width: 100%;
    margin-top: 18px;
  }
  .streamer-filters {
    grid-template-columns: 1fr 1fr;
  }
  .streamer-filters label:first-child,
  .streamer-filters label:last-child {
    grid-column: 1/-1;
  }
}

.arsenal-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 19px;
  padding: 15px 17px;
  border: 1px solid #5f562c;
  border-radius: 14px;
  background: #26251b;
  color: #ffe137;
  font-weight: 700;
  text-align: left;
}
.weapon-option em {
  display: block;
  color: #ffdb00;
  font-size: 11px;
  font-style: normal;
  margin-top: 5px;
}
.arsenal-note {
  font-size: 13px;
  line-height: 1.6;
  color: #b3b7b3;
}
.weapon-option img {
  object-fit: contain;
  max-width: 100%;
  height: 110px;
}
.dmz-loot-panel {
  margin: 16px 0 20px;
  padding: 17px;
  border: 1px solid #574c29;
  border-radius: 16px;
  background: #1b1d18;
}
.dmz-loot-panel .mode-tabs {
  margin-top: 10px;
}
.news-hero {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid #7b6526;
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 105% -10%, #b88b1266, transparent 58%),
    linear-gradient(140deg, #25271d, #0c100e 65%);
  box-shadow: inset 0 0 45px #ffc00009;
  margin-bottom: 18px;
}
.news-hero:after {
  content: '↗';
  position: absolute;
  right: -5px;
  bottom: -50px;
  font-size: 220px;
  line-height: 1;
  letter-spacing: -18px;
  font-weight: 700;
  color: #fff7c005;
  pointer-events: none;
}
.news-hero h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(35px, 7vw, 59px);
  line-height: 1.02;
  letter-spacing: -2px;
  margin: 16px 0;
}
.news-hero p {
  font-size: 15px;
  color: #e0dfc9;
}
.news-hero strong {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 31px;
  color: #ffdb00;
  letter-spacing: -1px;
  margin: 16px 0;
}
.news-hero a {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  padding: 11px 16px;
  border: 1px solid #6f602a;
  border-radius: 11px;
  background: #3d351888;
}
.news-hero small {
  display: block;
  font-size: 11px;
  max-width: 340px;
  line-height: 1.5;
  color: #a5ac9f;
  margin-top: 15px;
}
.date-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.date-card {
  padding: 18px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid #3c4236;
  border-radius: 18px;
  background: linear-gradient(145deg, #20241e, #151815);
}
.event-date {
  min-width: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid #3c4236;
  padding-right: 12px;
}
.event-date b {
  color: #ffda0a;
  font-size: 29px;
  line-height: 1.1;
}
.event-date span {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #8f9987;
  margin-top: 5px;
}
.date-card .eyebrow {
  letter-spacing: 1px;
  font-size: 9px;
}
.date-card h3 {
  margin: 5px 0 7px;
  font-size: 17px;
  line-height: 1.2;
}
.date-card p {
  font-size: 12px;
  color: #a2aaa0;
  margin: 0 0 12px;
  line-height: 1.5;
}
.date-card strong {
  display: block;
  color: #efeac9;
  font-size: 15px;
}
.date-card a {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 9px;
}
.live-status {
  color: #a9b5a5;
  font-size: 12px;
  line-height: 1.5;
}
.live-footnote {
  font-size: 11px;
  line-height: 1.6;
  color: #939c8f;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.news-card {
  background: #181d18;
  border: 1px solid #394236;
  border-radius: 18px;
  padding: 21px;
}
.news-meta {
  display: flex;
  justify-content: space-between;
  gap: 9px;
  font-size: 10px;
  color: #8f9b8a;
}
.news-meta span {
  color: #ffdb00;
  font-weight: 700;
  letter-spacing: 0.6px;
}
.news-card h3 {
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 13px 0 12px;
}
.news-card p {
  font-size: 13px;
  line-height: 1.6;
  color: #aeb6a8;
  margin: 0 0 19px;
}
.news-ai-note {
  font-size: 11px !important;
  color: #d6c47b !important;
  border-left: 2px solid #e4c847;
  padding: 7px 10px;
  margin: 0 0 12px !important;
  background: #34301d55;
}
.news-card a {
  font-size: 12px;
  text-decoration: none;
  font-weight: 700;
}
.live-status + .mode-tabs {
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .news-hero {
    padding: 23px;
  }
  .date-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }
  .news-card {
    padding: 20px;
  }
  .weapon-option img {
    height: 94px;
  }
  .arsenal-options .weapon-option img {
    height: 112px;
  }
}

.legal-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 30px 0 0;
  color: var(--muted);
}
.legal-footer button {
  background: none;
  color: inherit;
  border: 0;
  text-decoration: underline;
  font-size: 12px;
}
.legal-text {
  line-height: 1.6;
  color: #c8c8c8;
}
.legal-text h3 {
  color: #fff;
  margin-top: 24px;
}
.legal-text a {
  color: var(--gold);
}
.legal-draft {
  border: 1px solid var(--gold);
  padding: 14px;
  border-radius: 12px;
}
.owned-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 15px 0;
}
.rank-card.featured .rank-body {
  align-items: flex-start;
}
.rank-actions .copy-btn {
  max-width: 180px;
  white-space: normal;
}
.rank-card.compact .copy-btn {
  max-width: none;
}
.rank-heading h1 {
  max-width: 540px;
}
@media (max-width: 650px) {
  .rank-card.featured .rank-body {
    display: block;
  }
  .rank-card.featured .rank-actions {
    margin-top: 12px;
  }
  .rank-card.featured .copy-btn {
    max-width: none;
    flex: 1;
  }
}

/* Desktop typography and readable navigation, without scaling text. */
body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Arial,
    sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
.rank-heading h1,
.page-heading h1 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-size: clamp(36px, 4vw, 52px);
}
.bottom-nav {
  width: min(820px, calc(100% - 24px));
  padding: 8px;
  border-radius: 22px;
}
.bottom-nav a {
  min-height: 68px;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
}
.nav-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
}
.nav-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.attachment-language,
.attachment-scope {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.attachment-language button,
.attachment-scope button {
  padding: 9px 13px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #20242a;
  color: var(--text);
  font-weight: 600;
}
.attachment-language button[aria-pressed='true'],
.attachment-scope .selected {
  border-color: var(--gold);
  color: var(--gold);
  background: #2c2a1a;
}
.attachment-options {
  display: grid;
  gap: 8px;
  max-height: 46vh;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 3px;
}
.attachment-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #202429;
  color: var(--text);
  min-height: 70px;
}
.attachment-option strong {
  display: block;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
}
.attachment-option small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.attachment-option > span:last-child {
  font-size: 24px;
  color: var(--gold);
}
.attachment-option:hover,
.attachment-option.selected {
  border-color: var(--gold);
  background: #2b2b20;
}
.catalog-confirm {
  padding: 16px;
  background: #22252a;
  border: 1px solid #665d28;
  border-radius: 12px;
}
.catalog-confirm button {
  width: 100%;
  margin-top: 10px;
}
.attachment-source {
  margin-top: 16px;
}
.section-line:has(#gunsmithLanguage) {
  flex-wrap: wrap;
  gap: 10px;
}
.section-line #gunsmithLanguage {
  margin-left: auto;
}
.section-line .attachment-language {
  margin: 0;
}
@media (min-width: 900px) {
  body {
    font-size: 16px;
  }
  .bottom-nav {
    bottom: 18px;
    padding: 10px;
    width: min(880px, calc(100% - 48px));
  }
  .bottom-nav a {
    min-height: 78px;
    font-size: 16px;
    gap: 7px;
  }
  .nav-icon,
  .nav-icon svg {
    width: 28px;
    height: 28px;
  }
  main {
    padding-bottom: 155px;
  }
  .rank-heading p,
  .page-heading p {
    font-size: 16px;
  }
  .attachment-tile b {
    font-size: 16px;
  }
  .attachment-tile small {
    font-size: 13px;
  }
  .attachment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 420px) {
  .bottom-nav a {
    font-size: 12px;
    min-height: 64px;
  }
  .section-line #gunsmithLanguage {
    margin-left: 0;
  }
  .attachment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .attachment-tile {
    min-width: 0;
  }
  .attachment-tile small {
    overflow-wrap: anywhere;
  }
}
.language-flag {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  flex: none;
  box-shadow: 0 0 0 1px #ffffff30;
}
.attachment-language button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.attachment-tile b {
  white-space: normal;
  text-overflow: clip;
  line-height: 1.3;
  overflow: visible;
}
.attachment-tile small {
  margin-top: 4px;
}
@media (max-width: 420px) {
  .attachment-tile {
    padding: 10px 8px;
    gap: 6px;
    min-height: 78px;
  }
  .attach-symbol {
    width: 24px;
    font-size: 21px;
  }
  .attachment-tile b {
    font-size: 12px;
  }
}

/* No composited text surfaces; stable desktop dialog with accessible actions. */
body,
button,
input,
select,
textarea {
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  font-synthesis: none;
  text-rendering: auto;
  letter-spacing: normal;
}
body {
  font-weight: 400;
}
button,
select {
  font-weight: 600;
}
h1,
h2,
h3,
.brand,
.attachment-option strong {
  font-weight: 700;
}
.shade,
.bottom-nav {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.bottom-nav {
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  transform: none;
  background: #111417;
}
.head-action,
.text-action,
.back-link {
  font-weight: 600;
  text-shadow: none;
}
.back-link {
  padding: 12px 0;
  min-height: 44px;
}
.modal {
  padding: 12px;
  place-items: center;
}
.dialog {
  max-height: calc(100dvh - 24px);
  max-height: calc(100vh - 24px);
  border-radius: 18px;
  scrollbar-gutter: stable;
  scroll-padding-bottom: 100px;
  padding-bottom: 18px;
  background: #1b1e22;
}
.attachment-options {
  max-height: none;
  overflow: visible;
  padding: 0;
}
.dialog-actions {
  position: sticky;
  bottom: -18px;
  z-index: 3;
  padding: 16px 0 20px;
  margin-top: 16px;
  border-top: 1px solid #3d4248;
  background: #1b1e22;
  box-shadow: 0 -9px 12px #1b1e22;
}
.dialog-actions button {
  min-height: 48px;
}
.dialog-head {
  align-items: flex-start;
}
.dialog-head h2 {
  line-height: 1.25;
}
.close {
  min-width: 44px;
  min-height: 44px;
}
.builder-audience {
  margin: 15px 0 18px;
  padding: 16px;
  background: #1b1e22;
  border: 1px solid #41474c;
  border-radius: 14px;
}
.builder-audience > span {
  display: block;
  font-weight: 600;
}
.builder-audience > small {
  display: block;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.5;
}
.audience-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.audience-tabs button {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #50565e;
  background: #262a2e;
  color: var(--text);
}
.audience-tabs .selected {
  border-color: var(--gold);
  background: var(--gold);
  color: #161616;
}
.form-grid label > small {
  display: block;
  margin: 7px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
@media (min-width: 900px) {
  .modal {
    padding: 24px;
  }
  .dialog {
    max-height: calc(100dvh - 48px);
    max-height: calc(100vh - 48px);
    padding: 22px 26px 18px;
  }
  .rank-filters select,
  .build-config select {
    font-size: 15px;
    font-weight: 600;
  }
  .head-action {
    font-size: 16px;
  }
  .dialog-head p {
    font-size: 14px;
  }
  .dialog-head h2 {
    font-size: 26px;
  }
  .dialog .field-label {
    font-size: 13px;
  }
  .attachment-option small {
    font-size: 13px;
  }
}
@media (max-width: 650px) {
  .modal {
    padding: 8px;
  }
  .dialog {
    max-height: calc(100dvh - 16px);
    padding: 16px;
  }
  .dialog-actions {
    bottom: -16px;
  }
  .attachment-tile b {
    font-weight: 600;
  }
}
.my-posts-access {
  max-width: 820px;
  margin: 0 auto 18px;
  display: flex;
  justify-content: flex-end;
}
.my-posts-button {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 11px 17px;
  border: 1px solid var(--gold);
  border-radius: 13px;
  background: #292719;
  color: var(--gold);
  text-align: left;
}
.my-posts-button svg {
  flex: none;
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.my-posts-button strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}
.my-posts-button small {
  display: block;
  color: #dad8c8;
  font-size: 12px;
  font-weight: 400;
  margin-top: 3px;
}
.my-posts-arrow {
  font-size: 22px;
  margin-left: 14px;
}
.my-posts-button:hover {
  background: #3a351b;
}
.my-posts-button:active {
  background: #4a401b;
}
@media (max-width: 650px) {
  .my-posts-access {
    margin-bottom: 17px;
  }
  .my-posts-button {
    width: 100%;
  }
  .my-posts-arrow {
    margin-left: auto;
  }
}
.logo-disc img.custom-logo {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 100%;
}
.equipment-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.choice-grid .equipment-image {
  width: 90px;
  height: 60px;
  display: block;
  margin: auto;
}
.news-picture {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 12px;
}
.ad-grid {
  display: grid;
  gap: 15px;
  width: min(100%, 900px);
  margin: 15px auto;
}
.ad-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}
.ad-card strong {
  display: block;
  margin: 8px 0;
}
.ad-banner-link {
  display: block;
}
.ad-card .ad-banner {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  object-fit: contain;
  border-radius: 9px;
  background: var(--bg);
  margin: 10px 0;
}
.ad-card p {
  font-size: 13px;
  color: var(--muted);
}
#advertisingContact {
  margin: 25px 0;
}
.date-card .event-picture {
  width: 100%;
  max-height: 170px;
  object-fit: contain;
  grid-column: 1 / -1;
  border-radius: 10px;
}
.date-card:has(.event-picture) {
  flex-wrap: wrap;
}
.date-card .event-picture {
  flex-basis: 100%;
} /* Readable native text and a quieter dark/gold interface. */
body,
button,
input,
select,
textarea {
  font-family:
    'Segoe UI',
    -apple-system,
    BlinkMacSystemFont,
    Arial,
    sans-serif;
  font-synthesis: none;
  text-rendering: auto;
  letter-spacing: normal;
  text-shadow: none;
}
body {
  font-size: 16px;
  line-height: 1.6;
  background: radial-gradient(ellipse at 0% 0%, #302a1638, transparent 36%), var(--bg);
}
h1,
h2,
h3 {
  letter-spacing: normal;
  line-height: 1.2;
}
.rank-heading h1,
.page-heading h1,
.detail-top h1 {
  letter-spacing: -0.02em;
  line-height: 1.12;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button[aria-pressed='true'].like-btn,
button[aria-pressed='true'][data-like-creator] {
  background: #3a321c;
  border-color: var(--gold);
  color: var(--gold);
}
.primary-btn,
.copy-btn {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 3px 12px #0003;
  color: #17170f;
  line-height: 1.3;
}
.ghost-btn,
.small-btn {
  background: var(--surface2);
  line-height: 1.4;
}
.rank-card,
.creator-card,
.panel,
.tip,
.build-primary,
.build-secondary,
.gunsmith-stage {
  background: var(--surface);
  border-color: var(--line);
}
.rank-media {
  background: radial-gradient(ellipse at 45% 90%, #8e72243b, transparent 62%), #171b1d;
}
.rank-number {
  box-shadow: none;
}
.rank-heart {
  background: #101417;
  border: 1px solid #3b3c33;
}
.rank-card {
  box-shadow: 0 12px 30px #0002;
}
.rank-card.featured {
  border-color: #8e7a30;
  box-shadow: 0 0 0 1px #ffdb0010;
}
.rank-copy h2 button {
  overflow-wrap: anywhere;
}
.comment-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--surface2);
  color: #d1d8dd;
  border-radius: 11px;
  min-height: 46px;
  min-width: 54px;
  padding: 9px;
  font-size: 14px;
  flex: none;
}
.comment-btn svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card-actions .comment-btn {
  flex: 0 0 66px;
}
.card-actions {
  flex-wrap: wrap;
}
.streamer-card .card-actions {
  align-items: stretch;
}
.comments-entry {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}
.comments-entry > div {
  flex: 1;
  min-width: 220px;
}
.comments-entry h2 {
  font-size: 23px;
  margin: 0 0 8px;
}
.comments-entry p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.custom-attachment-entry {
  display: block;
  width: 100%;
  min-height: 68px;
  margin: 12px 0 18px;
  border: 1px dashed #9c883e;
  border-radius: 13px;
  padding: 14px 16px;
  text-align: left;
  color: var(--gold);
  background: #292719;
  font-weight: 600;
  font-size: 16px;
}
.custom-attachment-entry span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #c5c4b9;
  font-weight: 400;
}
.own-part-note {
  background: #282719;
  border: 1px solid #605832;
  border-radius: 12px;
  padding: 14px 16px;
  line-height: 1.65;
  color: #e7e0bf;
  font-size: 14px;
}
.comment-context {
  border: 1px solid #3b454c;
  background: #171d22;
  border-radius: 14px;
  padding: 16px 18px;
  margin: 16px 0;
}
.comment-context span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
}
.comment-context p {
  font-size: 14px;
  color: #c1c9cd;
  margin: 8px 0 0;
}
.comment-empty {
  border: 1px dashed #44505b;
  padding: 22px;
  border-radius: 14px;
}
.comment-empty p {
  margin-bottom: 0;
  color: var(--muted);
}
.comment-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.comment-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.comment-heading b {
  font-size: 16px;
  color: #f3f6f8;
}
.comment-heading time {
  color: var(--muted);
  font-size: 12px;
}
.comment-item p {
  font-size: 16px;
  line-height: 1.7;
  white-space: normal;
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.comment-item-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.comment-item-actions .text-action {
  min-height: 44px;
  color: var(--muted);
  font-size: 13px;
}
.comment-form {
  margin-top: 25px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.comment-form h3 {
  font-size: 23px;
  margin: 4px 0 18px;
}
.comment-form .field-label {
  display: block;
  margin: 14px 0;
  font-size: 14px;
}
.comment-form textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.65;
}
.comment-meter {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0 18px;
}
.comment-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 400;
  margin: 16px 0;
}
.comment-consent input {
  margin-top: 5px;
  width: 18px;
  height: 18px;
  flex: none;
}
.comment-consent button {
  background: none;
  border: 0;
  color: var(--gold);
  padding: 2px;
  font: inherit;
  text-decoration: underline;
}
.comments-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 12px;
}
.comments-links .text-action {
  font-size: 14px;
  min-height: 44px;
}
.pending-comments {
  padding: 16px;
  border: 1px solid #726132;
  border-radius: 14px;
  background: #2a2619;
  margin-top: 18px;
}
.pending-comments b {
  font-size: 15px;
  color: #f1d874;
}
.pending-comments article + article {
  border-top: 1px solid #645730;
  margin-top: 14px;
  padding-top: 10px;
}
.pending-comments p {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.pending-comments small {
  display: block;
  font-size: 12px;
  color: #d9cba4;
}
.pending-comments button {
  font-size: 13px;
  min-height: 44px;
}
.owned-intro {
  font-size: 15px;
  line-height: 1.7;
  color: #c8d0d5;
}
.owned-row {
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  gap: 14px;
}
.owned-row > div {
  min-width: 0;
  flex: 1;
}
.owned-row b {
  display: block;
  overflow-wrap: anywhere;
  font-size: 16px;
}
.owned-row small {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 6px;
}
.owned-row .ghost-btn {
  flex: none;
  font-size: 14px;
}
.count-chip,
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid #4c535b;
  border-radius: 8px;
  color: var(--gold);
  font-size: 13px;
  margin-left: 6px;
}
.report-target {
  color: var(--gold);
  font-weight: 600;
}
.report-receipt {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #171d22;
  margin: 16px 0;
}
.report-receipt p {
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.report-receipt small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.report-receipt .ghost-btn {
  font-size: 14px;
}
.inline-error {
  color: #ffb1aa;
  font-size: 15px;
  background: #422326;
  padding: 12px;
  border-radius: 10px;
  line-height: 1.6;
}
.detail-chips small {
  font-size: 11px;
  color: #e0c780;
}
.field,
input.field,
textarea.field {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  border-color: #55616b;
  border-radius: 11px;
  background: #11171b;
}
.form-grid label,
.field-label {
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
}
.form-grid {
  gap: 14px;
}
.fine-print,
.legal-footer button {
  font-size: 13px;
  line-height: 1.65;
}
.legal-text {
  font-size: 15px;
  line-height: 1.8;
  color: #d2d7dc;
}
.legal-text h3 {
  font-size: 19px;
}
.dialog {
  background: var(--surface);
  border-color: var(--line);
}
.dialog-actions {
  background: var(--surface);
  box-shadow: 0 -8px 10px var(--surface);
}
.bottom-nav {
  background: #111619;
  border: 1px solid #485159;
  box-shadow: 0 8px 28px #0007;
}
.bottom-nav a {
  border-radius: 13px;
}
.bottom-nav a.active {
  background: #ffda0a10;
}
.support-top.liked {
  border-color: var(--gold);
}
@media (min-width: 900px) {
  body {
    font-size: 18px;
    line-height: 1.65;
  }
  .topbar {
    max-width: 1180px;
    height: 94px;
    padding: 0 28px;
  }
  .brand {
    font-size: 30px;
    gap: 14px;
    letter-spacing: normal;
  }
  .logo-disc {
    width: 54px;
    height: 54px;
  }
  .brand small {
    font-size: 11px;
    letter-spacing: 1px;
    color: #b7bcc0;
  }
  .support-top {
    font-size: 16px;
    padding: 12px 19px;
    min-height: 49px;
  }
  .support-top small {
    font-size: 14px;
  }
  main {
    max-width: 1180px;
    padding: 28px 28px 168px;
  }
  .my-posts-access,
  #view-feed,
  #view-builder,
  #view-attachments,
  #view-detail {
    max-width: 1120px;
  }
  .my-posts-access {
    margin-bottom: 22px;
  }
  .my-posts-button {
    min-height: 64px;
  }
  .my-posts-button strong {
    font-size: 17px;
  }
  .my-posts-button small {
    font-size: 14px;
  }
  .rank-heading,
  .page-heading {
    margin-bottom: 30px;
    gap: 28px;
  }
  .rank-heading h1,
  .page-heading h1 {
    font-size: 54px;
    max-width: none;
    margin: 8px 0 13px;
  }
  .rank-heading p,
  .page-heading p {
    font-size: 18px;
    color: #bfc6ca;
  }
  .eyebrow,
  .rank-tag,
  .slot-row span,
  .stage-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
  }
  .head-action,
  .back-link,
  .text-action {
    font-size: 16px;
    min-height: 46px;
  }
  .rank-filters {
    gap: 12px;
    overflow: visible;
    margin-bottom: 16px;
  }
  .rank-filters select,
  .build-config select {
    min-height: 54px;
    font-size: 17px;
    padding: 12px 16px;
    border-radius: 13px;
    font-weight: 600;
  }
  .rank-filters label {
    min-width: 0;
  }
  .rank-meta {
    font-size: 14px;
    margin-bottom: 16px;
  }
  .rank-summary {
    font-size: 15px;
    gap: 12px;
    margin: 6px 0 22px;
  }
  .rank-summary span {
    padding: 8px 14px;
    border-radius: 10px;
  }
  .rank-list {
    gap: 18px;
  }
  .rank-card {
    border-radius: 22px;
  }
  .rank-card.featured {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
  }
  .rank-card.featured .rank-media,
  .rank-card.featured .rank-art {
    min-height: 335px;
  }
  .rank-card.featured .rank-art img,
  .rank-card.featured .rank-art svg {
    height: 260px;
  }
  .rank-card.featured .rank-body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 26px;
  }
  .rank-copy h2 {
    font-size: 34px;
    line-height: 1.25;
    margin: 11px 0 14px;
    letter-spacing: normal;
  }
  .rank-copy p {
    font-size: 16px;
    line-height: 1.5;
  }
  .post-avatar {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
  .rank-author {
    gap: 10px;
  }
  .rank-number {
    font-size: 24px;
    top: 18px;
    left: 18px;
    padding: 7px 13px;
  }
  .rank-heart {
    font-size: 16px;
    top: 18px;
    right: 18px;
    padding: 8px 12px;
  }
  .rank-card.compact {
    grid-template-columns: 250px minmax(0, 1fr);
  }
  .rank-card.compact .rank-body {
    padding: 22px;
    gap: 20px;
    flex-wrap: wrap;
  }
  .rank-card.compact .rank-copy {
    flex: 1;
    min-width: 180px;
  }
  .rank-card.compact .rank-copy h2 {
    font-size: 25px;
    margin-top: 7px;
    line-height: 1.25;
  }
  .rank-card.compact .rank-copy p {
    font-size: 15px;
  }
  .rank-card.compact .rank-media,
  .rank-card.compact .rank-art {
    min-height: 185px;
  }
  .rank-card.compact .rank-art img,
  .rank-card.compact .rank-art svg {
    height: 155px;
  }
  .rank-card.compact .rank-number,
  .rank-card.compact .rank-heart {
    font-size: 14px;
  }
  .rank-actions {
    gap: 9px;
    align-items: stretch;
  }
  .like-btn {
    width: 52px;
    height: 52px;
    font-size: 29px;
  }
  .comment-btn {
    height: 52px;
    min-width: 62px;
    font-size: 16px;
    padding: 12px 9px;
  }
  .comment-btn svg {
    width: 23px;
    height: 23px;
  }
  .rank-actions .copy-btn {
    flex: 1;
    max-width: 230px;
    font-size: 16px;
    min-height: 52px;
    padding: 12px 16px;
  }
  .primary-btn,
  .ghost-btn,
  .small-btn {
    font-size: 17px;
    min-height: 54px;
    padding: 13px 20px;
  }
  .empty {
    padding: 34px;
    font-size: 17px;
  }
  .empty strong {
    font-size: 24px;
  }
  .empty p {
    font-size: 17px;
  }
  .build-primary {
    border-radius: 22px;
    padding: 22px;
  }
  .build-gun {
    height: 278px;
  }
  .build-gun img,
  .build-gun svg {
    height: 250px;
  }
  .build-gun-meta strong,
  .gunsmith-name strong {
    font-size: 34px;
    letter-spacing: normal;
  }
  .build-gun-meta small,
  .gunsmith-name span {
    font-size: 16px;
  }
  .slot-row button,
  .build-gun-meta button,
  .secondary-attach {
    font-size: 16px;
    min-height: 46px;
  }
  .build-secondary {
    padding: 18px;
    border-radius: 20px;
  }
  .secondary-select small {
    font-size: 13px;
  }
  .secondary-select strong {
    font-size: 25px;
  }
  .secondary-select em {
    font-size: 15px;
  }
  .builder-audience {
    font-size: 17px;
  }
  .builder-audience > small,
  #gameNote {
    font-size: 15px;
  }
  .audience-tabs button {
    font-size: 17px;
    min-height: 50px;
  }
  .section-line h2 {
    font-size: 28px;
  }
  .section-line span {
    font-size: 17px;
  }
  .equipment-grid {
    gap: 14px;
  }
  .equip-tile {
    min-height: 145px;
    padding: 18px;
    border-radius: 17px;
  }
  .equip-tile small {
    font-size: 13px;
    line-height: 1.5;
  }
  .equip-tile b {
    font-size: 16px;
    line-height: 1.5;
  }
  .equip-icon {
    width: 50px;
    height: 50px;
  }
  .arsenal-button {
    font-size: 17px;
    padding: 17px 21px;
  }
  .gunsmith-stage {
    border-radius: 22px;
    padding: 22px;
  }
  .gunsmith-gun {
    min-height: 310px;
  }
  .gunsmith-gun img,
  .gunsmith-gun svg {
    height: 290px;
  }
  .attachment-tile {
    min-height: 96px;
    border-radius: 15px;
    padding: 16px;
    gap: 14px;
  }
  .attachment-tile b {
    font-size: 18px;
  }
  .attachment-tile small {
    font-size: 15px;
    line-height: 1.5;
  }
  .attachment-language button,
  .attachment-scope button {
    font-size: 16px;
    min-height: 47px;
  }
  .attachment-option strong {
    font-size: 18px;
    font-weight: 600;
  }
  .attachment-option small {
    font-size: 14px;
  }
  .attachment-option {
    padding: 18px;
    border-radius: 14px;
  }
  .detail-top h1 {
    font-size: 46px;
  }
  .detail-place {
    padding: 15px 18px;
  }
  .detail-place b {
    font-size: 32px;
  }
  .detail-place small {
    font-size: 12px;
  }
  .detail-place span {
    font-size: 15px;
  }
  .detail-stage strong {
    font-size: 28px;
  }
  .detail-two small {
    font-size: 13px;
  }
  .detail-two b {
    font-size: 23px;
  }
  .detail-chips span {
    font-size: 16px;
    padding: 10px 14px;
  }
  .detail-section p,
  .creator-note {
    font-size: 17px;
    line-height: 1.75;
  }
  .streamer-intro p,
  .creator-card p,
  .panel p,
  .tip p {
    font-size: 17px;
    line-height: 1.7;
  }
  .streamer-filters label {
    font-size: 15px;
  }
  .streamer-filters select {
    font-size: 17px;
    padding: 14px;
  }
  .streamer-card {
    padding: 25px;
    border-radius: 22px;
  }
  .streamer-card h3 {
    font-size: 26px;
  }
  .streamer-card .creator-head small,
  .streamer-gun small,
  .local-label,
  .local-hint {
    font-size: 15px;
  }
  .streamer-gun span {
    font-size: 13px;
  }
  .streamer-gun strong {
    font-size: 27px;
  }
  .social-links a {
    font-size: 14px;
    padding: 8px 12px;
  }
  .card-actions button {
    font-size: 16px;
    min-height: 50px;
  }
  .date-card h3 {
    font-size: 23px;
  }
  .date-card p {
    font-size: 16px;
  }
  .date-card .eyebrow,
  .news-meta {
    font-size: 13px;
  }
  .date-card strong {
    font-size: 19px;
  }
  .date-card a,
  .news-card a,
  .tip a,
  .panel a {
    font-size: 15px;
  }
  .date-card {
    padding: 24px;
    border-radius: 20px;
  }
  .event-date b {
    font-size: 35px;
  }
  .event-date span {
    font-size: 12px;
  }
  .news-card {
    padding: 26px;
    border-radius: 20px;
  }
  .news-card h3 {
    font-size: 28px;
    line-height: 1.3;
    letter-spacing: normal;
  }
  .news-card p {
    font-size: 17px;
    line-height: 1.75;
  }
  .live-status {
    font-size: 16px;
  }
  .live-footnote,
  .news-hero small {
    font-size: 14px;
  }
  .tip {
    padding: 24px;
    border-radius: 20px;
  }
  .tip b {
    font-size: 23px;
  }
  .news-hero p {
    font-size: 18px;
  }
  .mode-tabs button {
    font-size: 16px;
    min-height: 50px;
  }
  .dialog {
    width: min(780px, calc(100vw - 64px));
    padding: 28px 32px 20px;
    border-radius: 22px;
  }
  .dialog-head h2 {
    font-size: 31px;
  }
  .dialog-head p {
    font-size: 17px;
    line-height: 1.6;
  }
  .form-grid label,
  .dialog .field-label {
    font-size: 16px;
  }
  .dialog .field {
    font-size: 18px;
    padding: 13px 16px;
  }
  .form-grid label > small,
  .fine-print,
  .legal-footer button {
    font-size: 14px;
    line-height: 1.7;
  }
  .form-grid textarea {
    min-height: 110px;
  }
  .comment-context p,
  .comment-consent,
  .owned-intro {
    font-size: 16px;
  }
  .comment-form h3 {
    font-size: 26px;
  }
  .comment-form .field-label {
    font-size: 16px;
  }
  .comment-item p {
    font-size: 18px;
  }
  .comment-heading b {
    font-size: 18px;
  }
  .comment-heading time {
    font-size: 14px;
  }
  .comment-item-actions .text-action {
    font-size: 14px;
  }
  .legal-text {
    font-size: 17px;
    line-height: 1.8;
  }
  .legal-text h3 {
    font-size: 23px;
  }
  .bottom-nav {
    width: min(1030px, calc(100% - 56px));
    bottom: 20px;
    padding: 10px;
    border-radius: 23px;
  }
  .bottom-nav a {
    min-height: 82px;
    font-size: 18px;
    gap: 8px;
    font-weight: 600;
  }
  .nav-icon,
  .nav-icon svg {
    width: 30px;
    height: 30px;
  }
  #toast {
    font-size: 16px;
    bottom: 136px;
    padding: 14px 20px;
  }
}
@media (max-width: 899px) {
  .rank-heading p,
  .page-heading p {
    font-size: 14px;
    line-height: 1.6;
  }
  .rank-tag {
    font-size: 11px;
  }
  .rank-copy p {
    font-size: 13px;
  }
  .rank-filters select {
    font-size: 13px;
    min-height: 46px;
  }
  .rank-summary {
    font-size: 12px;
  }
  .rank-meta {
    font-size: 12px;
  }
  .rank-card.featured .rank-body {
    display: block;
  }
  .rank-card.featured .rank-actions {
    margin-top: 16px;
  }
  .rank-actions .copy-btn {
    flex: 1;
    max-width: none;
    font-size: 13px;
    min-height: 46px;
  }
  .like-btn {
    width: 46px;
    height: 46px;
    font-size: 25px;
  }
  .rank-actions {
    gap: 7px;
  }
  .rank-card.compact .rank-body {
    padding: 14px;
  }
  .rank-card.compact .rank-actions {
    flex-wrap: wrap;
    margin-top: 12px;
  }
  .rank-card.compact .copy-btn {
    flex: 1 1 100%;
    font-size: 13px;
    min-height: 44px;
  }
  .rank-card.compact .like-btn {
    width: 44px;
    height: 44px;
    font-size: 23px;
  }
  .rank-card.compact .comment-btn {
    min-height: 44px;
    height: 44px;
  }
  .rank-card.compact .rank-tag {
    font-size: 10px;
  }
  .rank-card.compact .rank-copy h2 {
    font-size: 19px;
    line-height: 1.25;
  }
  .rank-card.compact .rank-copy p {
    font-size: 12px;
  }
  .rank-card.compact .rank-media,
  .rank-card.compact .rank-art {
    height: 100%;
    min-height: 175px;
  }
  .rank-card.compact .rank-art img,
  .rank-card.compact .rank-art svg {
    height: 145px;
  }
  .rank-card.compact .rank-art {
    padding-top: 40px;
  }
  .rank-card.compact .rank-heart {
    top: 36px;
    right: auto;
    left: 8px;
    font-size: 11px;
  }
  .rank-card.compact .rank-number {
    left: 8px;
  }
  .rank-card.compact .rank-author .post-avatar {
    width: 25px;
    height: 25px;
  }
  .bottom-nav a {
    font-size: 13px;
    min-height: 66px;
  }
  .bottom-nav {
    padding: 8px;
  }
  .equip-tile b {
    font-size: 13px;
    line-height: 1.4;
  }
  .equip-tile small {
    font-size: 11px;
  }
  .build-gun-meta small {
    font-size: 13px;
  }
  .attachment-tile b {
    font-size: 14px;
  }
  .attachment-tile small {
    font-size: 12px;
    line-height: 1.5;
  }
  .news-card p,
  .tip p,
  .creator-card p,
  .panel p,
  .date-card p {
    font-size: 15px;
    line-height: 1.7;
  }
  .news-card h3 {
    font-size: 23px;
  }
  .live-status {
    font-size: 14px;
  }
  .live-footnote {
    font-size: 13px;
  }
  .card-actions button {
    font-size: 13px;
  }
  .date-card a,
  .tip a {
    font-size: 13px;
  }
  .comment-form textarea {
    font-size: 16px;
  }
  .dialog-head p {
    font-size: 14px;
    line-height: 1.6;
  }
  .dialog-head h2 {
    font-size: 26px;
  }
  .own-part-note {
    font-size: 14px;
  }
  .comments-entry {
    padding: 18px;
  }
  .comments-entry > div {
    min-width: 100%;
  }
  .comments-entry h2 {
    font-size: 22px;
  }
  .comments-entry .ghost-btn {
    font-size: 15px;
  }
  .comment-item-actions .text-action {
    padding: 5px;
  }
  .my-posts-button small {
    font-size: 13px;
  }
}
@media (max-width: 360px) {
  .rank-card.compact {
    grid-template-columns: 34% minmax(0, 1fr);
  }
  .rank-card.compact .rank-body {
    padding: 10px;
  }
  .rank-card.compact .rank-copy h2 {
    font-size: 17px;
  }
  .rank-filters label {
    min-width: 108px;
  }
  .brand small {
    font-size: 7px;
  }
  .comment-meter {
    font-size: 11px;
  }
}

/* Feedback: fixed heading, independently scrolling form, consistent controls. */
.dialog.feedback-dialog {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  width: min(760px, 100%);
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  padding: 20px;
  scrollbar-gutter: auto;
}
.feedback-dialog .handle {
  flex: none;
  margin-bottom: 14px;
}
.feedback-dialog #modalBody {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.feedback-dialog .dialog-head {
  position: static;
  flex: none;
  margin: 0;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.feedback-dialog .dialog-head > div {
  min-width: 0;
}
.feedback-dialog .dialog-head h2 {
  font-size: clamp(25px, 4vw, 31px);
  line-height: 1.2;
}
.feedback-dialog .dialog-head p {
  margin: 8px 0 0;
  line-height: 1.6;
}
.feedback-dialog .close {
  flex: none;
}
.feedback-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 18px;
  padding: 20px 8px 6px 0;
}
.feedback-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.feedback-form > label {
  min-width: 0;
  gap: 8px;
  line-height: 1.5;
}
.feedback-form .field {
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  font-size: 16px;
  line-height: 1.5;
  border-radius: 12px;
  color: var(--text);
  background: var(--surface2);
  color-scheme: dark;
}
.feedback-form textarea.field {
  min-height: 150px;
  resize: vertical;
}
.feedback-form .fine-print {
  margin: 0;
  line-height: 1.7;
}
.feedback-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
}
.feedback-form .consent input[type='checkbox'] {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
}
.feedback-form .consent span {
  min-width: 0;
  line-height: 1.6;
}
.feedback-form .privacy-confirmation {
  gap: 16px;
}
.feedback-form .privacy-details summary {
  font-size: 16px;
  line-height: 1.5;
}
.feedback-form .dialog-actions {
  position: static;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  box-shadow: none;
  background: transparent;
}
.feedback-form .dialog-actions button {
  width: 100%;
  min-height: 52px;
  font-size: 17px;
}
#feedbackError {
  margin: 0;
  color: #ffb9b0;
  line-height: 1.6;
}
#feedbackError:empty {
  display: none;
}
.tips-filters {
  display: grid;
  gap: 20px;
  margin: 18px 0 24px;
}
.tip-filter-group {
  display: grid;
  gap: 9px;
  min-width: 0;
}
.tip-filter-label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 600;
}
.tips-filters .mode-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
}
.tips-filters .mode-tabs button {
  min-width: 0;
  min-height: 48px;
  padding: 12px 8px;
  font-size: 16px;
  line-height: 1.4;
  white-space: normal;
}
@media (max-width: 650px) {
  .dialog.feedback-dialog {
    padding: 18px;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }
  .feedback-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .feedback-scroll {
    padding-top: 18px;
  }
  .feedback-dialog .dialog-head {
    gap: 12px;
  }
  .tips-filters .mode-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tips-filters .mode-tabs button {
    font-size: 15px;
  }
}
@media (min-width: 900px) {
  .dialog.feedback-dialog {
    padding: 26px 28px;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
  }
  .feedback-dialog .handle {
    display: none;
  }
  .feedback-form .field {
    font-size: 18px;
  }
  .feedback-form .consent {
    font-size: 17px;
  }
  .feedback-form .privacy-details summary {
    font-size: 18px;
  }
  .tip-filter-label {
    font-size: 16px;
  }
  .tips-filters .mode-tabs button {
    font-size: 18px;
  }
}

.dialog-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--surface);
  padding: 12px 0 16px;
  margin-top: -12px;
  border-bottom: 1px solid var(--line);
}

.ad-grid:empty {
  display: none;
}
@media (min-width: 900px) {
  .topbar .my-posts-access {
    margin: 0;
    max-width: none;
    justify-content: center;
  }
  .topbar .my-posts-button {
    min-height: 52px;
    padding: 10px 15px;
    gap: 9px;
  }
  .topbar .my-posts-button strong {
    font-size: 16px;
  }
  .topbar .my-posts-button small,
  .topbar .my-posts-arrow {
    display: none;
  }
  .topbar .my-posts-button svg {
    width: 21px;
    height: 21px;
  }
  .topbar {
    height: 88px;
  }
  .brand {
    font-size: 28px;
  }
  .brand small {
    font-size: 10px;
  }
  .logo-disc {
    width: 51px;
    height: 51px;
  }
  main {
    padding-top: 20px;
  }
  .rank-heading {
    margin: 0 0 18px;
  }
  .rank-heading h1 {
    font-size: 46px;
    margin: 6px 0 9px;
  }
  .rank-heading p {
    font-size: 17px;
  }
  .rank-filters {
    margin-bottom: 4px;
  }
  .ranking-status-row {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: space-between;
    margin: 0 0 16px;
  }
  .ranking-status-row .rank-meta {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 14px;
    gap: 12px;
  }
  .ranking-status-row .rank-summary {
    margin: 0;
    font-size: 14px;
    flex: none;
    gap: 8px;
  }
  .ranking-status-row .rank-summary span {
    padding: 6px 10px;
  }
  .rank-card.featured .rank-art,
  .rank-card.featured .rank-media {
    min-height: 280px;
  }
  .rank-card.featured .rank-art img,
  .rank-card.featured .rank-art svg {
    height: 225px;
  }
  .rank-card.featured .rank-body {
    padding: 25px;
    gap: 22px;
  }
}
@media (min-width: 900px) and (max-width: 1100px) {
  .ranking-status-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .ranking-status-row .rank-meta {
    flex-basis: 100%;
  }
  .topbar {
    gap: 10px;
  }
  .topbar .my-posts-button {
    padding: 10px;
  }
  .rank-heading h1 {
    font-size: 42px;
  }
  .rank-actions .copy-btn {
    max-width: 180px;
  }
  .rank-card.featured .rank-body {
    padding: 20px;
  }
}

/* Große Waffenübersicht und sichtbare Kommentarzugänge. */
.community-connection {
  margin: 0 0 20px;
  padding: 17px 20px;
  border: 1px solid #6f6030;
  border-radius: 14px;
  background: #242218;
  color: #eee9d5;
}
.community-connection[hidden] {
  display: none;
}
.community-connection strong {
  display: block;
  font-size: 17px;
}
.community-connection p {
  font-size: 15px;
  line-height: 1.6;
  margin: 6px 0 0;
  color: #cbc7b6;
}
.comment-btn .comment-label {
  font-size: 14px;
  font-weight: 600;
}
.comment-count {
  min-width: 22px;
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  border-radius: 6px;
  background: #ffffff12;
  padding: 2px 5px;
}
.rank-actions {
  flex-wrap: wrap;
}
.rank-actions .comment-btn {
  gap: 7px;
  padding: 10px 12px;
  min-width: 0;
}
.card-actions .comment-btn {
  flex: 1 1 145px;
}
.comment-unavailable {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 25px;
  margin: 22px 0;
  background: var(--surface2);
}
.comment-unavailable b {
  font-size: 21px;
  line-height: 1.45;
}
.comment-unavailable p,
.comments-loading {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}
.weapon-picker .class-row {
  display: flex;
  flex-wrap: wrap;
  overflow: visible;
  gap: 8px;
  margin: 13px 0 9px;
  min-width: 0;
}
.weapon-picker .class-row button {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  font-size: 14px;
  padding: 9px 12px;
  flex: none;
}
.weapon-picker .class-row button span {
  font-size: 11px;
  padding: 2px 5px;
  border-radius: 5px;
  background: #ffffff12;
  color: inherit;
}
.weapon-picker .class-row button.active span {
  background: #0002;
}
.weapon-picker .weapon-options {
  max-height: none;
  overflow: visible;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.weapon-picker .weapon-option {
  min-width: 0;
  gap: 17px;
  padding: 16px;
  min-height: 155px;
  border-radius: 16px;
  background: #23282d;
}
.weapon-picker .weapon-option.is-selected {
  border-color: var(--gold);
  background: #2c2b21;
}
.weapon-picker .weapon-picture {
  display: grid;
  place-items: center;
  flex: 0 0 42%;
  min-width: 0;
  min-height: 100px;
}
.weapon-picker .weapon-picture img,
.weapon-picker .weapon-picture svg {
  width: 100%;
  height: 115px;
  max-width: 100%;
  object-fit: contain;
  flex: none;
}
.weapon-picker .weapon-option-meta {
  display: block;
  min-width: 0;
}
.weapon-picker .weapon-name {
  font-size: 19px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.weapon-picker .weapon-option small {
  font-size: 13px;
  line-height: 1.5;
  margin-top: 6px;
}
.weapon-picker .weapon-option em {
  font-size: 13px;
  line-height: 1.5;
  margin-top: 11px;
}
.weapon-picker .picker-result-count,
.weapon-picker .arsenal-note {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.picker-result-count {
  margin: 9px 0 16px;
}
.weapon-picker-tools .field {
  width: 100%;
}
.picker-empty {
  grid-column: 1/-1;
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: 16px;
}
.picker-empty p {
  color: var(--muted);
}
@media (min-width: 900px) {
  .dialog.weapon-picker {
    width: min(1180px, calc(100vw - 72px));
    padding: 26px 30px 30px;
    max-height: calc(100dvh - 48px);
  }
  .weapon-picker .dialog-head h2 {
    font-size: 32px;
  }
  .weapon-picker .dialog-head p {
    font-size: 17px;
  }
  .weapon-picker .weapon-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
  .weapon-picker .weapon-option {
    display: grid;
    grid-template-rows: 170px auto;
    align-content: start;
    gap: 16px;
    padding: 22px;
    min-height: 300px;
    text-align: left;
    border-radius: 18px;
    transition:
      border-color 0.15s,
      background 0.15s;
  }
  .weapon-picker .weapon-option:hover {
    border-color: var(--gold);
    background: #2c302b;
  }
  .weapon-picker .weapon-picture {
    width: 100%;
    min-height: 170px;
    flex: none;
    background: radial-gradient(ellipse, #63562126, transparent 70%);
    border-bottom: 1px solid #ffffff0b;
  }
  .weapon-picker .weapon-picture img,
  .weapon-picker .weapon-picture svg {
    width: 100%;
    height: 164px;
  }
  .weapon-picker .weapon-name {
    font-size: 24px;
  }
  .weapon-picker .weapon-option small {
    font-size: 15px;
  }
  .weapon-picker .weapon-option em {
    font-size: 15px;
    margin-top: 14px;
  }
  .weapon-picker .class-row button {
    font-size: 16px;
    min-height: 46px;
    padding: 11px 15px;
  }
  .weapon-picker .class-row button span {
    font-size: 13px;
  }
  .weapon-picker .picker-result-count,
  .weapon-picker .arsenal-note {
    font-size: 16px;
  }
  .rank-actions .comment-btn {
    min-height: 52px;
  }
  .comment-btn .comment-label {
    font-size: 16px;
  }
  .comment-count {
    font-size: 14px;
  }
}
@media (min-width: 900px) and (max-width: 1100px) {
  .weapon-picker .weapon-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 360px) {
  .weapon-picker .weapon-option {
    gap: 11px;
    padding: 12px;
  }
  .weapon-picker .weapon-name {
    font-size: 17px;
  }
  .weapon-picker .weapon-option small,
  .weapon-picker .weapon-option em {
    font-size: 12px;
  }
  .comment-btn .comment-label {
    font-size: 12px;
  }
  .rank-actions .comment-btn {
    padding: 8px;
  }
  .comment-btn svg {
    width: 18px;
    height: 18px;
  }
}

@media (min-width: 900px) {
  .weapon-picker .handle {
    display: none;
  }
  .weapon-picker .dialog-head {
    padding-top: 0;
    margin-top: 0;
    padding-bottom: 14px;
  }
  .weapon-picker .dialog-head p {
    margin: 7px 0 0;
  }
  .weapon-picker .arsenal-note {
    margin: 14px 0;
  }
  .weapon-picker-tools .search {
    margin: 0;
  }
  .weapon-picker .class-row button {
    font-size: 15px;
    min-height: 44px;
    padding: 10px 12px;
  }
  .weapon-picker .picker-result-count {
    margin: 10px 0 16px;
  }
}

/* Datenschutz vor dem Senden, ohne den Entwurf zu schließen. */
.privacy-confirmation {
  min-width: 0;
  border: 1px solid #41464a;
  border-radius: 16px;
  padding: 16px;
  background: #15191b;
  display: grid;
  gap: 14px;
}
.privacy-details summary {
  cursor: pointer;
  color: #ffdc19;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  align-items: center;
}
.privacy-details[open] summary {
  margin-bottom: 12px;
}
.privacy-details .legal-text {
  max-height: 340px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 8px 12px 8px 0;
  font-size: 16px;
  line-height: 1.65;
}
.privacy-confirmation .consent {
  margin: 0;
  align-items: flex-start;
}
.consent input[type='checkbox'] {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  accent-color: #ffdc19;
  margin-top: 2px;
}
.consent span {
  line-height: 1.5;
}
.privacy-details summary:focus-visible {
  outline: 2px solid #ffdc19;
  outline-offset: 4px;
}
@media (min-width: 900px) {
  .privacy-confirmation .consent {
    font-size: 18px;
  }
  .privacy-details .legal-text {
    font-size: 17px;
  }
}

.local-owned-row {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid #41464a;
  border-radius: 16px;
  margin: 12px 0;
}
.owned-local-info {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
}
.owned-local-info > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.owned-local-info b {
  font-size: 20px;
  overflow-wrap: anywhere;
}
.owned-local-info small {
  line-height: 1.5;
}
.owned-local-badge {
  font-size: 12px;
  color: #ffdc19;
  font-weight: 700;
}
.owned-local-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.owned-local-actions button {
  min-height: 44px;
  font-size: 15px;
}
.owned-delete {
  color: #ffc6bd;
}
.owned-row button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
@media (max-width: 600px) {
  .owned-local-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .owned-local-actions button {
    width: 100%;
  }
  .owned-local-info b {
    font-size: 19px;
  }
}

.terms-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #080b0ff5;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
}
.terms-shell {
  width: min(760px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  border: 1px solid #42494f;
  border-radius: 26px;
  background: #14191e;
  padding: 32px;
  box-shadow: 0 30px 100px #0008;
}
.terms-brand {
  font-size: 18px;
  font-weight: 800;
  color: #ffda0a;
  letter-spacing: 0.02em;
}
.terms-shell h1 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  margin: 14px 0;
}
.terms-shell p {
  font-size: 16px;
  line-height: 1.6;
}
.terms-scroll {
  max-height: 36vh;
  overflow: auto;
  background: #0c1014;
  border: 1px solid #343e47;
  border-radius: 15px;
  padding: 18px;
  white-space: pre-line;
  line-height: 1.65;
  font-size: 15px;
}
.terms-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.terms-links button {
  background: none;
  border: 0;
  color: #cdd4da;
  padding: 5px;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}
.terms-agree {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.5;
  margin: 20px 0;
}
.terms-agree input {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: #ffda0a;
}
.terms-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.terms-buttons button {
  min-height: 48px;
  flex: 1;
}
.terms-shell small {
  display: block;
  color: #aeb9c1;
  margin-top: 14px;
  line-height: 1.5;
}
.terms-error {
  color: #ffaaaa;
}
.modal {
  z-index: 10002 !important;
}
#toast {
  z-index: 10003 !important;
}
@media (max-width: 600px) {
  .terms-gate {
    padding: 12px;
  }
  .terms-shell {
    padding: 22px 18px;
    border-radius: 22px;
    max-height: calc(100dvh - 24px);
  }
  .terms-scroll {
    max-height: 32vh;
  }
  .terms-buttons {
    flex-direction: column;
  }
}
.news-card p {
  white-space: pre-line;
  line-height: 1.65;
}
/* Original illustrated equipment, clear German labels, and bounded picker artwork. */
.ui-art {
  position: relative;
  display: block;
  flex: none;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 5px #0005);
  pointer-events: none;
}
.ui-art::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: var(--art-w);
  height: var(--art-h);
  background: var(--art-image) var(--art-position) / var(--art-size) no-repeat;
}
.equipment-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.equip-tile {
  position: relative;
  justify-content: flex-start;
  gap: 6px;
  min-height: 204px;
  padding: 18px 14px 20px;
  border: 1px solid #46515a;
  border-radius: 19px;
  background:
    radial-gradient(ellipse at 50% 5%, #3e454f66, transparent 65%),
    linear-gradient(155deg, var(--surface2), var(--surface));
  box-shadow: inset 0 1px 0 #ffffff08;
  text-align: center;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.equip-tile:hover {
  background-color: #343523;
  border-color: var(--gold);
}
.equip-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 5px;
  border-radius: 18px;
  background: radial-gradient(ellipse, #d6ad2622, transparent 70%);
}
.equipment-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 5px #0005);
}
.equip-tile small {
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  color: var(--muted);
}
.equip-tile b {
  width: 100%;
  max-width: 100%;
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
}
.equip-tile .gear-original {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: #acb4bc;
  overflow-wrap: anywhere;
  font-weight: 400;
}
.equipment-none {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 36px;
  color: var(--muted);
}
.attachment-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.attachment-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  min-height: 158px;
  padding: 16px 18px;
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 40% 0%, #434a5555, transparent 75%),
    linear-gradient(155deg, var(--surface2), var(--surface));
  border-color: #46515a;
  box-shadow: inset 0 1px 0 #ffffff08;
}
.attachment-tile.selected {
  background:
    radial-gradient(ellipse at 35% 0%, #dbb42d25, transparent 75%),
    linear-gradient(150deg, #34311f, var(--surface));
  box-shadow: inset 0 1px 0 #ffda0a20;
  border-color: var(--gold);
}
.attachment-tile .attach-symbol {
  width: 72px;
  height: 72px;
  flex: none;
  margin-bottom: 1px;
}
.attachment-tile > span:nth-child(2) {
  width: 100%;
  flex: none;
  min-width: 0;
  padding-right: 5px;
}
.attachment-tile b,
.attachment-tile small {
  overflow: visible;
  white-space: normal;
  text-overflow: clip;
  overflow-wrap: anywhere;
}
.attachment-tile b {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}
.attachment-tile small {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.5;
  color: #b1bac1;
}
.attachment-tile .attach-chevron {
  position: absolute;
  top: 24px;
  right: 16px;
  width: auto;
  height: auto;
  font-size: 25px;
  line-height: 1;
  color: var(--muted);
}
.attachment-tile.selected .attach-chevron {
  color: var(--gold);
}
/* The dialog header and the scrolling content occupy separate layout regions. */
.dialog.standard-dialog {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  padding: 22px 24px;
  scrollbar-gutter: auto;
}
.standard-dialog .handle {
  flex: none;
  margin: 0 auto 16px;
}
.standard-dialog #modalBody {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.standard-dialog .dialog-head {
  position: static;
  flex: none;
  z-index: auto;
  margin: 0;
  padding: 0 0 18px;
  background: transparent;
  gap: 16px;
}
.standard-dialog .dialog-head > div {
  min-width: 0;
}
.standard-dialog .dialog-head h2 {
  font-size: clamp(25px, 4vw, 31px);
  line-height: 1.2;
  margin: 0;
}
.standard-dialog .dialog-head p {
  margin: 9px 0 0;
  line-height: 1.5;
}
.standard-dialog .close {
  width: 42px;
  height: 42px;
  flex: none;
  font-size: 27px;
}
.standard-dialog .dialog-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scroll-padding-block: 16px;
  padding: 18px 6px 4px 0;
}
.standard-dialog .dialog-scroll > .dialog-actions {
  position: static;
  bottom: auto;
  box-shadow: none;
  margin-bottom: 0;
  padding-bottom: 4px;
  flex-wrap: wrap;
  background: transparent;
}
.standard-dialog .dialog-actions > * {
  min-width: 110px;
}
.dialog.equipment-picker {
  width: min(820px, 100%);
}
.equipment-picker .choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin: 0;
  align-items: stretch;
}
.equipment-picker .choice-grid button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  min-width: 0;
  min-height: 197px;
  padding: 14px 12px 18px;
  border: 1px solid #46515a;
  border-radius: 17px;
  color: var(--text);
  background: radial-gradient(ellipse at 50% 0%, #434a5555, transparent 70%), var(--surface2);
  box-shadow: inset 0 1px 0 #ffffff08;
}
.equipment-picker .choice-grid button:hover {
  border-color: var(--gold);
}
.equipment-picker .choice-grid button.selected {
  border-color: var(--gold);
  background: radial-gradient(ellipse at 50% 0%, #ffda0a24, transparent 70%), #302e22;
  box-shadow: inset 0 0 0 1px #ffda0a24;
  color: var(--text);
}
.equipment-picker .choice-grid button.selected:after {
  content: '✓';
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #161810;
  background: var(--gold);
  font-size: 14px;
  font-weight: 700;
}
.equipment-picker .equipment-art-stage {
  display: block;
  flex: none;
  width: 100px;
  height: 100px;
  max-width: 100%;
  margin: 0 auto 7px;
}
.equipment-picker .choice-grid .equipment-image {
  width: 100%;
  height: 100%;
  margin: 0;
}
.equipment-picker .gear-choice-name {
  display: block;
  max-width: 100%;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.equipment-picker .gear-original {
  display: block;
  max-width: 100%;
  font-size: 12px;
  line-height: 1.4;
  color: #b1bac1;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.bottom-nav {
  gap: 5px;
  padding: 8px;
  border-color: #46515a;
  border-radius: 23px;
  background: linear-gradient(140deg, #1a2025, #101519);
  box-shadow:
    0 10px 30px #0007,
    inset 0 1px 0 #ffffff08;
}
.bottom-nav a {
  gap: 5px;
  min-width: 0;
  min-height: 72px;
  border-radius: 17px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  color: #aeb8c0;
}
.bottom-nav a.active {
  background: linear-gradient(145deg, #ffda0a1d, #ffda0a0a);
  color: var(--gold);
}
.bottom-nav a.active:before {
  left: 35%;
  width: 30%;
  height: 3px;
}
.nav-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 34px;
  line-height: 1;
}
.nav-icon svg {
  display: block;
  width: 28px;
  height: 28px;
  fill: currentColor;
  stroke: none;
  stroke-width: 0;
}
.bottom-nav a:focus-visible,
.equip-tile:focus-visible,
.attachment-tile:focus-visible,
.equipment-picker .choice-grid button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
@media (max-width: 650px) {
  .equipment-grid,
  .attachment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .equip-tile {
    min-height: 192px;
    padding: 13px 9px 16px;
    border-radius: 16px;
  }
  .equip-icon {
    width: 82px;
    height: 82px;
  }
  .equip-tile b {
    font-size: 15px;
    line-height: 1.4;
  }
  .equip-tile small,
  .equip-tile .gear-original {
    font-size: 12px;
  }
  .attachment-tile {
    min-height: 161px;
    gap: 8px;
    padding: 13px 13px 16px;
    border-radius: 16px;
  }
  .attachment-tile .attach-symbol {
    width: 66px;
    height: 66px;
  }
  .attachment-tile b {
    font-size: 15px;
    line-height: 1.35;
  }
  .attachment-tile small {
    font-size: 12px;
    line-height: 1.5;
  }
  .attachment-tile .attach-chevron {
    top: 20px;
    right: 12px;
  }
  .dialog.standard-dialog {
    padding: 17px 16px;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
  }
  .standard-dialog .dialog-head {
    gap: 10px;
    padding-bottom: 16px;
  }
  .standard-dialog .dialog-head p {
    font-size: 14px;
  }
  .standard-dialog .dialog-scroll {
    padding-top: 15px;
    padding-right: 3px;
  }
  .equipment-picker .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .equipment-picker .choice-grid button {
    min-height: 184px;
    padding: 12px 9px 15px;
    border-radius: 15px;
  }
  .equipment-picker .equipment-art-stage {
    width: 88px;
    height: 88px;
  }
  .equipment-picker .gear-choice-name {
    font-size: 15px;
  }
  .bottom-nav {
    width: calc(100% - 20px);
    bottom: calc(10px + env(safe-area-inset-bottom));
    padding: 6px;
    gap: 3px;
    border-radius: 22px;
  }
  .bottom-nav a {
    min-height: 69px;
    font-size: 12px;
    border-radius: 16px;
    gap: 3px;
  }
  main {
    padding-bottom: calc(144px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 360px) {
  .equipment-picker .gear-choice-name,
  .equip-tile b {
    font-size: 14px;
  }
  .equipment-picker .choice-grid button {
    padding-inline: 7px;
  }
  .bottom-nav a {
    font-size: 11px;
  }
  .bottom-nav {
    gap: 1px;
  }
  .standard-dialog .dialog-head h2 {
    font-size: 25px;
  }
  .attachment-tile b {
    font-size: 14px;
  }
}
@media (min-width: 900px) {
  .equipment-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
  }
  .equipment-grid[data-slot-count='6'] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .equip-tile {
    min-height: 232px;
    padding: 20px 14px;
    border-radius: 19px;
  }
  .equip-icon {
    width: 100px;
    height: 100px;
  }
  .equip-tile b {
    font-size: 18px;
  }
  .equip-tile small,
  .equip-tile .gear-original {
    font-size: 13px;
  }
  .attachment-tile {
    min-height: 180px;
    padding: 20px 22px;
    gap: 12px;
  }
  .attachment-tile .attach-symbol {
    width: 82px;
    height: 82px;
  }
  .attachment-tile b {
    font-size: 19px;
  }
  .attachment-tile small {
    font-size: 15px;
  }
  .dialog.standard-dialog {
    padding: 26px 28px;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
  }
  .standard-dialog .handle {
    display: none;
  }
  .equipment-picker .equipment-art-stage {
    width: 110px;
    height: 110px;
  }
  .equipment-picker .choice-grid button {
    min-height: 219px;
    padding: 18px 14px 22px;
  }
  .equipment-picker .gear-choice-name {
    font-size: 18px;
  }
  .equipment-picker .gear-original {
    font-size: 14px;
  }
  .bottom-nav {
    width: min(910px, calc(100% - 56px));
    padding: 9px;
    bottom: 20px;
  }
  .bottom-nav a {
    min-height: 76px;
    font-size: 16px;
    gap: 4px;
  }
  .nav-icon {
    width: 40px;
    height: 37px;
  }
  .nav-icon svg {
    width: 31px;
    height: 31px;
  }
  main {
    padding-bottom: 155px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .equip-tile {
    transition: none;
  }
}

.equipment-no-art {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 4px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 600;
}

.build-weapon-restriction {
  margin: 5px 0 0;
  color: var(--gold);
  font-size: .84rem;
}

@media (min-width: 1000px) {
  .dialog.equipment-picker:has(.choice-grid[data-wide]) {
    width: min(940px, 100%);
  }
  .equipment-picker .choice-grid[data-wide] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .equipment-picker .choice-grid[data-wide] button {
    min-height: 188px;
    padding: 13px 9px 16px;
  }
}

.export-preview {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  border-radius: 14px;
}

#liveFilters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}
#liveFilters button {
  flex: 0 1 auto;
  min-width: 0;
  white-space: normal;
}
#liveRefresh {
  white-space: nowrap;
  flex-shrink: 0;
}
.live-sources {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid #394236;
  border-radius: 18px;
  background: #151a16;
}
.live-sources summary {
  font-weight: 700;
  color: var(--accent, #ffdb00);
  cursor: pointer;
  min-height: 26px;
}
.live-sources p {
  font-size: 14px;
  line-height: 1.6;
  color: #aeb6a8;
}
.live-sources ul {
  padding: 0;
  list-style: none;
  margin: 12px 0 0;
  display: grid;
  gap: 12px;
}
.live-sources li {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.live-sources a {
  font-size: 15px;
  overflow-wrap: anywhere;
  font-weight: 600;
}
.live-sources small {
  color: #aeb6a8;
  font-size: 12px;
}
.news-meta {
  flex-wrap: wrap;
}
.news-meta time {
  white-space: nowrap;
}

/* Prominent news refresh action */
.news-refresh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 2px solid #ffe04a;
  border-radius: 12px;
  background: #ffda0a;
  color: #161616;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.01em;
  box-shadow:
    0 4px 0 #9b8100,
    0 0 20px rgba(255, 218, 10, 0.22);
  cursor: pointer;
  white-space: nowrap;
  transition:
    filter 0.15s,
    transform 0.15s;
}
.news-refresh-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.news-refresh-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}
.news-refresh-button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}
@media (max-width: 520px) {
  .news-refresh-button {
    min-height: 48px;
    padding: 10px 12px;
    font-size: 13px;
    white-space: normal;
    text-align: center;
  }
}

/* eUpdate News refresh — scoped to the existing Live news section only. */
#patchList.news-grid {
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}
#patchList .news-card {
  padding: 18px 20px;
  border-radius: 16px;
  background: #191d1b;
  border-color: #3b443d;
}
#patchList .news-card:first-child {
  border-color: #8b7931;
  background: linear-gradient(120deg, #252719, #191d1b 65%);
}
#patchList .news-meta {
  align-items: center;
  font-size: 12px;
  gap: 12px;
}
#patchList .news-card h3 {
  font-size: clamp(19px, 2.6vw, 24px);
  line-height: 1.3;
  margin: 10px 0 8px;
}
#patchList .news-card p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  white-space: normal;
}
#patchList .news-card a {
  font-size: 13px;
}
#patchList .news-card .news-new {
  display: inline-block;
  border: 1px solid #88762a;
  border-radius: 6px;
  padding: 2px 7px;
  margin-left: 8px;
  color: #ffda0a;
  font-size: 10px;
}
#liveFilters {
  gap: 7px;
  margin-top: 12px;
}
#liveFilters button {
  font-size: 13px;
  min-height: 40px;
  padding: 8px 12px;
}
@media (max-width: 600px) {
  #patchList .news-card {
    padding: 16px;
  }
  #patchList .news-card h3 {
    font-size: 20px;
  }
  #patchList .news-card p {
    font-size: 14px;
  }
}

.live-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.live-title-row h1 {
  margin: 0;
  min-width: 0;
}
.live-title-row .news-refresh-button {
  flex: 0 0 auto;
  background: #ffda00 !important;
  color: #121212 !important;
  border: 2px solid #ffda00 !important;
  border-radius: 14px !important;
  font-weight: 850 !important;
  padding: 12px 16px !important;
  box-shadow: 0 4px 22px #ffda0040 !important;
  min-height: 48px;
  cursor: pointer;
}
@media (max-width: 420px) {
  .live-title-row {
    gap: 8px;
  }
  .live-title-row h1 {
    font-size: clamp(30px, 8vw, 48px) !important;
  }
  .live-title-row .news-refresh-button {
    font-size: 12px !important;
    padding: 10px 11px !important;
  }
}
.detail-language {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 15px;
  margin: 8px 0 16px;
  border: 1px solid #3d454b;
  border-radius: 14px;
  background: #1b2025;
}
.detail-language > span {
  font-size: 13px;
  color: #c2c9ce;
  font-weight: 700;
}
.topbar .brand,
.head-action,
.back-link,
.bottom-nav a {
  text-decoration: none;
}
.bottom-nav a {
  padding: 2px 6px;
  text-align: center;
}
.back-link {
  display: inline-flex;
  align-items: center;
}

/* Shared layout, filters and builder fields */
:root {
  color-scheme: dark;
}
body {
  background: radial-gradient(ellipse at 75% 0%, #30281565, transparent 42rem), var(--bg);
}
main,
.topbar {
  max-width: 1140px;
}
.topbar {
  border-color: #ffffff17;
}
.rank-heading,
.view > .page-heading {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0 0 16px;
  padding: clamp(18px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(115deg, var(--surface) 35%, #26241b 100%);
}
.rank-heading::before,
.view > .page-heading::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 45%;
  background-image:
    linear-gradient(#ffda0a13 1px, transparent 1px),
    linear-gradient(90deg, #ffda0a13 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, transparent, #000);
  content: '';
}
.rank-heading > div {
  min-width: 0;
}
.rank-heading h1,
.view > .page-heading h1 {
  max-width: none;
  margin: 5px 0 8px;
  font-size: clamp(32px, 5.8vw, 55px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.rank-heading p,
.view > .page-heading p {
  color: var(--muted);
  font-size: clamp(14px, 2vw, 16px);
}
.rank-heading .head-action {
  align-self: flex-end;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: var(--gold);
  color: #151515;
  font-size: 14px;
  line-height: 1.25;
}
.rank-heading .head-action span {
  width: auto;
  height: auto;
  background: none;
  color: inherit;
}
.rank-heading .head-action:hover {
  filter: brightness(1.06);
}
.rank-filters,
.builder-settings {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.rank-filters {
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  overflow: visible;
  margin: 0 0 12px;
}
.builder-settings .build-config {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
.builder-settings .builder-audience {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}
.rank-filters label,
.rank-filters label:nth-child(3),
.build-config label,
.builder-settings .builder-audience > span,
.weapon-season-field {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}
.rank-filters select,
.build-config select,
.weapon-season-field input,
.rank-filters label:first-child select,
.build-config label:first-child select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface2);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}
.rank-filters #feedSort {
  border-color: #8e7a30;
}
.weapon-season-field input::placeholder {
  color: var(--muted);
}
.ranking-hint {
  margin: 0 0 12px;
  padding: 9px 12px;
  border-left: 2px solid var(--gold);
  background: #26241b;
  color: var(--text);
  font-size: 13px;
}
.ranking-status-row {
  margin-bottom: 14px;
}
.rank-summary {
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0;
}
.rank-summary span {
  background: var(--surface);
}
.rank-list,
.build-weapons {
  gap: 14px;
}
.rank-card,
.build-primary,
.build-secondary,
.detail-section,
.creator-card {
  border-radius: 18px;
  box-shadow: 0 12px 30px #0003;
}
.rank-card:focus-within,
.rank-card:hover {
  border-color: #8e7a30;
}
.rank-body {
  border-top: 1px solid #ffffff12;
}
.rank-card.compact .rank-body {
  border-top: 0;
  border-left: 1px solid #ffffff12;
}
.rank-actions .copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.rank-actions .copy-btn span {
  flex: none;
  margin-left: 0;
}
.rank-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  margin-bottom: 6px;
}
.season-chip {
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface2);
  color: var(--text);
  font-size: 11px;
  line-height: 1.4;
}
.empty {
  padding: clamp(20px, 4vw, 36px);
  border-style: solid;
  border-color: var(--line);
  background: var(--surface);
}
.bottom-nav {
  background: #111417f2;
}
@media (max-width: 820px) {
  .rank-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 550px) {
  .rank-heading {
    display: grid;
    justify-items: start;
    gap: 13px;
  }
  .rank-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    padding: 11px;
  }
  .rank-filters label:last-child {
    grid-column: 1 / -1;
  }
  .rank-heading .head-action {
    min-height: 42px;
  }
}

@media (max-width: 520px) {
  .bottom-nav {
    padding: 5px;
  }
  .bottom-nav a {
    min-height: 58px;
    gap: 3px;
  }
  .bottom-nav .nav-icon {
    height: 26px;
  }
}
@media (min-width: 1120px) {
  :root {
    --desktop-shell: 1370px;
    --desktop-nav-width: 170px;
    --desktop-gap: 22px;
    --desktop-start: max(var(--desktop-gap), calc((100% - var(--desktop-shell)) / 2));
  }
  .topbar {
    width: calc(100% - 2 * var(--desktop-start));
    max-width: none;
    padding-inline: 0;
  }
  main {
    width: calc(100% - 2 * var(--desktop-start) - var(--desktop-nav-width) - var(--desktop-gap));
    max-width: none;
    margin-inline: calc(var(--desktop-start) + var(--desktop-nav-width) + var(--desktop-gap)) auto;
    padding: 20px 0 48px;
  }
  .bottom-nav {
    inset: calc(108px + env(safe-area-inset-top)) auto auto var(--desktop-start);
    transform: none;
    width: var(--desktop-nav-width);
    padding: 6px;
    grid-template-columns: minmax(0, 1fr);
    border-radius: 16px;
  }
  .bottom-nav a {
    display: grid;
    grid-template-columns: 23px minmax(0, 1fr);
    align-items: center;
    min-height: 48px;
    gap: 9px;
    padding: 7px 10px;
    border-radius: 10px;
    font-size: 13px;
    text-align: left;
  }
  .bottom-nav .nav-icon,
  .bottom-nav svg {
    width: 23px;
    height: 23px;
  }
  .bottom-nav .nav-icon {
    justify-self: center;
  }
}

/* Baukasten */
.builder-view {
  --builder-edge: max(clamp(14px, 2.5vw, 36px), calc((100% - 1392px) / 2));
  --builder-nav-width: var(--desktop-nav-width);
  --builder-nav-gap: 36px;
  --builder-control: color-mix(in srgb, var(--bg) 74%, var(--surface));
  --builder-outline: color-mix(in srgb, var(--line) 72%, transparent);
  --builder-accent-line: color-mix(in srgb, var(--gold) 32%, transparent);
  --builder-accent-fill: color-mix(in srgb, var(--gold) 12%, var(--builder-control));
  background: radial-gradient(ellipse at 72% 1%, color-mix(in srgb, var(--gold) 4%, transparent), transparent 44%), var(--bg);
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.builder-view .topbar {
  width: 100%;
  max-width: none;
  height: calc(72px + env(safe-area-inset-top));
  padding-inline: var(--builder-edge);
  gap: 10px;
  border-color: var(--builder-outline);
  background: var(--builder-control);
}
.builder-view .topbar .brand {
  min-width: 0;
  font-size: 23px;
  letter-spacing: -.04em;
}
.builder-view .brand small,
.builder-view .topbar .my-posts-button small,
.builder-view .topbar .my-posts-arrow {
  display: none;
}
.builder-view .logo-disc {
  width: 40px;
  height: 40px;
}
.builder-view .topbar .my-posts-access {
  flex: none;
  margin: 0 0 0 auto;
}
.builder-view .topbar .my-posts-button,
.builder-view .support-top {
  min-height: 38px;
  padding: 0 13px;
  gap: 7px;
  border: 1px solid var(--builder-outline);
  border-radius: 9px;
  background: var(--surface);
  white-space: nowrap;
}
.builder-view .topbar .my-posts-button {
  color: var(--text);
}
.builder-view .support-top.liked {
  border-color: var(--builder-accent-line);
  background: var(--builder-accent-fill);
}
.builder-view .topbar .my-posts-button strong,
.builder-view .support-top small {
  font-size: 13px;
}
.builder-view .topbar .my-posts-button svg {
  width: 16px;
  height: 16px;
}
.builder-view > main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 27px var(--builder-edge) calc(92px + env(safe-area-inset-bottom));
}
.builder-view .legal-footer {
  justify-content: flex-end;
  margin-top: 14px;
  padding-top: 0;
}

#view-builder {
  max-width: none;
}
#view-builder > .builder-heading {
  isolation: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 21px;
  padding: 0;
  overflow: visible;
  border: 0;
  background: none;
}
#view-builder > .builder-heading::before {
  content: none;
}
#view-builder .builder-heading h1 {
  margin: 0;
  font-size: clamp(27px, 4vw, 46px);
  font-weight: 780;
  line-height: 1.1;
  letter-spacing: -.052em;
}
.builder-heading .arsenal-button {
  width: auto;
  min-height: 38px;
  margin: 0;
  padding: 0 12px;
  gap: 8px;
  border-color: var(--builder-outline);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  white-space: nowrap;
}
.builder-heading .arsenal-short,
#view-builder .builder-mode-tabs {
  display: none;
}

#view-builder .builder-settings {
  grid-template-columns: minmax(140px, 1fr) minmax(95px, .65fr) minmax(0, 2.1fr) minmax(160px, 1fr);
  gap: 16px;
  padding: 12px 13px;
  border-color: var(--builder-outline);
  border-radius: 13px;
}
#view-builder .builder-setting {
  display: grid;
  align-content: start;
  min-width: 0;
  gap: 5px;
}
#view-builder .builder-setting > :is(span, label) {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 680;
  line-height: 1.35;
}
#view-builder .builder-setting select,
#view-builder .builder-mode-tabs,
#view-builder .audience-tabs,
#view-builder .builder-section .attachment-language {
  min-width: 0;
  min-height: 37px;
  margin: 0;
  border: 1px solid var(--builder-outline);
  border-radius: 8px;
  background: var(--builder-control);
  color: var(--text);
}
#view-builder .builder-setting select {
  padding: 0 9px;
  font-size: 13px;
  font-weight: 650;
}
#view-builder .builder-mode-tabs,
#view-builder .audience-tabs,
#view-builder .builder-section .attachment-language {
  gap: 3px;
  padding: 3px;
}
#view-builder :is(.builder-mode-tabs, .audience-tabs) {
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
}
#view-builder :is(.builder-mode-tabs, .audience-tabs, .builder-section .attachment-language) button {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 28px;
  padding: 2px 5px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 680;
}
#view-builder :is(.builder-mode-tabs, .audience-tabs, .builder-section .attachment-language) button[aria-pressed='true'] {
  border-color: var(--builder-accent-line);
  background: var(--builder-accent-fill);
  color: var(--gold);
}
#view-builder .builder-section .attachment-language {
  flex-wrap: nowrap;
  min-height: 31px;
}
#view-builder .builder-section .attachment-language button {
  width: 35px;
  min-height: 23px;
  font-size: 11px;
}
#view-builder .builder-section .language-flag {
  display: none;
}

#view-builder .builder-section {
  align-items: center;
  gap: 8px;
  margin: 22px 0 10px;
}
#view-builder .builder-section h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -.028em;
}
#view-builder .builder-section p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
#view-builder #weaponSeasonHint {
  text-align: right;
}
.build-weapons {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.build-weapons.single-weapon {
  grid-template-columns: minmax(0, 1fr);
}
.build-weapon-card {
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 10px;
  min-width: 0;
  padding: 13px 14px 14px;
  border: 1px solid var(--builder-outline);
  border-radius: 16px;
  background: linear-gradient(153deg, var(--surface2), var(--surface) 51%);
  box-shadow: 0 10px 28px #0004;
}
.build-weapon-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  align-items: center;
  gap: 12px;
  padding-inline: 2px;
}
.build-weapon-heading .eyebrow {
  color: var(--muted);
  font-size: 10px;
  font-weight: 740;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.build-weapon-heading h3 {
  margin: 2px 0;
  font-size: clamp(21px, 3vw, 29px);
  line-height: 1.05;
  letter-spacing: -.043em;
  overflow-wrap: anywhere;
}
.build-weapon-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.build-weapon-meta.build-weapon-restriction {
  color: var(--gold);
}
.weapon-season-field {
  gap: 5px;
  color: var(--gold);
  font-size: 11px;
}
.weapon-season-field input {
  min-height: 36px;
  padding: 0 9px;
  border-color: var(--builder-accent-line);
  border-radius: 8px;
  background: var(--builder-control);
  font-size: 15px;
}
.weapon-season-field input:invalid {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px var(--gold);
}
.weapon-season-field input::-webkit-inner-spin-button {
  opacity: 1;
}
.build-weapon-art {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 168px;
  padding: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 24%, transparent);
  border-radius: 11px;
  background:
    radial-gradient(ellipse at 50% 75%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 65%),
    linear-gradient(125deg, var(--surface2), var(--builder-control));
}
.build-weapon-art::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: linear-gradient(var(--text) 1px, transparent 1px), linear-gradient(90deg, var(--text) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 50% 35%, #000 3%, transparent 74%);
  opacity: .11;
  content: '';
}
.build-weapon-art :is(img, svg) {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 7px 16px;
  object-fit: contain;
  filter: drop-shadow(0 11px 9px #0009);
}
.build-weapon-art:hover {
  border-color: var(--builder-accent-line);
}
.build-weapon-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.build-weapon-actions button,
#view-builder :is(.loadout-actions, .builder-actions) button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 5px 8px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.25;
}
.build-weapon-actions button {
  border-color: var(--builder-outline);
  background: var(--surface);
}
.build-weapon-actions button[data-attach] {
  border-color: var(--builder-accent-line);
  background: var(--builder-accent-fill);
}
.build-weapon-actions button[data-attach] > [aria-hidden],
.build-attachment-count {
  color: var(--gold);
}
.build-attachment-count {
  padding: 1px 5px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--gold) 11%, transparent);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#view-builder .equipment-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 157px), 1fr));
  gap: 9px;
}
#view-builder .equip-tile {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-height: 82px;
  padding: 8px 9px;
  border-color: var(--builder-outline);
  border-radius: 12px;
  background: radial-gradient(ellipse at 20% 50%, color-mix(in srgb, var(--gold) 6%, transparent), transparent 67%), var(--surface);
  color: var(--text);
  text-align: left;
}
#view-builder .equip-tile:hover {
  border-color: var(--gold);
}
#view-builder .equip-tile > .equip-icon {
  flex: none;
  width: 58px;
  height: 58px;
  margin: 0;
  background: none;
}
#view-builder .equip-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}
#view-builder .equip-copy small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 550;
  line-height: 1.2;
}
#view-builder .equip-copy b {
  font-size: 13px;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
}
#view-builder .equip-copy .gear-original {
  color: var(--gold);
}
#view-builder :is(.loadout-actions, .builder-actions) {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--builder-outline);
}
#view-builder :is(.loadout-actions, .builder-actions) button {
  flex: 0 0 auto;
  width: auto;
  min-height: 38px;
  padding-inline: 12px;
  font-weight: 750;
}
#view-builder :is(.loadout-actions, .builder-actions) svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 1120px) {
  .builder-view > main {
    width: calc(100% - 2 * var(--builder-edge) - var(--builder-nav-width) - var(--builder-nav-gap));
    margin-inline-start: calc(var(--builder-edge) + var(--builder-nav-width) + var(--builder-nav-gap));
    padding: 27px 0 20px;
  }
  .builder-view .bottom-nav {
    inset: calc(102px + env(safe-area-inset-top)) auto auto var(--builder-edge);
    width: var(--builder-nav-width);
  }
}
@media (min-width: 821px) {
  #view-builder .builder-mode-tabs {
    display: grid;
  }
  #view-builder .builder-setting:has(.builder-mode-tabs:not(:empty)) #modeSelect {
    display: none;
  }
}
@media (max-width: 820px) {
  #view-builder .builder-settings {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 8px;
    padding: 9px;
  }
  #view-builder .builder-audience {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 8px;
  }
  #view-builder .builder-audience > span {
    flex: none;
    white-space: nowrap;
  }
  #view-builder .audience-tabs {
    display: grid;
    flex: 1;
  }
}
@media (max-width: 640px) {
  .builder-view .topbar {
    height: calc(60px + env(safe-area-inset-top));
    gap: 6px;
  }
  .builder-view .topbar .brand {
    gap: 7px;
    font-size: 19px;
  }
  .builder-view .logo-disc {
    width: 32px;
    height: 32px;
  }
  .builder-view .topbar .my-posts-button,
  .builder-view .support-top {
    min-height: 34px;
    padding-inline: 7px;
    font-size: 12px;
  }
  .builder-view .topbar .my-posts-button strong {
    font-size: 11px;
  }
  .builder-view .support-top small {
    display: none;
  }
  .builder-view > main {
    padding-top: 19px;
  }
  .builder-view .legal-footer {
    justify-content: center;
  }
  #view-builder > .builder-heading {
    margin-bottom: 15px;
  }
  #view-builder .builder-heading h1 {
    font-size: clamp(25px, 8.4vw, 34px);
  }
  .builder-heading .arsenal-button {
    min-height: 34px;
    padding-inline: 7px;
    gap: 4px;
    font-size: 11px;
  }
  .builder-heading .arsenal-label {
    display: none;
  }
  .builder-heading .arsenal-short {
    display: inline;
  }
  #view-builder .builder-section {
    margin-top: 17px;
  }
  #view-builder .builder-section h2 {
    font-size: 19px;
  }
  #view-builder .builder-section p {
    font-size: 10px;
  }
  .build-weapons {
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
  }
  .build-weapon-card {
    padding: 9px;
    border-radius: 12px;
  }
  .build-weapon-heading {
    grid-template-columns: minmax(0, 1fr) 96px;
  }
  .weapon-season-field input {
    min-height: 34px;
  }
  .build-weapon-art {
    height: 118px;
    border-radius: 9px;
  }
  .build-weapon-art :is(img, svg) {
    padding: 4px 12px;
  }
  #view-builder .equipment-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
  }
  #view-builder .equip-tile {
    grid-column: span 3;
    gap: 6px;
    min-height: 61px;
    padding: 5px 6px;
    border-radius: 9px;
  }
  #view-builder .equip-tile > .equip-icon {
    width: 40px;
    height: 40px;
  }
  #view-builder .equipment-grid:has([data-gear-pick='perk1']):has([data-gear-pick='perk2']):has([data-gear-pick='perk3']) [data-gear-pick^='perk'] {
    grid-column: span 2;
    flex-direction: column;
    gap: 3px;
    text-align: center;
  }
  #view-builder .equipment-grid > [data-gear-pick='field']:last-child {
    grid-column: 1 / -1;
  }
  #view-builder .equip-copy b {
    font-size: 12px;
  }
  #view-builder .equip-copy small {
    font-size: 10px;
  }
  #view-builder :is(.loadout-actions, .builder-actions) {
    margin-top: 12px;
    padding-top: 12px;
  }
  #view-builder :is(.loadout-actions, .builder-actions) button {
    min-height: 44px;
  }
}

.rank-filters label[hidden] {
  display: none;
}
.rank-tag.streamer-tag {
  color: var(--gold);
}
.rank-copy .social-links,
.detail-top .social-links {
  margin-top: 8px;
}
.bottom-nav {
  background: color-mix(in srgb, var(--bg) 78%, var(--surface));
  border-color: var(--line);
}
.bottom-nav a {
  border: 1px solid transparent;
  color: var(--muted);
}
.bottom-nav a:not(.active):hover {
  color: var(--text);
  background: var(--surface2);
}
.bottom-nav a.active {
  background: color-mix(in srgb, var(--gold) 12%, var(--bg));
  border-color: color-mix(in srgb, var(--gold) 40%, transparent);
  color: var(--gold);
}
.bottom-nav a.active::before {
  content: none;
}
.settings-nav-icon {
  font-family: 'Segoe UI Symbol', 'DejaVu Sans', sans-serif;
  font-variant-emoji: text;
  font-size: 22px;
  line-height: 1;
}
.settings-nav-label {
  min-width: 0;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#gameSettingsHeading {
  font-size: clamp(26px, 7.5vw, 46px);
}
#view-settings > .page-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: clamp(15px, 3vw, 26px);
}
#view-settings .settings-save {
  min-height: 44px;
  padding: 8px 14px;
  font-size: 14px;
}
@media (max-width: 360px) {
  .bottom-nav a {
    padding-inline: 2px;
    font-size: 10px;
  }
}
.attachment-tile.apex-locked,
.attachment-option.apex-locked {
  border-color: #89794a;
}
.attachment-tile.apex-locked small {
  color: var(--gold);
}
.attachment-tile.apex-locked:disabled {
  cursor: default;
  opacity: .64;
}
.game-settings-filters {
  display: grid;
  grid-template-columns: 2fr minmax(150px, 1fr) minmax(150px, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.game-settings-filters label {
  display: grid;
  gap: 5px;
  min-width: 0;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}
.game-settings-filters .field {
  width: 100%;
  min-width: 0;
}
.game-settings-group {
  display: grid;
  gap: 12px;
  margin-top: clamp(23px, 4vw, 38px);
}
.game-settings-group-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.game-settings-group h2,
.game-setting h3 {
  margin: 0;
}
.game-settings-group h2 {
  font-size: clamp(20px, 4vw, 28px);
}
.settings-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 370px), 1fr));
  align-items: start;
  gap: 12px;
}
.settings-value-panel {
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
}
.settings-value-panel h3 {
  margin: 0;
  padding: 11px 15px;
  color: var(--text);
  background: var(--surface2);
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.settings-value-panel dl {
  margin: 0;
  padding-inline: 15px;
}
.setting-value-row {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: start;
  gap: 12px;
  padding-block: 10px;
  overflow-wrap: anywhere;
  font-size: 15px;
}
.setting-value-row + .setting-value-row {
  border-top: 1px solid var(--line);
}
.setting-value-row dt {
  font-weight: 650;
}
.setting-value-row dt small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.setting-value-row dd {
  margin: 0;
  color: var(--gold);
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.game-setting {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: clamp(14px, 3vw, 24px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
}
.game-setting-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px 20px;
}
.game-setting-heading p {
  margin: 2px 0;
  color: var(--muted);
}
.game-setting-heading small {
  color: var(--muted);
}
.game-setting dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(205px, 100%), 1fr));
  gap: 10px;
  margin: 14px 0 0;
}
.game-setting dl > div {
  padding: 9px 12px;
  background: var(--surface2);
  border-radius: 8px;
}
.game-setting dt {
  font-size: 12px;
  color: var(--muted);
}
.game-setting dd {
  margin: 4px 0 0;
  white-space: pre-line;
}
.game-setting-description {
  margin: 14px 0 0;
  white-space: pre-line;
}
.settings-save,
.game-setting .ghost-btn,
.game-settings-group-heading .ghost-btn {
  width: auto;
  min-height: 42px;
}
.settings-export-pages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 8px;
}
@media (max-width: 600px) {
  .game-settings-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .game-settings-filters label:first-child {
    grid-column: 1 / -1;
  }
}

.build-weapon-profile {
  display: grid;
  grid-template-columns: minmax(118px, 1fr) minmax(150px, 1.35fr) auto;
  align-items: end;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.build-weapon-profile label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}
.build-weapon-profile small {
  color: var(--muted);
  font-weight: 400;
}
.build-weapon-profile input,
.build-weapon-profile select {
  width: 100%;
  min-width: 0;
  min-height: 39px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--builder-control);
  color: var(--text);
  font-size: 14px;
}
.build-weapon-profile .weapon-check-action {
  width: auto;
  min-height: 39px;
  padding: 6px 11px;
  border-color: var(--builder-accent-line);
  color: var(--gold);
}
.weapon-check-context {
  color: var(--gold);
  font-weight: 650;
}
.weapon-check-tip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-block: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface2);
}
.weapon-check-tip small {
  color: var(--muted);
}
.weapon-check-tip h3,
.weapon-check-tip p {
  margin: 3px 0;
}
.weapon-check-tip h3 {
  font-size: 16px;
}
.weapon-check-tip .ghost-btn {
  width: auto;
}
.rank-weapon-profiles {
  display: grid;
  gap: 5px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.rank-weapon-profiles li {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.rank-weapon-profiles span,
.detail-weapon-profile {
  color: var(--muted);
}
.detail-weapon-profile {
  margin: 5px 0 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
@media (max-width: 560px), (min-width: 900px) and (max-width: 1310px) {
  .build-weapon-profile {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .build-weapon-profile .weapon-check-action {
    grid-column: 1 / -1;
  }
}

button {
  caret-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

.builder-heading .arsenal-button {
  align-items: center;
  line-height: 1.2;
}

.my-posts-access {
  align-items: stretch;
  flex-wrap: wrap;
  gap: 8px;
}

.my-posts-access .erase-data-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 42px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
}

.my-posts-access .erase-data-button:hover {
  color: var(--text);
  background: var(--surface2);
}

.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #a45e69;
  border-radius: 9px;
  background: #49262c;
  color: #ffdcdf;
  font-weight: 700;
}
.danger-btn:disabled {
  opacity: .65;
}

.build-weapon-card,
.build-weapon-actions button,
.build-weapon-profile .weapon-check-action {
  min-width: 0;
}

.build-weapon-profile label {
  align-self: stretch;
  grid-template-rows: 1fr auto;
}

@media (max-width: 899px) {
  .topbar > .my-posts-access {
    display: none;
  }
  main > .my-posts-access {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin: 0 0 12px;
  }
  main > .my-posts-access .my-posts-button {
    width: 100%;
    min-height: 42px;
    padding: 6px 8px;
    justify-content: center;
    gap: 6px;
  }
  main > .my-posts-access .my-posts-button svg {
    width: 16px;
    height: 16px;
  }
  main > .my-posts-access :is(.my-posts-arrow, small) {
    display: none;
  }
  main > .my-posts-access .my-posts-button strong,
  main > .my-posts-access .erase-data-button {
    font-size: 13px;
  }
}
