:root {
  color-scheme: dark;
  --bg: #0c1012;
  --panel: rgba(18, 21, 20, 0.9);
  --panel-soft: rgba(31, 35, 32, 0.72);
  --gold: #d69b44;
  --gold-soft: rgba(214, 155, 68, 0.34);
  --green: rgba(51, 194, 118, 0.52);
  --red: rgba(212, 68, 61, 0.55);
  --blue: rgba(74, 145, 205, 0.45);
  --mist: rgba(210, 210, 196, 0.16);
  --text: #f7e4b7;
  --muted: #bfae91;
  --line: rgba(214, 155, 68, 0.5);
  --admin-shell-width: 1260px;
  --ornate-bright: rgba(244, 190, 95, 0.92);
  --ornate-mid: rgba(161, 99, 34, 0.72);
  --ornate-dark: rgba(57, 33, 16, 0.92);
  font-family: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 87% 18%, rgba(214, 155, 68, 0.18), transparent 19%),
    radial-gradient(circle at 78% 56%, rgba(214, 155, 68, 0.11), transparent 20%),
    radial-gradient(circle at 24% 70%, rgba(92, 125, 119, 0.18), transparent 24%),
    linear-gradient(110deg, #080b0c, #171b1c 48%, #090b0d);
  color: var(--text);
}

.mist-layer {
  position: fixed;
  inset: -20%;
  z-index: 2;
  pointer-events: none;
  opacity: 0.42;
  mix-blend-mode: screen;
  background:
    radial-gradient(ellipse at 12% 46%, rgba(210, 214, 200, 0.16), transparent 30%),
    radial-gradient(ellipse at 48% 58%, rgba(210, 214, 200, 0.12), transparent 34%),
    radial-gradient(ellipse at 82% 38%, rgba(210, 214, 200, 0.14), transparent 29%),
    repeating-linear-gradient(98deg, transparent 0 46px, rgba(210, 214, 200, 0.035) 46px 92px);
  filter: blur(18px);
  animation: driftMist 42s linear infinite;
}

body.login-screen-visible.login-mist-disabled .mist-layer {
  opacity: 0;
  animation: none;
}

@keyframes driftMist {
  0% {
    transform: translate3d(-7%, 1%, 0) scale(1.05);
  }

  50% {
    transform: translate3d(6%, -2%, 0) scale(1.12);
  }

  100% {
    transform: translate3d(-7%, 1%, 0) scale(1.05);
  }
}

.app-shell {
  position: relative;
  z-index: 3;
  min-height: 100vh;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(#2a2015, #141412);
  color: var(--text);
  cursor: pointer;
}

button {
  padding: 0 16px;
}

button:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(214, 155, 68, 0.14);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(7, 8, 9, 0.72);
  color: var(--text);
  padding: 10px 12px;
}

textarea {
  resize: vertical;
}

.hidden {
  display: none !important;
}

.platform-landing-view {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(20px, 4vw, 54px);
  background:
    linear-gradient(90deg, rgba(7, 6, 5, 0.98), rgba(9, 8, 7, 0.74) 48%, rgba(7, 6, 5, 0.94)),
    radial-gradient(circle at 78% 24%, rgba(126, 71, 179, 0.22), transparent 28rem),
    radial-gradient(circle at 18% 64%, rgba(214, 155, 68, 0.18), transparent 30rem),
    url("assets/hero-guardian.png") center / cover no-repeat;
}

.platform-landing-view::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, black, transparent 86%);
}

.platform-landing-shell {
  width: min(1180px, 100%);
}

.platform-landing-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  border: 1px solid rgba(214, 155, 68, 0.3);
  padding: 10px 14px;
  background:
    linear-gradient(90deg, rgba(214, 155, 68, 0.1), transparent 20%, transparent 80%, rgba(126, 71, 179, 0.08)),
    rgba(5, 5, 4, 0.82);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.62), 0 18px 60px rgba(0, 0, 0, 0.32);
}

.platform-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f3c464;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  font-weight: 900;
  text-decoration: none;
}

.platform-brand-link img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(214, 155, 68, 0.34));
}

.platform-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(214, 155, 68, 0.34);
  padding: 0 14px;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.22);
}

.platform-back-link:hover {
  color: var(--text);
}

.platform-landing-heading {
  max-width: 760px;
  margin-top: clamp(44px, 8vw, 82px);
}

.platform-landing-heading p,
.platform-gate span {
  margin: 0 0 14px;
  color: var(--gold);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.platform-landing-heading h1 {
  margin: 0;
  color: #f7e4b7;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height: 0.94;
  text-shadow: 0 18px 58px rgba(0, 0, 0, 0.72);
}

.platform-landing-heading span {
  display: block;
  max-width: 640px;
  margin-top: 24px;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.08rem;
  line-height: 1.65;
}

.platform-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.platform-status-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(214, 155, 68, 0.24);
  padding: 0 11px;
  color: #f1d8a3;
  font-size: 0.78rem;
  font-weight: 850;
  background: rgba(0, 0, 0, 0.24);
}

.platform-gate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: clamp(34px, 6vw, 64px);
}

.platform-admin-gate-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.platform-gate {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(214, 155, 68, 0.32);
  background:
    linear-gradient(135deg, rgba(214, 155, 68, 0.1), transparent 26%, transparent 74%, rgba(214, 155, 68, 0.08)),
    linear-gradient(180deg, rgba(16, 17, 17, 0.88), rgba(7, 7, 7, 0.92));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.platform-gate::before {
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1px solid rgba(214, 155, 68, 0.13);
  content: "";
}

.platform-gate::after {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(244, 190, 95, 0.22);
  content: "";
  background: linear-gradient(135deg, rgba(214, 155, 68, 0.18), rgba(126, 71, 179, 0.18));
  transform: rotate(45deg);
}

.platform-gate:hover {
  border-color: rgba(244, 190, 95, 0.54);
  transform: translateY(-3px);
}

.platform-gate:focus-within {
  border-color: rgba(244, 190, 95, 0.62);
  box-shadow: 0 0 0 1px rgba(244, 190, 95, 0.18), 0 28px 90px rgba(0, 0, 0, 0.48);
}

.platform-gate h2 {
  max-width: 520px;
  margin: 0;
  color: var(--text);
  font-size: clamp(2.1rem, 3vw, 3.1rem);
  line-height: 0.98;
}

.platform-gate p {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.58;
}

.platform-gate strong {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 30px;
  padding: 0 20px;
  border: 1px solid rgba(214, 155, 68, 0.42);
  color: #f7e4b7;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
}

.event-gate strong {
  border-color: rgba(214, 155, 68, 0.48);
  background: linear-gradient(135deg, #4f130e, #a83424 52%, #2f0e0b);
}

.global-gate {
  border-color: rgba(214, 155, 68, 0.42);
  background:
    linear-gradient(135deg, rgba(214, 155, 68, 0.15), transparent 30%, transparent 72%, rgba(126, 71, 179, 0.08)),
    linear-gradient(180deg, rgba(16, 17, 17, 0.9), rgba(7, 7, 7, 0.94));
}

.hof-gate {
  border-color: rgba(126, 71, 179, 0.38);
}

.hof-gate strong {
  border-color: rgba(126, 71, 179, 0.58);
}

.platform-gate-login {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.platform-gate-login label {
  display: grid;
  gap: 8px;
  color: #d6c8a8;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platform-gate-login input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(214, 155, 68, 0.24);
  border-radius: 6px;
  padding: 0 13px;
  color: var(--text);
  font: 800 0.98rem Inter, ui-sans-serif, system-ui, sans-serif;
  background: rgba(0, 0, 0, 0.36);
  outline: none;
}

.platform-gate-login input:focus {
  border-color: rgba(244, 190, 95, 0.58);
  box-shadow: 0 0 0 3px rgba(214, 155, 68, 0.11);
}

.platform-gate-login button {
  min-height: 46px;
  border: 1px solid rgba(214, 155, 68, 0.38);
  border-radius: 6px;
  padding: 0 14px;
  color: #ffe8ab;
  font: 900 0.88rem Inter, ui-sans-serif, system-ui, sans-serif;
  background: linear-gradient(180deg, rgba(119, 38, 25, 0.92), rgba(90, 25, 17, 0.92));
}

.hof-gate .platform-gate-login button {
  border-color: rgba(144, 77, 210, 0.46);
  background: linear-gradient(180deg, rgba(80, 42, 122, 0.86), rgba(40, 22, 64, 0.9));
}

.platform-gate-login button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.platform-gate-login small {
  min-height: 1.1em;
  color: #f0b2ad;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.78rem;
  line-height: 1.35;
}

.platform-ops-rail {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 22px;
  border: 1px solid rgba(214, 155, 68, 0.28);
  padding: 24px 28px;
  background:
    linear-gradient(90deg, rgba(214, 155, 68, 0.08), transparent 30%, rgba(126, 71, 179, 0.08)),
    rgba(8, 8, 7, 0.78);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
}

.platform-ops-rail::before {
  position: absolute;
  inset: 7px;
  pointer-events: none;
  border: 1px solid rgba(214, 155, 68, 0.12);
  content: "";
}

.platform-ops-rail span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.platform-ops-rail h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
}

.platform-ops-rail p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
}

.platform-ops-rail a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid rgba(214, 155, 68, 0.42);
  padding: 0 18px;
  color: #f7e4b7;
  font-weight: 900;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.28);
}

.login-view {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
  perspective: 900px;
  background: #050707;
}

.login-view.entering-mist {
  pointer-events: none;
}

.login-view::before {
  content: "";
  position: absolute;
  inset: -8%;
  z-index: -2;
  background:
    linear-gradient(rgba(3, 5, 6, 0.14), rgba(3, 5, 6, 0.44)),
    radial-gradient(ellipse at 50% 66%, transparent 0 16%, rgba(0, 0, 0, 0.22) 42%, rgba(0, 0, 0, 0.74) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.56), transparent 36% 64%, rgba(0, 0, 0, 0.56)),
    url("assets/login-background.png") center 54% / cover no-repeat;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: 50% 70%;
  backface-visibility: hidden;
  contain: paint;
  will-change: transform, opacity;
}

.login-view.has-custom-login-background::before {
  background:
    linear-gradient(rgba(3, 5, 6, 0.26), rgba(3, 5, 6, 0.58)),
    radial-gradient(ellipse at 50% 66%, transparent 0 16%, rgba(0, 0, 0, 0.24) 42%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.58), transparent 36% 64%, rgba(0, 0, 0, 0.58)),
    var(--custom-login-bg-image) center / cover no-repeat;
}

.login-view::after {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.52;
  mix-blend-mode: screen;
  background:
    radial-gradient(ellipse at 50% 72%, rgba(230, 232, 218, 0.36), transparent 24%),
    radial-gradient(ellipse at 22% 74%, rgba(210, 214, 200, 0.28), transparent 35%),
    radial-gradient(ellipse at 54% 68%, rgba(210, 214, 200, 0.22), transparent 38%),
    radial-gradient(ellipse at 78% 42%, rgba(210, 214, 200, 0.16), transparent 34%),
    repeating-linear-gradient(96deg, transparent 0 54px, rgba(210, 214, 200, 0.035) 54px 104px);
  filter: blur(17px);
  backface-visibility: hidden;
  contain: paint;
  will-change: transform, opacity;
  animation: driftMist 38s linear infinite;
}

.login-view.login-mist-disabled::after {
  display: none;
}

.login-view.entering-mist::before {
  animation: pathRushForward 2200ms cubic-bezier(0.16, 0.72, 0.12, 1) forwards;
}

.login-view.entering-mist::after {
  animation: mistRushForward 2200ms cubic-bezier(0.16, 0.72, 0.12, 1) forwards;
}

.brand-panel {
  position: relative;
  width: min(820px, 100%);
  border: 1px solid rgba(214, 155, 68, 0.28);
  border-radius: 0;
  padding: clamp(22px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(214, 155, 68, 0.08), transparent 26%, rgba(126, 71, 179, 0.08)),
    rgba(5, 5, 4, 0.54);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.58), 0 28px 90px rgba(0, 0, 0, 0.44);
  backdrop-filter: blur(10px);
  text-align: center;
}

.login-view.entering-mist .brand-panel {
  animation: loginPanelDissolve 1600ms cubic-bezier(0.2, 0, 0.18, 1) forwards;
}

.brand-panel::before {
  content: "";
  position: absolute;
  inset: -22% -30%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 46%, rgba(5, 7, 7, 0.64), rgba(5, 7, 7, 0.34) 38%, transparent 66%),
    radial-gradient(ellipse at 50% 58%, rgba(214, 155, 68, 0.08), transparent 48%);
  filter: blur(28px);
}

.login-view .brand-panel {
  will-change: opacity, transform;
}

.login-brand-mark {
  width: clamp(72px, 10vw, 106px);
  height: clamp(72px, 10vw, 106px);
  object-fit: contain;
  margin: 0 auto 18px;
  filter: drop-shadow(0 0 24px rgba(214, 155, 68, 0.38));
}

@keyframes pathRushForward {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    opacity: 0.68;
    transform: translate3d(0, 24vh, 0) scale(3.15);
  }
}

@keyframes loginPanelDissolve {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }

  100% {
    opacity: 0;
    transform: scale(0.66) translateY(58px);
  }
}

@keyframes mistRushForward {
  0% {
    opacity: 0.52;
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, -8vh, 0) scale(3.6);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mist-layer,
  .login-view::after,
  .login-theme-preview::after,
  .login-view.entering-mist,
  .login-view.entering-mist::before,
  .login-view.entering-mist::after,
  .login-view.entering-mist .brand-panel {
    animation: none;
  }
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 12px;
  font-size: clamp(2.75rem, 7.4vw, 6rem);
  line-height: 0.92;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: break-word;
  text-shadow: 0 0 18px rgba(214, 155, 68, 0.24);
}

.intro {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-size: 1.1rem;
  text-align: center;
}

.login-form {
  width: min(560px, 100%);
  display: grid;
  gap: 10px;
  margin: 28px auto 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  text-align: left;
}

.pin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.form-error {
  min-height: 20px;
  margin: 0;
  color: #ff9c8e;
}

.countdown-panel {
  width: min(460px, 100%);
  margin: 32px auto 0;
  text-align: center;
}

.countdown-digits {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.countdown-digits::before,
.countdown-digits::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.58;
}

.countdown-digits::before {
  top: 10px;
}

.countdown-digits::after {
  bottom: 17px;
}

.countdown-segment {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1px;
  padding: 4px 7px 2px;
  border: 1px solid rgba(214, 155, 68, 0.46);
  border-radius: 5px;
  background:
    radial-gradient(circle at 50% 18%, rgba(214, 155, 68, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(30, 22, 14, 0.88), rgba(4, 5, 5, 0.72));
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.66),
    0 0 18px rgba(214, 155, 68, 0.12);
}

.countdown-segment::before,
.countdown-segment::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 8px;
  border-top: 2px solid rgba(214, 155, 68, 0.72);
  border-bottom: 2px solid rgba(214, 155, 68, 0.38);
  transform: translateY(-50%);
}

.countdown-segment::before {
  left: -12px;
  border-left: 2px solid rgba(214, 155, 68, 0.58);
}

.countdown-segment::after {
  right: -12px;
  border-right: 2px solid rgba(214, 155, 68, 0.58);
}

.countdown-segment:first-child::before,
.countdown-segment:last-child::after {
  display: none;
}

.countdown-segment strong {
  position: relative;
  z-index: 1;
  color: var(--text);
  font-size: clamp(1.25rem, 4.4vw, 1.8rem);
  line-height: 1;
  text-shadow: 0 0 12px rgba(214, 155, 68, 0.35);
}

.countdown-segment small {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: clamp(0.54rem, 1.9vw, 0.66rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.countdown-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.72);
}

.board-view {
  --active-board-width: 1500px;
  padding: 10px 18px 24px;
}

.board-view[data-game-module="standard-bingo"] {
  --active-board-width: 1120px;
}

.board-view.organizer-mode {
  padding-top: 12px;
}

.topbar,
.organizer-panel {
  width: min(var(--active-board-width), 100%);
  margin: 0 auto 10px;
  border: 1px solid rgba(214, 155, 68, 0.28);
  border-radius: 8px;
  background: rgba(9, 10, 10, 0.72);
  padding: 14px;
}

.organizer-mode .topbar,
.organizer-mode .organizer-panel {
  width: min(var(--admin-shell-width), calc(100vw - 36px));
}

.topbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(240px, auto) minmax(260px, 1fr);
  align-items: center;
  gap: 18px;
}

.topbar h2,
.organizer-panel h3 {
  margin-bottom: 0;
}

.topbar-center {
  display: grid;
  justify-items: center;
  min-width: 0;
}

.sync-status {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-self: end;
}

.approval-alert {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  justify-self: center;
  max-width: min(520px, 34vw);
  padding: 5px 7px;
  border: 1px solid rgba(214, 155, 68, 0.34);
  border-radius: 8px;
  background: rgba(80, 47, 13, 0.24);
  color: #f4d7a3;
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
}

.approval-alert.empty {
  color: var(--muted);
  background: rgba(0, 0, 0, 0.18);
}

.approval-alert-summary {
  color: var(--gold);
  font-weight: 700;
}

.approval-alert-badge {
  min-height: 28px;
  padding: 0 8px;
  border-color: rgba(214, 155, 68, 0.42);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 0.75rem;
  white-space: nowrap;
}

.team-codeword-panel {
  display: grid;
  min-width: min(320px, 100%);
  place-items: center;
  gap: 3px;
  padding: 0 12px;
  color: var(--text);
  text-align: center;
}

.team-codeword-panel span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.team-codeword-panel strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(1.35rem, 2.05vw, 1.95rem);
  line-height: 1.05;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.72);
}

.ghost-button {
  background: rgba(0, 0, 0, 0.26);
}

.organizer-panel {
  display: grid;
  gap: 14px;
}

.organizer-mode .organizer-panel {
  background:
    linear-gradient(135deg, rgba(8, 12, 11, 0.88), rgba(4, 6, 6, 0.82)),
    radial-gradient(circle at 98% 14%, rgba(214, 155, 68, 0.08), transparent 24%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
}

.organizer-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.organizer-panel-header h3,
.review-panel-heading h3 {
  margin-bottom: 0;
}

.organizer-panel-header button {
  min-height: 34px;
  padding: 0 12px;
}

.organizer-panel-body {
  display: grid;
  gap: 12px;
}

.admin-console-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.admin-section-nav {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid rgba(214, 155, 68, 0.18);
  border-radius: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.admin-nav-button {
  min-height: 38px;
  justify-content: start;
  border-color: transparent;
  padding: 0 11px;
  color: var(--muted);
  text-align: left;
  background: transparent;
  font-size: 0.88rem;
}

.admin-nav-button:hover,
.admin-nav-button.active {
  border-color: rgba(214, 155, 68, 0.42);
  color: var(--text);
  background: rgba(214, 155, 68, 0.13);
  box-shadow: none;
}

.admin-content-stack {
  min-width: 0;
}

.admin-console-section {
  display: none;
  min-width: 0;
}

.admin-console-section.active {
  display: grid;
  gap: 14px;
}

.admin-section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-width: 0;
  border-bottom: 1px solid rgba(214, 155, 68, 0.16);
  padding-bottom: 12px;
}

.admin-section-heading h3 {
  margin-bottom: 0;
}

.admin-section-heading button {
  min-height: 34px;
  padding: 0 12px;
}

.admin-status-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.admin-stat-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  border: 1px solid rgba(214, 155, 68, 0.2);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(3, 10, 8, 0.54);
}

.admin-stat-card span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-stat-card strong {
  color: #f7e4b7;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  line-height: 1;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, 0.45fr);
  gap: 14px;
}

.team-progress-overview {
  display: grid;
  gap: 8px;
}

.team-progress-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(160px, 1fr) auto minmax(180px, 0.8fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  border-color: rgba(214, 155, 68, 0.2);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.22);
  text-align: left;
}

.team-progress-row.active,
.team-progress-row:hover {
  border-color: rgba(244, 190, 95, 0.55);
  background: rgba(214, 155, 68, 0.11);
  box-shadow: none;
}

.team-progress-row.active {
  box-shadow: inset 3px 0 0 rgba(255, 216, 90, 0.82);
}

.team-progress-name {
  overflow: hidden;
  color: var(--text);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-progress-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.team-progress-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6fa77d, var(--gold));
}

.team-progress-count {
  color: #f4d7a3;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.team-progress-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.team-progress-badges em {
  border: 1px solid rgba(214, 155, 68, 0.2);
  border-radius: 999px;
  padding: 3px 7px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.2);
  font-size: 0.72rem;
  font-style: normal;
  white-space: nowrap;
}

.admin-action-panel {
  align-content: start;
}

.admin-action-panel button {
  justify-self: stretch;
  min-height: 36px;
}

.admin-team-preview {
  gap: 14px;
}

.team-preview-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.team-preview-meta span {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(191, 174, 145, 0.16);
  border-radius: 6px;
  padding: 9px 10px;
  color: #aeb9b0;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.78rem;
}

.team-preview-meta strong {
  color: #ffe6aa;
  font-size: 1.15rem;
}

.team-board-preview {
  overflow: hidden;
  border: 1px solid rgba(214, 155, 68, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.025), transparent 42%),
    radial-gradient(circle at 50% 0%, rgba(244, 215, 163, 0.12), transparent 26%),
    #070c0b;
}

.organizer-settings {
  display: grid;
  grid-template-columns: minmax(520px, 1.15fr) minmax(340px, 0.85fr);
  gap: 14px;
}

.admin-section {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  border: 1px solid rgba(214, 155, 68, 0.22);
  border-radius: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.platform-shell-manager {
  grid-column: 1 / -1;
}

.site-content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.site-content-actions .ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(214, 155, 68, 0.38);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.035);
}

.site-content-status {
  border: 1px solid rgba(214, 155, 68, 0.18);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.18);
}

.site-content-status[data-tone="success"] {
  border-color: rgba(51, 194, 118, 0.36);
  color: #bde9c8;
}

.site-content-status[data-tone="warning"] {
  border-color: rgba(214, 155, 68, 0.42);
  color: #f0d7a5;
}

.site-content-status[data-tone="error"] {
  border-color: rgba(212, 68, 61, 0.48);
  color: #f0b2ad;
}

.site-content-admin-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.site-content-groups {
  display: grid;
  gap: 8px;
  position: sticky;
  top: 12px;
}

.site-content-group-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
  border-color: rgba(214, 155, 68, 0.16);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
}

.site-content-group-button.active,
.site-content-group-button:hover {
  border-color: rgba(214, 155, 68, 0.46);
  color: var(--text);
  background: rgba(214, 155, 68, 0.13);
  box-shadow: none;
}

.site-content-group-button span {
  display: grid;
  gap: 3px;
}

.site-content-group-button span strong {
  color: inherit;
}

.site-content-group-button span small {
  color: #91a098;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.25;
}

.site-content-group-button b {
  color: var(--gold);
  font-size: 0.82rem;
}

.site-content-editor {
  gap: 16px;
}

.site-content-group-hint {
  max-width: 720px;
  margin: 6px 0 0;
  color: #b6c0b8;
}

.site-content-section-preview {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  margin-top: 12px;
  border: 1px solid rgba(214, 155, 68, 0.32);
  border-radius: 6px;
  padding: 0 11px;
  color: #f3d28c;
  text-decoration: none;
  background: rgba(214, 155, 68, 0.07);
}

.site-content-section-preview:hover {
  border-color: rgba(214, 155, 68, 0.52);
  color: #fff3c9;
}

.site-content-context-panel {
  display: grid;
  gap: 10px;
}

.site-content-context-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  border: 1px solid rgba(214, 155, 68, 0.22);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(214, 155, 68, 0.12), transparent 42%),
    linear-gradient(90deg, rgba(112, 64, 186, 0.11), transparent 68%),
    rgba(0, 0, 0, 0.2);
}

.site-content-context-card h4 {
  margin: 4px 0 6px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1;
}

.site-content-context-card p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: #c9bda5;
  line-height: 1.45;
}

.site-content-context-stat {
  min-width: 72px;
  border: 1px solid rgba(214, 155, 68, 0.2);
  border-radius: 7px;
  padding: 9px;
  text-align: center;
  background: rgba(0, 0, 0, 0.22);
}

.site-content-context-stat strong {
  display: block;
  color: var(--gold);
  font-size: 1.35rem;
  line-height: 1;
}

.site-content-context-stat span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-content-flow-map,
.site-content-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.site-content-flow-step,
.site-content-field-chip,
.site-content-field-spot {
  border: 1px solid rgba(191, 174, 145, 0.16);
  border-radius: 999px;
  padding: 5px 8px;
  color: #9ba79f;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
  background: rgba(255, 255, 255, 0.025);
}

.site-content-flow-step.active {
  border-color: rgba(214, 155, 68, 0.5);
  color: #ffe6a5;
  background: rgba(214, 155, 68, 0.12);
}

.site-content-edit-scope {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: #b6c0b8;
  font-size: 0.86rem;
}

.site-content-edit-scope strong {
  color: #f3d28c;
}

.site-content-field-chip {
  color: #d6c8a8;
}

.site-content-field-chip.edited {
  border-color: rgba(51, 194, 118, 0.4);
  color: #bde9c8;
  background: rgba(51, 194, 118, 0.1);
}

.site-content-field-chip.muted {
  color: #7f8b84;
}

.site-content-fields {
  display: grid;
  gap: 12px;
}

.site-content-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid rgba(191, 174, 145, 0.16);
  border-radius: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.18);
}

.site-content-field.is-edited {
  border-color: rgba(214, 155, 68, 0.5);
  background:
    linear-gradient(90deg, rgba(214, 155, 68, 0.12), transparent 34%),
    rgba(0, 0, 0, 0.2);
}

.site-content-field-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-content-field-top strong {
  color: var(--text);
  font-weight: 800;
}

.site-content-field-top b {
  flex: 0 0 auto;
  border: 1px solid rgba(214, 155, 68, 0.24);
  border-radius: 999px;
  padding: 3px 8px;
  color: #f3d28c;
  font-size: 0.7rem;
  line-height: 1;
  background: rgba(214, 155, 68, 0.08);
}

.site-content-field.is-edited .site-content-field-top b {
  border-color: rgba(51, 194, 118, 0.42);
  color: #bde9c8;
  background: rgba(51, 194, 118, 0.1);
}

.site-content-field-spot {
  width: fit-content;
  border-color: rgba(214, 155, 68, 0.28);
  color: #f3d28c;
  background: rgba(214, 155, 68, 0.07);
}

.site-content-field small {
  color: var(--muted);
  font-size: 0.82rem;
}

.site-content-field .site-content-key {
  color: #718078;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
}

.site-content-location {
  color: #d6c8a8;
}

.site-content-field em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.site-content-field textarea {
  min-height: 112px;
  line-height: 1.5;
}

.platform-shell-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.platform-summary-item,
.platform-module-row {
  min-width: 0;
  border: 1px solid rgba(191, 174, 145, 0.14);
  border-radius: 7px;
  padding: 9px;
  background: rgba(0, 0, 0, 0.2);
}

.platform-summary-item {
  display: grid;
  gap: 3px;
}

.platform-summary-item span,
.platform-module-row strong {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.platform-summary-item strong {
  overflow-wrap: anywhere;
}

.platform-shell-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.platform-shell-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.platform-module-list {
  display: grid;
  gap: 8px;
}

.platform-shell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-shell-actions button:last-child {
  border-color: rgba(255, 128, 112, 0.42);
  color: #ffc2ba;
}

.platform-shell-actions button:last-child:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.platform-sync-contract {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.platform-sync-contract div {
  min-width: 0;
  border: 1px solid rgba(89, 158, 195, 0.2);
  border-radius: 7px;
  padding: 9px;
  background: rgba(39, 85, 114, 0.12);
}

.platform-sync-contract span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
}

.platform-sync-contract strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--text);
}

.platform-module-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(180px, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.platform-module-row small {
  color: var(--muted);
}

.platform-module-row.active {
  border-color: rgba(214, 155, 68, 0.46);
  background: rgba(214, 155, 68, 0.08);
}

.organizer-workspace {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.organizer-review-panel {
  gap: 12px;
  min-height: clamp(260px, 28vh, 440px);
}

.review-panel-heading {
  display: grid;
  gap: 2px;
}

.admin-work-card {
  display: grid;
  gap: 10px;
  min-height: 170px;
  border: 1px solid rgba(214, 155, 68, 0.22);
  border-radius: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.18);
  align-content: start;
}

.team-roster-manager h3,
.approver-manager h3,
.event-start-manager h3 {
  margin-top: 2px;
}

.team-roster-list {
  display: grid;
  gap: 10px;
}

.team-roster-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(191, 174, 145, 0.16);
  border-radius: 7px;
  padding: 11px;
  background: rgba(0, 0, 0, 0.2);
}

.team-roster-card.active {
  border-color: rgba(255, 216, 90, 0.58);
  background: rgba(214, 155, 68, 0.08);
}

.team-roster-head,
.team-roster-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.team-roster-head button {
  min-height: auto;
  border: 0;
  padding: 0;
  color: #f6e8c5;
  background: transparent;
  font-weight: 800;
  text-align: left;
}

.team-roster-head span {
  color: #d6c288;
  font-size: 0.8rem;
  font-weight: 800;
}

.team-roster-meter {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.team-roster-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f2c84b, #d69b44);
}

.team-roster-fields {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, 0.82fr) minmax(130px, 0.6fr);
  gap: 8px;
}

.team-roster-fields label {
  display: grid;
  gap: 5px;
  color: #aeb9b0;
  font-size: 0.78rem;
}

.team-roster-actions {
  justify-content: flex-end;
}

.team-add-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.45fr) auto;
  gap: 8px;
  align-items: end;
  border: 1px dashed rgba(191, 174, 145, 0.22);
  border-radius: 7px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.team-add-card div {
  display: grid;
  grid-column: 1 / -1;
  gap: 3px;
}

.team-add-card strong {
  color: #f6e8c5;
}

.team-add-card span {
  color: #aeb9b0;
  font-size: 0.8rem;
}

.team-discord-messages:empty {
  display: none;
}

.team-discord-message {
  margin: 0;
  color: #8ee7ac;
}

.team-discord-message.error {
  color: #ff9f91;
}

.team-roster-discord {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto;
  align-items: end;
  gap: 9px;
  min-width: 0;
  margin-top: 2px;
  border-top: 1px solid rgba(191, 174, 145, 0.14);
  padding-top: 10px;
}

.team-roster-discord > span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.78rem;
}

.team-discord-webhook-heading,
.team-discord-webhook-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.team-discord-webhook-heading {
  grid-column: 1 / -1;
}

.team-discord-webhook-heading strong {
  color: #f6e8c5;
}

.team-discord-webhook-heading span {
  color: var(--muted);
  font-size: 0.78rem;
}

.team-roster-discord[data-configured="true"] .team-discord-webhook-heading span {
  color: #8ee7ac;
}

.team-roster-discord label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.78rem;
}

.team-discord-webhook-actions {
  justify-content: flex-start;
}

.event-start-toggle,
.event-start-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.event-start-toggle {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.event-start-toggle input {
  width: auto;
}

.grid-size-controls {
  display: grid;
  gap: 8px;
}

.grid-size-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(76px, 0.42fr) minmax(76px, 0.42fr) auto;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.grid-size-row span {
  grid-row: 1 / span 2;
}

.grid-size-row input[type="text"] {
  grid-column: 2 / -1;
}

.grid-dimension-field {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.72rem;
}

.grid-size-row input {
  min-width: 0;
  padding: 8px;
}

.grid-size-row button {
  min-height: 36px;
  padding: 0 10px;
}

.pin-row-display {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(214, 155, 68, 0.22);
  border-radius: 6px;
  padding: 7px 8px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--muted);
  font-size: 0.82rem;
}

.pin-row-display strong {
  color: #f4d7a3;
  text-align: right;
}

.approver-active-field,
.approver-add-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.approver-add-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.approver-list {
  display: grid;
  gap: 6px;
}

.approver-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(214, 155, 68, 0.22);
  border-radius: 6px;
  padding: 7px 8px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--muted);
  font-size: 0.82rem;
}

.approver-row strong {
  color: #f4d7a3;
}

.approver-row button {
  min-height: 32px;
  padding: 0 10px;
}

.admin-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.rules-manager {
  grid-column: auto;
}

.rules-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rules-tab {
  min-height: 34px;
  padding: 0 12px;
  border-color: rgba(214, 155, 68, 0.36);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.24);
}

.rules-tab.active {
  border-color: rgba(244, 190, 95, 0.72);
  color: var(--text);
  background: rgba(214, 155, 68, 0.18);
  box-shadow: inset 0 0 0 1px rgba(244, 190, 95, 0.14);
}

.rules-editor {
  min-height: 220px;
  max-height: 420px;
  overflow: auto;
  border: 1px solid rgba(214, 155, 68, 0.36);
  border-radius: 8px;
  padding: 14px;
  color: var(--text);
  background: rgba(3, 5, 5, 0.54);
  line-height: 1.45;
  outline: none;
}

.rules-editor:focus {
  border-color: rgba(244, 215, 163, 0.82);
  box-shadow: 0 0 0 2px rgba(214, 155, 68, 0.16);
}

.rules-editor p,
.rules-viewer p {
  margin: 0 0 0.9em;
}

.rules-editor ul,
.rules-editor ol,
.rules-viewer ul,
.rules-viewer ol {
  margin: 0 0 0.9em 1.25em;
  padding-left: 1.2em;
}

.rules-editor img,
.rules-viewer img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 10px auto;
  border: 1px solid rgba(214, 155, 68, 0.3);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
}

.rules-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.danger-button {
  justify-self: start;
  border-color: rgba(212, 68, 61, 0.72);
  background: linear-gradient(#3b1714, #171111);
  color: #ffd5cd;
}

.danger-button:hover {
  border-color: #ff8f80;
  box-shadow: 0 0 0 2px rgba(212, 68, 61, 0.16);
}

.approval-team-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(214, 155, 68, 0.2);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
}

.approval-team-switcher-label {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.approval-team-chip {
  min-height: 32px;
  padding: 6px 12px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border-radius: 999px;
  color: var(--cream);
}

.approval-team-chip.active {
  border-color: var(--gold);
  background: linear-gradient(180deg, #f7d978, #b98228);
  color: #14100a;
  box-shadow: 0 0 16px rgba(247, 217, 120, 0.18);
}

.approval-team-chip em {
  min-width: 20px;
  min-height: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(212, 68, 61, 0.86);
  color: #fff7e5;
  font-style: normal;
  font-size: 0.74rem;
  line-height: 1.35;
  text-align: center;
}

.approval-team-chip.active em {
  background: rgba(20, 16, 10, 0.72);
}

.approval-queue {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  min-height: 96px;
  max-height: min(56vh, 620px);
  overflow: auto;
  align-content: start;
  color: var(--muted);
}

.queue-card {
  border: 1px solid rgba(214, 155, 68, 0.28);
  border-radius: 6px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.queue-proof-zoom {
  width: 100%;
  height: auto;
  display: grid;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  text-align: center;
}

.queue-proof-zoom:hover {
  box-shadow: none;
}

.queue-proof-zoom img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border: 1px solid rgba(214, 155, 68, 0.28);
  border-radius: 4px;
  margin: 8px 0;
  background: rgba(0, 0, 0, 0.38);
}

.queue-proof-zoom span {
  font-size: 0.82rem;
}

.queue-proof-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}

.queue-proof-slot {
  display: grid;
  gap: 8px;
}

.queue-slot-actions {
  display: grid;
  gap: 6px;
}

.queue-slot-actions textarea {
  min-height: 64px;
}

.queue-proof-list .queue-proof-zoom img {
  max-height: 160px;
}

.queue-reject-reason,
.rejection-reason-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

.queue-reject-reason {
  margin-top: 6px;
}

.upload-log-panel {
  margin-top: 0;
  padding-top: 0;
  display: grid;
  gap: 10px;
}

.upload-log-panel h3 {
  margin-bottom: 0;
}

.upload-log {
  min-height: 96px;
  max-height: min(56vh, 620px);
  overflow: auto;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .organizer-panel {
    grid-template-columns: 1fr;
  }

  .admin-console-layout,
  .admin-overview-grid {
    grid-template-columns: 1fr;
  }

  .admin-section-nav {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-status-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .organizer-settings {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .organizer-workspace {
    grid-template-columns: 1fr;
  }

  .approval-queue,
  .upload-log {
    max-height: 520px;
  }
}

.upload-log-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(214, 155, 68, 0.22);
  border-radius: 6px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.22);
}

.upload-log-entry div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.upload-log-entry strong {
  color: #f4d7a3;
}

.upload-log-entry span {
  overflow-wrap: anywhere;
  font-size: 0.82rem;
}

.upload-log-entry a {
  color: var(--gold);
  white-space: nowrap;
}

.asset-manager {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: auto;
  margin: 0;
}

.asset-manager h3 {
  margin-bottom: 0;
}

.asset-manager-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-width: 0;
  grid-column: 1 / -1;
}

