/* 레이드 화면 (철조망 너머) */
#raid { z-index: 56; }
.raid-box { max-width: 1080px; gap: 12px; }
.rd-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.rd-head h2 { margin: 2px 0 0; font-size: 1.2857rem; }
.rd-kicker { font-size: 0.7857rem; letter-spacing: .04em; color: #6aa0c8; }
.rd-time { text-align: right; flex: none; }
.rd-time small { display: block; font-size: 0.7143rem; color: var(--muted); }
.rd-time b { font-size: 1.4286rem; font-variant-numeric: tabular-nums; color: #cfe7e2; }
.rd-time b.low { color: #f0a36a; animation: rdBlink 1s steps(2) infinite; }
@keyframes rdBlink { 50% { opacity: .45; } }

/* 파티 줄 (이름표 = 아군 목표 버튼) */
.rd-party { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px; }
.rd-chip { position: relative; display: flex; gap: 8px; align-items: center; text-align: left; padding: 7px 9px; border-radius: 10px; border: 1px solid #1f4453; background: #0f1d23; color: var(--text); cursor: pointer; font: inherit; min-height: 48px; }
.rd-chip:hover { border-color: #3d7a92; }
.rd-chip.self { border-color: #3d6f86; }
.rd-chip.tgt { border-color: #8fe39a; box-shadow: 0 0 0 2px #8fe39a33; background: #11261c; }
.rd-chip.out { opacity: .5; }
.rd-av { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: #0b1418; font-weight: 800; flex: none; }
.rd-cn { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.rd-cn b { font-size: 0.9286rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-cn small { font-size: 0.7143rem; color: var(--muted); }
.rd-hp { display: block; height: 5px; border-radius: 3px; background: #22313a; overflow: hidden; }
.rd-hp > i { display: block; height: 100%; background: var(--danger); transition: width .3s; }
.rd-tag { position: absolute; top: -8px; right: 8px; font-size: 0.6429rem; font-weight: 800; background: #8fe39a; color: #0b1418; padding: 1px 6px; border-radius: 6px; }

/* 무대 */
.rd-stage { position: relative; height: 290px; container-type: inline-size; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #0d1b20, #070e11); border: 1px solid #17313a; }
.rd-stage.boss { background: linear-gradient(180deg, #1a1416, #0a0708); border-color: #3a2226; }
.rd-bg { position: absolute; inset: 0 0 50px 0; display: flex; gap: 6%; padding: 18px 4%; animation: rdDrift 40s linear infinite alternate; }
.rd-bg i { flex: 1; background: #0f2127; border: 2px solid #17313a; }
.rd-stage.boss .rd-bg i { background: #1c1316; border-color: #2c1c20; }
.rd-bg b { position: absolute; top: 0; left: 24%; width: 12%; height: 5px; background: #cfe7e2; box-shadow: 0 0 26px 8px #cfe7e233; }
.rd-bg b.flick { animation: rdFlick 5s steps(1) infinite; }
@keyframes rdFlick { 0%, 100% { opacity: 1; } 42% { opacity: .2; } 44% { opacity: 1; } 46% { opacity: .1; } 48% { opacity: 1; } }
@keyframes rdDrift { to { transform: translateX(-3%); } }
.rd-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 50px; background: #0b171bcc; border-top: 2px solid #1c3740; }
.rd-stage.shake .rd-bg, .rd-stage.shake .rd-floor { animation: rdShake .28s linear; }
@keyframes rdShake { 25% { transform: translate(-3px, 1px); } 50% { transform: translate(3px, -1px); } 75% { transform: translate(-2px, 0); } }
.rd-stage.rage { animation: rdRage .9s ease-out; }
@keyframes rdRage { 0%, 100% { box-shadow: inset 0 0 0 0 #d0574a00; } 30% { box-shadow: inset 0 0 80px 10px #d0574a88; } }

.rd-actor, .rd-enemy { position: absolute; display: flex; flex-direction: column; align-items: center; }
.rd-enemy { transform: translateX(-50%); }
.rd-actor .fig, .rd-enemy .fig { image-rendering: pixelated; display: block; }
.rd-name { font-size: 0.7143rem; font-weight: 700; margin-top: 2px; text-shadow: 0 1px 2px #000; white-space: nowrap; }
.rd-actor.me .rd-name::before { content: '▲ '; font-size: .6rem; }
.rd-bob { animation: rdBob 1.4s ease-in-out infinite; transform-origin: bottom center; }
.rd-actor:nth-child(2n) .rd-bob { animation-delay: -.5s; }
@keyframes rdBob { 50% { transform: translateY(-2px); } }
.rd-actor.fallen .rd-bob { animation: none; transform: rotate(-86deg) translate(-10px, 6px); opacity: .45; transition: transform .5s, opacity .5s; }
.rd-actor.fallen .rd-name { opacity: .5; }

/* 공격: 반 발짝만 나왔다가 돌아온다 */
.rd-actor.play-atk { animation: rdStep .7s ease-in-out; z-index: 20 !important; }
.rd-actor.w-knife.play-atk { animation-duration: .9s; }
.rd-actor.w-club.play-atk, .rd-actor.w-gun.play-atk { animation-duration: .8s; }
.rd-actor.w-gun.play-atk { animation-name: rdRecoil; }
@keyframes rdStep { 0%, 100% { transform: translateX(0); } 40% { transform: translateX(26px); } 60% { transform: translateX(26px); } }
@keyframes rdRecoil { 0%, 100% { transform: translateX(0); } 45% { transform: translateX(8px); } 58% { transform: translateX(2px); } }
.rd-actor.play-atk .arm-f { transform-box: fill-box; transform-origin: top center; animation: rdSwing .7s ease-in-out; }
.rd-actor.w-club.play-atk .arm-f { animation: rdChop .8s ease-in; }
.rd-actor.w-knife.play-atk .arm-f { animation: rdStab .9s ease-in-out; }
.rd-actor.w-gun.play-atk .arm-f { animation: rdAim .8s ease-out; }
@keyframes rdSwing { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(-80deg); } }
@keyframes rdChop { 0%, 100% { transform: rotate(0); } 35% { transform: rotate(160deg); } 55% { transform: rotate(-70deg); } }
@keyframes rdStab { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-60deg); } 42% { transform: rotate(-95deg); } 55% { transform: rotate(-60deg); } }
@keyframes rdAim { 0%, 100% { transform: rotate(0); } 25%, 75% { transform: rotate(-90deg); } 55% { transform: rotate(-100deg); } }
.rd-actor.guard .rd-bob { animation: rdGuard .7s ease-out; }
@keyframes rdGuard { 40% { transform: translateY(2px) scaleY(.94); } }
.rd-actor.breath .rd-bob { animation: rdBreath .7s ease-in-out; }
@keyframes rdBreath { 50% { transform: scale(1.06); } }
.shielded .fig { filter: drop-shadow(0 0 6px #6aa0c8) drop-shadow(0 0 2px #b9d3e6); }
.healed .fig { filter: drop-shadow(0 0 8px #8fe39a); }
.weakened .fig { filter: drop-shadow(0 0 6px #b98ad8) saturate(.5); }
.hurt .fig { animation: rdHurt .42s linear; }
@keyframes rdHurt { 0%, 40% { filter: brightness(3); transform: translateX(3px); } 70% { transform: translateX(-2px); } 100% { filter: none; transform: none; } }
.burn .fig { animation: rdBurn .7s ease-out; }
@keyframes rdBurn { 0% { filter: sepia(1) saturate(6) hue-rotate(-20deg) brightness(1.5); } 100% { filter: none; } }

/* 적 */
.rd-enemy { background: none; border: 0; padding: 0; color: var(--text); cursor: pointer; font: inherit; }
.rd-zbob { animation: rdZ 1.8s ease-in-out infinite; display: block; }
.rd-enemy:nth-child(odd) .rd-zbob { animation-delay: -.7s; }
@keyframes rdZ { 50% { transform: translateY(-1px) rotate(-2deg); } }
.rd-enemy.zatk .rd-zbob { animation: rdLunge .9s ease-in-out; }
@keyframes rdLunge { 0%, 100% { transform: none; } 40%, 55% { transform: translateX(-24px); } }
.rd-plate { display: flex; flex-direction: column; gap: 2px; width: min(150px, var(--pw, 150px)); box-sizing: border-box; padding: 5px 7px; margin-bottom: 4px; border-radius: 8px; background: #0b1418e6; border: 1px solid #1f4453; text-align: left; }
.rd-enemy.tgt .rd-plate { border-color: var(--accent2); box-shadow: 0 0 0 2px #ffb13b44; }
.rd-enemy.boss .rd-plate { border-color: #7a3a33; }
.rd-enemy.boss.tgt .rd-plate { border-color: var(--accent2); }
.rd-plate b { font-size: 0.7857rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-plate small { font-size: 0.6429rem; color: var(--muted); }
.rd-int { font-style: normal; font-size: 0.7143rem; color: #ffd08a; }
.rd-int.bite { color: #ff8a8a; }
.rd-int.aoe { color: #ff6a3d; font-weight: 700; }
.rd-int.dim { color: #8aa3ad; }

/* 효과 (누를 수 없음) */
.rd-pop { position: fixed; z-index: 70; transform: translateX(-50%); font-weight: 800; font-size: 1.2857rem; pointer-events: none; text-shadow: 0 2px 0 #000; animation: rdPop 1.1s ease-out forwards; font-family: 'Rajdhani', monospace; }
@keyframes rdPop { 0% { opacity: 0; transform: translate(-50%, 6px) scale(.8); } 15% { opacity: 1; transform: translate(-50%, -8px) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -40px); } }
.rd-tracer { position: fixed; z-index: 69; height: 2px; background: linear-gradient(90deg, #fff6cf, #f0c46a 30%, #f0c46a00); transform-origin: 0 50%; pointer-events: none; animation: rdTracer .3s ease-out forwards; }
.rd-tracer::before { content: ''; position: absolute; left: -10px; top: -8px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle, #fff6cf 0%, #f0c46a 45%, transparent 72%); }
@keyframes rdTracer { 0% { opacity: 1; } 100% { opacity: 0; } }
.rd-bub { position: fixed; z-index: 72; transform: translate(-50%, -100%); pointer-events: none; padding: 4px 10px; border-radius: 10px; background: #e8f4f8; color: #0b1418; font-weight: 800; font-size: 0.8571rem; white-space: nowrap; animation: rdBub 2.7s ease-out forwards; box-shadow: 0 2px 8px #0008; }
.rd-bub::after { content: ''; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: #e8f4f8; }
.rd-bub.hot { background: #ffd08a; }
.rd-bub.hot::after { border-top-color: #ffd08a; }
@keyframes rdBub { 0% { opacity: 0; transform: translate(-50%, -80%) scale(.7); } 10% { opacity: 1; transform: translate(-50%, -110%) scale(1.05); } 70% { opacity: 1; transform: translate(-50%, -125%); } 100% { opacity: 0; transform: translate(-50%, -150%); } }

/* 아래쪽 */
.rd-mebar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rd-cons-row { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.rd-hint { font-size: 0.7857rem; text-align: center; }
.card-c.toally { border-color: #8fe39a !important; box-shadow: 0 0 0 1px #8fe39a55 inset; }
.rd-chat { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.rd-say { padding: 5px 10px; border-radius: 999px; border: 1px solid #2a5a6e; background: #0f1d23; color: #cfe7e2; font: inherit; font-size: 0.8571rem; font-weight: 700; cursor: pointer; }
.rd-say:hover { border-color: #6aa0c8; }
.rd-say.hot { border-color: #7a5a33; color: #ffd08a; }
.rd-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.rd-foot .subtle { margin-right: auto; }
.rd-log { font-size: 0.7857rem; color: var(--muted); background: #081013; border-radius: 8px; padding: 8px 10px; max-height: 120px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.rd-result { background: #10222a; border: 1px solid #1f4453; border-radius: 8px; padding: 8px 12px; font-size: 0.9286rem; display: flex; flex-direction: column; gap: 3px; }
.rd-strip { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 0.8571rem; }
.rd-item { display: inline-block; padding: 1px 7px; margin: 2px 3px 2px 0; border-radius: 5px; background: #1c2c33; font-size: 0.7857rem; }
.rd-item.gear { background: #1f2e3e; color: #b9d3e6; }
.rd-items { margin-top: 6px; }

/* 모집 */
.rd-lobby { display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; }
.rd-panel { background: #0f1d23; border: 1px solid #1f4453; border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.rd-cons { display: flex; flex-direction: column; gap: 4px; }
.rd-con { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid #16303a; }
.rd-con .row-btns { align-items: center; gap: 6px; flex-wrap: nowrap; }
.rd-con small { display: block; }

/* 지도 */
.rd-map { position: relative; height: 260px; background: radial-gradient(ellipse at 50% 50%, #10232a, #0a1316 75%); border: 1px solid #17313a; border-radius: 12px; }
.rd-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rd-map line { stroke: #1f4453; stroke-width: .6; stroke-dasharray: 1.5 1.2; vector-effect: non-scaling-stroke; stroke-width: 2; }
.rd-map line.on { stroke: #6aa0c8; stroke-dasharray: none; }
.rd-map line.next { stroke: #3d7a92; }
.rd-node { position: absolute; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #0f1d23; border: 2px solid #1f4453; color: #5f8494; padding: 0; cursor: default; }
.rd-node.t-elite, .rd-node.t-boss { color: #d0574a; }
.rd-node.t-rest { color: #8fe39a; }
.rd-node.t-event { color: #b98ad8; }
.rd-node.t-search, .rd-node.t-lock { color: #ffd08a; }
.rd-node.t-boss { width: 48px; height: 48px; border-color: #5a2a26; }
.rd-node.done { background: #16303a; opacity: .7; }
.rd-node.here { border-color: #cfe7e2; box-shadow: 0 0 0 3px #cfe7e233; opacity: 1; }
.rd-node.can { cursor: pointer; border-color: var(--accent2); animation: rdCan 1.4s ease-in-out infinite; }
.rd-node.can:hover { transform: translate(-50%, -50%) scale(1.12); }
@keyframes rdCan { 50% { box-shadow: 0 0 0 5px #ffb13b22; } }
.rd-node:disabled { opacity: 1; }
.rd-node.done:disabled { opacity: .7; }
.rd-votes { display: inline-flex; gap: 2px; }
.rd-node .rd-votes { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); }
.rd-votes i { width: 16px; height: 16px; border-radius: 4px; display: grid; place-items: center; font-style: normal; font-size: 0.6429rem; font-weight: 800; color: #0b1418; }
.rd-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 0.7857rem; color: var(--muted); }
.rd-legend span { display: inline-flex; gap: 4px; align-items: center; }

/* 사건 · 휴식 · 정리 */
.rd-event { display: flex; flex-direction: column; gap: 12px; }
.rd-choices { display: flex; flex-direction: column; gap: 8px; }
.rd-choice { display: flex; justify-content: space-between; align-items: center; gap: 10px; text-align: left; padding: 12px 14px; border-radius: 10px; border: 1px solid #1f4453; background: #0f1d23; color: var(--text); font: inherit; cursor: pointer; }
.rd-choice:hover:not(:disabled) { border-color: var(--accent2); }
.rd-choice:disabled { opacity: .5; cursor: default; }
.rd-choice.on { border-color: var(--accent2); background: #221c10; }
.rd-choice.esc { border-color: #33607a; }
.rd-choice.deep { border-color: #7a3a33; }
.rd-choice b { display: block; }
.rd-choice small { color: var(--muted); font-size: 0.8571rem; }
.rd-record { max-height: 50vh; overflow-y: auto; }
.raid-act { border-color: #3a4a52; background: linear-gradient(90deg, #121b1f, #0f1417); }

@media (max-width: 800px) {
  .rd-lobby { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .raid-box { gap: 8px; }
  .rd-party { grid-template-columns: 1fr 1fr; gap: 4px; }
  .rd-chip { padding: 5px 6px; gap: 6px; min-height: 44px; }
  .rd-av { width: 22px; height: 22px; font-size: .75rem; }
  .rd-cn small { font-size: .65rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rd-stage { height: 230px; }
  .rd-bg i:nth-child(n+3) { display: none; }
  .rd-actor .fig { width: 76px; height: 76px; }
  .rd-enemy .fig { width: 76px; height: 76px; }
  .rd-enemy.boss .fig { width: 96px; height: 96px; }
  .rd-plate { padding: 3px 5px; }
  .rd-plate .rd-int.dim { display: none; }
  .rd-plate small { display: none; }
  .rd-name { font-size: .6rem; }
  .rd-map { height: 220px; }
  .rd-node { width: 32px; height: 32px; }
  .rd-node.t-boss { width: 40px; height: 40px; }
  .rd-log { max-height: 80px; }
  .rd-say { padding: 4px 8px; font-size: .75rem; }
  .rd-legend { gap: 8px; font-size: .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .rd-bg, .rd-bob, .rd-zbob, .rd-node.can, .rd-bg b.flick { animation: none !important; }
}

/* 전투 승리 창 */
.rd-win { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: #02060899; padding: 16px; animation: rdFade .2s ease-out; }
@keyframes rdFade { from { opacity: 0; } }
.rd-win-card { width: 100%; max-width: 420px; max-height: 86dvh; overflow-y: auto; background: #0e1b20; border: 1px solid #3d7a92; border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 10px 40px #000a; animation: rdWinPop .32s cubic-bezier(.2, .9, .3, 1.3); }
.rd-win.boss .rd-win-card { border-color: #c9a24a; background: linear-gradient(#1d1810, #0e1417); }
@keyframes rdWinPop { from { transform: scale(.85) translateY(10px); opacity: 0; } }
.rd-win-kick { font-size: .75rem; color: #6aa0c8; letter-spacing: .04em; }
.rd-win.boss .rd-win-kick { color: #e0c070; }
.rd-win-card h3 { margin: -6px 0 0; font-size: 1.6rem; color: #ffd08a; }
.rd-win-sec { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 1px solid #1f4453; }
.rd-win-sec > small { color: var(--muted); font-size: .75rem; }
.rd-win-items { display: flex; flex-wrap: wrap; gap: 6px; }
.rd-wi { display: inline-block; padding: 4px 10px; border-radius: 8px; background: #16303a; border: 1px solid #2a5a6e; font-size: .9rem; animation: rdWinItem .3s ease-out backwards; }
.rd-win-items .rd-wi:nth-child(2) { animation-delay: .08s; } .rd-win-items .rd-wi:nth-child(3) { animation-delay: .16s; } .rd-win-items .rd-wi:nth-child(n+4) { animation-delay: .24s; }
@keyframes rdWinItem { from { transform: translateY(6px); opacity: 0; } }
.rd-win-row .rd-wi { padding: 1px 7px; font-size: .78rem; margin: 2px 2px 0 0; }
.rd-win-row { font-size: .85rem; }
.rd-wi.gear { background: #1f2e3e; color: #b9d3e6; } .rd-wi.rec { background: #2a2218; color: #e0c070; }
.rd-win-gear { font-size: .9rem; color: #b9d3e6; } .rd-win-rec { font-size: .9rem; color: #e0c070; } .rd-win-broke { font-size: .9rem; color: #f1b3aa; }
.rd-win-card .btn { align-self: flex-end; min-width: 96px; }
@media (prefers-reduced-motion: reduce) { .rd-win, .rd-win-card, .rd-wi { animation: none !important; } }

/* 무기 바꾸기 */
details.wp { position: relative; display: inline-block; }
details.wp > summary { list-style: none; cursor: pointer; white-space: nowrap; }
details.wp > summary::-webkit-details-marker { display: none; }
.wp-list { position: absolute; z-index: 30; bottom: calc(100% + 6px); right: 0; min-width: 240px; max-width: 86vw; background: #0e1b20; border: 1px solid #3d7a92; border-radius: 10px; padding: 8px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 8px 24px #000a; }
.rd-strip .wp-list, .player-box .wp-list, .bt-center .wp-list { bottom: auto; top: calc(100% + 6px); left: 0; right: auto; }
.wp-cur { font-size: .85rem; padding: 2px 4px 6px; border-bottom: 1px solid #1f4453; }
.wp-cur small { display: block; color: var(--muted); font-size: .72rem; }
.wp-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; padding: 7px 9px; border-radius: 8px; border: 1px solid #1f4453; background: #0f1d23; color: var(--text); font: inherit; cursor: pointer; }
.wp-opt:hover { border-color: var(--accent2); }
.wp-opt small { color: var(--muted); font-size: .72rem; }
.wp-note { font-size: .72rem; padding: 2px 4px; }
/* 철수 제안 */
.rd-abort { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: #2a2218; border: 1px solid #7a5a33; font-size: .9rem; }
.rd-abort small { color: #cdb690; font-size: .75rem; }

.bt-wp { margin-top: 8px; }
@media (max-width: 600px) { .player-box > .bt-wp { grid-column: 1; margin-top: 4px; } }

/* 레이드 안내 (튜토리얼) */
.rd-tut { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: #020608d9; cursor: pointer; animation: rdFade .2s ease-out; }
.tut-card-box { width: 100%; max-width: 640px; max-height: calc(100dvh - 32px); overflow-y: auto; background: #0e1b20; border: 1px solid #3d7a92; border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 12px 48px #000c; cursor: default; }
.tut-card-box.fwd { animation: tutIn .28s ease-out; } .tut-card-box.back { animation: tutBack .28s ease-out; }
@keyframes tutIn { from { opacity: 0; transform: translateX(24px); } } @keyframes tutBack { from { opacity: 0; transform: translateX(-24px); } }
.tut-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tut-kick { font-size: .78rem; color: #6aa0c8; }
.tut-card-box h2 { margin: 0; font-size: 1.45rem; color: #ffd08a; }
.tut-art { display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 14px; border-radius: 12px; background: linear-gradient(180deg, #0d1b20, #081013); border: 1px solid #17313a; min-height: 120px; justify-content: center; }
.tut-text p { margin: 0 0 8px; line-height: 1.65; font-size: .95rem; }
.tut-text b { color: #cfe7e2; }
.tut-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tut-dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.tut-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: #2a5a6e; cursor: pointer; }
.tut-dots button.on { background: #ffd08a; width: 22px; border-radius: 5px; }
.tut-hint { text-align: center; font-size: .72rem; }
.tut-scene { position: relative; width: 100%; height: 140px; border-bottom: 2px solid #1c3740; }
.tut-scene.sm { height: 130px; }
.tut-fig { position: absolute; bottom: 0; } .tut-z { position: absolute; bottom: 0; } .tut-fig.inline { position: static; display: inline-block; }
.tut-fig.fallen svg { transform: rotate(-86deg); opacity: .5; }
.tut-fence { position: absolute; left: 56%; top: 8px; bottom: 0; width: 8px; background: repeating-linear-gradient(0deg, #3d6f86 0 4px, transparent 4px 10px); box-shadow: 14px 0 0 #3d6f8666, -14px 0 0 #3d6f8666; }
.tut-plate { position: absolute; top: 0; font-size: .72rem; padding: 4px 7px; border-radius: 7px; background: #0b1418; border: 1px solid #1f4453; }
.tut-plate em { font-style: normal; color: #ffd08a; }
.tut-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: center; }
.tut-arrow { color: #6aa0c8; font-weight: 800; }
.tut-item { padding: 6px 10px; border-radius: 8px; background: #16303a; border: 1px solid #2a5a6e; font-size: .85rem; }
.tut-item.big { font-size: 1rem; font-weight: 700; } .tut-item.dim { opacity: .7; border-style: dashed; } .tut-item.warn { background: #3b1c18; border-color: #d0574a; color: #f1b3aa; }
.tut-chip { display: inline-flex; gap: 6px; align-items: center; padding: 5px 9px; border-radius: 9px; border: 1px solid #1f4453; background: #0f1d23; font-size: .85rem; font-weight: 700; }
.tut-chip i { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; font-style: normal; color: #0b1418; font-size: .7rem; }
.tut-chip.tgt { border-color: #8fe39a; box-shadow: 0 0 0 2px #8fe39a33; } .tut-chip em { font-style: normal; font-size: .65rem; background: #8fe39a; color: #0b1418; padding: 0 5px; border-radius: 5px; }
.tut-card { position: relative; width: 92px; min-height: 96px; border-radius: 9px; border: 2px solid #3a5a66; background: linear-gradient(#16262d, #0f1a1f); padding: 8px 7px; display: flex; flex-direction: column; gap: 4px; font-size: .85rem; }
.tut-card.atk { border-color: #7a3a33; } .tut-card.def { border-color: #33607a; } .tut-card.skill { border-color: #5a4a7a; } .tut-card.ally { border-color: #8fe39a; }
.tut-card .c { position: absolute; top: -8px; left: -8px; width: 20px; height: 20px; border-radius: 50%; background: #ffb13b; color: #1a1406; display: grid; place-items: center; font-size: .75rem; }
.tut-card small { color: var(--muted); font-size: .72rem; }
.tut-btn { padding: 6px 12px; border-radius: 8px; border: 1px solid #2a5a6e; background: #0f1d23; font-size: .85rem; font-weight: 700; }
.tut-btn.primary { background: #ffb13b; color: #1a1406; border-color: #ffb13b; } .tut-btn.esc { border-color: #33607a; color: #b9d3e6; } .tut-btn.deep { border-color: #7a3a33; color: #f1b3aa; } .tut-btn.say { border-radius: 999px; font-size: .78rem; }
.tut-bub { padding: 4px 10px; border-radius: 10px; background: #ffd08a; color: #0b1418; font-weight: 800; font-size: .85rem; animation: rdBob 1.4s ease-in-out infinite; }
.tut-map { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.tut-node { position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 2px; color: #5f8494; }
.tut-node svg { width: 34px; height: 34px; padding: 6px; border-radius: 50%; border: 2px solid #1f4453; background: #0f1d23; box-sizing: border-box; }
.tut-node small { font-size: .68rem; color: var(--muted); }
.tut-node.t-elite, .tut-node.t-boss { color: #d0574a; } .tut-node.t-rest { color: #8fe39a; } .tut-node.t-event { color: #b98ad8; } .tut-node.t-search, .tut-node.t-lock { color: #ffd08a; }
.tut-node.can svg { border-color: var(--accent2); animation: rdCan 1.4s ease-in-out infinite; }
.tut-vote { position: absolute; top: -12px; display: flex; gap: 2px; } .tut-vote i { width: 16px; height: 16px; border-radius: 4px; font-style: normal; font-size: .6rem; font-weight: 800; color: #0b1418; display: grid; place-items: center; }
.tut-rec { font-family: 'Noto Serif KR', serif; font-size: 1.1rem; color: #e6e2d6; text-align: center; line-height: 1.6; border-left: 2px solid #3a4a52; padding-left: 12px; }
.tut-rec small { color: var(--muted); font-size: .85rem; }
.raid-tut-btn { margin-left: auto; }
.raid-tut-new { display: inline-block; margin-left: 4px; font-size: .62rem; font-weight: 800; background: #d0574a; color: #fff; padding: 0 5px; border-radius: 5px; vertical-align: middle; }
@media (max-width: 600px) {
  .tut-card-box { padding: 14px; gap: 10px; }
  .tut-card-box h2 { font-size: 1.2rem; }
  .tut-text p { font-size: .88rem; line-height: 1.6; }
  .tut-scene { height: 110px; } .tut-scene svg { width: 72px; height: 72px; }
  .tut-card { width: 80px; min-height: 86px; }
  .tut-foot .btn { padding-left: 10px; padding-right: 10px; }
}
@media (prefers-reduced-motion: reduce) { .rd-tut, .tut-card-box, .tut-bub, .tut-node.can svg { animation: none !important; } }

/* 지도: 갈 수 있는 방에 원이 퍼진다 */
.rd-node.can::before, .rd-node.can::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--accent2); pointer-events: none; animation: rdRipple 1.8s ease-out infinite; }
.rd-node.can::after { animation-delay: .9s; }
@keyframes rdRipple { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.1); opacity: 0; } }
.rd-node.can { z-index: 2; box-shadow: 0 0 12px #ffb13b66; }
.tut-node.can::before, .tut-node.can::after { content: ''; position: absolute; top: 0; left: 50%; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; border: 2px solid var(--accent2); pointer-events: none; animation: rdRipple 1.8s ease-out infinite; }
.tut-node.can::after { animation-delay: .9s; }
@media (prefers-reduced-motion: reduce) { .rd-node.can::before, .rd-node.can::after, .tut-node.can::before, .tut-node.can::after { animation: none; opacity: .5; } }

/* 단기 탐사 전투 무대 */
.rd-stage.mini { height: 180px; margin-bottom: 2px; }
.rd-stage.mini .rd-bg { inset: 0 0 38px 0; padding: 12px 4%; }
.rd-stage.mini .rd-floor { height: 38px; }
.rd-stage.mini .rd-enemy.tgt .rd-mtag { border-color: var(--accent2); color: #ffd08a; }
.rd-mtag { font-size: .68rem; padding: 1px 6px; border-radius: 6px; background: #0b1418cc; border: 1px solid #1f4453; white-space: nowrap; margin-bottom: 2px; }
.rd-enemy.dying { animation: rdDie 1.1s ease-in forwards; pointer-events: none; }
@keyframes rdDie { 0%, 55% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(8px); } }
@media (max-width: 600px) {
  .rd-stage.mini { height: 140px; }
  .rd-stage.mini .rd-actor .fig { width: 70px; height: 70px; }
  .rd-stage.mini .rd-enemy .fig { width: 66px; height: 66px; }
  .rd-mtag { font-size: .6rem; padding: 0 4px; }
}
@media (prefers-reduced-motion: reduce) { .rd-enemy.dying { animation: none; opacity: 0; } }

/* 동맹 던전 초대 알림 */
.rd-invite-pop { position: fixed; right: 18px; bottom: 18px; z-index: 65; width: min(360px, calc(100vw - 32px)); background: #1c1a12; border: 1px solid #c9a24a; border-radius: 12px; padding: 12px 14px; box-shadow: 0 10px 30px #000b; display: flex; flex-direction: column; gap: 6px; animation: rdWinPop .3s ease-out; }
.rd-ip-kick { font-size: .78rem; font-weight: 700; color: #e0c070; }
.rd-ip-main { font-size: .95rem; line-height: 1.5; }
.rd-ip-sub { font-size: .78rem; color: var(--muted); }
.rd-ip-btns { display: flex; gap: 6px; justify-content: flex-end; margin-top: 2px; }
@media (max-width: 600px) { .rd-invite-pop { left: 16px; right: 16px; bottom: 12px; width: auto; } }

.rd-cpick { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin: 4px 0; }
.rd-cpick select { flex: 1; min-width: 180px; font-size: .88rem; padding: 5px 8px; }
.rd-eta { font-size: .85rem; line-height: 1.55; padding: 8px 10px; border-radius: 8px; background: #1d2a30; border: 1px solid #2a5a6e; color: #cfe7e2; }

/* ── 혼자 진행: 조종 바꾸기 ── */
.rd-mine { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.rd-mine > .subtle { font-size: .75rem; margin-right: 2px; }
.rd-mine-b { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; min-height: 36px; border-radius: 999px; border: 1px solid #1f4453; background: #0f1d23; color: var(--text); font: inherit; font-size: .8125rem; cursor: pointer; }
.rd-mine-b i { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; font-style: normal; font-size: .7rem; font-weight: 700; color: #0b1418; }
.rd-mine-b small { font-size: .7rem; color: #8aa3ad; }
.rd-mine-b:hover:not(:disabled) { border-color: #3d7a92; }
.rd-mine-b.on { border-color: #ffd08a; background: #2a2414; cursor: default; }
.rd-mine-b.on small { color: #ffd08a; }
.rd-mine-b.out { opacity: .55; }
.rd-mine-b:focus-visible, .rd-swap:focus-visible { outline: 2px solid #ffd08a; outline-offset: 2px; }
.rd-actor.mine { cursor: pointer; }
.rd-actor.mine:hover .rd-bob { filter: brightness(1.2); }
.rd-swap { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); z-index: 5; white-space: nowrap; padding: 3px 9px; min-height: 26px; border-radius: 999px; border: 1px solid #3d7a92; background: #0f1d23e6; color: #cfe6ef; font: inherit; font-size: .72rem; font-weight: 700; cursor: pointer; }
.rd-swap.todo { border-color: #ffd08a; color: #ffd08a; animation: rdSwapPulse 1.6s ease-in-out infinite; }
.rd-swap:hover { background: #1b3441; }
@keyframes rdSwapPulse { 0%, 100% { box-shadow: 0 0 0 0 #ffd08a55; } 50% { box-shadow: 0 0 0 5px #ffd08a00; } }
@media (prefers-reduced-motion: reduce) { .rd-swap.todo { animation: none; } }
.rd-solo { margin-top: 8px; }
.rd-solo-list { display: grid; gap: 4px; margin: 6px 0; }
.rd-solo-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: #0f1d23; }
.rd-solo-row.cand { background: transparent; border: 1px dashed #1f4453; }
.rd-res { margin-top: 8px; }
.rd-res-name { display: block; margin-bottom: 4px; }
.rd-res.bad .rd-res-name { color: #ff8a8a; }
.rd-wi.broke { color: #ff8a8a; }
.rd-win.loot .rd-win-card { border-color: #5a9a6a; }
.rd-win.loot .rd-win-kick { color: #8fe39a; }
.rd-win.loot .rd-win-card h3 { font-size: 1.35rem; color: #bfe8c4; }

.rd-int.smash { color: #ff4f4f; font-weight: 700; }
.rd-int.wall { color: #9cc4e4; font-weight: 700; }
