@font-face { font-family: "LG"; src: url("assets/font/NotoSansJP-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "LG"; src: url("assets/font/NotoSansJP-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --navy: #1b2a4e;
  --navy-2: #2d4170;
  --blue: #1f6fe0;
  --blue-2: #3d8cff;
  --line: #c9d4ea;
  --red: #e8384f;
  --gold: #ffd23f;
  --font: "LG", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; overscroll-behavior: none; }
body {
  font-family: var(--font); font-weight: 700; color: #fff;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%;
}
#app { position: fixed; inset: 0; background: #05070c; }
#view { position: absolute; overflow: hidden; background: #000; }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.noscript { color: #fff; padding: 24px; }

/* the UI layer keeps the 960x540 coordinates of the game and is scaled with it */
#ui { position: absolute; left: 0; top: 0; width: 960px; height: 540px; transform-origin: 0 0; pointer-events: none; }
#ui button, #ui input, #ui a, #ui .hit { pointer-events: auto; }
#ui * { box-sizing: border-box; }

/* ---------- buttons ---------- */
.btn {
  font: inherit; font-weight: 700; font-size: 20px; letter-spacing: .04em; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 240px; height: 52px; padding: 0 28px; border-radius: 999px; cursor: pointer;
  color: #fff; background: var(--blue); border: 3px solid #fff;
  box-shadow: 0 4px 0 #0d3f8f, 0 6px 14px rgba(0, 0, 0, .35);
  transition: transform .08s, box-shadow .08s, filter .12s; text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; top: -10%; bottom: -10%; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .45), rgba(255, 255, 255, 0)); transform: skewX(-20deg); opacity: 0; }