.asset-manager-header button {
  min-height: 34px;
  padding: 0 12px;
  white-space: nowrap;
}

.asset-summary {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.asset-upload-row {
  grid-column: 1 / -1;
}

.selected-asset-preview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 96px;
  padding: 10px;
  border: 1px solid rgba(214, 155, 68, 0.24);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.selected-asset-image {
  display: grid;
  place-items: center;
  width: 88px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(214, 155, 68, 0.28);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
}

.selected-asset-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-missing-label {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  border: 1px dashed rgba(255, 207, 116, 0.4);
  border-radius: 5px;
  color: #ffdca0;
  background: rgba(0, 0, 0, 0.34);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}

.selected-asset-preview strong,
.selected-asset-preview span {
  display: block;
  min-width: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.selected-asset-preview small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.selected-asset-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 3px;
}

.asset-tray-panel {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(214, 155, 68, 0.18);
  padding-top: 12px;
}

.asset-tray {
  min-height: 96px;
  max-height: 390px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
  align-items: stretch;
  color: var(--muted);
}

.asset-tile {
  width: 100%;
  min-height: 118px;
  padding: 7px;
  display: grid;
  grid-template-rows: 78px auto;
  gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
  min-width: 0;
}

.asset-tile.active {
  border-color: rgba(255, 216, 90, 0.82);
  background: linear-gradient(145deg, rgba(68, 54, 18, 0.76), rgba(10, 16, 15, 0.82));
  box-shadow: inset 0 0 0 1px rgba(255, 216, 90, 0.18);
}

.asset-tile img {
  width: 100%;
  height: 78px;
  object-fit: contain;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.2);
}

.asset-tile .image-missing-label,
.selected-asset-image .image-missing-label {
  height: 78px;
}

.asset-tile span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.72rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.asset-empty-state {
  margin: 0;
  padding: 12px;
  border: 1px dashed rgba(214, 155, 68, 0.26);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.18);
}

.misty-board {
  position: relative;
  isolation: isolate;
  width: min(1500px, 100%);
  min-height: 820px;
  margin: 0 auto;
  border: 1px solid rgba(214, 155, 68, 0.42);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1240px);
  justify-content: center;
  padding: 18px 34px 22px;
  background:
    linear-gradient(rgba(9, 12, 13, 0.72), rgba(9, 12, 13, 0.88)),
    radial-gradient(circle at 83% 24%, rgba(214, 155, 68, 0.13), transparent 16%),
    radial-gradient(circle at 78% 62%, rgba(190, 180, 155, 0.19), transparent 21%),
    linear-gradient(112deg, transparent 0 62%, rgba(214, 155, 68, 0.09) 62% 63%, transparent 63%),
    repeating-linear-gradient(96deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 14px);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.65), 0 18px 90px rgba(0, 0, 0, 0.46);
}

.misty-board.has-custom-board-background {
  overflow: hidden;
}

.misty-board.has-custom-board-background::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--custom-board-bg-image) center / cover no-repeat;
  opacity: 0.72;
}

.misty-board.has-custom-board-background > * {
  position: relative;
  z-index: 1;
}

.organizer-mode .misty-board {
  width: min(var(--admin-shell-width), calc(100vw - 36px));
}

.organizer-mode[data-admin-section="overview"] .misty-board {
  min-height: 0;
  max-height: clamp(390px, 36vh, 480px);
  overflow: hidden;
  opacity: 0.88;
}

.organizer-mode[data-admin-section="overview"] .misty-board::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 110px;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(6, 8, 8, 0.94));
}

.organizer-mode[data-admin-section="overview"] .board-content {
  transform: translateY(-10px) scale(0.94);
  transform-origin: top center;
}

.board-content {
  min-width: 0;
}

.page-turn-button {
  position: absolute;
  top: 50%;
  right: -1px;
  z-index: 8;
  min-height: 0;
  width: 44px;
  height: 148px;
  padding: 0;
  border-radius: 8px 0 0 8px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: translateY(-50%);
  background: linear-gradient(90deg, rgba(38, 27, 16, 0.96), rgba(7, 8, 8, 0.94));
  box-shadow: -8px 0 20px rgba(0, 0, 0, 0.3);
}

.board-title {
  text-align: center;
  margin: 8px auto 38px;
  width: min(720px, 100%);
  position: relative;
}

.board-title::before,
.board-title::after {
  content: "";
  position: absolute;
  top: 52%;
  width: 120px;
  border-top: 1px solid rgba(214, 155, 68, 0.62);
  box-shadow: 0 0 8px rgba(214, 155, 68, 0.28);
}

.board-title::before {
  left: 0;
}

.board-title::after {
  right: 0;
}

.board-title h2 {
  margin-bottom: 0;
  font-size: clamp(3rem, 5.4vw, 5.1rem);
  line-height: 1;
  text-shadow: 0 0 14px rgba(214, 155, 68, 0.36), 0 2px 0 #1b1209;
}

.board-title h2.editable {
  cursor: text;
  border-radius: 6px;
}

.board-title h2.editable:focus {
  outline: 2px solid rgba(255, 216, 90, 0.72);
  outline-offset: 5px;
}

.board-title span {
  display: inline-block;
  min-width: 248px;
  border: 1px solid var(--line);
  color: var(--gold);
  font-size: clamp(1.45rem, 3.4vw, 2.35rem);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.34);
}

.lanes {
  display: grid;
  gap: 34px;
}

.standard-bingo-board {
  --standard-bingo-accent: #d69b44;
  --standard-bingo-accent-rgb: 214, 155, 68;
  width: min(1120px, 100%);
  min-height: 820px;
}

.standard-bingo-board .board-title span {
  border-color: rgba(var(--standard-bingo-accent-rgb), 0.62);
  color: var(--standard-bingo-accent);
}

.standard-bingo-board .board-content {
  gap: clamp(22px, 3vw, 40px);
}

.standard-bingo-grid {
  width: min(820px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(var(--standard-bingo-cols, 5), minmax(0, 1fr));
  gap: clamp(10px, 1.35vw, 16px);
}

.standard-bingo-board .standard-bingo-card {
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  min-height: 0;
  border-color: rgba(var(--standard-bingo-accent-rgb), 0.82);
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.38),
    inset 0 0 0 5px rgba(var(--standard-bingo-accent-rgb), 0.24),
    inset 0 0 26px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(var(--standard-bingo-accent-rgb), 0.18),
    0 8px 20px rgba(0, 0, 0, 0.24);
}

.standard-bingo-card h4 {
  font-size: clamp(0.82rem, 1vw, 1.05rem);
}

.standard-bingo-card .item-art {
  width: clamp(34px, 4.2vw, 58px);
  height: clamp(34px, 4.2vw, 58px);
  object-fit: contain;
}

.standard-bingo-empty-cell {
  min-width: 0;
  aspect-ratio: 1;
  border: 1px dashed rgba(var(--standard-bingo-accent-rgb), 0.32);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.018), rgba(0, 0, 0, 0.16));
  opacity: 0.45;
}

.organizer-mode[data-admin-section="cards"] .standard-bingo-empty-cell {
  cursor: pointer;
}

.standard-bingo-empty-cell:hover,
.standard-bingo-empty-cell:focus-visible,
.item-card.builder-position-selected,
.standard-bingo-empty-cell.builder-position-selected {
  opacity: 1;
  outline: 3px solid #ffd85a;
  outline-offset: 5px;
  border-color: rgba(255, 216, 90, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(255, 216, 90, 0.18),
    0 0 0 2px rgba(255, 216, 90, 0.18),
    0 12px 28px rgba(0, 0, 0, 0.32);
}

.second-board {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(430px, 1.18fr) minmax(220px, 0.9fr);
  gap: clamp(14px, 1.8vw, 28px);
  align-items: start;
}

.secondary-grid-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  --grid-card-size: clamp(68px, 6vw, 92px);
  --grid-card-height: clamp(78px, 6.8vw, 104px);
  --grid-card-font: clamp(0.68rem, 0.82vw, 0.86rem);
  --grid-card-image: clamp(30px, 3vw, 48px);
}

.secondary-grid-title {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.38);
  color: var(--gold);
  font-size: clamp(0.82rem, 1.2vw, 1.05rem);
  text-transform: uppercase;
}

.secondary-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), minmax(0, var(--grid-card-size)));
  grid-auto-rows: var(--grid-card-height);
  gap: clamp(8px, 0.85vw, 12px);
  justify-content: center;
}

.secondary-grid-panel[data-grid-size="4"] {
  --grid-card-size: clamp(66px, 5.2vw, 88px);
  --grid-card-height: clamp(76px, 6vw, 100px);
  --grid-card-font: clamp(0.66rem, 0.78vw, 0.84rem);
  --grid-card-image: clamp(28px, 2.8vw, 44px);
}

.secondary-grid-panel[data-grid-size="5"] {
  --grid-card-size: clamp(64px, 5.05vw, 78px);
  --grid-card-height: clamp(76px, 5.9vw, 92px);
  --grid-card-font: clamp(0.62rem, 0.72vw, 0.78rem);
  --grid-card-image: clamp(26px, 2.55vw, 40px);
}

.secondary-grid-panel[data-grid-cols="5"][data-grid-rows="5"] {
  --grid-card-size: clamp(56px, 4.55vw, 70px);
  --grid-card-height: clamp(68px, 5.2vw, 84px);
  --grid-card-font: clamp(0.58rem, 0.66vw, 0.72rem);
  --grid-card-image: clamp(22px, 2.25vw, 34px);
}

.secondary-grid-panel[data-grid-rows="3"] {
  --grid-card-height: clamp(82px, 6.6vw, 106px);
}

.secondary-grid-panel[data-grid-rows="4"] {
  --grid-card-height: clamp(76px, 6vw, 100px);
}

.secondary-grid-panel[data-grid-rows="5"] {
  --grid-card-height: clamp(68px, 5.2vw, 84px);
}

.lane {
  display: grid;
  grid-template-columns: 116px repeat(4, 145px) 300px;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.lane-label {
  position: relative;
  height: 118px;
  border: 1px solid rgba(214, 155, 68, 0.78);
  border-radius: 10px;
  display: grid;
  place-items: center;
  text-align: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 100%, rgba(244, 190, 95, 0.12), transparent 38%),
    linear-gradient(150deg, rgba(21, 22, 20, 0.84), rgba(4, 5, 5, 0.92));
  color: var(--gold);
  font-size: 1.45rem;
  text-transform: uppercase;
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.38),
    inset 0 0 0 5px rgba(161, 99, 34, 0.22),
    0 0 0 1px rgba(244, 190, 95, 0.1),
    0 8px 20px rgba(0, 0, 0, 0.32);
}

.lane-label::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 50%;
  width: 42px;
  height: 42px;
  transform: translateX(-50%);
  border: 1px solid rgba(244, 190, 95, 0.74);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(244, 190, 95, 0.2) 0 3px, transparent 4px),
    linear-gradient(90deg, transparent 47%, rgba(244, 190, 95, 0.48) 48% 52%, transparent 53%),
    linear-gradient(0deg, transparent 46%, rgba(244, 190, 95, 0.42) 47% 53%, transparent 54%),
    radial-gradient(circle, #11100d 0 58%, rgba(57, 33, 16, 0.86) 60% 100%);
  box-shadow:
    0 0 0 5px rgba(0, 0, 0, 0.46),
    0 0 12px rgba(214, 155, 68, 0.3);
  z-index: 2;
}

.lane-label::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(244, 190, 95, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 82%, rgba(244, 190, 95, 0.62) 0 1px, transparent 2px),
    linear-gradient(90deg, transparent 22%, rgba(214, 155, 68, 0.3) 23% 24%, transparent 25% 75%, rgba(214, 155, 68, 0.3) 76% 77%, transparent 78%),
    linear-gradient(0deg, transparent 18%, rgba(214, 155, 68, 0.28) 19% 20%, transparent 21% 79%, rgba(214, 155, 68, 0.28) 80% 81%, transparent 82%);
  pointer-events: none;
  z-index: 0;
}

.lane-label.editable {
  cursor: text;
  outline: none;
}

.lane-label.editable:hover,
.lane-label.editable:focus {
  border-color: rgba(244, 215, 163, 0.88);
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.38),
    inset 0 0 0 5px rgba(161, 99, 34, 0.22),
    0 0 0 2px rgba(214, 155, 68, 0.22),
    0 8px 20px rgba(0, 0, 0, 0.32);
}

.item-card {
  appearance: none;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  position: relative;
  min-height: 160px;
  border: 1px solid rgba(214, 155, 68, 0.7);
  border-radius: 8px;
  padding: 10px 9px;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 6px;
  background:
    radial-gradient(circle at 50% 54%, rgba(214, 155, 68, 0.08), transparent 42%),
    linear-gradient(150deg, rgba(21, 22, 20, 0.92), rgba(9, 10, 10, 0.94));
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.38),
    inset 0 0 0 5px rgba(161, 99, 34, 0.22),
    inset 0 0 26px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(244, 190, 95, 0.1),
    0 8px 20px rgba(0, 0, 0, 0.24);
}

.square-card {
  height: 160px;
  aspect-ratio: 1;
  width: 100%;
  border-color: rgba(244, 190, 95, 0.78);
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.58),
    inset 0 0 0 4px rgba(161, 99, 34, 0.48),
    inset 0 0 0 7px rgba(4, 5, 5, 0.42),
    inset 0 0 24px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(244, 190, 95, 0.16),
    0 8px 20px rgba(0, 0, 0, 0.24);
}

.grid-card {
  width: var(--grid-card-size);
  min-height: 0;
  height: var(--grid-card-height);
  aspect-ratio: auto;
  padding: clamp(3px, 0.55vw, 7px);
  gap: 2px;
  grid-template-rows: minmax(0, 1fr) auto auto;
}

.item-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.square-card::after,
.grid-card::after {
  content: "";
  position: absolute;
  inset: 6px;
  pointer-events: none;
  border-radius: 5px;
  background:
    radial-gradient(circle at 0 0, transparent 0 9px, rgba(244, 190, 95, 0.92) 10px 11px, transparent 12px),
    radial-gradient(circle at 100% 0, transparent 0 9px, rgba(244, 190, 95, 0.92) 10px 11px, transparent 12px),
    radial-gradient(circle at 0 100%, transparent 0 9px, rgba(244, 190, 95, 0.92) 10px 11px, transparent 12px),
    radial-gradient(circle at 100% 100%, transparent 0 9px, rgba(244, 190, 95, 0.92) 10px 11px, transparent 12px),
    linear-gradient(90deg, rgba(244, 190, 95, 0.74), transparent 28px) top left / 42px 1px no-repeat,
    linear-gradient(270deg, rgba(244, 190, 95, 0.74), transparent 28px) top right / 42px 1px no-repeat,
    linear-gradient(90deg, rgba(244, 190, 95, 0.74), transparent 28px) bottom left / 42px 1px no-repeat,
    linear-gradient(270deg, rgba(244, 190, 95, 0.74), transparent 28px) bottom right / 42px 1px no-repeat,
    linear-gradient(180deg, rgba(244, 190, 95, 0.74), transparent 28px) top left / 1px 42px no-repeat,
    linear-gradient(180deg, rgba(244, 190, 95, 0.74), transparent 28px) top right / 1px 42px no-repeat,
    linear-gradient(0deg, rgba(244, 190, 95, 0.74), transparent 28px) bottom left / 1px 42px no-repeat,
    linear-gradient(0deg, rgba(244, 190, 95, 0.74), transparent 28px) bottom right / 1px 42px no-repeat;
  opacity: 0.82;
  z-index: 2;
}

.grid-card::after {
  inset: 4px;
  opacity: 0.58;
  background:
    radial-gradient(circle at 0 0, transparent 0 7px, rgba(244, 190, 95, 0.78) 8px 9px, transparent 10px),
    radial-gradient(circle at 100% 0, transparent 0 7px, rgba(244, 190, 95, 0.78) 8px 9px, transparent 10px),
    radial-gradient(circle at 0 100%, transparent 0 7px, rgba(244, 190, 95, 0.78) 8px 9px, transparent 10px),
    radial-gradient(circle at 100% 100%, transparent 0 7px, rgba(244, 190, 95, 0.78) 8px 9px, transparent 10px);
}

.item-card.open::before {
  opacity: 1;
  background: var(--blue);
}

.item-card.pending::before {
  opacity: 1;
  background: rgba(214, 155, 68, 0.35);
}

.item-card.approved::before {
  opacity: 1;
  background: var(--green);
}

.item-card.invalid::before {
  opacity: 1;
  background: var(--red);
}

.item-card.drop-ready {
  outline: 3px solid rgba(214, 155, 68, 0.85);
  outline-offset: 4px;
}

.item-card.locked {
  filter: grayscale(0.85);
}

.item-card.admin-card.locked {
  filter: none;
}

.item-card.locked::after {
  content: "";
  position: absolute;
  inset: 7px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background:
    radial-gradient(circle at 50% 52%, rgba(214, 214, 198, 0.16), transparent 43%),
    rgba(4, 5, 5, 0.74);
  color: #e8c989;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.84rem;
}

.item-card.admin-card.locked::after {
  display: none;
}

.item-card.admin-card.locked.square-card::after,
.item-card.admin-card.locked.grid-card::after {
  display: block;
  content: "";
  position: absolute;
  inset: 6px;
  pointer-events: none;
  border-radius: 5px;
  background:
    radial-gradient(circle at 0 0, transparent 0 9px, rgba(244, 190, 95, 0.92) 10px 11px, transparent 12px),
    radial-gradient(circle at 100% 0, transparent 0 9px, rgba(244, 190, 95, 0.92) 10px 11px, transparent 12px),
    radial-gradient(circle at 0 100%, transparent 0 9px, rgba(244, 190, 95, 0.92) 10px 11px, transparent 12px),
    radial-gradient(circle at 100% 100%, transparent 0 9px, rgba(244, 190, 95, 0.92) 10px 11px, transparent 12px),
    linear-gradient(90deg, rgba(244, 190, 95, 0.74), transparent 28px) top left / 42px 1px no-repeat,
    linear-gradient(270deg, rgba(244, 190, 95, 0.74), transparent 28px) top right / 42px 1px no-repeat,
    linear-gradient(90deg, rgba(244, 190, 95, 0.74), transparent 28px) bottom left / 42px 1px no-repeat,
    linear-gradient(270deg, rgba(244, 190, 95, 0.74), transparent 28px) bottom right / 42px 1px no-repeat,
    linear-gradient(180deg, rgba(244, 190, 95, 0.74), transparent 28px) top left / 1px 42px no-repeat,
    linear-gradient(180deg, rgba(244, 190, 95, 0.74), transparent 28px) top right / 1px 42px no-repeat,
    linear-gradient(0deg, rgba(244, 190, 95, 0.74), transparent 28px) bottom left / 1px 42px no-repeat,
    linear-gradient(0deg, rgba(244, 190, 95, 0.74), transparent 28px) bottom right / 1px 42px no-repeat;
  opacity: 0.82;
  z-index: 2;
}

.item-card.admin-card.locked.grid-card::after {
  inset: 4px;
  opacity: 0.58;
}

.item-card.team-locked {
  filter: none;
}

.item-card.team-locked > * {
  opacity: 0;
}

.item-card.team-locked::before {
  opacity: 1;
  background:
    radial-gradient(ellipse at 42% 56%, rgba(192, 197, 184, 0.16), transparent 48%),
    linear-gradient(rgba(8, 10, 10, 0.18), rgba(6, 8, 8, 0.34)),
    radial-gradient(ellipse at 50% 62%, transparent 0 20%, rgba(0, 0, 0, 0.16) 54%, rgba(0, 0, 0, 0.38) 100%);
}

.item-card.team-locked::after {
  inset: -46%;
  background:
    radial-gradient(ellipse at 18% 58%, rgba(236, 238, 224, 0.42), transparent 18%),
    radial-gradient(ellipse at 44% 48%, rgba(210, 214, 200, 0.34), transparent 24%),
    radial-gradient(ellipse at 68% 68%, rgba(232, 234, 218, 0.38), transparent 22%),
    radial-gradient(ellipse at 86% 38%, rgba(210, 214, 200, 0.24), transparent 20%),
    repeating-linear-gradient(101deg, transparent 0 22px, rgba(210, 214, 200, 0.055) 22px 46px);
  filter: blur(14px);
  opacity: 0.98;
  mix-blend-mode: screen;
  animation: driftLockedMist 16s ease-in-out infinite;
}

@keyframes driftLockedMist {
  0% {
    transform: translate3d(-18%, 7%, 0) scale(1.06) rotate(0deg);
  }

  50% {
    transform: translate3d(16%, -6%, 0) scale(1.18) rotate(3deg);
  }

  100% {
    transform: translate3d(-18%, 7%, 0) scale(1.06) rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .item-card.team-locked::after {
    animation: none;
  }
}

.item-card > * {
  position: relative;
  z-index: 1;
}

.state-pill {
  display: none;
  justify-self: start;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 2px 7px;
  color: #fff7de;
  background: rgba(0, 0, 0, 0.38);
  font-size: 0.7rem;
}

.item-card h4 {
  margin-bottom: 0;
  line-height: 1.1;
  font-size: 1rem;
  text-align: center;
  align-self: center;
}

.item-art {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: 78%;
  height: 48px;
  object-fit: contain;
  display: block;
  background: transparent;
  mix-blend-mode: normal;
  opacity: 1;
  pointer-events: none;
}

.item-art.image-missing-label {
  width: 78%;
  height: 48px;
  pointer-events: none;
}

.square-card .item-art {
  width: 54%;
  height: 56px;
}

.square-card.has-item-image h4 {
  align-self: start;
  text-shadow: 0 2px 6px #000;
}

.item-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}

.proof-preview {
  min-height: 24px;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  text-align: center;
}

.proof-preview.has-proof {
  justify-self: center;
  width: fit-content;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: #f4d7a3;
  cursor: pointer;
  font-size: 0.68rem;
  line-height: 1;
}

.item-card.grid-card h4 {
  align-self: center;
  max-width: 100%;
  max-height: 3.2em;
  margin: 0;
  font-size: var(--grid-card-font);
  line-height: 1.05;
  overflow: hidden;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.item-card.grid-card .item-art {
  align-self: end;
  width: 86%;
  height: var(--grid-card-image);
  max-height: calc(var(--grid-card-height) * 0.42);
  margin: 0 auto;
}

.item-card.grid-card .proof-preview {
  min-height: 0;
  font-size: clamp(0.48rem, 0.58vw, 0.58rem);
}

.item-card.grid-card .proof-preview:not(.has-proof) {
  display: none;
}

.item-card.grid-card .proof-preview.has-proof {
  padding: 3px 5px;
  white-space: normal;
}

.item-card.grid-card.locked::after {
  font-size: clamp(0.48rem, 0.62vw, 0.62rem);
  letter-spacing: 0.05em;
}

.rule-banner {
  position: relative;
  width: min(760px, 100%);
  margin: 34px auto 0;
  border: 1px solid rgba(214, 155, 68, 0.72);
  border-radius: 8px;
  padding: 15px 22px;
  color: var(--gold);
  text-align: center;
  white-space: pre-line;
  background:
    radial-gradient(circle at 8% 50%, rgba(214, 155, 68, 0.18), transparent 9%),
    radial-gradient(circle at 92% 50%, rgba(214, 155, 68, 0.14), transparent 10%),
    linear-gradient(150deg, rgba(18, 19, 17, 0.82), rgba(5, 6, 6, 0.9));
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.36),
    inset 0 0 0 5px rgba(161, 99, 34, 0.18),
    0 8px 24px rgba(0, 0, 0, 0.3);
}

.rule-banner::before,
.rule-banner::after {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 9px;
  width: 42px;
  pointer-events: none;
  border-top: 1px solid rgba(244, 190, 95, 0.45);
  border-bottom: 1px solid rgba(244, 190, 95, 0.45);
}

.rule-banner::before {
  left: 10px;
  border-left: 1px solid rgba(244, 190, 95, 0.45);
  border-radius: 6px 0 0 6px;
}

.rule-banner::after {
  right: 10px;
  border-right: 1px solid rgba(244, 190, 95, 0.45);
  border-radius: 0 6px 6px 0;
}

.rule-banner.editable {
  cursor: text;
  outline: none;
}

.rule-banner.editable:hover,
.rule-banner.editable:focus {
  border-color: rgba(244, 215, 163, 0.82);
  box-shadow: 0 0 0 2px rgba(214, 155, 68, 0.16);
}

.line-wheel {
  position: relative;
  width: 300px;
  aspect-ratio: 1;
  border: 2px solid rgba(214, 155, 68, 0.86);
  border-radius: 50%;
  overflow: hidden;
  background:
    conic-gradient(from -90deg, rgba(214, 155, 68, 0.58) 0deg 1deg, transparent 1deg 72deg, rgba(214, 155, 68, 0.58) 72deg 73deg, transparent 73deg 144deg, rgba(214, 155, 68, 0.58) 144deg 145deg, transparent 145deg 216deg, rgba(214, 155, 68, 0.58) 216deg 217deg, transparent 217deg 288deg, rgba(214, 155, 68, 0.58) 288deg 289deg, transparent 289deg 360deg),
    radial-gradient(circle at 50% 50%, rgba(214, 155, 68, 0.12), rgba(7, 8, 8, 0.78) 62%);
  box-shadow:
    inset 0 0 0 4px rgba(0, 0, 0, 0.44),
    inset 0 0 0 6px rgba(161, 99, 34, 0.42),
    inset 0 0 28px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(244, 190, 95, 0.16),
    0 0 22px rgba(214, 155, 68, 0.14);
}

.line-wheel::before,
.line-wheel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.line-wheel::before {
  inset: 9px;
  z-index: 5;
  border: 1px solid rgba(244, 190, 95, 0.5);
  box-shadow:
    inset 0 0 0 1px rgba(57, 33, 16, 0.84),
    0 0 0 1px rgba(57, 33, 16, 0.84);
}

.line-wheel::after {
  z-index: 6;
  background:
    radial-gradient(circle at 50% 2.4%, rgba(244, 190, 95, 0.94) 0 1.7px, rgba(214, 155, 68, 0.24) 3px, transparent 5px),
    radial-gradient(circle at 83.7% 16.3%, rgba(244, 190, 95, 0.94) 0 1.7px, rgba(214, 155, 68, 0.24) 3px, transparent 5px),
    radial-gradient(circle at 97.6% 50%, rgba(244, 190, 95, 0.94) 0 1.7px, rgba(214, 155, 68, 0.24) 3px, transparent 5px),
    radial-gradient(circle at 83.7% 83.7%, rgba(244, 190, 95, 0.94) 0 1.7px, rgba(214, 155, 68, 0.24) 3px, transparent 5px),
    radial-gradient(circle at 50% 97.6%, rgba(244, 190, 95, 0.94) 0 1.7px, rgba(214, 155, 68, 0.24) 3px, transparent 5px),
    radial-gradient(circle at 16.3% 83.7%, rgba(244, 190, 95, 0.94) 0 1.7px, rgba(214, 155, 68, 0.24) 3px, transparent 5px),
    radial-gradient(circle at 2.4% 50%, rgba(244, 190, 95, 0.94) 0 1.7px, rgba(214, 155, 68, 0.24) 3px, transparent 5px),
    radial-gradient(circle at 16.3% 16.3%, rgba(244, 190, 95, 0.94) 0 1.7px, rgba(214, 155, 68, 0.24) 3px, transparent 5px);
  opacity: 0.86;
}

.line-wheel-hub {
  position: absolute;
  z-index: 8;
  inset: calc(50% - 14px);
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: #1d1308;
  box-shadow:
    inset 0 0 0 3px rgba(0, 0, 0, 0.42),
    0 0 14px rgba(214, 155, 68, 0.5);
}

.wheel-card {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.wheel-card .state-pill,
.wheel-card .proof-preview {
  display: none;
}

.wheel-card.multi-proof-card .proof-preview.has-proof {
  position: absolute;
  left: var(--label-x, 50%);
  top: calc(var(--image-label-y, var(--label-y, 50%)) + 11%);
  display: grid;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  z-index: 4;
}

.wheel-card h4 {
  position: absolute;
  left: var(--label-x, 50%);
  top: var(--label-y, 50%);
  width: 78px;
  transform: translate(-50%, -50%);
  font-size: 0.6rem;
  min-height: 0;
  line-height: 1.05;
  pointer-events: none;
  text-shadow: 0 2px 6px #000;
}

.wheel-card .item-art {
  position: absolute;
  left: var(--art-x, var(--label-x, 50%));
  top: var(--art-y, calc(var(--label-y, 50%) - 4%));
  width: 14%;
  height: 10%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  display: block;
  background: transparent;
  mix-blend-mode: normal;
  opacity: 1;
}

.wheel-card.has-item-image h4 {
  top: var(--image-label-y, calc(var(--label-y, 50%) + 5%));
}

.wheel-card.locked::after {
  content: "";
  inset: 0;
  border-radius: 0;
  background: rgba(4, 5, 5, 0.54);
  clip-path: inherit;
}

.wheel-card.team-locked::before {
  clip-path: none;
}

.wheel-card.team-locked::after {
  inset: -50%;
  clip-path: none;
  background:
    radial-gradient(ellipse at 18% 58%, rgba(236, 238, 224, 0.42), transparent 18%),
    radial-gradient(ellipse at 44% 48%, rgba(210, 214, 200, 0.34), transparent 24%),
    radial-gradient(ellipse at 68% 68%, rgba(232, 234, 218, 0.38), transparent 22%),
    radial-gradient(ellipse at 86% 38%, rgba(210, 214, 200, 0.24), transparent 20%),
    repeating-linear-gradient(101deg, transparent 0 22px, rgba(210, 214, 200, 0.055) 22px 46px);
  filter: blur(14px);
  opacity: 0.98;
  mix-blend-mode: screen;
  animation: driftLockedMist 16s ease-in-out infinite;
}

.wheel-card-1 {
  --label-x: 56%;
  --label-y: 25%;
  --art-x: 56%;
  --art-y: 20%;
  --image-label-y: 31%;
  clip-path: polygon(50% 50%, 36.2% 1.9%, 91.5% 22%);
  clip-path: path("M 150 150 L 108.7 5.8 A 150 150 0 0 1 274.4 66.1 Z");
}

.wheel-card-2 {
  --label-x: 78%;
  --label-y: 53%;
  --art-y: 48%;
  --image-label-y: 59%;
  clip-path: polygon(50% 50%, 91.5% 22%, 89.4% 80.8%);
  clip-path: path("M 150 150 L 274.4 66.1 A 150 150 0 0 1 268.2 242.3 Z");
}

.wheel-card-3 {
  --label-x: 56%;
  --label-y: 76%;
  --art-y: 70%;
  --image-label-y: 82%;
  clip-path: polygon(50% 50%, 89.4% 80.8%, 32.9% 97%);
  clip-path: path("M 150 150 L 268.2 242.3 A 150 150 0 0 1 98.7 291 Z");
}

.wheel-card-4 {
  --label-x: 25%;
  --label-y: 64%;
  --art-y: 59%;
  --image-label-y: 70%;
  clip-path: polygon(50% 50%, 32.9% 97%, 0% 48.3%);
  clip-path: path("M 150 150 L 98.7 291 A 150 150 0 0 1 0.1 144.8 Z");
}

.wheel-card-5 {
  --label-x: 30%;
  --label-y: 34%;
  --art-y: 29%;
  --image-label-y: 40%;
  clip-path: polygon(50% 50%, 0% 48.3%, 36.2% 1.9%);
  clip-path: path("M 150 150 L 0.1 144.8 A 150 150 0 0 1 108.7 5.8 Z");
}

.item-dialog {
  width: min(520px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: rgba(10, 11, 11, 0.96);
  color: var(--text);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.7);
}

.item-dialog::backdrop {
  background: rgba(0, 0, 0, 0.68);
}

.dialog-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 24px;
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  min-height: 34px;
  padding: 0;
}

.dialog-card h3 {
  margin-bottom: 0;
  font-size: 1.8rem;
}

.dialog-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.dialog-info {
  border-left: 3px solid var(--gold);
  padding: 10px 12px;
  color: #f2d79f;
  background: rgba(214, 155, 68, 0.08);
  border-radius: 4px;
  white-space: pre-wrap;
}

.rules-dialog {
  width: min(760px, calc(100vw - 32px));
}

.rules-dialog-card {
  max-height: calc(100vh - 48px);
}

.rules-viewer {
  max-height: calc(100vh - 190px);
  overflow: auto;
  border: 1px solid rgba(214, 155, 68, 0.28);
  border-radius: 8px;
  padding: 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  line-height: 1.48;
}

.rules-viewer h1,
.rules-viewer h2,
.rules-viewer h3,
.rules-viewer h4 {
  margin: 0 0 0.55em;
  color: #f4d7a3;
}

.rules-viewer blockquote {
  margin: 0 0 0.9em;
  border-left: 3px solid var(--gold);
  padding: 8px 12px;
  color: #f2d79f;
  background: rgba(214, 155, 68, 0.08);
}

