:root {
  --app-viewport-width: 100vw;
  --app-viewport-height: 100svh;
  color-scheme: dark;
  font-family: Inter, Arial, sans-serif;
  background: #020611;
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

.browser-scroll-handoff {
  display: none;
}

html.browser-scroll-enabled {
  height: auto;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
  scrollbar-width: none;
}

html.browser-scroll-enabled::-webkit-scrollbar {
  display: none;
}

html.browser-scroll-enabled body {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  overflow: visible;
  overscroll-behavior-y: auto;
}

html.browser-scroll-enabled .app-shell {
  position: sticky;
  top: 0;
  overscroll-behavior-y: auto;
  touch-action: pan-y;
}

html.browser-scroll-enabled .browser-scroll-handoff {
  display: block;
  width: 1px;
  height: 128px;
  pointer-events: none;
}

body {
  position: fixed;
  inset: 0;
  width: var(--app-viewport-width, 100vw);
  height: var(--app-viewport-height, 100svh);
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: #020611;
}

button,
input,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

[hidden] {
  display: none !important;
}

.app-shell {
  position: relative;
  display: block;
  width: var(--app-viewport-width, 100vw);
  height: var(--app-viewport-height, 100svh);
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: none;
  isolation: isolate;
  background: #020611 url("../assets/backgrounds/valkyrie-background-landscape-v01.png") center / cover no-repeat;
}

html[data-stage-layout="portrait"] .app-shell {
  background-image: url("../assets/backgrounds/valkyrie-background-portrait-v01.png");
}

.entry-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.cover-screen {
  background-image: url("../assets/concept/valkyrie-concept-battle-v01.png");
}

.loading-screen {
  background-image: url("../assets/concept/valkyrie-concept-reels-v01.png");
}

.entry-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 4, 14, 0.9), rgba(2, 7, 19, 0.28) 48%, rgba(1, 4, 12, 0.74)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.78));
  backdrop-filter: saturate(0.82);
}

.entry-copy,
.loading-copy {
  position: relative;
  z-index: 1;
  width: min(680px, 86vw);
  text-align: center;
  text-shadow: 0 4px 20px #000;
}

.entry-copy {
  margin-top: 29vh;
}

.entry-kicker,
.loading-copy > span,
.demo-label {
  color: #a9d9ff;
  font-size: clamp(11px, 1.2vw, 16px);
  font-weight: 900;
  letter-spacing: 0.24em;
}

.entry-copy h1 {
  margin: 12px 0;
  color: #ffc951;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 6vw, 78px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-shadow: 0 3px 0 #7c2d08, 0 0 30px rgba(255, 149, 24, 0.68), 0 10px 26px #000;
}

.entry-copy h1 small {
  display: block;
  margin-bottom: 8px;
  color: #fff2c1;
  font-size: 0.54em;
  letter-spacing: 0.16em;
}

.entry-copy p,
.loading-copy p {
  margin: 16px auto 24px;
  color: #eef7ff;
  font-size: clamp(15px, 1.7vw, 22px);
  font-weight: 700;
}

.entry-button,
.feature-card button {
  min-width: 240px;
  min-height: 58px;
  padding: 14px 28px;
  border: 2px solid #ffe6a1;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe670, #d77a0a 58%, #833405);
  color: #160b02;
  font-weight: 1000;
  letter-spacing: 0.09em;
  box-shadow: 0 0 0 4px rgba(94, 38, 7, 0.88), 0 0 28px rgba(255, 167, 35, 0.6);
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}

.entry-button:active,
.feature-card button:active {
  transform: scale(0.96);
}

.demo-label {
  display: block;
  margin-top: 20px;
  color: rgba(220, 236, 255, 0.72);
  font-size: 10px;
}

.loading-copy {
  padding: 32px;
  border: 1px solid rgba(154, 202, 255, 0.25);
  border-radius: 28px;
  background: rgba(3, 9, 25, 0.72);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.62), inset 0 0 30px rgba(55, 129, 233, 0.12);
  backdrop-filter: blur(12px);
}

