.fornite-page {
  --fornite-touch-scale: 1;
  background:
    radial-gradient(circle at 18% 14%, rgba(154, 174, 137, 0.16), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(96, 121, 145, 0.2), transparent 24%),
    linear-gradient(135deg, #101614 0%, #20281f 48%, #111419 100%);
}

.fornite-page .arcade-logo {
  background: linear-gradient(135deg, #c4b28a, #66745a 58%, #293335);
  color: #f4efe2;
}

.fornite-layout {
  grid-template-columns: minmax(240px, 0.66fr) minmax(390px, 1.62fr) minmax(240px, 0.66fr);
}

.fornite-score-grid .arcade-stat {
  min-height: 66px;
}

.fornite-score-grid .arcade-stat strong {
  font-size: 22px;
}

.fornite-profile {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fornite-profile div,
.fornite-board,
.fornite-armory {
  border: 1px solid rgba(240, 229, 200, 0.12);
  border-radius: 8px;
  background: rgba(8, 13, 14, 0.28);
}

.fornite-profile div {
  min-height: 48px;
  padding: 8px;
}

.fornite-profile span,
.fornite-board-head span {
  color: rgba(240, 229, 200, 0.6);
  display: block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fornite-profile strong {
  color: #f0e5c8;
  display: block;
  font-size: 18px;
  margin-top: 3px;
}

.fornite-profile-editor {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1.35fr) minmax(90px, 0.65fr);
}

.fornite-profile-editor label,
.fornite-profile-editor div {
  border: 1px solid rgba(240, 229, 200, 0.12);
  border-radius: 8px;
  background: rgba(8, 13, 14, 0.28);
  display: grid;
  gap: 4px;
  min-height: 48px;
  padding: 7px 8px;
}

.fornite-profile-editor span {
  color: rgba(240, 229, 200, 0.6);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fornite-profile-editor input {
  background: transparent;
  border: 0;
  color: #f0e5c8;
  font: 900 16px system-ui, sans-serif;
  min-width: 0;
  outline: 0;
  width: 100%;
}

.fornite-profile-editor strong {
  color: #f0e5c8;
  font-size: 16px;
}

.fornite-mode-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fornite-mode-list button {
  min-height: 38px;
  border: 1px solid rgba(240, 229, 200, 0.16);
  border-radius: 8px;
  background: rgba(8, 13, 14, 0.34);
  color: #f0e5c8;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: 0;
}

.fornite-mode-list button.active {
  background: linear-gradient(180deg, #9f5c4f, #63342f);
  border-color: rgba(240, 229, 200, 0.38);
  color: #fff;
}

.fornite-mode-list button[data-mode="private"] {
  grid-column: 1 / -1;
}

.fornite-server-list {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fornite-server-list button {
  border: 1px solid rgba(240, 229, 200, 0.14);
  border-radius: 8px;
  background: rgba(240, 229, 200, 0.06);
  color: #f0e5c8;
  cursor: pointer;
  display: grid;
  font-size: 12px;
  font-weight: 900;
  min-height: 42px;
  place-items: center;
}

.fornite-server-list button span {
  color: rgba(240, 229, 200, 0.62);
  font-size: 10px;
}

.fornite-server-list button.active {
  background: linear-gradient(180deg, #6f8e58, #3e5638);
  border-color: rgba(240, 229, 200, 0.32);
}

.fornite-queue {
  border: 1px solid rgba(240, 229, 200, 0.12);
  border-radius: 8px;
  background: rgba(8, 13, 14, 0.28);
  color: rgba(240, 229, 200, 0.8);
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 850;
  padding: 9px 10px;
}

.fornite-queue strong {
  color: #f0e5c8;
  font-size: 13px;
}

.fornite-queue div {
  background: rgba(240, 229, 200, 0.08);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.fornite-queue div span {
  background: linear-gradient(90deg, #8da0ac, #d5b06e);
  display: block;
  height: 100%;
  width: 0%;
}

.fornite-room-tools {
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.fornite-room-tools input,
.fornite-room-tools button {
  border: 1px solid rgba(240, 229, 200, 0.14);
  border-radius: 8px;
  background: rgba(8, 13, 14, 0.3);
  color: #f0e5c8;
  font-weight: 900;
  min-height: 36px;
}

.fornite-room-tools input {
  min-width: 0;
  padding: 0 9px;
  text-transform: uppercase;
}

.fornite-room-tools button {
  cursor: pointer;
  padding: 0 10px;
}

.fornite-chat-box {
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 8px;
}

.fornite-chat-box input,
.fornite-chat-box button {
  border: 1px solid rgba(240, 229, 200, 0.14);
  border-radius: 8px;
  background: rgba(8, 13, 14, 0.3);
  color: #f0e5c8;
  font-weight: 900;
  min-height: 34px;
}

.fornite-chat-box input {
  min-width: 0;
  padding: 0 9px;
}

.fornite-chat-box button {
  cursor: pointer;
  padding: 0 10px;
}

.fornite-board,
.fornite-armory {
  padding: 10px;
}

.fornite-board-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.fornite-board-head strong {
  color: #f0e5c8;
  font-size: 14px;
}

.fornite-board ol,
.fornite-board ul {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fornite-board li {
  align-items: center;
  background: rgba(240, 229, 200, 0.06);
  border-radius: 6px;
  color: rgba(240, 229, 200, 0.86);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: space-between;
  min-height: 28px;
  padding: 5px 7px;
}

.fornite-board li:hover {
  background: rgba(240, 229, 200, 0.1);
}

.fornite-board li.player {
  background: rgba(141, 160, 172, 0.22);
}

.fornite-board li.ally {
  color: #b8d8f2;
}

.fornite-board li.done {
  background: rgba(111, 142, 88, 0.24);
  color: #eef5df;
}

.fornite-friend-list li {
  gap: 8px;
}

.fornite-friend-list li span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fornite-friend-list button {
  border: 1px solid rgba(240, 229, 200, 0.16);
  border-radius: 7px;
  background: rgba(141, 160, 172, 0.18);
  color: #f0e5c8;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
  min-height: 24px;
  padding: 0 8px;
}

.fornite-friend-list button:disabled {
  cursor: default;
  opacity: 0.45;
}

.fornite-weapon-list,
.fornite-skin-list,
.fornite-camo-list,
.fornite-emote-list {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fornite-weapon-list,
.fornite-skin-list,
.fornite-camo-list,
.fornite-emote-list {
  max-height: 176px;
  overflow: auto;
  padding-right: 3px;
}

.fornite-weapon-filters {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 8px;
}

.fornite-weapon-filters button {
  border: 1px solid rgba(240, 229, 200, 0.13);
  border-radius: 7px;
  background: rgba(8, 13, 14, 0.24);
  color: rgba(240, 229, 200, 0.76);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  min-height: 28px;
}

.fornite-weapon-filters button.active {
  background: linear-gradient(180deg, #9f5c4f, #63342f);
  border-color: rgba(240, 229, 200, 0.34);
  color: #fff;
}

.fornite-weapon-list button,
.fornite-skin-list button,
.fornite-camo-list button,
.fornite-emote-list button {
  border: 1px solid rgba(240, 229, 200, 0.14);
  border-radius: 8px;
  background: rgba(240, 229, 200, 0.07);
  color: #f0e5c8;
  cursor: pointer;
  font-weight: 900;
  min-height: 34px;
}

.fornite-camo-list button {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  padding: 6px 8px;
}

.fornite-camo-list button span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.18);
  flex: 0 0 18px;
  height: 18px;
}

.fornite-camo-list button strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fornite-emote-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fornite-emote-list button {
  min-height: 32px;
}

.fornite-weapon-list button.active,
.fornite-skin-list button.active,
.fornite-camo-list button.active,
.fornite-emote-list button.active {
  background: linear-gradient(180deg, #8da0ac, #465864);
  border-color: rgba(240, 229, 200, 0.36);
  color: #fff;
}

.fornite-weapon-list button[data-family="explosive"] {
  border-color: rgba(213, 155, 90, 0.36);
}

.fornite-weapon-list button[data-family="blade"] {
  border-color: rgba(114, 217, 255, 0.32);
}

.fornite-weapon-detail {
  border-top: 1px solid rgba(240, 229, 200, 0.12);
  display: grid;
  gap: 8px;
  margin-top: 9px;
  padding-top: 9px;
}

.fornite-weapon-detail > div:first-child {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.fornite-weapon-detail strong {
  color: #f0e5c8;
  font-size: 15px;
}

.fornite-weapon-detail span {
  color: rgba(240, 229, 200, 0.62);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.fornite-stat-bars {
  display: grid;
  gap: 6px;
}

.fornite-stat-bars label {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 68px minmax(0, 1fr);
}

.fornite-stat-bars i {
  background: rgba(240, 229, 200, 0.1);
  border-radius: 999px;
  display: block;
  height: 7px;
  overflow: hidden;
}

.fornite-stat-bars b {
  background: linear-gradient(90deg, #8da0ac, #d5b06e);
  display: block;
  height: 100%;
}

.fornite-pass-track {
  background: rgba(240, 229, 200, 0.08);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.fornite-pass-track span {
  background: linear-gradient(90deg, #6f8e58, #d5b06e);
  display: block;
  height: 100%;
  width: 0%;
}

.fornite-pass-rewards {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 10px 0 0;
  max-height: 138px;
  overflow: auto;
  padding: 0 3px 0 0;
}

.fornite-pass-rewards li {
  align-items: center;
  background: rgba(240, 229, 200, 0.06);
  border: 1px solid rgba(240, 229, 200, 0.1);
  border-radius: 7px;
  color: rgba(240, 229, 200, 0.74);
  display: flex;
  font-size: 11px;
  font-weight: 800;
  gap: 8px;
  justify-content: space-between;
  min-height: 28px;
  padding: 0 8px;
}

.fornite-pass-rewards li.done {
  background: rgba(111, 142, 88, 0.18);
  border-color: rgba(111, 142, 88, 0.32);
  color: #f0e5c8;
}

.fornite-pass-rewards span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fornite-pass-rewards strong {
  color: #d5b06e;
  flex: 0 0 auto;
  font-size: 10px;
}

.fornite-settings {
  display: grid;
  gap: 8px;
}

.fornite-settings label {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 42px minmax(0, 1fr);
}

.fornite-settings label span {
  color: rgba(240, 229, 200, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.fornite-settings input {
  accent-color: #9f5c4f;
  width: 100%;
}

.fornite-settings .fornite-toggle {
  border: 1px solid rgba(240, 229, 200, 0.14);
  border-radius: 8px;
  background: rgba(240, 229, 200, 0.07);
  color: #f0e5c8;
  cursor: pointer;
  font-weight: 900;
  min-height: 36px;
}

.fornite-wrap {
  background:
    radial-gradient(circle at 48% 46%, rgba(110, 132, 93, 0.2), transparent 42%),
    linear-gradient(180deg, #17212a, #0b1114);
  min-height: 620px;
}

.fornite-wrap canvas {
  min-height: 620px;
  touch-action: none;
}

.fornite-pad,
.fornite-actions {
  touch-action: none;
}

.fornite-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fornite-pad .fire {
  background: linear-gradient(180deg, #8f4a3c, #5b2a24);
  color: #f6ead7;
  font-size: 22px;
}

.fornite-pad button {
  min-height: calc(44px * var(--fornite-touch-scale));
}

.fornite-actions .arcade-choice {
  min-height: calc(44px * var(--fornite-touch-scale));
}

.fornite-actions .arcade-choice.ready {
  background: linear-gradient(180deg, #8da0ac, #465864);
  color: #fff;
}

.fornite-actions .arcade-choice.danger {
  background: linear-gradient(180deg, #9f5c4f, #69352e);
  color: #fff;
}

.fornite-actions .arcade-choice.build {
  background: linear-gradient(180deg, #b9a47f, #786043);
  color: #181511;
}

.fornite-page .arcade-title h1 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.02;
}

@media (max-width: 1080px) {
  .fornite-layout {
    grid-template-columns: 1fr;
  }

  .fornite-layout .arcade-panel {
    order: 2;
  }

  .fornite-layout .arcade-stage {
    order: 1;
  }

  .fornite-wrap,
  .fornite-wrap canvas {
    min-height: min(72vh, 620px);
  }
}

@media (max-width: 620px) {
  .fornite-score-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fornite-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fornite-server-list {
    grid-template-columns: 1fr;
  }

  .fornite-wrap,
  .fornite-wrap canvas {
    min-height: 520px;
  }
}