.dialog-preview {
  min-height: 120px;
  border: 1px solid rgba(214, 155, 68, 0.28);
  border-radius: 6px;
  display: grid;
  place-items: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.dialog-preview img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.multi-proof-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.osrs-battleship-board {
  width: min(1180px, 100%);
  min-height: 820px;
}

.osrs-battleship-board .board-content {
  gap: clamp(24px, 3vw, 40px);
}

.osrs-battleship-board .battleship-module-view {
  width: min(920px, 94%);
  min-height: 520px;
  margin: 0 auto;
  overflow: auto;
}

.osrs-battleship-board .second-board.battleship-module-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.battleship-empty-view {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(71, 155, 164, 0.5);
  border-radius: 8px;
  background: #071012;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.72);
}

.battleship-empty-grid {
  position: absolute;
  inset: 22px;
  z-index: -1;
  opacity: 0.42;
  border: 1px solid rgba(214, 155, 68, 0.32);
  background:
    linear-gradient(rgba(82, 169, 178, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 169, 178, 0.2) 1px, transparent 1px),
    radial-gradient(circle at 50% 45%, rgba(28, 93, 103, 0.34), transparent 58%);
  background-size: 5% 5%, 5% 5%, 100% 100%;
}

.battleship-empty-copy {
  width: min(440px, calc(100% - 56px));
  display: grid;
  gap: 10px;
  justify-items: center;
  padding: 24px;
  color: #c5d7d4;
  text-align: center;
  background: rgba(4, 12, 13, 0.82);
  border-top: 1px solid rgba(214, 155, 68, 0.42);
  border-bottom: 1px solid rgba(214, 155, 68, 0.42);
}

.battleship-empty-copy span {
  color: #d69b44;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.battleship-board-grid {
  --battleship-cell-size: 34px;
  display: grid;
  grid-template-columns: 28px repeat(20, var(--battleship-cell-size));
  grid-auto-rows: var(--battleship-cell-size);
  gap: 2px;
  width: max-content;
  margin: auto;
  padding: 12px;
  border: 1px solid rgba(214, 155, 68, 0.34);
  border-radius: 8px;
  background: rgba(3, 10, 11, 0.92);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

.battleship-coordinate-corner,
.battleship-coordinate-label {
  display: grid;
  place-items: center;
  color: #9eb9b8;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 750;
}

.battleship-board-cell {
  display: grid;
  place-items: center;
  width: var(--battleship-cell-size);
  height: var(--battleship-cell-size);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(145, 163, 155, 0.58);
  border-radius: 3px;
  padding: 2px;
  color: #f4efe4;
  background: #111918;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.55rem;
  font-weight: 800;
  line-height: 1;
}

button.battleship-board-cell:hover,
.battleship-board-cell.selected {
  z-index: 2;
  border-color: #ffe183;
  outline: 2px solid rgba(255, 225, 131, 0.68);
  outline-offset: 1px;
}

.battleship-board-cell.swap-source {
  border-color: #f39b63;
  outline: 2px solid rgba(243, 155, 99, 0.72);
  outline-offset: 1px;
}

.battleship-board-cell[data-difficulty="common"] { border-color: #91a39b; background: #18211f; }
.battleship-board-cell[data-difficulty="uncommon"] { border-color: #77ae74; background: #15251a; }
.battleship-board-cell[data-difficulty="rare"] { border-color: #668fca; background: #152032; }
.battleship-board-cell[data-difficulty="epic"] { border-color: #9a72c7; background: #251a31; }
.battleship-board-cell[data-difficulty="legendary"] { border-color: #d09348; background: #302114; }
.battleship-board-cell[data-difficulty="empty"] { border-style: dashed; opacity: 0.48; }

.battleship-board-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.osrs-battleship-board .battleship-module-view:has(.battleship-player-shell) {
  width: min(1260px, 98%);
  min-height: 720px;
  overflow: visible;
}

.osrs-battleship-board:has(.battleship-player-shell) {
  width: min(1500px, 100%);
}

.osrs-battleship-board:has(.battleship-player-shell) .board-content {
  gap: 18px;
}

.osrs-battleship-board:has(.battleship-player-shell) .board-title h2 {
  font-size: 3.4rem;
}

.battleship-player-shell {
  display: grid;
  gap: 12px;
  width: 100%;
  min-width: 0;
  color: #dbe5e2;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.battleship-player-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  width: min(620px, 100%);
  justify-self: center;
  border: 1px solid rgba(71, 155, 164, 0.34);
  border-radius: 8px;
  padding: 4px;
  background: rgba(3, 10, 11, 0.78);
}

.battleship-player-tab {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  color: #9fb5b3;
  background: transparent;
  font-weight: 750;
}

.battleship-player-tab:hover,
.battleship-player-tab.active {
  color: #101917;
  background: #e1b75d;
}

.battleship-player-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.battleship-attack-action {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.battleship-attack-action label {
  display: grid;
  gap: 0.3rem;
  color: #9db1ae;
  font-size: 0.7rem;
}

.battleship-attack-action select,
.battleship-attack-action button {
  min-height: 2.5rem;
  border: 1px solid rgba(224, 190, 108, 0.34);
  border-radius: 0.65rem;
  background: rgba(12, 28, 28, 0.88);
  color: #f2e4bd;
  padding: 0.55rem 0.7rem;
}

.battleship-attack-action button {
  cursor: pointer;
  font-weight: 750;
}

.battleship-attack-action button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.battleship-attack-action small {
  color: #718783;
}

.battleship-attack-notice {
  margin: 0.7rem 0 0;
  color: #b8d4c8;
  font-size: 0.72rem;
}

.battleship-attack-notice.error {
  color: #ffaaa0;
}

.battleship-player-summary > div {
  display: grid;
  gap: 2px;
  border-left: 3px solid rgba(71, 155, 164, 0.62);
  padding: 7px 10px;
  background: rgba(5, 15, 15, 0.68);
}

.battleship-player-summary span {
  color: #8fa5a3;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.battleship-player-summary strong {
  color: #f2e4bd;
  font-size: 0.95rem;
}

.battleship-player-summary .battleship-credit-summary {
  border-left-color: #62e6a7;
  background: rgba(14, 72, 52, 0.34);
}

.battleship-credit-summary small {
  color: #9ef0c5;
  font-size: 0.64rem;
}

.battleship-credit-guide {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 0.66fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(98, 230, 167, 0.48);
  border-radius: 8px;
  padding: 10px 12px;
  background: linear-gradient(110deg, rgba(14, 72, 52, 0.42), rgba(5, 20, 18, 0.88));
}

.battleship-credit-guide-copy {
  display: grid;
  gap: 3px;
}

.battleship-credit-guide-copy strong {
  color: #d5ffe8;
  font-size: 0.92rem;
}

.battleship-credit-guide-copy p {
  margin: 0;
  color: #9dbbb0;
  font-size: 0.7rem;
  line-height: 1.4;
}

.battleship-credit-groups {
  display: flex;
  gap: 6px;
  max-height: 92px;
  overflow: auto;
  flex-wrap: wrap;
  align-content: center;
  padding: 2px;
}

.battleship-credit-groups > span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-width: 0;
  max-width: 260px;
  border: 1px solid rgba(98, 230, 167, 0.36);
  border-radius: 999px;
  padding: 5px 8px;
  overflow: hidden;
  color: #c5ddd4;
  background: rgba(5, 31, 25, 0.84);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.battleship-credit-groups > span b {
  flex: 0 0 auto;
  color: #7df0b5;
}

.battleship-credit-groups > span.empty {
  border-style: dashed;
  color: #8ca49b;
}

.battleship-player-summary .battleship-trade-up-summary button {
  min-height: 28px;
  margin-top: 4px;
  border-color: rgba(225, 183, 93, 0.42);
  padding: 4px 7px;
  font-size: 0.68rem;
}

.battleship-player-summary .battleship-winner-banner {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px solid rgba(225, 183, 93, 0.55);
  border-radius: 0.55rem;
  padding: 0.55rem 0.7rem;
  background: rgba(86, 62, 19, 0.38);
  color: #ffe5a3;
  text-align: center;
}

.battleship-player-board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 12px;
  min-width: 0;
}

.battleship-player-board-workspace {
  display: grid;
  grid-template-rows: auto minmax(620px, 72vh);
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(71, 155, 164, 0.4);
  border-radius: 8px;
  background: #061011;
}

.battleship-viewport-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid rgba(71, 155, 164, 0.28);
  padding: 9px 10px;
  background: #0b1717;
}

.battleship-viewport-toolbar > div:first-child {
  display: grid;
  gap: 2px;
}

.battleship-viewport-toolbar span {
  color: #92a8a5;
  font-size: 0.74rem;
}

.battleship-zoom-controls {
  display: grid;
  grid-template-columns: 36px 58px 36px auto;
  gap: 5px;
  align-items: center;
}

.battleship-zoom-controls button {
  min-width: 36px;
  min-height: 34px;
  padding: 0 9px;
  border-radius: 6px;
}

.battleship-zoom-controls > span {
  color: #f2e4bd;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.battleship-player-viewport {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  background:
    linear-gradient(rgba(71, 155, 164, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71, 155, 164, 0.06) 1px, transparent 1px),
    #071112;
  background-size: 32px 32px;
}

.battleship-player-viewport.panning {
  cursor: grabbing;
}

.battleship-player-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: max-content;
  height: max-content;
  transform-origin: 0 0;
  will-change: transform;
}

.battleship-player-grid {
  --battleship-cell-size: 48px;
  margin: 0;
  padding: 14px;
  box-shadow: none;
}

.battleship-player-grid .battleship-board-cell {
  position: relative;
  font-size: 0.66rem;
}

.battleship-player-grid .battleship-board-cell[data-status="miss"] {
  border-color: #7fa8bd;
  background: #162b34;
}

.battleship-player-grid .battleship-board-cell[data-status="miss"]::after {
  content: "";
  position: absolute;
  width: 82%;
  height: 82%;
  background: url("assets/battleship/miss-rune.png") center / contain no-repeat;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.72));
}

.battleship-player-grid .battleship-board-cell[data-status="hit"] {
  border-color: #e66d60;
  background: #4a211e;
}

.battleship-player-grid .battleship-board-cell[data-status="hit"]::after {
  content: "";
  position: absolute;
  width: 84%;
  height: 84%;
  background: url("assets/battleship/hit-rune.png") center / contain no-repeat;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.72));
}

.battleship-player-grid .battleship-board-cell[data-status="sunk"] {
  border-color: #ffd56d;
  background: #5b3b16;
  box-shadow: inset 0 0 0 2px rgba(255, 213, 109, 0.35);
}

.battleship-player-grid .battleship-board-cell[data-status="sunk"]::after {
  content: "X";
  position: absolute;
  color: #fff0b6;
  font-size: 1.2rem;
  font-weight: 900;
  text-shadow: 0 1px 3px #000;
}

.battleship-player-grid .battleship-board-cell[data-status="own-ship"] {
  border-color: #67e8f9;
  background:
    repeating-linear-gradient(135deg, rgba(207, 250, 254, 0.16) 0 5px, transparent 5px 10px),
    #075d6b;
  box-shadow:
    inset 0 0 0 2px rgba(207, 250, 254, 0.58),
    inset 0 0 14px rgba(34, 211, 238, 0.35),
    0 0 8px rgba(34, 211, 238, 0.38);
}

.battleship-player-grid .battleship-board-cell.attackable[data-status="fog"] {
  z-index: 2;
  border-color: #62e6a7;
  box-shadow:
    inset 0 0 0 2px rgba(98, 230, 167, 0.62),
    inset 0 0 14px rgba(35, 168, 112, 0.3),
    0 0 8px rgba(98, 230, 167, 0.46);
}

.battleship-player-grid .battleship-board-cell.attackable[data-status="fog"]::before {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a7f3d0;
  box-shadow: 0 0 6px #62e6a7;
  pointer-events: none;
}

.battleship-player-grid .battleship-board-cell.player-selected {
  z-index: 3;
  outline: 3px solid #fff0b6;
  outline-offset: 2px;
}

.battleship-player-inspector {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
  border: 1px solid rgba(214, 155, 68, 0.34);
  border-radius: 8px;
  padding: 12px;
  background: #091312;
}

.battleship-minimap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(71, 155, 164, 0.5);
  border-radius: 6px;
  padding: 6px;
  background: #040b0c;
  cursor: crosshair;
}

.battleship-minimap-grid {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  grid-template-rows: repeat(20, 1fr);
  gap: 1px;
  width: 100%;
  height: 100%;
}

.battleship-minimap-grid i {
  min-width: 0;
  min-height: 0;
  background: #26312e;
}