.loading-copy h2 {
  margin: 12px 0 0;
  color: #ffe59c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 54px);
}

.loading-track {
  width: 100%;
  height: 18px;
  overflow: hidden;
  border: 2px solid #7e6129;
  border-radius: 99px;
  background: #020714;
  box-shadow: inset 0 3px 10px rgba(0, 0, 0, 0.9);
}

.loading-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1d74ff, #66d8ff 48%, #fff29c);
  box-shadow: 0 0 18px #4cbcff;
  transition: width 100ms linear;
}

.loading-copy > strong {
  display: block;
  margin-top: 10px;
  color: #fff6d2;
}

.slot-stage {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: var(--stage-design-width, 1920px);
  height: var(--stage-design-height, 1080px);
  overflow: hidden;
  isolation: isolate;
  container-type: size;
  transform: translate3d(var(--stage-x, 0), var(--stage-y, 0), 0) scale(var(--stage-scale, 1));
  transform-origin: 0 0;
}

.dragon-presence,
.valkyrie-presence {
  position: absolute;
  pointer-events: none;
}

.dragon-presence,
.valkyrie-presence {
  display: block;
}

.dragon-presence {
  left: -5%;
  top: 13%;
  z-index: 8;
  width: 31%;
  height: 72%;
  background: url("../assets/characters/dragon-battle-v01.png") center / contain no-repeat;
  filter: drop-shadow(0 0 32px rgba(255, 73, 16, 0.24));
}

.dragon-presence::before,
.dragon-presence::after {
  display: none;
}

.dragon-presence::before {
  left: 6%;
  top: -12%;
  width: 33%;
  height: 37%;
  transform: rotate(-19deg);
}

.dragon-presence::after {
  right: 2%;
  top: -13%;
  width: 31%;
  height: 36%;
  transform: rotate(18deg);
}

.dragon-eye {
  display: none;
}

.dragon-jaw {
  display: none;
}

.valkyrie-presence {
  right: -1%;
  bottom: 8%;
  z-index: 8;
  width: 27%;
  height: 70%;
  background: url("../assets/characters/valkyrie-battle-v01.png") center / contain no-repeat;
  filter: drop-shadow(0 0 28px rgba(69, 157, 255, 0.32));
}

.valkyrie-presence > * {
  display: none;
}

.valkyrie-sigil {
  position: absolute;
  left: 34%;
  top: 18%;
  display: grid;
  width: 32%;
  aspect-ratio: 1;
  place-items: center;
  border: 5px solid rgba(185, 225, 255, 0.75);
  border-radius: 50% 50% 44% 44%;
  background: linear-gradient(160deg, #dceaff, #315f9b 48%, #09152c);
  color: #e9f7ff;
  font-family: Georgia, serif;
  font-size: 4cqw;
  font-weight: 1000;
  text-shadow: 0 3px 8px #001;
  box-shadow: 0 0 30px rgba(75, 174, 255, 0.45);
}

.wing {
  position: absolute;
  top: 17%;
  width: 50%;
  height: 62%;
  background: linear-gradient(140deg, rgba(226, 240, 255, 0.9), rgba(63, 112, 178, 0.2));
  clip-path: polygon(0 0, 100% 42%, 17% 58%, 85% 75%, 0 100%, 28% 52%);
}

.wing-left {
  left: 0;
  transform: rotate(-18deg);
}

.wing-right {
  right: 0;
  transform: scaleX(-1) rotate(-18deg);
}

.game-logo {
  position: absolute;
  z-index: 22;
  left: 30%;
  top: 1.2%;
  width: 42%;
  height: 12%;
  text-align: center;
  filter: drop-shadow(0 8px 10px #000);
  pointer-events: none;
}

.game-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.game-logo span,
.game-logo strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.94;
}

.game-logo span {
  color: #fff4c2;
  font-size: 2.3cqw;
  letter-spacing: 0.26em;
}

.game-logo strong {
  color: #ffc847;
  font-size: 3.25cqw;
  letter-spacing: -0.04em;
  text-shadow: 0 3px 0 #6b2606, 0 0 18px rgba(255, 174, 43, 0.68), 0 8px 16px #000;
}

.hoard-panel,
.battle-panel {
  position: absolute;
  z-index: 24;
  border: 2px solid rgba(231, 183, 78, 0.75);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(8, 21, 48, 0.94), rgba(2, 7, 20, 0.92));
  box-shadow: inset 0 0 24px rgba(46, 108, 194, 0.14), 0 12px 32px rgba(0, 0, 0, 0.58);
}

