:root {
  color-scheme: dark;
  font-family: "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #fff4f2;
  background: #0a0405;
  --game-reserve: 162px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100svh;
  background: radial-gradient(ellipse at 50% 0%, #501419 0%, #1c070a 42%, #080405 88%);
}
body::before {
  position: fixed;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: .12;
  background: url("/house-rules/background-still.jpg?v=3e2198bcae3f5805") center / cover no-repeat;
}
.fighter-page {
  position: relative;
  width: min(100%, 760px);
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
}
.head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
  padding: 0 4px;
}
.eyebrow {
  margin: 0;
  color: #e56d72;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}
.heading h1 { margin: 4px 0 0; }
.title-art {
  position: relative;
  display: block;
  width: clamp(210px, 35vw, 275px);
  aspect-ratio: 1344 / 400;
  overflow: hidden;
}
.heading h1 img {
  position: absolute;
  top: -44%;
  left: 0;
  display: block;
  width: 100%;
  height: auto;
}
.head-close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(232, 189, 125, .48);
  border-radius: 50%;
  background: rgba(29, 10, 13, .75);
  color: #f5ddc5;
  font: 300 27px/1 Arial, sans-serif;
  text-decoration: none;
}
.head-close:hover { border-color: #f5d0a2; background: #56252a; }
.head-close:focus-visible, .full-screen a:focus-visible { outline: 2px solid #ffe1ae; outline-offset: 4px; }
.arena {
  display: grid;
  place-items: center;
  padding: clamp(8px, 2vw, 18px);
  border: 1px solid #8e313a;
  border-radius: 24px;
  background: #12090c;
  box-shadow: 0 24px 70px #0009;
}
.game-frame {
  width: min(100%, 420px, calc((100svh - var(--game-reserve) - env(safe-area-inset-top) - env(safe-area-inset-bottom)) * 0.5625));
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 2px solid rgba(227, 38, 25, .7);
  border-radius: 18px;
  background: #111417;
  box-shadow: 0 0 0 1px #0009, 0 14px 42px #e3261926;
}
.game-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.hint, .full-screen { text-align: center; }
.hint { margin: 14px 0 0; color: #cfaaab; font-size: 12px; line-height: 1.7; }
.full-screen { margin: 14px 0 0; }
.full-screen a {
  display: inline-block;
  padding: 10px 17px;
  border: 1px solid #a34951;
  border-radius: 999px;
  color: #ffe4d4;
  background: #351016;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.full-screen a:hover { border-color: #ff8d82; }
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}
.features div { padding: 14px; border: 1px solid #62242d; border-radius: 12px; background: #190a0dcc; }
.features b { display: block; margin-bottom: 6px; color: #f18b82; font-size: 12px; }
.features span { color: #d1aeb0; font-size: 11px; line-height: 1.6; }
footer { margin-top: 25px; color: #805c60; font-size: 10px; letter-spacing: .12em; text-align: center; }
@media (max-width: 620px) {
  :root { --game-reserve: 128px; }
  .fighter-page { padding: max(6px, env(safe-area-inset-top)) 6px max(6px, env(safe-area-inset-bottom)); }
  .head { margin-bottom: 6px; padding: 0 4px; }
  .eyebrow { font-size: 8px; }
  .title-art { width: min(57vw, 235px); }
  .arena { padding: 6px; border-radius: 17px; }
  .game-frame { border-radius: 11px; }
  .features { grid-template-columns: 1fr; gap: 8px; margin: 23px 9px 0; }
}
@media (max-width: 360px) {
  .title-art { width: min(49vw, 180px); }
}
@media (max-width: 620px) {
  body.fighter-body .install-float {
    top: max(8px, env(safe-area-inset-top));
    right: 74px;
    width: 56px;
    height: 62px;
  }
  body.fighter-body .install-main img { width: 30px; height: 30px; }
  body.fighter-body .install-main { font-size: 9px; }
}