*, *::before, *::after {
box-sizing: border-box;
-webkit-tap-highlight-color: transparent;
}
:root {
--bg-deep: #090d1f;
--bg-panel: rgba(16, 23, 52, 0.90);
--bg-card: rgba(25, 35, 74, 0.88);
--gold: #ffd460;
--gold-hi: #fff3b8;
--cyan: #5ce1e6;
--text: #f4f7ff;
--muted: #a9b8dc;
--danger: #ff5964;
--border: rgba(145, 178, 255, 0.28);
}
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
background: radial-gradient(circle at 50% 15%, #192657 0%, #090d1f 75%);
color: var(--text);
font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
user-select: none;
-webkit-user-select: none;
}
.app-root {
position: relative;
width: 100%;
height: 100vh;
height: 100dvh;
overflow: hidden;
}
.screen {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
[hidden] {
display: none !important;
}
button {
font-family: inherit;
cursor: pointer;
border: none;
outline: none;
}
button:disabled {
opacity: 0.48;
cursor: not-allowed;
}
#screen-title {
display: flex;
flex-direction: column;
justify-content: flex-end;
align-items: center;
}
.title-bg, .title-bg img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.title-shade {
position: absolute;
inset: 0;
background: linear-gradient(180deg, rgba(8,12,30,0.12) 0%, rgba(8,12,30,0.35) 48%, rgba(7,10,26,0.94) 86%, rgba(7,10,26,0.99) 100%);
}
.title-content {
position: relative;
z-index: 2;
width: min(560px, 94%);
padding: 16px 18px 24px;
text-align: center;
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
}
.title-badge {
display: inline-block;
padding: 4px 14px;
border-radius: 999px;
font-size: 12px;
font-weight: 900;
letter-spacing: 0.14em;
color: #2b1800;
background: linear-gradient(180deg, #fff5bf, #ffc93c);
box-shadow: 0 2px 10px rgba(255, 205, 60, 0.45);
}
.title-logo {
margin: 0;
font-size: clamp(28px, 6.2vw, 48px);
font-weight: 900;
letter-spacing: 0.05em;
color: #fffaf0;
text-shadow: 0 3px 0 #1f1247, 0 0 24px rgba(105, 195, 255, 0.75);
}
.title-sub {
margin: 0 0 4px;
font-size: clamp(12px, 2.8vw, 15px);
color: #dbe8ff;
text-shadow: 0 1px 4px #000;
}
.title-actions {
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
gap: 10px;
}
.entry-card {
width: 100%;
background: rgba(13, 20, 48, 0.86);
border: 1px solid rgba(255, 212, 96, 0.55);
border-radius: 18px;
padding: 14px 16px;
box-shadow: 0 12px 28px rgba(0,0,0,0.55);
}
.entry-lead {
margin: 0 0 10px;
font-size: 13px;
font-weight: 700;
color: #ffefc2;
line-height: 1.45;
}
.btn-gold {
display: inline-flex;
justify-content: center;
align-items: center;
gap: 8px;
width: 100%;
max-width: 340px;
padding: 13px 22px;
border-radius: 999px;
font-size: 16px;
font-weight: 900;
text-decoration: none;
color: #2d1800;
background: linear-gradient(180deg, #fff6c4 0%, #ffd043 55%, #f59f00 100%);
box-shadow: 0 4px 0 #a86400, 0 8px 20px rgba(255, 185, 35, 0.45);
}
.btn-gold:active { transform: translateY(2px); }
.btn-sub {
display: inline-flex;
justify-content: center;
align-items: center;
gap: 6px;
width: 100%;
max-width: 340px;
padding: 10px 18px;
border-radius: 999px;
font-size: 13px;
font-weight: 800;
color: #e3eeff;
background: rgba(36, 52, 104, 0.88);
border: 1px solid rgba(135, 175, 255, 0.45);
}
#screen-hub {
display: flex;
flex-direction: column;
max-width: 1120px;
margin: 0 auto;
border-left: 1px solid rgba(255,255,255,0.06);
border-right: 1px solid rgba(255,255,255,0.06);
}
.hub-top {
flex: 0 0 auto;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 8px 12px;
background: linear-gradient(180deg, rgba(20, 30, 68, 0.96), rgba(12, 18, 42, 0.94));
border-bottom: 1px solid var(--border);
}
.hub-profile {
display: flex;
align-items: center;
gap: 8px;
min-width: 0;
}
.avatar-thumb {
width: 38px;
height: 38px;
border-radius: 50%;
object-fit: cover;
border: 2px solid var(--gold);
background: #18234a;
flex-shrink: 0;
}
.prof-meta {
min-width: 0;
line-height: 1.2;
}
.prof-name {
font-size: 13px;
font-weight: 800;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.prof-sub {
font-size: 11px;
color: var(--muted);
}
.hub-currencies {
display: flex;
align-items: center;
gap: 6px;
flex-wrap: wrap;
justify-content: flex-end;
}
.cur-pill {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 4px 9px;
border-radius: 999px;
font-size: 12px;
font-weight: 800;
background: rgba(9, 14, 34, 0.85);
border: 1px solid rgba(155, 185, 255, 0.3);
white-space: nowrap;
}
.icon-btn {
width: 36px;
height: 36px;
border-radius: 10px;
background: rgba(35, 50, 98, 0.85);
border: 1px solid var(--border);
color: #fff;
font-size: 17px;
flex-shrink: 0;
}
.hub-body {
flex: 1 1 auto;
overflow-y: auto;
overflow-x: hidden;
padding: 12px 14px 20px;
}
.hub-nav {
flex: 0 0 auto;
display: grid;
grid-template-columns: repeat(5, 1fr);
gap: 4px;
padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
background: rgba(10, 15, 36, 0.98);
border-top: 1px solid var(--border);
}
.nav-btn {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 2px;
padding: 6px 2px;
border-radius: 12px;
background: transparent;
color: var(--muted);
font-size: 11px;
font-weight: 800;
}
.nav-btn .nav-ico { font-size: 18px; line-height: 1; }
.nav-btn.active {
color: #2b1800;
background: linear-gradient(180deg, #fff2b2, #ffca3a);
box-shadow: 0 2px 10px rgba(255, 202, 58, 0.35);
}
.sec-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin: 10px 0 8px;
}
.sec-head h2 {
margin: 0;
font-size: 16px;
font-weight: 900;
color: var(--gold-hi);
}
.hero-banner {
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 14px 16px;
border-radius: 18px;
background: linear-gradient(125deg, #253882 0%, #151f4d 58%, #341b5c 100%);
border: 1px solid rgba(255, 214, 102, 0.45);
margin-bottom: 12px;
overflow: hidden;
}
.hero-banner img.hero-mon {
width: 86px;
height: 86px;
object-fit: contain;
filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
flex-shrink: 0;
}
.quest-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
gap: 10px;
}
.quest-card {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 12px;
border-radius: 15px;
background: var(--bg-card);
border: 1px solid var(--border);
text-align: left;
color: var(--text);
}
.quest-card.locked {
opacity: 0.52;
}
.quest-card img.q-ico {
width: 54px;
height: 54px;
border-radius: 12px;
flex-shrink: 0;
}
.q-info { flex: 1; min-width: 0; }
.q-title { font-size: 14px; font-weight: 900; margin-bottom: 2px; }
.q-sub { font-size: 11px; color: var(--muted); }
.q-tag {
display: inline-block;
padding: 3px 8px;
border-radius: 999px;
font-size: 11px;
font-weight: 800;
background: rgba(255, 212, 96, 0.18);
color: var(--gold);
white-space: nowrap;
}
.q-tag.cleared {
background: rgba(46, 204, 113, 0.22);
color: #7bf1a8;
}
.party-panel {
background: var(--bg-card);
border: 1px solid var(--border);
border-radius: 16px;
padding: 12px;
margin-bottom: 12px;
}
.party-tabs {
display: flex;
gap: 6px;
overflow-x: auto;
padding-bottom: 8px;
}
.preset-btn {
padding: 6px 12px;
border-radius: 999px;
font-size: 12px;
font-weight: 800;
background: rgba(12, 18, 42, 0.8);
color: var(--muted);
border: 1px solid var(--border);
white-space: nowrap;
}
.preset-btn.active {
background: var(--gold);
color: #2b1800;
border-color: var(--gold);
}
.party-slots {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 6px;
margin: 8px 0;
}
.p-slot {
position: relative;
background: rgba(9, 14, 34, 0.8);
border: 2px solid rgba(145, 178, 255, 0.35);
border-radius: 12px;
padding: 4px;
text-align: center;
cursor: pointer;
}
.p-slot.selected {
border-color: var(--gold);
box-shadow: 0 0 12px rgba(255, 212, 96, 0.55);
}
.p-slot img {
width: 100%;
aspect-ratio: 1 / 1;
object-fit: contain;
border-radius: 8px;
display: block;
}
.p-role {
font-size: 9px;
font-weight: 900;
color: var(--gold);
display: block;
margin-bottom: 2px;
}
.p-lv {
font-size: 10px;
font-weight: 800;
color: #dce8ff;
}
.mon-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
gap: 8px;
}
.mon-cell {
position: relative;
background: rgba(14, 21, 48, 0.85);
border: 1px solid var(--border);
border-radius: 13px;
padding: 5px;
text-align: center;
color: var(--text);
}
.mon-cell.unowned img {
filter: brightness(0.18) saturate(0);
opacity: 0.65;
}
.mon-cell img {
width: 100%;
aspect-ratio: 1 / 1;
border-radius: 10px;
display: block;
}
.mon-rar {
position: absolute;
top: 6px;
right: 6px;
padding: 1px 5px;
border-radius: 6px;
font-size: 9px;
font-weight: 900;
background: rgba(0,0,0,0.78);
}
.rar-UR { color: #ff99f5; }
.rar-SR { color: #ffd460; }
.rar-R  { color: #74c0fc; }
.rar-C  { color: #ced4da; }
.mon-meta {
font-size: 10px;
font-weight: 800;
margin-top: 3px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.gacha-stage {
background: radial-gradient(circle at 50% 28%, rgba(92, 62, 168, 0.65), rgba(14, 20, 48, 0.95));
border: 1px solid rgba(255, 212, 96, 0.5);
border-radius: 20px;
padding: 16px;
text-align: center;
margin-bottom: 12px;
}
.gacha-showcase {
display: flex;
align-items: center;
justify-content: center;
gap: 14px;
flex-wrap: wrap;
margin: 8px 0 12px;
}
.gacha-showcase img {
width: 132px;
height: 132px;
object-fit: contain;
filter: drop-shadow(0 0 20px rgba(255, 210, 95, 0.6));
}
.gacha-btns {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
gap: 10px;
margin-top: 10px;
}
.g-btn {
padding: 12px 14px;
border-radius: 16px;
font-weight: 900;
color: #fff;
display: flex;
flex-direction: column;
align-items: center;
gap: 3px;
}
.g-btn.free {
background: linear-gradient(180deg, #38d9a9, #0ca678);
box-shadow: 0 4px 0 #087f5b;
}
.g-btn.one {
background: linear-gradient(180deg, #4dabf7, #1c7ed6);
box-shadow: 0 4px 0 #1864ab;
}
.g-btn.ten {
color: #2d1600;
background: linear-gradient(180deg, #fff3bf, #fcc419 55%, #f08c00);
box-shadow: 0 4px 0 #b05c00;
}
.battle-screen {
display: flex;
flex-direction: column;
justify-content: space-between;
background: #070a18;
}
.battle-left {
flex: 1 1 auto;
min-height: 0;
display: flex;
flex-direction: column;
}
.battle-stage {
position: relative;
flex: 1 1 auto;
min-height: 128px;
background-size: cover;
background-position: center bottom;
display: flex;
flex-direction: column;
justify-content: space-between;
overflow: hidden;
}
.stage-hud {
position: relative;
z-index: 3;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 6px 10px;
background: linear-gradient(180deg, rgba(5, 8, 22, 0.78), rgba(5, 8, 22, 0));
}
.wave-pill {
padding: 2px 9px;
border-radius: 999px;
font-size: 11px;
font-weight: 900;
background: rgba(15, 23, 52, 0.88);
border: 1px solid var(--gold);
color: var(--gold);
}
.stage-qname {
font-size: 12px;
font-weight: 800;
text-shadow: 0 1px 3px #000;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.retreat-btn {
padding: 4px 10px;
border-radius: 8px;
font-size: 11px;
font-weight: 800;
background: rgba(20, 28, 58, 0.85);
color: #dce6ff;
border: 1px solid var(--border);
}
.bt-guide {
position: relative;
z-index: 4;
margin: 0 10px;
padding: 6px 10px;
border-radius: 10px;
background: rgba(10, 18, 46, 0.90);
border: 1px solid var(--cyan);
font-size: 11px;
line-height: 1.35;
color: #e6fbff;
}
.bt-enemies {
position: relative;
z-index: 2;
flex: 1 1 auto;
display: flex;
align-items: flex-end;
justify-content: space-around;
gap: 6px;
padding: 4px 12px 8px;
}
.enemy-unit {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
max-width: 46%;
cursor: pointer;
transition: transform 0.16s ease, opacity 0.28s ease;
}
.enemy-unit.boss {
max-width: 66%;
}
.enemy-unit.dead {
opacity: 0;
transform: scale(0.6);
pointer-events: none;
}
.enemy-unit.hurt {
animation: enemyShake 0.26s ease;
}
@keyframes enemyShake {
0%, 100% { transform: translateX(0); }
25% { transform: translateX(-7px); filter: brightness(1.8); }
75% { transform: translateX(7px); }
}
.enemy-sprite {
width: clamp(76px, 16vh, 152px);
height: clamp(76px, 16vh, 152px);
object-fit: contain;
filter: drop-shadow(0 8px 12px rgba(0,0,0,0.68));
animation: floatBob 2.6s ease-in-out infinite;
}
.enemy-unit.boss .enemy-sprite {
width: clamp(96px, 20vh, 188px);
height: clamp(96px, 20vh, 188px);
}
@keyframes floatBob {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-5px); }
}
.target-ring {
position: absolute;
top: 6px;
padding: 1px 7px;
border-radius: 999px;
font-size: 9px;
font-weight: 900;
background: #ff3b3b;
color: #fff;
box-shadow: 0 0 8px rgba(255,60,60,0.8);
}
.enemy-hud {
width: min(148px, 38vw);
background: rgba(8, 12, 28, 0.86);
border: 1px solid rgba(255,255,255,0.25);
border-radius: 8px;
padding: 3px 6px;
margin-top: 2px;
}
.enemy-top-line {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 10px;
font-weight: 800;
gap: 4px;
}
.turn-badge {
padding: 0 5px;
border-radius: 5px;
background: #2b3a67;
color: #fff;
font-size: 10px;
}
.turn-badge.danger {
background: #e03131;
color: #fff;
}
.ehp-bar {
height: 6px;
background: #1b2238;
border-radius: 999px;
overflow: hidden;
margin-top: 2px;
}
.ehp-fill {
height: 100%;
background: linear-gradient(90deg, #ff6b6b, #fcc419);
transition: width 0.22s ease;
}
.dmg-float {
position: absolute;
top: 24%;
left: 50%;
transform: translateX(-50%);
font-size: 20px;
font-weight: 900;
text-shadow: 0 2px 0 #000, 0 0 10px rgba(0,0,0,0.9);
pointer-events: none;
animation: dmgRise 0.78s ease-out forwards;
white-space: nowrap;
z-index: 9;
}
@keyframes dmgRise {
0% { opacity: 1; transform: translate(-50%, 8px) scale(0.8); }
25% { transform: translate(-50%, -8px) scale(1.15); }
100% { opacity: 0; transform: translate(-50%, -34px) scale(0.95); }
}
.bt-combo-banner {
position: absolute;
right: 10px;
bottom: 8px;
z-index: 6;
padding: 4px 12px;
border-radius: 12px;
background: rgba(12, 18, 44, 0.9);
border: 2px solid var(--gold);
font-size: 15px;
font-weight: 900;
color: var(--gold-hi);
box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}
.bt-cutin {
position: absolute;
inset: auto 0 18% 0;
z-index: 10;
display: flex;
align-items: center;
gap: 12px;
padding: 8px 16px;
background: linear-gradient(90deg, rgba(16, 24, 64, 0.96), rgba(98, 28, 128, 0.92), rgba(16, 24, 64, 0.85));
border-top: 2px solid var(--gold);
border-bottom: 2px solid var(--gold);
animation: cutinSlide 0.25s ease-out;
}
@keyframes cutinSlide {
from { transform: translateX(-100%); opacity: 0; }
to   { transform: translateX(0); opacity: 1; }
}
.bt-cutin img {
width: 62px;
height: 62px;
object-fit: contain;
}
.bt-cutin-txt b {
display: block;
font-size: 15px;
color: var(--gold-hi);
}
.bt-cutin-txt span {
font-size: 11px;
color: #e6f2ff;
}
.battle-mid {
flex: 0 0 auto;
padding: 4px 8px;
background: linear-gradient(180deg, #111938, #0b1026);
border-top: 1px solid rgba(255,255,255,0.14);
border-bottom: 1px solid rgba(255,255,255,0.12);
}
.bt-party-row {
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 5px;
max-width: 460px;
margin: 0 auto 4px;
}
.bt-unit {
position: relative;
border-radius: 10px;
padding: 2px;
background: #17224a;
border: 2px solid rgba(145,178,255,0.3);
cursor: pointer;
transition: transform 0.14s ease;
}
.bt-unit.ready {
border-color: var(--gold);
box-shadow: 0 0 10px rgba(255, 212, 96, 0.65);
transform: translateY(-2px);
}
.bt-unit.attacking {
transform: translateY(-8px) scale(1.08);
}
.bt-unit img {
width: 100%;
aspect-ratio: 1 / 1;
border-radius: 7px;
display: block;
}
.cd-badge {
position: absolute;
right: 2px;
bottom: 2px;
padding: 0 4px;
border-radius: 5px;
font-size: 9px;
font-weight: 900;
background: rgba(0,0,0,0.82);
color: #dbe4ff;
}
.bt-unit.ready .cd-badge {
background: var(--gold);
color: #2b1800;
}
.bt-bars-row {
display: flex;
align-items: center;
gap: 6px;
max-width: 460px;
margin: 0 auto;
}
.hp-wrap {
position: relative;
flex: 1 1 auto;
height: 20px;
border-radius: 999px;
background: #1a0f24;
border: 1px solid rgba(255,255,255,0.28);
overflow: hidden;
}
.hp-fill {
height: 100%;
width: 100%;
background: linear-gradient(90deg, #2ecc71, #8ce99a);
transition: width 0.25s ease;
}
.hp-fill.low {
background: linear-gradient(90deg, #e03131, #ff8787);
}
.hp-label {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 11px;
font-weight: 900;
text-shadow: 0 1px 3px #000;
}
.burst-btn {
flex: 0 0 auto;
height: 24px;
padding: 0 10px;
border-radius: 999px;
font-size: 11px;
font-weight: 900;
background: #24305e;
color: #9bb0de;
border: 1px solid rgba(255,255,255,0.2);
}
.burst-btn.charged {
color: #2b1400;
background: linear-gradient(90deg, #fff3bf, #fcc419, #ff922b);
border-color: #fff;
box-shadow: 0 0 14px rgba(255, 200, 60, 0.85);
animation: pulseBurst 1.1s ease-in-out infinite;
}
@keyframes pulseBurst {
0%, 100% { box-shadow: 0 0 10px rgba(255, 200, 60, 0.65); filter: brightness(1); }
50% { box-shadow: 0 0 22px rgba(255, 225, 110, 1); filter: brightness(1.12); }
}
.affinity-bar {
display: none;
margin-bottom: 8px;
padding: 5px 14px;
border-radius: 999px;
background: rgba(16, 25, 58, 0.85);
border: 1px solid rgba(155, 190, 255, 0.3);
font-size: 11px;
font-weight: 800;
color: #dce8ff;
}
.battle-right {
flex: 0 0 auto;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background: radial-gradient(circle at 50% 45%, #182554 0%, #090d20 72%);
padding: 2px 6px calc(4px + env(safe-area-inset-bottom, 0px));
}
.time-bar-wrap {
position: relative;
width: 100%;
max-width: 640px;
height: 16px;
border-radius: 999px;
background: #111730;
border: 1px solid rgba(255,255,255,0.2);
overflow: hidden;
margin-bottom: 3px;
}
.time-bar-fill {
height: 100%;
width: 100%;
background: linear-gradient(90deg, #3bc9db, #ffe066);
}
.time-bar-txt {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 10px;
font-weight: 800;
text-shadow: 0 1px 2px #000;
}
.bt-board-frame {
border-radius: 12px;
padding: 4px;
background: linear-gradient(180deg, #2d3e78, #182246);
border: 2px solid rgba(165, 198, 255, 0.55);
box-shadow: 0 8px 24px rgba(0,0,0,0.65);
}
.bt-board-frame.frm_gold {
background: linear-gradient(180deg, #876218, #3d2908);
border-color: #ffd460;
}
.bt-board-frame.frm_night {
background: linear-gradient(180deg, #4b237a, #1b0c33);
border-color: #d0bfff;
}
.bt-board-frame.frm_emerald {
background: linear-gradient(180deg, #1e6b43, #0c301e);
border-color: #8ce99a;
}
#bt-canvas {
display: block;
border-radius: 8px;
touch-action: none;
}
@media (min-aspect-ratio: 106/100) {
.battle-screen {
flex-direction: row;
align-items: stretch;
}
.battle-left {
width: 47%;
flex: 0 0 47%;
border-right: 1px solid var(--border);
}
.battle-right {
width: 53%;
flex: 0 0 53%;
padding: 10px 14px;
}
.affinity-bar {
display: inline-block;
}
.enemy-sprite {
width: clamp(96px, 24vh, 170px);
height: clamp(96px, 24vh, 170px);
}
.enemy-unit.boss .enemy-sprite {
width: clamp(120px, 30vh, 210px);
height: clamp(120px, 30vh, 210px);
}
}
.vn-overlay {
position: absolute;
inset: 0;
z-index: 30;
background: rgba(6, 10, 26, 0.72);
backdrop-filter: blur(3px);
display: flex;
align-items: flex-end;
justify-content: center;
padding: 12px;
}
.vn-stage {
width: min(680px, 100%);
display: flex;
flex-direction: column;
align-items: center;
}
.vn-portrait {
width: clamp(170px, 34vh, 260px);
height: clamp(170px, 34vh, 260px);
object-fit: contain;
margin-bottom: -14px;
filter: drop-shadow(0 6px 18px rgba(0,0,0,0.75));
}
.vn-box {
width: 100%;
background: rgba(12, 18, 44, 0.96);
border: 2px solid var(--gold);
border-radius: 18px;
padding: 14px 16px;
box-shadow: 0 12px 32px rgba(0,0,0,0.75);
}
.vn-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 6px;
}
.vn-speaker {
font-size: 14px;
font-weight: 900;
color: var(--gold-hi);
}
.vn-skip {
padding: 4px 10px;
border-radius: 999px;
font-size: 11px;
font-weight: 800;
background: rgba(255,255,255,0.12);
color: #dce6ff;
}
.vn-text {
margin: 0;
min-height: 44px;
font-size: 14px;
line-height: 1.55;
}
.vn-next-hint {
text-align: right;
font-size: 11px;
color: var(--gold);
margin-top: 4px;
}
.modal-root {
position: absolute;
inset: 0;
z-index: 40;
background: rgba(5, 8, 22, 0.82);
display: flex;
align-items: center;
justify-content: center;
padding: 12px;
}
.modal-card {
width: min(620px, 100%);
max-height: 90dvh;
overflow-y: auto;
background: linear-gradient(180deg, #18234f, #0f1636);
border: 1.5px solid rgba(255, 212, 96, 0.6);
border-radius: 20px;
padding: 16px;
box-shadow: 0 16px 40px rgba(0,0,0,0.8);
}
.modal-top {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
margin-bottom: 10px;
}
.modal-top h3 {
margin: 0;
font-size: 17px;
color: var(--gold-hi);
}
.starter-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 10px;
}
.starter-opt {
background: rgba(10, 15, 36, 0.82);
border: 2px solid var(--border);
border-radius: 15px;
padding: 10px;
text-align: left;
color: var(--text);
display: flex;
gap: 10px;
align-items: center;
}
.starter-opt.picked {
border-color: var(--gold);
background: rgba(45, 58, 118, 0.85);
}
.starter-opt img {
width: 68px;
height: 68px;
object-fit: contain;
flex-shrink: 0;
}
.odds-table {
width: 100%;
border-collapse: collapse;
font-size: 12px;
margin-top: 8px;
}
.odds-table th, .odds-table td {
padding: 5px 6px;
border-bottom: 1px solid rgba(255,255,255,0.1);
text-align: left;
}
.toast-root {
position: absolute;
top: 12px;
left: 50%;
transform: translateX(-50%);
z-index: 60;
display: flex;
flex-direction: column;
gap: 6px;
pointer-events: none;
}
.toast-msg {
padding: 8px 16px;
border-radius: 999px;
background: rgba(12, 18, 44, 0.95);
border: 1px solid var(--gold);
color: #fff8db;
font-size: 13px;
font-weight: 800;
box-shadow: 0 6px 18px rgba(0,0,0,0.6);
}
.help-grid {
display: flex;
flex-wrap: wrap;
gap: 10px;
align-items: center;
}
.help-grid > div { flex: 1 1 200px; }
.affinity-bar { cursor: pointer; font-family: inherit; }
:root {
--gold-edge: linear-gradient(180deg, #fff4c2 0%, #ffd460 22%, #b9801c 52%, #ffe08a 78%, #8a5a12 100%);
--navy-plate: linear-gradient(180deg, #1b2556 0%, #0e1433 60%, #0a0f27 100%);
}
.bt-board-frame {
position: relative;
padding: 6px;
border-radius: 14px;
border: 3px solid transparent;
background: var(--navy-plate) padding-box, var(--gold-edge) border-box;
box-shadow: 0 0 0 1px rgba(40, 24, 2, 0.9), 0 0 0 4px rgba(255, 212, 96, 0.18), 0 12px 30px rgba(0, 0, 0, 0.7), inset 0 0 16px rgba(120, 160, 255, 0.18);
}
.bt-board-frame::before { content: ""; position: absolute; pointer-events: none; z-index: 2; }
.bt-board-frame.frm_gold { background: linear-gradient(180deg, #4a3410, #1f1505) padding-box, var(--gold-edge) border-box; }
.bt-board-frame.frm_night { background: linear-gradient(180deg, #3a1d62, #160a2b) padding-box, linear-gradient(180deg, #f1e6ff, #b896ff 45%, #5a3a9a) border-box; }
.bt-board-frame.frm_emerald { background: linear-gradient(180deg, #164f33, #0a2416) padding-box, linear-gradient(180deg, #e6fff0, #6be3a2 45%, #1f6b43) border-box; }
.time-bar-wrap {
height: 18px;
border: 2px solid transparent;
background: #0b1130 padding-box, var(--gold-edge) border-box;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.bt-unit {
border: 2px solid transparent;
background: linear-gradient(180deg, #223066, #121a3d) padding-box, linear-gradient(180deg, #e9d7a0, #8a6a2a 60%, #e9d7a0) border-box;
box-shadow: 0 3px 0 rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.18);
transition: transform 0.16s cubic-bezier(.3, 1.6, .5, 1);
}
.bt-unit.ready {
background: linear-gradient(180deg, #2b3a7a, #141e48) padding-box, var(--gold-edge) border-box;
box-shadow: 0 0 0 1px #5a3a08, 0 0 14px rgba(255, 212, 96, 0.85);
animation: readyGlow 1.4s ease-in-out infinite;
}
@keyframes readyGlow { 50% { box-shadow: 0 0 0 1px #5a3a08, 0 0 22px rgba(255, 236, 150, 1); } }
.bt-unit.attacking { transform: translateY(-10px) scale(1.12); }
.enemy-hud {
border: 2px solid transparent;
border-radius: 9px;
background: linear-gradient(180deg, rgba(20, 26, 60, 0.95), rgba(8, 10, 26, 0.95)) padding-box, linear-gradient(180deg, #e9d7a0, #7a5a1a 55%, #d8bd72) border-box;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.55);
}
.enemy-unit.boss .enemy-hud { background: linear-gradient(180deg, rgba(48, 14, 30, 0.95), rgba(16, 6, 14, 0.95)) padding-box, var(--gold-edge) border-box; }
.ehp-fill { background: linear-gradient(180deg, #ffb3a3, #ff4f4f 50%, #b51d2a); box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.enemy-sprite { animation: floatBreath 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes floatBreath {
0%, 100% { transform: translateY(0) scale(1, 1); }
50% { transform: translateY(-6px) scale(1.02, 0.985); }
}
.enemy-unit.lunge .enemy-sprite { animation: lunge 0.46s cubic-bezier(.3, .0, .3, 1); }
@keyframes lunge {
0% { transform: translateY(0) scale(1); }
35% { transform: translateY(-10px) scale(0.94); filter: brightness(1.2); }
60% { transform: translateY(26px) scale(1.18); filter: brightness(1.6) drop-shadow(0 0 16px #ff5050); }
100% { transform: translateY(0) scale(1); }
}
.enemy-unit.hurt .enemy-sprite { filter: brightness(2.2) drop-shadow(0 0 10px #fff); }
.enemy-unit.dead { opacity: 0; transform: none; transition: none; }
.enemy-unit.dead.dying { opacity: 1; animation: starDust 0.7s ease-in forwards; animation-delay: var(--down-delay, 0ms); }
@keyframes starDust {
0% { opacity: 1; filter: brightness(1); transform: scale(1); }
30% { opacity: 1; filter: brightness(3) saturate(0); transform: scale(1.08); }
100% { opacity: 0; filter: brightness(4) blur(6px); transform: scale(0.7) translateY(-20px); }
}
.bolt {
position: fixed;
z-index: 40;
width: 14px;
height: 14px;
margin: -7px 0 0 -7px;
border-radius: 50%;
background: radial-gradient(circle, #fff 0 30%, var(--bc) 60%, transparent 72%);
box-shadow: 0 0 14px var(--bc), 0 0 28px var(--bc);
pointer-events: none;
animation: boltFly 0.36s cubic-bezier(.5, 0, .9, .6) forwards;
}
@keyframes boltFly {
0% { transform: translate(0, 0) scale(0.6); opacity: 0.4; }
20% { opacity: 1; }
100% { transform: translate(var(--dx), var(--dy)) scale(1.5); opacity: 0.9; }
}
#screen-battle.took-hit { animation: tookHit 0.36s ease; }
@keyframes tookHit {
0%, 100% { transform: translate(0, 0); box-shadow: inset 0 0 0 rgba(255, 0, 0, 0); }
20% { transform: translate(-6px, 3px); box-shadow: inset 0 0 60px rgba(255, 40, 40, 0.55); }
45% { transform: translate(5px, -2px); }
70% { transform: translate(-3px, 1px); }
}
.bt-bars-row { position: relative; }
.party-float {
position: absolute;
left: 30%;
top: -6px;
font-size: 18px;
font-weight: 900;
text-shadow: 0 2px 0 #000, 0 0 8px rgba(0, 0, 0, 0.9);
pointer-events: none;
animation: dmgRise 0.9s ease-out forwards;
z-index: 8;
}
.burst-btn {
height: 30px;
padding: 0 14px;
border: 2px solid transparent;
background: linear-gradient(180deg, #2a356a, #151c40) padding-box, linear-gradient(180deg, #c9b37a, #5e4718) border-box;
}
.burst-btn.charged {
background: radial-gradient(circle at 50% 30%, #fffbe0, #ffd24a 45%, #e08a12) padding-box, var(--gold-edge) border-box;
}
.bt-constellation {
position: absolute;
inset: 0;
z-index: 45;
display: grid;
place-items: center;
pointer-events: none;
}
.bt-constellation[hidden] { display: none; }
.bt-constellation .cs-veil {
position: absolute;
inset: 0;
background: radial-gradient(circle at 50% 45%, rgba(30, 40, 104, 0.84) 0%, rgba(4, 6, 20, 0.95) 66%);
opacity: 0;
}
.bt-constellation .cs-veil::after {
content: "";
position: absolute;
inset: 0;
background: radial-gradient(circle at 50% 45%, var(--cs) 0%, transparent 45%);
opacity: 0.38;
}
.bt-constellation .cs-svg {
position: relative;
width: min(72vw, 62vh, 520px);
height: auto;
overflow: visible;
opacity: 0;
}
.cs-glow { fill: none; stroke-width: 9; stroke-linejoin: round; opacity: 0.55; filter: blur(4px); }
.cs-line { fill: none; stroke: #fffbe6; stroke-width: 2.6; stroke-linejoin: round; }
.cs-star { opacity: 0; transform-box: fill-box; transform-origin: center; filter: drop-shadow(0 0 4px #fff); }
.cs-in { opacity: 0; }
.bt-constellation .cs-text {
position: absolute;
left: 0;
right: 0;
bottom: 14%;
text-align: center;
opacity: 0;
}
.cs-kicker { display: inline-block; padding: 2px 14px; border-radius: 999px; font-size: 12px; font-weight: 900; letter-spacing: 0.3em; color: #2b1800; background: var(--gold-edge); }
.cs-name {
display: block;
margin-top: 6px;
font-size: clamp(30px, 7vw, 54px);
font-weight: 900;
letter-spacing: 0.12em;
color: #fff8dc;
text-shadow: 0 2px 0 #5a3a08, 0 0 18px var(--cs-hi), 0 0 36px var(--cs-hi);
}
.cs-sub { display: block; margin-top: 6px; font-size: 13px; font-weight: 800; color: #eaf2ff; text-shadow: 0 1px 3px #000; line-height: 1.5; }
.bt-constellation.play .cs-veil { animation: csVeil 1.25s ease forwards; }
.bt-constellation.play .cs-svg { animation: csZoom 1.25s ease forwards; }
.bt-constellation.play .cs-glow, .bt-constellation.play .cs-line { animation: csDraw 0.55s ease-out forwards; }
.bt-constellation.play .cs-star { animation: csStar 0.4s cubic-bezier(.3, 1.8, .5, 1) forwards; }
.bt-constellation.play .cs-in { animation: csIn 0.5s ease 0.5s forwards; }
.bt-constellation.play .cs-text { animation: csText 1.25s ease forwards; }
@keyframes csVeil { 0% { opacity: 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: 0; } }
@keyframes csZoom { 0% { opacity: 0; transform: scale(0.82) rotate(-4deg); } 15% { opacity: 1; } 80% { opacity: 1; transform: scale(1) rotate(0); } 100% { opacity: 0; transform: scale(1.12); } }
@keyframes csDraw { to { stroke-dashoffset: 0; } }
@keyframes csStar { 0% { opacity: 0; transform: scale(0) rotate(-90deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes csIn { to { opacity: 0.9; } }
@keyframes csText { 0%, 25% { opacity: 0; transform: translateY(14px); } 40% { opacity: 1; transform: translateY(0); } 82% { opacity: 1; } 100% { opacity: 0; } }
.bt-transition {
position: absolute;
inset: 0;
z-index: 44;
pointer-events: none;
display: grid;
place-items: center;
overflow: hidden;
}
.bt-transition[hidden] { display: none; }
.bt-transition .tr-label {
position: relative;
font-size: 26px;
font-weight: 900;
letter-spacing: 0.2em;
color: #fff3b8;
text-shadow: 0 0 14px rgba(255, 212, 96, 0.9);
opacity: 0;
}
.bt-transition.close .tr-label { animation: trLabel 0.42s ease forwards; }
.bt-transition.open .tr-label { opacity: 1; animation: trLabelOut 0.3s ease forwards; }
@keyframes trLabel { 0%, 50% { opacity: 0; transform: scale(0.8); } 100% { opacity: 1; transform: scale(1); } }
@keyframes trLabelOut { to { opacity: 0; transform: scale(1.2); } }
.hub-nav { border-top: 2px solid transparent; border-image: linear-gradient(90deg, transparent, #ffd460 20%, #fff4c2 50%, #ffd460 80%, transparent) 1; }
.modal-card { border: 2px solid transparent !important; background: linear-gradient(180deg, #172057, #0b1030) padding-box, var(--gold-edge) border-box !important; }
@media (prefers-reduced-motion: reduce) {
.enemy-sprite, .bt-unit.ready { animation: none; }
.bt-constellation.play .cs-svg { animation-duration: 0.01s; }
}
.title-logo { line-height: 0; text-shadow: none; }
.title-logo img { width: min(78vw, 420px); height: auto; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6)); }
.title-badge { position: relative; z-index: 1; }
@media (max-aspect-ratio: 1/1) {
.title-bg { background: #070d34; }
.title-bg img { top: 9vh; height: calc(100% - 9vh); object-position: 50% 0; }
.title-bg::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9vh; background: #060c33; }
.title-bg::after { content: ""; position: absolute; left: 0; right: 0; top: calc(9vh - 1px); height: 8vh; background: linear-gradient(180deg, #060c33, rgba(6, 12, 51, 0)); }
.title-content { flex: 1 1 auto; justify-content: flex-end; padding-top: max(10px, env(safe-area-inset-top, 0px)); }
.title-content .title-logo { position: absolute; top: max(4px, env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); }
.title-content .title-badge { position: absolute; top: calc(max(4px, env(safe-area-inset-top, 0px)) + min(37vw, 190px)); left: 50%; transform: translateX(-50%); }
.title-logo img { width: min(84vw, 400px); }
}
@media (min-aspect-ratio: 106/100) {
#screen-title { align-items: flex-start; }
.title-content { width: min(500px, 40vw); margin-left: 3vw; padding-bottom: 3vh; }
.title-shade { background: linear-gradient(90deg, rgba(7, 10, 26, 0.55) 0%, rgba(7, 10, 26, 0.18) 46%, rgba(7, 10, 26, 0) 60%), linear-gradient(180deg, rgba(8, 12, 30, 0) 40%, rgba(7, 10, 26, 0.7) 100%); }
.title-logo img { width: min(36vw, 440px); }
}
.nav-btn .nav-ico { width: 30px; height: 30px; object-fit: contain; font-size: 0; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.6)); }
.nav-btn { gap: 1px; padding: 4px 2px; }
.nav-btn.active { color: #fff3b8; background: radial-gradient(ellipse at 50% 30%, rgba(255, 214, 96, 0.32), rgba(255, 214, 96, 0.06) 70%); box-shadow: inset 0 0 0 1px rgba(255, 214, 96, 0.55); }
.nav-btn.active .nav-ico { transform: scale(1.12); filter: drop-shadow(0 0 6px rgba(255, 214, 96, 0.9)); }
.modal-wrap { position: relative; width: min(620px, 100%); padding-top: 16px; }
.modal-crest { position: absolute; left: 50%; top: 0; width: 150px; height: auto; transform: translateX(-50%); z-index: 2; pointer-events: none; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.5)); }
.modal-card {
width: 100% !important;
max-height: calc(90dvh - 16px);
border: 22px solid transparent !important;
border-image: url("img/ui/panel.webp") 46 46 46 46 fill / 22px stretch !important;
background: none !important;
padding: 10px 6px 6px !important;
border-radius: 0 !important;
}
@media (max-aspect-ratio: 1/1) { .title-sub { display: none; } }
@media (min-aspect-ratio: 106/100) {
.title-content .title-logo { position: absolute; top: 2.5vh; left: 2vw; margin: 0; }
.title-content .title-logo img { width: min(22vw, 330px); }
.title-content .title-badge { position: absolute; top: calc(2.5vh + min(10.4vw, 157px)); left: calc(2vw + min(11vw, 165px)); transform: translateX(-50%); }
#screen-title { justify-content: flex-end; }
}
@media (min-aspect-ratio: 106/100) { .title-content { flex: 1 1 auto; justify-content: flex-end; } }
@media (min-aspect-ratio: 62/100) and (max-aspect-ratio: 1/1) { .title-bg img { object-position: 50% 72%; } }
