
:root {
--ink-dark: #221c35;
--ink-mid: #4e4468;
--ink-soft: #7b7196;
--night-0: #120c22;
--night-1: #1c1433;
--night-2: #2a1f4a;
--paper: #fffaf0;
--paper-2: #f6ecd8;
--gold: #e8c26a;
--gold-hi: #fff0c2;
--gold-dk: #9a6b1c;
--accent-red: #e63956;
--accent-green: #2bb673;
--accent-gold: #f59f00;
--accent-blue: #2b8aeb;
--c-ink: #e63956;
--c-crayon: #2bb673;
--c-neon: #f5a300;
--c-aqua: #2b8aeb;
--frame: 0 0 0 1.5px #6b4a12, 0 0 0 3.5px #e8c26a, 0 0 0 5px #8a5f17;
--lift: 0 14px 30px rgba(6, 2, 18, 0.55);
--radius-lg: 16px;
--radius-md: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
background: var(--night-0);
color: var(--ink-dark);
font-family: "Hiragino Maru Gothic ProN", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Yu Gothic UI", "Meiryo", sans-serif;
-webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
.egm-app {
position: relative;
width: 100%;
height: 100dvh;
overflow: hidden;
display: flex;
flex-direction: column;
}
button { font-family: inherit; cursor: pointer; }
.screen-title {
position: relative;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
padding: 20px 16px;
overflow: hidden;
}
.title-bg-layer {
position: absolute;
inset: 0;
background-image: url("img/ui/title_wide.webp");
background-size: cover;
background-position: center;
animation: titleDrift 22s ease-in-out infinite alternate;
}
@media (orientation: portrait) {
.title-bg-layer { background-image: url("img/ui/title_tall.webp"); }
}
@keyframes titleDrift {
from { transform: scale(1.04) translate(0, 0); }
to   { transform: scale(1.1) translate(-1.5%, -1%); }
}
.title-vignette {
position: absolute;
inset: 0;
background:
radial-gradient(ellipse at 50% 40%, rgba(20, 12, 40, 0) 30%, rgba(14, 8, 30, 0.75) 100%),
linear-gradient(180deg, rgba(24, 16, 42, 0.1) 40%, rgba(16, 10, 32, 0.85) 100%);
}
.title-sparkles i {
position: absolute;
width: 6px;
height: 6px;
border-radius: 50%;
background: #fff6cf;
box-shadow: 0 0 10px 3px rgba(255, 220, 140, 0.8);
opacity: 0;
animation: twinkle 3.2s ease-in-out infinite;
}
.title-sparkles i:nth-child(1) { left: 12%; top: 20%; animation-delay: 0s; }
.title-sparkles i:nth-child(2) { left: 82%; top: 16%; animation-delay: 0.6s; }
.title-sparkles i:nth-child(3) { left: 70%; top: 62%; animation-delay: 1.3s; }
.title-sparkles i:nth-child(4) { left: 22%; top: 70%; animation-delay: 1.9s; }
.title-sparkles i:nth-child(5) { left: 48%; top: 10%; animation-delay: 2.4s; }
.title-sparkles i:nth-child(6) { left: 90%; top: 80%; animation-delay: 0.9s; }
@keyframes twinkle {
0%, 100% { opacity: 0; transform: scale(0.4); }
45% { opacity: 1; transform: scale(1.2); }
}
.title-content {
position: relative;
z-index: 2;
max-width: 520px;
width: 100%;
text-align: center;
padding: 26px 20px 18px;
border-radius: 24px;
background:
radial-gradient(ellipse at 50% 0%, rgba(255, 240, 194, 0.16), rgba(255, 240, 194, 0) 60%),
linear-gradient(180deg, rgba(36, 26, 66, 0.86), rgba(20, 13, 40, 0.92));
box-shadow: var(--frame), var(--lift), inset 0 1px 0 rgba(255, 255, 255, 0.12);
color: #fff8ea;
animation: rise 0.6s cubic-bezier(.2,.9,.3,1.2) both;
}
@keyframes rise {
from { opacity: 0; transform: translateY(18px) scale(0.97); }
to { opacity: 1; transform: none; }
}
.title-badge {
display: inline-block;
color: var(--gold-hi);
font-size: 12px;
font-weight: 800;
letter-spacing: 0.08em;
padding: 4px 14px;
border-radius: 999px;
border: 1px solid rgba(232, 194, 106, 0.6);
background: rgba(232, 194, 106, 0.1);
margin-bottom: 6px;
}
.title-logo {
margin: 4px 0 10px;
font-size: clamp(44px, 12vw, 70px);
font-weight: 900;
line-height: 1.05;
letter-spacing: 0.02em;
filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.5));
}
.title-logo img { display: block; width: min(92%, 400px); height: auto; margin: 0 auto; }
.title-catch {
margin: 0 0 16px;
font-size: clamp(13px, 3.4vw, 15px);
line-height: 1.65;
color: #efe6ff;
font-weight: 700;
}
.title-actions { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.btn-sub-login {
display: inline-block;
color: #bfe3ff;
font-size: 13px;
font-weight: 800;
text-decoration: none;
padding: 7px 14px;
border-radius: 999px;
background: rgba(43, 138, 235, 0.16);
border: 1px solid rgba(166, 225, 255, 0.4);
}
.title-attr-row {
margin-top: 16px;
display: flex;
flex-wrap: wrap;
justify-content: center;
align-items: center;
gap: 4px;
font-size: 11.5px;
font-weight: 800;
}
.title-attr-row b { color: var(--gold); font-size: 10px; }
.ta { padding: 3px 8px; border-radius: 999px; color: #fff; }
.ta.ink { background: var(--c-ink); }
.ta.crayon { background: var(--c-crayon); }
.ta.neon { background: var(--c-neon); color: #2a1a00; }
.ta.aqua { background: var(--c-aqua); }
.title-footer-credit {
margin-top: 12px;
font-size: 11px;
color: rgba(239, 230, 255, 0.6);
}
.btn-primary, .btn-secondary, .btn-accent, .btn-outline, .btn-ghost, .btn-danger-outline {
position: relative;
border-radius: 999px;
font-weight: 900;
padding: 10px 18px;
font-size: 14px;
line-height: 1.25;
letter-spacing: 0.02em;
transition: filter 0.15s, box-shadow 0.2s, transform 0.08s;
}
.btn-primary:active, .btn-secondary:active, .btn-accent:active, .btn-ghost:active { transform: translateY(2px); }
.btn-primary {
color: #fff;
border: 1.5px solid #7a0f2a;
background: linear-gradient(180deg, #ff8aa0 0%, #f0476a 42%, #d1224a 100%);
box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), inset 0 -3px 0 rgba(90, 0, 25, 0.25), 0 3px 0 #6d0c22, 0 8px 16px rgba(230, 57, 86, 0.35);
text-shadow: 0 1px 0 rgba(90, 0, 25, 0.5);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-secondary {
color: #3d2a05;
border: 1.5px solid #7a5512;
background: linear-gradient(180deg, #fff7d6 0%, #f6d47e 50%, #dcaa42 100%);
box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7), inset 0 -3px 0 rgba(120, 80, 10, 0.2), 0 3px 0 #6b4a0f, 0 6px 12px rgba(150, 100, 20, 0.25);
}
.btn-accent {
color: #fff;
border: 1.5px solid #3c0e6e;
background: linear-gradient(180deg, #c58bff 0%, #8a3ff0 50%, #5d1bb8 100%);
box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 3px 0 #2e0a57, 0 8px 16px rgba(138, 63, 240, 0.35);
text-shadow: 0 1px 0 rgba(40, 0, 80, 0.5);
}
.btn-ghost, .btn-outline {
color: var(--ink-dark);
border: 1.5px solid rgba(34, 28, 53, 0.55);
background: rgba(255, 255, 255, 0.7);
box-shadow: 0 2px 0 rgba(34, 28, 53, 0.3);
}
.btn-danger-outline {
white-space: nowrap;
background: #fff0f3;
color: #c9184a;
border: 1.5px solid #c9184a;
}
.btn-xl {
font-size: 18px;
padding: 15px 34px;
width: 100%;
max-width: 320px;
animation: glowPulse 2.4s infinite ease-in-out;
}
.btn-lg { font-size: 15px; padding: 12px 22px; }
.btn-sm { font-size: 12.5px; padding: 8px 13px; min-height: 36px; }
.btn-xs { font-size: 11.5px; padding: 6px 10px; min-height: 30px; }
button:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; filter: grayscale(0.3); }
@keyframes glowPulse {
0%, 100% { box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 3px 0 #6d0c22, 0 0 0 rgba(255, 120, 150, 0); }
50% { box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 3px 0 #6d0c22, 0 0 26px rgba(255, 120, 150, 0.75); }
}
.main-shell {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
overflow: hidden;
background:
radial-gradient(ellipse at 50% -10%, rgba(255, 200, 120, 0.18), rgba(255, 200, 120, 0) 55%),
linear-gradient(180deg, rgba(22, 14, 42, 0.86) 0%, rgba(14, 9, 28, 0.94) 100%),
url("img/ui/title_wide.webp") center / cover;
}
@media (orientation: portrait) {
.main-shell {
background:
radial-gradient(ellipse at 50% -10%, rgba(255, 200, 120, 0.18), rgba(255, 200, 120, 0) 55%),
linear-gradient(180deg, rgba(22, 14, 42, 0.86) 0%, rgba(14, 9, 28, 0.94) 100%),
url("img/ui/title_tall.webp") center / cover;
}
}
.top-bar {
flex: 0 0 50px;
position: relative;
background: linear-gradient(180deg, #2d2150 0%, #1a1231 100%);
color: #fffdf8;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 8px;
gap: 4px;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
z-index: 3;
}
.top-bar::after {
content: "";
position: absolute;
left: 0; right: 0; bottom: -2px;
height: 2px;
background: linear-gradient(90deg, rgba(232, 194, 106, 0), #e8c26a 20%, #fff0c2 50%, #e8c26a 80%, rgba(232, 194, 106, 0));
}
.top-brand {
display: flex;
align-items: center;
gap: 6px;
cursor: pointer;
font-weight: 900;
font-size: 15px;
white-space: nowrap;
min-height: 44px;
}
.brand-dot {
width: 22px;
height: 22px;
border-radius: 50%;
background: conic-gradient(var(--c-ink) 0 25%, var(--c-crayon) 0 50%, var(--c-neon) 0 75%, var(--c-aqua) 0);
box-shadow: 0 0 0 2px #fff6d8, 0 0 10px rgba(255, 220, 140, 0.6);
}
.brand-name {
background: linear-gradient(180deg, #fffaf0, #ffd98a);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
}
.svg-ico-sm { width: 14px; height: 14px; vertical-align: -2px; margin-right: 2px; }
.top-currencies { display: flex; align-items: center; gap: 4px; min-width: 0; }
.cur-pill {
background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.15));
border: 1px solid rgba(232, 194, 106, 0.55);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
padding: 4px 8px;
border-radius: 999px;
font-size: 11px;
white-space: nowrap;
color: #f3ebff;
}
.cur-pill strong { color: var(--gold-hi); font-size: 12px; }
.icon-btn {
background: radial-gradient(circle at 35% 30%, #4a3a78, #241a40);
border: 1px solid rgba(232, 194, 106, 0.6);
color: var(--gold-hi);
width: 32px;
height: 32px;
border-radius: 50%;
font-size: 14px;
font-weight: 900;
display: grid;
place-items: center;
padding: 0;
flex-shrink: 0;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.top-pleple-link {
background: linear-gradient(180deg, #fff7d6, #e8c26a);
border: 1px solid #7a5512;
color: #3d2a05;
text-decoration: none;
font-size: 11px;
font-weight: 900;
padding: 6px 9px;
border-radius: 999px;
white-space: nowrap;
flex-shrink: 0;
}
@media (max-width: 400px) {
.brand-name { font-size: 13px; }
.cur-pill { padding: 3px 6px; font-size: 10.5px; }
.cur-lbl { display: none; }
.top-pleple-link { padding: 5px 7px; font-size: 10px; }
.icon-btn { width: 30px; height: 30px; }
}
.tab-viewport {
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
padding: 14px 12px;
}
.tab-pane {
max-width: 1080px;
margin: 0 auto;
display: flex;
flex-direction: column;
gap: 16px;
padding-bottom: 14px;
animation: paneIn 0.28s ease-out both;
}
@keyframes paneIn {
from { opacity: 0; transform: translateY(8px); }
to { opacity: 1; transform: none; }
}
.card, .world-card, .egm-modal-box {
border: 1px solid transparent;
border-image: url("img/art/frame_card.webp") 58 / 26px / 12px round;
}
.card {
position: relative;
background:
radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 50%),
linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
border-radius: var(--radius-lg);
padding: 16px 14px 14px;
margin: 13px 12px;
box-shadow: var(--lift);
}
.card::before {
display: none;
content: "";
position: absolute;
inset: 5px;
border-radius: 12px;
pointer-events: none;
--c: rgba(154, 107, 28, 0.6);
background:
linear-gradient(var(--c), var(--c)) top left / 16px 1.5px no-repeat,
linear-gradient(var(--c), var(--c)) top left / 1.5px 16px no-repeat,
linear-gradient(var(--c), var(--c)) top right / 16px 1.5px no-repeat,
linear-gradient(var(--c), var(--c)) top right / 1.5px 16px no-repeat,
linear-gradient(var(--c), var(--c)) bottom left / 16px 1.5px no-repeat,
linear-gradient(var(--c), var(--c)) bottom left / 1.5px 16px no-repeat,
linear-gradient(var(--c), var(--c)) bottom right / 16px 1.5px no-repeat,
linear-gradient(var(--c), var(--c)) bottom right / 1.5px 16px no-repeat;
}
.sec-title {
margin: 0 0 4px;
font-size: 16.5px;
font-weight: 900;
color: #2a1f45;
letter-spacing: 0.02em;
}
.st-ico {
color: var(--gold-dk);
margin-right: 6px;
font-size: 13px;
vertical-align: 1px;
}
.sec-sub {
margin: 0;
font-size: 12.5px;
color: var(--ink-mid);
line-height: 1.55;
}
.bottom-nav {
flex: 0 0 62px;
position: relative;
background: linear-gradient(180deg, #241a42 0%, #120c22 100%);
display: grid;
grid-template-columns: repeat(5, 1fr);
box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.45);
z-index: 3;
}
.bottom-nav::before {
content: "";
position: absolute;
left: 0; right: 0; top: 0;
height: 2px;
background: linear-gradient(90deg, rgba(232, 194, 106, 0), #e8c26a 20%, #fff0c2 50%, #e8c26a 80%, rgba(232, 194, 106, 0));
}
.nav-tab {
position: relative;
background: transparent;
border: none;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 3px;
color: #9d93bd;
font-weight: 800;
padding: 4px 2px;
transition: color 0.2s;
}
.nav-tab.active { color: var(--gold-hi); }
.nav-tab.active::before {
content: "";
position: absolute;
inset: 6px 10%;
border-radius: 14px;
background: radial-gradient(ellipse at 50% 30%, rgba(255, 210, 120, 0.35), rgba(255, 210, 120, 0) 70%);
box-shadow: inset 0 0 0 1px rgba(232, 194, 106, 0.45);
}
.nav-ico { position: relative; display: block; width: 30px; height: 30px; background: var(--ico) center / contain no-repeat; filter: grayscale(0.6) brightness(0.8); opacity: 0.85; transition: transform 0.15s, filter 0.15s; }
.nav-tab.active .nav-ico { filter: drop-shadow(0 0 6px rgba(255, 210, 120, 0.9)); opacity: 1; transform: scale(1.12) translateY(-1px); }
.nav-lbl { font-size: 11px; white-space: nowrap; position: relative; }
.home-hero {
position: relative;
border-radius: 20px;
overflow: hidden;
min-height: 200px;
margin: 5px;
box-shadow: var(--frame), var(--lift);
isolation: isolate;
}
.hero-art {
position: absolute;
inset: 0;
z-index: -1;
background: url("img/art/hero_wide.webp") 70% 40% / cover;
}
@media (orientation: portrait) {
.hero-art { background-image: url("img/art/hero_tall.webp"); background-position: center 18%; }
}
.hero-art::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(180deg, rgba(14, 8, 30, 0) 0%, rgba(14, 8, 30, 0.1) 40%, rgba(14, 8, 30, 0.8) 100%), linear-gradient(90deg, rgba(14, 8, 30, 0.55), rgba(14, 8, 30, 0) 55%);
}
.hero-inner {
padding: 22px 16px 16px;
min-height: 230px;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: flex-end;
gap: 6px;
}
.hero-logo {
font-size: clamp(32px, 9vw, 46px);
font-weight: 900;
line-height: 1;
filter: drop-shadow(0 3px 0 #120a24) drop-shadow(0 8px 14px rgba(0, 0, 0, 0.6));
}
.hero-logo img { display: block; width: clamp(190px, 46vw, 320px); height: auto; }
@media (orientation: portrait) { .hero-logo { display: none; } .hero-inner { min-height: 250px; } }
.hero-sub {
margin: 0 0 6px;
font-size: 13px;
font-weight: 800;
color: #fff3d6;
text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}
.btn-hero {
display: flex;
flex-direction: column;
align-items: flex-start;
padding: 10px 26px 11px 22px;
border-radius: 16px;
min-width: 230px;
animation: glowPulse 2.6s infinite ease-in-out;
}
.bh-kicker { font-size: 11px; font-weight: 800; opacity: 0.9; letter-spacing: 0.1em; }
.bh-main { font-size: 18px; }
.squad-bar-head {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 8px;
margin-bottom: 12px;
}
.squad-bar-btns { display: flex; gap: 6px; }
.squad-mini-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 8px;
max-width: 560px;
margin: 0 auto;
}
.unit-mini-card {
text-align: center;
position: relative;
padding: 0 2px;
}
.unit-medal {
position: relative;
width: min(74px, 100%);
aspect-ratio: 1 / 1;
margin: 0 auto 4px;
border-radius: 50%;
background: radial-gradient(circle at 35% 30%, var(--mc-hi, #ffd0dc), var(--mc, #e63956) 70%, var(--mc-dk, #4a0e1c));
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
display: grid;
place-items: center;
}
.unit-medal::after {
content: "";
position: absolute;
inset: -10%;
background: url("img/art/medal_ring.webp") center / contain no-repeat;
pointer-events: none;
}
.unit-medal .um-star, .unit-medal .um-helper { z-index: 2; }
.unit-medal img {
width: 92%;
height: 92%;
object-fit: contain;
filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
}
.unit-medal .um-star {
position: absolute;
right: -4px;
bottom: -2px;
background: linear-gradient(180deg, #fff3c4, #e8b23a);
color: #4a2e00;
border: 1.5px solid #6b4a12;
font-size: 10px;
font-weight: 900;
padding: 0 5px;
border-radius: 999px;
}
.unit-medal .um-helper {
position: absolute;
left: -4px;
top: -2px;
background: #2b8aeb;
color: #fff;
font-size: 9.5px;
font-weight: 900;
padding: 1px 5px;
border-radius: 999px;
border: 1.5px solid #fff;
}
.unit-mini-name {
font-size: 11.5px;
font-weight: 900;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: #2a1f45;
}
.unit-mini-sub { font-size: 10px; color: var(--ink-soft); font-weight: 700; }
.mode-switch-bar {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 4px;
padding: 4px;
margin: 0 5px;
border-radius: 16px;
background: rgba(10, 6, 22, 0.6);
box-shadow: inset 0 0 0 1px rgba(232, 194, 106, 0.4);
}
.mode-switch-btn {
padding: 9px 6px;
border-radius: 12px;
border: none;
background: transparent;
color: #b6acd4;
font-weight: 900;
font-size: 14px;
display: flex;
flex-direction: column;
align-items: center;
line-height: 1.2;
}
.mode-switch-btn small { font-size: 10.5px; font-weight: 700; opacity: 0.8; }
.mode-switch-btn.active {
color: #3d2a05;
background: linear-gradient(180deg, #fff7d6 0%, #f6d47e 55%, #dcaa42 100%);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 2px 8px rgba(232, 194, 106, 0.4);
}
.world-list-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 16px;
padding: 0 5px;
}
.world-card {
position: relative;
border-radius: 14px;
overflow: hidden;
background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
display: flex;
flex-direction: column;
box-shadow: var(--lift);
margin: 13px 12px;
}
.world-banner {
height: 128px;
background-size: cover;
background-position: center;
position: relative;
display: flex;
align-items: flex-end;
justify-content: space-between;
padding: 8px 10px;
}
.world-banner::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(180deg, rgba(20, 14, 34, 0) 35%, rgba(20, 14, 34, 0.82));
box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.45);
}
.world-no {
position: absolute;
top: 8px;
left: 8px;
z-index: 1;
background: linear-gradient(180deg, #fff3c4, #e8b23a);
color: #4a2e00;
border: 1.5px solid #6b4a12;
border-radius: 8px;
font-weight: 900;
font-size: 11px;
padding: 2px 8px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.world-boss {
position: relative;
z-index: 1;
width: 62px;
height: 62px;
object-fit: contain;
filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.6));
margin-bottom: -4px;
}
.world-banner-txt { position: relative; z-index: 1; color: #fff; min-width: 0; }
.world-banner-txt h3 {
margin: 0;
font-size: 16px;
font-weight: 900;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}
.world-clear {
position: absolute;
top: 8px;
right: 8px;
z-index: 1;
transform: rotate(8deg);
border: 2px solid #ffd166;
color: #ffd166;
background: rgba(30, 18, 50, 0.7);
font-weight: 900;
font-size: 11px;
padding: 2px 8px;
border-radius: 6px;
}
.world-body {
padding: 10px 12px 12px;
display: flex;
flex-direction: column;
gap: 8px;
flex: 1;
}
.world-meta-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 6px;
font-size: 11.5px;
font-weight: 800;
color: var(--ink-mid);
}
.world-card .btn-primary { width: 100%; }
.coop-leader-row {
display: flex;
align-items: center;
gap: 12px;
background: linear-gradient(180deg, #fff, #f4ead6);
border: 1.5px solid #dcc89a;
border-radius: 14px;
padding: 10px 12px;
margin: 12px 0;
}
.coop-my-thumb { width: 60px; height: 60px; object-fit: contain; }
.coop-leader-info { flex: 1; min-width: 0; }
.label-mini { font-size: 11px; color: var(--ink-soft); }
.coop-my-name { font-size: 15px; font-weight: 900; }
.coop-my-meta { font-size: 12px; color: var(--ink-mid); }
.coop-world-pick {
margin-bottom: 10px;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
font-size: 13px;
font-weight: 700;
}
.coop-join-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.coop-code-row { display: flex; gap: 6px; }
.coop-code-row .inp-text { flex: 1; min-width: 0; }
.coop-lobby-room {
margin-top: 12px;
background: rgba(255, 255, 255, 0.6);
border: 2px dashed #b98c2e;
border-radius: 14px;
padding: 12px;
}
.lobby-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.badge-room, .badge-world {
display: inline-block;
background: var(--ink-dark);
color: #fffdf8;
font-size: 12px;
padding: 4px 10px;
border-radius: 999px;
margin-right: 4px;
}
.lobby-slots-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-bottom: 12px; }
.lobby-slot-card {
background: #fff;
border-radius: 12px;
padding: 8px;
text-align: center;
box-shadow: 0 0 0 1.5px #b98c2e, 0 4px 10px rgba(0, 0, 0, 0.12);
}
.lobby-slot-card img { width: 56px; height: 56px; object-fit: contain; }
.lobby-actions { text-align: center; }
.studio-steps {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 6px;
padding: 0 5px;
}
.layer-tab, .step-finish {
position: relative;
border: none;
border-radius: 14px;
padding: 7px 4px 8px;
background: rgba(10, 6, 22, 0.55);
box-shadow: inset 0 0 0 1px rgba(232, 194, 106, 0.35);
color: #c9bfe6;
font-weight: 900;
font-size: 12.5px;
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
}
.layer-tab b, .step-finish b {
display: grid;
place-items: center;
width: 26px;
height: 26px;
border-radius: 50%;
font-size: 13px;
background: rgba(255, 255, 255, 0.12);
color: #fff;
}
.layer-tab[data-layer="body"] b { background: var(--c-ink); }
.layer-tab[data-layer="face"] b { background: var(--c-aqua); }
.layer-tab[data-layer="parts"] b { background: var(--c-crayon); }
.step-finish b { background: var(--c-neon); color: #3a2400; }
.layer-tab.active, .step-finish.active {
color: #3d2a05;
background: linear-gradient(180deg, #fff7d6 0%, #f6d47e 55%, #dcaa42 100%);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 0 14px rgba(255, 210, 120, 0.55);
}
.layer-tab.done::after {
content: "✓";
position: absolute;
top: 3px;
right: 6px;
color: #2bb673;
font-size: 13px;
font-weight: 900;
}
.studio-step-hint {
margin: -4px 5px 0;
color: #f3ecff;
font-size: 13px;
font-weight: 700;
text-align: center;
line-height: 1.5;
}
.studio-step-hint strong { color: var(--gold-hi); }
.studio-layout { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 800px) {
.studio-layout { grid-template-columns: minmax(330px, 470px) 1fr; align-items: start; }
}
.studio-canvas-card { display: flex; flex-direction: column; gap: 10px; padding: 0 5px; }
.easel {
--cv: min(420px, max(260px, calc(100dvh - 400px)));
position: relative;
width: min(100%, calc(var(--cv) / 0.7557));
margin: 0 auto;
aspect-ratio: 560 / 611;
}
.easel::after {
content: "";
position: absolute;
inset: 0;
z-index: 2;
pointer-events: none;
background: url("img/art/easel.webp") top center / 100% auto no-repeat;
filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.5));
}
.easel-paper {
position: absolute;
left: 8.2%;
width: 83.6%;
top: 18.6%;
height: 70.9%;
z-index: 1;
background-color: #fffdf6;
background-image:
radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0) 60%),
repeating-linear-gradient(0deg, rgba(120, 140, 180, 0.07) 0 1px, transparent 1px 24px),
repeating-linear-gradient(90deg, rgba(120, 140, 180, 0.07) 0 1px, transparent 1px 24px);
}
.canvas-board-wrap {
position: absolute;
left: 12.21%;
top: 19.43%;
width: 75.57%;
aspect-ratio: 1 / 1;
z-index: 3;
overflow: hidden;
box-shadow: inset 0 0 14px rgba(120, 90, 40, 0.15);
}
.atelier-pad-host { position: relative; width: 100%; aspect-ratio: 1 / 1; }
.pad-sparks { position: absolute; inset: 0; pointer-events: none; z-index: 8; }
.pad-sparks i {
position: absolute;
width: 10px;
height: 10px;
margin: -5px 0 0 -5px;
background: radial-gradient(circle, #fff 0 25%, var(--sc, #ffd166) 30% 55%, transparent 60%);
border-radius: 50%;
animation: spark 0.6s ease-out forwards;
}
@keyframes spark {
from { transform: translate(0, 0) scale(1.2); opacity: 1; }
to { transform: translate(var(--dx), var(--dy)) scale(0.2); opacity: 0; }
}
.mirror-toggle {
position: absolute;
left: 6px;
top: 6px;
z-index: 9;
display: inline-flex;
align-items: center;
gap: 4px;
font-size: 12px;
font-weight: 900;
background: rgba(255, 255, 255, 0.92);
border: 1.5px solid var(--accent-blue);
color: #1864ab;
padding: 4px 9px 4px 6px;
border-radius: 999px;
cursor: pointer;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.mirror-toggle input { margin: 0; width: 16px; height: 16px; accent-color: var(--accent-blue); }
.stroke-badge {
position: absolute;
right: 6px;
top: 6px;
z-index: 9;
background: rgba(34, 28, 53, 0.82);
color: #fff;
font-size: 11.5px;
font-weight: 800;
padding: 4px 9px;
border-radius: 999px;
pointer-events: none;
}
.stroke-badge.ok { background: linear-gradient(180deg, #34c77f, #1d8f57); }
.toolbox {
display: flex;
flex-wrap: wrap;
gap: 8px;
justify-content: space-between;
align-items: center;
padding: 8px 10px;
border-radius: 16px;
background: rgba(10, 6, 22, 0.6);
box-shadow: inset 0 0 0 1px rgba(232, 194, 106, 0.4);
}
.tool-group { display: flex; gap: 6px; align-items: center; }
.tool-btn, .size-btn {
border: none;
background: linear-gradient(180deg, #3f3166, #261c44);
color: #e9e1ff;
border-radius: 12px;
padding: 5px 9px;
min-height: 44px;
font-size: 11.5px;
font-weight: 900;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 1px;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 0 rgba(0, 0, 0, 0.4);
}
.tool-btn.tb-sm { min-width: 40px; font-size: 18px; padding: 4px 6px; }
.tool-btn.active, .size-btn.active {
color: #3d2a05;
background: linear-gradient(180deg, #fff7d6 0%, #f6d47e 55%, #dcaa42 100%);
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 0 12px rgba(255, 210, 120, 0.6);
}
.size-btn { width: 40px; padding: 0; }
.size-btn i {
display: block;
width: var(--d);
height: var(--d);
border-radius: 50%;
background: currentColor;
}
.ti { display: block; width: 26px; height: 26px; background: center / contain no-repeat; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4)); }
.ti-pen { background-image: url("img/art/icon_pen.webp"); }
.ti-fill { background-image: url("img/art/icon_fill.webp"); }
.ti-erase { background-image: url("img/art/icon_erase.webp"); }
.ti-undo { background-image: url("img/art/icon_undo.webp"); }
.ti-redo { background-image: url("img/art/icon_redo.webp"); }
.ti-clear { background-image: url("img/art/icon_clear.webp"); }
.ti-mirror { background-image: url("img/art/icon_mirror.webp"); width: 16px; height: 18px; }
.palette-wrap {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 10px;
padding: 16px 13% 18px 7%;
background: url("img/art/palette.webp") center / 100% 100% no-repeat;
filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.45));
}
.swatch-grid {
display: grid;
grid-template-columns: repeat(12, 1fr);
gap: 5px;
flex: 1 1 250px;
}
.swatch-btn {
width: 100%;
aspect-ratio: 1 / 1;
min-height: 22px;
border-radius: 50% 46% 52% 48%;
border: none;
padding: 0;
box-shadow: inset -2px -3px 0 rgba(0, 0, 0, 0.2), inset 2px 2px 0 rgba(255, 255, 255, 0.45), 0 2px 3px rgba(60, 30, 10, 0.4);
transition: transform 0.12s;
}
.swatch-btn.active {
transform: scale(1.18) translateY(-2px);
box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px #221c35, 0 4px 8px rgba(0, 0, 0, 0.4);
}
.custom-color-lbl {
display: inline-flex;
flex-direction: column;
align-items: center;
gap: 2px;
font-size: 10.5px;
font-weight: 900;
color: #3a210c;
cursor: pointer;
}
.custom-color-lbl input { width: 40px; height: 32px; border: none; padding: 0; background: none; cursor: pointer; }
@media (max-width: 400px) {
.swatch-grid { grid-template-columns: repeat(8, 1fr); }
}
.preview-stage { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.studio-preview-cv {
width: 150px;
height: 150px;
border-radius: 50%;
background: #fffdf7;
flex-shrink: 0;
box-shadow: 0 0 0 2px #6b4a12, 0 0 0 5px #e8c26a, 0 0 0 6.5px #8a5f17, 0 10px 20px rgba(0, 0, 0, 0.25);
cursor: pointer;
}
.preview-side { flex: 1 1 170px; min-width: 0; }
.preview-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.form-grid { display: flex; flex-direction: column; gap: 12px; }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field label, .field-lbl { font-size: 12px; font-weight: 900; color: var(--ink-mid); }
.inp-text, .inp-select {
width: 100%;
border: 1.5px solid #d3bf91;
border-radius: 12px;
padding: 9px 12px;
font-size: 14px;
font-family: inherit;
background: #fff;
color: var(--ink-dark);
box-shadow: inset 0 2px 3px rgba(80, 60, 20, 0.08);
}
.inp-text:focus, .inp-select:focus { outline: none; border-color: #b98c2e; box-shadow: 0 0 0 3px rgba(232, 194, 106, 0.45); }
.sr-select {
position: absolute;
width: 1px;
height: 1px;
opacity: 0;
pointer-events: none;
}
.pick-row { display: grid; gap: 6px; }
.pick-attr { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pick-size { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pick-move { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pick-link { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); }
.pick-btn {
position: relative;
border: none;
border-radius: 12px;
padding: 8px 6px;
min-height: 48px;
background: #fff;
color: var(--ink-dark);
font-size: 12px;
font-weight: 900;
line-height: 1.25;
box-shadow: 0 0 0 1.5px #dcc89a, 0 2px 0 #c7b07a;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 2px;
transition: box-shadow 0.15s, transform 0.1s;
}
.pick-btn small { font-size: 10px; font-weight: 700; color: var(--ink-soft); }
.pick-btn.on {
box-shadow: 0 0 0 2.5px #221c35, 0 0 0 5px var(--pc, #e8c26a), 0 4px 12px rgba(0, 0, 0, 0.2);
transform: translateY(-1px);
}
.pick-btn:disabled { opacity: 0.4; }
.pick-btn .jar {
width: 26px;
height: 26px;
border-radius: 6px 6px 10px 10px;
background: radial-gradient(circle at 35% 30%, var(--pc-hi), var(--pc) 70%);
box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.2), 0 0 0 1.5px rgba(0, 0, 0, 0.35);
position: relative;
}
.pick-btn .jar::before {
content: "";
position: absolute;
left: 4px; right: 4px; top: -5px;
height: 6px;
border-radius: 3px;
background: #5b4a6e;
}
.pick-btn .sil {
display: block;
border-radius: 50%;
background: radial-gradient(circle at 35% 30%, #ffd0dc, #e63956);
box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2);
}
.pick-link .pick-btn { align-items: flex-start; text-align: left; padding: 7px 9px; }
.studio-save-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 4px; }
.studio-save-actions .btn-primary { flex: 1 1 200px; }
.my-works-grid, .roster-grid, .gallery-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 12px;
margin-top: 12px;
}
.mon-card {
position: relative;
background: linear-gradient(180deg, #fffdf7, #f4e9d2);
border-radius: 14px;
padding: 10px 8px;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
gap: 4px;
box-shadow: 0 0 0 1.5px #b98c2e, 0 0 0 3px #f3dca0, 0 6px 14px rgba(60, 40, 10, 0.18);
}
.mon-card::before {
content: "";
position: absolute;
left: 8px; right: 8px; top: 8px;
height: 84px;
border-radius: 10px;
background: radial-gradient(circle at 50% 40%, var(--mc-hi, #ffe0e6), var(--mc-bg, #f6ecd8) 70%);
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.mon-card > * { position: relative; }
.mon-card.selected { box-shadow: 0 0 0 2.5px var(--accent-red), 0 0 0 5px #ffd0dc, 0 6px 16px rgba(230, 57, 86, 0.3); }
.mon-card img { width: 80px; height: 80px; object-fit: contain; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.25)); }
.mon-card-title { font-size: 13px; font-weight: 900; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mon-card-by { font-size: 11px; color: var(--ink-soft); }
.mon-card-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; font-size: 10px; font-weight: 800; }
.tag-pill { padding: 2px 7px; border-radius: 999px; background: #efe3c8; color: var(--ink-dark); }
.tag-ink    { background: #ffe0e6; color: #a4133c; }
.tag-crayon { background: #d8f3dc; color: #1b4332; }
.tag-neon   { background: #fff3b0; color: #7f4f24; }
.tag-aqua   { background: #d0ebff; color: #1864ab; }
.tag-rank { background: linear-gradient(180deg, #fff3c4, #e8b23a); color: #4a2e00; }
.mon-card-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; width: 100%; margin-top: 4px; }
.mc-ink    { --mc-hi: #ffe3ea; --mc-bg: #f9e2e2; }
.mc-crayon { --mc-hi: #e1f7e6; --mc-bg: #e4efdc; }
.mc-neon   { --mc-hi: #fff6c8; --mc-bg: #f6ecd0; }
.mc-aqua   { --mc-hi: #e0f1ff; --mc-bg: #e0e9f2; }
.attr-cycle-pill {
font-size: 12px;
font-weight: 900;
background: #2a1f45;
color: var(--gold);
padding: 5px 10px;
border-radius: 999px;
}
.attr-cycle-pill i { font-style: normal; padding: 0 3px; }
.attr-cycle-pill i.ink { color: #ff8fa3; }
.attr-cycle-pill i.crayon { color: #7ee2a8; }
.attr-cycle-pill i.neon { color: #ffd166; }
.attr-cycle-pill i.aqua { color: #8ccbff; }
.party-slots-detail { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.party-slot-box {
border-radius: 14px;
padding: 10px;
display: flex;
align-items: center;
gap: 10px;
background: #fff;
cursor: pointer;
box-shadow: 0 0 0 1.5px #dcc89a, 0 3px 8px rgba(0, 0, 0, 0.08);
}
.party-slot-box.active-slot { box-shadow: 0 0 0 2.5px var(--accent-red), 0 0 0 5px #ffd0dc, 0 4px 12px rgba(230, 57, 86, 0.25); background: #fff6f8; }
.party-slot-box .unit-medal { width: 60px; margin: 0; flex-shrink: 0; }
.ps-no { font-size: 11px; font-weight: 800; color: var(--ink-soft); }
.ps-name { font-size: 14px; font-weight: 900; }
.ps-meta { font-size: 11.5px; color: var(--ink-mid); }
.ps-link { font-size: 10.5px; color: var(--ink-soft); }
.helper-status-bar {
margin-top: 12px;
padding: 10px 12px;
border-radius: 12px;
background: #eef7ff;
border: 1.5px solid #90caf9;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 8px;
font-size: 12.5px;
}
.gallery-head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.vote-quota-badge {
background: #fff0f5;
border: 1.5px solid var(--accent-red);
color: var(--accent-red);
padding: 6px 12px;
border-radius: 999px;
font-size: 12.5px;
font-weight: 900;
}
.sub-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.sub-tab {
border: none;
background: #efe3c8;
border-radius: 999px;
padding: 8px 14px;
font-size: 12.5px;
font-weight: 900;
color: var(--ink-mid);
box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.08);
}
.sub-tab.active { background: #2a1f45; color: var(--gold-hi); box-shadow: 0 0 0 2px #e8c26a; }
.gacha-hero-top { display: flex; gap: 14px; align-items: center; }
.gacha-capsule {
flex: 0 0 76px;
height: 76px;
border-radius: 50%;
background:
linear-gradient(180deg, #ff7aa8 0 50%, #fff 50% 100%);
box-shadow: 0 0 0 2px #6b4a12, 0 0 0 4.5px #e8c26a, 0 0 0 6px #8a5f17, 0 8px 18px rgba(0, 0, 0, 0.3), inset -8px -8px 0 rgba(0, 0, 0, 0.08), inset 8px 8px 0 rgba(255, 255, 255, 0.4);
position: relative;
}
.gacha-capsule i {
position: absolute;
inset: 32px 4px;
border-radius: 4px;
background: #3a2a55;
}
.badge-gacha-mode {
display: inline-block;
background: #2a1f45;
color: var(--gold-hi);
font-size: 11px;
font-weight: 900;
padding: 3px 10px;
border-radius: 999px;
margin-bottom: 4px;
}
.gacha-btn-row, .recruit-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.gacha-recruit-box {
margin: 12px 0;
background: linear-gradient(180deg, #fff8e3, #fff1cc);
border-radius: 14px;
padding: 12px;
box-shadow: 0 0 0 1.5px #e8b23a;
}
.recruit-callout p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--ink-mid); }
.odds-box { margin-top: 10px; background: rgba(255, 255, 255, 0.6); border-radius: 12px; padding: 12px; }
.odds-title { margin: 0 0 8px; font-size: 13.5px; font-weight: 900; }
.odds-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); gap: 6px; margin-bottom: 8px; }
.odds-item { padding: 7px 10px; border-radius: 9px; background: #fff; border-left: 5px solid var(--ink-dark); display: flex; flex-direction: column; font-size: 12px; }
.odds-item.ur { border-left-color: #e63956; }
.odds-item.sr { border-left-color: #f59f00; }
.odds-item.r  { border-left-color: #2b8aeb; }
.odds-item.c  { border-left-color: #2bb673; }
.odds-notes { margin: 0; padding-left: 18px; font-size: 11.5px; color: var(--ink-mid); line-height: 1.55; }
.screen-battle {
width: 100%;
height: 100dvh;
background:
radial-gradient(ellipse at 50% 20%, rgba(255, 190, 110, 0.14), rgba(255, 190, 110, 0) 60%),
linear-gradient(180deg, #1d1436 0%, #0f0a1e 100%);
color: #fff;
display: flex;
flex-direction: column;
overflow: hidden;
user-select: none;
-webkit-user-select: none;
}
.battle-hud-top {
flex: 0 0 50px;
position: relative;
padding: 0 8px;
background: linear-gradient(180deg, #2d2150, #160f2a);
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.battle-hud-top::after {
content: "";
position: absolute;
left: 0; right: 0; bottom: -2px;
height: 2px;
background: linear-gradient(90deg, rgba(232, 194, 106, 0), #e8c26a 25%, #fff0c2 50%, #e8c26a 75%, rgba(232, 194, 106, 0));
}
.bhud-left { display: flex; align-items: center; gap: 6px; min-width: 0; }
.bhud-right { display: flex; gap: 6px; align-items: center; }
.bhud-wave {
background: linear-gradient(180deg, #fff3c4, #e8b23a);
color: #3d2a05;
border: 1px solid #6b4a12;
font-size: 11.5px;
font-weight: 900;
padding: 3px 9px;
border-radius: 8px;
white-space: nowrap;
box-shadow: 0 2px 0 #6b4a12;
}
.bhud-world {
font-size: 12px;
font-weight: 800;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 130px;
color: #efe6ff;
}
.bhud-hp-wrap { flex: 1 1 120px; max-width: 280px; display: flex; flex-direction: column; gap: 2px; }
.bhud-hp-bar {
position: relative;
height: 12px;
background: #0b0716;
border-radius: 999px;
overflow: hidden;
box-shadow: 0 0 0 1.5px #e8c26a, inset 0 2px 3px rgba(0, 0, 0, 0.6);
}
.bhud-hp-lag, .bhud-hp-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.bhud-hp-lag { background: #fff3d6; transition: width 0.9s ease-in 0.25s; }
.bhud-hp-fill {
background: linear-gradient(180deg, #a6f5b4 0%, #34c77f 50%, #1d8f57 100%);
transition: width 0.18s;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.bhud-hp-fill.mid { background: linear-gradient(180deg, #ffe7a3, #f5a300 50%, #c27c00); }
.bhud-hp-fill.low { background: linear-gradient(180deg, #ffb3c1, #e63956 50%, #a4133c); }
.bhud-hp-txt { font-size: 10.5px; font-weight: 900; text-align: right; color: #fff3d6; white-space: nowrap; }
@media (max-width: 400px) { .bhud-hp-txt { font-size: 9.5px; } .bhud-world { max-width: 84px; } }
.screen-battle.hurt .battle-canvas-frame { animation: hurtShake 0.3s; }
@keyframes hurtShake {
0%, 100% { transform: none; }
25% { transform: translate(-4px, 2px); }
50% { transform: translate(4px, -2px); }
75% { transform: translate(-2px, 1px); }
}
.battle-stamp-bar {
flex: 0 0 38px;
display: flex;
align-items: center;
gap: 5px;
overflow-x: auto;
padding: 0 8px;
background: rgba(20, 14, 38, 0.92);
}
.stamp-chip {
flex: 0 0 auto;
background: linear-gradient(180deg, #3f3166, #261c44);
border: 1px solid rgba(232, 194, 106, 0.5);
color: #fff;
border-radius: 999px;
font-size: 11.5px;
font-weight: 800;
padding: 5px 10px;
}
.battle-stage-center {
flex: 1 1 auto;
min-height: 0;
display: flex;
align-items: center;
justify-content: center;
padding: 8px 8px;
overflow: hidden;
}
.battle-canvas-frame {
position: relative;
height: 100%;
max-width: 100%;
aspect-ratio: 600 / 820;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 0 0 2px #5a3a10, 0 0 0 5px #e8c26a, 0 0 0 7px #8a5f17, 0 0 30px rgba(255, 200, 110, 0.25), 0 14px 34px rgba(0, 0, 0, 0.6);
background: #fdf8ec;
}
#battle-canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.battle-cutin {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
z-index: 10;
overflow: hidden;
background: radial-gradient(ellipse at 50% 50%, rgba(30, 14, 50, 0.6), rgba(10, 4, 20, 0.92));
--cut-col: #e63956;
--cut-hi: #ff9ebb;
}
.cutin-lines {
position: absolute;
inset: -50%;
background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, 0.0) 0deg 4deg, rgba(255, 255, 255, 0.22) 4deg 5deg, rgba(255, 255, 255, 0) 5deg 9deg);
}
.cutin-band {
position: absolute;
left: -20%;
right: -20%;
top: 36%;
height: 34%;
transform: rotate(-12deg);
background: linear-gradient(180deg, var(--cut-hi), var(--cut-col) 40%, var(--cut-col) 60%, var(--cut-hi));
box-shadow: 0 0 0 4px #fff, 0 0 40px var(--cut-col);
opacity: 0.92;
}
.battle-cutin.has-bg { background: var(--cut-bg) center / cover no-repeat; }
.battle-cutin.has-bg .cutin-lines, .battle-cutin.has-bg .cutin-band { display: none; }
.battle-cutin.has-bg.play { animation: cutBg 1.1s ease-out both; }
@keyframes cutBg { from { background-size: 135%; } to { background-size: 112%; } }
.cutin-card {
position: relative;
text-align: center;
width: 82%;
max-width: 300px;
padding: 12px 12px 14px;
border-radius: 18px;
background: linear-gradient(180deg, #fffdf6, #f6ecd8);
box-shadow: var(--frame), 0 20px 40px rgba(0, 0, 0, 0.6);
color: var(--ink-dark);
}
.cutin-kicker {
display: inline-block;
font-size: 12px;
font-weight: 900;
letter-spacing: 0.12em;
color: #fff;
background: linear-gradient(90deg, var(--cut-col), #2a1f45);
padding: 3px 12px;
border-radius: 999px;
}
.cutin-canvas { width: 180px; height: 180px; margin: 4px auto 2px; display: block; }
.cutin-title { font-size: 22px; font-weight: 900; color: var(--cut-col); -webkit-text-stroke: 1px #2a1f45; }
.cutin-sub { font-size: 12px; font-weight: 800; color: var(--ink-mid); }
.battle-cutin.play .cutin-lines { animation: cutSpin 1.2s linear; }
.battle-cutin.play .cutin-band { animation: cutBand 0.35s cubic-bezier(.2,.9,.2,1) both; }
.battle-cutin.play .cutin-card { animation: cutCard 0.45s cubic-bezier(.2,1.4,.4,1) 0.08s both; }
@keyframes cutSpin { from { transform: rotate(0deg) scale(1); } to { transform: rotate(25deg) scale(1.15); } }
@keyframes cutBand { from { transform: translateX(-120%) rotate(-12deg); } to { transform: translateX(0) rotate(-12deg); } }
@keyframes cutCard {
0% { opacity: 0; transform: translateX(80%) scale(0.6) rotate(8deg); }
100% { opacity: 1; transform: none; }
}
.battle-hud-bottom {
flex: 0 0 76px;
position: relative;
background: linear-gradient(180deg, #241a42 0%, #120c22 100%);
padding: 6px 8px;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
}
.battle-hud-bottom::before {
content: "";
position: absolute;
left: 0; right: 0; top: 0;
height: 2px;
background: linear-gradient(90deg, rgba(232, 194, 106, 0), #e8c26a 25%, #fff0c2 50%, #e8c26a 75%, rgba(232, 194, 106, 0));
}
.bhud-units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; flex: 1 1 auto; max-width: 400px; }
.bhud-u-slot {
position: relative;
border-radius: 12px;
padding: 3px 4px 4px;
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
min-width: 0;
background: linear-gradient(180deg, #33275a, #1d1536);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.bhud-u-slot.turn-now {
background: linear-gradient(180deg, #5a4520, #2c2010);
box-shadow: inset 0 0 0 1.5px #ffd166, 0 0 14px rgba(255, 210, 120, 0.6);
}
.bhud-u-slot img { width: 34px; height: 34px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5)); }
.bhud-u-slot .bu-no {
position: absolute;
left: 3px;
top: 2px;
font-size: 9px;
font-weight: 900;
color: #ffd166;
}
.ink-gauge { width: 100%; height: 6px; border-radius: 999px; background: rgba(0, 0, 0, 0.5); overflow: hidden; }
.ink-gauge i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gc, #e63956), #fff3c4); }
.bhud-u-slot.full .ink-gauge { box-shadow: 0 0 8px #ffd166; }
.bhud-u-slot.full .ink-gauge i { background: linear-gradient(90deg, #ffd166, #fff, #ffd166); }
.btn-skill-fire {
flex: 0 0 auto;
border: 1.5px solid #6b4a12;
border-radius: 14px;
padding: 10px 10px;
min-height: 52px;
max-width: 120px;
font-size: 12px;
font-weight: 900;
line-height: 1.25;
background: linear-gradient(180deg, #3f3166, #261c44);
color: #b9b0d6;
white-space: normal;
}
.btn-skill-fire.ready {
background: linear-gradient(180deg, #fff3c4 0%, #ffbe0b 45%, #fb5607 100%);
color: #2a1400;
border-color: #6b2a00;
animation: skillGlow 1.2s infinite ease-in-out;
}
.btn-skill-fire.armed {
background: linear-gradient(180deg, #ff8aa0, #e63956 50%, #a4133c);
color: #fff;
box-shadow: 0 0 22px rgba(255, 80, 120, 0.9);
}
@keyframes skillGlow {
0%, 100% { box-shadow: 0 0 8px rgba(255, 190, 11, 0.5); }
50% { box-shadow: 0 0 24px rgba(255, 190, 11, 1); }
}
.egm-modal {
position: fixed;
inset: 0;
background: rgba(10, 6, 22, 0.75);
z-index: 50;
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
animation: fadeIn 0.2s ease-out both;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.egm-modal-box {
position: relative;
background: linear-gradient(180deg, var(--paper), var(--paper-2));
border-radius: 20px;
padding: 20px 18px 18px;
width: 100%;
max-width: 440px;
max-height: 88dvh;
overflow-y: auto;
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
animation: rise 0.32s cubic-bezier(.2,.9,.3,1.2) both;
}
.replay-canvas-box {
width: 220px;
height: 220px;
margin: 10px auto;
border-radius: 16px;
background: #fff;
box-shadow: 0 0 0 1.5px #b98c2e, 0 0 0 4px #f3dca0;
}
.replay-canvas-box canvas { width: 100%; height: 100%; display: block; }
.replay-gacha-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 6px; margin: 10px 0; }
.gacha-mini-res { background: #fff; border-radius: 10px; padding: 4px; text-align: center; font-size: 10px; font-weight: 800; box-shadow: 0 0 0 1.5px #dcc89a; }
.gacha-mini-res img { width: 48px; height: 48px; object-fit: contain; }
.consent-checks { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; font-size: 13px; font-weight: 700; }
.consent-checks label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.modal-btn-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.result-box { text-align: center; overflow: hidden; }
.result-rays {
position: absolute;
inset: -40%;
pointer-events: none;
background: repeating-conic-gradient(from 0deg at 50% 32%, rgba(255, 209, 102, 0.22) 0deg 8deg, rgba(255, 209, 102, 0) 8deg 20deg);
animation: raysSpin 14s linear infinite;
}
.modal-result.lost .result-rays { display: none; }
@keyframes raysSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.result-box > *:not(.result-rays) { position: relative; }
.res-badge {
display: block;
width: min(100%, 330px);
margin: -6px auto 0;
min-height: 120px;
padding-top: 38px;
line-height: 1;
background: url("img/art/win_ribbon.webp") center top / 100% auto no-repeat;
font-size: 30px;
font-weight: 900;
padding-bottom: 6px;
color: #ffc93c;
-webkit-text-stroke: 2px #2a1f45;
paint-order: stroke fill;
text-shadow: 0 4px 0 #2a1f45, 0 0 22px rgba(255, 200, 80, 0.7);
transform: rotate(-4deg);
animation: stampIn 0.5s cubic-bezier(.2,1.5,.4,1) both;
}
.modal-result.lost .res-badge { color: #c9c3d9; text-shadow: 0 4px 0 #2a1f45; background: none; aspect-ratio: auto; padding-top: 0; }
@keyframes stampIn { from { opacity: 0; transform: scale(2.4) rotate(-12deg); } to { opacity: 1; transform: scale(1) rotate(-4deg); } }
.res-title { margin-top: 2px; }
.res-party { display: flex; justify-content: center; gap: 6px; margin: 12px 0 8px; }
.res-party .unit-medal { width: 58px; margin: 0; animation: hop 0.9s ease-in-out infinite; }
.res-party .unit-medal:nth-child(2) { animation-delay: 0.12s; }
.res-party .unit-medal:nth-child(3) { animation-delay: 0.24s; }
.res-party .unit-medal:nth-child(4) { animation-delay: 0.36s; }
.modal-result.lost .res-party .unit-medal { animation: none; filter: grayscale(0.7); }
@keyframes hop { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-8px); } }
.res-stats { display: flex; justify-content: center; gap: 8px; margin: 6px 0; flex-wrap: wrap; }
.res-stat {
min-width: 96px;
padding: 6px 10px;
border-radius: 12px;
background: #2a1f45;
color: #fff;
box-shadow: 0 0 0 1.5px #e8c26a;
}
.res-stat small { display: block; font-size: 10.5px; color: #cfc6ea; font-weight: 700; }
.res-stat b { font-size: 20px; color: var(--gold-hi); }
.res-summary { margin-top: 6px; }
.res-growth {
margin-top: 10px;
padding: 10px;
border-radius: 12px;
background: #e8f8ee;
border: 1.5px solid #2bb673;
font-size: 13px;
font-weight: 800;
color: #1b4332;
}
.modal-result .modal-btn-row { justify-content: center; }
.help-sections { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.help-sec { background: rgba(255, 255, 255, 0.7); border-left: 4px solid var(--accent-red); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; }
.help-sec p { margin: 4px 0 0; color: var(--ink-mid); line-height: 1.5; }
.settings-list { display: flex; flex-direction: column; gap: 12px; margin: 12px 0; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 800; min-height: 36px; }
.credit-note { font-size: 11.5px; color: var(--ink-soft); margin: 8px 0 0; }
.egm-toast {
position: fixed;
bottom: 76px;
left: 50%;
transform: translateX(-50%);
background: linear-gradient(180deg, #33275a, #1d1536);
color: #fffdf8;
box-shadow: 0 0 0 1.5px #e8c26a, 0 8px 24px rgba(0, 0, 0, 0.45);
padding: 10px 18px;
border-radius: 999px;
font-size: 13px;
font-weight: 800;
z-index: 80;
max-width: 92vw;
text-align: center;
animation: toastIn 0.25s ease-out both;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.egm-celebrate {
position: fixed;
inset: 0;
z-index: 70;
display: flex;
align-items: center;
justify-content: center;
background: radial-gradient(ellipse at 50% 45%, rgba(60, 36, 100, 0.75), rgba(8, 4, 18, 0.92));
overflow: hidden;
animation: fadeIn 0.2s ease-out both;
}
.cel-rays {
position: absolute;
inset: -60%;
background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 209, 102, 0.28) 0deg 7deg, rgba(255, 209, 102, 0) 7deg 18deg);
animation: raysSpin 12s linear infinite;
}
.cel-confetti i {
position: absolute;
top: -20px;
width: 9px;
height: 14px;
border-radius: 2px;
animation: fall 2.2s linear infinite;
}
.cel-confetti i:nth-child(4n+1) { background: var(--c-ink); }
.cel-confetti i:nth-child(4n+2) { background: var(--c-crayon); }
.cel-confetti i:nth-child(4n+3) { background: var(--c-neon); }
.cel-confetti i:nth-child(4n+4) { background: var(--c-aqua); }
.cel-confetti i:nth-child(1) { left: 6%; animation-delay: 0s; }
.cel-confetti i:nth-child(2) { left: 14%; animation-delay: 0.7s; }
.cel-confetti i:nth-child(3) { left: 23%; animation-delay: 0.3s; }
.cel-confetti i:nth-child(4) { left: 31%; animation-delay: 1.1s; }
.cel-confetti i:nth-child(5) { left: 40%; animation-delay: 0.5s; }
.cel-confetti i:nth-child(6) { left: 49%; animation-delay: 1.5s; }
.cel-confetti i:nth-child(7) { left: 57%; animation-delay: 0.2s; }
.cel-confetti i:nth-child(8) { left: 65%; animation-delay: 0.9s; }
.cel-confetti i:nth-child(9) { left: 74%; animation-delay: 1.3s; }
.cel-confetti i:nth-child(10) { left: 82%; animation-delay: 0.4s; }
.cel-confetti i:nth-child(11) { left: 90%; animation-delay: 1.7s; }
.cel-confetti i:nth-child(12) { left: 96%; animation-delay: 0.8s; }
@keyframes fall {
from { transform: translateY(0) rotate(0deg); }
to { transform: translateY(110vh) rotate(540deg); }
}
.cel-body {
position: relative;
text-align: center;
padding: 20px 22px;
color: #fff;
max-width: 340px;
width: 90%;
}
.cel-kicker {
font-size: 46px;
font-weight: 900;
color: #ffc93c;
-webkit-text-stroke: 3px #2a1f45;
paint-order: stroke fill;
text-shadow: 0 5px 0 #2a1f45, 0 0 30px rgba(255, 200, 80, 0.8);
animation: stampIn 0.5s cubic-bezier(.2,1.5,.4,1) both;
}
.cel-img {
display: block;
width: 190px;
height: 190px;
margin: 6px auto 4px;
object-fit: contain;
filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.5));
animation: popOut 0.7s cubic-bezier(.2,1.6,.4,1) 0.15s both, hop 1s ease-in-out 0.9s infinite;
}
@keyframes popOut { from { opacity: 0; transform: scale(0.2) rotate(-20deg); } to { opacity: 1; transform: none; } }
.cel-name { font-size: 22px; font-weight: 900; color: #fff6d8; text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7); }
.cel-sub { font-size: 13px; font-weight: 700; color: #e9e1ff; margin-top: 4px; }
.cel-btns { display: flex; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
