html, body { margin: 0; height: 100%; overflow: hidden; background: #05050d; font-family: 'Do Hyeon', system-ui, sans-serif; touch-action: none; }
h1, .overlay button, #stats, .tagline, #bosslabel, .toast, #dmglayer span { font-family: 'Orbitron', 'Do Hyeon', sans-serif; }
canvas { display: block; }
#hud { position: fixed; top: 12px; left: 12px; color: #eee; user-select: none; pointer-events: none; }
#hud .bar { width: 220px; height: 14px; background: rgba(20,20,40,.8); border-radius: 7px; overflow: hidden; margin: 4px 0; }
#hud .bar > div { height: 100%; transition: width .15s; }
#hpfill { background: linear-gradient(90deg, #e5484d, #ff7a80); }
#xpfill { background: linear-gradient(90deg, #2fa860, #55e888); }
#stats { font-size: 15px; opacity: .9; margin-top: 4px; white-space: pre; text-shadow: 0 1px 3px #000; }
#bossbar { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); width: 40%;
  height: 16px; background: rgba(20,20,40,.8); border: 1px solid #713; border-radius: 8px; overflow: hidden; }
#bossfill { height: 100%; background: linear-gradient(90deg, #c2255c, #ff5c8a); transition: width .1s; }
#bosslabel { position: fixed; top: 34px; left: 50%; transform: translateX(-50%); color: #f8a; font-size: 15px; letter-spacing: 2px; }
/* 토스트: 세로 스택 컨테이너 — 메시지가 겹치지 않음 */
#toasts { position: fixed; top: 16%; left: 50%; transform: translateX(-50%); display: flex;
  flex-direction: column; align-items: center; gap: 10px; pointer-events: none; z-index: 5; }
.toast { color: #ffd0e0; font-size: 24px; font-weight: 700; letter-spacing: 3px;
  text-shadow: 0 0 14px #f36; animation: toastfade 1.6s ease-out forwards; white-space: nowrap; }
.toast.gold { color: #ffe9a0; text-shadow: 0 0 22px #fa0, 0 0 44px #f80; font-size: 32px; }
@keyframes toastfade { 0% { opacity: 0; transform: scale(.7); } 15% { opacity: 1; transform: scale(1); }
  70% { opacity: 1; } 100% { opacity: 0; } }
#flash { position: fixed; inset: 0; pointer-events: none; opacity: 0; z-index: 4; }
/* 피격 비네트: 화면 가장자리 적색 — 불투명도는 게임 루프가 hurtT로 구동 */
#hurtfx { position: fixed; inset: 0; pointer-events: none; opacity: 0; z-index: 4;
  background: radial-gradient(ellipse at center, transparent 52%, rgba(255,30,50,.5) 100%); }
#flash.boom { background: #fff; animation: flashfade .55s ease-out forwards; }
#flash.gold { background: radial-gradient(circle, #ffd97788 0%, #ff880022 70%); animation: flashfade .6s ease-out forwards; }
@keyframes flashfade { from { opacity: .85; } to { opacity: 0; } }
#deathfx { position: fixed; inset: 0; z-index: 9; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at center, rgba(140,0,10,.35) 0%, rgba(50,0,5,.9) 100%);
  animation: deathin .5s ease-out; }
#deathfx.hidden { display: none; }
#deathfx h1 { font-size: clamp(40px, 12vw, 110px); letter-spacing: 12px; color: #ff2233;
  text-shadow: 0 0 30px #f00, 0 0 90px #900; animation: deathtitle .7s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes deathin { from { opacity: 0; } }
@keyframes deathtitle { from { transform: scale(2.6); opacity: 0; } }
#choices button { display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 12px 22px; width: min(640px, 92vw); box-sizing: border-box; }
#choices .uname { font-size: 18px; letter-spacing: 1px; }
#choices .udesc { font-size: 14px; opacity: .7; font-family: 'Do Hyeon', sans-serif; letter-spacing: 0; }
#choices .pips { display: flex; gap: 5px; margin-top: 2px; }
#choices .pip { width: 16px; height: 6px; border-radius: 3px; background: #2c3252; }
#choices .pip.on { background: #4ae; box-shadow: 0 0 6px #4ae; }
#choices .pip.next { background: #ffd977; box-shadow: 0 0 9px #fa0; animation: pipblink .7s infinite; }
@keyframes pipblink { 50% { opacity: .35; } }
#choices button.special { border-color: #fa0; background: #221a10;
  box-shadow: 0 0 20px #ff880066; }
