:root {
  color-scheme:dark;
  --bg:#0d0a12;
  --panel:#1b1121;
  --line:#4b2b43;
  --red:#ff4d65;
  --orange:#ffb174;
  --white:#fff2e8;
  --muted:#b99aa9
}
* {
  box-sizing:border-box
}
html {
  min-height:100%;
  background:var(--bg)
}
body {
  margin:0;
  background:radial-gradient(circle at 15% 0,#381726 0,transparent 35%),radial-gradient(circle at 85% 60%,#251b36 0,transparent 45%),var(--bg);
  color:var(--white);
  font-family:'Noto Sans SC',system-ui,sans-serif;
  min-height:100vh
}
button {
  font:inherit;
  cursor:pointer
}
button:focus-visible {
  outline:3px solid var(--orange);
  outline-offset:3px
}
.shell {
  width:min(1160px,100% - 32px);
  margin:auto
}
.site-header {
  height:82px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px
}
.brand {
  display:flex;
  align-items:center;
  gap:11px;
  font-size:20px;
  font-weight:900;
  letter-spacing:.08em
}
.brand small {
  display:block;
  font-size:9px;
  font-weight:800;
  letter-spacing:.32em;
  color:var(--muted)
}
.brand-mark {
  display:grid;
  place-items:center;
  width:39px;
  height:39px;
  background:linear-gradient(135deg,#ff7b5f,#e31c53);
  border-radius:11px;
  color:#190b16;
  box-shadow:0 5px 25px #e31c5555
}
.header-actions {
  display:flex;
  gap:8px
}
.icon-btn {
  border:1px solid #70405088;
  background:#291b2ad9;
  color:#ffe9e5;
  border-radius:10px;
  padding:10px 14px;
  font-size:12px;
  font-weight:700
}
.icon-btn:hover {
  background:#4c283b
}
.stage-wrap {
  position:relative;
  overflow:hidden;
  border:2px solid #814354;
  border-radius:19px;
  box-shadow:0 30px 80px #0009,0 0 40px #e43d4d24;
  aspect-ratio:16/9;
  isolation:isolate;
  touch-action:auto;
  background:#190d1b
}
.stage-wrap:after {
  pointer-events:none;
  content:'';
  position:absolute;
  inset:0;
  border-radius:17px;
  box-shadow:inset 0 0 30px #0008;
  z-index:13
}
canvas {
  display:block;
  width:100%;
  height:100%;
  image-rendering:pixelated;
  touch-action:none
}
.hud {
  position:absolute;
  inset:14px 16px auto;
  z-index:4;
  display:flex;
  gap:9px;
  pointer-events:none
}
.hud-item {
  padding:7px 15px;
  background:#160e1ed9;
  border:1px solid #a0555970;
  border-radius:9px;
  min-width:80px;
  box-shadow:0 8px 16px #09060b6b
}
.hud-item span {
  display:block;
  color:#d5a9ae;
  font-size:10px;
  font-weight:800;
  letter-spacing:.13em
}
.hud-item strong {
  font-size:18px;
  font-weight:900
}
.hud-item em {
  font-style:normal;
  color:#ffab75;
  font-size:12px;
  margin-left:2px
}
.hud-best {
  margin-left:auto
}
.zone-toast {
  position:absolute;
  z-index:5;
  left:50%;
  top:21%;
  transform:translate(-50%,-12px);
  opacity:0;
  white-space:nowrap;
  font-weight:900;
  letter-spacing:.1em;
  font-size:21px;
  text-shadow:0 3px 14px #000,0 0 20px #ff5e75;
  transition:opacity .3s,transform .3s
}
.zone-toast.show {
  opacity:1;
  transform:translate(-50%,0)
}
.float-layer {
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:8
}
.float-text {
  position:absolute;
  transform:translate(-50%,-50%);
  font-weight:900;
  color:#ffe0ad;
  text-shadow:0 2px 8px #000,0 0 12px #ff5a43;
  white-space:nowrap;
  animation:floatOut .8s ease-out forwards
}
@keyframes floatOut {
  from {
    opacity:0;
    translate:0 10px
  }
  20% {
    opacity:1
  }
  to {
    opacity:0;
    translate:0 -38px
  }
}
.screen {
  position:absolute;
  inset:0;
  z-index:10
}
.is-hidden {
  display:none!important
}
.screen-menu {
  display:flex;
  align-items:center;
  background:linear-gradient(90deg,#100b17a1,#140d1aef 44%,#150e1cf5 100%)
}
.menu-art {
  width:42%;
  align-self:stretch;
  display:flex;
  align-items:end;
  justify-content:center;
  position:relative;
  overflow:hidden
}
.menu-art:before {
  content:'';
  position:absolute;
  bottom:-20%;
  left:10%;
  width:80%;
  height:55%;
  background:#ff445345;
  filter:blur(48px)
}
.menu-art img {
  height:93%;
  max-width:120%;
  object-fit:contain;
  object-position:bottom;
  filter:drop-shadow(0 15px 25px #000c);
  image-rendering:pixelated;
  z-index:1
}
.menu-content {
  width:55%;
  padding:0 5% 0 1%;
  z-index:2
}
.eyebrow {
  margin:0 0 8px;
  color:#ffac86;
  font-size:10px;
  letter-spacing:.3em;
  font-weight:900
}
.menu-content h1 {
  font-size:clamp(35px,5.3vw,68px);
  letter-spacing:.08em;
  line-height:1;
  margin:0 0 16px;
  text-shadow:0 4px 25px #0008
}
.menu-content h1 span {
  color:var(--red)
}
.lead {
  line-height:1.8;
  color:#e3bfc2;
  font-size:clamp(11px,1.35vw,15px);
  margin:0 0 22px
}
.howto {
  display:flex;
  gap:7px;
  margin-bottom:22px
}
.howto>div {
  flex:1;
  padding:10px;
  background:#1d1322d9;
  border:1px solid #6d394b;
  border-radius:10px
}
.howto b {
  display:block;
  color:var(--red);
  font-size:10px
}
.howto span {
  display:block;
  font-size:12px;
  font-weight:800;
  margin:1px 0
}
.howto small {
  color:#bd9da5;
  font-size:9px
}
.primary-btn {
  border:0;
  border-radius:10px;
  background:linear-gradient(135deg,#ff865d,#f33758);
  color:#220d19;
  padding:12px 22px;
  font-weight:900;
  box-shadow:0 5px 0 #892643,0 11px 30px #f2385670;
  transition:transform .15s,filter .15s
}
.primary-btn:hover {
  filter:brightness(1.12);
  transform:translateY(-2px)
}
.primary-btn:active {
  transform:translateY(3px);
  box-shadow:0 2px 0 #892643
}
.primary-btn span {
  margin-left:17px
}
.control-note {
  color:#b492a1;
  font-size:10px;
  margin:18px 0 0
}
.screen-overlay {
  display:grid;
  place-items:center;
  background:#100a18dc;
  backdrop-filter:blur(8px)
}
.dialog {
  width:min(480px,85%);
  text-align:center;
  padding:30px;
  border:1px solid #a8505c;
  border-radius:18px;
  background:linear-gradient(160deg,#2e1b31,#130e1b);
  box-shadow:0 20px 80px #000b,0 0 35px #f23a4c22
}
.dialog h2 {
  font-size:30px;
  margin:4px 0 9px
}
.dialog p:not(.eyebrow) {
  color:#d8b6bd;
  font-size:13px;
  line-height:1.6
}
.result {
  display:flex;
  justify-content:space-around;
  margin:22px 0;
  padding:15px 5px;
  border-block:1px solid #6e3b4b
}
.result span {
  display:block;
  color:#b99aa9;
  font-size:11px
}
.result strong {
  display:block;
  color:#fff0d4;
  font-size:23px
}
.text-btn {
  display:block;
  margin:17px auto 0;
  border:0;
  background:none;
  color:#d4a4b0;
  font-size:12px
}
.text-btn:hover {
  color:#fff
}
.hold-btn {
  display:none;
  position:absolute;
  right:18px;
  bottom:19px;
  z-index:9;
  width:106px;
  height:106px;
  border-radius:50%;
  border:4px solid #ffb08b;
  background:radial-gradient(circle at 30% 20%,#ff7e76,#bd264c 75%);
  color:white;
  box-shadow:0 6px 0 #742844,0 0 28px #ff4f658c;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  touch-action:none;
  user-select:none
}
.hold-btn span {
  font-weight:900;
  font-size:14px
}
.hold-btn small {
  font-size:10px
}
.hold-btn.is-holding {
  transform:scale(.95);
  box-shadow:0 2px 0 #742844,0 0 38px #ff8e6a
}
.mobile-hint {
  display:none;
  position:absolute;
  left:18px;
  bottom:17px;
  z-index:4;
  background:#1c1224b9;
  padding:7px 10px;
  border-radius:7px;
  font-size:10px;
  color:#f1c6b6
}
.below-game {
  display:grid;
  grid-template-columns:1fr 1.15fr;
  gap:22px;
  margin:25px 0 32px
}
.intro,.character-panel {
  background:#19121fbb;
  border:1px solid #5f394d;
  border-radius:16px;
  padding:23px
}
.intro h2,.character-panel h2 {
  font-size:20px;
  margin:0 0 10px
}
.intro p:last-child {
  font-size:13px;
  line-height:1.85;
  color:#c7aeba;
  margin-bottom:0
}
.panel-head {
  display:flex;
  align-items:start;
  justify-content:space-between;
  gap:5px
}
.panel-head>span {
  font-size:10px;
  color:#bf9ca9;
  background:#301d31;
  padding:5px 8px;
  border-radius:20px
}
.character-list {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin-top:6px
}
.character-card {
  min-width:0;
  position:relative;
  border:1px solid #674054;
  border-radius:10px;
  background:#221727;
  color:#f5dce0;
  padding:8px;
  text-align:left;
  transition:border-color .2s,transform .2s
}
.character-card:hover:not(:disabled) {
  border-color:#ff9e78;
  transform:translateY(-2px)
}
.character-card.is-selected {
  border-color:#ff795f;
  background:#3a2232;
  box-shadow:inset 0 0 0 1px #ff795f66
}
.character-card:disabled {
  opacity:.63;
  cursor:not-allowed
}
.character-card img {
  display:block;
  height:54px;
  width:100%;
  object-fit:contain;
  object-position:left center;
  image-rendering:pixelated
}
.character-card b {
  display:block;
  font-size:12px
}
.character-card small {
  display:block;
  color:#bc9da7;
  font-size:9px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis
}
.character-card .unlock {
  color:#ffb174
}
footer {
  color:#987f8e;
  text-align:center;
  font-size:11px;
  padding:0 0 28px
}
@media(max-width:700px) {
  .shell {
    width:100%
  }
  .site-header {
    height:57px;
    padding:0 12px
  }
  .brand {
    font-size:14px
  }
  .brand-mark {
    width:30px;
    height:30px
  }
  .brand small {
    font-size:7px
  }
  .icon-btn {
    font-size:10px;
    padding:7px 8px
  }
  .stage-wrap {
    border-inline:0;
    border-radius:0
  }
  .menu-art {
    width:36%
  }
  .menu-art img {
    height:76%
  }
  .menu-content {
    width:64%;
    padding:0 3%
  }
  .menu-content h1 {
    font-size:clamp(24px,6vw,39px);
    margin-bottom:7px
  }
  .lead {
    line-height:1.45;
    margin-bottom:8px;
    font-size:10px
  }
  .howto {
    margin-bottom:10px
  }
  .howto>div {
    padding:5px
  }
  .howto b {
    font-size:8px
  }
  .howto span {
    font-size:9px
  }
  .howto small {
    display:none
  }
  .primary-btn {
    padding:8px 12px;
    font-size:11px
  }
  .control-note {
    display:none
  }
  .hud {
    inset:6px 6px auto;
    gap:3px
  }
  .hud-item {
    padding:3px 7px;
    min-width:54px
  }
  .hud-item span {
    font-size:7px
  }
  .hud-item strong {
    font-size:12px
  }
  .hud-item em {
    font-size:8px
  }
  .zone-toast {
    font-size:12px
  }
  .hold-btn {
    display:flex;
    width:62px;
    height:62px;
    right:10px;
    bottom:8px;
    border-width:2px
  }
  .hold-btn span {
    font-size:9px
  }
  .hold-btn small {
    font-size:7px
  }
  .mobile-hint {
    display:block;
    font-size:8px;
    bottom:8px;
    left:8px
  }
  .below-game {
    display:block;
    margin:15px 12px
  }
  .intro,.character-panel {
    padding:15px;
    margin-bottom:10px
  }
  .intro h2,.character-panel h2 {
    font-size:16px
  }
  .intro p:last-child {
    font-size:11px
  }
  .dialog {
    padding:16px
  }
  .dialog h2 {
    font-size:20px
  }
  .dialog p:not(.eyebrow) {
    font-size:10px
  }
  .result {
    margin:10px 0;
    padding:8px 0
  }
  .result strong {
    font-size:16px
  }
  .result span {
    font-size:8px
  }
  footer {
    font-size:9px
  }
}
@media(max-width:450px) {
  .howto>div:nth-child(3) {
    display:none
  }
  .menu-content {
    width:66%
  }
  .menu-art {
    width:34%
  }
  .lead br {
    display:none
  }
  .icon-btn {
    padding:6px;
    font-size:9px
  }
}

/* Screen mode controls stay beside sound and pause, including Android fullscreen. */
.orientation-select {
  border:1px solid #70405088;
  background:#291b2ad9;
  color:#ffe9e5;
  border-radius:10px;
  padding:10px 9px;
  font:700 12px 'Noto Sans SC',system-ui,sans-serif;
  cursor:pointer;
}
.orientation-select:focus-visible {
  outline:3px solid var(--orange);
  outline-offset:3px;
}
.attack-btn {
  display:flex;
  position:absolute;
  z-index:9;
  left:18px;
  bottom:18px;
  width:92px;
  height:70px;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  border:2px solid #95ecff;
  border-radius:15px;
  color:#efffff;
  background:linear-gradient(150deg,#247d99,#25395e);
  box-shadow:0 4px 0 #153047,0 0 25px #8de9ff66;
  touch-action:manipulation;
}
.attack-btn span {font-weight:900;font-size:13px}
.attack-btn small {font-size:10px}
.attack-btn:disabled {opacity:.43;filter:grayscale(.7);cursor:not-allowed;box-shadow:none}
.attack-btn:not(:disabled):active {transform:translateY(3px);box-shadow:0 1px 0 #153047}
.hud-chase {border-color:#ff695d;background:#501d2bdd;box-shadow:0 0 16px #ef364877}
.hud-chase strong {color:#ffce9e}
.rotate-tip {display:none}

body.landscape-mode {height:100dvh;overflow:hidden;background:#080713}
body.landscape-mode .shell {width:100%;height:100dvh;margin:0}
body.landscape-mode .site-header {height:48px;padding:0 14px;background:#140d1d}
body.landscape-mode main {height:calc(100dvh - 48px)}
body.landscape-mode .stage-wrap {height:100%;width:100%;aspect-ratio:auto;border:0;border-radius:0;box-shadow:none}
body.landscape-mode .stage-wrap:after {border-radius:0}
body.landscape-mode .below-game,body.landscape-mode footer {display:none}
body.landscape-mode .menu-art img {height:93%}
body.landscape-mode .menu-content h1 {font-size:clamp(30px,5vw,49px);margin-bottom:8px}
body.landscape-mode .lead {font-size:11px;line-height:1.45;margin-bottom:10px}
body.landscape-mode .howto {margin-bottom:10px}
body.landscape-mode .howto>div {padding:6px}
body.landscape-mode .control-note {display:none}
@media(orientation:portrait) {
  body.landscape-mode .rotate-tip {
    display:flex;
    position:absolute;
    z-index:12;
    inset:0;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    color:#fff2e8;
    font-size:18px;
    font-weight:900;
    line-height:1.8;
    background:#100b1bec;
  }
  body.landscape-mode .rotate-tip small {font-size:11px;font-weight:500;color:#d6b0c5}
}
@media(max-width:700px) {
  .header-actions {gap:4px}
  .orientation-select {padding:6px 4px;font-size:9px;max-width:82px}
  .attack-btn {left:8px;bottom:8px;width:64px;height:62px;border-radius:13px}
  .attack-btn span {font-size:10px}
  .attack-btn small {font-size:8px}
  .mobile-hint {display:none}
  .hud-chase {min-width:59px}
}

.route-hud{position:absolute;top:78px;left:16px;display:flex;flex-direction:column;gap:3px;pointer-events:none;padding:7px 11px;background:#140d20b8;border-left:3px solid #ffbe7b;border-radius:5px;color:#ffe3b7;font-size:12px}.route-hud span{font-size:11px;color:#e4d6e8}.landscape-mode .route-hud{top:68px}@media(max-width:600px){.route-hud{top:62px;left:8px;padding:4px 7px;font-size:10px}.route-hud span{font-size:9px}}

body.landscape-mode .hold-btn{display:flex;width:76px;height:76px;right:12px;bottom:12px;border-width:3px}body.landscape-mode .hold-btn span{font-size:10px}body.landscape-mode .hold-btn small{font-size:8px}@media(pointer:coarse) and (min-width:601px){.hold-btn{display:flex}}

.character-card small{white-space:normal;overflow:visible}
.skill-state{position:absolute;top:82px;right:16px;z-index:4;padding:6px 10px;border:1px solid #8266a5;background:#20162bd9;border-radius:8px;font-size:11px;color:#e1d1fa;pointer-events:none}
.result-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px}
.screen-overlay .dialog{max-height:calc(100% - 16px);overflow-y:auto;overscroll-behavior:contain}
.dialog .result-parts{font-size:10px;color:#b99aa9;overflow-wrap:anywhere}
.debug-panel{position:absolute;top:122px;left:16px;z-index:6;max-width:65%;font:10px monospace;color:#8defff;background:#080d19e8;border:1px solid #8defff66;padding:5px}
.debug-panel pre{max-height:130px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:700px){
  .screen-overlay{position:fixed;z-index:20;padding:16px}
  .screen-overlay .dialog{width:min(480px,100%);max-height:calc(100dvh - 32px)}
  .hud-item,.hud-chase{flex:1;min-width:0;padding:3px 4px}.hud-best{margin-left:0}.hud-item strong{font-size:11px}.hud-item span{letter-spacing:0}
  .route-hud{top:48px;max-width:65%}.route-hud span{overflow-wrap:anywhere}
  .skill-state{top:48px;right:6px;padding:4px;font-size:9px;max-width:31%}
  .debug-panel{top:90px;left:8px}.debug-panel pre{max-height:70px}
  .dialog{padding:12px}.dialog .result-parts{font-size:9px}.result-actions{gap:8px}.result-actions .secondary-btn{font-size:10px;padding:7px}
}
/* Compact arena and wind information stays clear of the hold/attack controls. */
.wind-hud{position:absolute;top:18%;left:50%;transform:translateX(-50%);padding:4px 10px;border:1px solid #70ecff88;background:#140f20d9;color:#70ecff;font-size:12px;pointer-events:none;white-space:nowrap}
.boss-hud{position:absolute;top:24%;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:8px;max-width:90%;padding:5px 10px;background:#140f20e8;border:1px solid #ff426488;font-size:12px;pointer-events:none;white-space:nowrap}
.boss-hud strong{color:#ffcf72}.boss-hud progress{width:90px;height:7px;accent-color:#ff4264}.boss-hud span{color:#fff0d9}
@media(max-width:600px){.boss-hud{gap:4px;font-size:10px;padding:4px 6px}.boss-hud progress{width:44px}.wind-hud{font-size:10px}}
body.landscape-mode .hud{top:6px}body.landscape-mode .hud-item{padding:3px 7px}body.landscape-mode .hud-item strong{font-size:14px}
body.landscape-mode .route-hud{top:56px;max-width:46%;padding:4px 7px;font-size:10px}body.landscape-mode .route-hud span{font-size:9px}
body.landscape-mode .boss-hud{top:56px;left:auto;right:12px;transform:none;max-width:48%;font-size:10px;padding:4px 6px;gap:4px}
body.landscape-mode .wind-hud{top:86px;left:auto;right:12px;transform:none;font-size:10px}
body.landscape-mode .skill-state{top:116px;right:12px;max-width:40%;padding:3px 6px;font-size:9px}
.modifier-badge{position:absolute;z-index:4;right:14px;top:85px;max-width:45%;border:1px solid #70ecff66;border-radius:8px;padding:5px 9px;background:#101525df;color:#baf5ff;font:12px inherit;cursor:pointer;overflow-wrap:anywhere}
.modifier-description{position:absolute;z-index:8;right:14px;top:120px;max-width:320px;padding:10px;border:1px solid #70ecff66;border-radius:8px;background:#101525f5;color:#d2f5ff;font-size:12px;display:none;pointer-events:none}
.modifier-badge:hover+.modifier-description,.modifier-badge:focus-visible+.modifier-description,.modifier-description.is-open{display:block}
.rift-hud{position:absolute;z-index:4;top:145px;left:50%;transform:translateX(-50%);max-width:90%;padding:7px 12px;background:#081a2def;border:1px solid #70ecff;border-radius:8px;color:#bafaff;font-size:14px;white-space:nowrap}
.menu-art:has(img:not([src])){background:radial-gradient(ellipse,#ff426444,transparent 65%)}
.menu-art img:not([src]){visibility:hidden}
@media(max-width:560px){.modifier-badge{top:100px;right:8px;font-size:10px;max-width:48%}.modifier-description{top:136px;max-width:82%}.rift-hud{top:142px;font-size:11px}}
/* Keep journey UI away from the skill and route labels at every viewport. */
.modifier-badge{top:116px}.modifier-description{top:153px}
.stage-wrap.is-rift .route-hud{display:none}.rift-hud{top:78px;left:16px;transform:none;max-width:65%}
@media(max-width:700px){.modifier-badge{top:74px;right:6px;font-size:10px}.modifier-description{top:110px}.rift-hud{top:48px;left:8px;max-width:62%;font-size:10px;padding:4px 6px}}
body.landscape-mode .modifier-badge{top:144px;right:12px;font-size:9px;max-width:40%}body.landscape-mode .modifier-description{top:174px}
.mode-switch{display:flex;gap:6px;justify-content:center}.mode-switch button{border:1px solid #765166;border-radius:7px;padding:7px 12px;color:#ded0df;background:#211726;font:inherit;font-size:12px}.mode-switch button[aria-pressed="true"]{background:#693748;border-color:#ffad84;color:#fff2dd}.mode-note,.daily-summary{font-size:10px!important;line-height:1.5!important;margin:6px 0!important;color:#dac5d6}.daily-summary{color:#70ecff}
.perk-hud{position:absolute;z-index:4;left:94px;right:110px;bottom:14px;display:flex;justify-content:center;gap:5px;flex-wrap:wrap;pointer-events:none}.build-icon{pointer-events:auto;width:30px;height:30px;padding:3px;border:1px solid #8aa4b4;background:#171322dc;border-radius:5px}.build-icon canvas{width:100%;height:100%;image-rendering:pixelated}.perk-dialog{width:min(760px,100%)}.perk-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.perk-card{display:flex;flex-direction:column;align-items:center;gap:12px;min-width:0;padding:20px 12px;border:2px solid;border-radius:10px;background:#21172d;color:#fff3e1;font:inherit;cursor:pointer}.perk-card canvas{image-rendering:pixelated;width:32px;height:32px}.perk-card span{font-size:12px;line-height:1.7;color:#d6c4d5}.perk-card:focus-visible{outline:3px solid #ffcf72;outline-offset:3px}.perk-card:hover{background:#35233e}
@media(max-width:700px){.perk-hud{left:8px;right:8px;bottom:92px}.perk-cards{grid-template-columns:1fr;gap:8px}.perk-card{padding:12px;display:grid;grid-template-columns:32px 1fr;gap:6px 12px;text-align:left}.perk-card canvas{grid-row:span 2}.perk-card span{font-size:11px}.mode-switch button{padding:6px 10px}.mode-note,.daily-summary{font-size:9px!important}}
body.landscape-mode .perk-hud{left:95px;right:105px;bottom:12px}body.landscape-mode .perk-cards{grid-template-columns:repeat(3,minmax(0,1fr))}body.landscape-mode .perk-card{display:flex;padding:10px;gap:6px}body.landscape-mode .mode-note,body.landscape-mode .daily-summary{margin:3px 0!important}
.menu-content{text-align:center}.howto-compact{font-size:11px;color:#d7bccb;margin:12px 0}.menu-content #startBtn{display:flex;align-items:center;justify-content:center;gap:22px;width:min(100%,340px);min-height:56px;margin:15px auto 10px;padding:15px 22px;font-size:22px}.menu-tools{display:flex;justify-content:center;gap:7px;flex-wrap:wrap;margin:10px 0}.menu-tools button{padding:7px 10px;border:1px solid #715365;border-radius:6px;background:#24192e;color:#d9c9de;font-size:11px;min-height:34px}.menu-tools button:hover{border-color:#70ecff;color:#bafaff}.guide-prompt{position:absolute;z-index:4;bottom:125px;left:50%;transform:translateX(-50%);padding:9px 16px;border:1px solid #ffcf72;border-radius:9px;background:#24192ee8;color:#ffdf9b;white-space:nowrap;pointer-events:none;animation:guide-bob ease-in-out infinite}.guide-prompt span{font-size:24px}@keyframes guide-bob{50%{transform:translate(-50%,-8px);filter:brightness(1.3)}}.death-tip{color:#70ecff!important;font-size:12px!important}.achievement-toasts{position:fixed;z-index:60;top:12px;right:12px;max-width:min(300px,calc(100% - 24px));pointer-events:none}.achievement-toast{margin:8px 0;padding:12px 16px;color:#ffe3a0;border:1px solid #ffcf72;background:#24182ef0;border-radius:9px;font-size:13px;box-shadow:0 5px 20px #0008}
.collection-screen{position:fixed;inset:0;z-index:50;background:#080611ed;display:grid;place-items:center;padding:16px}.collection-dialog{width:min(940px,100%);max-height:calc(100dvh - 32px);overflow:auto;background:#1c1427;border:1px solid #77566e;border-radius:14px;padding:0 20px 20px;overscroll-behavior:contain}.collection-dialog>header{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#1c1427;padding:16px 0}.collection-dialog h2{margin:0;font-size:22px}.collection-dialog h3{font-size:15px;margin-top:22px}.collection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.collection-card{min-width:0;padding:15px;border:1px solid #63455e;border-radius:9px;background:#241b31}.collection-card canvas{display:block;max-width:100%;image-rendering:pixelated;margin:auto}.collection-card h3{margin:10px 0}.collection-card p{font-size:12px;line-height:1.8;color:#cfb9ce;margin:8px 0;overflow-wrap:anywhere}.collection-card.locked{opacity:.65}.collection-card strong{color:#ffcf72;font-size:12px}.collection-dialog table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:12px;margin:12px 0 24px;overflow-wrap:anywhere}.collection-dialog th,.collection-dialog td{padding:10px 7px;text-align:left;border-bottom:1px solid #50394e}.collection-dialog th{color:#91dfe8}.data-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.data-summary>div{min-width:0;padding:16px;background:#2c2038;border-radius:8px;display:flex;flex-direction:column;gap:7px}.data-summary span{font-size:11px;color:#c2a7bd}.data-summary strong{font-size:22px;overflow-wrap:anywhere}
@media(max-width:700px){.screen-menu .menu-art{position:absolute;inset:0;width:100%;opacity:.3}.screen-menu .menu-content{width:100%;padding:16px;max-height:100%;overflow:auto}.screen-menu .lead{font-size:11px}.screen-menu #startBtn{font-size:21px;min-height:54px;max-width:280px}.menu-tools{margin:7px 0}.howto-compact{font-size:10px;margin:8px 0}.guide-prompt{font-size:12px;padding:7px 10px}.collection-screen{padding:10px}.collection-dialog{max-height:calc(100dvh - 20px);padding:0 12px 12px}.collection-dialog h2{font-size:17px}.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.collection-card{padding:10px}.collection-card p{font-size:11px}.collection-dialog th,.collection-dialog td{padding:8px 4px;font-size:10px}.data-summary{gap:6px}.data-summary>div{padding:10px}.data-summary strong{font-size:16px}}
body.landscape-mode .menu-content{max-height:100%;overflow:auto;padding-top:8px;padding-bottom:8px}body.landscape-mode .menu-content .lead,body.landscape-mode .menu-content>.eyebrow{display:none}body.landscape-mode .menu-content #startBtn{min-height:42px;padding:8px 16px;font-size:18px;margin:6px auto}body.landscape-mode .menu-tools{margin:4px 0}body.landscape-mode .menu-tools button{min-height:28px;padding:4px 8px}body.landscape-mode .howto-compact{margin:5px 0}
.share-preview{display:block;width:min(180px,100%);height:auto;margin:12px auto;border:1px solid #75556c;border-radius:6px}
.collection-card canvas{width:auto;height:auto;touch-action:pan-y}

/* Optional records stay below the game; play never waits for a menu choice. */
.local-records{grid-column:1/-1;padding:16px 22px;border:1px solid #5f394d;border-radius:14px;background:#19121fbb;color:var(--muted)}
.local-records summary{cursor:pointer;font-size:14px}
.local-records .menu-tools{justify-content:flex-start;margin-top:14px}
.secondary-btn{border:1px solid #8acbd2;border-radius:8px;background:#1e3a49;color:#dcfbff;padding:9px;font-size:12px;min-height:40px}
