@font-face {
  font-family: Cinzel;
  src: url("assets/fonts/cinzel.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("assets/fonts/eb-garamond.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("assets/fonts/eb-garamond-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --text: #eee1c6;
  --muted: #c8bba5;
  --paper: #e2c79a;
  --panel: #231d1b;
  --border: #69554b;
  --gap: clamp(.25rem, 1.2dvh, .65rem);
  --engraved: Cinzel, Georgia, serif;
  --prose: "EB Garamond", Georgia, serif;
  --iron: linear-gradient(170deg, #362c25, #241b18 46%, #150f0e 48%, #211916);
  --bronze: linear-gradient(172deg, #e7bd7a, #c99e61 43%, #b08048 45%, #c59a5b);
  --bronze-lit: linear-gradient(172deg, #f8d7a0, #dfb274 43%, #c39760 45%, #d6ab6c);
  --bevel: inset 0 0 0 2px #100b0a, inset 0 0 0 3px #c3985b46, 0 3px 0 #0b0807, 0 6px 12px #0b080773;
  --bronze-bevel: inset 0 0 0 2px #412516, inset 0 0 0 3px #fff0be60, 0 3px 0 #110b08, 0 6px 14px #0b070786;
  font: 1.125rem/1.3 var(--prose);
}
* { box-sizing: border-box }
html, body { margin: 0; background: #171312; color: var(--text); overscroll-behavior: none }
html:has(#controls:not([hidden])), body:has(#controls:not([hidden])) { overflow: hidden }
body:has(main:not([hidden])) { background: radial-gradient(ellipse at 50% 25%, #29201b, #100d0c 76%) }

main {
  display: flex;
  flex-direction: column;
  inline-size: min(100% - 1rem, 88rem);
  block-size: 100vh;
  block-size: 100dvh;
  margin-inline: auto;
  padding-block: var(--gap);
}
.game-screen {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: safe center;
  min-inline-size: 0;
  min-block-size: 0;
  gap: var(--gap);
}
.game-screen > :not(.stage) { flex: none }
h1, h2, p { margin: 0 }
h1, h2 { font-family: var(--engraved); line-height: 1.15; font-weight: 700 }
h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); letter-spacing: -.035em }
h2 { font-size: clamp(1rem, 2.7vw, 1.35rem) }

.masthead { display: flex; align-items: center; gap: .6rem }
.masthead img { display: block; inline-size: clamp(3rem, 5vw, 4.25rem); block-size: auto }
.masthead h1 { font-size: clamp(1.1rem, 1.85vw, 1.5rem) }
.game-header { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem 1.25rem }
.arena-toolbar { flex: 1; min-inline-size: 13rem }
.arena-toolbar, .arena-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .1rem .5rem }
.arena-toolbar { justify-content: space-between }
.arena-toolbar h2 { color: var(--muted); font-size: clamp(.82rem, 1.6vw, 1rem) }
.arena-actions button { min-block-size: 1.85rem; padding: .2rem .5rem; font-size: .72rem; box-shadow: inset 0 0 0 1px #160f0c }
.arena-launch {
  position: absolute;
  z-index: 3;
  inset: auto 0 clamp(.5rem, 2cqh, 1.1rem);
  display: flex;
  flex-direction: column;
  gap: .55rem;
  inline-size: max-content;
  max-inline-size: 100%;
  margin-inline: auto;
  padding: .6rem .85rem;
}
.arena-launch:has(#action[hidden]) { display: none }
.stage:has(#arena-spotify:not([hidden])) {
  grid-template-rows: minmax(0, 1fr) auto;
  row-gap: .45rem;
  align-content: stretch;
  max-block-size: none;
}
.arena-launch:has(#arena-spotify:not([hidden])) {
  position: relative;
  inset: auto;
  inline-size: min(100%, 34rem);
  max-block-size: 52cqh;
  border-radius: .45rem;
  background: #15100ef0;
  box-shadow: 0 6px 24px #0008;
}
.launch-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(.6rem, 2.4vw, 1.5rem) }
.arena-launch .primary {
  min-height: 2.85rem;
  padding-inline: clamp(.85rem, 3vw, 1.75rem);
  font-size: 1rem;
  letter-spacing: .1em;
}
.stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  justify-items: center;
  container-type: size;
  flex: 1 1 0;
  min-block-size: 0;
  max-block-size: calc(min(100vw - 1rem, 88rem) * 9 / 16);
}
.arena-view {
  position: relative;
  inline-size: min(100%, calc(100cqh * 16 / 9));
  aspect-ratio: 16 / 9;
  container-type: size;
  overflow: hidden;
  background: #100e0d;
  box-shadow: 0 12px 38px #08050490;
}
canvas {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  min-inline-size: 0;
  min-block-size: 0;
  object-fit: contain;
  image-rendering: pixelated;
}
.round-card {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: .6rem;
  background: radial-gradient(ellipse at center, #1d1511d9, #120e0c42 73%);
  pointer-events: none;
  text-align: center;
}
.round-card strong {
  color: #f6dfb9;
  font: 700 clamp(1.4rem, min(5vw, 9cqh), 3.5rem)/1.08 var(--engraved);
  text-shadow: 0 3px 14px #130c08;
}
.round-card p {
  margin-block-start: .48rem;
  color: #e4c58f;
  font-size: clamp(.64rem, 2vmin, .89rem);
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.boss-dialogue {
  position: absolute;
  z-index: 2;
  inset-block-start: clamp(2.5rem, 22cqh, 8rem);
  inset-inline-start: 59%;
  translate: -50% 0;
  inline-size: max-content;
  max-inline-size: min(68%, 31rem);
  padding: clamp(.4rem, 1.45cqh, .8rem) clamp(.65rem, 2cqw, 1.25rem);
  border-block-start: 1px solid #bd955e;
  background: #17110ef5;
  box-shadow: 0 7px 20px #0d0808a8;
  color: #ffe6bd;
  font: italic 500 clamp(1rem, 3.7cqh, 1.65rem)/1.15 var(--prose);
  text-align: center;
  text-wrap: balance;
  pointer-events: none;
}
.boss-dialogue::after {
  content: '';
  position: absolute;
  inset: 100% auto auto 63%;
  border: .42rem solid transparent;
  border-block-start-color: #17110ef5;
}
.cinematic .boss-dialogue:not([hidden]) {
  animation: boss-dialogue-rise .85s cubic-bezier(.2, .68, .3, 1) both;
}
@keyframes boss-dialogue-rise {
  from { opacity: 0; translate: -50% 2.25rem }
  to { opacity: 1; translate: -50% 0 }
}
.hud {
  position: absolute;
  z-index: 1;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(.4rem, 2vw, 1rem);
  align-items: start;
  padding: clamp(.35rem, 1.7cqh, .85rem) clamp(.5rem, 2.4cqw, 1.8rem) clamp(.5rem, 3.6cqh, 1.7rem);
  background: linear-gradient(#110c0bf5, #160e0bd0 45%, #160e0b00);
  text-shadow: 0 1px 4px #100a07;
  pointer-events: none;
}
.hud strong, #stage-count, #round-number, .round-card p, .arena-intro p, .mobile-arena-title p, #leaderboard-dialog th { font-family: var(--engraved) }
.hud strong, #stage-count { font-size: clamp(.68rem, 1.5cqw, .93rem) }
.fighter-hud { display: grid; min-inline-size: 0; gap: .17rem }
.hud-fighter-name { display: flex; align-items: center; flex-wrap: wrap; gap: .16rem .5rem }
.hud-meter { display: flex; align-items: center; gap: .4rem }
.hud-meter span { flex: 0 0 3.15rem; color: var(--muted); font-size: .68rem }
.hud-meter .bar { flex: 1; min-inline-size: 0 }
.opponent { text-align: right }
.opponent .hud-fighter-name, .opponent .hud-meter { flex-direction: row-reverse }
.round-wins { display: inline-flex; flex: none; gap: .25rem }
.round-wins i { inline-size: .39rem; block-size: .39rem; border: 1px solid #b29b7c; transform: rotate(45deg) }
.round-wins .won { background: var(--paper); border-color: var(--paper) }
.opponent .round-wins .won { background: #e18d7c; border-color: #e18d7c }
#stage-count { text-align: center; white-space: nowrap }
#round-number { color: var(--paper); font-size: .73rem; font-weight: 650; white-space: nowrap }
.bar { height: clamp(.28rem, .8cqw, .56rem); background: #1a0e0c; border-radius: 2px; overflow: hidden }
.bar i { display: block; height: 100%; background: linear-gradient(#f6ddb1, #c49b62) }
.bar.stamina { height: clamp(.19rem, .55cqw, .38rem) }
.bar.stamina i { background: #8bbba3 }
.bar.rival i { margin-left: auto; background: linear-gradient(#e8a38b, #b45e50) }

.panel { display: grid; justify-items: start; gap: .3rem; padding: .45rem .6rem; background: var(--iron); border: 1px solid #735737; box-shadow: inset 0 0 0 2px #0e0a09 }
.panel p { color: var(--text); font-size: 1.06rem }
#equipped-weapon {
  color: #f7cf91;
  font: 700 clamp(.65rem, 1.7cqw, .84rem)/1.2 var(--engraved);
}
body:has(#the-sentinel[data-phase="weapon"]) {
  background: linear-gradient(90deg, #110c0bed, #160f0dc7 52%, #100907cc),
    url("assets/title-sentinel.webp") 72% center / cover;
}
#the-sentinel[data-phase="weapon"] {
  min-block-size: 100dvh;
  block-size: auto;
  padding: clamp(.5rem, 3dvh, 2rem) 0;
}
#the-sentinel[data-phase="weapon"] .game-screen > :is(.game-header, .stage) { display: none }
#the-sentinel[data-phase="weapon"] .panel {
  align-self: center;
  inline-size: min(100%, 53rem);
  padding: clamp(1rem, 4vw, 2.5rem);
  gap: .5rem;
  border-color: #94704b;
  background: radial-gradient(ellipse at 70% 8%, #38251a, #1a110f 57%, #110c0b);
  box-shadow: inset 0 0 0 3px #110908, inset 0 0 0 4px #785136, 0 20px 50px #080504c9;
}
#the-sentinel[data-phase="weapon"] #headline {
  color: #f1d098;
  font-size: clamp(1.45rem, 4.7vw, 2.45rem);
  text-shadow: 0 2px #55341d, 0 4px 8px #0a0605;
}
#weapon-choices {
  display: grid;
  grid-template-columns: minmax(10rem, 2fr) minmax(0, 3fr);
  gap: clamp(.85rem, 3vw, 2rem);
  inline-size: 100%;
  margin-block-start: .7rem;
}
.weapon-wheel-panel {
  min-inline-size: 0;
  margin-block-start: .2rem;
}
#weapon-wheel-help {
  margin-block-end: .6rem;
  color: #e3bb88;
  text-align: center;
}
#weapon-wheel {
  --wheel-height: 12.5rem;
  --wheel-item: 3.35rem;
  position: relative;
  display: grid;
  gap: .5rem;
  block-size: var(--wheel-height);
  padding: calc((var(--wheel-height) - var(--wheel-item)) / 2 - 1px) .55rem;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  border-block: 1px solid #996d44;
  background: linear-gradient(180deg, #0b0706, #2f2119 46%, #120b09 100%);
  box-shadow: inset 0 0 20px #000b;
}
#weapon-wheel button {
  min-inline-size: 0;
  block-size: var(--wheel-item);
  padding-inline: .35rem;
  scroll-snap-align: center;
  font-size: clamp(.82rem, 2.2vw, 1.12rem);
  box-shadow: inset 0 0 0 2px #110b09;
  color: #d9ba95;
}
#weapon-wheel button[aria-pressed="true"] {
  background: linear-gradient(165deg, #5f3923, #291b15 62%);
  border-color: #e6ae6f;
  box-shadow: inset 0 0 0 2px #2b180e, 0 0 12px #e7a55252;
  color: #ffe7b3;
}
.weapon-inspect {
  --weapon-ink: #edc393;
  display: grid;
  grid-template-columns: minmax(4.5rem, .8fr) minmax(0, 1.7fr);
  gap: .65rem .9rem;
  align-items: center;
  min-inline-size: 0;
}
.weapon-inspect:has(#weapon-portrait[data-weapon="ember-blade"]) { --weapon-ink: #ffad78 }
.weapon-inspect:has(#weapon-portrait[data-weapon="war-hammer"]) { --weapon-ink: #f0ba7f }
#weapon-portrait {
  display: grid;
  place-items: center;
  min-block-size: 9rem;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--weapon-ink), transparent 70%), transparent 69%);
  filter: drop-shadow(0 4px 5px #090504);
}
#weapon-portrait span {
  inline-size: 3.7rem;
  block-size: 7.6rem;
  rotate: 34deg;
  clip-path: polygon(50% 0, 65% 12%, 62% 62%, 72% 68%, 92% 68%, 92% 75%, 60% 75%, 58% 93%, 67% 96%, 58% 100%, 42% 100%, 33% 96%, 42% 93%, 40% 75%, 8% 75%, 8% 68%, 30% 68%, 38% 62%, 35% 12%);
  background: linear-gradient(90deg, #2c2527, #ac9291 30%, #eee0cc 50%, #7c6b69 54%, #3b3334 75%, #161317);
}
#weapon-portrait[data-weapon="ember-blade"] span {
  background: linear-gradient(90deg, #702921, #ea7740 30%, #fff0b2 49%, #f6a45c 53%, #a73b2a 74%, #301819);
}
#weapon-portrait[data-weapon="war-hammer"] span {
  clip-path: polygon(14% 9%, 86% 9%, 97% 17%, 97% 37%, 85% 45%, 62% 45%, 62% 92%, 70% 96%, 65% 100%, 35% 100%, 30% 96%, 38% 92%, 38% 45%, 15% 45%, 3% 37%, 3% 17%);
  background: linear-gradient(160deg, #393033 9%, #e5ae68 10%, #805e42 23%, #4f4445 24%, #63504b 45%, #a87c4d 48%, #37221a 67%, #68432a);
}
.weapon-description { min-inline-size: 0 }
#weapon-kind {
  color: var(--weapon-ink);
  font: 700 .72rem/1.2 var(--engraved);
}
#weapon-name {
  margin: .15rem 0 .35rem;
  color: #f9e1b7;
  font: 800 clamp(1.25rem, 4vw, 2.05rem)/1.07 var(--engraved);
  overflow-wrap: anywhere;
}
.weapon-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 4.4rem), 1fr));
  gap: .35rem;
  margin: 0;
  padding-block-start: .55rem;
  border-block-start: 1px solid #97704e;
}
.weapon-stats div {
  min-inline-size: 0;
  padding: .32rem .35rem;
  background: #140c0b;
  text-align: center;
}
.weapon-stats dt { color: #d9ac78; font: 700 .66rem/1.2 var(--engraved) }
.weapon-stats dd { margin: .16rem 0 0; color: #fff0d2; font-variant-numeric: tabular-nums }
#equip-weapon {
  grid-column: 1 / -1;
  justify-self: stretch;
  min-block-size: 46px;
}
@media (max-width: 600px) {
  #weapon-choices { grid-template-columns: minmax(0, 1fr); gap: .65rem }
  #weapon-wheel { --wheel-height: 7.2rem; --wheel-item: 2.65rem }
  #weapon-portrait { min-block-size: 6.3rem }
  #weapon-portrait span { inline-size: 2.65rem; block-size: 5.8rem }
}
.buttons { display: flex; flex-wrap: wrap; gap: .35rem }
.controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem }
.controls .buttons { display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: .3rem }
.controls .buttons:last-child { justify-content: end }

button, .album-link {
  min-height: 2.35rem;
  padding: .36rem .72rem;
  background: var(--iron);
  color: var(--text);
  border: 1px solid #8b6847;
  border-radius: 2px;
  box-shadow: var(--bevel);
  font: 700 .82rem/1.2 var(--engraved);
  letter-spacing: .035em;
  text-shadow: 0 1px #100a08;
  cursor: pointer;
}
.album-link {
  display: inline-flex;
  align-items: center;
  gap: .36rem;
  border-color: #527463;
  color: #c3e4c8;
  text-decoration: none;
}
button:not(:disabled):hover, button.held, .album-link:hover {
  border-color: #d0a36c;
  background: linear-gradient(172deg, #473327, #271a15);
}
button:focus-visible, .album-link:focus-visible { outline: 2px solid #ffe2a8; outline-offset: 3px }
button:disabled { opacity: .55; cursor: default }
.primary {
  background: var(--bronze);
  border-color: #f0c885;
  color: #211308;
  box-shadow: var(--bronze-bevel);
  text-shadow: 0 1px #ffe4ae77;
}
.primary:not(:disabled):hover { background: var(--bronze-lit); border-color: #ffe5b5 }
.controls[inert] { visibility: hidden }
.controls button { touch-action: none; user-select: none; min-height: 1.95rem; border-color: #6d5036; color: #ead4b5; font-size: .76rem; box-shadow: inset 0 0 0 1px #150d0b }
.controls button:not(:disabled):hover, .controls button.held { background: #ead4ae15; color: var(--text) }
.controls [data-key="strike"].counter-ready {
  box-shadow: inset 0 0 0 2px #f3ce83, 0 0 12px #e9ab547d;
}
.controls [data-key="strike"].counter-ready .touch-face b {
  color: #211308;
  border-color: #ffe0a5;
  background: var(--bronze-lit);
}
@media (prefers-reduced-motion: no-preference) {
  .controls [data-key="strike"].counter-ready { animation: counter-ready-flash .42s ease-out }
}
@keyframes counter-ready-flash {
  0%, 100% { filter: brightness(1) }
  32% { filter: brightness(1.5) }
}

.controls kbd { padding: .12em .34em; border: 1px solid #aa815875; border-radius: 2px; background: #1b1410; color: #eed6b1 }
kbd { color: var(--muted); font-size: .74rem; margin-inline-start: .18rem }
[hidden] { display: none !important }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
@media (max-width: 570px) {
  .game-header { gap: 0 .5rem }
  .arena-toolbar { min-inline-size: 0 }
  .arena-toolbar h2 { flex-basis: 100% }
  .hud-meter span { display: none }
  .controls .buttons, .controls .buttons:last-child { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch }
  .controls button { padding-inline: .12rem; border-color: #ccb18b46; font-size: clamp(.68rem, 3.2vw, .875rem) }
  .controls kbd { display: none }
}
@media (max-aspect-ratio: 1/1) {
  .stage { max-block-size: none }
  .stage:has(#arena-spotify:not([hidden])) > .arena-view { align-self: end }
  .stage:has(#action:not([hidden])) { gap: .5rem }
  .arena-launch { position: relative; inset: auto }
  .controls { grid-template-columns: 1fr }
}
@media (max-height: 460px) {
  .arena-launch { padding: .3rem .55rem }
  .controls kbd { display: none }
}
@media (max-height: 460px) and (orientation: landscape) {
  .stage:has(#arena-spotify:not([hidden])) {
    grid-template-columns: minmax(0, 1fr) minmax(12rem, 37%);
    grid-template-rows: minmax(0, 1fr);
    gap: .55rem;
  }
  .arena-launch:has(#arena-spotify:not([hidden])) {
    inline-size: 100%;
    max-block-size: 100cqh;
  }
  .launch-actions .primary { min-block-size: 2.15rem }
}
@media (pointer: coarse) {
  .controls button { min-height: 2.75rem }
}
.hud .run-hud {
  display: grid;
  grid-template-columns: auto;
  text-align: center;
  justify-items: center;
  align-self: start;
}
.arcade-dialog {
  box-sizing: border-box;
  max-inline-size: min(32rem, calc(100% - 2rem));
  max-block-size: calc(100dvh - 2rem);
  inline-size: 100%;
  margin: auto;
  padding: 1rem;
  overflow: auto;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
}
.arcade-dialog::backdrop { background: #0d0b0be0 }
.arcade-dialog p { color: var(--muted); font-size: 1.05rem }
.arcade-dialog p:empty { display: none }
#leaderboard-dialog {
  --score-gold: #f4c77b;
  --score-rim: #886033;
  --score-ink: #1b1111;
  padding: clamp(.85rem, 4vw, 1.5rem);
  border: 2px solid var(--score-rim);
  background:
    repeating-linear-gradient(0deg, #0000 0 3px, #09050736 3px 4px),
    radial-gradient(ellipse at 50% 0, #39211d, var(--score-ink) 68%);
  box-shadow: inset 0 0 0 3px #10090c, inset 0 0 0 5px #5f402a;
  clip-path: polygon(0 8px, 8px 8px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px,
    100% calc(100% - 8px), calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%,
    8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px));
  color: #f3e0bb;
}
.leaderboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-bottom: .65rem;
  padding-bottom: .55rem;
  border-bottom: 2px solid var(--score-rim);
}
#leaderboard-heading {
  color: var(--score-gold);
  font: 800 clamp(1.2rem, 5.8vw, 2rem)/1.1 var(--engraved);
  letter-spacing: .025em;
  text-shadow: 2px 2px #130909, 3px 3px #6b402e;
  text-transform: uppercase;
}
#leaderboard-dialog button { min-block-size: 44px; border-color: var(--score-rim) }
#leaderboard-dialog table {
  inline-size: 100%;
  border-collapse: collapse;
  font: 650 clamp(.76rem, 3.5vw, .95rem)/1.2 ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}
#leaderboard-dialog td, #leaderboard-dialog th {
  padding: .45rem .3rem;
  border-bottom: 1px solid #a47d4a45;
  text-align: left;
}
#leaderboard-dialog th { color: #dcb17c; font-size: .9em; letter-spacing: .08em; text-transform: uppercase }
#leaderboard-dialog tbody tr:nth-child(odd) { background: #e7b6760c }
#leaderboard-dialog tbody tr:first-child { color: var(--score-gold); background: #9d502d42 }
#leaderboard-dialog td:first-child { color: #d5ac75 }
#leaderboard-dialog td:nth-child(n+3), #leaderboard-dialog th:nth-child(n+3) { text-align: right }
#run-result {
  margin-block: .6rem 1rem;
  padding: .65rem .75rem;
  border: 1px solid #a9774c;
  background: #120c0dd1;
}
#run-result h3 { margin: 0; font: 700 1.12rem var(--engraved); color: var(--score-gold) }
#run-result dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .3rem .8rem;
  margin-block: .55rem;
}
#run-result dt { color: var(--muted) }
#run-result dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums }
#result-score, #result-rank { font-weight: 700 }
#initials-form { display: grid; justify-items: start; gap: .35rem; margin-top: .75rem }
#initials-form label { font-weight: 700 }
#initials-help { color: var(--muted) }
.score-entry { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem }
#initials-input {
  inline-size: 6ch;
  min-block-size: 44px;
  padding: .35rem .5rem;
  border: 1px solid var(--score-rim);
  color: var(--score-gold);
  background: #130b0f;
  font: 700 1.4rem/1.2 ui-monospace, monospace;
  letter-spacing: .15em;
}
#initials-input:focus-visible { outline: 2px solid var(--score-gold); outline-offset: 2px }
#play-again { margin-top: .65rem }
.controls .buttons:first-child { grid-template-columns: repeat(4, minmax(0, max-content)) }
@media (max-width: 570px) {
  .controls .buttons:first-child { grid-template-columns: repeat(4, minmax(0, 1fr)) }
}

.title-screen {
  position: relative;
  display: flex;
  align-items: center;
  min-block-size: 100vh;
  min-block-size: 100dvh;
  padding: clamp(1rem, 4dvh, 3rem) clamp(1.35rem, 9vw, 9rem);
  isolation: isolate;
  background: #141211;
}
.title-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, #100e0cf0, #100e0cb8 34%, transparent 63%),
    linear-gradient(0deg, #100e0c60, transparent 42%),
    url("assets/title-sentinel.webp") 70% center / cover no-repeat;
}
.title-content { inline-size: min(100%, 36rem) }
.title-logo { display: block; inline-size: clamp(6.75rem, 13vw, 11rem); block-size: auto; margin-block-end: clamp(1rem, 4dvh, 2.3rem) }
#title-heading {
  color: #f1d5a5;
  font: 800 clamp(2.9rem, min(10.6vw, 15dvh), 8.25rem)/.88 var(--engraved);
  letter-spacing: -.045em;
  text-shadow: 0 1px #fff0c6, 0 3px #5e3b22, 0 5px #24170f, 0 9px 28px #080504;
}
.title-rule {
  position: relative;
  inline-size: 8rem;
  block-size: 1px;
  margin-block: clamp(1rem, 3.8dvh, 2.15rem) .95rem;
  background: linear-gradient(90deg, #b98349, #f4d29a 50%, #b98349);
}
.title-rule::before, .title-rule::after {
  content: "";
  position: absolute;
  inset: -2px 0 auto auto;
  inline-size: 5px;
  block-size: 5px;
  background: #d4a56c;
  rotate: 45deg;
}
.title-rule::before { inset-inline: 0 auto }
.title-story {
  max-inline-size: 35ch;
  color: #f1debe;
  font: 500 clamp(1.2rem, 2.1vw, 1.48rem)/1.27 var(--prose);
  text-shadow: 0 2px 5px #080605;
  text-wrap: pretty;
}
.title-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin-block-start: clamp(1rem, 3.6dvh, 2rem) }
.title-actions button {
  position: relative;
  min-block-size: 3rem;
  max-inline-size: 100%;
  padding: .62rem 1.2rem;
  text-wrap: balance;
}
.title-actions .title-enter { font-size: clamp(.78rem, 1.45vw, .97rem) }
.title-actions button::before, .title-actions button::after {
  content: "";
  position: absolute;
  inset: calc(50% - 2px) .48rem auto auto;
  inline-size: 4px;
  block-size: 4px;
  border: 1px solid #edc0807a;
  background: #674324;
  rotate: 45deg;
  pointer-events: none;
}
.title-actions button::before { inset-inline: .48rem auto }
.title-campaign { margin-block-start: clamp(1.15rem, 3dvh, 1.75rem) }
.title-campaign h2 {
  margin-block-end: .53rem;
  color: #e6bf87;
  font: 700 clamp(.73rem, 1.8vmin, .87rem)/1.2 var(--engraved);
  letter-spacing: .13em;
  text-shadow: 0 2px 5px #080605;
}
.title-foes {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: clamp(.2rem, .62vw, .42rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.title-foes li {
  display: grid;
  position: relative;
  overflow: hidden;
  min-inline-size: 0;
  block-size: clamp(2.45rem, 9.6dvh, 4.65rem);
  border: 1px solid #77634c;
  border-block-start-color: color-mix(in srgb, var(--arena-light), #443629 56%);
  border-radius: 1px;
  box-shadow: inset 0 0 0 2px #120d0bbd, 0 3px 6px #0c070780;
  background: radial-gradient(ellipse at 52% 39%, color-mix(in srgb, var(--arena-light), #241a16 68%), #1d1612 80%);
}
.title-foes img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  min-block-size: 0;
  object-fit: contain;
  object-position: center bottom;
  padding: .18rem .12rem .64rem;
  filter: saturate(.68) brightness(.86) drop-shadow(0 1px 2px #100b0a);
}
.title-foes li span {
  position: absolute;
  inset: auto 0 0;
  padding-block: .05rem .12rem;
  background: linear-gradient(transparent, #18110fe6 76%);
  color: #f0d7af;
  font: 700 .67rem/1.1 var(--engraved);
  text-align: center;
}
.opponent.concealed { visibility: hidden }
main.cinematic {
  display: block;
  inline-size: 100%;
  padding: 0;
}
.cinematic .game-header, .cinematic .hud, .cinematic .controls { display: none }
.cinematic .game-screen { display: block; block-size: 100% }
.cinematic .sr-only { inset: 0 auto auto 0 }
.cinematic .stage { block-size: 100%; max-block-size: none; border: 0 }
.arena-intro {
  position: absolute;
  inset: auto max(0px, (100cqw - 100cqh * 16 / 9) / 2) max(0px, (100cqh - 100cqw * 9 / 16) / 2);
  padding: .3rem .75rem clamp(.4rem, 3vmin, 1.35rem);
  pointer-events: none;
  background: linear-gradient(transparent, #0d0a09 92%);
  text-align: center;
}
.arena-steps {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: clamp(.2rem, .75vmin, .45rem);
  inline-size: min(9.6rem, 45%);
  margin: 0 auto .45rem;
}
.arena-steps span { block-size: 3px; background: #b9a38368 }
.arena-steps .visited { background: #bb8a54 }
.arena-steps .current { background: #ffe3af; box-shadow: 0 0 7px #ffc07893 }
.arena-intro p { color: #f3d7a7; font-size: clamp(.66rem, 2.1vmin, 1rem); letter-spacing: .1em; text-transform: uppercase }
.arena-intro strong {
  display: block;
  opacity: 0;
  color: #fff0d5;
  font: 700 clamp(1.2rem, 6vmin, 3.8rem)/1.1 var(--engraved);
  text-shadow: 0 3px 16px #0d0807;
  transition: opacity .35s ease;
}
.arena-intro.revealed strong { opacity: 1 }
.arena-intro.victory-caption strong {
  font-size: clamp(1rem, 4.2vmin, 2.5rem);
  white-space: pre-line;
  text-wrap: balance;
}
.arena-intro.prologue-caption {
  padding: 0 clamp(.65rem, 5.4vmin, 3.5rem) clamp(.85rem, 8vmin, 4.1rem);
  background: none;
  text-align: start;
}
.arena-intro.prologue-caption p {
  max-inline-size: 48%;
  color: #e3bf83;
  font-size: clamp(.6rem, 1.9vmin, 1.02rem);
  text-shadow: 0 2px 9px #0d0807;
}
.arena-intro.prologue-caption strong {
  max-inline-size: 47%;
  margin-block-start: .25em;
  font-size: clamp(1.08rem, 5.9vmin, 3.85rem);
  text-wrap: balance;
}

.skip-intro {
  position: absolute;
  inset: clamp(.65rem, 3vmin, 1.25rem) clamp(.65rem, 3vmin, 1.25rem) auto auto;
}
@media (pointer: coarse) {
  .skip-intro { min-block-size: 2.75rem }
  .skip-intro kbd { display: none }
}
@media (max-aspect-ratio: 4/5) {
  .title-screen { align-items: end; padding-block-end: clamp(1.35rem, 4.8dvh, 3rem) }
  .title-foes li { block-size: clamp(2.1rem, 13vw, 3.25rem) }
  .title-screen::before {
    background:
      linear-gradient(0deg, #100e0c 4%, #100e0cf2 23%, #100e0c40 54%, transparent 72%),
      url("assets/title-sentinel.webp") 78% top / auto max(65%, 55vw) no-repeat;
  }
}
@media (max-height: 420px) and (min-aspect-ratio: 4/5) {
  .title-screen { padding-block: .55rem }
  .title-content { inline-size: min(100%, 26rem) }
  .title-logo { inline-size: 5rem; margin-block-end: .46rem }
  #title-heading { font-size: clamp(2.55rem, min(10vw, 15dvh), 3.65rem) }
  .title-rule { margin-block: .5rem }
  .title-story { max-inline-size: 100%; font-size: 1.1rem; line-height: 1.12 }
  .title-actions { margin-block-start: .5rem; gap: .35rem }
  .title-actions button { min-block-size: 2.35rem; padding: .38rem .92rem }
  .title-actions button::before { inset-inline-start: .32rem }
  .title-actions button::after { inset-inline-end: .32rem }
  .title-campaign { margin-block-start: .58rem }
  .title-campaign h2 { margin-block-end: .3rem }
  .title-foes li { block-size: 2.1rem }
}
@media (prefers-reduced-motion: reduce) {
  .cinematic .boss-dialogue:not([hidden]) { animation: none }
  .arena-intro strong { transition: none }
}
@media (max-width: 450px) and (max-aspect-ratio: 4/5) {
  .title-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .title-actions .title-enter { grid-column: 1 / -1 }
  #title-heading { font-size: clamp(2.6rem, 11.8vw, 3.8rem) }
}

.controls .touch-face { display: none }

@media (any-pointer: coarse), (max-width: 570px), (max-width: 850px) and (max-height: 460px) {
  main:not(.cinematic, [data-touch-combat]) .game-screen:has(#controls:not([hidden])):has(#pause:not([hidden]), #round-card:not([hidden])) {
    --shell-ink: #332d37;
    padding: clamp(6px, 2vw, 12px);
    background:
      radial-gradient(ellipse at 20% 0%, #fff8 0%, transparent 56%),
      linear-gradient(142deg, #e8e4da, #cbc6bb 70%, #b6afa4);
    color: var(--shell-ink);
    border: 1px solid #9e988d;
    border-radius: 17px 17px 28px 28px;
    box-shadow: 0 13px 24px #18162160, inset 0 2px 1px #fff9, inset 0 -4px 0 #a49c904d;
  }

  main:not([data-touch-combat]) .game-screen:has(#controls:not([hidden])):has(#pause:not([hidden]), #round-card:not([hidden])) {
    > .game-header .arena-toolbar h2 { color: var(--shell-ink) }
    > .game-header .masthead img { filter: brightness(0); opacity: .86 }
    > .stage { max-block-size: none; padding: 6px; border-radius: 9px; background: #242229; }
    .arena-view { --text: #eee1c6; color: var(--text); box-shadow: 0 0 0 2px #100e11; }
    :is(.controls, .game-header) :focus-visible {
      outline: 2px solid #5c2945;
      outline-offset: 3px;
    }
  }

  .controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: center;
    padding-block: 5px 7px;
  }
  .controls .desktop-label { display: none }
  .controls .touch-face {
    display: grid;
    justify-items: center;
    gap: 3px;
    pointer-events: none;
  }
  .controls .touch-face > span {
    font-size: .8rem;
    line-height: 1;
    letter-spacing: .02em;
  }
  .controls .buttons button {
    display: grid;
    place-content: center;
    min-block-size: 44px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    -webkit-touch-callout: none;
  }
  .controls .buttons.direction-pad:first-child {
    --key: clamp(44px, 8vw, 52px);
    position: relative;
    isolation: isolate;
    grid-template: repeat(3, var(--key)) / repeat(3, var(--key));
    justify-self: center;
    gap: 0;
    touch-action: none;
    filter: drop-shadow(0 3px 2px #000b) drop-shadow(0 -1px 0 #92929770);
  }
  .direction-pad::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(158deg, #818187 0%, #343437 10%, #171719 28%, #080809 46%, #0c0c0d 82%, #242425 100%);
    clip-path: polygon(35% 0, 65% 0, 67% 2%, 67% 33%, 98% 33%, 100% 35%, 100% 65%, 98% 67%, 67% 67%, 67% 98%, 65% 100%, 35% 100%, 33% 98%, 33% 67%, 2% 67%, 0 65%, 0 35%, 2% 33%, 33% 33%, 33% 2%);
  }
  .direction-pad::after {
    content: "";
    grid-area: 2 / 2;
    place-self: center;
    inline-size: 41%;
    block-size: 41%;
    border-radius: 50%;
    background: radial-gradient(circle at 46% 75%, #222224, #080809 75%);
    box-shadow: inset 0 2px 4px #000, 0 1px 0 #91919652;
  }
  .controls .direction-pad button { color: #eee1c6; line-height: 1 }
  .direction-pad .touch-face b { font-size: .92rem; text-shadow: 0 1px 1px #000 }
  .direction-pad [data-key="jump"] { grid-area: 1 / 2; border-radius: 6px 6px 0 0 }
  .direction-pad [data-key="left"] { grid-area: 2 / 1; border-radius: 6px 0 0 6px }
  .direction-pad [data-key="right"] { grid-area: 2 / 3; border-radius: 0 6px 6px 0 }
  .direction-pad [data-key="roll"] { grid-area: 3 / 2; border-radius: 0 0 6px 6px }
  .controls .direction-pad button.held { background: linear-gradient(#050506, #1e1e20); color: white; box-shadow: inset 0 2px 4px #000, inset 0 -1px 0 #86868b80 }

  .controls .buttons.action-pad:last-child {
    grid-template: repeat(2, auto) / repeat(2, minmax(48px, 60px));
    justify-content: center;
    gap: 5px 11px;
  }
  .controls .action-pad button {
    min-block-size: 62px;
    color: #332d37;
    font-weight: 720;
    white-space: nowrap;
  }
  .action-pad .touch-face { gap: 3px }
  .action-pad .touch-face b {
    display: grid;
    place-items: center;
    inline-size: 46px;
    block-size: 46px;
    border-radius: 50%;
    border: 1px solid #49494d;
    color: #f5f1eb;
    font-size: 1rem;
    background: linear-gradient(160deg, #737378 0%, #353537 11%, #222224 32%, #101011 44%, #080809 76%, #202022 100%);
    text-shadow: 0 1px 2px #000;
    box-shadow: 0 0 0 2px #060607, 0 3px 0 1px #000, inset 0 1px 1px #d7d7e18c;
  }
  .action-pad [data-key="strike"] { grid-area: 1 / 2 }
  .action-pad [data-key="guard"] { grid-area: 2 / 1; transform: translateY(-11px) }
  .action-pad [data-key="heavy"] { grid-area: 2 / 2 }
  .action-pad button.held b { transform: translateY(2px); filter: brightness(1.22) }

  @media (orientation: portrait) {
    main:not([data-touch-combat]) .game-screen:has(#controls:not([hidden])):has(#pause:not([hidden]), #round-card:not([hidden])) {
      > .game-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: .25rem;
      }
      .arena-toolbar { display: contents }
      .arena-toolbar h2 { grid-area: 2 / 1 / 3 / -1 }
      .arena-actions { grid-area: 1 / 2; gap: .15rem }
      .arena-actions button { padding-inline: .2rem }
      > .stage { max-block-size: calc((100vw - 1rem - 2 * clamp(6px, 2vw, 12px) - 14px) * 9 / 16 + 12px) }
    }
  }

  @media (orientation: landscape) and (max-height: 500px) {
    main:not(.cinematic, [data-touch-combat]) .game-screen:has(#controls:not([hidden])):has(#pause:not([hidden]), #round-card:not([hidden])) {
      position: relative;
      display: grid;
      grid-template: auto minmax(0, 1fr) / minmax(0, 1fr);
      padding: 7px 9px 9px;
      gap: 3px;

      > .game-header { grid-area: 1 / 1 }
      > .stage {
        grid-area: 2 / 1;
        align-self: stretch;
        min-inline-size: 0;
        padding: 3px;
        overflow: hidden;
      }
      > .controls {
        position: absolute;
        z-index: 2;
        inset: auto 14px 15px;
        display: flex;
        justify-content: space-between;
        padding: 0;
        pointer-events: none;
      }
      .controls .buttons.direction-pad:first-child { --key: 44px }
      .controls button { pointer-events: auto }
      .action-pad button {
        color: #fff0d5;
        text-shadow: 0 1px 2px #100e0d, 0 0 4px #100e0d;
      }
      .controls .buttons.action-pad:last-child { grid-template-columns: repeat(2, 52px); gap: 3px 7px }
      .controls .action-pad button { min-block-size: 58px }
      .action-pad .touch-face b { inline-size: 44px; block-size: 44px }

    }
  }
}

.opening-cinematic .stage { grid-template-rows: minmax(0, 1fr) }
.opening-cinematic .arena-view {
  inline-size: 100%;
  block-size: 100%;
  aspect-ratio: auto;
}
.opening-cinematic .arena-intro {
  inset: auto 0 0;
}
@media (orientation: portrait) {
  .opening-cinematic .prologue-caption {
    padding: 2.4rem clamp(1rem, 6vw, 2.5rem) max(1.8rem, env(safe-area-inset-bottom));
    background: linear-gradient(transparent, #0d0a09b3);
  }
  .opening-cinematic .prologue-caption :is(p, strong) { max-inline-size: 100% }
  .opening-cinematic .prologue-caption strong { font-size: clamp(1.8rem, 8.6vw, 3.5rem) }
  .opening-cinematic .arena-intro:not(.prologue-caption) {
    padding-block: 1.55rem max(1.3rem, env(safe-area-inset-bottom));
  }
  .opening-cinematic .boss-dialogue {
    inset-block-start: 23%;
    inset-inline-start: 50%;
    max-inline-size: 86%;
    font-size: clamp(1rem, 4.5vw, 1.45rem);
  }
}

.ending-credits:not([hidden]) {
  position: absolute;
  inset: 8% 7%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  place-content: center;
  align-items: center;
  gap: clamp(.65rem, 5cqw, 3.5rem);
  color: #fff0d5;
  animation: ending-credits-reveal 1.25s ease both;
}
.ending-credits img {
  inline-size: min(100%, 71cqh);
  block-size: auto;
  max-block-size: 71cqh;
  object-fit: contain;
  image-rendering: pixelated;
  justify-self: end;
}
.ending-credits h2 { font-size: clamp(.9rem, 5.5cqh, 2rem); color: #d9b57c }
.ending-credits ul {
  list-style: none;
  padding: 0;
  margin: .45em 0 0;
  font: 500 clamp(.85rem, 6.5cqh, 2.5rem)/1.35 var(--prose);
}
.arena-intro.ending-lyrics strong span { display: block }
.arena-intro.ending-lyrics strong span:first-child,
.arena-intro.ending-lyrics-second strong span:last-child { animation: ending-credits-reveal 1.35s ease both }
.arena-intro.ending-lyrics:not(.ending-lyrics-second) strong span:last-child { visibility: hidden }
.arena-intro.ending-final-caption strong { animation: ending-credits-reveal 1.2s ease-out both }
@keyframes ending-credits-reveal { from { opacity: 0 } to { opacity: 1 } }
@media (prefers-reduced-motion: reduce) {
  .ending-credits:not([hidden]),
  .arena-intro.ending-lyrics strong span,
  .arena-intro.ending-final-caption strong { animation: none }
}

.ending-discography:not([hidden]) {
  position: absolute;
  inset: 11% 7% 8%;
  overflow: auto;
  padding: .3rem;
  display: grid;
  align-content: safe center;
  gap: clamp(.35rem, 3cqh, 1.2rem);
  animation: ending-credits-reveal 1.25s ease both;
}
.ending-discography h2 {
  color: #d9b57c;
  text-align: center;
  font-size: clamp(1rem, 7cqh, 2.65rem);
}
.ending-discography ul {
  margin: 0 auto;
  padding: 0;
  list-style: none;
  inline-size: min(100%, 47rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.1rem, 1.6cqh, .6rem) clamp(.6rem, 4cqw, 2.25rem);
}
.ending-discography .spotify-cta {
  inline-size: 100%;
  min-block-size: clamp(1.6rem, 8cqh, 2.75rem);
  font-size: clamp(.68rem, 3.6cqh, 1.12rem);
  padding: .2rem .45rem;
  text-transform: none;
  letter-spacing: .025em;
}
@media (prefers-reduced-motion: reduce) {
  .ending-discography:not([hidden]) { animation: none }
}

#vigil-caption{position:absolute;inset:0;z-index:4;container-type:size;color:#f5e7ca;font-family:var(--prose);pointer-events:none;text-shadow:0 2px 5px #090605,0 0 12px #090605}
#vigil-caption[hidden],#vigil-caption [hidden]{display:none}
#vigil-title{position:absolute;top:12%;left:5%;right:10%;margin:0;font:700 clamp(1.12rem,6.4cqh,3.1rem)/1.05 var(--engraved);letter-spacing:-.03em}
#vigil-tracks{position:absolute;top:27%;right:4%;width:36%;margin:0;padding:.7em .9em .72em 2.3em;background:linear-gradient(105deg,#100d11da,#100d11b3);font-size:clamp(.58rem,3.22cqh,1.2rem);line-height:1.2}
#vigil-tracks::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: color-mix(in srgb, var(--vigil-ink) 46%, transparent);
  clip-path: polygon(evenodd,
    0 3px, 3px 3px, 3px 0, calc(100% - 3px) 0, calc(100% - 3px) 3px, 100% 3px,
    100% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 100%,
    3px 100%, 3px calc(100% - 3px), 0 calc(100% - 3px), 0 3px,
    1px 4px, 4px 4px, 4px 1px, calc(100% - 4px) 1px, calc(100% - 4px) 4px, calc(100% - 1px) 4px,
    calc(100% - 1px) calc(100% - 4px), calc(100% - 4px) calc(100% - 4px), calc(100% - 4px) calc(100% - 1px),
    4px calc(100% - 1px), 4px calc(100% - 4px), 1px calc(100% - 4px), 1px 4px);
}
#vigil-tracks li{padding:.15em 0}
#vigil-tracks li::marker{color:var(--vigil-ink)}
.vigil-excerpt{position:absolute;bottom:8%;left:5%;max-width:54%;margin:0;padding:.4em .7em;background:#0d0a0be0;border-left:1px solid var(--vigil-ink);font:italic clamp(.68rem,3.45cqh,1.32rem)/1.2 var(--prose)}
.vigil-excerpt a{display:block;margin-top:.4em;font-size:.69em;color:#ead6ad;pointer-events:auto}
#the-sentinel:has(#vigil-caption:not([hidden])) .skip-intro { z-index: 6 }
@media (max-width: 600px) {
  #vigil-title { font-size: clamp(.86rem, 6.6cqh, 1.4rem); right: 26%; top: 14% }
  #vigil-tracks { font-size: clamp(.53rem, 3.6cqh, .8rem); width: 42%; right: 3%; top: 28% }
  #vigil-tracks li { padding: .06em 0 }
  #vigil-caption .vigil-excerpt { max-width: 50%; font-size: clamp(.54rem, 3.7cqh, .8rem); bottom: 9% }
}

.handheld-trim { display: none }

@media (any-pointer: coarse) and (max-width: 950px), (any-pointer: coarse) and (max-height: 500px) {
  #the-sentinel #controls,
  #the-sentinel #controls * {
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
  }

  html:has(#the-sentinel[data-touch-combat]:not([hidden], [data-phase="weapon"])),
  body:has(#the-sentinel[data-touch-combat]:not([hidden], [data-phase="weapon"])) { background: #000 }

  #the-sentinel:is([data-phase="arena-opening"], [data-phase="fighting"], [data-phase="round-ready"], [data-phase="round-rest"], [data-phase="defeat"]) {
    inline-size: 100%;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    background: #000;
  }

  #the-sentinel:is([data-phase="arena-opening"], [data-phase="fighting"], [data-phase="round-ready"], [data-phase="round-rest"], [data-phase="defeat"]) .game-screen:has(#controls) {
    position: relative;
    display: grid;
    --case-rail: clamp(6px, 2vw, 12px);
    --case-footer: clamp(27px, 9dvh, 62px);
    grid-template: minmax(0, min(calc((100vw - 2 * var(--case-rail) - 12px) * .5625), calc(100% - 156px))) auto / minmax(0, 1fr);
    align-content: center;
    isolation: isolate;
    gap: 0;
    margin: auto 4px;
    max-block-size: min(100%, max(29rem, 126vw));
    padding: 19px var(--case-rail) var(--case-footer);
    overflow: hidden;
    color: var(--text);
    border: 1px solid transparent;
    border-radius: 22px 22px 45px 25px;
    background:
      linear-gradient(144deg, #343236, #121213 16%, #080809 49%, #040404 70%, #242326) padding-box,
      linear-gradient(155deg, #777479, #38363a 36%, #252426 68%, #6a666b) border-box;
    box-shadow: inset 0 0 0 2px #0b0b0c, inset 0 1px 3px #ffffff38, inset 0 -7px 11px #000;

    &::before {
      content: '';
      position: absolute;
      inset: 4px;
      z-index: -1;
      border: 1px solid #aca7ae46;
      border-radius: 17px 17px 40px 20px;
      pointer-events: none;
    }

    &::after {
      content: '';
      position: absolute;
      inset: 8px auto auto 50%;
      inline-size: 20px;
      block-size: 2px;
      translate: -50% 0;
      border-radius: 2px;
      background: #d99b65;
      box-shadow: 0 0 7px #d99b658c;
      pointer-events: none;
    }

    .handheld-trim {
      position: absolute;
      inset: auto 9% 0 8%;
      display: flex;
      block-size: var(--case-footer);
      justify-content: space-between;
      align-items: center;
      pointer-events: none;
    }

    .handheld-trim img {
      inline-size: auto;
      max-inline-size: 22%;
      block-size: min(52%, 31px);
      object-fit: contain;
      opacity: .6;
    }

    .speaker-grille {
      display: grid;
      inline-size: clamp(29px, 10vw, 48px);
      gap: 3px;
      transform: rotate(-34deg);
    }

    .speaker-grille i {
      block-size: 2px;
      border-radius: 2px;
      background: #020203;
      box-shadow: 0 1px 0 #77737a80;
    }

    > .stage {
      grid-area: 1 / 1;
      align-self: stretch;
      max-block-size: none;
      padding: 0;
      border-radius: 0;
      background: transparent;
    }

    .arena-view {
      background: #000;
      border-radius: 8px 8px 0 0;
      box-shadow: 0 0 0 1px #8a85895e;
    }

    > .game-header {
      position: relative;
      z-index: 3;
      grid-area: 2 / 1;
      align-self: center;
      justify-self: center;
      display: grid;
      justify-items: center;
      pointer-events: none;
    }

    :is(.masthead, .arena-toolbar h2, .arena-actions button:not(#pause)) { display: none }
    .arena-toolbar { min-inline-size: 0 }
    .arena-actions #pause {
      min-inline-size: 44px;
      min-block-size: 44px;
      padding-inline: .35rem;
      border: 1px solid #4d4d50;
      border-radius: 6px;
      background: linear-gradient(#2a2a2b, #0b0b0c 55%, #050506);
      box-shadow: inset 0 1px 0 #a0a0a058;
      color: #f5f1eb;
      pointer-events: auto;
    }

    > #controls {
      grid-area: 2 / 1;
      position: relative;
      inset: auto;
      display: flex;
      justify-content: space-between;
      gap: 0;
      padding: 6px max(5px, 2vw) 9px;
      background: #000;
      border: 0;
      border-radius: 0 0 10px 10px;
    }

    .controls .action-pad button { color: var(--text) }
    .fighter-hud strong, .hud-meter span { display: none }
    .hud { gap: .5rem; padding: .34rem .6rem .65rem }
    .hud .run-hud { display: flex; align-items: center; gap: .35rem }
    .hud .fighter-hud { gap: .25rem }
    :is(.controls, .game-header) :focus-visible { outline-color: #ecd0a1 }
  }

  @media (orientation: portrait) and (max-width: 375px) {
    #the-sentinel:is([data-phase="arena-opening"], [data-phase="fighting"], [data-phase="round-ready"], [data-phase="round-rest"], [data-phase="defeat"]) .game-screen:has(#controls) {
      --case-footer: clamp(50px, 9dvh, 62px);

      > .game-header {
        position: absolute;
        inset: auto 0 calc((var(--case-footer) - 44px) / 2);
        justify-self: stretch;
      }
    }

    #the-sentinel .game-screen:has(.handheld-trim) .controls .buttons.action-pad:last-child {
      grid-template-columns: repeat(2, 48px);
      column-gap: 6px;
    }
  }

  /* Keep the portrait music selection and the pause menu dense and scrollable. */
  html:has(#the-sentinel:is([data-phase="arena-ready"], [data-phase="paused"])),
  body:has(#the-sentinel:is([data-phase="arena-ready"], [data-phase="paused"])) {
    overflow: auto;
  }
  #the-sentinel:is([data-phase="arena-ready"], [data-phase="paused"]) {
    block-size: auto;
    min-block-size: 100dvh;

    .game-screen { display: flex; justify-content: flex-start }
    .game-header { gap: .25rem .55rem }
    .masthead img { inline-size: 2.25rem }
    .masthead h1, .hud-fighter-name strong { display: none }
    .arena-toolbar { min-inline-size: 0 }
    > .game-screen > .stage {
      flex: none;
      max-block-size: none;
      container-type: inline-size;
    }
    .stage .arena-view { inline-size: 100% }
    .arena-launch:has(#arena-spotify:not([hidden])) { max-block-size: none }
    .arena-launch .primary, .arena-actions button { min-block-size: 44px }
  }
  #the-sentinel[data-phase="arena-ready"] {
    #controls { display: none }
    .game-header { order: 0 }
    .stage:has(#arena-spotify:not([hidden])) {
      order: 1;
      grid-template-rows: auto auto;
      align-content: start;
    }
    .stage .arena-view { align-self: start }
  }
  #the-sentinel[data-phase="paused"] {
    .stage .arena-view { display: none }
    .panel { order: -1 }
    .arena-launch { position: relative; inset: auto }
  }

  @media (orientation: landscape) and (max-height: 500px) {
    #the-sentinel:is([data-phase="arena-opening"], [data-phase="fighting"], [data-phase="round-ready"], [data-phase="round-rest"], [data-phase="defeat"]) .game-screen:has(#controls) {
      grid-template-rows: minmax(0, 1fr);
      > .stage { inline-size: calc(100% - 118px); justify-self: center }
      > .game-header { position: absolute; inset: 4px 5px auto auto }
      > #controls {
        position: absolute;
        inset: auto 5px 5px;
        padding: 0;
        pointer-events: none;
        background: transparent;
        border: 0;
      }
      #controls button { pointer-events: auto }
    }
    #the-sentinel[data-phase="arena-ready"] .stage:has(#arena-spotify:not([hidden])) {
      grid-template-rows: auto;
    }
    #the-sentinel[data-phase="arena-ready"] .stage .arena-view { max-inline-size: 125dvh }
  }
}

:is(.mobile-arena-art, .mobile-arena-title, #mobile-game-menu) { display: none }

@media (any-pointer: coarse) and (max-width: 950px), (any-pointer: coarse) and (max-height: 500px) {
  #the-sentinel[data-phase="arena-ready"] {
    inline-size: 100%;
    padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    background: #131211;

    .game-screen { position: relative; gap: 0 }
    .game-header {
      position: absolute;
      z-index: 5;
      inset: max(.65rem, env(safe-area-inset-top)) 1rem auto;
      justify-content: flex-end;
      flex-wrap: nowrap;
      pointer-events: none;
    }
    .masthead { display: none }
    .arena-toolbar { flex: none }
    .arena-toolbar h2 { position: absolute; clip-path: inset(50%); inline-size: 1px; block-size: 1px; overflow: hidden }
    #mobile-game-menu {
      display: grid;
      place-items: center;
      inline-size: 44px;
      block-size: 44px;
      padding: 0 0 .25rem;
      border-radius: 50%;
      font-size: 1.4rem;
      background: #171411dc;
      pointer-events: auto;
    }
    .arena-actions {
      display: none;
      position: absolute;
      inset: 49px 0 auto auto;
      padding: .3rem;
      border: 1px solid #806746;
      background: #191512;
      pointer-events: auto;
    }
    #mobile-game-menu[aria-expanded="true"] + .arena-actions { display: flex }
    .hud { display: none }
    .stage:has(#arena-spotify:not([hidden])) {
      min-block-size: calc(100dvh - env(safe-area-inset-bottom));
      grid-template: auto auto / minmax(0, 1fr);
      align-content: end;
      isolation: isolate;
      row-gap: 0;
    }
    .stage .arena-view {
      display: grid;
      align-items: end;
      position: static;
      inline-size: 100%;
      aspect-ratio: auto;
      container-type: normal;
      box-shadow: none;
      background: transparent;
    }
    #arena { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0 }
    .mobile-arena-art { display: block; position: absolute; inset: 0; z-index: -1; overflow: hidden }
    .mobile-arena-art::after {
      content: '';
      position: absolute;
      inset: 0;
      background:
        linear-gradient(180deg, #110d0bbf, transparent 25%, transparent 39%, #110d0ba6 64%, #110d0bf5 86%),
        radial-gradient(ellipse at 55% 42%, transparent 34%, #08060583);
    }
    .mobile-arena-art img { position: absolute; image-rendering: pixelated }
    #mobile-arena-landscape { inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover }
    .mobile-arena-sentinel, #mobile-arena-boss { object-fit: contain; object-position: center bottom }
    .mobile-arena-sentinel { inset: auto auto 30% -6%; inline-size: 58%; block-size: 53% }
    #mobile-arena-boss { inset: auto -7% 27% auto; inline-size: 80%; block-size: 68%; scale: -1 1 }
    .mobile-arena-art img { animation: mobile-arena-reveal 1.65s cubic-bezier(.2, .65, .2, 1) both }
    .mobile-arena-title {
      display: block;
      position: absolute;
      z-index: 2;
      inset: max(1.35rem, env(safe-area-inset-top)) 3.9rem auto 1.05rem;
      pointer-events: none;
    }
    .mobile-arena-title p {
      font-size: .75rem;
      font-weight: 750;
      letter-spacing: .17em;
      text-transform: uppercase;
      color: #f1ca8f;
    }
    .mobile-arena-title strong {
      display: block;
      max-inline-size: 15ch;
      margin-block-start: .4rem;
      font: 700 clamp(1.55rem, 7.9vw, 2.8rem)/1.04 var(--engraved);
      letter-spacing: -.04em;
      text-shadow: 0 2px 12px #080605;
      text-wrap: balance;
    }
    .boss-dialogue {
      position: relative;
      inset: auto;
      inline-size: auto;
      max-inline-size: none;
      translate: none;
      padding: .4rem 1.3rem .85rem;
      border: 0;
      background: transparent;
      box-shadow: none;
      font-size: clamp(1.06rem, 5.3vw, 1.42rem);
      line-height: 1.2;
      text-align: center;
      text-shadow: 0 2px 10px #080605, 0 2px 3px #080605;
    }
    .boss-dialogue::after { display: none }
    .boss-dialogue:not([hidden]) { animation: mobile-challenge-rise .7s .3s ease-out both }
    .arena-launch:has(#arena-spotify:not([hidden])) {
      inline-size: calc(100% - 2rem);
      max-inline-size: 30rem;
      max-block-size: none;
      gap: .65rem;
      padding: .65rem 0 1rem;
      background: transparent;
      border: 0;
      border-radius: 0;
      box-shadow: none;
      animation: mobile-challenge-rise .5s .9s ease-out both;
    }
    .launch-actions .primary { inline-size: 100%; min-block-size: 47px }
  }

  #the-sentinel:is([data-phase="arena-opening"], [data-phase="fighting"], [data-phase="round-ready"], [data-phase="round-rest"], [data-phase="defeat"]) {
    .hud-fighter-name strong {
      display: block;
      min-inline-size: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-size: clamp(.55rem, 2.3vw, .76rem);
    }
  }

  @media (orientation: landscape) {
    #the-sentinel[data-phase="arena-ready"] {
      .stage:has(#arena-spotify:not([hidden])) {
        grid-template: minmax(0, 1fr) / minmax(0, 1fr) minmax(14rem, 40%);
        align-items: end;
      }
      .stage .arena-view { align-self: end; max-inline-size: none }
      .mobile-arena-title { inset-inline-end: 45% }
      .mobile-arena-title strong { font-size: clamp(1.3rem, 4.2vw, 2.4rem) }
      .mobile-arena-sentinel { inset: auto auto 9% 1%; inline-size: 25%; block-size: 59% }
      #mobile-arena-boss { inset: auto auto 8% 16%; inline-size: 47%; block-size: 76% }
      .mobile-arena-art::after {
        background: linear-gradient(90deg, transparent 28%, #110d0bc9 64%, #110d0bf2),
                    linear-gradient(180deg, #100b09a8, transparent 40%, #100b09d4);
      }
      .boss-dialogue { padding-block-end: .75rem }
      .arena-launch:has(#arena-spotify:not([hidden])) { margin-block-start: 3.6rem }
    }
    #the-sentinel:is([data-phase="arena-opening"], [data-phase="fighting"], [data-phase="round-ready"], [data-phase="round-rest"], [data-phase="defeat"]) .game-screen:has(#controls) {
      max-block-size: none;
      padding: 12px var(--case-rail) 9px;
      border-radius: 18px 18px 24px 18px;

      &::before { border-radius: 13px 13px 19px 13px }
      &::after { inset-block-start: 6px }
      .handheld-trim { display: none }
      .arena-view { border-radius: 7px }
      > .stage { inline-size: 100% }
      > .game-header { inset: auto auto 10px 50%; translate: -50% 0 }
      > #controls { inset: auto calc(var(--case-rail) + 4px) 11px }
    }
  }
}

@keyframes mobile-challenge-rise {
  from { opacity: 0; transform: translateY(.75rem) }
}
@keyframes mobile-arena-reveal {
  from { opacity: .55; transform: scale(1.035) }
}
@media (prefers-reduced-motion: reduce) {
  #the-sentinel[data-phase="arena-ready"] :is(.boss-dialogue:not([hidden]), .mobile-arena-art img, .arena-launch:has(#arena-spotify:not([hidden]))) {
    animation: none;
  }
}

/* Outbound music links use the same engraved controls as the game. */
:is(button, a).spotify-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .55em;
  min-block-size: 2.75rem;
  max-inline-size: 100%;
  padding: .45rem .85rem;
  border: 1px solid #9b885d;
  border-radius: .22rem;
  background: linear-gradient(180deg, #2e4030, #18271e 56%, #101c16);
  box-shadow: inset 0 0 0 2px #101710, inset 0 0 0 3px #82957245, 0 3px 8px #080605af;
  color: #e6f0d9;
  font: 700 .76rem/1.17 var(--engraved);
  letter-spacing: .065em;
  text-transform: uppercase;
  text-wrap: balance;
}
.spotify-cta::before {
  content: "";
  inline-size: .42em;
  block-size: .42em;
  flex: none;
  rotate: 45deg;
  background: #b5cf8e;
  box-shadow: 0 0 5px #a2c17880;
}
.ending-discography .spotify-cta::before { display: none }
:is(button, a).spotify-cta:not(:disabled):hover {
  color: #fff7de;
  background: linear-gradient(180deg, #3a523a, #253b2a 56%, #17291c);
  border-color: #d1b47b;
}
:is(button, a).spotify-cta:focus-visible { outline-color: #e3c790 }
button.spotify-cta-title {
  min-block-size: 3.35rem;
  margin-block-start: clamp(.55rem, 1.8dvh, 1rem);
  padding: .6rem clamp(.8rem, 3vw, 1.55rem);
  font-size: clamp(.88rem, 2.35vw, 1.08rem);
}
#break-spotify { margin-block-start: .35rem }
@media (max-height: 460px) and (orientation: landscape) {
  button.spotify-cta-title { min-block-size: 2.75rem }
}

button.spotify-cta-small {
  min-block-size: 2rem;
  padding: .2rem .25rem;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #cbd9ae;
  font: 600 .78rem/1.1 var(--prose);
  letter-spacing: .015em;
  text-transform: none;
}
.spotify-cta-small::before { display: none }
.spotify-cta-small span {
  padding: .25em .65em;
  border: 1px solid #8b76507d;
  border-radius: .16rem;
  background: #1a261c;
}
button.spotify-cta-small:not(:disabled):hover { background: transparent }
.spotify-cta-small:hover span, .spotify-cta-small:focus-visible span {
  border-color: #cca971;
  background: #25372a;
}
@media (pointer: coarse) {
  button.spotify-cta-small { min-block-size: 44px }
}

#arena-track-credit {
  display: grid;
  gap: .08rem;
  justify-self: end;
  max-inline-size: 100%;
  margin-block-start: .13rem;
  color: #f2dcb4;
  font: 600 clamp(.72rem, 2.7cqw, 1rem)/1.12 var(--prose);
  overflow-wrap: anywhere;
  text-wrap: balance;
}
#arena-track-release {
  color: #d7c19e;
  font-size: .86em;
  font-weight: 500;
}

.battle-opening {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  isolation: isolate;
  pointer-events: auto;
}
.battle-veil {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: #070505;
  opacity: var(--veil, 0);
}
#battle-inscription {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: .28em;
  color: #f1d5a5;
  font: 700 clamp(1.5rem, 6.3vmin, 4.5rem)/1.15 var(--engraved);
  text-align: center;
  text-shadow: 0 1px #783f30, 0 2px 3px #140907, 0 5px 24px #070302;
  animation: inscription-rise 3s cubic-bezier(.2,.7,.3,1) both;
}
.battle-word { display: inline-flex; white-space: nowrap }
.battle-letter { position: relative; display: inline-block }
.battle-letter b {
  display: inline-block;
  animation: inscription-break 2.75s ease-in both;
  animation-delay: var(--drop-delay);
}
.battle-letter::after {
  content: "";
  position: absolute;
  inset: 74% auto auto 30%;
  inline-size: .075em;
  block-size: .24em;
  border-radius: 55% 52% 66% 64%;
  background: linear-gradient(#4e0d12, #c6473b 72%);
  box-shadow: 0 1px 4px #340609;
  opacity: 0;
  transform-origin: center top;
  animation: inscription-drip .98s cubic-bezier(.34,.02,.86,.62) both;
  animation-delay: calc(1.65s + var(--drop-delay));
}
.battle-letter:nth-child(3n)::after { inset-inline-start: 65%; inline-size: .052em }
.battle-letter:nth-child(4n)::after { inset-inline-start: 47%; block-size: .34em }
@keyframes inscription-rise {
  0% { opacity: 0; translate: 0 .32em }
  26%, 90% { opacity: 1; translate: 0 0 }
  100% { opacity: 0; translate: 0 0 }
}
@keyframes inscription-break {
  0%, 55% { opacity: 1; clip-path: inset(0 0 0); translate: 0 }
  70% { opacity: .94; color: #d98c69; clip-path: inset(12% 0 8%); translate: 0 .035em }
  84% { opacity: .52; color: #ac392b; clip-path: inset(49% 0 0); translate: 0 .12em }
  100% { opacity: 0; clip-path: inset(95% 0 0); translate: 0 .23em }
}
@keyframes inscription-drip {
  0% { opacity: 0; transform: scaleY(.3) }
  27% { opacity: 1; transform: translateY(.06em) scaleY(1.35) }
  65% { opacity: .85; transform: translateY(calc(var(--drop-distance) * .4)) scaleY(.78) }
  100% { opacity: 0; transform: translateY(var(--drop-distance)) scaleY(.5) }
}
#battle-count {
  min-inline-size: 1.45em;
  color: #f7dfb1;
  font: 700 clamp(3.3rem, 15vmin, 8rem)/1 var(--engraved);
  text-align: center;
  text-shadow: 0 .045em #7b4b2c, 0 0 .17em #e2a75b70, 0 .08em .22em #090403;
  opacity: clamp(.28, calc(1.26 - var(--beat, 0)), 1);
  transform: scale(calc(1.055 - var(--beat, 0) * .055));
}
.battle-opening[data-step="count"] { background: #09050426 }
@media (prefers-reduced-motion: reduce) {
  #battle-inscription, .battle-letter b { animation: none }
  .battle-letter::after { display: none }
  #battle-count { opacity: 1; transform: none }
}

.panel:has(.record-sleeve:not([hidden])) { padding: .75rem; gap: .35rem .9rem }
.record-sleeve:not([hidden]) {
  display: grid;
  align-items: center;
  gap: .55rem .8rem;
  inline-size: 100%;
  min-inline-size: 0;
  color: #f4e4c9;
}
.record-cover {
  display: block;
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid #ae8b60;
}
.record-label {
  display: block;
  margin-block-end: .15rem;
  color: #d4b68d;
  font: 700 .72rem/1.2 var(--engraved);
}
.record-track h3 {
  margin: 0 0 .15rem;
  color: #f2d4a5;
  font: 700 1.4rem/1.07 var(--engraved);
}
.record-track p, .record-action p { color: #e7d6ba; font: .88rem/1.24 var(--prose) }
.record-action p { margin-block-start: .25rem; color: #d2c3a9 }
.record-action button.spotify-cta {
  min-block-size: 44px;
  padding: .4rem .7rem;
  font-size: .76rem;
  white-space: normal;
}

.record-sleeve:not([hidden]) {
  grid-template-columns: 4rem minmax(0,1fr);
  padding: .6rem;
  background: #191412;
  border: 1px solid #6e563b;
  box-shadow: inset 0 0 0 2px #100b09;
}
.record-cover { grid-row: 1 / 3; align-self: start }
.record-track h3 { font-size: 1.2rem }
@media (min-width: 701px) {
  .panel:has(.record-sleeve:not([hidden])) {
    grid-template-columns: minmax(0,1fr) minmax(330px,405px);
    align-items: start;
  }
  .panel:has(.record-sleeve:not([hidden])) :is(#headline,#detail,#upgrades) { grid-column: 1 }
  .record-sleeve:not([hidden]) { grid-column: 2; grid-row: 1 / 4; align-self: center }
}
@media (max-width: 700px) {
  .panel:has(.record-sleeve:not([hidden])) { padding: .6rem; gap: .35rem }
  .record-sleeve:not([hidden]) { margin-block-start: .25rem }
}

.record-track h3 a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .14em;
}
.record-track h3 a:focus-visible { outline: 2px solid #e3c790; outline-offset: 3px }

a.soundtrack-credits-link {
  margin-block-start: clamp(.3rem, 2cqh, .8rem);
  padding-inline: clamp(.45rem, 2cqw, .85rem);
  font-size: clamp(.65rem, 2.6cqh, .85rem);
  text-align: center;
  text-decoration: none;
}
a.soundtrack-credits-link:focus-visible { outline: 2px solid #e3c790; outline-offset: 3px }