.hoard-panel {
  left: 2.5%;
  bottom: 14%;
  width: 16.5%;
  padding: 1.1% 1%;
  text-align: center;
}

.hoard-panel::before {
  display: block;
  content: "◆ ◆ ◆";
  margin-bottom: 3px;
  color: #ffc846;
  letter-spacing: 0.22em;
}

.hoard-panel span,
.battle-heading span,
.spin-counter span {
  color: #bcdfff;
  font-size: 0.82cqw;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.hoard-panel strong {
  display: block;
  margin: 5px 0 2px;
  color: #ffe071;
  font-family: Georgia, serif;
  font-size: 2.1cqw;
  text-shadow: 0 0 18px rgba(255, 174, 25, 0.62);
}

.hoard-panel small {
  color: rgba(232, 241, 255, 0.58);
  font-size: 0.55cqw;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.battle-panel {
  right: 14.8%;
  top: 7.2%;
  width: 17%;
  padding: 0.75% 0.8%;
}

.battle-heading,
.spin-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.battle-heading strong,
.spin-counter strong {
  color: #fff0bd;
  font-size: 1.05cqw;
}

.hp-segments {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
  margin: 7px 0;
}

.hp-segment {
  height: 9px;
  border: 1px solid #7a2b12;
  border-radius: 2px;
  background: linear-gradient(180deg, #ffdf62, #f24b0b 56%, #8e1206);
  box-shadow: 0 0 7px rgba(255, 65, 10, 0.5);
  transition: opacity 180ms ease, filter 180ms ease, transform 180ms ease;
}

.hp-segment.is-lost {
  background: #11151e;
  border-color: #303746;
  box-shadow: none;
  opacity: 0.5;
}

.spin-counter {
  padding-top: 5px;
  border-top: 1px solid rgba(173, 205, 255, 0.16);
}

.reel-frame {
  position: absolute;
  z-index: 20;
  left: 20.5%;
  top: 15.5%;
  width: 62.5%;
  height: 62.5%;
  background: transparent;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.72));
}

.reel-frame::after {
  position: absolute;
  inset: 0;
  z-index: 20;
  content: "";
  background: url("../assets/ui/valkyrie-reel-frame-v01.png") center / 100% 100% no-repeat;
  pointer-events: none;
}

.reel-crown {
  position: absolute;
  left: 39%;
  top: -4.8%;
  z-index: 22;
  width: 22%;
  padding: 0.45% 1%;
  border: 2px solid #d5a84d;
  border-radius: 999px;
  background: #07142a;
  color: #d7e9ff;
  text-align: center;
  font-size: 0.75cqw;
  font-weight: 1000;
  letter-spacing: 0.15em;
}

.reel-crown span {
  color: #ffd660;
}

.reels {
  position: absolute;
  left: 5.5%;
  top: 10.8%;
  z-index: 2;
  display: grid;
  width: 89%;
  height: 74%;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  overflow: hidden;
  border: 3px solid #060b15;
  border-radius: 8px;
  background: #050c1b;
  box-shadow: inset 0 0 28px #000;
}

.reel-column {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(114, 156, 217, 0.22);
  background:
    radial-gradient(circle at 50% 32%, rgba(49, 90, 148, 0.22), transparent 46%),
    linear-gradient(160deg, #0b1b36, #020713);
}

.reel-column::after {
  position: absolute;
  inset: 0;
  z-index: 4;
  content: "";
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.78);
  pointer-events: none;
}

.reel-strip {
  position: absolute;
  left: 0;
  top: -25%;
  display: grid;
  width: 100%;
  height: 150%;
  grid-template-rows: repeat(6, 1fr);
  will-change: transform;
}

.reel-cell {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(114, 156, 217, 0.15);
}

.reel-cell::after {
  position: absolute;
  inset: 0;
  content: "";
  box-shadow: inset 0 0 16px rgba(0, 0, 0, 0.68);
  pointer-events: none;
}

.symbol {
  position: relative;
  display: grid;
  width: 86%;
  height: 82%;
  place-items: center;
  border-radius: 18%;
  color: #d7e7ff;
  transform: translateY(0) scale(1);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 180ms ease, opacity 180ms ease;
}

.symbol-image {
  position: absolute;
  inset: -5%;
  width: 110%;
  height: 110%;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.6));
}