#choices button.special .uname { color: #ffd977; text-shadow: 0 0 10px #fa0; }
#choices button.special:hover { background: #332714; border-color: #fc6; }
/* 신규 선택지: 진화(골드)와 구분 — 새 무기=청록, 새 모듈=보라 */
#choices button.new-weapon { border-color: #2fd0c8; background: #0e2422; box-shadow: 0 0 18px #22ddcc55; }
#choices button.new-weapon .uname { color: #6ff2e8; text-shadow: 0 0 10px #2fd0c8; }
#choices button.new-weapon:hover { background: #123430; border-color: #55f0e0; }
#choices button.new-module { border-color: #a561ff; background: #1c1030; box-shadow: 0 0 18px #9955ff55; }
#choices button.new-module .uname { color: #cfa6ff; text-shadow: 0 0 10px #a561ff; }
#choices button.new-module:hover { background: #271641; border-color: #c08bff; }
#lvltitle { font-size: clamp(40px, 8vw, 76px); letter-spacing: 6px; text-shadow: none;
  background: linear-gradient(180deg, #fff6c8, #ffaa00);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 24px #fa0);
  animation: levelpop .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes levelpop { from { transform: scale(.3); opacity: 0; } }
#pausebtn { position: fixed; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid #444; background: rgba(20,20,35,.7); color: #ccc; font-size: 18px; cursor: pointer; }
#stick { position: fixed; width: 110px; height: 110px; margin: -55px; border: 2px solid rgba(255,255,255,.25);
  border-radius: 50%; pointer-events: none; }
#knob { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px;
  border-radius: 50%; background: rgba(255,255,255,.3); }
#dmglayer { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
#dmglayer span { position: absolute; color: #ffe9a8; font-weight: 700; font-size: 16px;
  text-shadow: 0 1px 3px #000; animation: floatup .6s ease-out forwards; }
#dmglayer span.crit { color: #ffb340; font-size: 22px; text-shadow: 0 0 8px #f80; }
@keyframes floatup { to { transform: translateY(-46px); opacity: 0; } }
.overlay { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center;
  gap: 16px; background: rgba(5,5,15,.78); color: #fff; z-index: 10;
  overflow-y: auto; touch-action: pan-y; padding: 24px 12px; box-sizing: border-box; }
/* 내용이 화면보다 길면 중앙정렬 대신 위부터 스크롤 (auto margin 트릭)
   주의: justify-content:center를 두면 오버플로 시 위쪽이 스크롤 불가 영역으로 잘림 — auto margin만으로 중앙정렬 */
