.sc-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.sc-logo-wrap { position: absolute; left: 8%; width: 84%; top: 5%; height: 30%; display: flex; align-items: center; justify-content: center; pointer-events: none; animation: dropIn 0.7s cubic-bezier(0.34, 1.8, 0.64, 1) both; }
.sc-logo-float { position: relative; max-width: 100%; max-height: 100%; animation: scFloat 3.2s ease-in-out infinite; display: flex; }
.sc-logo { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.sc-shine { position: absolute; inset: 0; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center;
  background: linear-gradient(110deg, transparent 38%, rgba(255,255,255,0.95) 50%, transparent 62%) 150% 0 / 250% 100% no-repeat; animation: scShine 3s ease-in-out infinite; }
@keyframes scShine { 0% { background-position: 150% 0; } 60%, 100% { background-position: -50% 0; } }
@keyframes scFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-0.5rem); } }
.sc-start { position: absolute; left: 12%; right: 12%; bottom: 12%; text-align: center; font-size: 1.5rem; animation: scPulse 1.4s ease-in-out infinite; pointer-events: none; }
@keyframes scPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: 0.8; } }
.sc-trophy { position: absolute; top: 0.75rem; right: 0.75rem; }

.sc-hud { position: absolute; top: 0.75rem; left: 0.75rem; display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-start; pointer-events: none; }
.sc-hud > * { pointer-events: auto; }
.sc-rank { min-width: 8rem; max-width: 10rem; padding: 0.3rem 0.6rem; border-radius: 1rem; background: rgba(90,61,122,0.55); border: 0.15rem solid rgba(255,255,255,0.7); display: flex; flex-direction: column; gap: 0.15rem; }
.sc-rank .nm { font-size: 1rem; font-weight: 900; text-shadow: var(--outline); }
.sc-rank .pt { font-size: 0.85rem; color: #fff; font-weight: 800; text-shadow: var(--outline); }
.sc-bar { height: 0.55rem; border-radius: 0.3rem; background: rgba(255,255,255,0.35); overflow: hidden; }
.sc-bar > i { display: block; height: 100%; background: var(--gold); border-radius: 0.3rem; transition: width 0.4s; }
.sc-plate { position: absolute; top: 9.5rem; left: 50%; transform: translateX(-50%); text-align: center; pointer-events: none; display: flex; flex-direction: column; align-items: center; gap: 0.1rem; }
.sc-plate .nm { font-size: 1.2rem; }
.sc-hearts { font-size: 1.1rem; letter-spacing: 0.1rem; color: var(--rose); text-shadow: var(--outline); }
.sc-hearts .off { color: rgba(255,255,255,0.7); }
.sc-bubble { position: absolute; left: 0; right: 0; margin: 0 auto; width: max-content; max-width: 90%; top: 14rem; background: #fff; color: var(--ink); border: 0.15rem solid var(--ink); border-radius: 1rem; padding: 0.35rem 0.8rem; font-weight: 800; font-size: 0.95rem; animation: scPulse 1.6s infinite; pointer-events: none; white-space: nowrap; }
.sc-treat { position: absolute; right: 0.75rem; top: 5rem; width: 3.4rem; height: 3.4rem; padding: 0; }
.sc-treat img { width: 100%; height: 100%; object-fit: contain; }
.sc-treat b { position: absolute; right: -0.2rem; bottom: -0.2rem; font-size: 0.9rem; color: #fff; text-shadow: var(--outline); }
.sc-heart-fx { position: absolute; font-size: 1.6rem; color: var(--rose); text-shadow: var(--outline); pointer-events: none; animation: scHeart 1s ease-out forwards; z-index: 30; }
@keyframes scHeart { from { transform: translate(-50%, 0) scale(0.5); opacity: 1; } to { transform: translate(-50%, -4.5rem) scale(1.3); opacity: 0; } }

.sc-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 0.9rem 1.2rem; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; pointer-events: none; }
.sc-bottom > * { pointer-events: auto; }
.sc-team { display: flex; gap: 0.7rem; align-items: flex-start; justify-content: center; }
.sc-slot { width: 3.6rem; display: flex; flex-direction: column; align-items: center; }
.sc-port { width: 3.4rem; height: 3.4rem; border-radius: 50%; border: 0.18rem solid var(--lav); background: #fff8ee center / 88% no-repeat; background-clip: padding-box; box-shadow: 0 0.15rem 0 rgba(90,61,122,0.4); cursor: pointer; position: relative; padding: 0; }
.sc-port.R { border-color: var(--mint); } .sc-port.SR { border-color: var(--lav); } .sc-port.SSR { border-color: var(--gold); }
.sc-port.empty { border-style: dashed; background: rgba(255,255,255,0.4); }
.sc-bonds { font-size: 0.85rem; text-align: center; min-height: 1.1rem; }
.sc-main { width: 100%; max-width: 20rem; }
.sc-row { display: flex; gap: 0.5rem; width: 100%; justify-content: center; }
.sc-row .btn { flex: 1; min-width: 0; padding: 0 0.3rem; font-size: 1rem; }
.sc-badge { position: absolute; top: -0.5rem; right: -0.3rem; min-width: 1.4rem; height: 1.4rem; border-radius: 0.7rem; background: #ff4d6d; color: #fff; font-size: 0.85rem; font-weight: 900; display: flex; align-items: center; justify-content: center; border: 0.12rem solid #fff; padding: 0 0.25rem; }
.sc-bounce { animation: scBounce 0.8s infinite; }
@keyframes scBounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-0.5rem); } 60% { transform: translateY(0); } }
.sc-firsthint { font-size: 0.95rem; text-align: center; pointer-events: none; }

.sc-top { position: absolute; top: 0.75rem; left: 0.75rem; right: 4.75rem; display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-start; pointer-events: none; }
.sc-top > * { pointer-events: auto; }
.sc-top .btn { min-height: 2.9rem; font-size: 0.95rem; }
.sc-title { position: absolute; top: 4.4rem; left: 0; right: 0; text-align: center; font-size: 1.6rem; pointer-events: none; }
.sc-sheet { position: absolute; left: 0.5rem; right: 0.5rem; bottom: 0.5rem; display: flex; flex-direction: column; gap: 0.5rem; align-items: center; max-height: 46%; overflow-y: auto; touch-action: pan-y; }
.sc-eggs { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; width: 100%; }
.sc-egg { position: relative; display: flex; flex-direction: column; align-items: center; width: 6rem; padding: 0.3rem; border: 0.15rem solid var(--lav); border-radius: 0.9rem; background: #fff8ee; color: var(--ink); font-weight: 800; font-size: 0.85rem; cursor: pointer; line-height: 1.15; min-height: 4.5rem; }
.sc-egg img { width: 2.6rem; height: 2.6rem; object-fit: contain; }
.sc-egg.focus, .sc-egg:hover { box-shadow: 0 0 0.5rem 0.1rem #ffe27a; transform: scale(1.05); }
.sc-egg:active { transform: scale(0.92); }
.sc-egg b { font-size: 1rem; }
.sc-buy { display: flex; gap: 0.5rem; width: 100%; justify-content: center; flex-wrap: wrap; }
.sc-buy .btn { font-size: 0.9rem; padding: 0 0.4rem; }
.sc-price { display: inline-flex; align-items: center; gap: 0.2rem; }
.sc-price img { width: 1.3rem; height: 1.3rem; }
.sc-link { background: rgba(185, 163, 255, 0.25); border: 0.12rem solid var(--lav); border-radius: 0.8rem; padding: 0 1rem; font-family: var(--font); font-size: 0.85rem; color: var(--ink); font-weight: 800; min-height: 2.9rem; min-width: 2.9rem; cursor: pointer; margin-top: 0.3rem; }
.sc-link.focus, .sc-link:hover { background: rgba(255, 226, 122, 0.45); }
.sc-link:active { transform: scale(0.94); }
#ui button { font-family: var(--font); }
.sc-prompt { position: absolute; left: 0; right: 0; bottom: 14%; text-align: center; font-size: 1.3rem; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; pointer-events: none; }
.sc-thermo { width: 11rem; height: 1rem; border-radius: 0.5rem; background: rgba(255,255,255,0.5); border: 0.15rem solid #fff; overflow: hidden; }
.sc-thermo > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffd36e, #ff8fab); transition: width 0.25s; }
.sc-card { position: absolute; left: 0.8rem; right: 0.8rem; bottom: 0.8rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; color: var(--ink); }
.sc-stars { font-size: 1.5rem; color: var(--gold); text-shadow: var(--outline); letter-spacing: 0.1rem; }
.sc-name { font-size: 1.4rem; }
.sc-tags { display: flex; gap: 0.6rem; align-items: center; justify-content: center; flex-wrap: wrap; font-weight: 800; font-size: 0.9rem; }
.sc-tags span { display: inline-flex; align-items: center; gap: 0.2rem; }
.sc-tags img { width: 1.5rem; height: 1.5rem; object-fit: contain; }
.sc-ribbon { background: #ff4d6d; color: #fff; padding: 0.1rem 0.9rem; border-radius: 0.8rem; font-weight: 900; font-size: 1.05rem; text-shadow: var(--outline); transform: rotate(-3deg); }
.sc-skill { font-size: 0.9rem; font-weight: 700; }
.sc-btns { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; width: 100%; }

.sc-cwrap { position: absolute; inset: 0; background: rgba(255,248,238,0.78); display: flex; flex-direction: column; padding: 0.75rem; gap: 0.5rem; }
.sc-chead { display: flex; align-items: center; gap: 0.6rem; padding-right: 4.2rem; min-height: 2.9rem; }
.sc-chead .t { font-size: 1.3rem; flex: 1; text-align: left; }
.sc-tbar { display: flex; gap: 0.6rem; align-items: center; }
.sc-tbar .bl { flex: 1; font-size: 0.8rem; line-height: 1.25; font-weight: 800; }
.sc-hint { font-size: 0.8rem; font-weight: 700; opacity: 0.85; }
.sc-grid { flex: 1; overflow-y: auto; touch-action: pan-y; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; align-content: start; padding: 0.3rem 0.2rem 1rem; }
.sc-pc { position: relative; border: 0.2rem solid var(--mint); border-radius: 1rem; background: #fff; padding: 0.3rem 0.2rem; display: flex; flex-direction: column; align-items: center; gap: 0.05rem; font-weight: 800; font-size: 0.85rem; color: var(--ink); cursor: pointer; min-height: 7.5rem; box-shadow: 0 0.2rem 0 rgba(90,61,122,0.3); font-family: var(--font); }
.sc-pc.R { border-color: var(--mint); } .sc-pc.SR { border-color: var(--lav); } .sc-pc.SSR { border-color: var(--gold); background: #fff6d8; }
.sc-pc img.p { width: 4.6rem; height: 4.6rem; object-fit: contain; }
.sc-pc.lock img.p { filter: brightness(0) opacity(0.35); }
.sc-pc.focus { transform: scale(1.05); box-shadow: 0 0 0.6rem #ffe27a; }
.sc-pc:active { transform: scale(0.94); }
.sc-pc .ic { display: flex; gap: 0.15rem; } .sc-pc .ic img { width: 1.2rem; height: 1.2rem; }
.sc-pc .tm { position: absolute; top: 0.1rem; left: 0.1rem; background: var(--rose); color: #fff; font-size: 0.8rem; padding: 0 0.35rem; border-radius: 0.6rem; }
.sc-pc .pt { position: absolute; top: 0.1rem; right: 0.2rem; color: var(--rose); font-size: 1rem; }
.sc-pc .st { color: #e6a800; font-size: 0.85rem; min-height: 1rem; }
.sc-detail { position: absolute; left: 0.4rem; right: 0.4rem; bottom: 0.4rem; height: 56%; display: flex; flex-direction: column; gap: 0.35rem; color: var(--ink); overflow-y: auto; touch-action: pan-y; }
.sc-dh { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.sc-dh .nm { font-size: 1.25rem; font-weight: 900; }
.sc-stat { display: grid; grid-template-columns: 2.6rem 1fr 2.6rem; align-items: center; gap: 0.4rem; font-size: 0.9rem; font-weight: 800; }
.sc-stat .sc-bar { height: 0.7rem; background: rgba(90,61,122,0.2); }
.sc-stat .sc-bar > i { background: var(--mint); }
.sc-stat.atk .sc-bar > i { background: var(--rose); } .sc-stat.def .sc-bar > i { background: var(--sky); } .sc-stat.spd .sc-bar > i { background: var(--gold); }
.sc-stat b { text-align: right; }
.sc-dbtns { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.sc-dbtns .btn { flex: 1; min-width: 7rem; font-size: 0.95rem; padding: 0 0.3rem; }

.sc-help { position: fixed; inset: 0; z-index: 10000; background: rgba(60,40,90,0.6); display: flex; align-items: center; justify-content: center; font-size: calc(100vw / 24); }
@media (min-aspect-ratio: 9/16) { .sc-help { font-size: calc(56.25vh / 24); } }
.sc-hbox { width: 21rem; max-width: 94vw; max-height: 92vh; overflow-y: auto; display: flex; flex-direction: column; gap: 0.6rem; color: var(--ink); align-items: center; }
.sc-hl { display: flex; gap: 0.5rem; align-items: center; font-weight: 800; font-size: 0.95rem; line-height: 1.3; text-align: left; }
.sc-hl .ic { display: flex; flex-direction: column; gap: 0.1rem; width: 2.2rem; flex: none; align-items: center; font-size: 1.5rem; }
.sc-hl .ic img { width: 1.6rem; height: 1.6rem; object-fit: contain; }