.symbol.has-art {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.symbol.has-art .symbol-mark,
.symbol.has-art .symbol-name {
  display: none;
}

.symbol-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.55cqw;
  font-weight: 1000;
  line-height: 0.9;
  text-align: center;
  text-shadow: 0 3px 0 #02050c, 0 0 12px currentColor;
}

.symbol-name {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 4%;
  color: #e9f1ff;
  font-size: 0.47cqw;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-shadow: 0 2px 4px #000;
}

.symbol[data-tier~="low"] .symbol-name {
  display: none;
}

.symbol[data-tier~="low"] .symbol-mark {
  font-size: 4.6cqw;
}

.symbol[data-tier~="red"] { color: #ff7157; }
.symbol[data-tier~="blue"] { color: #62a6ff; }
.symbol[data-tier~="violet"] { color: #d889ff; }
.symbol[data-tier~="green"] { color: #75e5a0; }
.symbol[data-tier~="gold"] { color: #ffd462; }
.symbol[data-tier~="cyan"] { color: #64e8ff; }

.symbol[data-tier="high"] {
  border: 2px solid rgba(218, 171, 75, 0.72);
  background: radial-gradient(circle at 50% 32%, rgba(80, 151, 255, 0.38), rgba(8, 19, 42, 0.6) 62%);
  color: #e7d49e;
  box-shadow: inset 0 0 18px rgba(126, 183, 255, 0.24);
}

.symbol[data-tier="high"] .symbol-mark {
  font-size: 1.45cqw;
}

.symbol[data-tier="hero"] {
  width: 92%;
  height: 90%;
  border: 3px solid #f0c36a;
  background:
    linear-gradient(135deg, transparent 0 36%, rgba(206, 232, 255, 0.26) 36% 43%, transparent 43%),
    radial-gradient(circle at 50% 35%, #cfe5ff, #345e96 38%, #0a1428 70%);
  color: #fff2bd;
  box-shadow: inset 0 0 24px rgba(220, 241, 255, 0.3), 0 0 12px rgba(255, 206, 103, 0.28);
}

.symbol[data-tier="hero"] .symbol-mark {
  font-size: 1.36cqw;
}

.symbol[data-tier="scatter"] {
  width: 94%;
  height: 92%;
  border: 3px solid #ffca4d;
  background: radial-gradient(circle, #ffb32e 0 9%, #a32209 32%, #250706 68%);
  color: #fff095;
  box-shadow: 0 0 18px rgba(255, 80, 12, 0.72), inset 0 0 22px #ff4011;
}

.symbol[data-tier="scatter"] .symbol-mark {
  font-size: 1.3cqw;
}

.symbol[data-tier="wild"],
.symbol[data-tier="wild2"] {
  width: 92%;
  height: 92%;
  border: 3px solid #9de6ff;
  background: linear-gradient(135deg, #eaf7ff 0 4%, #1b5fb3 5% 15%, #061433 36% 64%, #318aff 84%, #f4fbff 96%);
  color: #dff8ff;
  box-shadow: 0 0 22px rgba(52, 158, 255, 0.76), inset 0 0 20px rgba(77, 176, 255, 0.62);
}

.symbol.has-art[data-tier] {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.symbol[data-tier="wild"] .symbol-mark,
.symbol[data-tier="wild2"] .symbol-mark {
  font-size: 1.6cqw;
}

.symbol[data-tier="wild2"] {
  border-color: #fff19b;
  box-shadow: 0 0 28px rgba(53, 186, 255, 0.9), inset 0 0 22px rgba(255, 236, 112, 0.4);
}

.reel-column.is-spinning .symbol {
  filter: none;
  opacity: 1;
  transform: none;
}

.reel-column.is-stopping .symbol {
  filter: brightness(1.18);
}

.reel-cell.is-win .symbol {
  z-index: 3;
  filter: brightness(1.35) saturate(1.2);
  transform: scale(1.08);
  animation: winPulse 760ms ease-in-out infinite alternate;
}

.reel-cell.is-attacker .symbol {
  animation: attacker 480ms ease-in-out 2 alternate;
}

@keyframes winPulse {
  to { filter: brightness(1.75) saturate(1.35); box-shadow: 0 0 30px rgba(255, 224, 103, 0.9); }
}

@keyframes attacker {
  to { transform: scale(1.16) translateX(5%); filter: brightness(1.8); }
}

.performance-win {
  position: absolute;
  left: 29%;
  top: 36%;
  z-index: 30;
  display: grid;
  width: 42%;
  min-height: 28%;
  place-content: center;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(1, 8, 25, 0.92), rgba(5, 28, 74, 0.45) 48%, transparent 72%);
  text-align: center;
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 180ms ease, transform 220ms ease;
  pointer-events: none;
}

.performance-win.is-visible {
  opacity: 1;
  transform: scale(1);
}

.performance-win span {
  color: #b9e8ff;
  font-size: 1.3cqw;
  font-weight: 1000;
  letter-spacing: 0.2em;
}

.performance-win strong {
  color: #ffe071;
  font-family: Georgia, serif;
  font-size: 4.1cqw;
  text-shadow: 0 3px 0 #6f2d06, 0 0 24px rgba(255, 198, 50, 0.86);
}

.attack-fx {
  position: absolute;
  inset: 0;
  z-index: 34;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
}

.attack-fx span {
  position: absolute;
  left: 54%;
  top: 44%;
  width: 52%;
  height: 4px;
  background: linear-gradient(90deg, transparent, #fff, #5ed8ff 45%, transparent);
  box-shadow: 0 0 18px #61caff;
  transform: rotate(-12deg) scaleX(0);
  transform-origin: left center;
}

.attack-fx.is-active {
  opacity: 1;
}

.attack-fx.is-active span {
  animation: swordStrike 420ms ease-out;
}

@keyframes swordStrike {
  0% { transform: rotate(-12deg) scaleX(0); opacity: 0; }
  32% { transform: rotate(-12deg) scaleX(1); opacity: 1; }
  100% { transform: rotate(-12deg) scaleX(1.12); opacity: 0; }
}

.line-info {
  position: absolute;
  left: 31%;
  top: 80.9%;
  z-index: 25;
  width: 38%;
  color: #eaf4ff;
  font-size: 1cqw;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-align: center;
  text-shadow: 0 3px 10px #000;
}

.meter-source {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.modal-layer {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 5%;
  background:
    radial-gradient(circle at 50% 40%, rgba(37, 105, 195, 0.25), transparent 34%),
    rgba(1, 4, 13, 0.82);
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
  backdrop-filter: blur(8px);
}

.modal-layer.is-visible {
  opacity: 1;
  visibility: visible;
}

.feature-card,
.menu-card {
  width: min(760px, 74%);
  padding: 3.2%;
  border: 3px solid #cf9b3d;
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0, rgba(69, 129, 222, 0.28), transparent 42%),
    linear-gradient(180deg, rgba(11, 29, 63, 0.98), rgba(2, 7, 20, 0.99));
  box-shadow: 0 0 0 7px rgba(4, 13, 31, 0.92), 0 28px 90px rgba(0, 0, 0, 0.78), inset 0 0 45px rgba(50, 111, 202, 0.18);
  text-align: center;
}

.feature-card > span,
.menu-card header span {
  color: #9dd8ff;
  font-size: 0.9cqw;
  font-weight: 1000;
  letter-spacing: 0.22em;
}

.feature-card h2,
.menu-card h2 {
  margin: 10px 0;
  color: #ffe071;
  font-family: Georgia, serif;
  font-size: 3.3cqw;
  text-shadow: 0 3px 0 #632406, 0 0 24px rgba(255, 174, 35, 0.62);
}

.feature-card p {
  margin: 12px auto 22px;
  color: #edf6ff;
  font-size: 1.2cqw;
  line-height: 1.55;
}

.feature-rule {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  align-items: center;
  margin: 0 auto 24px;
  padding: 14px;
  border: 1px solid rgba(196, 223, 255, 0.2);
  border-radius: 14px;
  background: rgba(2, 9, 25, 0.7);
}

.feature-rule strong {
  color: #ffce54;
  font-family: Georgia, serif;
  font-size: 1.7cqw;
}

.feature-rule span {
  color: #b9dcff;
  font-size: 0.68cqw;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.result-card > p {
  margin: 6px 0 0;
  color: #fff0a5;
  font-family: Georgia, serif;
  font-size: 4.5cqw;
  font-weight: 1000;
}

.result-card > small {
  display: block;
  margin: 0 0 24px;
  color: #b6d9ff;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.menu-card {
  width: 72%;
  max-height: 82%;
  overflow: auto;
  text-align: left;
}

.menu-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(183, 213, 255, 0.18);
}

.menu-card h2 {
  font-size: 2.1cqw;
}

.menu-card header button {
  width: 54px;
  height: 54px;
  border: 1px solid #ab7b32;
  border-radius: 50%;
  background: #07152e;
  color: #fff0c1;
  font-size: 32px;
  cursor: pointer;
}

.menu-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2%;
  padding-top: 2.5%;
}

.menu-columns article {
  padding: 18px;
  border: 1px solid rgba(180, 211, 255, 0.16);
  border-radius: 16px;
  background: rgba(2, 9, 24, 0.62);
}

.menu-columns h3 {
  margin: 0 0 10px;
  color: #ffcf61;
  font-size: 1cqw;
}

.menu-columns p {
  margin: 0;
  color: #dceaff;
  font-size: 0.75cqw;
  line-height: 1.6;
}

.slot-stage.is-feature .game-logo strong,
.slot-stage.is-feature .hoard-panel strong {
  text-shadow: 0 0 24px rgba(255, 196, 45, 0.94);
}

.slot-stage.is-critical .battle-panel {
  animation: criticalPulse 650ms ease-in-out infinite alternate;
}

@keyframes criticalPulse {
  to { border-color: #ff4f24; box-shadow: 0 0 28px rgba(255, 48, 19, 0.58), inset 0 0 24px rgba(255, 42, 10, 0.18); }
}

html[data-stage-layout="portrait"] .slot-stage {
  width: var(--stage-design-width, 1080px);
  height: var(--stage-design-height, 1920px);
}

html[data-stage-layout="portrait"] .game-logo {
  left: 9%;
  top: 2.5%;
  width: 82%;
  height: 12%;
}

html[data-stage-layout="portrait"] .game-logo span {
  font-size: 5.2cqw;
}

html[data-stage-layout="portrait"] .game-logo strong {
  font-size: 7.4cqw;
}

html[data-stage-layout="portrait"] .dragon-presence {
  left: -7%;
  top: 12%;
  width: 47%;
  height: 32%;
}

html[data-stage-layout="portrait"] .valkyrie-presence {
  right: -2%;
  top: 13%;
  bottom: auto;
  width: 34%;
  height: 26%;
}

html[data-stage-layout="portrait"] .valkyrie-sigil {
  font-size: 10cqw;
}

html[data-stage-layout="portrait"] .battle-panel {
  right: 5%;
  top: 17%;
  width: 54%;
  padding: 1.8%;
}

html[data-stage-layout="portrait"] .battle-heading span,
html[data-stage-layout="portrait"] .spin-counter span {
  font-size: 2.1cqw;
}

html[data-stage-layout="portrait"] .battle-heading strong,
html[data-stage-layout="portrait"] .spin-counter strong {
  font-size: 2.55cqw;
}

html[data-stage-layout="portrait"] .hp-segment {
  height: 14px;
}

html[data-stage-layout="portrait"] .reel-frame {
  left: 3.5%;
  top: 28.2%;
  width: 93%;
  height: 37.2%;
}

html[data-stage-layout="portrait"] .reel-crown {
  top: -4.5%;
  font-size: 1.9cqw;
}

html[data-stage-layout="portrait"] .reels {
  gap: 5px;
}

html[data-stage-layout="portrait"] .symbol-mark {
  font-size: 5.2cqw;
}

html[data-stage-layout="portrait"] .symbol-name {
  font-size: 1.08cqw;
}

html[data-stage-layout="portrait"] .symbol[data-tier~="low"] .symbol-mark {
  font-size: 9.8cqw;
}

html[data-stage-layout="portrait"] .symbol[data-tier="high"] .symbol-mark {
  font-size: 3.15cqw;
}

html[data-stage-layout="portrait"] .symbol[data-tier="hero"] .symbol-mark,
html[data-stage-layout="portrait"] .symbol[data-tier="scatter"] .symbol-mark {
  font-size: 2.75cqw;
}

html[data-stage-layout="portrait"] .symbol[data-tier="wild"] .symbol-mark,
html[data-stage-layout="portrait"] .symbol[data-tier="wild2"] .symbol-mark {
  font-size: 3.25cqw;
}

html[data-stage-layout="portrait"] .hoard-panel {
  left: 4%;
  bottom: auto;
  top: 67.5%;
  width: 43%;
  padding: 2.2% 1.4%;
}

html[data-stage-layout="portrait"] .hoard-panel span {
  font-size: 2cqw;
}

html[data-stage-layout="portrait"] .hoard-panel strong {
  font-size: 5cqw;
}

html[data-stage-layout="portrait"] .hoard-panel small {
  font-size: 1.2cqw;
}

html[data-stage-layout="portrait"] .line-info {
  left: 5%;
  top: 71.6%;
  width: 90%;
  font-size: 2.5cqw;
}

html[data-stage-layout="portrait"] .performance-win span {
  font-size: 3cqw;
}

html[data-stage-layout="portrait"] .performance-win strong {
  font-size: 9cqw;
}

html[data-stage-layout="portrait"] .feature-card,
html[data-stage-layout="portrait"] .menu-card {
  width: 88%;
  padding: 6%;
}

html[data-stage-layout="portrait"] .feature-card > span,
html[data-stage-layout="portrait"] .menu-card header span {
  font-size: 2.1cqw;
}

html[data-stage-layout="portrait"] .feature-card h2 {
  font-size: 8.5cqw;
}

html[data-stage-layout="portrait"] .feature-card p {
  font-size: 3cqw;
}

html[data-stage-layout="portrait"] .feature-rule strong {
  font-size: 4.2cqw;
}

html[data-stage-layout="portrait"] .feature-rule span {
  font-size: 1.55cqw;
}

html[data-stage-layout="portrait"] .result-card > p {
  font-size: 10cqw;
}

html[data-stage-layout="portrait"] .menu-card h2 {
  font-size: 5cqw;
}

html[data-stage-layout="portrait"] .menu-columns {
  grid-template-columns: 1fr;
}

html[data-stage-layout="portrait"] .menu-columns h3 {
  font-size: 2.6cqw;
}

html[data-stage-layout="portrait"] .menu-columns p {
  font-size: 2cqw;
}

@media (max-aspect-ratio: 1/1) {
  .entry-copy {
    margin-top: 38vh;
  }

  .entry-copy h1 {
    font-size: clamp(38px, 9vw, 68px);
  }

  .entry-shade {
    background: linear-gradient(180deg, rgba(0, 4, 13, 0.1), rgba(0, 5, 16, 0.88) 62%);
  }
}