.btn.primary::after, .btn.gold::after, .btn:focus-visible::after { opacity: 1; animation: shine 2.6s ease-in-out infinite; }
.btn.locked::after, .btn.sub::after { display: none; }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #0d3f8f, 0 2px 6px rgba(0, 0, 0, .35); }
.btn:focus-visible { outline: 4px solid var(--gold); outline-offset: 3px; }
.btn.sub { color: var(--navy); background: #fff; border-color: var(--navy-2); box-shadow: 0 4px 0 #8796b8, 0 6px 14px rgba(0, 0, 0, .25); }
.btn.gold { color: var(--navy); background: var(--gold); border-color: #fff; box-shadow: 0 4px 0 #b78a00, 0 6px 14px rgba(0, 0, 0, .35); }
.btn.locked { color: #8a93a6; background: #dfe3ea; border-color: #fff; box-shadow: 0 4px 0 #9aa2b2; cursor: default; }
.btn.locked:active { transform: none; }
.btn.small { min-width: 0; height: 40px; font-size: 16px; padding: 0 20px; }
.btn .ext { width: 16px; height: 16px; flex: none; }
.btn .lock { width: 16px; height: 18px; flex: none; }

.iconbtn {
  position: absolute; display: grid; place-items: center; cursor: pointer; font: inherit;
  color: var(--navy); background: #fff; border: 2px solid var(--navy-2); border-radius: 999px;
}
.iconbtn:focus-visible { outline: 4px solid var(--gold); outline-offset: 2px; }

/* ---------- layers ---------- */
.layer { position: absolute; inset: 0; }
.dim { background: rgba(6, 10, 20, .62); }
.fade-in { animation: fadeIn .25s ease-out both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.pop-in { animation: popIn .32s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes popIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }

/* ---------- panels ---------- */
.panel {
  position: absolute; color: var(--navy); background: #fff; border-radius: 18px;
  border: 4px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.panel h2 { margin: 0; font-size: 30px; font-weight: 900; letter-spacing: .04em; color: var(--navy); }
.panel p { margin: 0; font-size: 19px; line-height: 1.75; }
.panel .row { display: flex; gap: 20px; justify-content: center; }

/* ---------- title ---------- */
/* the logo sits in the corner; the title, the subtitle and the menu share one centre line (x = 262) */
.title-logo { position: absolute; left: 24px; top: 20px; padding: 8px 16px 7px; background: #fff; border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .35); animation: dropIn .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.title-logo img { display: block; width: 138px; }
.title-col { position: absolute; left: 30px; top: 90px; width: 464px; display: flex; flex-direction: column; align-items: center; }
.title-name { margin: 0; font-size: 64px; font-weight: 900; letter-spacing: .02em; line-height: 1.1; white-space: nowrap;
  color: #fff; -webkit-text-stroke: 9px #16408f; paint-order: stroke fill; text-shadow: 0 5px 0 rgba(4, 10, 30, .55); }
.title-name span { display: inline-block; animation: charIn .45s cubic-bezier(.2, 1.6, .4, 1) both; }
.title-sub { margin-top: 12px; height: 40px; padding: 0 38px 1px; display: flex; align-items: center; font-size: 21px; font-weight: 900;
  letter-spacing: .06em; color: #fff; background: #e8468c; text-shadow: 0 2px 0 rgba(120, 10, 60, .45);
  clip-path: polygon(0 0, 100% 0, calc(100% - 15px) 50%, 100% 100%, 0 100%, 15px 50%);
  animation: subIn .45s .45s cubic-bezier(.2, 1.2, .4, 1) both; }
@keyframes subIn { from { opacity: 0; transform: scaleX(.3); } to { opacity: 1; transform: none; } }

/* the menu: every item is the same plate (a box with two cut corners); the one under the cursor turns yellow
   and an arrow points at it. The plate is drawn by ::after (the frame) and .plate (the inside). */
.title-menu { margin-top: 32px; width: 372px; display: flex; flex-direction: column; gap: 14px; }
.title-menu .btn { --cut: 14px; position: relative; isolation: isolate; width: 100%; min-width: 0; height: 60px; padding: 0 20px;
  flex-direction: column; gap: 3px; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible;
  font-size: 19px; letter-spacing: .04em; color: #fff; filter: drop-shadow(0 4px 0 rgba(3, 8, 26, .55)); }
.title-menu .btn::after { content: ""; display: block; position: absolute; inset: 0; z-index: -2; top: auto; bottom: 0; left: 0; width: auto; height: 100%;
  opacity: 1; animation: none; transform: none; background: #7fc4ff;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }
.title-menu .plate { position: absolute; inset: 2px; z-index: -1; background: linear-gradient(#1d3f8c, #102a66);
  clip-path: polygon(calc(var(--cut) - 1px) 0, 100% 0, 100% calc(100% - var(--cut) + 1px), calc(100% - var(--cut) + 1px) 100%, 0 100%, 0 calc(var(--cut) - 1px)); }
.title-menu .row { display: flex; align-items: center; justify-content: center; gap: 9px; }
.title-menu .btn svg { width: 17px; height: 17px; flex: none; }
.title-menu .btn:hover { filter: drop-shadow(0 4px 0 rgba(3, 8, 26, .55)); }
.title-menu .btn:focus, .title-menu .btn:focus-visible { outline: none; color: #13254f; }
.title-menu .btn:focus::after { background: #fff8d0; }
.title-menu .btn:focus .plate { background: linear-gradient(#ffe46a, #ffb820); }
/* the arrow on the left of the selected item */
.title-menu .btn:focus::before { content: ""; position: absolute; left: -32px; top: 50%; margin-top: -11px;
  border-left: 18px solid var(--gold); border-top: 11px solid transparent; border-bottom: 11px solid transparent;
  animation: cursorBob .5s ease-in-out infinite alternate; }
@keyframes cursorBob { to { transform: translateX(6px); } }
.title-menu .btn:active:not(.locked) { transform: translateY(3px); filter: drop-shadow(0 1px 0 rgba(3, 8, 26, .55)); }
/* the time attack before all the stages are cleared: the same plate, darker, with the condition inside */
.title-menu .btn.locked { color: #8f9bb4; cursor: default; }
.title-menu .btn.locked::after { background: #56627c; }
.title-menu .btn.locked .plate { background: linear-gradient(#27314a, #1c2438); }
.title-menu .btn.locked .row, .title-menu .btn.two .row { font-size: 17px; }
.title-menu .btn.locked small { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; color: #c9d2e4; }
/* the time attack with a time: the best time in the same place */
.title-menu .btn.two small { font-size: 14px; font-weight: 800; letter-spacing: .06em; color: #ffd84a; font-variant-numeric: tabular-nums; white-space: pre; }
.title-menu .btn.two:focus small { color: #13254f; }
.title-menu.intro > * { animation: titleMenuIn .4s cubic-bezier(.2, 1.2, .4, 1) both; }
.title-menu.intro > :nth-child(1) { animation-delay: .6s; }
.title-menu.intro > :nth-child(2) { animation-delay: .68s; }
.title-menu.intro > :nth-child(3) { animation-delay: .76s; }
@keyframes titleMenuIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* settings: a round button in the colours of the menu */
.title-gear { position: absolute; right: 18px; top: 14px; width: 64px; padding: 4px 0; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font: inherit; font-size: 13px; font-weight: 700; color: #fff; background: none; border: 0; cursor: pointer; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.title-gear .ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: #fff;
  background: linear-gradient(#1d3f8c, #102a66); border: 2px solid #7fc4ff; box-shadow: 0 4px 0 rgba(3, 8, 26, .55); transition: transform .3s; }
.title-gear:hover .ico { transform: rotate(60deg); }
.title-gear svg { width: 26px; height: 26px; }
.title-gear:focus-visible { outline: none; }
.title-gear:focus-visible .ico { color: #13254f; background: linear-gradient(#ffe46a, #ffb820); border-color: #fff8d0; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: none; } }
@keyframes charIn { from { opacity: 0; transform: translateY(-50px) scale(.6); } to { opacity: 1; transform: none; } }
.copyright { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 12px; color: rgba(255, 255, 255, .7); text-shadow: 0 1px 2px #000; pointer-events: none; }

/* ---------- settings ---------- */
.vol { display: grid; grid-template-columns: 110px 300px 56px; align-items: center; gap: 14px; font-size: 20px; }
.vol input[type=range] { width: 100%; accent-color: var(--blue); height: 32px; }
.vol output { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- play screen ---------- */
.pause-btn { position: absolute; right: 14px; top: 10px; height: 34px; padding: 0 18px; font: inherit; font-size: 15px; font-weight: 900; letter-spacing: .08em;
  color: var(--navy); background: #fff; border: 2px solid var(--navy-2); border-radius: 8px; cursor: pointer; }
.touch .pause-btn { transform: scale(1.45); transform-origin: 100% 0; }
.skip-btn { position: absolute; right: 14px; top: 12px; z-index: 5; }
.banner { position: absolute; left: 0; right: 0; margin: 0 auto; width: max-content; top: 136px; padding: 9px 30px 10px; font-size: 21px; color: var(--navy);
  background: #fff; border: 3px solid #44c6f0; border-radius: 999px; white-space: nowrap; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.say { position: absolute; left: 50%; top: 66px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; max-width: 820px;
  padding: 10px 26px 11px 12px; font-size: 20px; line-height: 1.6; color: var(--navy); background: rgba(255, 255, 255, .95);
  border: 3px solid #44c6f0; border-radius: 18px; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.say.left { left: 20px; transform: none; max-width: 560px; }
.say img { width: 54px; height: 54px; object-fit: cover; object-position: 50% 12%; border-radius: 50%; background: #d9f2ff; flex: none; }
.shout { position: absolute; left: 70px; top: 130px; }
.shout span { display: block; font-size: 54px; font-weight: 900; color: #ff4057; -webkit-text-stroke: 8px #fff; paint-order: stroke fill;
  transform: rotate(-6deg); text-shadow: 0 5px 0 rgba(0, 0, 0, .3); }

/* ---------- cut-ins ---------- */
.cut-band { position: absolute; left: -40px; right: -40px; top: 34px; height: 120px; background: #b8342b; transform: rotate(-3deg);
  border-top: 5px solid #fff; border-bottom: 5px solid #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cut-band.blue { background: #1f5fb8; }
.cut-band { animation: bandIn .45s cubic-bezier(.2, 1.1, .3, 1) both; overflow: hidden; }
.cut-band::before { content: ""; position: absolute; inset: 0; opacity: .25;
  background: repeating-linear-gradient(100deg, rgba(255, 255, 255, .9) 0 6px, rgba(255, 255, 255, 0) 6px 46px); animation: stripes 1.2s linear infinite; }
.cut-band .no, .cut-band .nm { position: relative; animation: menuIn .4s .25s cubic-bezier(.2, 1.3, .4, 1) both; }
.cut-band .nm { animation-delay: .32s; }
@keyframes bandIn { from { transform: rotate(-3deg) translateX(-110%); } to { transform: rotate(-3deg); } }
@keyframes stripes { to { background-position: 92px 0; } }
.cut-band .no { font-size: 24px; font-weight: 900; letter-spacing: .12em; }
.cut-band .nm { font-size: 50px; font-weight: 900; letter-spacing: .08em; line-height: 1.1; }
.eye { animation: popIn .4s .35s cubic-bezier(.2, 1.4, .4, 1) both; }
.eye { position: absolute; left: 110px; top: 170px; width: 290px; background: #f5f8ff; border: 4px solid #9fb2d9; border-radius: 16px; padding: 10px; }
.eye img { display: block; width: 100%; }
.eye .spot { position: absolute; border: 4px solid #ffcc33; border-radius: 10px; box-shadow: 0 0 0 4px rgba(255, 204, 51, .35); animation: spot 1.2s ease-in-out infinite; }
@keyframes spot { 50% { box-shadow: 0 0 0 9px rgba(255, 204, 51, .15); } }
.eye .cap { position: absolute; left: 0; right: 0; top: -30px; text-align: center; font-size: 16px; color: #fff; text-shadow: 0 1px 3px #000; }
.cut-girl { position: absolute; right: 120px; top: 150px; animation: slideR .5s .3s cubic-bezier(.2, 1.2, .4, 1) both; }
.cut-girl .girl-sprite { filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); }
@keyframes slideR { from { opacity: 0; transform: translateX(120px); } to { opacity: 1; transform: none; } }

.enemy-card { position: absolute; left: 40px; top: 40px; width: 360px; height: 360px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .18), rgba(255, 255, 255, 0) 70%); }
.enemy-card img { max-width: 330px; max-height: 330px; }
.enemy-card.spin img { animation: spin 6s linear infinite; }
.enemy-card { animation: swoop .55s cubic-bezier(.2, 1.3, .4, 1) both; }
.enemy-card img { filter: drop-shadow(0 0 18px rgba(255, 255, 255, .35)); }
.enemy-bob { animation: bob 2.4s ease-in-out infinite; }
@keyframes swoop { from { opacity: 0; transform: translateX(-260px) rotate(-25deg) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes bob { 50% { transform: translateY(-10px); } }
.speed { position: absolute; inset: -40%; opacity: .16; animation: turn 14s linear infinite;
  background: repeating-conic-gradient(from 0deg at 50% 50%, #fff 0deg 2deg, transparent 2deg 9deg); }
@keyframes turn { to { transform: rotate(360deg); } }
.enemy-head .en { animation: flash .9s ease-in-out infinite; }
.enemy-head .en, .enemy-head .nm, .enemy-head .kind, .enemy-text { animation-fill-mode: both; }
.enemy-head .nm { animation: menuInR .45s .15s cubic-bezier(.2, 1.3, .4, 1) both; }
.enemy-head .kind { animation: menuInR .45s .25s cubic-bezier(.2, 1.3, .4, 1) both; }
.enemy-text { animation: fadeUp .5s .4s ease-out both; }
@keyframes menuInR { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes flash { 50% { opacity: .45; } }
@keyframes spin { to { transform: rotate(360deg); } }
.enemy-head { position: absolute; left: 430px; top: 48px; right: 40px; }
.enemy-head .en { font-size: 22px; font-weight: 900; letter-spacing: .14em; color: var(--gold); }
.enemy-head .nm { font-size: 54px; font-weight: 900; line-height: 1.15; letter-spacing: .04em; }
.enemy-head .kind { font-size: 19px; margin-top: 4px; color: #dfe7f7; }
.enemy-text { position: absolute; left: 430px; top: 196px; right: 40px; font-size: 16.5px; line-height: 1.8; color: #eef3ff; }

.go-next { position: absolute; right: 78px; bottom: 26px; z-index: 6; display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px 0 18px;
  font: inherit; font-size: 16px; font-weight: 900; color: #fff; background: var(--blue); border: 2px solid #fff; border-radius: 999px; cursor: pointer;
  box-shadow: 0 3px 0 #0d3f8f; }
.go-next i { font-style: normal; font-size: 12px; animation: nudge .8s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }
.tap-next { position: absolute; right: 30px; bottom: 136px; font-size: 15px; color: #fff; opacity: .9; animation: blink 1.2s ease-in-out infinite; text-shadow: 0 1px 3px #000; }
@keyframes blink { 50% { opacity: .35; } }

/* ---------- story ---------- */
.story-img { position: absolute; left: 0; right: 0; margin: 0 auto; top: 8px; height: 400px; border-radius: 10px; box-shadow: 0 6px 24px rgba(0, 0, 0, .6); }
.story-box { position: absolute; left: 60px; right: 60px; bottom: 16px; min-height: 112px; padding: 14px 26px 16px; color: var(--navy);
  background: rgba(255, 255, 255, .96); border: 4px solid #44c6f0; border-radius: 16px; }
.story-box .who { position: absolute; left: 18px; top: -18px; padding: 3px 16px 4px; font-size: 16px; color: #fff; background: #ff5f9e; border-radius: 999px; border: 3px solid #fff; }
.story-box .who.gamer { background: #3a64c8; }
.story-box .text { font-size: 21px; line-height: 1.7; }

/* ---------- touch pad ---------- */
#pad { position: absolute; display: none; pointer-events: none; touch-action: none; }
#pad.on { display: block; }
#pad .pad-l, #pad .pad-r { position: absolute; display: flex; gap: var(--gap, 14px); pointer-events: auto; touch-action: none; }
.pad-btn { font: inherit; font-weight: 900; color: #fff; border-radius: 999px; border: 3px solid rgba(255, 255, 255, .85);
  background: rgba(20, 30, 55, .45); display: grid; place-items: center; padding: 0; touch-action: none; -webkit-user-select: none; user-select: none; }
.pad-btn.on { background: rgba(70, 150, 255, .75); }
.pad-shoot { background: rgba(232, 56, 79, .5); }
.pad-shoot.on { background: rgba(255, 90, 110, .85); }
.tri { width: 0; height: 0; border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.tri-l { border-right: 22px solid #fff; margin-right: 4px; }
.tri-r { border-left: 22px solid #fff; margin-left: 4px; }
#pad.below { background: #0b0f18; }
.girl-sprite { background-repeat: no-repeat; }
.pad-pause { position: absolute; display: none; pointer-events: auto; font: inherit; font-weight: 900; font-size: 15px; letter-spacing: .08em;
  color: var(--navy); background: #fff; border: 2px solid #8796b8; border-radius: 10px; padding: 0 18px; height: 40px; touch-action: none; }
#pad.below .pad-pause { display: block; }

/* ---------- loading ---------- */
.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: #0b0f18; }
.loading .bar { width: 360px; height: 12px; border-radius: 99px; background: #26324d; overflow: hidden; }
.loading .bar i { display: block; height: 100%; width: 0; background: #46cfff; border-radius: 99px; transition: width .15s; }
.loading .msg { font-size: 18px; color: #dfe7f7; }
.rotate-hint { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-size: 15px; color: #fff; text-shadow: 0 1px 3px #000; white-space: nowrap; }

/* ---------- stage clear, boss name, game over ---------- */
.rays { position: absolute; left: 50%; top: 50%; width: 1400px; height: 1400px; margin: -700px 0 0 -700px; opacity: .5; animation: turn 18s linear infinite;
  background: repeating-conic-gradient(from 0deg, rgba(255, 236, 160, .75) 0deg 8deg, rgba(255, 255, 255, 0) 8deg 20deg); }
.confetti { position: absolute; top: -30px; width: 10px; height: 16px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translate(var(--dx), 640px) rotate(var(--r)); } }
.clear-cut { overflow: hidden; background: radial-gradient(circle at 50% 46%, rgba(255, 244, 214, .62), rgba(46, 28, 12, .6)); }
.clear-cut.blue { background: radial-gradient(circle at 50% 46%, rgba(222, 250, 246, .58), rgba(6, 34, 44, .62)); }
.clear-cut.blue .rays { background: repeating-conic-gradient(from 0deg, rgba(170, 245, 228, .6) 0deg 8deg, rgba(255, 255, 255, 0) 8deg 20deg); }
.clear-sub { position: absolute; left: 0; right: 0; margin: 0 auto; top: 168px; width: max-content; padding: 6px 30px; background: #fff; border: 4px solid #b8342b;
  border-radius: 99px; color: #b8342b; font-size: 26px; font-weight: 900; letter-spacing: .04em; transform: rotate(-3deg); box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
  animation: subIn .4s .3s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes subIn { from { opacity: 0; transform: rotate(-3deg) scale(.85); } to { opacity: 1; transform: rotate(-3deg); } }
.clear-cut.blue .clear-sub { border-color: #1f5fb8; color: #1f5fb8; }
.clear-box { position: absolute; padding: 10px; background: #f5f8ff; border: 4px solid #9fb2d9; border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35); animation: popIn .4s .35s cubic-bezier(.2, 1.4, .4, 1) both; }
.clear-box i { display: block; background-repeat: no-repeat; border-radius: 8px; }
.clear-lines { position: absolute; inset: 0; pointer-events: none; animation: fadeUp .4s .6s both; }
.clear-lines path { fill: none; stroke: #b8342b; stroke-width: 3; stroke-linejoin: round; }
.clear-lines .dot { fill: #b8342b; stroke: #fff; stroke-width: 2; }
.clear-lines .ring { fill: rgba(255, 204, 51, .18); stroke: #ffcc33; stroke-width: 4; animation: ring 1.2s ease-in-out infinite; }
@keyframes ring { 50% { stroke-width: 8; stroke-opacity: .55; } }
.clear-cut.blue .clear-lines path { stroke: #1f5fb8; }
.clear-cut.blue .clear-lines .dot { fill: #1f5fb8; }
.clear-mark { position: absolute; left: 340px; min-width: 170px; height: 58px; padding: 4px 16px; display: flex; flex-direction: column; justify-content: center;
  background: #fff; border: 4px solid #b8342b; border-radius: 14px; color: #1b2a4e; box-shadow: 0 4px 10px rgba(0, 0, 0, .3); animation: fadeUp .35s .65s both; }
.clear-mark b { font-size: 21px; font-weight: 900; line-height: 1.2; }
.clear-mark small { font-size: 14px; font-weight: 700; line-height: 1.2; }
.clear-cut.blue .clear-mark { border-color: #1f5fb8; }
.clear-points { position: absolute; left: 340px; top: 446px; display: flex; gap: 12px; animation: fadeUp .35s .8s both; }
.clear-points div { width: 122px; height: 74px; display: grid; place-items: center; text-align: center; white-space: pre-line;
  background: #fff; border: 4px solid #b8342b; border-radius: 37px; color: #b8342b; font-size: 17px; font-weight: 900; line-height: 1.25; box-shadow: 0 4px 10px rgba(0, 0, 0, .3); }
.clear-girl { position: absolute; right: 30px; bottom: 34px; animation: slideR .5s .3s cubic-bezier(.2, 1.2, .4, 1) both; }
.clear-girl .girl-sprite { filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .45)); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.boss-cut { position: absolute; left: 0; right: 0; top: 180px; height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(90deg, rgba(120, 10, 30, 0), rgba(120, 10, 30, .9) 20%, rgba(120, 10, 30, .9) 80%, rgba(120, 10, 30, 0));
  border-top: 3px solid rgba(255, 120, 140, .9); border-bottom: 3px solid rgba(255, 120, 140, .9); animation: bossCut 2.4s ease-in-out both; }
.boss-cut .warn { font-size: 20px; font-weight: 900; letter-spacing: .4em; color: #ffd0d8; animation: flash .4s ease-in-out infinite; }
.boss-cut .nm { font-size: 52px; font-weight: 900; letter-spacing: .06em; color: #fff; -webkit-text-stroke: 6px #5a0a18; paint-order: stroke fill; }
@keyframes bossCut { 0% { opacity: 0; transform: scaleY(0); } 12% { opacity: 1; transform: scaleY(1); } 85% { opacity: 1; transform: scaleY(1); } 100% { opacity: 0; transform: scaleY(0); } }
.edge-warn { position: absolute; inset: 0; box-shadow: inset 0 0 90px rgba(255, 30, 60, .8); animation: flash .5s ease-in-out 4 both; pointer-events: none; }
.over-title { font-size: 76px; font-weight: 900; color: #ff5068; letter-spacing: .06em; margin-bottom: 18px; text-shadow: 0 4px 0 rgba(0, 0, 0, .4); white-space: nowrap; }
.over-title span { display: inline-block; animation: dropBounce .6s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes dropBounce { from { opacity: 0; transform: translateY(-160px); } to { opacity: 1; transform: none; } }
.check-burst { position: absolute; }

/* ---------- story scenes, opening 01-06 and ending 31-36 (src/scenes/story.js) ---------- */
.story2 { cursor: pointer; }
.sbox { position: absolute; left: 26px; right: 26px; bottom: 14px; min-height: 110px; padding: 20px 128px 16px 30px; color: var(--navy);
  background: rgba(255, 255, 255, .96); border: 4px solid #4cc3f2; border-radius: 18px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.sbox.gamer { border-color: #6f8fe0; }
.sbox .who { position: absolute; left: 22px; top: -20px; padding: 3px 18px 4px; font-size: 17px; font-weight: 900; color: #fff;
  background: #ff5f9e; border-radius: 999px; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.sbox.gamer .who { background: #3a64c8; }
.sbox .text { font-size: 23px; font-weight: 700; line-height: 1.65; }
.sbox .rest { visibility: hidden; }
.sbox.pop { animation: sboxIn .22s ease-out both; }
@keyframes sboxIn { from { opacity: 0; transform: translateY(16px); } }
.sbox-next { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 9px; height: 42px; padding: 0 16px 0 20px;
  font: inherit; font-size: 18px; font-weight: 900; color: #fff; background: var(--blue); border: 0; border-radius: 999px; cursor: pointer;
  box-shadow: 0 3px 0 #164fa8; transition: opacity .15s; }
.sbox-next:active { transform: translateY(2px); box-shadow: 0 1px 0 #164fa8; }
.sbox-next i { width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 10px solid #fff;
  animation: sboxBob .7s ease-in-out infinite; }
.sbox-next.wait { opacity: .5; }
@keyframes sboxBob { 50% { transform: translateY(4px); } }

/* ---------- the band between two screens ---------- */
.wipe { position: absolute; top: -5%; bottom: -5%; left: -25%; width: 150%; z-index: 20; visibility: hidden; pointer-events: none; transform: translateX(-130%) skewX(-14deg);
  background: linear-gradient(90deg, #46cfff 0 3%, #1f6fe0 3% 8%, #1b2a4e 8% 92%, #1f6fe0 92% 97%, #46cfff 97%); }
