/* 🕹️ 뿅뿅오락실 장소 (도련 11-01 · js/arcroom.js) : 💻 📲 만 · 그림 1672 × 941 화면 꽉 · 오락기 화면마다 게임 */
.aro-room { position: fixed; inset: 0; z-index: 1500; display: none; overflow: hidden; background: #f7c9d6; font-family: inherit; }
.aro-room.show { display: block; animation: crIn .25s ease both; }
.aro-room button { font-family: inherit; cursor: pointer; }
body.arc-on .desk-top-r { display: none; }
.aro-stage { position: absolute; left: 0; top: 0; width: 1672px; height: 941px; transform-origin: 0 0; }
.aro-bg { position: absolute; inset: 0; width: 1672px; height: 941px; pointer-events: none; user-select: none; }
.aro-go { position: absolute; right: 18px; top: 14px; z-index: 2; transform: scale(1.15); transform-origin: 100% 0; }

/* 오락기 화면 (200 × 150 → 화면 네 모서리) */
.aro-scr { position: absolute; left: 0; top: 0; width: 200px; height: 150px; padding: 0; border: 0; transform-origin: 0 0; overflow: hidden; border-radius: 8px;
    background: radial-gradient(ellipse at 50% 42%, color-mix(in srgb, var(--c) 60%, #2a1438), #1c0f2a 86%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, .65); animation: aroFlick 5s ease-in-out infinite; }
.aro-scr::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(transparent 0 3px, rgba(0, 0, 0, .2) 3px 4px); pointer-events: none; }   /* 옛날 화면 가로줄 */
.aro-scr::after { content: ''; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, .22), transparent 42%); pointer-events: none; }   /* 유리 반사 */
.aro-scr i { font-style: normal; font-size: 60px; line-height: 1; filter: drop-shadow(0 0 10px var(--c)); animation: aroBob 2.4s ease-in-out infinite; }
.aro-scr b { color: #fff; font-size: 23px; letter-spacing: 1px; text-shadow: 0 0 8px var(--c), 0 2px 0 #000; white-space: nowrap; }
.aro-scr[data-i]:hover { filter: brightness(1.3); box-shadow: inset 0 0 0 5px #ffe36b, inset 0 0 20px rgba(0, 0, 0, .4); }
.aro-scr.deco { background: #1c0f2a; animation: none; }
.aro-scr.deco b { font-family: 'Press Start 2P', monospace; font-size: 15px; color: #ffe36b; text-shadow: 0 0 8px #ffb000; animation: aroBlink 1.2s steps(1) infinite; }
.aro-scr:nth-of-type(3n) { animation-delay: -1.7s; } .aro-scr:nth-of-type(3n+1) { animation-delay: -3.1s; }
.aro-scr:nth-of-type(2n) i { animation-delay: -1.2s; }

/* 간판 · 설명 */
.aro-sign { position: absolute; padding: 6px 16px; border-radius: 14px; background: #fff; border: 2.5px solid #e88fb0; color: #d94f7a; font-weight: 900; font-size: 19px; box-shadow: 3px 4px 0 #f6c6d6; white-space: nowrap; pointer-events: none; }
.aro-sign small { margin-left: 6px; color: #b07a90; font-size: 12px; font-weight: 700; }
.aro-tip { position: absolute; z-index: 3; translate: -50% -100%; padding: 10px 18px; border-radius: 16px; background: #fff; border: 2.5px solid #e88fb0; box-shadow: 3px 4px 0 #f6c6d6; text-align: center; pointer-events: none; white-space: nowrap; color: #6a3a52; }
.aro-tip[hidden] { display: none; }
.aro-tip b { display: block; font-size: 20px; color: #d94f7a; } .aro-tip small { display: block; font-size: 13px; margin: 2px 0 6px; }
.aro-tip em { display: inline-block; font-style: normal; padding: 3px 14px; border-radius: 999px; background: #ffe36b; font-weight: 900; font-size: 13px; color: #6a4a00; }

/* ✨ 연출 */
.aro-fx { position: absolute; inset: 0; pointer-events: none; }
.aro-glow { background: radial-gradient(ellipse at 50% 0%, rgba(255, 220, 240, .45), transparent 55%), radial-gradient(ellipse at 50% 60%, transparent 60%, rgba(214, 90, 140, .22)); animation: aroPulse 6s ease-in-out infinite; }
.aro-px { position: absolute; font-style: normal; font-size: 18px; font-family: 'Press Start 2P', monospace; text-shadow: 0 0 8px currentColor; opacity: 0; animation: aroUp var(--d) linear var(--l) infinite; }
.aro-tw { position: absolute; width: 16px; height: 16px; opacity: 0; animation: aroTw var(--d) ease-in-out var(--l) infinite; }
.aro-tw::before, .aro-tw::after { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; margin: -1px -8px; background: linear-gradient(90deg, transparent, #fff, transparent); }
.aro-tw::after { transform: rotate(90deg); }
@keyframes aroFlick { 0%, 100% { filter: brightness(1); } 47% { filter: brightness(1); } 50% { filter: brightness(1.18); } 53% { filter: brightness(.95); } }
@keyframes aroBob { 50% { transform: translateY(-6px); } }
@keyframes aroBlink { 50% { opacity: 0; } }
@keyframes aroPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes aroUp { 0% { opacity: 0; transform: translate(0, 0); } 15% { opacity: .9; } 85% { opacity: .6; } 100% { opacity: 0; transform: translate(var(--x), -280px); } }
@keyframes aroTw { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .aro-room *, .aro-room *::before, .aro-room *::after { animation: none !important; } .aro-px, .aro-tw { display: none; } }

/* 🚪 오락실 문 (js/arcroom.js aroDoor) */
.aro-door { display: none; position: fixed; inset: 0; z-index: 1700; overflow: hidden; background: #fbd9e3; }
.aro-door.on { display: block; }   /* 처음부터 불투명 (뒤의 장소가 비치지 않게 · 도련 11-01) · 그림만 스르르 */
.aro-door.on .aro-door-in img, .aro-door.on .aro-door-sign { animation: troDoorIn .35s ease; }
.aro-door.leave { animation: troDoorOut .4s ease forwards; }
.aro-door-in { position: absolute; inset: 0; }
.aro-door-in img { position: absolute; user-select: none; -webkit-user-drag: none; }
.aro-door-in::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(circle at 50% 62%, #fffbe6 0, #ffe9a8 14%, #ffc4dc 38%, #f7a9c6 66%, #f5b8cd 90%); }
.aro-door-sign { position: absolute; translate: -50% -50%; white-space: nowrap; pointer-events: none; padding: .15em .7em; border-radius: .5em; background: #fff; border: .07em solid #e88fb0; color: #d94f7a; font-family: 'Jua', sans-serif; letter-spacing: .08em; box-shadow: 0 .08em 0 #f6c6d6; }
.aro-door.enter .aro-door-in { transition: transform 1.4s cubic-bezier(.4, 0, .8, .5) .15s, opacity .5s ease 1.15s; transform: scale(2.6); opacity: 0; }
.aro-door.enter .aro-door-in::after { transition: opacity .8s ease .45s; opacity: 1; }
.aro-door.enter .aro-door-sign { transition: opacity .3s ease; opacity: 0; }

/* 🏆 명예의 전당 트로피 (도련 11-01 · js/arcroom.js AROTROPHY) : 트로피 + 밑에 알림글 · 톡 = 순위 */
.aro-hof { position: absolute; left: 366px; top: 168px; width: 200px; padding: 0; border: 0; background: none; pointer-events: none; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.aro-hof .aro-tro { width: 176px; height: 186px; overflow: visible; filter: drop-shadow(0 0 14px rgba(255, 210, 63, .85)) drop-shadow(3px 5px 0 rgba(201, 130, 0, .35)); animation: aroBob 2.6s ease-in-out infinite; }
.aro-hof .aro-sign { position: relative; margin-top: -4px; }
.aro-tro-sp { position: absolute; font-style: normal; color: #fff6b0; font-size: 20px; text-shadow: 0 0 8px #ffd23f; animation: aroBlink 1.8s steps(1) infinite; animation-delay: var(--l, 0s); pointer-events: none; }
.aro-tro-rays { transform-origin: 85px 62px; animation: aroSpin 14s linear infinite; }
@keyframes aroSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .aro-hof .aro-tro, .aro-tro-sp, .aro-tro-rays { animation: none; } }

/* 🏆 순위판 (도련 11-01 · js/arcroom.js aroBd) : 왼쪽 앞 오락기 옆면 · 분홍 틀 + 전구 + 까만 화면 */
.aro-board { position: absolute; left: 196px; top: 566px; width: 348px; height: 336px; z-index: 2; box-sizing: border-box; padding: 12px 14px 10px; border-radius: 22px; background: linear-gradient(#ffd3e4, #ff9fc4); border: 4px solid #e0628f; box-shadow: 5px 7px 0 rgba(184, 70, 116, .35), inset 0 0 0 4px #fff0f6; display: flex; flex-direction: column; gap: 7px; }
.aro-board::before { content: ''; position: absolute; inset: 3px; border-radius: 18px; pointer-events: none; border: 5px dotted #fff6b0; filter: drop-shadow(0 0 3px #ffd23f); animation: aroBlink 1.4s steps(1) infinite; }
.aro-bd-top { display: flex; align-items: center; justify-content: space-between; color: #fff; font-size: 21px; text-shadow: 0 2px 0 #c2456f; }
.aro-bd-tabs { display: flex; gap: 4px; }
.aro-bd-tabs button { padding: 3px 9px; border-radius: 10px; border: 2px solid #fff; background: rgba(255, 255, 255, .35); color: #fff; font-weight: 900; font-size: 13px; cursor: pointer; }
.aro-bd-tabs button.on { background: #fff; color: #d94f7a; }
.aro-bd-scr { flex: 1; min-height: 0; border-radius: 12px; background: #fff8fb; border: 3px solid #f0a0c0; box-shadow: inset 0 0 14px rgba(255, 159, 196, .35); padding: 6px 10px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.aro-bd-scr::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle, rgba(255, 182, 211, .25) 0 2px, transparent 3px) 0 0 / 18px 18px; }
.aro-bd-game { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-bottom: 5px; border-bottom: 2px dashed rgba(255, 126, 182, .45); }
.aro-bd-game b { flex: 1; text-align: center; color: #d94f7a; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aro-bd-game button { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #ff7eb6; background: #fff; color: #ff7eb6; font-size: 13px; cursor: pointer; position: relative; z-index: 1; }
.aro-bd-game button:hover { background: #ff7eb6; color: #fff; }
.aro-bd-list { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.aro-bd-row { display: flex; align-items: center; gap: 8px; color: #6b4a63; font-size: 16px; padding: 3px 4px; border-radius: 8px; }
.aro-bd-row span { width: 28px; text-align: center; font-size: 18px; font-weight: 900; color: #b48ae0; }
.aro-bd-row em { flex: 1; font-style: normal; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aro-bd-row b { color: #3d8fd1; font-family: 'Press Start 2P', monospace; font-size: 12px; }
.aro-bd-row.t1 { background: #fff1b8; } .aro-bd-row.t1 em { color: #c47e00; }
.aro-bd-msg { margin: 0; text-align: center; color: #c76a92; font-size: 15px; line-height: 1.6; font-weight: 700; }
.aro-bd-champ { margin: 4px 0 0; text-align: center; color: #c47e00; font-size: 13px; font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .aro-board::before { animation: none; } }
