/* 스페이스 슈터 */
.stage.ss { padding: 6px; touch-action: none; overscroll-behavior: none;
  background: radial-gradient(120% 80% at 50% 0%, #22265c 0%, #151838 55%, #0c0e24 100%); }
.stage.ss::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.6;
  background: radial-gradient(1.5px 1.5px at 12% 20%, #cfd3ff, transparent), radial-gradient(1px 1px at 30% 70%, #cfd3ff, transparent),
    radial-gradient(1.5px 1.5px at 85% 35%, #fff, transparent), radial-gradient(1px 1px at 70% 85%, #cfd3ff, transparent),
    radial-gradient(1px 1px at 92% 75%, #fff, transparent), radial-gradient(1.2px 1.2px at 6% 60%, #fff, transparent); }

.ss-main { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 18px; }
.ss-wrap { position: relative; flex: none; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px rgba(143, 150, 255, 0.25), 0 18px 50px rgba(0, 0, 0, 0.45); }
.ss-cv { display: block; touch-action: none; }

.ss-pause { position: absolute; right: 6px; top: 6px; display: grid; place-items: center; padding: 0;
  border: 1px solid rgba(143, 150, 255, 0.3); border-radius: 10px; background: rgba(20, 22, 50, 0.55); color: #cfd3ff; cursor: pointer; }
.ss-pause:hover { background: rgba(255, 255, 255, 0.12); }
.ss-pause svg { width: 50%; height: 50%; fill: currentColor; }

.ss-bomb { position: absolute; display: grid; place-items: center; padding: 0; border-radius: 50%; cursor: pointer; touch-action: none; -webkit-touch-callout: none;
  border: 2px solid rgba(255, 138, 122, 0.75); background: radial-gradient(circle at 35% 30%, rgba(255, 138, 122, 0.4), rgba(40, 20, 40, 0.7)); color: #fff;
  box-shadow: 0 0 14px rgba(255, 107, 90, 0.35); transition: transform 0.06s, opacity 0.2s; }
.ss-bomb:active { transform: scale(0.92); }
.ss-bomb svg { width: 62%; height: 62%; }
.ss-bn { position: absolute; right: -4px; top: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center;
  background: #ffc83d; color: #1c2140; font-family: var(--title); font-weight: 400; font-size: 14px; line-height: 1; }
.ss-bomb.off { opacity: 0.38; box-shadow: none; }
.ss-right .ss-bomb { position: relative; flex: none; align-self: center; margin-bottom: 4px; }
.ss-bomb.off .ss-bn { background: #8f96c8; }

/* 양옆 정보 칸 (넓은 화면에서만) */
.ss-side { display: none; width: var(--side, 200px); flex: none; color: #cfd3ff; }
.ss.wide .ss-side { display: flex; flex-direction: column; gap: 10px; }
.ss-left { align-items: stretch; }
.ss-stat { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(143, 150, 255, 0.2); border-radius: 14px; padding: 8px 12px; }
.ss-stat span { display: block; font-size: 12px; color: #a9afd6; letter-spacing: 0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-stat b { display: block; font-family: var(--title); font-weight: 400; font-size: 26px; line-height: 1.2; color: #fff; overflow: hidden; text-overflow: ellipsis; }
.ss-v-best { color: #ffd23f !important; }
.ss-pips { display: flex !important; gap: 6px; padding-top: 6px; }
.ss-pips i { flex: 1; height: 10px; border-radius: 4px; background: rgba(255, 255, 255, 0.15); }
.ss-pips i.on { background: linear-gradient(90deg, #ffc83d, #ffe27a); box-shadow: 0 0 8px rgba(255, 200, 61, 0.5); }
.ss-right h3 { margin: 4px 0 0; font-family: var(--title); font-weight: 400; font-size: 18px; color: #fff; }
.ss-right ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.35; }
.ss-ctrl li { background: rgba(255, 255, 255, 0.05); border-radius: 10px; padding: 6px 10px; }
.ss-items li { display: flex; align-items: center; gap: 8px; }
.ss-items svg { width: 24px; height: 24px; flex: none; }
.ss.touch .r-pc, .ss:not(.touch) .r-touch { display: none; }
@media (max-height: 520px) {
  .ss-side { gap: 6px !important; }
  .ss-stat { padding: 4px 10px; border-radius: 10px; }
  .ss-stat b { font-size: 20px; }
  .ss-right ul { font-size: 12px; gap: 4px; }
  .ss-ctrl li { padding: 4px 8px; }
  .ss-right h3 { font-size: 15px; }
  .ss-items svg { width: 20px; height: 20px; }
}
@media (max-height: 400px) {
  .ss-stat:nth-child(4) { display: none; }
  .ss-items { display: none !important; }
  .ss-right h3:nth-of-type(2) { display: none; }
}

/* 시작 · 끝 화면: 어두운 우주 판 */
.ss .overlay { background: rgba(10, 12, 30, 0.66); }
.ss .panel { background: linear-gradient(180deg, #232859, #181b40); color: #fff; border: 1px solid rgba(123, 108, 255, 0.45); touch-action: pan-y;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(123, 108, 255, 0.22); }
.ss .panel h2 { color: #fff; }
.ss .panel p, .ss .panel ul { color: #cfd3ff; }
.ss .panel ul { font-size: 14.5px; line-height: 1.55; }
.ss .panel li::marker { color: #ffc83d; }
.ss .panel .stats div { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(143, 150, 255, 0.18); }
.ss .panel .stats b { color: #ffd23f; }
.ss .panel .stats span { color: #a9afd6; }
.ss .panel .newbest { color: #ffd23f; }
.ss-bestline { color: #ffd23f !important; font-weight: 700; }
.ss-bestline[hidden] { display: none; }
.ss .big-btn { background: linear-gradient(135deg, #7b6cff, #4f5bea); box-shadow: 0 8px 22px rgba(123, 108, 255, 0.45); }
.ss .big-btn:hover { filter: brightness(1.08); }
.ss .sub-btn { background: rgba(255, 255, 255, 0.06); border-color: rgba(143, 150, 255, 0.25); color: #cfd3ff; text-decoration: none; cursor: pointer; }
.ss-robot { display: block; width: 190px; height: auto; margin: -6px auto 0; filter: drop-shadow(0 6px 14px rgba(123, 108, 255, 0.35)); }
.ss .ov-pause h2 { margin-bottom: 16px; }

@media (max-height: 720px) {
  .ss-robot { width: 130px; margin-top: -10px; }
  .ss .panel { padding: 14px 18px; }
  .ss .panel h2 { font-size: 27px; line-height: 1.15; }
  .ss .ov-start .panel > p { font-size: 14px; line-height: 1.45; margin-bottom: 8px; }
  .ss .panel ul { font-size: 13.5px; line-height: 1.45; margin-bottom: 10px; }
  .ss .ss-r5 { display: none; }
  .ss .big-btn { padding: 12px; font-size: 22px; }
}
@media (max-height: 600px) {
  .ss-robot { width: 100px; }
}
@media (max-height: 460px) {
  .ss-robot { display: none; }
  .ss .panel { width: min(600px, 100%); padding: 12px 18px; border-radius: 18px; }
  .ss .panel h2 { font-size: 24px; margin: 0 0 4px; }
  .ss .ov-start .panel > p:not(.ss-bestline) { display: none; }
  .ss .panel ul { font-size: 13px; line-height: 1.45; margin-bottom: 8px; }
  .ss .big-btn { font-size: 20px; padding: 10px; }
  .ss .panel .stats { margin: 8px 0 10px; }
}

/* ==ARCADEKIT== 공통 아케이드 틀(대시 · 하늘 점프 · 통통 · 피하기 · 슈터 — 고치면 다섯 곳을 같이). 게임 색 = --ak-a · --ak-a2 · --ak-logo · --ak-logo2 · --ak-card1 · --ak-card2 */
.stage .ak-ov, .ak-ov { background: radial-gradient(120% 85% at 50% 38%, rgba(8, 10, 36, 0.08), rgba(6, 8, 28, 0.74)); backdrop-filter: none; -webkit-backdrop-filter: none; padding: 12px 14px; overflow: hidden; cursor: default; }
.ak-title { position: relative; width: min(560px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; animation: ak-in 0.55s cubic-bezier(.2, 1.4, .4, 1) both; touch-action: pan-y; }
.ak-tag { font-family: var(--title); font-size: 15px; line-height: 1.2; color: #fff; padding: 6px 16px 5px; border-radius: 99px; background: linear-gradient(180deg, var(--ak-a, #6470ff), var(--ak-a2, #3e48c8));
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45); max-width: 100%; }
.ak-logo { position: relative; margin: 2px 0 0; font-family: var(--logo, var(--title)); font-weight: 400; font-size: clamp(44px, 11vw, 92px); line-height: 1.02; letter-spacing: 0.01em; word-break: keep-all;
  color: #17123f; -webkit-text-stroke: 14px #17123f; paint-order: stroke fill; text-shadow: 0 8px 0 #17123f, 0 16px 28px rgba(0, 0, 0, 0.5); transform: rotate(-2.5deg); max-width: 100%; animation: ak-logo 3.2s ease-in-out infinite; }
.ak-logo::after { content: attr(data-t); position: absolute; inset: 0; -webkit-text-stroke: 0; text-shadow: none; pointer-events: none;
  background: linear-gradient(180deg, #ffffff 0%, #fff6cf 34%, var(--ak-logo, #ffd23f) 58%, var(--ak-logo2, #ff8a3d) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ak-logo.long { font-size: clamp(34px, 8vw, 68px); }
html:not([lang='ko']) .ak-play, html:not([lang='ko']) .ak-tag, html:not([lang='ko']) .ak-end-title, html:not([lang='ko']) .ak-best, html:not([lang='ko']) .ak-ribbon, html:not([lang='ko']) .ak-tut b, html:not([lang='ko']) .ak-score b, html:not([lang='ko']) .ak-banner b { font-weight: 800; }
.ak-hero { line-height: 0; margin: -4px 0 -2px; }
.ak-hero svg { width: min(250px, 58vw); height: auto; animation: ak-bob 2.6s ease-in-out infinite; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.35)); overflow: visible; }
.ak-play { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: min(300px, 88%); max-width: 100%; padding: 15px 34px 14px; border: 0; border-radius: 22px; cursor: pointer;
  font-family: var(--title); font-size: 30px; line-height: 1.1; color: #4a2200; background: linear-gradient(180deg, #fff3a6 0%, #ffd23f 42%, #ffa91c 100%);
  box-shadow: 0 7px 0 #c46a00, 0 14px 26px rgba(0, 0, 0, 0.42), inset 0 2px 0 rgba(255, 255, 255, 0.8), inset 0 -4px 0 rgba(200, 100, 0, 0.22);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6); animation: ak-breathe 1.9s ease-in-out infinite; transition: transform 0.08s, box-shadow 0.08s; -webkit-tap-highlight-color: transparent; }
.ak-play::after { content: ''; position: absolute; top: -30%; bottom: -30%; width: 34%; left: -50%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.8), transparent); transform: skewX(-20deg); animation: ak-shine 3s ease-in-out infinite; pointer-events: none; }
.ak-play i { display: block; width: 26px; height: 26px; flex: none; }
.ak-play i svg { display: block; width: 100%; height: 100%; }
.ak-play span { min-width: 0; }
.ak-play:hover { filter: brightness(1.06); }
.ak-play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ak-play:active { transform: translateY(6px) scale(0.985); box-shadow: 0 1px 0 #c46a00, 0 4px 10px rgba(0, 0, 0, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.6); animation: none; }
.ak-play.alt { color: #fff; background: linear-gradient(180deg, #6ff0cf 0%, #1fc4a0 45%, #10967b 100%); text-shadow: 0 2px 0 rgba(0, 70, 55, 0.5);
  box-shadow: 0 7px 0 #0a6b57, 0 14px 26px rgba(0, 0, 0, 0.42), inset 0 2px 0 rgba(255, 255, 255, 0.55), inset 0 -4px 0 rgba(0, 80, 60, 0.25); animation-delay: -0.9s; }
.ak-play.alt:active { box-shadow: 0 1px 0 #0a6b57, 0 4px 10px rgba(0, 0, 0, 0.35); }
.ak-best { display: inline-flex; align-items: center; gap: 8px; padding: 5px 16px 5px 7px; border-radius: 99px; background: rgba(8, 10, 34, 0.66); color: #ffd23f; font-family: var(--title); font-size: 18px; line-height: 1.2;
  box-shadow: inset 0 0 0 2px rgba(255, 210, 63, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3); }
.ak-best[hidden] { display: none; }
.ak-best svg { width: 26px; height: 26px; flex: none; }
.ak-how { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 100%; }
.ak-how span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 6px; border-radius: 99px; background: rgba(8, 10, 34, 0.6); color: #eef0ff; font-size: 13.5px; font-weight: 700; line-height: 1.25; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.ak-how svg { width: 22px; height: 22px; flex: none; }
@media (pointer: coarse) { .ak-how .ak-pc { display: none; } }
@media (pointer: fine) { .ak-how .ak-touch { display: none; } }

/* 결과 화면 */
.ak-end { position: relative; width: min(420px, 100%); max-height: 100%; overflow: auto; padding: 16px 20px 18px; border-radius: 28px; text-align: center; color: #fff; touch-action: pan-y;
  background: linear-gradient(180deg, var(--ak-card1, #2d3274) 0%, var(--ak-card2, #171a42) 100%); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14), 0 10px 0 rgba(0, 0, 0, 0.35), 0 30px 60px rgba(0, 0, 0, 0.55); }
.ak-end.in { animation: ak-in 0.55s cubic-bezier(.2, 1.4, .4, 1) both; }
.ak-end::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 120px; border-radius: 28px 28px 0 0; pointer-events: none; background: radial-gradient(60% 100% at 50% 0%, rgba(255, 220, 120, 0.28), transparent 70%); }
.ak-medal { position: relative; isolation: isolate; width: 84px; height: 94px; margin: 0 auto -2px; }
.ak-medal svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.4)); }
.ak-end.in .ak-medal { animation: ak-medal 0.9s cubic-bezier(.2, 1.5, .4, 1) 0.15s both; }
.ak-medal.m3::after { content: ''; position: absolute; inset: -18px; z-index: -1; border-radius: 50%; background: conic-gradient(from 0deg, rgba(255, 220, 90, 0.5), transparent 12%, rgba(255, 220, 90, 0.5) 25%, transparent 37%, rgba(255, 220, 90, 0.5) 50%, transparent 62%, rgba(255, 220, 90, 0.5) 75%, transparent 87%, rgba(255, 220, 90, 0.5));
  -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%); animation: ak-spin 6s linear infinite; }
.ak-end-title { margin: 0; font-family: var(--title); font-weight: 400; font-size: 30px; line-height: 1.15; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); }
.ak-stars { display: flex; justify-content: center; align-items: flex-end; gap: 4px; margin: 4px 0 0; }
.ak-stars i { display: block; width: 52px; height: 52px; }
.ak-stars i:nth-child(2) { width: 66px; height: 66px; margin-bottom: 8px; }
.ak-stars svg { width: 100%; height: 100%; display: block; overflow: visible; }
.ak-stars .b { fill: rgba(0, 0, 0, 0.35); }
.ak-stars .f { fill: #3d4280; stroke: rgba(255, 255, 255, 0.12); stroke-width: 1; }
.ak-stars .h { stroke: transparent; stroke-width: 1.6; stroke-linecap: round; fill: none; }
.ak-stars i.on { animation: ak-star 0.55s cubic-bezier(.2, 1.8, .4, 1) both; }
.ak-stars i.on .f { fill: #ffd23f; stroke: #b8700c; stroke-width: 1.2; }
.ak-stars i.on .b { fill: #b8700c; }
.ak-stars i.on .h { stroke: #fff; }
.ak-stars i.off { animation: ak-off 0.3s ease-out both; }
.ak-score { margin: 0; line-height: 1; }
.ak-score b { font-family: var(--title); font-weight: 400; font-size: 60px; line-height: 1; color: #fff; text-shadow: 0 4px 0 rgba(0, 0, 0, 0.35), 0 0 24px rgba(255, 220, 120, 0.35); }
.ak-score small { font-family: var(--title); font-size: 20px; color: #cfd3ff; margin-left: 4px; }
.ak-score small:empty { display: none; }
.ak-ribbon { display: inline-block; margin: 6px auto 2px; padding: 6px 28px 5px; font-family: var(--title); font-size: 19px; color: #4a2200; background: linear-gradient(180deg, #fff3a6, #ffb21f);
  clip-path: polygon(0 0, 100% 0, 94% 50%, 100% 100%, 0 100%, 6% 50%); animation: ak-rib 0.6s cubic-bezier(.2, 1.6, .4, 1) both; }
.ak-ribbon[hidden] { display: none; }
.ak-end .end-msg { margin: 6px 0 8px; font-size: 14.5px; line-height: 1.4; color: #dfe2ff; }
.ak-end .end-msg:empty { display: none; }
.ak-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 6px 0 6px; }
.ak-stats div { background: rgba(0, 0, 0, 0.26); border-radius: 14px; padding: 7px 4px 6px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); min-width: 0; }
.ak-stats b { display: block; font-family: var(--title); font-weight: 400; font-size: 22px; line-height: 1.15; color: #ffd23f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ak-stats span { display: block; font-size: 11.5px; line-height: 1.25; color: #b9bee8; }
.ak-next { margin: 4px 0 10px; font-size: 14px; color: #cfd3ff; font-weight: 700; }
.ak-next[hidden] { display: none; }
.ak-end .ak-play { width: 100%; min-width: 0; font-size: 26px; padding: 13px 20px 12px; }
.ak-link { display: inline-block; margin-top: 12px; font-size: 13.5px; color: #b9bee8; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; cursor: pointer; padding: 2px 6px; }
.ak-link:hover { color: #fff; }
.ak-keyhint { margin: 8px 0 0; font-size: 12.5px; color: #9aa0d0; }
@media (pointer: coarse) { .ak-keyhint { display: none; } }

/* 멈춤 단추 (게임 화면 오른쪽 위 — 다섯 게임 같은 모양) */
.ak-pause { position: absolute; top: 8px; right: 8px; z-index: 5; width: 42px; height: 42px; border-radius: 14px; border: 0; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 5px;
  background: linear-gradient(180deg, rgba(44, 40, 104, 0.94), rgba(20, 16, 56, 0.94)); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35), inset 0 0 0 1.5px rgba(255, 255, 255, 0.18), inset 0 10px 10px -8px rgba(255, 255, 255, 0.2); }
.ak-pause i { display: block; width: 5px; height: 16px; border-radius: 3px; background: #eef0ff; }
.ak-pause:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35), inset 0 0 0 1.5px rgba(255, 255, 255, 0.18); }
.ak-pause:focus-visible { outline: 3px solid #3ee0b5; outline-offset: 2px; }
.ak-pause[hidden] { display: none; }
/* 멈춤 판 */
.ak-pausecard { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px 26px; border-radius: 26px; background: linear-gradient(180deg, var(--ak-card1, #2d3274), var(--ak-card2, #171a42));
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14), 0 10px 0 rgba(0, 0, 0, 0.35), 0 30px 60px rgba(0, 0, 0, 0.55); animation: ak-in 0.4s cubic-bezier(.2, 1.4, .4, 1) both; max-width: 100%; }
.ak-pausecard h2 { margin: 0; font-family: var(--title); font-weight: 400; font-size: 34px; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.35); }

/* 가운데 알림 띠 */
.ak-banner { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); z-index: 4; pointer-events: none; text-align: center; white-space: nowrap; opacity: 0;
  padding: 9px 26px 7px; border-radius: 18px; background: linear-gradient(135deg, rgba(100, 112, 255, 0.95), rgba(68, 80, 220, 0.95)); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(255, 255, 255, 0.5); max-width: calc(100% - 24px); }
.ak-banner b { display: block; font-family: var(--title); font-weight: 400; font-size: 36px; line-height: 1.12; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); overflow: hidden; text-overflow: ellipsis; }
.ak-banner span { display: block; font-family: var(--title); font-size: 17px; color: #e6e8ff; }
.ak-banner span:empty { display: none; }
.ak-banner.gold { background: linear-gradient(135deg, rgba(255, 200, 61, 0.97), rgba(255, 140, 70, 0.95)); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45), 0 0 0 3px #fff, 0 0 50px rgba(255, 200, 61, 0.7); }
.ak-banner.gold b { text-shadow: 0 3px 0 #c2410c, 0 0 18px rgba(255, 255, 255, 0.6); }
.ak-banner.gold span { color: #3a2400; }
.ak-banner.mint { background: linear-gradient(135deg, rgba(23, 179, 155, 0.96), rgba(15, 143, 124, 0.95)); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45), 0 0 0 2px #fff; }
.ak-banner.coral { background: linear-gradient(135deg, rgba(255, 107, 90, 0.95), rgba(210, 70, 80, 0.95)); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(255, 255, 255, 0.7); }
.ak-banner.small { padding: 5px 18px 4px; background: rgba(20, 22, 58, 0.9); box-shadow: 0 0 0 1.5px rgba(143, 150, 255, 0.6), 0 10px 24px rgba(0, 0, 0, 0.4); }
.ak-banner.small b { font-size: 24px; }
.ak-banner.show { animation: ak-banner 1.6s ease-out both; }
@keyframes ak-banner {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  12% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
  20% { transform: translate(-50%, -50%) scale(1); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -70%) scale(1); }
}

/* 처음 안내 손가락 */
.ak-tut { position: absolute; z-index: 8; pointer-events: none; width: 0; height: 0; animation: ak-fade 0.3s ease-out both; }
.ak-tut.out { animation: ak-fadeout 0.3s ease-in both; }
.ak-tut .ak-hand { position: absolute; left: -19px; top: -4px; width: 54px; transform-origin: 19px 4px; animation: ak-drag 2.2s ease-in-out infinite; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.45)); }
.ak-tut .ak-hand svg { display: block; width: 100%; height: auto; }
.ak-tut .ak-dot { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; box-sizing: border-box; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 12px rgba(255, 255, 255, 0.7); animation: ak-tap 2.2s ease-out infinite; }
.ak-tut .ak-trail { position: absolute; left: 0; top: 0; overflow: visible; }
.ak-tut .ak-trail path { fill: none; stroke: rgba(255, 255, 255, 0.85); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 2 12; animation: ak-dash 0.6s linear infinite; filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.6)); }
.ak-tut b { position: absolute; transform: translate(-50%, 0); white-space: nowrap; font-family: var(--title); font-weight: 400; font-size: 20px; line-height: 1.2; color: #fff; padding: 7px 15px 6px; border-radius: 14px;
  background: rgba(12, 14, 44, 0.88); box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 0 2px rgba(255, 255, 255, 0.18); animation: ak-bobc 1.6s ease-in-out infinite; }
.ak-tut.tap .ak-hand { animation-name: ak-tapHand; animation-duration: 0.9s; }
.ak-tut.tap .ak-dot { animation-duration: 0.9s; }
.ak-tut.hold .ak-hand { animation-name: ak-holdHand; }

@keyframes ak-in { 0% { opacity: 0; transform: translateY(24px) scale(0.92); } 100% { opacity: 1; transform: none; } }
@keyframes ak-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes ak-bobc { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -5px); } }
@keyframes ak-logo { 0%, 100% { transform: rotate(-2.5deg) scale(1); } 50% { transform: rotate(-1.5deg) scale(1.025); } }
@keyframes ak-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.045); } }
@keyframes ak-shine { 0%, 55% { left: -50%; } 85%, 100% { left: 130%; } }
@keyframes ak-medal { 0% { opacity: 0; transform: translateY(-40px) scale(0.4) rotate(-30deg); } 100% { opacity: 1; transform: none; } }
@keyframes ak-spin { to { transform: rotate(360deg); } }
@keyframes ak-star { 0% { transform: scale(2.4) rotate(-40deg); opacity: 0; } 60% { transform: scale(0.88) rotate(6deg); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes ak-off { 0% { transform: scale(1.2); opacity: 0.3; } 100% { transform: none; opacity: 1; } }
@keyframes ak-rib { 0% { transform: scale(0.3) rotate(-8deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes ak-fade { from { opacity: 0; } }
@keyframes ak-fadeout { to { opacity: 0; } }
@keyframes ak-dash { to { stroke-dashoffset: -14; } }
@keyframes ak-drag {
  0% { transform: translate(0, 0) scale(1.12); opacity: 0; } 10% { transform: translate(0, 0) scale(1.12); opacity: 1; } 20% { transform: translate(0, 0) scale(0.92); }
  62% { transform: translate(var(--dx), var(--dy)) scale(0.92); opacity: 1; } 72% { transform: translate(var(--dx), var(--dy)) scale(1.12); opacity: 1; } 88%, 100% { transform: translate(var(--dx), var(--dy)) scale(1.12); opacity: 0; } }
@keyframes ak-tapHand { 0%, 100% { transform: scale(1.1); } 30% { transform: scale(0.88); } 55% { transform: scale(1.1); } }
@keyframes ak-holdHand { 0%, 100% { transform: scale(1.1); } 15%, 70% { transform: scale(0.88); } 85% { transform: scale(1.1); } }
@keyframes ak-tap { 0%, 14% { transform: scale(0.3); opacity: 0; } 22% { transform: scale(0.6); opacity: 1; } 50% { transform: scale(1.6); opacity: 0; } 100% { opacity: 0; } }

@media (max-height: 640px) {
  .ak-title { gap: 7px; }
  .ak-hero svg { width: min(170px, 46vw); }
  .ak-logo { font-size: clamp(36px, 9vw, 64px); -webkit-text-stroke-width: 11px; }
  .ak-play { font-size: 25px; padding: 11px 26px 10px; }
  .ak-medal { width: 64px; height: 72px; }
  .ak-score b { font-size: 46px; }
  .ak-stars i { width: 40px; height: 40px; } .ak-stars i:nth-child(2) { width: 50px; height: 50px; }
}
@media (max-height: 460px) {
  .ak-hero { display: none; }
  .ak-how { display: none; }
  .ak-medal { display: none; }
  .ak-end { padding: 10px 16px 12px; }
  .ak-end .end-msg { display: none; }
  .ak-banner b { font-size: 26px; }
}
@media (max-width: 380px) { .ak-banner b { font-size: 28px; } .ak-play { font-size: 26px; padding: 13px 24px 12px; } }
@media (prefers-reduced-motion: reduce) { .ak-play, .ak-play::after, .ak-hero svg, .ak-medal.m3::after, .ak-logo { animation: none; } }
/* ==/ARCADEKIT== */

/* 슈터 색 (공통 틀 위에) */
.stage.ss { --ak-a: #ff8a3d; --ak-a2: #d8432f; --ak-logo: #ffe27a; --ak-logo2: #ff6b5a; --ak-card1: #2c2f78; --ak-card2: #12143a; }
.ss .ak-hero svg.ss-robot { width: min(260px, 62vw); margin: 0 auto; }
.ss-pause { border: 0; border-radius: 12px; background: linear-gradient(180deg, rgba(44, 40, 104, 0.94), rgba(20, 16, 56, 0.94)); color: #eef0ff;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35), inset 0 0 0 1.5px rgba(255, 255, 255, 0.18), inset 0 10px 10px -8px rgba(255, 255, 255, 0.2); }
.ss-pause:active { transform: translateY(2px); }
/* 양옆 칸: 아케이드 계기판 */
.ss-stat { position: relative; border: 0; border-radius: 16px; padding: 8px 14px 8px 16px; overflow: hidden;
  background: linear-gradient(180deg, rgba(44, 40, 104, 0.92), rgba(20, 16, 56, 0.92)); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35), inset 0 0 0 1.5px rgba(255, 255, 255, 0.14), inset 0 12px 12px -10px rgba(255, 255, 255, 0.18); }
.ss-stat::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: linear-gradient(180deg, #ffe27a, #ff8a3d); }
.ss-stat:nth-child(2)::before { background: linear-gradient(180deg, #ffd23f, #e8a317); }
.ss-stat:nth-child(3)::before { background: linear-gradient(180deg, #5ff2d6, #17b39b); }
.ss-stat:nth-child(4)::before { background: linear-gradient(180deg, #ff8a7a, #ff3d6e); }
.ss-stat:nth-child(5)::before { background: linear-gradient(180deg, #9b8cff, #5b4ad6); }
.ss-stat b { font-size: 28px; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35); }
.ss-right h3 { font-size: 19px; letter-spacing: 0.02em; color: #ffe27a; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35); }
.ss-ctrl li { background: linear-gradient(180deg, rgba(44, 40, 104, 0.7), rgba(20, 16, 56, 0.7)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); border-radius: 12px; }
.ss-items li { padding: 4px 8px; border-radius: 12px; background: rgba(8, 10, 34, 0.45); }
.ss:has(.ov-start:not([hidden])) .ss-side { visibility: hidden; }
.ss:has(.ov-start:not([hidden])) .ss-pause, .ss:has(.ov-start:not([hidden])) .ss-bomb { visibility: hidden; }