.battleship-minimap-grid i[data-difficulty="uncommon"] { background: #41683f; }
.battleship-minimap-grid i[data-difficulty="rare"] { background: #3f5f8d; }
.battleship-minimap-grid i[data-difficulty="epic"] { background: #674985; }
.battleship-minimap-grid i[data-difficulty="legendary"] { background: #936331; }
.battleship-minimap-grid i[data-status="miss"] { background: #85b3c8; }
.battleship-minimap-grid i[data-status="hit"] { background: #d65549; }
.battleship-minimap-grid i[data-status="sunk"] { background: #f0c14f; }

.battleship-minimap-frame {
  position: absolute;
  border: 2px solid #fff0b6;
  background: rgba(255, 240, 182, 0.08);
  pointer-events: none;
}

.battleship-public-status-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.battleship-public-status-legend span {
  display: flex;
  gap: 6px;
  align-items: center;
  color: #9fb1ae;
  font-size: 0.72rem;
}

.battleship-public-status-legend i {
  width: 11px;
  height: 11px;
  border: 2px solid #60706d;
  border-radius: 2px;
  background: #1a2422;
}

.battleship-public-status-legend span[data-status="attackable"] i { border-color: #62e6a7; background: #164b37; box-shadow: 0 0 5px rgba(98, 230, 167, 0.5); }
.battleship-public-status-legend span[data-status="miss"] i,
.battleship-public-status-legend span[data-status="hit"] i {
  width: 20px;
  height: 20px;
  border: 0;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
.battleship-public-status-legend span[data-status="miss"] i { background-image: url("assets/battleship/miss-rune.png"); }
.battleship-public-status-legend span[data-status="hit"] i { background-image: url("assets/battleship/hit-rune.png"); }
.battleship-public-status-legend span[data-status="sunk"] i { border-color: #ffd56d; background: #5b3b16; }

.battleship-selected-cell-panel {
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(214, 155, 68, 0.2);
  padding-top: 12px;
}

.battleship-cell-empty-state {
  display: grid;
  gap: 5px;
  min-height: 110px;
  place-content: center;
  color: #90a4a1;
  text-align: center;
}

.battleship-cell-empty-state strong {
  color: #f2e4bd;
}

.battleship-selected-cell-heading {
  display: grid;
  gap: 8px;
}

.battleship-selected-cell-heading h3 {
  margin: 2px 0 0;
  color: #f2e4bd;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  letter-spacing: 0;
}

.battleship-cell-status {
  width: fit-content;
  border: 1px solid #60706d;
  border-radius: 999px;
  padding: 5px 8px;
  color: #b8c6c3;
  font-size: 0.7rem;
}

.battleship-cell-status[data-status="miss"] { border-color: #85b3c8; color: #b7d8e8; }
.battleship-cell-status[data-status="hit"] { border-color: #e66d60; color: #ffd0ca; }
.battleship-cell-status[data-status="sunk"] { border-color: #ffd56d; color: #fff0b6; }

.battleship-selected-cell-image {
  display: grid;
  place-items: center;
  height: 120px;
  border: 1px solid rgba(214, 155, 68, 0.22);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.26);
}

.battleship-selected-cell-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.battleship-cell-facts {
  display: grid;
  gap: 6px;
  margin: 0;
}

.battleship-cell-facts > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 8px;
  border-bottom: 1px solid rgba(191, 174, 145, 0.12);
  padding-bottom: 6px;
}

.battleship-cell-facts dt {
  color: #829693;
  font-size: 0.72rem;
}

.battleship-cell-facts dd {
  margin: 0;
  color: #dce5e2;
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.battleship-player-challenges,
.battleship-player-fleet-view {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(71, 155, 164, 0.36);
  border-radius: 8px;
  padding: 16px;
  background: #071112;
}

.battleship-submission-panel {
  display: grid;
  gap: 0.75rem;
  border: 1px solid rgba(225, 183, 93, 0.34);
  border-radius: 0.75rem;
  padding: 0.9rem;
  background: rgba(8, 22, 22, 0.88);
}

.battleship-submission-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.battleship-submission-heading > div {
  display: grid;
  gap: 0.2rem;
}

.battleship-submission-heading strong {
  color: #f2e4bd;
  font-size: 1rem;
}

.battleship-submission-heading > span,
.battleship-submission-empty {
  color: #829895;
  font-size: 0.75rem;
}

.battleship-submission-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(150px, 1fr) minmax(180px, 1fr) auto;
  gap: 0.65rem;
  align-items: end;
}

.battleship-submission-form label {
  display: grid;
  gap: 0.35rem;
  color: #9db1ae;
  font-size: 0.72rem;
}

.battleship-submission-form select,
.battleship-submission-form input,
.battleship-submission-form button {
  min-height: 2.55rem;
  min-width: 0;
  border: 1px solid rgba(71, 155, 164, 0.36);
  border-radius: 0.55rem;
  padding: 0.5rem 0.65rem;
  background: rgba(5, 15, 15, 0.78);
  color: #f2e4bd;
}

.battleship-submission-form button {
  border-color: rgba(225, 183, 93, 0.52);
  cursor: pointer;
  font-weight: 750;
}

.battleship-submission-form button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.battleship-submission-notice {
  margin: 0;
  color: #b8d4c8;
  font-size: 0.78rem;
}

.battleship-submission-notice.error {
  color: #ffaaa0;
}

.battleship-submission-log {
  border-top: 1px solid rgba(225, 183, 93, 0.18);
  padding-top: 0.55rem;
}

.battleship-submission-log summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  color: #e8d5a5;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.battleship-submission-log summary::-webkit-details-marker { display: none; }

.battleship-submission-log summary::before {
  content: "+";
  display: inline-grid;
  flex: 0 0 1.35rem;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border: 1px solid rgba(225, 183, 93, 0.45);
  border-radius: 50%;
  color: #e1b75d;
  line-height: 1;
}

.battleship-submission-log[open] summary::before { content: "−"; }

.battleship-submission-log summary span { margin-right: auto; }

.battleship-submission-log summary small {
  color: #829895;
  font-size: 0.72rem;
  font-weight: 500;
}

.battleship-submission-history {
  display: grid;
  gap: 0.4rem;
  max-height: min(22rem, 50vh);
  margin-top: 0.65rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.25rem;
}

.battleship-submission-history article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 0.75rem;
  border-left: 3px solid #789491;
  padding: 0.55rem 0.7rem;
  background: rgba(255, 255, 255, 0.035);
}

.battleship-submission-history article[data-status="approved"] { border-left-color: #5bb97b; }
.battleship-submission-history article[data-status="rejected"] { border-left-color: #d6655a; }

.battleship-submission-history article > div {
  display: grid;
  gap: 0.15rem;
}

.battleship-submission-history strong { color: #e8d5a5; }
.battleship-submission-history span,
.battleship-submission-history small { color: #8ea5a2; font-size: 0.72rem; }
.battleship-submission-history small { grid-column: 1 / -1; color: #efaaa2; }

.battleship-submission-review {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(260px, 0.58fr);
  gap: 0.7rem;
}

.battleship-submission-review > div:first-child {
  display: grid;
  grid-column: 1 / -1;
  gap: 0.2rem;
}

.battleship-submission-review > div:first-child span {
  color: var(--muted);
  font-size: 0.8rem;
}

.battleship-submission-review .queue-proof-zoom img {
  max-height: 180px;
}

.battleship-submission-review .queue-proof-zoom {
  grid-column: 1;
  grid-row: 2 / span 3;
}

.battleship-submission-review > .proof-slot-status,
.battleship-submission-review > .queue-reject-reason,
.battleship-submission-review > .dialog-actions,
.battleship-submission-review > .proof-slot-reason {
  grid-column: 2;
}

@media (max-width: 900px) {
  .battleship-submission-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .battleship-submission-form {
    grid-template-columns: 1fr;
  }

  .battleship-submission-heading {
    align-items: start;
  }

  .battleship-submission-history article {
    grid-template-columns: 1fr;
  }

  .battleship-submission-review {
    grid-template-columns: 1fr;
  }

  .battleship-submission-review > div:first-child,
  .battleship-submission-review .queue-proof-zoom,
  .battleship-submission-review > .proof-slot-status,
  .battleship-submission-review > .queue-reject-reason,
  .battleship-submission-review > .dialog-actions,
  .battleship-submission-review > .proof-slot-reason {
    grid-column: 1;
    grid-row: auto;
  }
}

.battleship-challenge-browser-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 16px;
  align-items: end;
}

.battleship-challenge-browser-header > div,
.battleship-challenge-browser-header label {
  display: grid;
  gap: 5px;
}

.battleship-challenge-browser-header span,
.battleship-challenge-browser-header label {
  color: #93a7a4;
  font-size: 0.76rem;
}

.battleship-challenge-browser-header input {
  min-height: 42px;
  border: 1px solid rgba(71, 155, 164, 0.4);
  border-radius: 7px;
  padding: 9px 11px;
  color: #e4ebe8;
  background: #0a1717;
}

.battleship-player-challenge-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.battleship-player-challenge {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(145, 163, 155, 0.24);
  border-left: 3px solid #91a39b;
  border-radius: 6px;
  padding: 8px;
  background: #0b1514;
}

.battleship-player-challenge[data-difficulty="uncommon"] { border-left-color: #77ae74; }
.battleship-player-challenge[data-difficulty="rare"] { border-left-color: #668fca; }
.battleship-player-challenge[data-difficulty="epic"] { border-left-color: #9a72c7; }
.battleship-player-challenge[data-difficulty="legendary"] { border-left-color: #d09348; }
.battleship-player-challenge[data-difficulty="bonus"] { border-left-color: #e6c85d; }

.battleship-player-challenge.is-exhausted {
  border-color: rgba(120, 135, 131, 0.16);
  border-left-color: #53615e;
  background: rgba(10, 18, 17, 0.72);
  filter: saturate(0.45);
  opacity: 0.58;
}

.battleship-player-challenge-image {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.26);
}

.battleship-player-challenge-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.battleship-player-challenge > div:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.battleship-player-challenge strong,
.battleship-player-challenge span,
.battleship-player-challenge small {
  overflow-wrap: anywhere;
}

.battleship-player-challenge strong { color: #f2e4bd; }
.battleship-player-challenge span { color: #9db1ae; font-size: 0.72rem; }
.battleship-player-challenge small { color: #718783; font-size: 0.68rem; }

.battleship-player-challenge .battleship-challenge-availability {
  width: fit-content;
  margin-top: 2px;
  border: 1px solid rgba(98, 230, 167, 0.32);
  border-radius: 999px;
  padding: 2px 6px;
  color: #8fe0b5;
  font-weight: 700;
}

.battleship-player-challenge .battleship-challenge-availability[data-state="exhausted"] {
  border-color: rgba(150, 160, 157, 0.28);
  color: #b1bcba;
}

.battleship-fleet-copy {
  max-width: 680px;
}

.battleship-fleet-copy h3 {
  margin: 5px 0;
  color: #f2e4bd;
}

.battleship-fleet-copy p {
  margin: 0;
  color: #9eb0ad;
}

.battleship-own-fleet-board {
  max-width: 100%;
  overflow: auto;
  padding: 8px;
}

.battleship-own-fleet-board .battleship-board-grid {
  margin: 0 auto;
}

@media (max-width: 980px) {
  .battleship-player-board-layout {
    grid-template-columns: 1fr;
  }

  .battleship-player-inspector {
    grid-template-columns: minmax(180px, 0.35fr) minmax(0, 0.65fr);
  }

  .battleship-minimap {
    grid-row: 1 / span 2;
  }

  .battleship-selected-cell-panel {
    border-top: 0;
    border-left: 1px solid rgba(214, 155, 68, 0.2);
    padding-top: 0;
    padding-left: 12px;
  }
}

@media (max-width: 640px) {
  .osrs-battleship-board .battleship-module-view:has(.battleship-player-shell) {
    width: 100%;
  }

  .battleship-player-tabs,
  .battleship-player-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .battleship-credit-guide {
    grid-template-columns: 1fr;
  }

  .battleship-player-tab:last-child {
    grid-column: 1 / -1;
  }

  .battleship-player-board-workspace {
    grid-template-rows: auto minmax(440px, 64vh);
  }

  .battleship-viewport-toolbar,
  .battleship-challenge-browser-header,
  .battleship-player-inspector,
  .battleship-player-challenge-results {
    grid-template-columns: 1fr;
  }

  .battleship-viewport-toolbar {
    display: grid;
  }

  .battleship-zoom-controls {
    grid-template-columns: 36px 56px 36px minmax(90px, 1fr);
  }

  .battleship-minimap {
    grid-row: auto;
    width: min(240px, 100%);
    justify-self: center;
  }

  .battleship-selected-cell-panel {
    border-top: 1px solid rgba(214, 155, 68, 0.2);
    border-left: 0;
    padding-top: 12px;
    padding-left: 0;
  }

  .battleship-player-challenges,
  .battleship-player-fleet-view {
    padding: 10px;
  }
}

.battleship-empty-copy strong {
  color: #f7e4b7;
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
}

.battleship-empty-copy p {
  margin: 0;
  color: #aabbb8;
}

.battleship-admin-preview {
  padding: 18px;
}

.battleship-admin-preview .battleship-empty-view {
  min-height: 340px;
}

.battleship-fleet-workspace,
.battleship-organizer-fleet {
  display: grid;
  gap: 14px;
  min-width: 0;
  border: 1px solid rgba(71, 155, 164, 0.36);
  border-radius: 8px;
  padding: 16px;
  background: #071112;
}

.battleship-fleet-loading {
  display: grid;
  gap: 6px;
  min-height: 360px;
  place-content: center;
  border: 1px solid rgba(71, 155, 164, 0.36);
  border-radius: 8px;
  color: #9eb0ad;
  text-align: center;
  background: #071112;
}

.battleship-fleet-loading strong {
  color: #f2e4bd;
  font-size: 1.2rem;
}

.battleship-fleet-loading p {
  max-width: 440px;
  margin: 0;
}

.battleship-fleet-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
}

.battleship-fleet-header h3 {
  margin: 4px 0;
  color: #f2e4bd;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.battleship-fleet-header p {
  margin: 0;
  color: #9eb0ad;
}

.battleship-fleet-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(82px, 1fr));
  border: 1px solid rgba(71, 155, 164, 0.28);
  border-radius: 7px;
  background: #091716;
}

.battleship-fleet-totals span {
  display: grid;
  gap: 2px;
  min-height: 58px;
  align-content: center;
  border-right: 1px solid rgba(71, 155, 164, 0.2);
  padding: 8px 12px;
  color: #8fa6a2;
  font-size: 0.7rem;
  text-align: center;
}

.battleship-fleet-totals span:last-child {
  border-right: 0;
}

.battleship-fleet-totals strong {
  color: #f0d998;
  font-size: 1rem;
}

.battleship-fleet-notice {
  border: 1px solid rgba(71, 155, 164, 0.42);
  border-radius: 6px;
  padding: 9px 11px;
  color: #b9d3ce;
  background: rgba(31, 89, 87, 0.18);
}

.battleship-fleet-notice.error {
  border-color: rgba(209, 91, 78, 0.55);
  color: #ffd0ca;
  background: rgba(117, 40, 34, 0.22);
}

.battleship-fleet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: start;
}

.battleship-fleet-board-panel,
.battleship-fleet-dock,
.battleship-organizer-fleet-actions {
  min-width: 0;
  border: 1px solid rgba(214, 155, 68, 0.28);
  border-radius: 7px;
  background: #081211;
}

.battleship-fleet-board-panel {
  overflow: hidden;
}

.battleship-fleet-board-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
}

.battleship-fleet-board-heading > div {
  display: grid;
  gap: 2px;
}

.battleship-fleet-board-heading strong {
  color: #f2e4bd;
}

.battleship-fleet-board-heading span {
  color: #849995;
  font-size: 0.7rem;
}

.battleship-fleet-lock-state {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  border: 1px solid #5a706b;
  border-radius: 999px;
  padding: 4px 9px;
  color: #b2c3bf;
  font-size: 0.7rem;
  white-space: nowrap;
}

.battleship-fleet-lock-state[data-locked="true"] {
  border-color: #d8aa50;
  color: #ffe7a6;
  background: rgba(133, 91, 27, 0.22);
}

.battleship-fleet-board {
  width: 100%;
  overflow: auto;
  border-top: 1px solid rgba(214, 155, 68, 0.18);
  padding: 12px;
  background: #040b0b;
}

.battleship-fleet-board-workspace {
  display: grid;
  grid-template-rows: auto minmax(520px, 70vh);
  min-width: 0;
  overflow: hidden;
  border-top: 1px solid rgba(214, 155, 68, 0.18);
}

.battleship-fleet-placement-stage {
  width: max-content;
  overflow: visible;
  border-top: 0;
}

.battleship-fleet-board .battleship-board-grid {
  margin: 0 auto;
}

.battleship-fleet-board .battleship-board-cell {
  cursor: crosshair;
}

.battleship-fleet-board .battleship-board-cell.fleet-drop-target {
  z-index: 5;
  outline: 3px solid #a5f3fc;
  outline-offset: 2px;
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.72);
}

.battleship-fleet-dock {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.battleship-fleet-selected {
  display: grid;
  gap: 5px;
  border-bottom: 1px solid rgba(214, 155, 68, 0.2);
  padding-bottom: 12px;
}

.battleship-fleet-selected > strong {
  color: #f2e4bd;
  font-size: 1.05rem;
}

.battleship-fleet-selected > span:not(.eyebrow) {
  color: #93a7a4;
  font-size: 0.72rem;
}

.battleship-fleet-actions,
.battleship-fleet-submit-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.battleship-fleet-actions button,
.battleship-fleet-submit-actions button,
.battleship-organizer-fleet-actions button {
  min-height: 40px;
}

.battleship-fleet-submit-actions .primary {
  border-color: #d3a440;
  color: #fff0bd;
  background: rgba(121, 81, 20, 0.26);
}

.battleship-ship-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.battleship-ship-card {
  display: grid;
  gap: 7px;
  align-content: space-between;
  min-width: 0;
  min-height: 68px;
  border-color: rgba(110, 137, 130, 0.36);
  padding: 8px;
  color: #bccbc7;
  text-align: left;
  background: #0a1716;
}

.battleship-ship-card.active {
  border-color: #e0b95f;
  box-shadow: inset 0 0 0 1px rgba(224, 185, 95, 0.32);
}

.battleship-ship-card.placed {
  border-color: rgba(103, 232, 249, 0.7);
  background: #0a3034;
}

.battleship-ship-card > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.battleship-ship-card strong,
.battleship-ship-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.battleship-ship-card strong {
  color: #f0e2bc;
  font-size: 0.75rem;
}

.battleship-ship-card small {
  color: #78908b;
  font-size: 0.62rem;
}

.battleship-ship-card > i {
  display: flex;
  gap: 2px;
  font-style: normal;
}

.battleship-ship-card > i b {
  width: 14px;
  height: 6px;
  border: 1px solid #67e8f9;
  background: #087485;
  box-shadow: 0 0 4px rgba(34, 211, 238, 0.42);
}

.battleship-fleet-rules,
.battleship-fleet-validation {
  display: grid;
  gap: 5px;
  border-top: 1px solid rgba(214, 155, 68, 0.2);
  padding-top: 11px;
}

.battleship-fleet-rules strong,
.battleship-fleet-validation strong {
  color: #e6d39e;
  font-size: 0.75rem;
}

.battleship-fleet-rules span,
.battleship-fleet-validation span {
  color: #829793;
  font-size: 0.68rem;
  line-height: 1.4;
}

.battleship-fleet-validation span {
  color: #d6a69f;
}

.battleship-organizer-team-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.battleship-organizer-fleet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 14px;
  align-items: start;
}

.battleship-organizer-fleet-actions {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.battleship-organizer-fleet-actions p {
  margin: 0;
  color: #91a5a1;
  font-size: 0.74rem;
  line-height: 1.5;
}

.battleship-organizer-fleet-actions .danger {
  border-color: #91483e;
  color: #ffd0ca;
  background: rgba(110, 35, 29, 0.2);
}

.battleship-match-manager {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
}

.battleship-match-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.battleship-match-heading h3 {
  margin: 3px 0 0;
}

.battleship-match-phase {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid #657b76;
  border-radius: 999px;
  padding: 4px 10px;
  color: #b8c8c4;
  font-size: 0.72rem;
}

.battleship-match-phase[data-phase="fleet_placement"] {
  border-color: #c5963f;
  color: #f4d98e;
}

.battleship-match-phase[data-phase="active"] {
  border-color: #5eaa75;
  color: #a9dfb8;
  background: rgba(43, 112, 65, 0.16);
}

.battleship-match-phase[data-phase="paused"] {
  border-color: #d99c4a;
  color: #ffd99c;
  background: rgba(142, 84, 26, 0.18);
}

.admin-field-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.78rem;
}

.battleship-match-team-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.battleship-match-team-chip {
  min-height: 38px;
  border-radius: 999px;
  padding: 7px 14px;
}

.battleship-match-team-chip.active {
  border-color: #d5aa4d;
  color: #1a170f;
  background: #edcf76;
}

.battleship-match-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.battleship-match-fields label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
}

.battleship-match-fields input {
  width: 100%;
  min-width: 0;
}

.battleship-match-checks {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid rgba(71, 155, 164, 0.25);
  border-radius: 7px;
  background: #091413;
}

.battleship-match-checks span {
  display: grid;
  gap: 5px;
  min-height: 70px;
  align-content: center;
  border-right: 1px solid rgba(71, 155, 164, 0.18);
  padding: 9px;
  color: #869b97;
  font-size: 0.68rem;
  text-align: center;
}

.battleship-match-checks span:last-child {
  border-right: 0;
}

.battleship-match-checks i {
  width: fit-content;
  min-width: 25px;
  justify-self: center;
  border: 1px solid #667773;
  border-radius: 999px;
  padding: 2px 5px;
  color: #91a29e;
  font-size: 0.58rem;
  font-style: normal;
}

.battleship-match-checks span[data-ready="true"] {
  color: #b9d6c1;
}

.battleship-match-checks span[data-ready="true"] i {
  border-color: #5eaa75;
  color: #a9dfb8;
}

.battleship-match-message {
  min-height: 20px;
  color: #a8bbb7;
  font-size: 0.76rem;
}

.battleship-match-message.error {
  color: #f0a39a;
}

.battleship-match-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.battleship-match-controls {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(225, 183, 93, 0.3);
  border-radius: 8px;
  padding: 12px;
  background: rgba(86, 62, 19, 0.12);
}

.battleship-match-controls h4 {
  margin: 2px 0 0;
  color: var(--cream);
}

.battleship-match-score {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.battleship-match-score span {
  display: grid;
  gap: 3px;
  border-left: 3px solid rgba(71, 155, 164, 0.65);
  padding: 8px 10px;
  background: rgba(5, 15, 15, 0.52);
  color: var(--muted);
  font-size: 0.74rem;
}

.battleship-match-score strong {
  color: var(--cream);
}

.battleship-match-control-actions {
  display: flex;
  gap: 8px;
  align-items: end;
  flex-wrap: wrap;
}

.battleship-match-control-actions label {
  display: grid;
  gap: 5px;
  min-width: 220px;
  color: var(--muted);
  font-size: 0.75rem;
}

.battleship-match-control-actions select {
  min-height: 38px;
}

.battleship-wom-manager {
  display: grid;
  gap: 0.8rem;
  border-top: 1px solid rgba(71, 155, 164, 0.24);
  padding-top: 1rem;
}

.battleship-admin-dashboard {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  border-color: rgba(225, 183, 93, 0.3);
}

.battleship-admin-dashboard-heading,
.battleship-admin-dashboard-heading > div {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: space-between;
}

.battleship-admin-dashboard-heading > div:first-child {
  display: grid;
  gap: 3px;
  justify-content: start;
}

.battleship-admin-dashboard-heading h3,
.battleship-admin-dashboard-heading p,
.battleship-admin-dashboard h5 {
  margin: 0;
}

#battleshipAdminContent {
  display: grid;
  gap: 16px;
}

.battleship-admin-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(71, 155, 164, 0.25);
  border-radius: 8px;
  overflow: hidden;
}

.battleship-admin-kpis span {
  display: grid;
  gap: 3px;
  border-right: 1px solid rgba(71, 155, 164, 0.2);
  padding: 10px;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

.battleship-admin-kpis span:last-child { border-right: 0; }
.battleship-admin-kpis strong { color: var(--cream); font-size: 1rem; }

.battleship-admin-dashboard section {
  display: grid;
  gap: 8px;
}

.battleship-admin-fleets,
.battleship-admin-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.battleship-admin-fleet-card,
.battleship-admin-columns > section {
  border: 1px solid rgba(71, 155, 164, 0.2);
  border-radius: 8px;
  padding: 10px;
  background: rgba(5, 15, 15, 0.48);
}

.battleship-admin-fleet-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.battleship-admin-fleet-card span,
.battleship-admin-wom span { color: var(--muted); font-size: 0.72rem; }

.battleship-admin-ship-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  max-height: 250px;
  overflow: auto;
}

.battleship-admin-ship-list > span {
  display: grid;
  gap: 2px;
  border-left: 3px solid #5f7772;
  padding: 6px 7px;
  background: rgba(255, 255, 255, 0.035);
}

.battleship-admin-ship-list > span[data-sunk="true"] { border-left-color: #d56b5e; }
.battleship-admin-ship-list strong { color: var(--cream); }

.battleship-admin-list,
.battleship-admin-wom,
.battleship-admin-history {
  display: grid;
  gap: 5px;
  max-height: 360px;
  overflow: auto;
}

.battleship-admin-list article {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 7px;
  background: rgba(255, 255, 255, 0.035);
}

.battleship-admin-list article > div,
.battleship-admin-wom span { display: grid; gap: 2px; }
.battleship-admin-list span { color: var(--muted); font-size: 0.72rem; }

.battleship-admin-history span small {
  display: block;
  margin-top: 2px;
  color: #82a9a2;
  font-size: 0.66rem;
}

.battleship-admin-wom {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.battleship-admin-wom span {
  padding: 9px;
  background: rgba(255, 255, 255, 0.035);
}

.battleship-admin-wom strong { color: var(--cream); }

.battleship-admin-history article {
  display: grid;
  grid-template-columns: 150px minmax(130px, 0.7fr) minmax(180px, 1.5fr) minmax(120px, 0.8fr) minmax(90px, 0.6fr);
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.72rem;
}

.battleship-admin-history time,
.battleship-admin-history small { color: var(--muted); }
.battleship-admin-history em { color: #d8c28a; font-style: normal; }
.battleship-admin-error { color: #ffaaa0; }

.battleship-wom-heading,
.battleship-wom-heading > div {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.battleship-wom-heading > div {
  display: grid;
  gap: 0.15rem;
  justify-content: start;
}

.battleship-wom-heading h4,
.battleship-wom-columns h5,
.battleship-wom-manager > section h5 {
  margin: 0;
  color: var(--cream);
}

.battleship-wom-message {
  min-height: 1.2rem;
  color: #a8bbb7;
  font-size: 0.78rem;
}

.battleship-wom-message.error {
  color: #f0a39a;
}

.battleship-wom-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.battleship-wom-metrics span {
  border: 1px solid rgba(71, 155, 164, 0.32);
  border-radius: 999px;
  padding: 0.25rem 0.5rem;
  background: rgba(71, 155, 164, 0.08);
  color: #aac4c0;
  font-size: 0.68rem;
}

.battleship-wom-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 0.75rem;
}

.battleship-wom-columns > section,
.battleship-wom-manager > section {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  border: 1px solid rgba(71, 155, 164, 0.2);
  border-radius: 0.6rem;
  padding: 0.7rem;
  background: rgba(5, 15, 15, 0.42);
}

.battleship-wom-participants,
.battleship-wom-runs,
.battleship-wom-checkpoints {
  display: grid;
  gap: 0.4rem;
}

.battleship-wom-participant {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.7fr);
  gap: 0.6rem;
  align-items: center;
  border-left: 3px solid rgba(225, 183, 93, 0.5);
  padding: 0.45rem 0.55rem;
  background: rgba(255, 255, 255, 0.035);
}

.battleship-wom-participant > span,
.battleship-wom-runs article > div,
.battleship-wom-checkpoints article > div {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.battleship-wom-participant strong,
.battleship-wom-runs strong,
.battleship-wom-checkpoints strong {
  color: var(--cream);
}

.battleship-wom-participant small,
.battleship-wom-runs span,
.battleship-wom-runs small,
.battleship-wom-checkpoints span,
.battleship-wom-checkpoints small {
  color: var(--muted);
  font-size: 0.7rem;
}

.battleship-wom-participant select {
  min-width: 0;
}

.battleship-wom-runs article {
  border-left: 3px solid #789491;
  padding: 0.45rem 0.55rem;
  background: rgba(255, 255, 255, 0.035);
}

.battleship-wom-runs article[data-status="success"] { border-left-color: #5bb97b; }
.battleship-wom-runs article[data-status="failed"] { border-left-color: #d6655a; }

.battleship-wom-checkpoints {
  max-height: 420px;
  overflow: auto;
}

.battleship-wom-checkpoints article {
  display: grid;
  grid-template-columns: minmax(190px, 1.5fr) minmax(100px, 0.7fr) minmax(145px, 0.8fr) 90px 90px;
  gap: 0.55rem;
  align-items: center;
  padding: 0.45rem 0.55rem;
  background: rgba(255, 255, 255, 0.03);
}

#battleshipMatchStart {
  border-color: #6ea77d;
  color: #cde8d4;
  background: rgba(41, 105, 59, 0.18);
}

/* Battleship team play redesign: board-first shell with transparent fleet planning overlays. */
.osrs-battleship-board .battleship-module-view:has(.battleship-player-shell) {
  width: 100%;
  min-height: calc(100vh - 136px);
}

.osrs-battleship-board:has(.battleship-player-shell) {
  width: calc(100vw - 32px);
  max-width: none;
  margin-left: calc(50% - 50vw + 16px);
  margin-right: calc(50% - 50vw + 16px);
}

.osrs-battleship-board:has(.battleship-player-shell) .board-content {
  gap: 10px;
}

.battleship-player-shell {
  gap: 10px;
}

.battleship-player-tabs {
  width: min(680px, 100%);
  min-height: 50px;
  background: rgba(3, 10, 11, 0.9);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.battleship-player-summary {
  gap: 6px;
}

.battleship-player-summary > div {
  min-height: 58px;
  align-content: center;
  border-left-width: 2px;
  padding: 8px 12px;
}

.battleship-credit-guide {
  min-height: 58px;
  padding: 8px 12px;
}

.battleship-player-board-layout {
  grid-template-columns: minmax(0, 1fr) clamp(300px, 20vw, 360px);
  gap: 12px;
  align-items: stretch;
}

.battleship-player-board-workspace {
  grid-template-rows: auto clamp(700px, calc(100vh - 270px), 1040px);
  border-radius: 0;
  background:
    radial-gradient(circle at 46% 28%, rgba(31, 91, 86, 0.22), transparent 46%),
    #041011;
}

.battleship-viewport-toolbar {
  min-height: 54px;
  padding: 8px 10px;
}

.battleship-player-grid {
  --battleship-cell-size: clamp(48px, 3vw, 58px);
}

.battleship-player-grid .battleship-board-cell {
  border-radius: 2px;
}

.battleship-player-grid .battleship-board-cell[data-difficulty="common"],
.battleship-fleet-board .battleship-board-cell[data-difficulty="common"] {
  border-color: #c7d2cc;
  background: #26302c;
}

.battleship-player-grid .battleship-board-cell[data-difficulty="uncommon"],
.battleship-fleet-board .battleship-board-cell[data-difficulty="uncommon"] {
  border-color: #3df07f;
  background: #0d321f;
}

.battleship-player-grid .battleship-board-cell[data-difficulty="rare"],
.battleship-fleet-board .battleship-board-cell[data-difficulty="rare"] {
  border-color: #4aa8ff;
  background: #0d2748;
}

.battleship-player-grid .battleship-board-cell[data-difficulty="epic"],
.battleship-fleet-board .battleship-board-cell[data-difficulty="epic"] {
  border-color: #c178ff;
  background: #351452;
}

.battleship-player-grid .battleship-board-cell[data-difficulty="legendary"],
.battleship-fleet-board .battleship-board-cell[data-difficulty="legendary"] {
  border-color: #ffb13b;
  background: #4a2a08;
}

.battleship-minimap-grid i { background: #56645f; }
.battleship-minimap-grid i[data-difficulty="common"] { background: #aebbb5; }
.battleship-minimap-grid i[data-difficulty="uncommon"] { background: #22c55e; }
.battleship-minimap-grid i[data-difficulty="rare"] { background: #2f8cff; }
.battleship-minimap-grid i[data-difficulty="epic"] { background: #a855f7; }
.battleship-minimap-grid i[data-difficulty="legendary"] { background: #f59e0b; }
.battleship-minimap-grid i[data-status="miss"] { background: #67e8f9; }
.battleship-minimap-grid i[data-status="hit"] { background: #ff4f40; }
.battleship-minimap-grid i[data-status="sunk"] { background: #ffe45c; }

.battleship-player-grid .battleship-board-cell.attackable[data-status="fog"] {
  border-color: #42ff9b;
  box-shadow:
    inset 0 0 0 2px rgba(66, 255, 155, 0.62),
    inset 0 0 16px rgba(34, 197, 94, 0.32),
    0 0 18px rgba(66, 255, 155, 0.58);
}

.battleship-player-grid .battleship-board-cell[data-status="miss"] {
  border-color: #67e8f9;
  background: #103846;
}

.battleship-player-grid .battleship-board-cell[data-status="hit"] {
  border-color: #ff5a48;
  background: #5a1f18;
}

.battleship-player-grid .battleship-board-cell[data-status="sunk"] {
  border-color: #ffe45c;
  background: #5d3f08;
  box-shadow: inset 0 0 0 2px rgba(255, 228, 92, 0.58);
}

.battleship-player-inspector,
.battleship-fleet-dock {
  align-self: stretch;
  min-height: 0;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(9, 23, 22, 0.96), rgba(4, 12, 12, 0.98));
}

.battleship-fleet-workspace {
  min-height: calc(100vh - 188px);
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.battleship-fleet-header {
  min-height: 72px;
  border: 1px solid rgba(71, 155, 164, 0.32);
  border-radius: 8px;
  padding: 10px 12px;
  background: rgba(4, 14, 14, 0.82);
}

.battleship-fleet-layout {
  grid-template-columns: minmax(0, 1fr) clamp(330px, 22vw, 390px);
  gap: 12px;
  align-items: stretch;
  min-height: 0;
}

.battleship-fleet-board-panel {
  border-radius: 0;
  background:
    radial-gradient(circle at 52% 30%, rgba(34, 114, 118, 0.2), transparent 48%),
    #041011;
}

.battleship-fleet-board-heading {
  min-height: 54px;
  padding: 9px 12px;
}

.battleship-fleet-board-workspace {
  grid-template-rows: auto clamp(700px, calc(100vh - 310px), 1040px);
}

.battleship-fleet-board .battleship-board-grid {
  margin: 0;
}

.battleship-fleet-dock {
  gap: 10px;
  border-color: rgba(214, 155, 68, 0.34);
  border-radius: 0;
  padding: 12px;
}

.battleship-fleet-preview-status {
  min-width: 0;
  border: 1px solid rgba(118, 149, 144, 0.34);
  border-radius: 999px;
  padding: 6px 10px;
  color: #9fb7b2;
  background: rgba(5, 18, 18, 0.82);
  font-size: 0.7rem;
  line-height: 1.2;
}

.battleship-fleet-preview-status {
  display: block;
  border-radius: 7px;
}

.battleship-fleet-preview-status[data-state="valid"] {
  border-color: rgba(98, 230, 167, 0.66);
  color: #d8ffed;
  background: rgba(18, 80, 54, 0.42);
}

.battleship-fleet-preview-status[data-state="invalid"] {
  border-color: rgba(244, 114, 94, 0.72);
  color: #ffd4cd;
  background: rgba(103, 32, 27, 0.42);
}

.battleship-fleet-presence {
  display: grid;
  gap: 5px;
  margin-top: 2px;
}

.battleship-fleet-presence[hidden] {
  display: none;
}

.battleship-fleet-presence > span {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid color-mix(in srgb, var(--fleet-presence-color) 48%, transparent);
  border-radius: 7px;
  padding: 6px 8px;
  color: #d9ece8;
  background: rgba(5, 18, 18, 0.84);
  font-size: 0.7rem;
}

.battleship-fleet-presence > .fleet-presence-more {
  justify-content: center;
  border-style: dashed;
  border-color: rgba(160, 185, 180, 0.34);
  color: #aac0bb;
}

.battleship-fleet-presence i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--fleet-presence-color);
  box-shadow: 0 0 8px var(--fleet-presence-color);
}

.battleship-fleet-board .battleship-board-cell {
  isolation: isolate;
}

.battleship-fleet-board .battleship-board-cell > * {
  position: relative;
  z-index: 2;
}

.battleship-fleet-board .battleship-board-cell[data-status="own-ship"] {
  border-color: rgba(46, 229, 255, 0.96);
  box-shadow:
    inset 0 0 0 2px rgba(46, 229, 255, 0.62),
    inset 0 0 18px rgba(34, 211, 238, 0.2),
    0 0 14px rgba(34, 211, 238, 0.22);
}

.battleship-fleet-board .battleship-board-cell[data-status="own-ship"][data-difficulty="common"] { background: #26302c; }
.battleship-fleet-board .battleship-board-cell[data-status="own-ship"][data-difficulty="uncommon"] { background: #0d321f; }
.battleship-fleet-board .battleship-board-cell[data-status="own-ship"][data-difficulty="rare"] { background: #0d2748; }
.battleship-fleet-board .battleship-board-cell[data-status="own-ship"][data-difficulty="epic"] { background: #351452; }
.battleship-fleet-board .battleship-board-cell[data-status="own-ship"][data-difficulty="legendary"] { background: #4a2a08; }

.battleship-fleet-board .battleship-board-cell[data-status="own-ship"]::before,
.battleship-fleet-board .battleship-board-cell.fleet-preview-valid::before,
.battleship-fleet-board .battleship-board-cell.fleet-preview-invalid::before {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: 1;
  pointer-events: none;
  border-radius: 2px;
}

.battleship-fleet-board .battleship-board-cell[data-status="own-ship"]::before {
  border: 1px solid rgba(207, 250, 254, 0.72);
  background:
    linear-gradient(90deg, rgba(207, 250, 254, 0.26) 1px, transparent 1px),
    linear-gradient(180deg, rgba(103, 244, 255, 0.2), rgba(8, 145, 178, 0.1));
  background-size: 10px 100%, 100% 100%;
  mix-blend-mode: screen;
}

.battleship-fleet-board .battleship-board-cell.fleet-selected-ship-cell {
  box-shadow:
    inset 0 0 0 2px rgba(255, 225, 131, 0.86),
    0 0 15px rgba(255, 225, 131, 0.38);
}

.battleship-fleet-board .battleship-board-cell.fleet-preview-valid {
  border-color: #4dff4d;
  box-shadow:
    inset 0 0 0 2px rgba(77, 255, 77, 0.86),
    inset 0 0 18px rgba(77, 255, 77, 0.18),
    0 0 18px rgba(77, 255, 77, 0.5);
}

.battleship-fleet-board .battleship-board-cell.fleet-preview-valid::before {
  border: 1px solid rgba(220, 255, 218, 0.86);
  background:
    linear-gradient(90deg, rgba(220, 255, 218, 0.22) 1px, transparent 1px),
    rgba(65, 255, 65, 0.18);
  background-size: 10px 100%, 100% 100%;
  mix-blend-mode: screen;
}

.battleship-fleet-board .battleship-board-cell.fleet-preview-invalid {
  border-color: #ff4d42;
  box-shadow:
    inset 0 0 0 2px rgba(255, 77, 66, 0.86),
    inset 0 0 18px rgba(255, 77, 66, 0.18),
    0 0 16px rgba(255, 77, 66, 0.48);
}

.battleship-fleet-board .battleship-board-cell.fleet-preview-invalid::before {
  border: 1px solid rgba(255, 215, 210, 0.9);
  background:
    repeating-linear-gradient(135deg, rgba(255, 77, 66, 0.28) 0 4px, rgba(255, 77, 66, 0.07) 4px 8px);
  mix-blend-mode: screen;
}

.battleship-fleet-board .battleship-board-cell.fleet-preview-anchor::after {
  content: "";
  position: absolute;
  inset: -4px;
  z-index: 3;
  pointer-events: none;
  border: 2px solid currentColor;
  border-radius: 5px;
}

.battleship-fleet-board .battleship-board-cell.fleet-remote-preview {
  z-index: 3;
  border-color: var(--fleet-presence-color, #ffcf66);
  outline: 3px solid var(--fleet-presence-color, #ffcf66);
  outline-offset: -3px;
  box-shadow:
    inset 0 0 0 999px color-mix(in srgb, var(--fleet-presence-color, #ffcf66) 38%, transparent),
    inset 0 0 0 2px color-mix(in srgb, var(--fleet-presence-color, #ffcf66) 92%, white),
    0 0 15px color-mix(in srgb, var(--fleet-presence-color, #ffcf66) 78%, transparent);
}

.battleship-fleet-board .battleship-board-cell.fleet-remote-preview-valid {
  filter: saturate(1.3) brightness(1.12);
}

.battleship-fleet-board .battleship-board-cell.fleet-remote-preview-invalid {
  outline-color: #ff655c;
  background-image: repeating-linear-gradient(135deg, rgba(255, 59, 48, 0.32) 0 5px, transparent 5px 10px);
  filter: saturate(1.05) brightness(1.02);
}

.battleship-fleet-board .battleship-board-cell.fleet-remote-preview-anchor {
  outline-width: 4px;
  outline-offset: -1px;
  box-shadow:
    inset 0 0 0 999px color-mix(in srgb, var(--fleet-presence-color, #ffcf66) 48%, transparent),
    inset 0 0 0 2px white,
    0 0 22px var(--fleet-presence-color, #ffcf66);
}

.battleship-fleet-board .battleship-board-cell.fleet-remote-preview-pulse {
  animation: fleet-remote-arrival 420ms ease-out;
}

.fleet-remote-label {
  position: absolute !important;
  bottom: calc(100% + 5px + (var(--fleet-presence-label-offset, 0) * 23px));
  left: 50%;
  z-index: 20 !important;
  width: max-content;
  max-width: 190px;
  transform: translateX(-50%);
  border: 2px solid var(--fleet-presence-color, #ffcf66);
  border-radius: 999px;
  padding: 3px 8px;
  overflow: hidden;
  color: #07100f;
  background: color-mix(in srgb, var(--fleet-presence-color, #ffcf66) 82%, white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7), 0 0 12px var(--fleet-presence-color, #ffcf66);
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.fleet-remote-label[data-align="left"] {
  left: 0;
  transform: none;
}

.fleet-remote-label[data-align="right"] {
  right: 0;
  left: auto;
  transform: none;
}

@keyframes fleet-remote-arrival {
  0% { transform: scale(0.82); filter: brightness(1.8); }
  65% { transform: scale(1.08); filter: brightness(1.35); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .battleship-fleet-board .battleship-board-cell.fleet-remote-preview-pulse {
    animation: none;
  }
}

.osrs-battleship-board:has(.battleship-player-shell) .board-title {
  display: none;
}

.osrs-battleship-board:has(.battleship-player-shell) .board-content,
.osrs-battleship-board:has(.battleship-player-shell) .lanes,
.osrs-battleship-board:has(.battleship-player-shell) .battleship-module-view,
.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-shell {
  width: 100%;
  max-width: none;
  margin-inline: 0;
}

.osrs-battleship-board:has(.battleship-player-shell) .board-content,
.osrs-battleship-board:has(.battleship-player-shell) .lanes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-module-view {
  min-height: calc(100vh - 126px);
  overflow: visible;
}

.battleship-player-shell {
  align-content: start;
}

.battleship-player-tabs {
  justify-self: center;
}

.battleship-player-summary {
  grid-template-columns: minmax(150px, 1.2fr) repeat(3, minmax(130px, 0.9fr)) minmax(180px, 1.1fr) minmax(190px, 1fr);
}

.battleship-player-board-layout {
  grid-template-columns: minmax(0, 1fr) clamp(300px, 18vw, 360px);
}

.battleship-player-board-workspace {
  grid-template-rows: auto minmax(760px, calc(100vh - 285px));
}

.battleship-player-viewport {
  min-height: 760px;
}

.misty-board.osrs-battleship-board:has(.battleship-player-shell) {
  width: calc(100vw - 32px);
  max-width: none;
  min-height: calc(100vh - 118px);
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  padding: 14px;
  border-radius: 8px;
}

.board-view:not(.organizer-mode):has(.battleship-player-shell) {
  padding-inline: 0;
}

.board-view:not(.organizer-mode):has(.battleship-player-shell) .topbar {
  display: none;
}

.board-view:not(.organizer-mode):has(.battleship-player-shell) .topbar .eyebrow {
  margin: 0;
}

.board-view:not(.organizer-mode):has(.battleship-player-shell) .topbar h2 {
  font-size: clamp(1.15rem, 1.8vw, 1.75rem);
  line-height: 1;
}

.board-view:not(.organizer-mode):has(.battleship-player-shell) .team-codeword-panel strong {
  font-size: clamp(1rem, 1.5vw, 1.35rem);
}

.board-view:not(.organizer-mode):has(.battleship-player-shell) .topbar-actions button {
  min-height: 40px;
  padding-inline: 14px;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-shell {
  grid-template-columns: minmax(0, 1fr) minmax(520px, 0.65fr);
  grid-template-areas:
    "summary tabs"
    "board board";
  align-items: stretch;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-tabs {
  grid-area: tabs;
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-summary {
  grid-area: summary;
  grid-template-columns: minmax(150px, 1.2fr) repeat(3, minmax(120px, 0.78fr)) minmax(170px, 1fr) minmax(180px, 1fr);
  align-self: stretch;
  min-height: 64px;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-credit-guide {
  display: none;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-board-layout {
  grid-area: board;
  grid-template-columns: minmax(980px, 1260px) clamp(320px, 18vw, 380px);
  justify-content: center;
  min-height: 0;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-board-workspace,
.osrs-battleship-board:has(.battleship-player-shell) .battleship-fleet-board-workspace {
  grid-template-rows: auto minmax(720px, calc(100vh - 145px));
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-viewport {
  min-height: 720px;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-grid {
  --battleship-cell-size: clamp(42px, 2.35vw, 48px);
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-tabs {
  min-height: 64px;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-tab {
  min-height: 56px;
}

/* Concept fidelity pass: full-screen team battle floor. */
.board-view:not(.organizer-mode):has(.battleship-player-shell) {
  min-height: 100vh;
  padding: 0;
  background:
    radial-gradient(circle at 14% 44%, rgba(42, 95, 98, 0.42), transparent 24%),
    radial-gradient(circle at 84% 58%, rgba(109, 76, 33, 0.22), transparent 28%),
    linear-gradient(115deg, rgba(0, 0, 0, 0.58), rgba(3, 18, 21, 0.72) 42%, rgba(2, 7, 8, 0.86)),
    #031012;
}

.board-view:not(.organizer-mode):has(.battleship-player-shell) .board-home {
  width: 100%;
  margin: 0;
}

.board-view:not(.organizer-mode):has(.battleship-player-shell) #teamSelector,
.board-view:not(.organizer-mode):has(.battleship-player-shell) label:has(#teamSelector) {
  display: none !important;
}

.board-view:not(.organizer-mode):has(.battleship-player-shell)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.58;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(51, 83, 78, 0.18) 8.2% 8.35%, transparent 8.6% 91%, rgba(155, 108, 52, 0.14) 91.2% 91.35%, transparent 91.6%),
    radial-gradient(ellipse at 6% 54%, rgba(78, 111, 111, 0.2), transparent 16%),
    radial-gradient(ellipse at 94% 28%, rgba(132, 92, 43, 0.16), transparent 15%),
    repeating-linear-gradient(125deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 36px);
}

.board-view:not(.organizer-mode):has(.battleship-player-shell) > * {
  position: relative;
  z-index: 1;
}

.misty-board.osrs-battleship-board:has(.battleship-player-shell) {
  width: 100vw;
  min-height: 100vh;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 18px 16px;
  box-shadow: none;
  background:
    radial-gradient(circle at 52% 46%, rgba(8, 76, 83, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(4, 16, 17, 0.72), rgba(2, 7, 8, 0.88));
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-module-view {
  min-height: calc(100vh - 36px);
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-shell {
  grid-template-columns: minmax(720px, 1fr) minmax(560px, 0.72fr);
  grid-template-areas:
    "summary tabs"
    "board board";
  gap: 16px;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-summary {
  min-height: 92px;
  border: 1px solid rgba(201, 143, 61, 0.36);
  border-radius: 14px 0 0 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(8, 28, 31, 0.96), rgba(2, 12, 14, 0.98));
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-summary > div {
  position: relative;
  min-height: 90px;
  border-left: 0;
  border-right: 1px solid rgba(80, 152, 160, 0.24);
  padding: 14px 18px 12px 56px;
  background: transparent;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-summary > div::before {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #f6d787;
  font-size: 1.2rem;
  text-shadow: 0 0 10px currentColor;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-summary > div:nth-child(1)::before {
  content: "\2693";
  width: 48px;
  height: 58px;
  left: 14px;
  border: 1px solid rgba(223, 169, 83, 0.76);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(12, 49, 62, 0.96), rgba(8, 20, 25, 0.96));
  color: #f1c96b;
  font-size: 1.7rem;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-summary > div:nth-child(1) {
  padding-left: 88px;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-summary > div:nth-child(2)::before { content: "\2725"; color: #ff4d42; }
.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-summary > div:nth-child(3)::before { content: "\2715"; color: #55c5ff; }
.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-summary > div:nth-child(4)::before { content: "\2620"; color: #cdd5d4; }
.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-summary > div:nth-child(5)::before { content: "\25C9"; color: #ffd45f; }
.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-summary > div:nth-child(6)::before { content: "\25C6"; color: #be69ff; }

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-summary span {
  color: #a9b8b6;
  font-size: 0.72rem;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-summary strong {
  color: #fff2c6;
  font-size: 1.25rem;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-tabs {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 58px;
  gap: 0;
  min-height: 92px;
  border: 1px solid rgba(201, 143, 61, 0.36);
  border-radius: 0 14px 14px 0;
  padding: 22px 22px 20px 0;
  background: linear-gradient(180deg, rgba(8, 27, 31, 0.96), rgba(2, 12, 14, 0.98));
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-tabs::after {
  content: "\2699";
  display: grid;
  place-items: center;
  color: #95a6a4;
  font-size: 1.45rem;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-tab {
  min-height: 50px;
  border-radius: 0;
  border-color: rgba(120, 158, 157, 0.34);
  color: #c6d1cf;
  background: rgba(8, 17, 19, 0.72);
  font-size: 0.95rem;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-tab:first-child {
  border-radius: 6px 0 0 6px;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-tab:nth-child(3) {
  border-radius: 0 6px 6px 0;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-tab.active {
  border-color: #d7a044;
  color: #ffe9a9;
  background:
    radial-gradient(circle at 50% 105%, rgba(254, 212, 96, 0.34), transparent 54%),
    linear-gradient(180deg, rgba(82, 55, 15, 0.95), rgba(29, 24, 12, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 214, 103, 0.36), 0 0 18px rgba(214, 155, 68, 0.32);
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-board-layout {
  grid-template-columns: minmax(1000px, 1fr) clamp(370px, 21vw, 420px);
  gap: 26px;
  justify-content: stretch;
  align-items: stretch;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-board-workspace {
  min-height: calc(100vh - 140px);
  border: 0;
  background: transparent;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-board-workspace .battleship-viewport-toolbar {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 20;
  min-height: 42px;
  border: 0;
  padding: 0;
  background: transparent;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-board-workspace .battleship-viewport-toolbar > div:first-child {
  display: none;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-viewport {
  min-height: calc(100vh - 142px);
  border: 0;
  border-radius: 0;
  background: transparent;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-stage {
  padding: 0;
  border: 0;
  background: transparent;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-grid {
  --battleship-cell-size: clamp(38px, 2.05vw, 43px);
  margin: 0 auto;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-board-grid {
  gap: 2px;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-board-cell {
  border-width: 1px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 1px 3px rgba(0, 0, 0, 0.4);
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-board-cell img {
  opacity: 0.82;
  filter: saturate(1.22) contrast(1.1);
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-inspector {
  min-height: calc(100vh - 160px);
  border: 1px solid rgba(213, 151, 61, 0.72);
  border-radius: 8px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(5, 23, 25, 0.94), rgba(4, 13, 14, 0.98));
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-minimap {
  border-color: rgba(214, 155, 68, 0.74);
  background: rgba(5, 12, 12, 0.72);
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-cell-empty-state {
  min-height: 260px;
  border-top: 1px solid rgba(214, 155, 68, 0.34);
  color: #aab7b5;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-cell-empty-state strong {
  color: #ffd980;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
}

.battleship-player-shell[data-view="fleet"] {
  grid-template-columns: minmax(720px, 1fr) minmax(560px, 0.72fr);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-workspace {
  grid-area: board;
  grid-column: 1 / -1;
  min-height: calc(100vh - 136px);
  border: 1px solid rgba(210, 147, 58, 0.78);
  border-radius: 6px;
  padding: 18px 38px 22px;
  background:
    radial-gradient(circle at 38% 44%, rgba(20, 90, 96, 0.34), transparent 30%),
    linear-gradient(90deg, rgba(4, 16, 18, 0.95), rgba(5, 27, 30, 0.9) 58%, rgba(3, 13, 14, 0.97));
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-header {
  min-height: 52px;
  border: 0;
  border-radius: 0;
  padding: 0 2px 8px;
  background: transparent;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 19vw, 360px);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-header h3 {
  display: flex;
  gap: 28px;
  align-items: baseline;
  margin: 0;
  color: #fff4cf;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 1.7vw, 1.9rem);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-header h3 span {
  color: #1da1af;
  font-size: clamp(2rem, 2.8vw, 3rem);
  text-shadow: 0 0 18px rgba(29, 161, 175, 0.28);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-header p {
  display: none;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-layout {
  grid-template-columns: minmax(970px, 1fr) clamp(470px, 29vw, 540px);
  gap: 28px;
  align-items: stretch;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board-panel {
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board-heading {
  display: none;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board-workspace {
  min-height: calc(100vh - 230px);
  border: 1px solid rgba(71, 155, 164, 0.28);
  border-radius: 6px;
  overflow: visible;
  background:
    radial-gradient(circle at 50% 42%, rgba(30, 118, 124, 0.22), transparent 46%),
    linear-gradient(180deg, rgba(5, 24, 27, 0.78), rgba(4, 17, 18, 0.9));
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-viewport {
  min-height: calc(100vh - 234px);
  border: 0;
  background: transparent;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-dock {
  align-self: stretch;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 16px;
  min-height: calc(100vh - 230px);
  border: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-selected,
.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-ship-list,
.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-rules {
  border: 1px solid rgba(71, 155, 164, 0.44);
  border-radius: 6px;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(5, 25, 28, 0.92), rgba(3, 15, 16, 0.96));
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-selected {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 180px;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-selected .eyebrow,
.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-selected > strong,
.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-selected > span:not(.battleship-fleet-preview-status) {
  grid-column: 1 / -1;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-selected > strong {
  color: #fff1c5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
}

.battleship-selected-ship-preview {
  display: flex;
  grid-column: 1 / -1;
  gap: 3px;
  width: min(220px, 100%);
  height: 30px;
  align-items: center;
  font-style: normal;
}

.battleship-selected-ship-preview b {
  flex: 1;
  height: 9px;
  border: 1px solid #28dfff;
  background: rgba(40, 223, 255, 0.18);
  box-shadow: 0 0 8px rgba(40, 223, 255, 0.5);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-actions {
  grid-column: 1 / -1;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-actions button {
  min-height: 42px;
  border-color: rgba(148, 184, 181, 0.42);
  color: #edf7f5;
  background: rgba(8, 21, 23, 0.84);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-ship-list {
  align-content: start;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  overflow: auto;
  max-height: calc(100vh - 480px);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-ship-card {
  min-height: 58px;
  border-color: rgba(112, 162, 159, 0.45);
  border-radius: 5px;
  padding: 8px 10px;
  background: linear-gradient(90deg, rgba(8, 31, 34, 0.96), rgba(9, 19, 20, 0.92));
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-ship-card.active {
  border-color: #28dfff;
  box-shadow: inset 0 0 0 1px rgba(40, 223, 255, 0.65), 0 0 16px rgba(40, 223, 255, 0.22);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-ship-card strong {
  color: #fff3ca;
  font-size: 0.72rem;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-ship-card small {
  color: #9fb0ad;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-ship-card > i b {
  width: 13px;
  height: 6px;
  border-color: #29e5ff;
  background: rgba(41, 229, 255, 0.16);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-rules {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-color: rgba(214, 155, 68, 0.58);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-rules strong {
  grid-column: 1 / -1;
  color: #f3c86b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-rules span {
  position: relative;
  padding-left: 24px;
  color: #d6e4e1;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-rules span::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: #1cff8a;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-submit-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 4px;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-submit-actions button {
  min-height: 54px;
  border-radius: 5px;
  border-color: #29dfff;
  color: #67f4ff;
  background: rgba(5, 44, 52, 0.82);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-submit-actions .primary {
  border-color: #d69b44;
  color: #ffe8a9;
  background: rgba(94, 62, 18, 0.78);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-preview-status {
  grid-column: 1 / -1;
  min-height: 44px;
  border-radius: 5px;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-tabs::after {
  content: none !important;
  display: none !important;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-logout {
  min-width: 34px;
  min-height: 42px;
  border: 1px solid rgba(255, 93, 83, 0.56);
  border-radius: 5px;
  color: #ffd8d3;
  background:
    radial-gradient(circle at 50% 115%, rgba(255, 74, 58, 0.36), transparent 58%),
    linear-gradient(180deg, rgba(87, 24, 20, 0.95), rgba(35, 10, 10, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 180, 167, 0.12),
    0 0 14px rgba(255, 61, 45, 0.18);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-logout:hover {
  border-color: rgba(255, 121, 109, 0.86);
  color: #fff4ef;
  background:
    radial-gradient(circle at 50% 115%, rgba(255, 88, 70, 0.48), transparent 58%),
    linear-gradient(180deg, rgba(111, 30, 24, 0.96), rgba(45, 13, 12, 0.98));
}

/* UAB chunk 3b: challenges screen matched to the Battleship game shell. */
.board-view:not(.organizer-mode):has(.battleship-player-shell[data-view="challenges"]) {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 9% 47%, rgba(61, 105, 103, 0.22), transparent 18%),
    radial-gradient(ellipse at 92% 48%, rgba(109, 82, 49, 0.22), transparent 18%),
    radial-gradient(circle at 50% 56%, rgba(8, 79, 86, 0.24), transparent 36%),
    linear-gradient(180deg, rgba(1, 7, 9, 0.95), rgba(3, 22, 24, 0.95) 48%, rgba(2, 9, 11, 0.98)),
    #02090b;
}

.board-view:not(.organizer-mode):has(.battleship-player-shell[data-view="challenges"]) .misty-board.osrs-battleship-board {
  width: 100vw;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  padding: 0 8px 8px;
  background:
    radial-gradient(circle at 47% 54%, rgba(18, 101, 111, 0.24), transparent 38%),
    linear-gradient(180deg, rgba(3, 12, 14, 0.78), rgba(1, 8, 10, 0.9));
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-module-view,
.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .board-content,
.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .lanes {
  min-height: 0;
  height: 100%;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-player-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 70px minmax(0, 1fr);
  grid-template-areas:
    "chrome"
    "board";
  gap: 0;
}

.battleship-player-shell[data-view="challenges"] .battleship-player-chrome {
  grid-area: chrome;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: stretch;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(180, 124, 51, 0.42);
  border-radius: 0 0 8px 8px;
  background:
    linear-gradient(180deg, rgba(7, 25, 29, 0.94), rgba(2, 13, 16, 0.98)),
    radial-gradient(circle at 45% 0%, rgba(51, 117, 119, 0.18), transparent 42%);
  box-shadow:
    inset 0 0 0 1px rgba(78, 172, 181, 0.08),
    0 14px 36px rgba(0, 0, 0, 0.34);
}

.battleship-player-shell[data-view="challenges"] .battleship-player-summary {
  grid-area: auto !important;
  display: grid;
  grid-template-columns: 270px repeat(3, minmax(128px, 0.78fr)) minmax(156px, 0.84fr) minmax(220px, 1fr);
  min-width: 0;
  width: auto;
  min-height: 68px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.battleship-player-shell[data-view="challenges"] .battleship-player-summary > div {
  min-width: 0;
  min-height: 68px;
  padding: 10px 12px 9px 52px;
  border-right: 1px solid rgba(99, 141, 142, 0.26);
}

.battleship-player-shell[data-view="challenges"] .battleship-player-summary > div:nth-child(1) {
  padding-left: 92px;
}

.battleship-player-shell[data-view="challenges"] .battleship-player-summary > div:nth-child(1)::before {
  left: 24px;
  width: 50px;
  height: 50px;
  border-width: 2px;
  border-radius: 15px;
  font-size: 2rem;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 214, 103, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(11, 54, 68, 0.98), rgba(5, 22, 29, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 236, 173, 0.12),
    0 0 18px rgba(41, 198, 255, 0.18);
}

.battleship-player-shell[data-view="challenges"] .battleship-player-summary > div::before {
  left: 22px;
  font-size: 1.15rem;
}

.battleship-player-shell[data-view="challenges"] .battleship-player-summary span {
  color: #aeb9b7;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: none;
}

.battleship-player-shell[data-view="challenges"] .battleship-player-summary strong {
  color: #fff0bd;
  font-size: 1.18rem;
  line-height: 1.08;
  white-space: nowrap;
}

.battleship-player-shell[data-view="challenges"] .battleship-player-summary small {
  color: #51ff94;
  font-size: 0.66rem;
  font-weight: 700;
}

.battleship-player-shell[data-view="challenges"] .battleship-trade-up-summary button {
  min-height: 22px;
  max-width: 146px;
  border-color: rgba(150, 95, 31, 0.8);
  border-radius: 4px;
  padding: 0 10px;
  color: #b6a989;
  font-size: 0.68rem;
  background: rgba(33, 24, 13, 0.78);
}

.battleship-player-shell[data-view="challenges"] .battleship-player-tabs {
  grid-area: auto !important;
  display: grid;
  grid-template-columns: repeat(3, minmax(108px, 1fr)) 42px;
  align-items: center;
  justify-self: stretch;
  min-width: 0;
  width: auto;
  min-height: 68px;
  border: 0;
  border-left: 1px solid rgba(99, 141, 142, 0.26);
  border-radius: 0;
  padding: 13px 18px 13px 16px;
  background: transparent;
}

.battleship-player-shell[data-view="challenges"] .battleship-player-tab {
  min-width: 0;
  min-height: 42px;
  border-radius: 0;
  border-color: rgba(110, 142, 143, 0.34);
  color: #bfc9c7;
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(4, 15, 18, 0.68);
}

.battleship-player-shell[data-view="challenges"] .battleship-player-tab:first-child {
  border-radius: 5px 0 0 5px;
}

.battleship-player-shell[data-view="challenges"] .battleship-player-tab:nth-child(3) {
  border-radius: 0 5px 5px 0;
}

.battleship-player-shell[data-view="challenges"] .battleship-player-tab.active {
  border-color: #d69b44;
  color: #ffe7a6;
  background:
    radial-gradient(circle at 50% 110%, rgba(229, 164, 68, 0.38), transparent 58%),
    linear-gradient(180deg, rgba(78, 54, 18, 0.95), rgba(32, 24, 12, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 220, 125, 0.28),
    0 0 16px rgba(214, 155, 68, 0.22);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-player-challenges {
  grid-area: board;
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  height: calc(100vh - 78px);
  min-height: 0;
  border: 1px solid rgba(210, 147, 58, 0.82);
  border-radius: 6px;
  padding: 18px 28px 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 20%, rgba(28, 112, 121, 0.26), transparent 28%),
    radial-gradient(circle at 74% 66%, rgba(102, 72, 31, 0.14), transparent 30%),
    linear-gradient(90deg, rgba(4, 16, 18, 0.95), rgba(5, 27, 30, 0.88) 58%, rgba(3, 13, 14, 0.97));
}

.battleship-challenges-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 0.78fr);
  gap: 24px;
  align-items: end;
  min-height: 86px;
}

.battleship-challenges-hero h3 {
  display: flex;
  gap: 28px;
  align-items: baseline;
  margin: 0;
  color: #fff4cf;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 1.55vw, 1.85rem);
}

.battleship-challenges-hero h3 span {
  color: #1da1af;
  font-size: clamp(2rem, 2.8vw, 3rem);
  text-shadow: 0 0 18px rgba(29, 161, 175, 0.28);
}

.battleship-challenges-hero p {
  max-width: 620px;
  margin: 4px 0 0;
  color: #a9bbb8;
  font-size: 0.86rem;
}

.battleship-challenge-totals {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid rgba(71, 155, 164, 0.42);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(4, 16, 18, 0.8);
}

.battleship-challenge-totals span {
  display: grid;
  gap: 2px;
  min-height: 58px;
  place-items: center;
  border-right: 1px solid rgba(71, 155, 164, 0.24);
  color: #a8b9b6;
  font-size: 0.67rem;
}

.battleship-challenge-totals span:last-child {
  border-right: 0;
}

.battleship-challenge-totals strong {
  color: #fff0bd;
  font-size: 1.12rem;
}

.battleship-challenge-totals [data-difficulty="common"] strong { color: #43f38b; }
.battleship-challenge-totals [data-difficulty="uncommon"] strong { color: #89ff78; }
.battleship-challenge-totals [data-difficulty="rare"] strong { color: #62b4ff; }
.battleship-challenge-totals [data-difficulty="epic"] strong { color: #c781ff; }
.battleship-challenge-totals [data-difficulty="legendary"] strong { color: #ffbb50; }

.battleship-challenges-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(420px, 28vw, 520px);
  gap: 26px;
  min-height: 0;
}

.battleship-challenge-browser,
.battleship-challenge-submit-dock {
  min-height: 0;
  border: 1px solid rgba(71, 155, 164, 0.36);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(5, 25, 28, 0.9), rgba(3, 14, 16, 0.96));
}

.battleship-challenge-browser {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 16px;
  overflow: hidden;
}

.battleship-challenge-submit-dock {
  display: grid;
  align-content: start;
  padding: 16px;
  overflow: auto;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-challenge-browser-header {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  padding-bottom: 14px;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-challenge-browser-header strong {
  color: #fff1c5;
  font-size: 1.06rem;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-challenge-browser-header input {
  border-color: rgba(71, 155, 164, 0.56);
  background: rgba(5, 17, 19, 0.96);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-player-challenge-results {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-player-challenge {
  grid-template-columns: 62px minmax(0, 1fr);
  min-height: 88px;
  border-color: rgba(120, 166, 163, 0.34);
  border-left-width: 4px;
  background: linear-gradient(90deg, rgba(9, 31, 34, 0.94), rgba(7, 18, 19, 0.92));
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-player-challenge-image {
  width: 62px;
  height: 62px;
  background: rgba(0, 0, 0, 0.34);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-submission-panel {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-submission-heading {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(214, 155, 68, 0.25);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-submission-heading strong {
  color: #fff1c5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-submission-form {
  grid-template-columns: 1fr;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .rule-banner,
.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .rule-banner {
  display: none;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-ship-card > i {
  --ship-unit: 13px;
  display: flex;
  align-items: center;
  gap: 0;
  height: 14px;
  padding: 0 5px;
  width: min(100%, calc((var(--ship-length, 1) * var(--ship-unit)) + 12px));
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-ship-card > i::before {
  height: 9px;
  border-color: rgba(46, 229, 255, 0.9);
  background:
    linear-gradient(90deg, rgba(8, 46, 56, 0.12), rgba(100, 241, 255, 0.52) 18% 78%, rgba(8, 46, 56, 0.12)),
    linear-gradient(180deg, rgba(229, 253, 255, 0.34), rgba(7, 118, 142, 0.22));
  box-shadow:
    inset 0 1px 0 rgba(236, 254, 255, 0.34),
    0 0 10px rgba(34, 211, 238, 0.36);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-ship-card > i b {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  height: 9px;
  border: 0;
  border-left: 1px solid rgba(178, 250, 255, 0.38);
  background: transparent;
  box-shadow: none;
  opacity: 1;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-ship-card > i b:first-child {
  border-left: 0;
}

.battleship-player-shell[data-view="attack"] .battleship-player-summary > div:not(:first-child),
.battleship-player-shell[data-view="fleet"] .battleship-player-summary > div:not(:first-child),
.battleship-player-shell[data-view="challenges"] .battleship-player-summary > div:not(:first-child) {
  padding-left: 64px;
}

.battleship-player-shell[data-view="attack"] .battleship-player-summary > div:not(:first-child)::before,
.battleship-player-shell[data-view="fleet"] .battleship-player-summary > div:not(:first-child)::before,
.battleship-player-shell[data-view="challenges"] .battleship-player-summary > div:not(:first-child)::before {
  left: 20px;
  width: 34px;
  height: 34px;
  font-size: 1.58rem;
  line-height: 1;
  text-shadow:
    0 0 8px currentColor,
    0 0 18px currentColor;
}

.battleship-player-shell[data-view="attack"] .battleship-player-summary > div:nth-child(2)::before,
.battleship-player-shell[data-view="fleet"] .battleship-player-summary > div:nth-child(2)::before,
.battleship-player-shell[data-view="challenges"] .battleship-player-summary > div:nth-child(2)::before {
  font-size: 1.42rem;
}

.battleship-player-shell[data-view="attack"] .battleship-player-summary > div:nth-child(4)::before,
.battleship-player-shell[data-view="fleet"] .battleship-player-summary > div:nth-child(4)::before,
.battleship-player-shell[data-view="challenges"] .battleship-player-summary > div:nth-child(4)::before {
  font-size: 1.5rem;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-board-cell {
  overflow: hidden;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-board-cell img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-player-challenge {
  min-height: 140px;
  overflow: hidden;
  padding-bottom: 12px;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-player-challenge-image {
  position: relative;
  overflow: hidden;
  align-self: start;
  width: 62px;
  height: 62px;
  contain: paint;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-player-challenge-image img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  transform: none !important;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-player-challenge > div:last-child {
  align-content: start;
  min-height: 0;
  overflow: hidden;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-player-challenge strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-player-challenge small:not(.battleship-challenge-availability) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-player-challenge .battleship-challenge-availability {
  display: inline-flex;
  align-items: center;
  align-self: end;
  max-width: 100%;
  min-height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-submission-form button {
  border-color: #d69b44;
  color: #ffe8a9;
  background: rgba(94, 62, 18, 0.78);
}

/* UAB chunk 1: attack screen shell fidelity against the accepted concept. */
.board-view:not(.organizer-mode):has(.battleship-player-shell[data-view="attack"]) {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 8% 52%, rgba(70, 96, 93, 0.24), transparent 17%),
    radial-gradient(ellipse at 93% 56%, rgba(110, 82, 52, 0.25), transparent 18%),
    radial-gradient(circle at 50% 60%, rgba(6, 84, 91, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(1, 6, 8, 0.92), rgba(3, 21, 25, 0.94) 44%, rgba(2, 9, 11, 0.98)),
    #02090b;
}

.board-view:not(.organizer-mode):has(.battleship-player-shell[data-view="attack"])::before {
  opacity: 0.95;
  background:
    radial-gradient(ellipse at 4% 33%, rgba(102, 115, 105, 0.22), transparent 16%),
    radial-gradient(ellipse at 96% 36%, rgba(92, 82, 69, 0.28), transparent 15%),
    radial-gradient(ellipse at 50% 100%, rgba(78, 81, 70, 0.32), transparent 20%),
    radial-gradient(ellipse at 14% 73%, rgba(99, 87, 66, 0.22), transparent 10%),
    radial-gradient(ellipse at 88% 78%, rgba(124, 80, 45, 0.2), transparent 14%),
    repeating-linear-gradient(116deg, rgba(255, 255, 255, 0.032) 0 1px, transparent 1px 42px);
  mix-blend-mode: screen;
}

.board-view:not(.organizer-mode):has(.battleship-player-shell[data-view="attack"])::after {
  content: "";
  position: fixed;
  inset: 96px 0 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.58;
  background:
    radial-gradient(ellipse at 5% 48%, rgba(15, 32, 29, 0.95), transparent 20%),
    radial-gradient(ellipse at 97% 54%, rgba(25, 23, 18, 0.98), transparent 23%),
    radial-gradient(ellipse at 78% 100%, rgba(57, 38, 22, 0.62), transparent 15%),
    radial-gradient(ellipse at 18% 92%, rgba(52, 47, 39, 0.5), transparent 16%),
    linear-gradient(90deg, rgba(1, 7, 9, 0.82), transparent 19% 81%, rgba(1, 7, 9, 0.86));
}

.board-view:not(.organizer-mode):has(.battleship-player-shell[data-view="attack"]) .misty-board.osrs-battleship-board {
  width: 100vw;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  padding: 18px 14px 16px;
  background:
    radial-gradient(circle at 48% 56%, rgba(18, 89, 93, 0.25), transparent 36%),
    linear-gradient(180deg, rgba(3, 12, 14, 0.78), rgba(1, 8, 10, 0.9));
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-module-view,
.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .board-content,
.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .lanes {
  min-height: 0;
  height: 100%;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-player-shell {
  height: calc(100vh - 34px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 86px minmax(0, 1fr);
  grid-template-areas:
    "chrome"
    "board";
  gap: 14px;
}

.battleship-player-shell[data-view="attack"] .battleship-player-chrome {
  grid-area: chrome;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: stretch;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(180, 124, 51, 0.42);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(7, 25, 29, 0.94), rgba(2, 13, 16, 0.98)),
    radial-gradient(circle at 45% 0%, rgba(51, 117, 119, 0.18), transparent 42%);
  box-shadow:
    inset 0 0 0 1px rgba(78, 172, 181, 0.08),
    0 14px 36px rgba(0, 0, 0, 0.34);
}

.battleship-player-shell[data-view="attack"] .battleship-player-summary {
  grid-area: auto !important;
  display: grid;
  grid-template-columns: 270px repeat(3, minmax(128px, 0.78fr)) minmax(156px, 0.84fr) minmax(220px, 1fr);
  min-width: 0;
  width: auto;
  min-height: 84px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.battleship-player-shell[data-view="attack"] .battleship-player-summary > div {
  min-height: 84px;
  min-width: 0;
  padding: 15px 14px 12px 56px;
  border-right: 1px solid rgba(99, 141, 142, 0.26);
}

.battleship-player-shell[data-view="attack"] .battleship-player-summary > div:nth-child(1) {
  padding-left: 112px;
}

.battleship-player-shell[data-view="attack"] .battleship-player-summary > div:nth-child(1)::before {
  left: 30px;
  width: 60px;
  height: 60px;
  border-width: 2px;
  border-radius: 15px;
  font-size: 2rem;
  background:
    radial-gradient(circle at 50% 18%, rgba(251, 209, 111, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(11, 54, 68, 0.98), rgba(5, 22, 29, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(255, 236, 173, 0.12),
    0 0 18px rgba(41, 198, 255, 0.18);
}

.battleship-player-shell[data-view="attack"] .battleship-player-summary > div::before {
  left: 24px;
  font-size: 1.15rem;
}

.battleship-player-shell[data-view="attack"] .battleship-player-summary span {
  color: #aeb9b7;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: none;
}

.battleship-player-shell[data-view="attack"] .battleship-player-summary strong {
  color: #fff0bd;
  font-size: 1.18rem;
  line-height: 1.08;
  white-space: nowrap;
}

.battleship-player-shell[data-view="attack"] .battleship-player-summary small {
  color: #51ff94;
  font-size: 0.66rem;
  font-weight: 700;
}

.battleship-player-shell[data-view="attack"] .battleship-trade-up-summary button {
  min-height: 22px;
  max-width: 146px;
  border-color: rgba(150, 95, 31, 0.8);
  border-radius: 4px;
  padding: 0 10px;
  color: #b6a989;
  font-size: 0.68rem;
  background: rgba(33, 24, 13, 0.78);
}

.battleship-player-shell[data-view="attack"] .battleship-player-tabs {
  grid-area: auto !important;
  display: grid;
  grid-template-columns: repeat(3, minmax(108px, 1fr)) 34px;
  align-items: center;
  justify-self: stretch;
  min-width: 0;
  width: auto;
  min-height: 84px;
  border: 0;
  border-left: 1px solid rgba(99, 141, 142, 0.26);
  border-radius: 0;
  padding: 20px 18px 20px 16px;
  background: transparent;
}

.battleship-player-shell[data-view="attack"] .battleship-player-tabs::after {
  content: "\2699";
  color: #a2adab;
  font-size: 1.32rem;
}

.battleship-player-shell[data-view="attack"] .battleship-player-tab {
  min-height: 44px;
  min-width: 0;
  border-radius: 0;
  border-color: rgba(110, 142, 143, 0.34);
  color: #bfc9c7;
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(4, 15, 18, 0.68);
}

.battleship-player-shell[data-view="attack"] .battleship-player-tab:first-child {
  border-radius: 5px 0 0 5px;
}

.battleship-player-shell[data-view="attack"] .battleship-player-tab:nth-child(3) {
  border-radius: 0 5px 5px 0;
}

.battleship-player-shell[data-view="attack"] .battleship-player-tab.active {
  border-color: #d69b44;
  color: #ffe7a6;
  background:
    radial-gradient(circle at 50% 110%, rgba(229, 164, 68, 0.38), transparent 58%),
    linear-gradient(180deg, rgba(78, 54, 18, 0.95), rgba(32, 24, 12, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(255, 220, 125, 0.28),
    0 0 16px rgba(214, 155, 68, 0.22);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-credit-guide {
  display: none;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-player-board-layout {
  grid-area: board;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(360px, 20vw, 392px);
  gap: clamp(24px, 1.65vw, 34px);
  width: 100%;
  min-height: 0;
  margin: 0 auto;
  align-items: start;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-player-board-workspace {
  position: relative;
  min-height: 0;
  height: calc(100vh - 128px);
  overflow: visible;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-player-viewport {
  min-height: 0;
  height: calc(100vh - 128px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 18px;
  overflow: hidden;
  touch-action: auto;
  cursor: default;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-player-stage {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  transform-origin: top center;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-player-grid {
  --battleship-cell-width: var(--attack-cell-width, 56px);
  --battleship-cell-height: var(--attack-cell-height, 40px);
  --battleship-cell-size: min(var(--battleship-cell-width), var(--battleship-cell-height));
  margin: 0;
  border: 0;
  background: transparent;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-player-grid.battleship-board-grid {
  grid-template-columns: 28px repeat(20, var(--battleship-cell-width));
  grid-auto-rows: var(--battleship-cell-height);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-player-grid .battleship-board-cell {
  width: var(--battleship-cell-width);
  height: var(--battleship-cell-height);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .rule-banner {
  display: none;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-player-board-workspace .battleship-viewport-toolbar {
  display: none;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-player-inspector {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  height: calc(100vh - 128px);
  border-color: rgba(214, 155, 68, 0.74);
  border-radius: 7px;
  padding: 13px 13px 16px;
  background:
    linear-gradient(180deg, rgba(5, 25, 27, 0.93), rgba(3, 13, 15, 0.98)),
    radial-gradient(circle at 50% 0%, rgba(30, 105, 109, 0.18), transparent 44%);
  box-shadow: inset 0 0 0 1px rgba(70, 158, 164, 0.08);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-minimap {
  border: 1px solid rgba(214, 155, 68, 0.82);
  border-radius: 5px;
  padding: 8px;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-cell-empty-state {
  min-height: 246px;
  display: grid;
  place-content: center;
  gap: 8px;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-cell-empty-state strong {
  font-size: 1.36rem;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-selected-cell-panel {
  gap: 10px;
  margin-top: 0;
  padding-top: 12px;
  border-top-color: rgba(214, 155, 68, 0.36);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-selected-cell-heading {
  gap: 7px;
  padding: 9px 10px 10px;
  border: 1px solid rgba(72, 164, 171, 0.22);
  border-radius: 7px;
  background:
    radial-gradient(circle at 16% 50%, rgba(126, 205, 69, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(4, 31, 34, 0.92), rgba(2, 18, 21, 0.94));
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-selected-cell-heading .eyebrow {
  color: #d69b44;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-selected-cell-heading h3 {
  max-height: 2.6em;
  margin: 0;
  overflow: hidden;
  color: #ffd873;
  font-size: 1.08rem;
  line-height: 1.3;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-cell-status {
  border-color: rgba(121, 255, 155, 0.48);
  color: #c9ffd6;
  background: rgba(50, 117, 42, 0.16);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-selected-cell-image {
  height: 96px;
  border-color: rgba(214, 155, 68, 0.32);
  background:
    radial-gradient(circle at 50% 50%, rgba(139, 242, 68, 0.14), transparent 44%),
    rgba(1, 13, 16, 0.72);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-selected-cell-image img {
  max-width: 86%;
  max-height: 88%;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-cell-facts {
  gap: 4px;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-cell-facts > div {
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 6px;
  padding-bottom: 5px;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-attack-action {
  gap: 8px;
  margin-top: 4px;
  padding-top: 0;
  border-top: 0;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-attack-action label {
  display: none;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-attack-action button {
  min-height: 50px;
  border-color: rgba(214, 155, 68, 0.76);
  color: #ffe5a1;
  font-size: 1rem;
  font-weight: 900;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 192, 85, 0.2), transparent 46%),
    linear-gradient(180deg, rgba(90, 62, 21, 0.95), rgba(35, 24, 11, 0.97));
}

/* UAB chunk 2A: fleet planner screen composition against the accepted concept. */
.board-view:not(.organizer-mode):has(.battleship-player-shell[data-view="fleet"]) {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 10% 57%, rgba(43, 91, 87, 0.25), transparent 19%),
    radial-gradient(ellipse at 88% 50%, rgba(24, 85, 91, 0.22), transparent 28%),
    radial-gradient(circle at 46% 64%, rgba(8, 93, 103, 0.31), transparent 38%),
    linear-gradient(180deg, rgba(2, 9, 11, 0.98), rgba(3, 23, 27, 0.96) 46%, rgba(2, 9, 11, 0.98)),
    #02090b;
}

.board-view:not(.organizer-mode):has(.battleship-player-shell[data-view="fleet"])::before {
  opacity: 0.92;
  background:
    radial-gradient(ellipse at 4% 34%, rgba(74, 90, 83, 0.2), transparent 16%),
    radial-gradient(ellipse at 96% 38%, rgba(52, 87, 88, 0.22), transparent 22%),
    radial-gradient(ellipse at 50% 100%, rgba(44, 72, 72, 0.34), transparent 24%),
    repeating-linear-gradient(116deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 42px);
  mix-blend-mode: screen;
}

.board-view:not(.organizer-mode):has(.battleship-player-shell[data-view="fleet"]) .misty-board.osrs-battleship-board {
  width: 100vw;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  padding: 0 8px 8px;
  background:
    radial-gradient(circle at 44% 55%, rgba(18, 101, 111, 0.25), transparent 36%),
    linear-gradient(180deg, rgba(3, 12, 14, 0.78), rgba(1, 8, 10, 0.9));
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-player-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 70px minmax(0, 1fr);
  grid-template-areas:
    "chrome"
    "board";
  gap: 0;
}

.battleship-player-shell[data-view="fleet"] .battleship-player-chrome {
  grid-area: chrome;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: stretch;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(180, 124, 51, 0.42);
  border-radius: 0 0 8px 8px;
  background:
    linear-gradient(180deg, rgba(7, 25, 29, 0.94), rgba(2, 13, 16, 0.98)),
    radial-gradient(circle at 45% 0%, rgba(51, 117, 119, 0.18), transparent 42%);
  box-shadow:
    inset 0 0 0 1px rgba(78, 172, 181, 0.08),
    0 14px 36px rgba(0, 0, 0, 0.34);
}

.battleship-player-shell[data-view="fleet"] .battleship-player-summary {
  grid-area: auto !important;
  display: grid;
  grid-template-columns: 270px repeat(3, minmax(128px, 0.78fr)) minmax(156px, 0.84fr) minmax(220px, 1fr);
  min-width: 0;
  width: auto;
  min-height: 68px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.battleship-player-shell[data-view="fleet"] .battleship-player-summary > div {
  min-width: 0;
  min-height: 68px;
  padding: 10px 12px 9px 52px;
  border-right: 1px solid rgba(99, 141, 142, 0.26);
}

.battleship-player-shell[data-view="fleet"] .battleship-player-summary > div:nth-child(1) {
  padding-left: 92px;
}

.battleship-player-shell[data-view="fleet"] .battleship-player-summary > div:nth-child(1)::before {
  left: 24px;
  width: 50px;
  height: 50px;
  border-width: 2px;
  border-radius: 15px;
  font-size: 2rem;
  background:
    radial-gradient(circle at 50% 18%, rgba(41, 223, 255, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(11, 54, 68, 0.98), rgba(5, 22, 29, 0.98));
  box-shadow:
    inset 0 0 0 1px rgba(207, 250, 254, 0.12),
    0 0 18px rgba(41, 198, 255, 0.22);
}

.battleship-player-shell[data-view="fleet"] .battleship-player-summary > div::before {
  left: 22px;
  font-size: 1.15rem;
}

.battleship-player-shell[data-view="fleet"] .battleship-player-summary span {
  color: #aeb9b7;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: none;
}

.battleship-player-shell[data-view="fleet"] .battleship-player-summary strong {
  color: #fff0bd;
  font-size: 1.18rem;
  line-height: 1.08;
  white-space: nowrap;
}

.battleship-player-shell[data-view="fleet"] .battleship-player-summary small {
  color: #51ff94;
  font-size: 0.66rem;
  font-weight: 700;
}

.battleship-player-shell[data-view="fleet"] .battleship-trade-up-summary button {
  min-height: 22px;
  max-width: 146px;
  border-color: rgba(150, 95, 31, 0.8);
  border-radius: 4px;
  padding: 0 10px;
  color: #b6a989;
  font-size: 0.68rem;
  background: rgba(33, 24, 13, 0.78);
}

.battleship-player-shell[data-view="fleet"] .battleship-player-tabs {
  grid-area: auto !important;
  display: grid;
  grid-template-columns: repeat(3, minmax(108px, 1fr)) 34px;
  align-items: center;
  justify-self: stretch;
  min-width: 0;
  width: auto;
  min-height: 68px;
  border: 0;
  border-left: 1px solid rgba(99, 141, 142, 0.26);
  border-radius: 0;
  padding: 13px 18px 13px 16px;
  background: transparent;
}

.battleship-player-shell[data-view="fleet"] .battleship-player-tabs::after {
  content: "\2699";
  color: #a2adab;
  font-size: 1.32rem;
}

.battleship-player-shell[data-view="fleet"] .battleship-player-tab {
  min-width: 0;
  min-height: 42px;
  border-radius: 0;
  border-color: rgba(110, 142, 143, 0.34);
  color: #bfc9c7;
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(4, 15, 18, 0.68);
}

.battleship-player-shell[data-view="fleet"] .battleship-player-tab:first-child {
  border-radius: 5px 0 0 5px;
}

.battleship-player-shell[data-view="fleet"] .battleship-player-tab:nth-child(3) {
  border-radius: 0 5px 5px 0;
}

.battleship-player-shell[data-view="fleet"] .battleship-player-tab.active {
  border-color: #29dfff;
  color: #e9fdff;
  background:
    radial-gradient(circle at 50% 110%, rgba(41, 223, 255, 0.32), transparent 58%),
    linear-gradient(180deg, rgba(12, 79, 90, 0.95), rgba(5, 29, 35, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(103, 244, 255, 0.28),
    0 0 16px rgba(41, 223, 255, 0.22);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-credit-guide {
  display: none;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-workspace {
  position: relative;
  grid-area: board;
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
  height: calc(100vh - 78px);
  border: 1px solid rgba(210, 147, 58, 0.82);
  border-radius: 6px;
  padding: 10px 28px 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at 38% 44%, rgba(20, 90, 96, 0.34), transparent 30%),
    linear-gradient(90deg, rgba(4, 16, 18, 0.95), rgba(5, 27, 30, 0.9) 58%, rgba(3, 13, 14, 0.97));
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-notice {
  position: absolute;
  top: 52px;
  left: 40px;
  z-index: 12;
  width: fit-content;
  max-width: min(420px, calc(100% - 560px));
  min-height: 0;
  border-radius: 999px;
  padding: 5px 12px;
  color: #c7ebe5;
  font-size: 0.72rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(5, 30, 33, 0.86);
  box-shadow:
    inset 0 0 0 1px rgba(83, 208, 206, 0.18),
    0 8px 22px rgba(0, 0, 0, 0.24);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-notice.error {
  color: #ffd0ca;
  background: rgba(76, 22, 19, 0.9);
  box-shadow:
    inset 0 0 0 1px rgba(244, 114, 94, 0.28),
    0 8px 22px rgba(0, 0, 0, 0.24);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-header {
  position: relative;
  min-height: 48px;
  border: 0;
  border-radius: 0;
  padding: 0 12px 4px;
  background: transparent;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-header h3 {
  display: flex;
  gap: 28px;
  align-items: baseline;
  margin: 0;
  color: #fff4cf;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.72rem;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-header h3 span {
  color: #22c7d7;
  font-size: 2.72rem;
  text-shadow: 0 0 18px rgba(34, 199, 215, 0.3);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-header p {
  display: none;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-totals {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  align-self: start;
  justify-self: end;
  width: 224px;
  border: 1px solid rgba(71, 155, 164, 0.44);
  border-radius: 5px;
  overflow: hidden;
  background: rgba(4, 20, 23, 0.76);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-totals span {
  min-height: 46px;
  border: 0;
  border-right: 1px solid rgba(71, 155, 164, 0.34);
  border-radius: 0;
  padding: 6px 4px;
  text-align: center;
  background: transparent;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-totals span:last-child {
  border-right: 0;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(430px, 28vw, 500px);
  gap: clamp(18px, 1.45vw, 28px);
  align-items: stretch;
  min-height: 0;
  height: auto;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board-panel {
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board-heading {
  display: none;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board-workspace {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  container-type: size;
  min-height: 0;
  height: 100%;
  border: 1px solid rgba(71, 155, 164, 0.28);
  border-radius: 6px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(30, 118, 124, 0.22), transparent 46%),
    linear-gradient(180deg, rgba(5, 24, 27, 0.78), rgba(4, 17, 18, 0.9));
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-viewport {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  width: 100%;
  height: 100%;
  border: 0;
  box-sizing: border-box;
  padding: 18px;
  background: transparent;
  overflow: hidden;
  touch-action: auto;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-placement-stage {
  position: relative;
  top: auto;
  left: auto;
  display: inline-block;
  width: max-content;
  max-width: none;
  flex: 0 0 auto;
  transform: none;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-player-grid {
  --battleship-cell-size: min(var(--fleet-cell-width, 44px), var(--fleet-cell-height, 34px));
  grid-template-columns: 28px repeat(20, var(--fleet-cell-width, 44px));
  grid-auto-rows: var(--fleet-cell-height, 34px);
  margin: 0 auto;
  max-width: none;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell {
  width: var(--fleet-cell-width, 44px);
  height: var(--fleet-cell-height, 34px);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-dock {
  align-self: stretch;
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 12px;
  min-height: 0;
  height: calc(100% + 54px);
  margin-top: -54px;
  border: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-selected,
.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-ship-list,
.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-rules {
  border: 1px solid rgba(71, 155, 164, 0.44);
  border-radius: 6px;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(5, 25, 28, 0.92), rgba(3, 15, 16, 0.96));
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-selected {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: 176px;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-selected > strong {
  max-width: 190px;
  font-size: 1.38rem;
  line-height: 1.05;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-preview-status {
  min-height: 42px;
  border-radius: 5px;
  padding: 10px 12px;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-ship-list {
  align-content: start;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
  padding: 12px 14px;
  overflow: hidden;
  min-height: 0;
  max-height: none;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-ship-card {
  min-height: 50px;
  border-color: rgba(112, 162, 159, 0.45);
  border-radius: 5px;
  padding: 7px 9px;
  background: linear-gradient(90deg, rgba(8, 31, 34, 0.96), rgba(9, 19, 20, 0.92));
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-rules {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-color: rgba(214, 155, 68, 0.58);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-validation {
  max-height: 88px;
  overflow: auto;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-submit-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 0;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-submit-actions button {
  min-height: 46px;
  border-radius: 5px;
}

/* UAB chunk 3C: fleet planner should read as a placement map, not a full-color challenge board. */
.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board-workspace {
  background:
    radial-gradient(circle at 44% 46%, rgba(0, 180, 200, 0.13), transparent 36%),
    linear-gradient(180deg, rgba(3, 23, 27, 0.9), rgba(3, 15, 18, 0.96));
  background-size: auto, auto;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-coordinate-label {
  color: rgba(216, 236, 232, 0.86);
  font-size: 0.72rem;
  text-shadow: 0 0 8px rgba(41, 223, 255, 0.18);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell {
  border-color: rgba(115, 157, 151, 0.5);
  color: rgba(240, 247, 242, 0.66);
  background:
    radial-gradient(circle at 50% 50%, rgba(38, 225, 255, 0.18) 0 2px, transparent 3px),
    linear-gradient(180deg, rgba(11, 45, 48, 0.72), rgba(4, 23, 25, 0.84));
  box-shadow: inset 0 0 0 1px rgba(192, 231, 225, 0.035);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell img {
  opacity: 0.28;
  filter: saturate(0.8) contrast(0.9) brightness(0.7);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell span,
.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell strong {
  opacity: 0.72;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell[data-difficulty="common"] {
  border-color: rgba(186, 202, 194, 0.45);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell[data-difficulty="uncommon"] {
  border-color: rgba(34, 255, 128, 0.72);
  box-shadow: inset 0 0 0 1px rgba(34, 255, 128, 0.16);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell[data-difficulty="rare"] {
  border-color: rgba(63, 156, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(63, 156, 255, 0.16);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell[data-difficulty="epic"] {
  border-color: rgba(188, 103, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(188, 103, 255, 0.18);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell[data-difficulty="legendary"] {
  border-color: rgba(255, 171, 43, 0.76);
  box-shadow: inset 0 0 0 1px rgba(255, 171, 43, 0.18);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell.fleet-preview-valid,
.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell.fleet-preview-invalid,
.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell[data-status="own-ship"] {
  color: rgba(255, 255, 255, 0.9);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell[data-status="own-ship"] {
  border-color: rgba(46, 229, 255, 0.98);
  background:
    radial-gradient(circle at 50% 50%, rgba(46, 229, 255, 0.24) 0 3px, transparent 4px),
    linear-gradient(180deg, rgba(11, 58, 64, 0.78), rgba(4, 27, 31, 0.88));
  box-shadow:
    inset 0 0 0 2px rgba(46, 229, 255, 0.78),
    inset 0 0 20px rgba(34, 211, 238, 0.2),
    0 0 16px rgba(34, 211, 238, 0.28);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell.fleet-selected-ship-cell {
  box-shadow:
    inset 0 0 0 2px rgba(46, 229, 255, 0.86),
    inset 0 0 22px rgba(34, 211, 238, 0.24),
    0 0 18px rgba(46, 229, 255, 0.46);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell.fleet-preview-valid img,
.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell.fleet-preview-invalid img,
.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell[data-status="own-ship"] img {
  opacity: 0.44;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell[data-status="own-ship"]::before {
  inset: 4px 3px;
  border-radius: 999px;
  border-color: rgba(113, 244, 255, 0.92);
  background:
    linear-gradient(90deg, rgba(207, 250, 254, 0.32) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 50%, rgba(46, 229, 255, 0.32), rgba(8, 145, 178, 0.08) 68%, transparent 70%);
  background-size: 12px 100%, 100% 100%;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell[data-status="own-ship"]::after,
.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell.fleet-preview-valid::after,
.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell.fleet-preview-invalid::after {
  content: "";
  position: absolute;
  inset: 11px 9px;
  z-index: 3;
  pointer-events: none;
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 0 16%, rgba(216, 252, 255, 0.7) 16% 20%, transparent 20% 38%, rgba(216, 252, 255, 0.6) 38% 42%, transparent 42% 64%, rgba(216, 252, 255, 0.55) 64% 68%, transparent 68%),
    linear-gradient(180deg, rgba(236, 254, 255, 0.86), rgba(35, 217, 241, 0.35) 50%, rgba(3, 84, 103, 0.28));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    0 0 10px rgba(46, 229, 255, 0.34);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell[data-ship-orientation="horizontal"][data-ship-segment="start"]::before,
.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell[data-preview-orientation="horizontal"][data-preview-segment="start"]::before {
  right: -3px;
  border-radius: 999px 3px 3px 999px;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell[data-ship-orientation="horizontal"][data-ship-segment="middle"]::before,
.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell[data-preview-orientation="horizontal"][data-preview-segment="middle"]::before {
  left: -3px;
  right: -3px;
  border-radius: 2px;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell[data-ship-orientation="horizontal"][data-ship-segment="end"]::before,
.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell[data-preview-orientation="horizontal"][data-preview-segment="end"]::before {
  left: -3px;
  border-radius: 3px 999px 999px 3px;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell[data-ship-orientation="vertical"][data-ship-segment="start"]::before,
.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell[data-preview-orientation="vertical"][data-preview-segment="start"]::before {
  bottom: -3px;
  border-radius: 999px 999px 3px 3px;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell[data-ship-orientation="vertical"][data-ship-segment="middle"]::before,
.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell[data-preview-orientation="vertical"][data-preview-segment="middle"]::before {
  top: -3px;
  bottom: -3px;
  border-radius: 2px;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell[data-ship-orientation="vertical"][data-ship-segment="end"]::before,
.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell[data-preview-orientation="vertical"][data-preview-segment="end"]::before {
  top: -3px;
  border-radius: 3px 3px 999px 999px;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell.fleet-preview-valid::after {
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(225, 255, 224, 0.78) 18% 22%, transparent 22% 60%, rgba(225, 255, 224, 0.62) 60% 65%, transparent 65%),
    linear-gradient(180deg, rgba(220, 255, 220, 0.82), rgba(77, 255, 77, 0.34) 55%, rgba(14, 95, 34, 0.26));
  box-shadow: 0 0 12px rgba(77, 255, 77, 0.34);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell.fleet-preview-invalid::after {
  background:
    repeating-linear-gradient(135deg, rgba(255, 232, 226, 0.58) 0 3px, transparent 3px 7px),
    linear-gradient(180deg, rgba(255, 194, 186, 0.72), rgba(255, 77, 66, 0.28));
  box-shadow: 0 0 12px rgba(255, 77, 66, 0.36);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell.fleet-preview-invalid::before {
  border-color: rgba(255, 199, 190, 0.95);
  background:
    repeating-linear-gradient(135deg, rgba(255, 92, 74, 0.32) 0 4px, rgba(70, 8, 8, 0.18) 4px 8px),
    linear-gradient(180deg, rgba(255, 77, 66, 0.32), rgba(78, 13, 13, 0.18));
  box-shadow:
    inset 0 0 0 1px rgba(255, 225, 220, 0.28),
    0 0 16px rgba(255, 77, 66, 0.5);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-board-cell.fleet-preview-anchor::after {
  outline: 2px solid rgba(255, 236, 169, 0.9);
  outline-offset: 3px;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-ship-card > i,
.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-selected-ship-preview {
  --ship-unit: 12px;
  position: relative;
  min-height: 14px;
  width: min(100%, calc((var(--ship-length, 1) * var(--ship-unit)) + 10px));
  overflow: visible;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-selected-ship-preview {
  --ship-unit: 26px;
  width: min(170px, calc((var(--ship-length, 1) * var(--ship-unit)) + 14px));
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-ship-card > i::before,
.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-selected-ship-preview::before {
  content: "";
  position: absolute;
  left: 0;
  right: auto;
  width: 100%;
  top: 50%;
  height: 9px;
  transform: translateY(-50%);
  border: 1px solid rgba(46, 229, 255, 0.86);
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(7, 42, 52, 0.08), rgba(89, 237, 255, 0.48) 18% 74%, rgba(7, 42, 52, 0.1)),
    linear-gradient(180deg, rgba(220, 252, 255, 0.36), rgba(6, 107, 131, 0.22));
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.32);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-ship-card > i b,
.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-selected-ship-preview b {
  position: relative;
  z-index: 1;
  opacity: 0.45;
}

@media (max-width: 1180px) {
  .battleship-fleet-layout,
  .battleship-organizer-fleet-layout {
    grid-template-columns: 1fr;
  }

  .battleship-ship-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .battleship-fleet-workspace,
  .battleship-organizer-fleet {
    padding: 10px;
  }

  .battleship-fleet-header,
  .battleship-fleet-board-heading {
    display: grid;
    align-items: stretch;
  }

  .battleship-fleet-board-workspace {
    grid-template-rows: auto minmax(440px, 64vh);
  }

  .battleship-fleet-totals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .battleship-fleet-totals span:nth-child(2) {
    border-right: 0;
  }

  .battleship-fleet-totals span:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(71, 155, 164, 0.2);
  }

  .battleship-ship-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .battleship-match-heading,
  .battleship-match-actions {
    display: grid;
  }

  .battleship-wom-heading,
  .battleship-wom-columns {
    grid-template-columns: 1fr;
  }

  .battleship-wom-heading {
    display: grid;
    align-items: stretch;
  }

  .battleship-wom-participant,
  .battleship-wom-checkpoints article {
    grid-template-columns: 1fr;
  }

  .battleship-match-fields,
  .battleship-match-checks {
    grid-template-columns: 1fr;
  }

  .battleship-match-checks span {
    min-height: 48px;
    border-right: 0;
    border-bottom: 1px solid rgba(71, 155, 164, 0.18);
  }

  .battleship-match-checks span:last-child {
    border-bottom: 0;
  }

  .battleship-admin-dashboard-heading,
  .battleship-admin-dashboard-heading > div,
  .battleship-admin-fleet-card > div:first-child {
    display: grid;
    align-items: stretch;
  }

  .battleship-admin-kpis,
  .battleship-admin-fleets,
  .battleship-admin-columns,
  .battleship-admin-wom,
  .battleship-admin-ship-list {
    grid-template-columns: 1fr;
  }

  .battleship-admin-kpis span {
    border-right: 0;
    border-bottom: 1px solid rgba(71, 155, 164, 0.2);
  }

  .battleship-admin-kpis span:last-child { border-bottom: 0; }

  .battleship-admin-history article {
    grid-template-columns: 1fr;
  }
}

.organizer-mode[data-admin-section="cards"] .builder-live-board-frame .osrs-battleship-board {
  width: 1180px;
  min-height: 820px;
}

@media (max-width: 720px) {
  .osrs-battleship-board .battleship-module-view,
  .battleship-empty-view {
    min-height: 420px;
  }

  .battleship-empty-grid {
    inset: 12px;
  }

  .battleship-match-score,
  .battleship-player-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .battleship-match-control-actions {
    display: grid;
  }
}

.proof-slot-panel {
  display: grid;
  gap: 10px;
}

.proof-slot-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
}

.proof-slot-heading strong {
  color: var(--text);
}

.proof-slot-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(214, 155, 68, 0.28);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.proof-slot-card h4 {
  margin: 0;
  color: #f4d7a3;
  font-size: 1rem;
}

.proof-slot-status {
  width: fit-content;
  border: 1px solid rgba(214, 155, 68, 0.28);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.24);
  font-size: 0.74rem;
}

.proof-slot-status.approved {
  border-color: rgba(51, 194, 118, 0.5);
  color: #c9f5d7;
  background: rgba(51, 194, 118, 0.18);
}

.proof-slot-status.rejected {
  border-color: rgba(212, 68, 61, 0.58);
  color: #ffd5cd;
  background: rgba(86, 22, 20, 0.32);
}

.proof-slot-preview {
  min-height: 0;
  display: grid;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: center;
}

.proof-slot-preview:hover {
  box-shadow: none;
}

.proof-slot-preview img {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
  border: 1px solid rgba(214, 155, 68, 0.28);
  border-radius: 6px;
  padding: 6px;
  background: rgba(0, 0, 0, 0.32);
}

.proof-slot-preview span,
.proof-slot-empty,
.proof-slot-reason {
  color: var(--muted);
  font-size: 0.82rem;
}

.proof-slot-reason {
  margin: 0;
  color: #ffd5cd;
}

.proof-slot-empty {
  margin: 0;
  border: 1px dashed rgba(214, 155, 68, 0.3);
  border-radius: 6px;
  padding: 14px;
  text-align: center;
  background: rgba(0, 0, 0, 0.18);
}

.proof-slot-card input[type="file"] {
  padding: 8px;
}

.proof-slot-card button {
  width: fit-content;
}

.proof-slot-admin {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(214, 155, 68, 0.22);
  border-radius: 8px;
  padding: 10px;
  background: rgba(214, 155, 68, 0.05);
}

.proof-slot-admin label {
  display: grid;
  gap: 5px;
  color: var(--muted);
}

.dialog-proof-link {
  justify-self: center;
  margin-top: 10px;
}

.rejection-note {
  width: 100%;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(212, 68, 61, 0.48);
  border-radius: 6px;
  padding: 10px;
  background: rgba(86, 22, 20, 0.32);
  color: #ffd5cd;
  text-align: left;
}

.rejection-note strong {
  color: #ffb4a8;
}

.dialog-actions {
  display: grid;
  gap: 8px;
}

.reset-dialog-card {
  width: min(480px, calc(100vw - 28px));
}

.reset-dialog-actions {
  grid-template-columns: 1fr 1fr;
}

.image-zoom-dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.image-zoom-dialog {
  width: min(1120px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  max-height: calc(100vh - 36px);
  overflow: hidden;
}

.image-zoom-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  max-height: calc(100vh - 36px);
  padding: 18px;
  overflow: hidden;
}

.image-zoom-frame {
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  max-height: calc(100vh - 170px);
  overflow: hidden;
  border: 1px solid rgba(214, 155, 68, 0.28);
  border-radius: 6px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.36);
}

.image-zoom-frame img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 190px);
  object-fit: contain;
}

.special-audio-dialog {
  width: min(520px, calc(100vw - 28px));
}

.special-audio-card {
  width: 100%;
  padding: 44px 18px 18px;
}

.special-audio-cover {
  width: min(320px, 100%);
  max-height: 420px;
  justify-self: center;
  object-fit: contain;
  border: 1px solid rgba(214, 155, 68, 0.35);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.36);
}

.special-audio-frame {
  width: 100%;
  border: 1px solid rgba(214, 155, 68, 0.35);
  border-radius: 8px;
  overflow: hidden;
  padding: 14px;
  background: rgba(0, 0, 0, 0.54);
}

.special-audio-frame audio {
  width: 100%;
  display: block;
}

.dialog-actions label {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .misty-board {
    grid-template-columns: 1fr;
  }

  .lane {
    grid-template-columns: 92px repeat(4, minmax(90px, 1fr)) 240px;
    gap: 12px;
  }

  .second-board {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  }

  .secondary-grid-panel {
    --grid-card-size: clamp(58px, 8.8vw, 76px);
    --grid-card-height: clamp(70px, 10vw, 92px);
    --grid-card-font: clamp(0.58rem, 1.2vw, 0.74rem);
    --grid-card-image: clamp(26px, 4.8vw, 38px);
  }

  .secondary-grid-panel[data-grid-size="4"] {
    --grid-card-size: clamp(52px, 7.6vw, 66px);
    --grid-card-height: clamp(64px, 9vw, 80px);
  }

  .secondary-grid-panel[data-grid-size="5"] {
    --grid-card-size: clamp(46px, 6.8vw, 58px);
    --grid-card-height: clamp(58px, 8vw, 72px);
  }

  .secondary-grid-panel[data-grid-cols="5"][data-grid-rows="5"] {
    --grid-card-size: clamp(40px, 5.8vw, 50px);
    --grid-card-height: clamp(52px, 7vw, 64px);
  }

  .secondary-grid-panel[data-grid-rows="3"] {
    --grid-card-height: clamp(70px, 10vw, 92px);
  }

  .secondary-grid-panel[data-grid-rows="4"] {
    --grid-card-height: clamp(64px, 9vw, 80px);
  }

  .secondary-grid-panel[data-grid-rows="5"] {
    --grid-card-height: clamp(52px, 7vw, 64px);
  }

  .line-wheel {
    width: 240px;
  }

  .wheel-card-1 {
    clip-path: polygon(50% 50%, 36.2% 1.9%, 91.5% 22%);
    clip-path: path("M 120 120 L 86.9 4.6 A 120 120 0 0 1 219.5 52.9 Z");
  }

  .wheel-card-2 {
    clip-path: polygon(50% 50%, 91.5% 22%, 89.4% 80.8%);
    clip-path: path("M 120 120 L 219.5 52.9 A 120 120 0 0 1 214.6 193.9 Z");
  }

  .wheel-card-3 {
    clip-path: polygon(50% 50%, 89.4% 80.8%, 32.9% 97%);
    clip-path: path("M 120 120 L 214.6 193.9 A 120 120 0 0 1 79 232.8 Z");
  }

  .wheel-card-4 {
    clip-path: polygon(50% 50%, 32.9% 97%, 0% 48.3%);
    clip-path: path("M 120 120 L 79 232.8 A 120 120 0 0 1 0.1 115.8 Z");
  }

  .wheel-card-5 {
    clip-path: polygon(50% 50%, 0% 48.3%, 36.2% 1.9%);
    clip-path: path("M 120 120 L 0.1 115.8 A 120 120 0 0 1 86.9 4.6 Z");
  }
}

@media (max-width: 760px) {
  .board-view {
    padding: 10px;
  }

  .admin-status-summary {
    grid-template-columns: 1fr;
  }

  .admin-section-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-section-heading {
    display: grid;
    justify-content: stretch;
  }

  .team-progress-row {
    grid-template-columns: 1fr auto;
  }

  .team-progress-meter,
  .team-progress-badges {
    grid-column: 1 / -1;
  }

  .team-progress-badges {
    justify-content: flex-start;
  }

  .topbar,
  .organizer-panel,
  .asset-manager,
  .topbar-center,
  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .organizer-panel-header,
  .organizer-workspace {
    grid-template-columns: 1fr;
  }

  .organizer-panel-header {
    display: grid;
  }

  .organizer-panel-header button {
    justify-self: start;
  }

  .asset-manager-header {
    display: grid;
  }

  .asset-manager-header button {
    justify-self: start;
  }

  .team-codeword-panel {
    width: 100%;
  }

  .countdown-panel {
    margin-top: 26px;
  }

  .countdown-digits {
    gap: 5px;
  }

  .countdown-segment {
    padding-inline: 4px;
  }

  .countdown-segment::before,
  .countdown-segment::after {
    width: 8px;
  }

  .countdown-segment::before {
    left: -7px;
  }

  .countdown-segment::after {
    right: -7px;
  }

  .approval-alert {
    justify-self: stretch;
    max-width: none;
  }

  .misty-board {
    min-height: auto;
    padding: 12px;
  }

  .second-board {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .secondary-grid-panel {
    --grid-card-size: clamp(58px, 18vw, 78px);
    --grid-card-height: clamp(70px, 21vw, 94px);
    --grid-card-font: clamp(0.56rem, 2.45vw, 0.72rem);
    --grid-card-image: clamp(24px, 8.4vw, 38px);
  }

  .secondary-grid-panel[data-grid-size="4"] {
    --grid-card-size: clamp(50px, 14vw, 64px);
    --grid-card-height: clamp(62px, 17vw, 78px);
  }

  .secondary-grid-panel[data-grid-size="5"] {
    --grid-card-size: clamp(44px, 12.2vw, 56px);
    --grid-card-height: clamp(56px, 15vw, 70px);
  }

  .secondary-grid-panel[data-grid-cols="5"][data-grid-rows="5"] {
    --grid-card-size: clamp(38px, 10.4vw, 48px);
    --grid-card-height: clamp(50px, 13vw, 62px);
  }

  .secondary-grid-panel[data-grid-rows="3"] {
    --grid-card-height: clamp(70px, 21vw, 94px);
  }

  .secondary-grid-panel[data-grid-rows="4"] {
    --grid-card-height: clamp(62px, 17vw, 78px);
  }

  .secondary-grid-panel[data-grid-rows="5"] {
    --grid-card-height: clamp(50px, 13vw, 62px);
  }

  .lane {
    grid-template-columns: 1fr;
  }

  .grid-size-row {
    grid-template-columns: 1fr 1fr;
  }

  .grid-size-row span,
  .grid-size-row input[type="text"],
  .grid-size-row button {
    grid-column: 1 / -1;
  }

  .grid-dimension-field {
    grid-column: auto;
  }

  .grid-size-row span {
    grid-row: auto;
  }

  .page-turn-button {
    top: auto;
    right: 14px;
    bottom: 14px;
    width: auto;
    height: 42px;
    padding: 0 14px;
    writing-mode: horizontal-tb;
    transform: none;
    border-radius: 6px;
  }

  .board-title::before,
  .board-title::after {
    display: none;
  }

  .lane-label,
  .item-card {
    min-height: 120px;
  }

  .item-card.grid-card {
    min-height: 0;
    height: var(--grid-card-height);
    padding: 4px;
    gap: 1px;
  }

  .item-card.grid-card h4 {
    max-height: 2.2em;
    font-size: var(--grid-card-font);
    line-height: 1.05;
    -webkit-line-clamp: 2;
  }

  .item-card.grid-card .item-art {
    height: var(--grid-card-image);
    max-height: calc(var(--grid-card-height) * 0.44);
  }

  .square-card {
    aspect-ratio: auto;
  }

  .line-wheel {
    justify-self: center;
    width: 280px;
    max-width: 100%;
  }

  .wheel-card-1 {
    clip-path: polygon(50% 50%, 36.2% 1.9%, 91.5% 22%);
    clip-path: path("M 140 140 L 101.4 5.4 A 140 140 0 0 1 256.1 61.7 Z");
  }

  .wheel-card-2 {
    clip-path: polygon(50% 50%, 91.5% 22%, 89.4% 80.8%);
    clip-path: path("M 140 140 L 256.1 61.7 A 140 140 0 0 1 250.3 226.2 Z");
  }

  .wheel-card-3 {
    clip-path: polygon(50% 50%, 89.4% 80.8%, 32.9% 97%);
    clip-path: path("M 140 140 L 250.3 226.2 A 140 140 0 0 1 92.1 271.6 Z");
  }

  .wheel-card-4 {
    clip-path: polygon(50% 50%, 32.9% 97%, 0% 48.3%);
    clip-path: path("M 140 140 L 92.1 271.6 A 140 140 0 0 1 0.1 135.1 Z");
  }

  .wheel-card-5 {
    clip-path: polygon(50% 50%, 0% 48.3%, 36.2% 1.9%);
    clip-path: path("M 140 140 L 0.1 135.1 A 140 140 0 0 1 101.4 5.4 Z");
  }

  .pin-row {
    grid-template-columns: 1fr;
  }
}

/* Admin app rebuild: keep game theming on the board, not on operations UI. */
.board-view.organizer-mode {
  min-height: 100vh;
  padding: 0;
  background:
    radial-gradient(circle at 24% 18%, rgba(63, 103, 88, 0.14), transparent 28%),
    linear-gradient(135deg, #07100f, #0c1512 48%, #080d0d);
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.organizer-mode .topbar {
  display: none;
}

.organizer-mode .admin-console {
  width: min(1600px, calc(100vw - 32px));
  min-height: calc(100vh - 32px);
  margin: 16px auto;
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  overflow: hidden;
  border-color: rgba(191, 174, 145, 0.22);
  border-radius: 8px;
  padding: 0;
  background: rgba(10, 18, 16, 0.94);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.organizer-mode .organizer-panel-header {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  gap: 16px;
  align-content: start;
  min-height: 104px;
  border-right: 1px solid rgba(191, 174, 145, 0.2);
  border-bottom: 1px solid rgba(191, 174, 145, 0.16);
  padding: 22px 24px 18px;
  background: rgba(5, 9, 8, 0.54);
}

.admin-brand {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
}

.admin-brand-mark {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(214, 155, 68, 0.58);
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  background: rgba(214, 155, 68, 0.08);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.28);
}

.admin-brand h3 {
  color: #f4efe4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
}

.admin-brand p {
  margin: 2px 0 0;
  color: #f2c84b;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.organizer-mode #organizerPanelToggle {
  width: fit-content;
  min-height: 32px;
  padding: 0 10px;
  color: #aeb7ad;
  background: rgba(255, 255, 255, 0.04);
}

.organizer-mode .organizer-panel-body,
.organizer-mode .admin-console-layout {
  display: contents;
}

.organizer-mode .admin-section-nav {
  grid-column: 1;
  grid-row: 2;
  position: static;
  align-content: start;
  border: 0;
  border-right: 1px solid rgba(191, 174, 145, 0.2);
  border-radius: 0;
  padding: 14px 16px;
  background:
    linear-gradient(rgba(7, 13, 12, 0.74), rgba(7, 13, 12, 0.9)),
    radial-gradient(circle at 50% 86%, rgba(91, 125, 104, 0.24), transparent 32%);
}

.organizer-mode .admin-nav-button {
  min-height: 56px;
  border-radius: 6px;
  padding: 0 18px;
  color: #e8ece5;
  background: transparent;
  font-size: 1rem;
  font-weight: 650;
}

.organizer-mode .admin-nav-button.active,
.organizer-mode .admin-nav-button:hover {
  border-color: rgba(230, 188, 70, 0.78);
  color: #ffd84d;
  background: linear-gradient(90deg, rgba(214, 155, 68, 0.22), rgba(214, 155, 68, 0.08));
}

.admin-sidebar-footer {
  grid-column: 1;
  grid-row: 3;
  display: grid;
  gap: 5px;
  border-right: 1px solid rgba(191, 174, 145, 0.2);
  border-top: 1px solid rgba(191, 174, 145, 0.16);
  padding: 18px 24px;
  color: #dde3dc;
  background: rgba(5, 9, 8, 0.54);
}

.admin-sidebar-footer span {
  color: #9fa9a0;
  font-size: 0.86rem;
}

.admin-main {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: grid;
  grid-template-rows: 104px minmax(0, 1fr);
  min-width: 0;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid rgba(191, 174, 145, 0.18);
  padding: 18px 30px;
  background: rgba(8, 15, 14, 0.72);
}

.admin-toolbar-field {
  display: grid;
  gap: 7px;
}

.admin-toolbar-field span,
.organizer-mode .admin-section .eyebrow {
  color: #d6c288;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-toolbar-field select {
  min-height: 44px;
  border-color: rgba(191, 174, 145, 0.26);
  background: rgba(255, 255, 255, 0.04);
  color: #f4efe4;
}

.admin-toolbar-actions,
.login-builder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.organizer-mode .admin-toolbar-actions button,
.organizer-mode .admin-action-panel button,
.organizer-mode .login-builder-actions button {
  border-color: rgba(214, 155, 68, 0.4);
  color: #f6e8c5;
  background: rgba(214, 155, 68, 0.12);
}

.organizer-mode .admin-content-stack {
  min-height: 0;
  overflow: auto;
  padding: 24px 30px 28px;
}

.organizer-mode .admin-console-section.active {
  gap: 16px;
}

.organizer-mode .admin-section-heading {
  border: 0;
  padding: 0;
}

.organizer-mode .admin-section-heading h3 {
  color: #f4f7f2;
  font-size: 1.8rem;
  font-weight: 750;
}

.organizer-mode .admin-section-heading p {
  margin: 6px 0 0;
  color: #b6c0b8;
  font-size: 0.96rem;
}

.organizer-mode .admin-status-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.organizer-mode .admin-stat-card,
.organizer-mode .admin-section,
.organizer-mode .admin-work-card {
  border-color: rgba(191, 174, 145, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  box-shadow: none;
}

.organizer-mode .admin-overview-grid {
  grid-template-columns: minmax(460px, 1.45fr) minmax(240px, 0.65fr) minmax(260px, 0.65fr);
}

.organizer-mode .team-progress-row,
.admin-pending-row {
  border-color: rgba(191, 174, 145, 0.16);
  background: rgba(255, 255, 255, 0.025);
}

.organizer-mode .team-progress-row {
  grid-template-columns: minmax(130px, 0.9fr) minmax(120px, 1fr) auto;
}

.organizer-mode .team-progress-badges {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.organizer-mode .team-progress-meter i {
  background: linear-gradient(90deg, #f2c84b, #d69b44);
}

.admin-pending-overview {
  display: grid;
  gap: 8px;
}

.admin-pending-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  text-align: left;
}

.admin-pending-row strong {
  color: #ffd84d;
}

.admin-empty-state {
  margin: 0;
  border: 1px dashed rgba(191, 174, 145, 0.22);
  border-radius: 6px;
  padding: 18px;
  color: #9fa9a0;
  text-align: center;
}

.login-builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 14px;
}

.upload-validation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 14px;
  align-items: start;
}

.upload-validation-settings {
  display: grid;
  gap: 16px;
}

.upload-validation-settings > label:not(.upload-validation-toggle) {
  display: grid;
  gap: 7px;
  color: #b6c0b8;
  font-size: 0.88rem;
}

.upload-validation-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(214, 155, 68, 0.34);
  border-radius: 8px;
  padding: 14px;
  background: rgba(3, 8, 7, 0.36);
  cursor: pointer;
}

.upload-validation-toggle input {
  width: 20px;
  height: 20px;
  accent-color: #d6a13b;
}

.upload-validation-toggle span,
.upload-validation-status-card {
  display: grid;
  gap: 4px;
}

.upload-validation-toggle strong,
.upload-validation-status-card > strong {
  color: #f6e8c5;
}

.upload-validation-toggle small,
.upload-validation-status-card > span {
  color: #aeb8b0;
}

.upload-validation-status-card {
  min-height: 150px;
  align-content: start;
}

.login-builder-layout label {
  display: grid;
  gap: 7px;
  color: #b6c0b8;
  font-size: 0.88rem;
}

.login-mist-toggle {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px !important;
  align-items: center;
  border: 1px solid rgba(214, 155, 68, 0.34);
  border-radius: 8px;
  padding: 14px;
  background: rgba(3, 8, 7, 0.36);
  cursor: pointer;
}

.login-mist-toggle input {
  width: 20px;
  height: 20px;
  accent-color: #d6a13b;
}

.login-mist-toggle span {
  display: grid;
  gap: 4px;
}

.login-mist-toggle strong {
  color: #f6e8c5;
}

.login-mist-toggle small {
  color: #aeb8b0;
}

.login-background-tools {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(172, 121, 35, 0.36);
  border-radius: 8px;
  padding: 12px;
  background: rgba(3, 8, 7, 0.36);
}

.login-background-tools .eyebrow {
  margin: 0;
}

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

.login-theme-preview {
  --login-accent: var(--gold);
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  min-height: 360px;
  border: 1px solid rgba(191, 174, 145, 0.22);
  border-radius: 8px;
  padding: 28px;
  overflow: hidden;
  color: #f7e4b7;
  text-align: center;
  background:
    linear-gradient(rgba(5, 8, 8, 0.68), rgba(5, 8, 8, 0.9)),
    radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--login-accent) 28%, transparent), transparent 28%),
    #07100f;
}

.login-theme-preview::after {
  content: "";
  position: absolute;
  inset: -18%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.48;
  background:
    radial-gradient(ellipse at 22% 74%, rgba(210, 214, 200, 0.28), transparent 35%),
    radial-gradient(ellipse at 54% 68%, rgba(210, 214, 200, 0.22), transparent 38%),
    radial-gradient(ellipse at 78% 42%, rgba(210, 214, 200, 0.16), transparent 34%);
  filter: blur(14px);
  animation: driftMist 38s linear infinite;
}

.login-theme-preview > * {
  position: relative;
  z-index: 1;
}

.login-theme-preview.login-mist-disabled::after {
  display: none;
}

.login-theme-preview strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.4rem;
}

.login-theme-preview button {
  border-color: var(--login-accent);
}

.login-view {
  --login-accent: var(--gold);
}

.login-view[data-login-theme="forest"],
.login-theme-preview[data-login-theme="forest"] {
  background:
    linear-gradient(rgba(5, 8, 8, 0.54), rgba(5, 8, 8, 0.92)),
    radial-gradient(circle at 38% 18%, color-mix(in srgb, var(--login-accent) 22%, transparent), transparent 25%),
    linear-gradient(135deg, #07120d, #15231c 48%, #060908);
}

.login-view[data-login-theme="ember"],
.login-theme-preview[data-login-theme="ember"] {
  background:
    radial-gradient(circle at 50% 70%, color-mix(in srgb, var(--login-accent) 34%, transparent), transparent 28%),
    linear-gradient(145deg, #130807, #24110c 52%, #080606);
}

.login-view[data-login-theme="minimal"],
.login-theme-preview[data-login-theme="minimal"] {
  background: linear-gradient(145deg, #080c0d, #121718 52%, #060809);
}

.login-theme-preview.has-custom-login-background {
  background:
    linear-gradient(rgba(5, 8, 8, 0.48), rgba(5, 8, 8, 0.88)),
    radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--login-accent) 24%, transparent), transparent 28%),
    var(--custom-login-bg-image) center / cover no-repeat;
}

.organizer-mode:not([data-admin-section="cards"]) .misty-board {
  display: none;
}

.organizer-mode:not([data-admin-section="cards"]) .admin-team-preview .admin-team-live-preview {
  display: grid;
}

.admin-team-live-preview {
  width: 100%;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  opacity: 1;
  grid-template-columns: minmax(0, 1fr);
  padding: clamp(16px, 2vw, 24px);
}

.organizer-mode[data-admin-section="overview"] .admin-team-live-preview {
  max-height: none;
  opacity: 1;
}

.organizer-mode[data-admin-section="overview"] .admin-team-live-preview::after {
  display: none;
}

.organizer-mode[data-admin-section="overview"] .admin-team-live-preview .board-content {
  transform: none;
}

.admin-team-live-preview .board-title {
  margin-bottom: clamp(22px, 3vw, 38px);
}

.admin-team-live-preview .board-title h2 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.admin-team-live-preview .lanes {
  gap: clamp(24px, 3.6vw, 44px);
}

.admin-team-live-preview .lane {
  grid-template-columns:
    clamp(72px, 8vw, 104px)
    repeat(4, clamp(86px, 10vw, 124px))
    clamp(190px, 22vw, 270px);
  gap: clamp(12px, 1.6vw, 20px);
}

.admin-team-live-preview .lane-label {
  height: clamp(78px, 8.4vw, 108px);
  font-size: clamp(0.8rem, 1.3vw, 1.05rem);
}

.admin-team-live-preview .lane-label::before {
  width: clamp(34px, 4vw, 48px);
}

.admin-team-live-preview .square-card {
  height: clamp(100px, 11vw, 142px);
}

.admin-team-live-preview .line-wheel {
  width: min(100%, clamp(190px, 22vw, 270px));
}

.admin-team-live-preview .wheel-card h4 {
  width: clamp(62px, 6.2vw, 84px);
  font-size: clamp(0.48rem, 0.68vw, 0.62rem);
}

.admin-team-live-preview .wheel-card .item-art {
  width: 13%;
  height: 10%;
}

.admin-team-live-preview .proof-preview {
  display: none;
}

.admin-standard-bingo-preview .proof-preview {
  display: inline-grid;
}

.standard-bingo-preview-shell {
  display: grid;
  place-items: start center;
  overflow: auto;
}

.standard-bingo-preview-shell .admin-standard-bingo-preview {
  width: min(1120px, 100%);
  min-height: 820px;
}

.standard-bingo-preview-shell .admin-standard-bingo-grid {
  width: min(820px, 92%);
  gap: clamp(10px, 1.35vw, 16px);
}

.organizer-mode[data-admin-section="cards"] .misty-board {
  width: min(1600px, calc(100vw - 32px));
  margin: 0 auto 24px;
}

.organizer-mode[data-admin-section="cards"] .admin-toolbar {
  display: none;
}

.organizer-mode[data-admin-section="cards"] .admin-console {
  width: 100%;
  height: 100vh;
  min-height: 0;
  margin: 0;
  grid-template-columns: 220px minmax(0, 1fr);
  border-radius: 0;
  border-left: 0;
  border-right: 0;
}

html:has(.board-view.organizer-mode[data-admin-section="cards"]:not(.hidden)),
body:has(.board-view.organizer-mode[data-admin-section="cards"]:not(.hidden)) {
  overflow: hidden;
}

.board-view.organizer-mode[data-admin-section="cards"] {
  height: 100vh;
  overflow: hidden;
}

.organizer-mode[data-admin-section="cards"] .organizer-panel-header {
  min-height: 86px;
  padding: 16px;
}

.organizer-mode[data-admin-section="cards"] .admin-brand {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
}

.organizer-mode[data-admin-section="cards"] .admin-brand-mark {
  width: 44px;
  height: 44px;
}

.organizer-mode[data-admin-section="cards"] .admin-brand h3 {
  font-size: 1.08rem;
}

.organizer-mode[data-admin-section="cards"] .admin-brand p {
  font-size: 0.66rem;
}

.organizer-mode[data-admin-section="cards"] .admin-section-nav {
  padding: 10px;
}

.organizer-mode[data-admin-section="cards"] .admin-nav-button {
  min-height: 48px;
  padding: 0 10px;
  gap: 9px;
  font-size: 0.88rem;
}

.organizer-mode[data-admin-section="cards"] .admin-sidebar-footer {
  padding: 12px 14px;
}

.organizer-mode[data-admin-section="cards"] .admin-main {
  grid-template-rows: minmax(0, 1fr);
}

.organizer-mode[data-admin-section="cards"] .admin-content-stack {
  min-height: 0;
  height: 100%;
  padding: 8px 10px 10px;
  overflow: hidden;
}

.organizer-mode[data-admin-section="cards"] .admin-console-section.active {
  min-height: 0;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  gap: 6px;
}

.organizer-mode[data-admin-section="cards"] .admin-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
}

.organizer-mode[data-admin-section="cards"] .admin-section-heading h3 {
  font-size: 1.12rem;
}

.organizer-mode[data-admin-section="cards"] .admin-section-heading p {
  display: none;
}

.organizer-mode[data-admin-section="cards"] .builder-board-panel-header {
  min-height: 32px;
  align-items: center;
}

.organizer-mode[data-admin-section="cards"] .builder-board-panel-header .eyebrow {
  display: none;
}

.organizer-mode[data-admin-section="cards"] .builder-board-panel-header h3 {
  font-size: 1rem;
}

.organizer-mode[data-admin-section="cards"] .builder-canvas-toolbar button {
  min-height: 32px;
}

.board-home {
  width: min(var(--active-board-width), 100%);
  margin: 0 auto 24px;
}

.organizer-mode .board-home {
  width: min(var(--admin-shell-width), calc(100vw - 36px));
}

.admin-nav-button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.admin-nav-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: currentColor;
  opacity: 0.88;
}

.admin-nav-icon::before,
.admin-nav-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.home-icon::before {
  width: 16px;
  height: 13px;
  bottom: 2px;
  border: 1.7px solid currentColor;
  border-top: 0;
  border-radius: 2px;
}

.home-icon::after {
  width: 13px;
  height: 13px;
  top: 1px;
  border-left: 1.7px solid currentColor;
  border-top: 1.7px solid currentColor;
  transform: rotate(45deg);
}

.teams-icon::before {
  width: 7px;
  height: 7px;
  top: 2px;
  left: 7px;
  border: 1.7px solid currentColor;
  border-radius: 50%;
  box-shadow: -7px 7px 0 -1.7px transparent, -7px 7px 0 0 currentColor, 7px 7px 0 -1.7px transparent, 7px 7px 0 0 currentColor;
}

.teams-icon::after {
  width: 19px;
  height: 9px;
  bottom: 1px;
  left: 1px;
  border: 1.7px solid currentColor;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom: 0;
}

.map-icon::before {
  inset: 3px;
  border: 1.7px solid currentColor;
  border-radius: 2px;
}

.map-icon::after {
  top: 4px;
  bottom: 4px;
  left: 7px;
  width: 7px;
  border-left: 1.7px solid currentColor;
  border-right: 1.7px solid currentColor;
  transform: skewY(-14deg);
}

.shield-icon::before {
  width: 17px;
  height: 18px;
  top: 2px;
  border: 1.7px solid currentColor;
  border-radius: 9px 9px 5px 5px;
  clip-path: polygon(50% 0, 100% 20%, 88% 74%, 50% 100%, 12% 74%, 0 20%);
}

.shield-icon::after {
  width: 8px;
  height: 5px;
  top: 8px;
  border-left: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: rotate(-45deg);
}

.cog-icon::before {
  inset: 3px;
  border: 1.7px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 -4px 0 -2px currentColor, 0 4px 0 -2px currentColor, -4px 0 0 -2px currentColor, 4px 0 0 -2px currentColor;
}

.cog-icon::after {
  width: 6px;
  height: 6px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.screen-icon::before {
  width: 17px;
  height: 13px;
  top: 3px;
  border: 1.7px solid currentColor;
  border-radius: 2px;
}

.screen-icon::after {
  width: 10px;
  height: 5px;
  bottom: 1px;
  border-bottom: 1.7px solid currentColor;
  border-left: 1.7px solid transparent;
  border-right: 1.7px solid transparent;
}

.admin-nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  color: #1b1406;
  background: #ffd85a;
  font-size: 0.78rem;
  font-weight: 800;
}

.builder-heading-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.builder-board-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  padding: 3px;
  border: 1px solid rgba(214, 155, 68, 0.28);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
}

.builder-board-tab {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
}

.builder-board-tab.active {
  color: #1d1508;
  background: linear-gradient(180deg, #ffd56d, #b9842f);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26);
}

.board-first-builder {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  gap: 10px;
  align-content: stretch;
  align-items: stretch;
  min-height: 0;
  height: 100%;
}

.board-first-builder:has(.builder-inspector-panel.builder-inspector-hidden) {
  grid-template-columns: minmax(0, 1fr);
}

.builder-board-workspace {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  height: 100%;
}

.builder-live-board-panel {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(360px, 1fr);
  align-content: stretch;
  min-height: 0;
  gap: 6px;
  padding: 8px;
  overflow: hidden;
}

.builder-board-panel-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.builder-live-board-frame {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(214, 155, 68, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    rgba(0, 0, 0, 0.24);
  background-size: 30px 30px;
}

.organizer-mode[data-admin-section="cards"] .builder-live-board-frame .misty-board {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1500px;
  min-height: 820px;
  margin: 0;
  border: 0;
  border-radius: 0;
  transform: translate(-50%, -50%) scale(var(--builder-board-scale, 1));
  transform-origin: center center;
  box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.58);
}

.builder-live-board-frame .board-content {
  transform: none;
}

.organizer-mode[data-admin-section="cards"] .builder-live-board-frame::before {
  content: "";
  width: var(--builder-board-width, 100%);
  height: var(--builder-board-height, 100%);
  grid-area: 1 / 1;
  pointer-events: none;
}

.organizer-mode[data-admin-section="cards"] .builder-live-board-frame .misty-board {
  grid-area: auto;
}

.builder-live-board-panel:has(.battleship-board-toolbar:not(.hidden)) {
  grid-template-rows: auto auto minmax(620px, 1fr);
}

.battleship-board-toolbar {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(71, 155, 164, 0.34);
  border-radius: 8px;
  padding: 8px;
  background: rgba(5, 15, 15, 0.86);
}

.battleship-board-toolbar.hidden {
  display: none;
}

.battleship-board-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
}

.battleship-board-toolbar-row + .battleship-board-toolbar-row {
  border-top: 1px solid rgba(191, 174, 145, 0.14);
  padding-top: 7px;
}

.battleship-seed-field {
  display: grid;
  flex: 1 1 260px;
  gap: 4px;
  color: var(--muted);
  font-size: 0.76rem;
}

.battleship-seed-field input {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(71, 155, 164, 0.4);
  border-radius: 7px;
  padding: 7px 10px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.3);
}

.battleship-board-toolbar button {
  min-height: 36px;
  padding: 0 11px;
}

.battleship-board-status {
  display: grid;
  flex: 1 1 230px;
  gap: 2px;
  align-self: stretch;
  border-left: 3px solid #cf675c;
  padding: 4px 9px;
  color: #efc1bc;
  background: rgba(105, 29, 24, 0.16);
}

.battleship-board-status.ready {
  border-left-color: #68b986;
  color: #a6ddb8;
  background: rgba(37, 96, 58, 0.16);
}

.battleship-board-status span {
  color: var(--muted);
  font-size: 0.72rem;
}

.battleship-cell-actions > div,
.battleship-preview-row > div:first-child {
  display: grid;
  flex: 1 1 250px;
  gap: 4px;
}

.battleship-cell-actions strong {
  color: #f4efe4;
  font-size: 0.82rem;
}

.battleship-preview-row {
  align-items: center;
}

.battleship-difficulty-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.battleship-difficulty-legend span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: var(--muted);
  font-size: 0.7rem;
}

.battleship-difficulty-legend i {
  width: 11px;
  height: 11px;
  border: 2px solid #91a39b;
  border-radius: 2px;
  background: #18211f;
}

.battleship-difficulty-legend span[data-difficulty="uncommon"] i { border-color: #77ae74; background: #15251a; }
.battleship-difficulty-legend span[data-difficulty="rare"] i { border-color: #668fca; background: #152032; }
.battleship-difficulty-legend span[data-difficulty="epic"] i { border-color: #9a72c7; background: #251a31; }
.battleship-difficulty-legend span[data-difficulty="legendary"] i { border-color: #d09348; background: #302114; }

.organizer-mode[data-admin-section="cards"] .builder-live-board-frame .standard-bingo-board {
  width: 1120px;
  min-height: 820px;
}

.item-card.builder-selected {
  outline: 3px solid #ffd85a;
  outline-offset: 5px;
  z-index: 12;
  box-shadow:
    inset 0 0 0 2px rgba(0, 0, 0, 0.58),
    inset 0 0 0 4px rgba(255, 216, 90, 0.46),
    0 0 0 2px rgba(255, 216, 90, 0.22),
    0 12px 28px rgba(0, 0, 0, 0.36);
}

.builder-inspector-panel,
.asset-manager {
  min-width: 0;
}

.organizer-mode[data-admin-section="cards"] .builder-inspector-panel {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 2;
  align-self: start;
  width: 100%;
  max-height: 100%;
  overflow: auto;
  border-color: rgba(255, 216, 90, 0.34);
  background: rgba(10, 18, 16, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.organizer-mode[data-admin-section="cards"] .builder-inspector-panel.builder-inspector-hidden {
  display: none;
}

.builder-canvas-toolbar,
.builder-inspector-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.builder-tile-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 6px 10px;
  align-items: start;
  min-height: 104px;
  padding: 10px;
  border: 1px solid rgba(214, 155, 68, 0.28);
  border-radius: 8px;
  color: var(--text);
  background: rgba(7, 11, 10, 0.76);
  text-align: left;
}

.builder-tile-card:hover,
.builder-tile-card.active {
  border-color: rgba(255, 216, 90, 0.78);
  background: linear-gradient(145deg, rgba(60, 48, 19, 0.82), rgba(10, 16, 15, 0.82));
  box-shadow: inset 0 0 0 1px rgba(255, 216, 90, 0.12);
}

.builder-tile-index {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 216, 90, 0.46);
  border-radius: 7px;
  color: #ffd85a;
  font-weight: 800;
}

.builder-tile-card strong,
.builder-tile-card small,
.builder-tile-card em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.builder-tile-card strong {
  align-self: center;
  line-height: 1.18;
}

.builder-tile-card small,
.builder-tile-card em {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.builder-tile-card em {
  color: #ffd85a;
}

.builder-bonus-tools {
  display: grid;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(214, 155, 68, 0.2);
}

.standard-bingo-board-tools {
  display: grid;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(214, 155, 68, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.standard-bingo-board-tools.tile-selected {
  display: none;
}

.standard-bingo-size-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.standard-bingo-selected-tile-tools,
.standard-bingo-accent-tools,
.standard-bingo-background-tools,
.standard-bingo-gameplay-tools,
.standard-bingo-preview-team-tools,
.standard-bingo-placement-tools {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(214, 155, 68, 0.18);
}

.standard-bingo-selected-tile-tools {
  padding: 10px;
  border: 1px solid rgba(214, 155, 68, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.standard-bingo-background-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.standard-bingo-gameplay-tools .admin-note,
.standard-bingo-placement-tools .admin-note,
.standard-bingo-selected-tile-tools .admin-note,
.standard-bingo-background-tools .admin-note {
  margin: 0;
}

.standard-bingo-accent-tools input[type="color"] {
  min-height: 44px;
  padding: 4px;
  cursor: pointer;
}

.builder-preview-team-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.builder-preview-team-chip {
  width: auto;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.standard-bingo-board-tools .builder-preview-team-chip {
  width: auto;
}

.builder-preview-team-chip.active {
  color: #1d1508;
  border-color: rgba(255, 216, 90, 0.84);
  background: linear-gradient(180deg, #ffd56d, #b9842f);
}

.standard-bingo-placement-actions {
  display: grid;
  gap: 8px;
}

.standard-bingo-placement-tools.no-position label,
.standard-bingo-placement-tools.no-position #standardBingoPlaceTileButton,
.standard-bingo-placement-tools.no-position #standardBingoCreateTileButton,
.standard-bingo-placement-tools.no-position #standardBingoClearPositionButton,
.standard-bingo-placement-tools.no-position #standardBingoResetTileButton {
  display: none;
}

.standard-bingo-board-tools button,
.standard-bingo-selected-tile-tools button {
  width: 100%;
}

.builder-inspector-form {
  display: grid;
  gap: 12px;
}

.builder-inspector-form label,
.standard-bingo-board-tools label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.builder-proof-slot-labels {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(214, 155, 68, 0.2);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.18);
}

.builder-proof-slot-heading {
  display: grid;
  gap: 2px;
}

.builder-proof-slot-heading strong {
  color: var(--text);
}

.builder-proof-slot-heading span {
  color: var(--muted);
  font-size: 0.78rem;
}

.builder-proof-slot-labels label {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.builder-inspector-form input,
.builder-inspector-form textarea,
.standard-bingo-board-tools input,
.standard-bingo-board-tools select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(214, 155, 68, 0.28);
  border-radius: 7px;
  padding: 10px 11px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.28);
}

.builder-inspector-form textarea {
  resize: vertical;
}

.asset-dock {
  display: grid;
  grid-template-columns: minmax(190px, 240px) auto minmax(190px, 0.42fr) minmax(260px, 0.58fr) auto;
  gap: 8px;
  padding: 7px 9px;
  align-items: center;
  border-color: rgba(255, 216, 90, 0.32);
  background:
    linear-gradient(180deg, rgba(18, 29, 25, 0.98), rgba(8, 13, 12, 0.98)),
    rgba(8, 13, 12, 0.98);
  box-shadow: 0 -18px 42px rgba(0, 0, 0, 0.34);
}

.asset-dock .asset-manager-header {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px;
  align-content: center;
}

.asset-dock .asset-manager-header .eyebrow,
.asset-dock .asset-manager-header h3,
.asset-dock .asset-manager-header .asset-summary {
  grid-column: 1;
}

.asset-dock .asset-manager-header h3 {
  font-size: 1.05rem;
}

.asset-dock .asset-manager-header button {
  grid-column: 2;
  grid-row: 1;
  min-height: 32px;
  padding: 0 10px;
}

.asset-dock .asset-dock-controls {
  display: contents;
}

.asset-dock .asset-upload-row {
  grid-column: 3;
  grid-row: 1;
}

.asset-dock .asset-search-field {
  grid-column: 4;
  grid-row: 1;
  min-width: 280px;
}

.asset-dock .asset-filter-group {
  grid-column: 5;
  grid-row: 1;
}

.asset-search-field {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 0.78rem;
}

.asset-search-field input {
  width: 100%;
  border: 1px solid rgba(214, 155, 68, 0.28);
  border-radius: 7px;
  padding: 8px 10px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.3);
}

.asset-filter-group {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.asset-filter-group button {
  min-height: 34px;
  padding: 0 8px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.26);
}

.asset-filter-group button.active {
  color: #1d1508;
  border-color: rgba(255, 216, 90, 0.76);
  background: linear-gradient(180deg, #ffd56d, #b9842f);
}

.asset-dock .selected-asset-preview {
  display: none;
}

.asset-dock .asset-tray-panel {
  grid-column: 1 / -1;
  grid-row: 2;
  border: 1px solid rgba(255, 216, 90, 0.32);
  border-radius: 8px;
  padding: 10px;
  background: rgba(8, 13, 12, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 216, 90, 0.08);
  min-width: 0;
}

.asset-dock .asset-tray {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  min-height: 92px;
  max-height: 142px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 8px;
  scroll-snap-type: x proximity;
}

.asset-dock .asset-tile {
  flex: 0 0 92px;
  min-height: 84px;
  grid-template-rows: 52px auto;
  scroll-snap-align: start;
}

.asset-dock .asset-tile img {
  height: 52px;
}

.battleship-catalog-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 18px;
}

/* Battleship adds its catalog as a second cards section below the board. */
.board-view.organizer-mode[data-admin-section="cards"]:has(.misty-board[data-game-module="osrs-battleship"]) .admin-content-stack {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.board-view.organizer-mode[data-admin-section="cards"]:has(.misty-board[data-game-module="osrs-battleship"]) #battleshipCatalogPanel.active {
  height: auto;
  min-height: 100%;
  grid-template-rows: none;
  align-content: start;
  margin-top: 10px;
  gap: 16px;
}

.battleship-catalog-panel.hidden {
  display: none;
}

.battleship-catalog-header,
.battleship-catalog-list-heading,
.battleship-catalog-editor-heading,
.battleship-editor-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.battleship-catalog-header p {
  margin: 5px 0 0;
  color: var(--muted);
}

.battleship-catalog-header-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.battleship-catalog-data-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.battleship-catalog-data-actions button,
.battleship-catalog-data-actions .button-like {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid rgba(214, 155, 68, 0.46);
  border-radius: 6px;
  padding: 7px 10px;
  color: #f2e4bd;
  background: rgba(20, 17, 10, 0.72);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
}

.battleship-catalog-data-actions button:hover,
.battleship-catalog-data-actions .button-like:hover {
  border-color: #e1b75d;
  color: #fff1bd;
  background: rgba(81, 58, 19, 0.38);
}

.battleship-catalog-import-status {
  min-height: 0;
  border-left: 3px solid transparent;
  padding: 0;
  color: var(--muted);
}

.battleship-catalog-import-status.success,
.battleship-catalog-import-status.error {
  padding: 9px 11px;
}

.battleship-catalog-import-status.success {
  border-left-color: #62c98a;
  color: #bce8cb;
  background: rgba(28, 92, 52, 0.18);
}

.battleship-catalog-import-status.error {
  border-left-color: #cf675c;
  color: #f2b4ad;
  background: rgba(105, 29, 24, 0.2);
}

.battleship-publication-status {
  display: grid;
  gap: 3px;
  min-width: 180px;
  border: 1px solid rgba(214, 155, 68, 0.32);
  border-radius: 8px;
  padding: 11px 13px;
  background: rgba(0, 0, 0, 0.22);
}

.battleship-publication-status strong {
  color: #ffd85a;
}

.battleship-publication-status span {
  color: var(--muted);
  font-size: 0.8rem;
}

.battleship-publication-status.ready {
  border-color: rgba(93, 187, 129, 0.56);
}

.battleship-publication-status.ready strong {
  color: #8fe0a9;
}

.battleship-catalog-totals {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 8px;
}

.battleship-total {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid rgba(191, 174, 145, 0.18);
  border-top: 3px solid rgba(214, 155, 68, 0.56);
  border-radius: 6px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.2);
}

.battleship-total[data-difficulty="common"] { border-top-color: #91a39b; }
.battleship-total[data-difficulty="uncommon"] { border-top-color: #77ae74; }
.battleship-total[data-difficulty="rare"] { border-top-color: #668fca; }
.battleship-total[data-difficulty="epic"] { border-top-color: #9a72c7; }
.battleship-total[data-difficulty="legendary"] { border-top-color: #d09348; }

.battleship-total span,
.battleship-total small {
  color: var(--muted);
}

.battleship-total strong {
  color: var(--text);
  font-size: 1.35rem;
}

.battleship-total small {
  font-size: 0.72rem;
}

.battleship-catalog-errors {
  display: grid;
  gap: 6px;
  border-left: 3px solid #cf675c;
  padding: 10px 12px;
  color: #f2b4ad;
  background: rgba(105, 29, 24, 0.2);
}

.battleship-catalog-errors p {
  margin: 0;
}

.battleship-catalog-controls {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(170px, 0.35fr) minmax(190px, 0.35fr);
  gap: 10px;
}

.battleship-catalog-controls label,
.battleship-catalog-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

.battleship-catalog-controls input,
.battleship-catalog-controls select,
.battleship-catalog-form input,
.battleship-catalog-form select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(214, 155, 68, 0.28);
  border-radius: 7px;
  padding: 9px 11px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.3);
}

.battleship-catalog-workspace {
  display: grid;
  grid-template-columns: minmax(380px, 0.9fr) minmax(420px, 1.1fr);
  gap: 14px;
  align-items: start;
}

.battleship-catalog-workspace > div,
.battleship-catalog-form {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.battleship-catalog-list-heading span {
  color: var(--muted);
  font-size: 0.8rem;
}

.battleship-catalog-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.battleship-challenge-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 7px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.24);
  text-align: left;
}

.battleship-challenge-row:hover,
.battleship-challenge-row.active {
  border-color: rgba(255, 216, 90, 0.72);
  background: rgba(97, 76, 23, 0.28);
}

.battleship-challenge-thumb {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(191, 174, 145, 0.16);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.26);
}

.battleship-challenge-thumb img,
.battleship-challenge-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.battleship-challenge-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.battleship-challenge-copy strong,
.battleship-challenge-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.battleship-challenge-copy small {
  color: var(--muted);
}

.battleship-challenge-count {
  min-width: 30px;
  color: #ffd85a;
  font-weight: 800;
  text-align: center;
}

.battleship-catalog-form {
  position: sticky;
  top: 0;
  border: 1px solid rgba(255, 216, 90, 0.28);
  border-radius: 8px;
  padding: 14px;
  background: rgba(7, 13, 12, 0.92);
}

#battleshipCatalogEditor {
  display: grid;
  gap: 14px;
}

#battleshipCatalogEditor.hidden {
  display: none;
}

.battleship-challenge-image {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(214, 155, 68, 0.3);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.72rem;
  text-align: center;
}

.battleship-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.battleship-editor-wide {
  grid-column: 1 / -1;
}

.battleship-occurrence-stepper {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 6px;
}

.battleship-occurrence-stepper button {
  min-height: 42px;
  padding: 0;
  font-size: 1.15rem;
}

.battleship-editor-actions {
  justify-content: flex-end;
}

@media (max-width: 1360px) {
  .battleship-cell-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .battleship-cell-actions > div {
    grid-column: 1 / -1;
  }

  .battleship-cell-actions button {
    width: 100%;
  }

  .battleship-preview-row {
    display: grid;
    grid-template-columns: minmax(220px, 0.4fr) minmax(0, 1fr);
  }

  .battleship-catalog-totals {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .battleship-catalog-workspace {
    grid-template-columns: 1fr;
  }

  .battleship-catalog-form {
    position: static;
  }
}

@media (max-width: 1360px) {
  .organizer-mode .admin-console {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .admin-section-heading {
    display: grid;
    justify-content: stretch;
  }

  .admin-section-heading button {
    justify-self: start;
  }

  .admin-brand {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .admin-brand-mark {
    width: 48px;
    height: 48px;
  }

  .builder-heading-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 1180px) {
  .organizer-mode .admin-console {
    grid-template-columns: 1fr;
  }

  .organizer-mode .organizer-panel-header,
  .organizer-mode .admin-section-nav,
  .admin-sidebar-footer,
  .admin-main {
    grid-column: 1;
  }

  .site-content-admin-layout {
    grid-template-columns: 1fr;
  }

  .site-content-groups {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .organizer-mode .admin-section-nav {
    grid-row: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-right: 0;
  }

  .admin-main {
    grid-row: auto;
  }

  .organizer-mode .admin-overview-grid,
  .organizer-settings,
  .board-first-builder,
  .login-builder-layout {
    grid-template-columns: 1fr;
  }

  .upload-validation-layout {
    grid-template-columns: 1fr;
  }

  .platform-shell-summary,
  .platform-shell-form,
  .platform-sync-contract {
    grid-template-columns: 1fr;
  }

  .platform-module-row {
    grid-template-columns: 1fr;
  }

  .team-add-card,
  .team-roster-fields,
  .team-roster-discord,
  .team-preview-meta {
    grid-template-columns: 1fr;
  }

  .asset-dock,
  .asset-dock .asset-dock-controls {
    grid-template-columns: 1fr;
  }

  .asset-dock .asset-manager-header,
  .asset-dock .asset-dock-controls,
  .asset-dock .selected-asset-preview,
  .asset-dock .asset-tray-panel {
    grid-column: 1;
  }

  .organizer-mode[data-admin-section="cards"] .builder-inspector-panel {
    position: static;
    width: auto;
    max-height: none;
    overflow: visible;
    order: 2;
  }

  .organizer-mode[data-admin-section="cards"] .builder-board-workspace {
    order: 1;
  }
}

@media (max-width: 760px) {
  .battleship-board-toolbar-row {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .battleship-board-toolbar button,
  .battleship-board-status {
    width: 100%;
  }

  .battleship-difficulty-legend {
    gap: 6px 10px;
  }

  .battleship-catalog-header,
  .battleship-catalog-editor-heading,
  .battleship-editor-actions {
    display: grid;
    justify-content: stretch;
  }

  .battleship-publication-status {
    min-width: 0;
  }

  .battleship-catalog-header-actions {
    justify-items: stretch;
  }

  .battleship-catalog-data-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .battleship-catalog-totals,
  .battleship-catalog-controls,
  .battleship-editor-grid,
  .battleship-catalog-list {
    grid-template-columns: 1fr;
  }

  .battleship-editor-wide {
    grid-column: auto;
  }

  .battleship-editor-actions button {
    width: 100%;
  }

  .organizer-mode .admin-console {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
  }

  .organizer-mode .admin-section-nav,
  .organizer-mode .admin-status-summary {
    grid-template-columns: 1fr;
  }

  .admin-toolbar {
    grid-template-columns: 1fr;
    gap: 14px;
    height: auto;
  }

  .admin-main {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .admin-toolbar-actions {
    display: grid;
  }

  .admin-toolbar-actions button {
    width: 100%;
  }

  .organizer-mode .admin-content-stack {
    padding: 18px;
  }
}

/* Final Battleship team shell overrides: keep all three team tabs in one game UI. */
.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-tabs::after {
  content: none !important;
  display: none !important;
}

.battleship-player-shell[data-view="attack"] .battleship-player-tabs,
.battleship-player-shell[data-view="fleet"] .battleship-player-tabs,
.battleship-player-shell[data-view="challenges"] .battleship-player-tabs {
  grid-template-columns: repeat(3, minmax(108px, 1fr)) 42px;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-logout {
  display: grid;
  place-items: center;
  min-width: 42px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #ff4d42;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-logout svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 8px rgba(255, 77, 66, 0.34));
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-logout:hover {
  border-color: rgba(255, 77, 66, 0.38);
  color: #ff6b5f;
  background: rgba(92, 25, 20, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 180, 167, 0.08), 0 0 14px rgba(255, 61, 45, 0.14);
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-logout:focus-visible {
  outline: 2px solid rgba(255, 111, 98, 0.72);
  outline-offset: 2px;
}

.board-view:not(.organizer-mode):has(.battleship-player-shell[data-view="challenges"]) {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 9% 47%, rgba(61, 105, 103, 0.22), transparent 18%),
    radial-gradient(ellipse at 92% 48%, rgba(109, 82, 49, 0.22), transparent 18%),
    radial-gradient(circle at 50% 56%, rgba(8, 79, 86, 0.24), transparent 36%),
    linear-gradient(180deg, rgba(1, 7, 9, 0.95), rgba(3, 22, 24, 0.95) 48%, rgba(2, 9, 11, 0.98)),
    #02090b;
}

.board-view:not(.organizer-mode):has(.battleship-player-shell[data-view="challenges"]) .misty-board.osrs-battleship-board {
  width: 100vw;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  padding: 0 8px 8px;
  background:
    radial-gradient(circle at 47% 54%, rgba(18, 101, 111, 0.24), transparent 38%),
    linear-gradient(180deg, rgba(3, 12, 14, 0.78), rgba(1, 8, 10, 0.9));
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-module-view,
.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .board-content,
.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .lanes {
  min-height: 0;
  height: 100%;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-player-shell {
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 70px minmax(0, 1fr);
  grid-template-areas:
    "chrome"
    "board";
  gap: 0;
}

.battleship-player-shell[data-view="challenges"] .battleship-player-chrome {
  grid-area: chrome;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  align-items: stretch;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(180, 124, 51, 0.42);
  border-radius: 0 0 8px 8px;
  background:
    linear-gradient(180deg, rgba(7, 25, 29, 0.94), rgba(2, 13, 16, 0.98)),
    radial-gradient(circle at 45% 0%, rgba(51, 117, 119, 0.18), transparent 42%);
}

.battleship-player-shell[data-view="challenges"] .battleship-player-summary {
  grid-area: auto !important;
  display: grid;
  grid-template-columns: 270px repeat(3, minmax(128px, 0.78fr)) minmax(156px, 0.84fr) minmax(220px, 1fr);
  min-width: 0;
  width: auto;
  min-height: 68px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.battleship-player-shell[data-view="challenges"] .battleship-player-summary > div {
  min-width: 0;
  min-height: 68px;
  padding: 10px 12px 9px 52px;
  border-right: 1px solid rgba(99, 141, 142, 0.26);
}

.battleship-player-shell[data-view="challenges"] .battleship-player-summary > div:nth-child(1) {
  padding-left: 92px;
}

.battleship-player-shell[data-view="challenges"] .battleship-player-summary > div:nth-child(1)::before {
  left: 24px;
  width: 50px;
  height: 50px;
  border-width: 2px;
  border-radius: 15px;
  font-size: 2rem;
}

.battleship-player-shell[data-view="challenges"] .battleship-player-summary > div::before {
  left: 22px;
  font-size: 1.15rem;
}

.battleship-player-shell[data-view="challenges"] .battleship-player-summary span {
  color: #aeb9b7;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: none;
}

.battleship-player-shell[data-view="challenges"] .battleship-player-summary strong {
  color: #fff0bd;
  font-size: 1.18rem;
  line-height: 1.08;
  white-space: nowrap;
}

.battleship-player-shell[data-view="challenges"] .battleship-player-summary small {
  color: #51ff94;
  font-size: 0.66rem;
  font-weight: 700;
}

.battleship-player-shell[data-view="challenges"] .battleship-trade-up-summary button {
  min-height: 22px;
  max-width: 146px;
  border-color: rgba(150, 95, 31, 0.8);
  border-radius: 4px;
  padding: 0 10px;
  color: #b6a989;
  font-size: 0.68rem;
  background: rgba(33, 24, 13, 0.78);
}

.battleship-player-shell[data-view="challenges"] .battleship-player-tabs {
  grid-area: auto !important;
  display: grid;
  align-items: center;
  justify-self: stretch;
  min-width: 0;
  width: auto;
  min-height: 68px;
  border: 0;
  border-left: 1px solid rgba(99, 141, 142, 0.26);
  border-radius: 0;
  padding: 13px 18px 13px 16px;
  background: transparent;
}

.battleship-player-shell[data-view="challenges"] .battleship-player-tab {
  min-width: 0;
  min-height: 42px;
  border-radius: 0;
  border-color: rgba(110, 142, 143, 0.34);
  color: #bfc9c7;
  font-size: 0.82rem;
  font-weight: 800;
  background: rgba(4, 15, 18, 0.68);
}

.battleship-player-shell[data-view="challenges"] .battleship-player-tab:first-child {
  border-radius: 5px 0 0 5px;
}

.battleship-player-shell[data-view="challenges"] .battleship-player-tab:nth-child(3) {
  border-radius: 0 5px 5px 0;
}

.battleship-player-shell[data-view="challenges"] .battleship-player-tab.active {
  border-color: #d69b44;
  color: #ffe7a6;
  background:
    radial-gradient(circle at 50% 110%, rgba(229, 164, 68, 0.38), transparent 58%),
    linear-gradient(180deg, rgba(78, 54, 18, 0.95), rgba(32, 24, 12, 0.96));
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-player-challenges {
  grid-area: board;
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  height: calc(100vh - 78px);
  min-height: 0;
  border: 1px solid rgba(210, 147, 58, 0.82);
  border-radius: 6px;
  padding: 18px 28px 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 35% 20%, rgba(28, 112, 121, 0.26), transparent 28%),
    radial-gradient(circle at 74% 66%, rgba(102, 72, 31, 0.14), transparent 30%),
    linear-gradient(90deg, rgba(4, 16, 18, 0.95), rgba(5, 27, 30, 0.88) 58%, rgba(3, 13, 14, 0.97));
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-challenges-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 0.78fr);
  gap: 24px;
  align-items: end;
  min-height: 86px;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-challenges-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(420px, 28vw, 520px);
  gap: 26px;
  min-height: 0;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-challenge-browser,
.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-challenge-submit-dock {
  min-height: 0;
  border: 1px solid rgba(71, 155, 164, 0.36);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(5, 25, 28, 0.9), rgba(3, 14, 16, 0.96));
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-challenge-browser {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 16px;
  overflow: hidden;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-challenge-submit-dock {
  display: grid;
  align-content: start;
  padding: 16px;
  overflow: auto;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-player-challenge-results {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-submission-panel {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-submission-form {
  grid-template-columns: 1fr;
}

/* Battleship player media containment: OSRS item renders vary wildly in intrinsic size. */
.osrs-battleship-board:has(.battleship-player-shell) .battleship-board-cell,
.osrs-battleship-board:has(.battleship-player-shell) .battleship-selected-cell-image,
.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-challenge-image,
.osrs-battleship-board:has(.battleship-player-shell) .battleship-challenge-thumb,
.osrs-battleship-board:has(.battleship-player-shell) .battleship-challenge-image {
  position: relative;
  overflow: hidden;
  contain: paint;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-board-cell img,
.osrs-battleship-board:has(.battleship-player-shell) .battleship-selected-cell-image img,
.osrs-battleship-board:has(.battleship-player-shell) .battleship-player-challenge-image img,
.osrs-battleship-board:has(.battleship-player-shell) .battleship-challenge-thumb img,
.osrs-battleship-board:has(.battleship-player-shell) .battleship-challenge-image img {
  display: block;
  position: absolute;
  inset: 50% auto auto 50%;
  width: auto !important;
  height: auto !important;
  max-width: 88% !important;
  max-height: 88% !important;
  object-fit: contain;
  transform: translate(-50%, -50%) !important;
}

.osrs-battleship-board:has(.battleship-player-shell) .battleship-board-cell img {
  max-width: 82% !important;
  max-height: 82% !important;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-selected-cell-image {
  height: 96px;
  min-height: 96px;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-selected-cell-image img {
  max-width: 78% !important;
  max-height: 78% !important;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-player-challenge-image img {
  max-width: 84% !important;
  max-height: 84% !important;
}
body.hall-of-fame-visible {
  min-height: 100vh;
  overflow: hidden;
  background: #080b0b;
}

.hall-login-entry {
  width: 100%;
  margin-top: 0.9rem;
  border: 1px solid rgba(214, 155, 68, 0.45);
  border-radius: 8px;
  background: rgba(10, 14, 14, 0.58);
  color: #f4d89b;
  font: inherit;
  font-weight: 700;
  padding: 0.85rem 1rem;
  cursor: pointer;
}

.hall-login-entry:hover,
.hall-login-entry:focus-visible {
  border-color: rgba(244, 198, 105, 0.88);
  color: #ffe3a3;
}

.hall-view {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  background:
    radial-gradient(circle at 78% 6%, rgba(214, 155, 68, 0.09), transparent 31rem),
    radial-gradient(circle at 22% 24%, rgba(102, 128, 107, 0.06), transparent 28rem),
    linear-gradient(135deg, #070b0b, #101616 46%, #090d0d);
  color: #f4efe6;
}

.hall-sidebar {
  border-right: 1px solid rgba(244, 198, 105, 0.16);
  background:
    radial-gradient(circle at 50% 0%, rgba(214, 155, 68, 0.11), transparent 34%),
    linear-gradient(180deg, rgba(10, 15, 15, 0.98), rgba(5, 9, 9, 0.98)),
    rgba(7, 11, 12, 0.78);
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 1.2rem 0.8rem;
}

.hall-brand {
  display: grid;
  gap: 0.6rem;
  justify-items: center;
  text-align: center;
  padding: 0.25rem 0 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hall-brand img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.hall-brand strong {
  display: block;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f1d591;
}

.hall-brand span,
.hall-live-card small,
.hall-topbar p,
.hall-section-heading p,
.hall-tools span,
.hall-boss-main em,
.hall-boss-meta small,
.hall-source-note {
  color: rgba(244, 239, 230, 0.64);
}

.hall-nav {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.4rem;
}

.hall-nav button {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 0.72rem;
  border: 1px solid rgba(214, 155, 68, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005)),
    rgba(255, 255, 255, 0.018);
  color: rgba(244, 239, 230, 0.76);
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  padding: 0.6rem 0.75rem;
}

.hall-nav button.active {
  background: linear-gradient(90deg, rgba(214, 155, 68, 0.24), rgba(214, 155, 68, 0.06));
  border-color: rgba(214, 155, 68, 0.44);
  color: #f3c96a;
  box-shadow: inset 3px 0 0 #d69b44;
}

.hall-nav button.hidden {
  display: none;
}

.hall-nav-icon {
  position: relative;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  border: 1px solid rgba(244, 198, 105, 0.12);
  background:
    radial-gradient(circle at 50% 18%, rgba(244, 198, 105, 0.16), transparent 48%),
    rgba(255, 255, 255, 0.045);
  color: rgba(244, 239, 230, 0.7);
}

.hall-nav button.active .hall-nav-icon {
  border-color: rgba(244, 198, 105, 0.38);
  background:
    radial-gradient(circle at 50% 18%, rgba(244, 198, 105, 0.3), transparent 48%),
    rgba(214, 155, 68, 0.13);
  color: #f3c96a;
  box-shadow: 0 0 18px rgba(214, 155, 68, 0.12);
}

.hall-nav-icon::before,
.hall-nav-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.hall-nav-icon.dashboard::before {
  width: 15px;
  height: 15px;
  background:
    linear-gradient(currentColor 0 0) 0 0 / 6px 6px,
    linear-gradient(currentColor 0 0) 9px 0 / 6px 6px,
    linear-gradient(currentColor 0 0) 0 9px / 6px 6px,
    linear-gradient(currentColor 0 0) 9px 9px / 6px 6px;
  background-repeat: no-repeat;
}

.hall-nav-icon.bossing::before,
.hall-nav-icon.bossing::after {
  width: 3px;
  height: 18px;
  border-radius: 3px 3px 0 0;
  transform-origin: 50% 70%;
}

.hall-nav-icon.bossing::before {
  transform: rotate(42deg);
  box-shadow: 0 8px 0 -1px currentColor;
}

.hall-nav-icon.bossing::after {
  transform: rotate(-42deg);
  box-shadow: 0 8px 0 -1px currentColor;
}

.hall-nav-icon.members::before {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  box-shadow:
    -6px 3px 0 -1px currentColor,
    6px 3px 0 -1px currentColor,
    0 10px 0 4px currentColor;
  transform: translateY(-5px);
}

.hall-nav-icon.collectors::before {
  width: 16px;
  height: 13px;
  border-radius: 2px;
  background:
    linear-gradient(currentColor 0 0) 2px 3px / 12px 2px,
    linear-gradient(currentColor 0 0) 2px 7px / 12px 2px,
    linear-gradient(currentColor 0 0) 2px 11px / 8px 2px;
  background-repeat: no-repeat;
  box-shadow: 0 -3px 0 -1px currentColor;
}

.hall-nav-icon.collectors::after {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 2px solid currentColor;
  background: transparent;
  transform: translate(6px, -6px);
}

.hall-nav-icon.fame::before {
  width: 18px;
  height: 13px;
  clip-path: polygon(0 35%, 22% 35%, 32% 0, 50% 34%, 68% 0, 78% 35%, 100% 35%, 88% 100%, 12% 100%);
}

.hall-nav-icon.fame::after {
  width: 13px;
  height: 2px;
  border-radius: 2px;
  transform: translateY(8px);
}

.hall-nav-icon.admin::before {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background:
    radial-gradient(circle, transparent 0 4px, currentColor 4.5px 7.5px, transparent 8px),
    conic-gradient(from 10deg, currentColor 0 18deg, transparent 18deg 42deg, currentColor 42deg 60deg, transparent 60deg 84deg, currentColor 84deg 102deg, transparent 102deg 126deg, currentColor 126deg 144deg, transparent 144deg 168deg, currentColor 168deg 186deg, transparent 186deg 210deg, currentColor 210deg 228deg, transparent 228deg 252deg, currentColor 252deg 270deg, transparent 270deg 294deg, currentColor 294deg 312deg, transparent 312deg 336deg, currentColor 336deg 360deg);
}

.hall-nav-icon.ranks::before {
  width: 17px;
  height: 14px;
  clip-path: polygon(50% 0, 62% 28%, 94% 28%, 69% 50%, 78% 100%, 50% 72%, 22% 100%, 31% 50%, 6% 28%, 38% 28%);
}

.hall-live-card {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.8rem;
  background: rgba(14, 20, 20, 0.74);
}

.hall-live-card strong {
  display: block;
  margin: 0.2rem 0;
  font-size: 0.84rem;
}

.hall-status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #82c96a;
  box-shadow: 0 0 0 3px rgba(130, 201, 106, 0.12);
}

.hall-shell {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.hall-topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.6rem;
  border-bottom: 1px solid rgba(244, 198, 105, 0.14);
  background:
    linear-gradient(90deg, rgba(244, 198, 105, 0.035), transparent 38%),
    rgba(7, 10, 10, 0.95);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
}

.hall-topbar h1,
.hall-login-panel h2,
.hall-section-heading h2,
.hall-detail-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.hall-topbar h1 {
  font-size: clamp(1.6rem, 2vw, 2.2rem);
}

.hall-topbar p {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hall-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hall-sync-label {
  color: rgba(244, 239, 230, 0.68);
  font-size: 0.9rem;
}

.hall-demo-label {
  color: #9bd47c;
  font-weight: 800;
}

.hall-role-badge {
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(214, 155, 68, 0.35);
  border-radius: 8px;
  background: rgba(214, 155, 68, 0.1);
  color: #f6c861;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  padding: 0 0.9rem;
}

.hall-sync-button,
.hall-ghost-button,
.hall-login-form button,
.hall-boss-cta,
.hall-back-button {
  border: 1px solid rgba(214, 155, 68, 0.7);
  border-radius: 8px;
  background: rgba(214, 155, 68, 0.1);
  color: #f6c861;
  font-weight: 800;
  cursor: pointer;
}

.hall-sync-button,
.hall-ghost-button {
  min-height: 40px;
  padding: 0 1rem;
}

.hall-ghost-button {
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(244, 239, 230, 0.78);
}

.hall-login-panel {
  align-self: center;
  justify-self: center;
  position: relative;
  width: min(560px, calc(100% - 2rem));
  overflow: hidden;
  border: 1px solid rgba(244, 198, 105, 0.3);
  border-radius: 0;
  background:
    radial-gradient(circle at 82% 10%, rgba(126, 71, 179, 0.2), transparent 15rem),
    linear-gradient(135deg, rgba(214, 155, 68, 0.1), transparent 34%, rgba(126, 71, 179, 0.1)),
    rgba(8, 9, 8, 0.88);
  padding: clamp(1.6rem, 4vw, 2.45rem);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.58), 0 28px 90px rgba(0, 0, 0, 0.46);
}

.hall-login-panel::before {
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1px solid rgba(244, 198, 105, 0.13);
  content: "";
}

.hall-login-panel > * {
  position: relative;
  z-index: 1;
}

.hall-login-mark {
  width: clamp(68px, 9vw, 96px);
  height: clamp(68px, 9vw, 96px);
  object-fit: contain;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 24px rgba(244, 198, 105, 0.32));
}

.hall-login-kicker {
  display: block;
  margin-bottom: 0.65rem;
  color: #f3c96a;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hall-login-panel p {
  color: rgba(244, 239, 230, 0.68);
}

.hall-login-form {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.hall-login-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
}

.hall-login-form input,
.hall-tools input,
.hall-tools select,
.hall-detail-tools input {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(6, 9, 9, 0.72);
  color: #f4efe6;
  padding: 0 0.9rem;
  font: inherit;
}

.hall-login-form button {
  padding: 0 1.25rem;
}

.hall-app-panel {
  min-height: 0;
  overflow: auto;
  padding: 1.45rem 1.6rem 1.8rem;
}

.hall-tab-panel {
  display: none;
}

.hall-tab-panel.active {
  display: block;
}

.hall-overview-panel,
.hall-detail-panel,
.hall-dashboard-panel,
.hall-members-panel,
.hall-fame-panel,
.hall-collectors-panel,
.hall-ranks-panel,
.hall-admin-panel {
  max-width: 1360px;
}

.hall-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hall-section-heading h2 {
  font-size: clamp(2rem, 2.8vw, 3.05rem);
  line-height: 1;
}

.hall-section-heading p {
  margin: 0.35rem 0 0;
}

.hall-tools {
  display: flex;
  align-items: end;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hall-tools label {
  display: grid;
  gap: 0.35rem;
  min-width: 180px;
}

.hall-tools span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hall-boss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 326px));
  gap: 1.1rem;
  justify-content: start;
}

.hall-boss-tile {
  min-height: 348px;
  border: 1px solid rgba(244, 198, 105, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 36%),
    rgba(13, 18, 18, 0.84);
  color: #f4efe6;
  padding: 0;
  overflow: hidden;
  text-align: left;
  display: grid;
  grid-template-rows: 164px auto auto auto;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
  cursor: pointer;
}

.hall-boss-tile:hover,
.hall-boss-tile:focus-visible {
  border-color: rgba(244, 198, 105, 0.82);
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.34);
}

.hall-boss-art,
.hall-detail-image {
  background: var(--boss-art);
  background-size: cover;
  background-position: center;
  position: relative;
}

.hall-boss-art::after,
.hall-detail-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 42%, rgba(5, 8, 8, 0.86)),
    radial-gradient(circle at 70% 18%, rgba(244, 198, 105, 0.16), transparent 42%);
}

.hall-boss-art::before,
.hall-detail-image::before {
  content: "";
  position: absolute;
  inset: 14% 20% 8%;
  background:
    radial-gradient(ellipse at 50% 18%, rgba(255, 255, 255, 0.24), transparent 18%),
    linear-gradient(145deg, transparent 0 26%, rgba(232, 198, 113, 0.28) 27% 36%, transparent 37%),
    radial-gradient(ellipse at 50% 70%, rgba(9, 10, 10, 0.62), transparent 62%);
  clip-path: polygon(50% 0, 70% 25%, 82% 70%, 62% 100%, 38% 100%, 18% 70%, 30% 25%);
  opacity: 0.48;
  filter: blur(0.2px);
}

.hall-boss-tile.has-boss-image .hall-boss-art::before,
.hall-detail-image.has-boss-image::before {
  display: none;
}

.hall-boss-main {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.7rem;
}

.hall-boss-main strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.1;
}

.hall-boss-main em {
  font-style: normal;
  text-align: right;
  white-space: nowrap;
}

.hall-boss-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.hall-boss-meta small {
  display: block;
  margin-bottom: 0.25rem;
}

.hall-boss-meta b {
  color: #f4efe6;
  font-size: 0.92rem;
}

.hall-boss-cta {
  display: grid;
  place-items: center;
  min-height: 42px;
  margin: 0 1rem 1rem;
}

.hall-back-button {
  min-height: 40px;
  padding: 0 1rem;
  margin-bottom: 1.3rem;
}

.hall-detail-header {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.3rem;
}

.hall-detail-image {
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(244, 198, 105, 0.45);
  border-radius: 8px;
  overflow: hidden;
}

.hall-detail-header h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.8rem);
}

.hall-detail-header p {
  color: rgba(244, 239, 230, 0.7);
}

.hall-detail-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.hall-detail-tools input {
  width: min(420px, 100%);
}

.hall-table-wrap {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 28%),
    rgba(12, 17, 17, 0.82);
}

.hall-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.hall-table th,
.hall-table td {
  padding: 0.9rem 1.05rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  text-align: left;
}

.hall-table th {
  color: rgba(244, 239, 230, 0.68);
  font-weight: 700;
  background: rgba(255, 255, 255, 0.035);
}

.hall-table td strong,
.hall-rank {
  color: #f4c763;
}

.hall-source-note {
  margin: 1rem 0 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  background: rgba(7, 10, 10, 0.58);
}

.hall-empty-state {
  grid-column: 1 / -1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 1rem;
  color: rgba(244, 239, 230, 0.7);
  background: rgba(12, 17, 17, 0.76);
}

.hall-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.05rem;
}

.hall-stat-card,
.hall-panel,
.hall-fame-summary article,
.hall-record-card {
  border: 1px solid rgba(244, 198, 105, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 0%, rgba(214, 155, 68, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 34%),
    rgba(11, 17, 17, 0.86);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.hall-stat-card {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 0.45rem;
  padding: 1rem;
}

.hall-stat-card span,
.hall-panel-heading span,
.hall-podium-row em,
.hall-compact-list em,
.hall-sync-summary dt,
.hall-admin-note,
.hall-admin-boss-row strong,
.hall-fame-summary span,
.hall-record-main small,
.hall-record-player {
  color: rgba(244, 239, 230, 0.62);
}

.hall-stat-card strong {
  color: #f4c763;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 1.85vw, 1.95rem);
  line-height: 1;
}

.hall-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(310px, 1fr) minmax(330px, 1fr) minmax(290px, 0.82fr);
  grid-template-areas:
    "podium recent sync"
    "popular popular sync";
  gap: 1rem;
  align-items: stretch;
}

.hall-panel {
  min-height: 0;
  padding: 1.05rem;
}

.hall-podium-panel {
  grid-area: podium;
}

.hall-dashboard-grid > .hall-panel:nth-child(2) {
  grid-area: recent;
}

.hall-dashboard-grid > .hall-panel:nth-child(3) {
  grid-area: popular;
}

.hall-sync-panel {
  grid-area: sync;
}

.hall-panel-heading {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 0.9rem;
}

.hall-panel-heading span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hall-panel-heading h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.hall-podium-list,
.hall-compact-list {
  display: grid;
  gap: 0.65rem;
}

.hall-podium-row,
.hall-compact-list button,
.hall-admin-boss-row {
  display: grid;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(244, 198, 105, 0.035), transparent),
    rgba(0, 0, 0, 0.24);
  padding: 0.72rem 0.78rem;
}

.hall-podium-row {
  grid-template-columns: 2.2rem minmax(0, 1fr) auto;
}

.hall-podium-row span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(214, 155, 68, 0.16);
  color: #f4c763;
  font-weight: 900;
}

.hall-podium-row.rank-1 {
  border-color: rgba(244, 198, 105, 0.42);
  background:
    radial-gradient(circle at 16% 50%, rgba(214, 155, 68, 0.32), transparent 34%),
    linear-gradient(90deg, rgba(214, 155, 68, 0.16), rgba(0, 0, 0, 0.12));
}

.hall-compact-list button {
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  color: #f4efe6;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.hall-compact-list button.has-art {
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 76px;
  overflow: hidden;
  border-color: rgba(244, 198, 105, 0.16);
  background: rgba(0, 0, 0, 0.28);
}

#hallPopularBosses button.has-art {
  min-height: 88px;
}

.hall-compact-list button.has-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--boss-art);
  background-position: center 38%;
  background-repeat: no-repeat;
  background-size: auto 165%;
  opacity: 0.62;
}

.hall-compact-list button.has-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 44%, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.56) 58%, rgba(0, 0, 0, 0.88) 100%),
    linear-gradient(90deg, rgba(4, 7, 7, 0.88), rgba(4, 7, 7, 0.38) 48%, rgba(4, 7, 7, 0.9)),
    linear-gradient(180deg, rgba(244, 198, 105, 0.1), rgba(0, 0, 0, 0.34));
}

.hall-compact-list button.has-art > * {
  position: relative;
  z-index: 1;
}

.hall-compact-list button:hover,
.hall-compact-list button:focus-visible {
  border-color: rgba(244, 198, 105, 0.5);
}

.hall-compact-list button em {
  grid-column: 1 / -1;
  font-style: normal;
  font-size: 0.86rem;
}

.hall-compact-list button.has-art em {
  grid-column: 1 / -1;
}

.hall-compact-list strong {
  color: #f4c763;
}

.hall-sync-summary dl {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.hall-sync-summary div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.62rem;
}

.hall-sync-summary dt,
.hall-sync-summary dd {
  margin: 0;
}

.hall-sync-summary dd {
  color: #f4efe6;
  font-weight: 800;
  text-align: right;
}

.hall-fame-grid {
  display: grid;
  gap: 1rem;
}

.hall-fame-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.hall-fame-summary article {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 0.34rem;
  padding: 1rem;
  background:
    radial-gradient(circle at 82% 18%, rgba(214, 155, 68, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 38%),
    rgba(12, 18, 18, 0.84);
}

.hall-fame-summary span,
.hall-record-main small {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hall-fame-summary strong {
  min-width: 0;
  overflow: hidden;
  color: #f4efe6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 1.7vw, 1.7rem);
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hall-fame-summary em {
  overflow: hidden;
  color: #f4c763;
  font-style: normal;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hall-record-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem 0.75rem;
  border: 1px solid rgba(244, 198, 105, 0.18);
  border-radius: 8px;
  padding: 0.85rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(214, 155, 68, 0.08), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 34%),
    rgba(7, 11, 11, 0.82);
}

.hall-record-card {
  position: relative;
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "main kc"
    "main player"
    "speed speed";
  align-items: center;
  gap: 0.18rem 0.8rem;
  overflow: hidden;
  color: #f4efe6;
  font: inherit;
  text-align: left;
  padding: 0.58rem 0.68rem;
  cursor: pointer;
}

.hall-record-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--boss-art);
  background-position: center 40%;
  background-size: cover;
  opacity: 0.36;
  transform: scale(1.02);
}

.hall-record-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 8, 0.94), rgba(5, 8, 8, 0.72) 50%, rgba(5, 8, 8, 0.92)),
    radial-gradient(circle at 76% 12%, rgba(244, 198, 105, 0.18), transparent 42%);
}

.hall-record-card > * {
  position: relative;
  z-index: 1;
}

.hall-record-card:hover,
.hall-record-card:focus-visible {
  border-color: rgba(244, 198, 105, 0.72);
  transform: translateY(-1px);
}

.hall-record-main {
  grid-area: main;
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.hall-record-main strong {
  overflow: hidden;
  font-family: Georgia, "Times New Roman", serif;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.98rem;
  line-height: 1.1;
  text-overflow: ellipsis;
}

.hall-record-main small {
  overflow: hidden;
  max-width: 100%;
  font-size: 0.66rem;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.hall-record-kc {
  grid-area: kc;
  justify-self: end;
  color: #f4c763;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 900;
  white-space: nowrap;
}

.hall-record-player {
  grid-area: player;
  justify-self: end;
  max-width: 11rem;
  overflow: hidden;
  font-size: 0.78rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hall-record-speed {
  grid-area: speed;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  border-top: 1px solid rgba(244, 198, 105, 0.16);
  padding-top: 0.42rem;
}

.hall-record-speed small {
  color: rgba(244, 239, 230, 0.58);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hall-record-speed b {
  color: #f4c763;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  white-space: nowrap;
}

.hall-record-speed em {
  overflow: hidden;
  color: rgba(244, 239, 230, 0.78);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hall-admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hall-ranks-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.hall-rank-rule-list {
  display: grid;
  gap: 0.55rem;
}

.hall-rank-rule-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.35fr) minmax(110px, 0.25fr) minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  border: 1px solid rgba(244, 198, 105, 0.12);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.025);
}

.hall-rank-rule-row strong {
  color: #f3c96a;
}

.hall-rank-rule-row span,
.hall-rank-rule-row small,
.hall-table td small {
  color: rgba(244, 239, 230, 0.62);
}

.hall-ranks-table-wrap {
  margin-top: 1rem;
}

.hall-rank-table-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(135px, 1fr)) auto;
  gap: 0.75rem;
  align-items: end;
  margin: 1rem 0 0.75rem;
  border: 1px solid rgba(244, 198, 105, 0.14);
  border-radius: 8px;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.025);
}

.hall-rank-table-tools label {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.hall-rank-table-tools span {
  color: rgba(244, 239, 230, 0.58);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hall-rank-table-tools input,
.hall-rank-table-tools select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(244, 198, 105, 0.18);
  border-radius: 8px;
  padding: 0 0.7rem;
  background: rgba(3, 5, 5, 0.56);
  color: #f4efe6;
  font: inherit;
}

.hall-rank-table-tools strong {
  color: #ffd464;
  font-size: 0.82rem;
  white-space: nowrap;
  padding-bottom: 0.62rem;
}

.hall-rank-promoted-row {
  background: rgba(55, 143, 88, 0.12);
}

.hall-rank-promo {
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  margin-left: 0.55rem;
  border: 1px solid rgba(130, 201, 106, 0.42);
  border-radius: 999px;
  color: #bdf0a8;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 0 0.55rem;
}

.hall-rank-sources {
  display: grid;
  gap: 0.18rem;
  min-width: 112px;
}

.hall-rank-points {
  display: inline-block;
  min-width: 0;
}

.hall-rank-points strong {
  color: #ffd464;
  font-size: 1rem;
  line-height: 1.05;
}

.hall-rank-sources small {
  display: flex;
  gap: 0.4rem;
  align-items: baseline;
  justify-content: space-between;
  color: rgba(244, 239, 230, 0.66);
  line-height: 1.15;
  white-space: nowrap;
}

.hall-rank-sources small span {
  color: rgba(244, 239, 230, 0.55);
}

.hall-rank-sources small b {
  color: rgba(244, 239, 230, 0.88);
  font-weight: 800;
}

.hall-rank-claim-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  border: 1px solid rgba(244, 198, 105, 0.14);
  border-radius: 8px;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.025);
}

.hall-rank-claim-row strong,
.hall-rank-claim-row small {
  display: block;
}

.hall-rank-claim-row small,
.hall-rank-review-divider {
  color: rgba(244, 239, 230, 0.62);
}

.hall-rank-claim-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.hall-rank-claim-actions button {
  min-height: 34px;
  border: 1px solid rgba(214, 155, 68, 0.45);
  border-radius: 8px;
  background: rgba(214, 155, 68, 0.1);
  color: #f6c861;
  font-weight: 800;
  cursor: pointer;
  padding: 0 0.7rem;
}

.hall-rank-review-divider {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hall-collectors-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hall-collector-hero {
  grid-column: 1 / -1;
  min-height: 132px;
  display: grid;
  align-content: center;
  gap: 0.3rem;
  border: 1px solid rgba(244, 198, 105, 0.22);
  border-radius: 8px;
  padding: 1.15rem;
  background:
    radial-gradient(circle at 78% 22%, rgba(244, 198, 105, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(214, 155, 68, 0.14), rgba(11, 17, 17, 0.88) 48%, rgba(4, 7, 7, 0.94)),
    rgba(11, 17, 17, 0.86);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.hall-collector-hero span,
.hall-collector-row small {
  color: rgba(244, 239, 230, 0.62);
}

.hall-collector-hero span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hall-collector-hero strong {
  color: #f4efe6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1;
}

.hall-collector-hero em {
  color: #f4c763;
  font-style: normal;
  font-weight: 800;
}

.hall-collector-list {
  display: grid;
  gap: 0.65rem;
}

.hall-collector-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr) auto;
  grid-template-areas:
    "rank name value"
    "rank sub value";
  align-items: center;
  gap: 0.05rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(244, 198, 105, 0.045), transparent),
    rgba(0, 0, 0, 0.24);
  padding: 0.65rem 0.72rem;
}

button.hall-collector-row {
  width: 100%;
  color: #f4efe6;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

button.hall-collector-row:hover,
button.hall-collector-row:focus-visible {
  border-color: rgba(244, 198, 105, 0.56);
  transform: translateY(-1px);
}

.hall-collector-row.rank-1 {
  border-color: rgba(244, 198, 105, 0.42);
  background:
    radial-gradient(circle at 10% 50%, rgba(214, 155, 68, 0.3), transparent 34%),
    linear-gradient(90deg, rgba(214, 155, 68, 0.15), rgba(0, 0, 0, 0.16));
}

.hall-collector-row span {
  grid-area: rank;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(214, 155, 68, 0.16);
  color: #f4c763;
  font-weight: 900;
}

.hall-collector-row strong {
  grid-area: name;
  overflow: hidden;
  color: #f4efe6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hall-collector-row small {
  grid-area: sub;
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hall-collector-row em {
  grid-area: value;
  justify-self: end;
  color: #f4c763;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.hall-admin-note {
  line-height: 1.5;
}

.hall-admin-boss-row {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.hall-admin-boss-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
}

.hall-fastest-admin-panel {
  grid-column: span 2;
}

.hall-admin-sync-list {
  display: grid;
  gap: 0.78rem;
}

.hall-admin-sync-list article {
  display: grid;
  gap: 0.58rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(214, 155, 68, 0.05), transparent),
    rgba(0, 0, 0, 0.18);
  padding: 0.78rem;
}

.hall-admin-sync-list article > span {
  color: #f4c763;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hall-admin-sync-list .hall-admin-note {
  margin: 0;
}

.hall-admin-sync-list .hall-sync-button {
  justify-self: start;
}

.hall-discord-export-panel {
  grid-column: span 2;
}

.hall-export-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.hall-export-actions button {
  min-height: 54px;
  border: 1px solid rgba(244, 198, 105, 0.42);
  border-radius: 8px;
  background:
    radial-gradient(circle at 80% 20%, rgba(244, 198, 105, 0.16), transparent 42%),
    rgba(214, 155, 68, 0.1);
  color: #f4c763;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.hall-export-actions button:hover,
.hall-export-actions button:focus-visible {
  border-color: rgba(244, 198, 105, 0.82);
  transform: translateY(-1px);
}

.hall-export-actions .hall-discord-push-button {
  grid-column: 1 / -1;
  border-color: rgba(207, 67, 55, 0.62);
  background:
    linear-gradient(135deg, rgba(207, 67, 55, 0.2), rgba(29, 17, 13, 0.88)),
    rgba(20, 17, 14, 0.92);
}

.hall-fastest-admin-list {
  display: grid;
  gap: 0.62rem;
  margin-top: 0.9rem;
  max-height: 68vh;
  overflow: auto;
  padding-right: 0.25rem;
}

.hall-fastest-admin-row {
  display: grid;
  grid-template-columns: minmax(8rem, 1fr) minmax(8rem, 0.75fr) minmax(5.5rem, 0.42fr) auto;
  align-items: end;
  gap: 0.62rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(214, 155, 68, 0.05), transparent),
    rgba(0, 0, 0, 0.2);
  padding: 0.66rem;
}

.hall-fastest-admin-row strong {
  align-self: center;
  overflow: hidden;
  color: #f4efe6;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hall-fastest-admin-row label {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.hall-fastest-admin-row label span {
  color: rgba(244, 239, 230, 0.58);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hall-fastest-admin-row input {
  min-width: 0;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(5, 8, 8, 0.76);
  color: #f4efe6;
  font: inherit;
  font-size: 0.88rem;
  padding: 0 0.68rem;
}

.hall-fastest-admin-row input:focus {
  border-color: rgba(244, 198, 105, 0.72);
  outline: 0;
}

.hall-fastest-admin-row button {
  min-height: 38px;
  border: 1px solid rgba(244, 198, 105, 0.52);
  border-radius: 8px;
  background: rgba(214, 155, 68, 0.12);
  color: #f4c763;
  font: inherit;
  font-weight: 900;
  padding: 0 0.88rem;
  cursor: pointer;
}

.hall-fastest-admin-row button:disabled,
.hall-fastest-admin-row input:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

@media (max-width: 860px) {
  body.hall-of-fame-visible {
    overflow: auto;
  }

  .hall-view {
    position: fixed;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: auto;
  }

  .hall-sidebar {
    min-height: auto;
    min-width: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(244, 198, 105, 0.16);
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    overflow: hidden;
    padding: 0.75rem;
  }

  .hall-brand {
    display: flex;
    text-align: left;
    border: 0;
    padding: 0;
  }

  .hall-brand img {
    width: 42px;
    height: 42px;
  }

  .hall-live-card {
    display: none;
  }

  .hall-nav {
    display: flex;
    flex: 1 1 auto;
    gap: 0.45rem;
    margin-top: 0;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .hall-nav button {
    flex: 0 0 auto;
    min-width: 142px;
    min-height: 44px;
  }

  .hall-topbar,
  .hall-section-heading,
  .hall-detail-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .hall-app-panel {
    padding: 1rem;
  }

  .hall-detail-header {
    grid-template-columns: 1fr;
  }

  .hall-table {
    min-width: 620px;
  }

  .hall-stat-grid,
  .hall-dashboard-grid,
  .hall-fame-summary,
  .hall-record-wall,
  .hall-collectors-grid,
  .hall-admin-grid {
    grid-template-columns: 1fr;
  }

  .hall-ranks-layout,
  .hall-rank-table-tools,
  .hall-rank-rule-row,
  .hall-rank-claim-row {
    grid-template-columns: 1fr;
  }

  .hall-rank-claim-actions {
    justify-content: flex-start;
  }

  .hall-sync-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .hall-record-card {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "main kc"
      "main player"
      "speed speed";
  }

  .hall-record-kc {
    justify-self: end;
  }

  .hall-fastest-admin-panel {
    grid-column: auto;
  }

  .hall-discord-export-panel {
    grid-column: auto;
  }

  .hall-fastest-admin-row {
    grid-template-columns: 1fr;
  }

  .hall-export-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .platform-landing-view {
    place-items: start;
    padding: 28px 18px 44px;
  }

  .platform-landing-topbar {
    display: grid;
    justify-content: stretch;
  }

  .platform-back-link {
    justify-self: start;
  }

  .platform-landing-heading h1 {
    font-size: clamp(3rem, 16vw, 4.2rem);
  }

  .platform-gate-grid {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .platform-gate {
    min-height: 242px;
    padding: 26px;
  }

  .platform-gate h2 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .platform-ops-rail {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .platform-ops-rail a {
    justify-self: start;
  }
}

/* Responsive Battleship team UI: preserve readable square cells and reflow chrome. */
.osrs-battleship-board:has(.battleship-player-shell) .battleship-board-cell:focus-visible {
  z-index: 5;
  outline: 3px solid #fff0b6;
  outline-offset: 2px;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-player-viewport,
.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-viewport {
  align-items: flex-start;
  overflow: auto;
  scrollbar-color: rgba(214, 155, 68, 0.72) rgba(3, 13, 15, 0.86);
  scrollbar-width: thin;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-player-grid {
  --battleship-cell-size: var(--attack-cell-width, 32px);
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board .battleship-player-grid {
  --battleship-cell-size: var(--fleet-cell-width, 32px);
}

@media (max-width: 1500px) {
  .battleship-player-shell[data-view="attack"] .battleship-player-summary,
  .battleship-player-shell[data-view="fleet"] .battleship-player-summary,
  .battleship-player-shell[data-view="challenges"] .battleship-player-summary {
    grid-template-columns: minmax(210px, 1.35fr) repeat(4, minmax(92px, 0.75fr));
  }

  .battleship-player-shell[data-view="attack"] .battleship-trade-up-summary,
  .battleship-player-shell[data-view="fleet"] .battleship-trade-up-summary,
  .battleship-player-shell[data-view="challenges"] .battleship-trade-up-summary {
    display: none;
  }

  .battleship-player-shell[data-view="attack"] .battleship-player-summary > div:not(:first-child),
  .battleship-player-shell[data-view="fleet"] .battleship-player-summary > div:not(:first-child),
  .battleship-player-shell[data-view="challenges"] .battleship-player-summary > div:not(:first-child) {
    padding-left: 48px;
  }

  .battleship-player-shell[data-view="attack"] .battleship-player-summary > div:not(:first-child)::before,
  .battleship-player-shell[data-view="fleet"] .battleship-player-summary > div:not(:first-child)::before,
  .battleship-player-shell[data-view="challenges"] .battleship-player-summary > div:not(:first-child)::before {
    left: 12px;
    width: 28px;
    height: 28px;
    font-size: 1.25rem;
  }
}

@media (max-width: 1100px) {
  .board-view:not(.organizer-mode):has(.battleship-player-shell) {
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .board-view:not(.organizer-mode):has(.battleship-player-shell) .misty-board.osrs-battleship-board {
    width: 100%;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    padding: 10px;
  }

  .osrs-battleship-board:has(.battleship-player-shell) .battleship-module-view,
  .osrs-battleship-board:has(.battleship-player-shell) .board-content,
  .osrs-battleship-board:has(.battleship-player-shell) .lanes {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .osrs-battleship-board:has(.battleship-player-shell) .battleship-player-shell {
    height: auto;
    min-height: calc(100dvh - 20px);
    grid-template-rows: auto auto;
    gap: 12px;
  }

  .osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-player-shell,
  .osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-player-shell,
  .osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-player-shell {
    grid-template-rows: auto auto;
  }

  .battleship-player-shell[data-view="attack"] .battleship-player-chrome,
  .battleship-player-shell[data-view="fleet"] .battleship-player-chrome,
  .battleship-player-shell[data-view="challenges"] .battleship-player-chrome {
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
    border-radius: 8px;
  }

  .battleship-player-shell[data-view="attack"] .battleship-player-summary,
  .battleship-player-shell[data-view="fleet"] .battleship-player-summary,
  .battleship-player-shell[data-view="challenges"] .battleship-player-summary {
    grid-template-columns: minmax(190px, 1.25fr) repeat(4, minmax(76px, 0.72fr));
    min-height: 68px;
    overflow-x: auto;
  }

  .battleship-player-shell[data-view="attack"] .battleship-player-summary > div,
  .battleship-player-shell[data-view="fleet"] .battleship-player-summary > div,
  .battleship-player-shell[data-view="challenges"] .battleship-player-summary > div {
    min-height: 68px;
    padding-top: 10px;
    padding-bottom: 9px;
  }

  .battleship-player-shell[data-view="attack"] .battleship-player-tabs,
  .battleship-player-shell[data-view="fleet"] .battleship-player-tabs,
  .battleship-player-shell[data-view="challenges"] .battleship-player-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 48px;
    min-height: 58px;
    border-top: 1px solid rgba(99, 141, 142, 0.26);
    border-left: 0;
    padding: 7px 10px;
  }

  .osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-player-board-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 14px;
    height: auto;
    align-content: start;
    align-self: start;
  }

  .osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-player-board-workspace,
  .osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-player-viewport {
    height: min(72dvh, 720px);
    min-height: 540px;
  }

  .osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-player-viewport {
    align-items: flex-start;
    justify-content: flex-start;
    overflow: auto;
    padding: 14px;
    overscroll-behavior: contain;
  }

  .osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-player-stage {
    flex: 0 0 auto;
    margin: auto;
  }

  .osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-player-inspector {
    display: grid;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    height: auto;
    min-height: 350px;
    overflow: visible;
  }

  .osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-selected-cell-panel {
    margin-top: 0;
    border-top: 0;
    border-left: 1px solid rgba(214, 155, 68, 0.36);
    padding-top: 0;
    padding-left: 14px;
  }

  .osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-player-challenges {
    height: auto;
    min-height: 0;
    grid-template-rows: auto auto;
    align-self: start;
    overflow: visible;
    padding: 16px;
  }

  .osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-challenges-hero,
  .osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-challenges-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-challenges-layout {
    grid-template-rows: auto auto;
    align-content: start;
  }

  .osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-challenge-browser {
    min-height: 620px;
  }

  .osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-player-challenge-results {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    max-height: 70dvh;
  }

  .osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-challenge-submit-dock {
    min-height: 240px;
  }

  .osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-workspace {
    height: auto;
    min-height: 0;
    grid-template-rows: auto auto;
    align-self: start;
    overflow: visible;
    padding: 12px;
  }

  .osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 0 0 10px;
  }

  .osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-totals {
    position: static;
    align-self: center;
  }

  .osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: start;
    gap: 14px;
  }

  .osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board-workspace {
    height: min(72dvh, 720px);
    min-height: 540px;
  }

  .osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-viewport {
    align-items: flex-start;
    justify-content: flex-start;
    overflow: auto;
    padding: 14px;
    overscroll-behavior: contain;
  }

  .osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-placement-stage {
    margin: auto;
  }

  .osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-dock {
    height: auto;
    min-height: 0;
    margin-top: 0;
    overflow: visible;
  }

  .osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-ship-list {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    overflow: visible;
  }
}

@media (max-width: 700px) {
  .board-view:not(.organizer-mode):has(.battleship-player-shell) .misty-board.osrs-battleship-board {
    padding: 6px;
  }

  .battleship-player-shell[data-view="attack"] .battleship-player-summary,
  .battleship-player-shell[data-view="fleet"] .battleship-player-summary,
  .battleship-player-shell[data-view="challenges"] .battleship-player-summary {
    grid-template-columns: minmax(150px, 1.3fr) repeat(4, minmax(68px, 0.7fr));
  }

  .battleship-player-shell[data-view="attack"] .battleship-player-summary > div:not(:first-child),
  .battleship-player-shell[data-view="fleet"] .battleship-player-summary > div:not(:first-child),
  .battleship-player-shell[data-view="challenges"] .battleship-player-summary > div:not(:first-child) {
    padding: 9px 8px;
  }

  .battleship-player-shell[data-view="attack"] .battleship-player-summary > div:not(:first-child)::before,
  .battleship-player-shell[data-view="fleet"] .battleship-player-summary > div:not(:first-child)::before,
  .battleship-player-shell[data-view="challenges"] .battleship-player-summary > div:not(:first-child)::before {
    display: none;
  }

  .battleship-player-shell[data-view="attack"] .battleship-player-summary > div:nth-child(1),
  .battleship-player-shell[data-view="fleet"] .battleship-player-summary > div:nth-child(1),
  .battleship-player-shell[data-view="challenges"] .battleship-player-summary > div:nth-child(1) {
    padding-left: 70px;
  }

  .battleship-player-shell[data-view="attack"] .battleship-player-summary > div:nth-child(1)::before,
  .battleship-player-shell[data-view="fleet"] .battleship-player-summary > div:nth-child(1)::before,
  .battleship-player-shell[data-view="challenges"] .battleship-player-summary > div:nth-child(1)::before {
    left: 12px;
    width: 46px;
    height: 46px;
  }

  .battleship-player-shell[data-view="attack"] .battleship-player-tabs,
  .battleship-player-shell[data-view="fleet"] .battleship-player-tabs,
  .battleship-player-shell[data-view="challenges"] .battleship-player-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 44px;
    gap: 2px;
    padding: 6px;
  }

  .battleship-player-shell[data-view="attack"] .battleship-player-tab,
  .battleship-player-shell[data-view="fleet"] .battleship-player-tab,
  .battleship-player-shell[data-view="challenges"] .battleship-player-tab {
    padding-inline: 6px;
    font-size: 0.72rem;
  }

  .osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-player-board-workspace,
  .osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-player-viewport,
  .osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-board-workspace {
    height: 68dvh;
    min-height: 480px;
  }

  .osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-player-inspector {
    grid-template-columns: minmax(0, 1fr);
  }

  .osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-minimap {
    width: min(100%, 340px);
    justify-self: center;
  }

  .osrs-battleship-board:has(.battleship-player-shell[data-view="attack"]) .battleship-selected-cell-panel {
    border-top: 1px solid rgba(214, 155, 68, 0.36);
    border-left: 0;
    padding-top: 12px;
    padding-left: 0;
  }

  .osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-player-challenges {
    padding: 12px;
  }

  .osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-challenge-browser-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
  }

  .osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-challenges-hero h3,
  .osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-header h3 {
    display: grid;
    gap: 2px;
    font-size: 1.35rem;
  }

  .osrs-battleship-board:has(.battleship-player-shell[data-view="challenges"]) .battleship-challenges-hero h3 span,
  .osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-header h3 span {
    font-size: 2rem;
  }

  .osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-header {
    grid-template-columns: minmax(0, 1fr);
  }

  .osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-totals {
    width: 100%;
  }

  .osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-rules,
  .osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-fleet-submit-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Fleet picker containment: every ship stays inside a reachable button. */
.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-ship-list {
  min-height: 152px;
  max-height: clamp(152px, 24vh, 220px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(41, 223, 255, 0.7) rgba(3, 13, 15, 0.86);
  scrollbar-width: thin;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-ship-card {
  box-sizing: border-box;
  grid-template-rows: minmax(0, 1fr) 14px;
  align-content: stretch;
  min-height: 68px;
  overflow: hidden;
}

.osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-ship-card > i {
  align-self: end;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
}

@media (max-width: 1100px) {
  .osrs-battleship-board:has(.battleship-player-shell[data-view="fleet"]) .battleship-ship-list {
    min-height: 0;
    max-height: none;
    overflow: visible;
  }
}