.overlay > :first-child { margin-top: auto; }
.overlay > :last-child { margin-bottom: auto; }
.hidden { display: none !important; }
.overlay button { font-size: 16px; padding: 14px 22px; min-width: 280px; border: 1px solid #555;
  border-radius: 10px; background: #1b1b28; color: #fff; cursor: pointer; }
.overlay button:hover { background: #2d2d44; border-color: #38f; box-shadow: 0 0 12px #2266ff44; }
.overlay label { font-size: 16px; opacity: .85; display: flex; gap: 10px; align-items: center; }
#tutorial { background: radial-gradient(circle at 50% 22%, rgba(13,38,64,.92), rgba(4,6,16,.96) 62%); }
#tutorial .tutgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: min(920px, 94vw); margin: 12px 0 0; text-align: left; }
.tutrow { display: flex; align-items: center; gap: 14px; min-height: 62px; padding: 11px 14px; border: 1px solid rgba(78,169,217,.2); border-radius: 10px; background: rgba(4,14,28,.68); font-size: 15px; line-height: 1.5; word-break: keep-all; overflow-wrap: break-word; }
.tutrow b { color: #ffd700; }
.tuticon { width: 30px; height: 30px; flex: none; }
.ti-enemy { background: #ff3344; border-radius: 50%; box-shadow: 0 0 10px #ff3344; }
.ti-gem { background: #55ffaa; transform: rotate(45deg) scale(.68); box-shadow: 0 0 10px #55ffaa; }
.ti-heart { background: #ff5577; transform: rotate(45deg) scale(.68); box-shadow: 0 0 10px #ff5577; }
.ti-crate { background: #ffcc3355; border: 2px solid #ffcc33; box-shadow: 0 0 10px #ffcc33aa, inset 0 0 8px #ffee88; }
.ti-bomb { background: #fff; border-radius: 50%; transform: scale(.75); outline: 3px solid #ff4422; outline-offset: 4px; box-shadow: 0 0 12px #fff; }
.ti-magnet { border: 8px solid #33ccff; border-radius: 50%; transform: scale(.75); outline: 3px solid #33ccff; outline-offset: 4px; box-shadow: 0 0 12px #33ccff; }
.ti-ship { width: 0; height: 0; border-left: 15px solid transparent; border-right: 15px solid transparent; border-bottom: 30px solid #43caff; filter: drop-shadow(0 0 7px #168cff); transform: scale(.8); }
.ti-evolve { border: 3px solid #d65cff; transform: rotate(45deg) scale(.72); box-shadow: 0 0 5px #fff, 0 0 14px #b22cff, inset 0 0 10px #7f2cff; }
.ti-organ { background: radial-gradient(circle at 35% 35%, #ff9aa8, #a20d39 70%); border-radius: 62% 38% 55% 45%; box-shadow: 0 0 12px #d72955; }
.ti-boss { background: radial-gradient(circle, #fff 0 14%, #ff4c32 18% 42%, #4d0614 46%); border: 3px solid #ff5533; border-radius: 50%; box-shadow: 0 0 14px #ff2b22; }
.tutfoot { width: min(880px, 90vw); color: #9ed9ff; font-size: 14px; line-height: 1.6; text-align: center; word-break: keep-all; }
@media (max-width: 720px) {
  #tutorial .tutgrid { grid-template-columns: 1fr; width: min(520px, 94vw); }
  .tutrow { min-height: 54px; padding: 9px 12px; font-size: 14px; }
  .tuticon { transform-origin: center; }
}
h1 { margin: 0; letter-spacing: 4px; text-shadow: 0 0 20px #08f; }
.sub { opacity: .85; font-size: 17px; text-align: center; line-height: 1.8; }
#start { background: radial-gradient(ellipse at center, rgba(5,5,25,.15) 0%, rgba(5,5,15,.8) 100%);
  transition: opacity .7s; gap: 12px; }
#start h1 { font-size: clamp(38px, 8vw, 68px); letter-spacing: 10px; text-shadow: none;
  background: linear-gradient(180deg, #bff 20%, #2288ff 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: glowpulse 2.6s ease-in-out infinite; }
#start .tagline { color: #6af; font-size: 15px; letter-spacing: 6px; margin-top: -8px; opacity: .9; }
@keyframes glowpulse {
  0%, 100% { filter: drop-shadow(0 0 10px #0066ff); }
  50% { filter: drop-shadow(0 0 32px #00ccff); }
}
#startbtn { font-size: 18px; letter-spacing: 3px; border-color: #38f;
  width: min(640px, 92vw); box-sizing: border-box; text-align: center;
  animation: btnpulse 1.8s ease-in-out infinite; }
@keyframes btnpulse {
  0%, 100% { box-shadow: 0 0 14px #2266ff55; }
  50% { box-shadow: 0 0 34px #22aaffaa; transform: scale(1.04); }
}
#briefing { background: rgba(3,5,10,.88); transition: opacity .5s; cursor: pointer; }
#brieftext { font-family: 'Share Tech Mono', Consolas, 'Courier New', monospace; white-space: pre-wrap; color: #9fe8d0;
  width: min(640px, 92vw); box-sizing: border-box; font-size: 17px; line-height: 2.0; min-height: 300px;
  text-shadow: 0 0 10px rgba(60,255,180,.35); }
#brieftext::after { content: '█'; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
#deploybtn { border-color: #f36; color: #ffd0e0; letter-spacing: 3px;
  width: min(640px, 92vw); box-sizing: border-box; text-align: center;
  animation: btnpulse 1.6s ease-in-out infinite; }
#board, #titleboard { display: flex; flex-direction: column; gap: 6px; width: min(640px, 92vw);
  max-height: 48vh; overflow-y: auto; padding-right: 4px; box-sizing: border-box;
  font-family: 'Orbitron', 'Do Hyeon', sans-serif; font-size: 15px; }
#board .brow, #titleboard .brow { display: flex; justify-content: space-between; gap: 18px; padding: 7px 14px;
  border: 1px solid #2a2a44; border-radius: 8px; background: rgba(15,15,32,.7); opacity: .85; }
/* 줄바꿈 금지 — 폭이 모자라면 우측 스탯은 지키고 이름 쪽을 말줄임 */
#board .brow span, #titleboard .brow span { white-space: nowrap; }
#board .brow span:first-child, #titleboard .brow span:first-child { overflow: hidden; text-overflow: ellipsis; }
/* 생존(클리어) 기록: 금색 톤으로 별도 표시 */
#board .brow.winrow, #titleboard .brow.winrow { border-color: #6a5526; background: rgba(40,32,12,.5); color: #ffd97e; }
#board .brow.me, #titleboard .brow.me { border-color: #fa0; color: #ffe9a0; opacity: 1;
  box-shadow: 0 0 14px #ff880044; }
#board .btitle, #titleboard .btitle { text-align: center; letter-spacing: 3px; color: #6af; font-size: 14px; margin-bottom: 2px; }
#histlist { display: flex; flex-direction: column; gap: 6px; width: min(640px, 92vw);
  max-height: 56vh; overflow-y: auto; padding-right: 4px; box-sizing: border-box;
  font-family: 'Orbitron', 'Do Hyeon', sans-serif; font-size: 15px; }
#histlist .brow { display: flex; justify-content: space-between; gap: 18px; padding: 7px 14px;
  border: 1px solid #2a2a44; border-radius: 8px; background: rgba(15,15,32,.7); opacity: .9; }
#histlist .brow span { white-space: nowrap; }
#histlist .brow span:first-child { overflow: hidden; text-overflow: ellipsis; }
#histlist .brow.winrow { border-color: #6a5526; background: rgba(40,32,12,.5); color: #ffd97e; }
#acctinfo { font-size: 14px; color: #9fb8a8; letter-spacing: 1px; opacity: .9; }
.dtabs { display: flex; gap: 6px; justify-content: center; margin-bottom: 4px; }
.dtabs button { background: none; border: 1px solid #345; color: #9ab; padding: 4px 14px;
  cursor: pointer; font: inherit; font-size: 14px; border-radius: 4px; min-width: 0; }
.dtabs button.on { border-color: #fa0; color: #ffe9a0; }
/* 데스크톱: 타이틀 랭킹을 우측 사이드 패널로 — 넓힌 폭(440px)이 중앙 콘텐츠와 안 겹치는 뷰포트부터 */
@media (min-width: 1440px) {
  #titleboard { position: absolute; right: 28px; top: 50%; transform: translateY(-50%);
    width: 440px; max-height: 70vh; }
  #ctrlhint { margin-bottom: auto; } /* last-child가 absolute로 빠져 auto 마진 트릭 승계 */
}
/* 종료 화면: 보조 버튼은 한 줄로 */
#endbtns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
#endbtns button { min-width: 0; padding: 11px 18px; font-size: 15px; }
#best { color: #ffd97e; font-size: 15px; letter-spacing: 2px;
  font-family: 'Orbitron', 'Do Hyeon', sans-serif; }
#nameinput, #endname { width: 260px; padding: 12px 16px; text-align: center; font-size: 16px;
  letter-spacing: 2px; color: #bff; background: rgba(10,15,35,.8);
  border: 1px solid #2a4a88; border-radius: 10px; outline: none;
  font-family: 'Orbitron', 'Do Hyeon', sans-serif; }
#nameinput:focus, #endname:focus { border-color: #38f; box-shadow: 0 0 14px #2266ff66; }
#nameinput::placeholder, #endname::placeholder { color: #567; letter-spacing: 1px; }
#submitrow { display: flex; gap: 8px; align-items: center; }
#submitrow input { width: 200px; padding: 10px 14px; }
#submitrow button { min-width: 0; padding: 10px 18px; font-size: 15px; border-color: #fa0; color: #ffd97e; }
#submitrow button:disabled { opacity: .5; cursor: default; box-shadow: none; }
#shiprow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; justify-content: center; width: min(640px, 92vw); box-sizing: border-box; } /* 6기체 = 3×2, 트랙 폭 통일 */
#shiprow button { display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-width: 0; width: 100%; padding: 12px 10px; border-color: #3a3f58; background: #12141f; } /* 폭은 그리드 트랙이 결정 — 좁은 폰에서 함께 줄어듦 */
#shiprow button.sel { border-color: var(--c); background: #171b2e;
  box-shadow: 0 0 16px color-mix(in srgb, var(--c) 45%, transparent); }
#shiprow button:not(.sel) .sname, #shiprow button:not(.sel) .sstat,
#shiprow button:not(.sel) .sskill { opacity: .5; }
#shiprow canvas.sprev { width: 120px; height: 80px; border-radius: 12px;
  background: radial-gradient(ellipse 62% 52% at 50% 52%, #202b4d 0%, rgba(18,20,31,0) 72%);
  filter: drop-shadow(0 0 7px color-mix(in srgb, var(--c) 65%, transparent)); }
#shiprow .sname { font-size: 18px; letter-spacing: 2px; }
#shiprow .sstat { font-size: 14px; opacity: .85; font-family: 'Do Hyeon', sans-serif; letter-spacing: 0; line-height: 1.4; }
#shiprow .sskill { font-size: 15px; color: var(--c); font-family: 'Do Hyeon', sans-serif; letter-spacing: 0; line-height: 1.4; }
#shiprow .sweap { font-size: 14px; color: #8fa0c4; font-family: 'Do Hyeon', sans-serif; letter-spacing: 0; }
#shiprow button:not(.sel) .sweap { opacity: .5; }
.minor { min-width: 0 !important; padding: 9px 18px !important; font-size: 14px !important; opacity: .85; }
#testbtn.on { border-color: #4ad !important; color: #8fe !important; opacity: 1; box-shadow: 0 0 12px #33bbff66; }
.btitle2 { color: #6af; letter-spacing: 3px; font-size: 15px; font-family: 'Orbitron', sans-serif; }
#goldview { color: #ffd97e; font-family: 'Orbitron', 'Do Hyeon', sans-serif; letter-spacing: 2px; font-size: 18px; }
#permlist { display: flex; flex-direction: column; gap: 8px; max-height: 34vh; overflow-y: auto; width: min(640px, 92vw); box-sizing: border-box; }
.permrow { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: rgba(15,15,32,.7); border: 1px solid #2a2a44; border-radius: 8px;
  padding: 9px 14px; width: 100%; box-sizing: border-box; font-size: 16px; }
.permrow .perminfo { display: flex; flex-direction: column; min-width: 180px; }
.permrow .perminfo small { color: #7283a9; font-size: 12px; }
.permrow .pips { display: grid; grid-template-columns: repeat(10, 10px); gap: 4px; }
.permrow .pip { width: 10px; height: 6px; border-radius: 3px; background: #2c3252; }
.permrow .pip.on { background: #4ae; box-shadow: 0 0 6px #4ae; }
.permrow .pip.milestone { margin-right: 3px; background: #3d456d; }
.permrow .pip.on.milestone { background: #ffd05b; box-shadow: 0 0 7px #f90; }
.permrow button { min-width: 0 !important; padding: 7px 16px !important; font-size: 14px !important; }
.permrow button:disabled { opacity: .3; cursor: default; box-shadow: none; }
#hangar { background: rgba(4,5,13,.97); }
#achlist { display: flex; flex-direction: column; gap: 6px; font-size: 16px; max-height: 34vh;
  overflow-y: auto; width: min(640px, 92vw); box-sizing: border-box; }
.achhd { text-align: center; letter-spacing: 2px; color: #6af; font-size: 14px; }
.ach { color: #8892b8; background: rgba(15,15,32,.7); border: 1px solid #2a2a44;
  border-radius: 8px; padding: 8px 14px; }
.ach.done { color: #ffd97e; border-color: #6a5526; background: rgba(40,32,12,.55); }
/* 게임오버 업적 쇼케이스: 결과창보다 먼저 새 업적을 보여준다 */
#achshowlist { display: flex; flex-direction: column; gap: 10px; width: min(640px, 92vw); box-sizing: border-box; }
.ashrow { color: #ffd97e; background: rgba(40,32,12,.6); border: 1px solid #6a5526; border-radius: 10px;
  padding: 12px 18px; font-size: 16px; letter-spacing: 1px; box-shadow: 0 0 18px #ff880033;
  animation: achpop .5s cubic-bezier(.2, 1.4, .4, 1) backwards; }
@keyframes achpop { from { transform: scale(.5) translateY(14px); opacity: 0; } }
#achshowtitle { background: linear-gradient(180deg, #fff6c8, #ffaa00);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 24px #fa0); text-shadow: none; }
#shiprow button.locked { filter: grayscale(.85) brightness(.55); }
#dmgstats { display: flex; flex-direction: column; gap: 4px; font-size: 15px; width: min(640px, 92vw); box-sizing: border-box;
  font-family: 'Orbitron', 'Do Hyeon', sans-serif; color: #9ac; }
.dmgrow { display: flex; justify-content: space-between; gap: 12px; }
/* 출격 설정 패널: 구역·난이도를 한 카드에 — 세로 난립 방지 */
#setup { display: flex; flex-direction: column; gap: 9px; border: 1px solid #232842; border-radius: 12px;
  padding: 12px 18px; background: rgba(10,12,24,.55); width: min(640px, 92vw); box-sizing: border-box; }
.setrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; }
.setlabel { font-size: 14px; color: #7a86ab; letter-spacing: 2px; min-width: 54px; text-align: right;
  font-family: 'Orbitron', 'Do Hyeon', sans-serif; }
#diffrow, #sectorrow, #moderow { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.sethint { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
#diffhint, #sectorhint, #modehint { font-size: 16px; color: #99a4c8; letter-spacing: 1px; }
#diffrow button, #sectorrow button, #moderow button { min-width: 0; padding: 8px 16px; font-size: 15px; letter-spacing: 1px;
  opacity: .55; border-color: #444; }
#diffrow button.sel, #sectorrow button.sel, #moderow button.sel { opacity: 1; border-color: var(--c); color: var(--c);
  box-shadow: 0 0 14px color-mix(in srgb, var(--c) 50%, transparent); }
#sectorrow button.locked, #moderow button.locked { opacity: .3; filter: grayscale(.8); cursor: default; }
/* 데일리: CTA 아래 슬림한 가로 카드 */
#dailycard { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center;
  border: 1px solid #6a5526; border-radius: 12px; padding: 10px 18px;
  background: rgba(40,32,12,.35); width: min(640px, 92vw); box-sizing: border-box; }
#dailyinfo { display: flex; flex-direction: column; gap: 3px; align-items: center; }
#dailycard .btitle2 { font-size: 15px; color: #ffd97e; }
#dailycard .sub { font-size: 15px; line-height: 1.5; }
#dailybtn { border-color: #fa0 !important; color: #ffd97e !important; white-space: nowrap; }
#loginbonus { font-size: 14px; color: #9a8; letter-spacing: 1px; opacity: .85; }
#pilotrow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: center; }
#ctrlhint { font-size: 16px; color: #99a4c8; opacity: .9; letter-spacing: 1px; text-align: center; }
@media (max-width: 600px) {
  #hud .bar { width: 140px; }
  #bossbar { width: 60%; }
  /* 모바일 타이틀: 기체 카드 2열, 패널 여백 축소 */
  #shiprow { gap: 8px; grid-template-columns: repeat(2, minmax(0, 210px)); } /* 모바일: 2×3 */
  #shiprow button { padding: 10px 6px; }
  #shiprow canvas.sprev { width: 104px; height: 70px; }
  #shiprow .sstat { font-size: 13px; }
  #shiprow .sskill { font-size: 14px; }
  #shiprow .sweap { font-size: 13px; }
  #choices button { min-width: min(340px, 88vw); }
  .permrow { min-width: min(360px, 90vw); }
  #achlist { min-width: min(420px, 92vw); }
  #setup { padding: 10px 10px; }
  .setlabel { min-width: 0; }
  #dailycard { padding: 10px 12px; gap: 10px; }
  #start h1 { letter-spacing: 6px; }
}
#boot { position: fixed; inset: 0; z-index: 99; display: flex; align-items: center; justify-content: center;
  background: #05050d; color: #4ad; font-family: 'Orbitron', 'Do Hyeon', sans-serif;
  letter-spacing: 4px; font-size: 16px; }
#boot span { animation: bootpulse 1.2s ease-in-out infinite; }
@keyframes bootpulse { 50% { opacity: .25; } }
