/* =========================
   플듀 증강 오셀로 (2026-11-16) — 대기실·패널·모달은 chess.css(cx-*)를 같이 씀, 여기선 판·돌·표시만
   ========================= */
.ot-body[data-board="felt"] { --ot-sq: #2f8f57; --ot-sq2: #2a8350; --ot-line: rgba(8,40,20,.75); --frame: #3a2614; --frame2: #1f140a; --coord: rgba(230,255,235,.55); --ot-tex: radial-gradient(circle at 30% 20%, rgba(255,255,255,.06), transparent 60%), repeating-linear-gradient(45deg, rgba(0,0,0,.03) 0 2px, transparent 2px 4px); }
.ot-body[data-board="wood"] { --ot-sq: #d9a868; --ot-sq2: #cf9d5c; --ot-line: rgba(70,38,10,.7); --frame: #5b3417; --frame2: #2e1a0a; --coord: rgba(70,38,10,.7); --ot-tex: repeating-linear-gradient(96deg, rgba(120,70,20,.08) 0 2px, transparent 2px 8px); }
.ot-body[data-board="night"] { --ot-sq: #2c3b6e; --ot-sq2: #283664; --ot-line: rgba(160,190,255,.35); --frame: #141a33; --frame2: #070a18; --coord: rgba(190,210,255,.6); --ot-tex: radial-gradient(circle at 70% 30%, rgba(160,190,255,.12), transparent 55%); }
.ot-body[data-board="marble"] { --ot-sq: #e6e9ee; --ot-sq2: #dde1e7; --ot-line: rgba(70,80,95,.55); --frame: #8c95a3; --frame2: #4b5360; --coord: rgba(60,70,85,.65); --ot-tex: linear-gradient(125deg, transparent 40%, rgba(150,160,175,.25) 42%, transparent 46%); }

.ot-board .cx-sq { background: var(--ot-sq); background-image: var(--ot-tex); box-shadow: inset 0 0 0 .5px var(--ot-line); }
.ot-board .cx-sq.alt { background-color: var(--ot-sq2); }
.ot-board .cx-sq .co { color: var(--coord); }
.ot-board .cx-sq.last::after { background: none; box-shadow: inset 0 0 0 3px rgba(242,194,48,.85); }
.ot-board .cx-sq.fl::after { content: ""; position: absolute; inset: 0; background: rgba(242,194,48,.14); }
/* 별점 4개 */
.ot-board .cx-sq.star::before { content: ""; position: absolute; right: -4px; bottom: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--ot-line); z-index: 1; }

/* 둘 수 있는 칸 */
.ot-hint { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 3; }
.ot-hint i { width: 28%; height: 28%; border-radius: 50%; background: rgba(0,0,0,.28); box-shadow: 0 0 0 2px rgba(255,255,255,.18); transition: transform .12s; }
.ot-body[data-board="night"] .ot-hint i { background: rgba(255,255,255,.25); }
.ot-hint b { position: absolute; font-family: var(--cx-font); font-size: clamp(9px, 1.4vw, 13px); color: #fff; text-shadow: 0 1px 0 #000, 0 0 3px #000; }
.ot-hint.breath i { background: rgba(160,230,255,.5); }
.ot-hint.opp i { width: 18%; height: 18%; background: none; box-shadow: 0 0 0 2px rgba(255,120,120,.75); }
.cx-sq.can { cursor: pointer; }
.cx-sq.can:hover .ot-hint i { transform: scale(1.35); }
.cx-sq.can:hover .ot-ghost { opacity: .45; }
.ot-ghost { position: absolute; inset: 9%; opacity: 0; pointer-events: none; z-index: 2; transition: opacity .1s; }
.ot-ghost svg { width: 100%; height: 100%; }
/* 막힌 칸 */
.ot-block { position: absolute; inset: 6%; border-radius: 10%; pointer-events: none; z-index: 2; display: grid; place-items: center; font-family: var(--cx-font); font-size: clamp(9px, 1.5vw, 13px); color: #fff; text-shadow: 0 1px 0 #000; }
.ot-block.all { background: repeating-linear-gradient(45deg, rgba(40,30,20,.75) 0 6px, rgba(90,70,50,.75) 6px 12px); box-shadow: inset 0 0 0 2px rgba(0,0,0,.5); }
.ot-block.only { background: rgba(232,87,75,.22); box-shadow: inset 0 0 0 2px rgba(232,87,75,.8); }
.ot-block.only.mine { background: rgba(94,200,176,.2); box-shadow: inset 0 0 0 2px rgba(94,200,176,.85); }

/* 돌 */
.ot-discs { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.ot-d { position: absolute; width: 12.5%; height: 12.5%; perspective: 400px; }
.ot-d .in { position: absolute; inset: 7%; transform-style: preserve-3d; transition: transform .38s cubic-bezier(.4,.1,.3,1); }
.ot-d .in > span { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.ot-d .in > span svg { width: 100%; height: 100%; display: block; }
.ot-d .in .bk { transform: rotateY(180deg); }
.ot-d.w .in { transform: rotateY(0deg); }
.ot-d.b .in { transform: rotateY(180deg); }
.ot-d.born .in { animation: otBorn .32s cubic-bezier(.2,.9,.3,1.3); }
@keyframes otBorn { from { scale: 1.6; opacity: 0; } 60% { scale: .92; opacity: 1; } to { scale: 1; } }
.ot-d.gone { animation: otGone .4s ease-in forwards; }
@keyframes otGone { to { opacity: 0; scale: .2; rotate: 90deg; } }
.ot-d.lift .in { animation: otLift .38s ease-out; }
@keyframes otLift { 50% { translate: 0 -8%; } }
.ot-d .mk { position: absolute; inset: 0; pointer-events: none; }
.ot-d.fix .mk::before { content: ""; position: absolute; inset: 3%; border-radius: 50%; box-shadow: 0 0 0 3px rgba(111,168,255,.9), 0 0 10px rgba(111,168,255,.6); }
.ot-d.perm .mk::before { box-shadow: 0 0 0 3px #9ad7ff, 0 0 0 5px #0d2245, 0 0 12px rgba(154,215,255,.8); }
.ot-d.gold .mk::before { content: ""; position: absolute; inset: 3%; border-radius: 50%; box-shadow: 0 0 0 3px #ffcf3a, 0 0 14px rgba(255,207,58,.85); }
.ot-d.gold .mk::after { content: "★"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -52%); font-size: clamp(10px, 2vw, 18px); color: #ffcf3a; text-shadow: 0 1px 0 #3d2306; }
.ot-d .mk b { position: absolute; right: -2%; top: -4%; min-width: 1.4em; height: 1.4em; border-radius: 50%; background: #0d2245; color: #cfe6ff; font: 700 clamp(8px, 1.3vw, 11px)/1.4em var(--cx-font); text-align: center; box-shadow: 0 0 0 1.5px #6fa8ff; }

/* 상단·하단 줄 점수 */
.ot-cnt { font-family: var(--cx-font); font-size: 20px; font-weight: 700; min-width: 2.2em; text-align: right; }
.ot-cnt small { display: block; font-size: 11px; color: var(--cx-gold); font-weight: 400; }
.cx-bar .av svg.disc-svg { width: 100%; height: 100%; }
/* 점수 막대 */
.ot-score { display: grid; gap: 6px; }
.ot-score .bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; box-shadow: 0 0 0 2px var(--cx-ink); }
.ot-score .bar i { display: block; transition: flex-grow .4s; }
.ot-score .bar .b { background: linear-gradient(#3c3842, #0d0b10); } .ot-score .bar .w { background: linear-gradient(#fff, #d8d1c3); }
.ot-score .row { display: flex; justify-content: space-between; font-family: var(--cx-font); font-size: 13px; }
.ot-score .row span { display: inline-flex; align-items: center; gap: 4px; }
.ot-score .row svg { width: 16px; height: 16px; }
.ot-log span { font-size: 12px; }

/* 미니 판 */
.ot-mini > i { background: var(--ot-sq) !important; box-shadow: inset 0 0 0 .5px var(--ot-line); }
.ot-mini .md { position: absolute; width: 12.5%; height: 12.5%; display: grid; place-items: center; }
.ot-mini .md i { width: 78%; height: 78%; border-radius: 50%; }
.ot-mini .md i.b { background: radial-gradient(circle at 35% 30%, #555, #0a090c); } .ot-mini .md i.w { background: radial-gradient(circle at 35% 30%, #fff, #c9c1b2); }
.ot-mini .md.hl::after { content: ""; position: absolute; inset: 4%; box-shadow: inset 0 0 0 2px #f2c230; }

/* 결과 점수표 */
.ot-res-tbl { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.ot-res-tbl td { padding: 2px 4px; border-bottom: 1px solid var(--cx-line); }
.ot-res-tbl td:last-child { text-align: right; font-family: var(--cx-font); }
.ot-res-tbl tr.tot td { font-weight: 700; color: var(--cx-gold); border-bottom: 0; font-size: 15px; }

/* 큰 뒤집기 글자 */
.ot-pop { position: absolute; transform: translate(-50%, -50%); font-family: var(--cx-font); font-weight: 700; font-size: clamp(14px, 2.6vw, 24px); color: #fff; text-shadow: 0 2px 0 #000, 0 0 8px rgba(0,0,0,.6); pointer-events: none; animation: otPop 1s ease-out forwards; z-index: 8; white-space: nowrap; }
@keyframes otPop { 0% { opacity: 0; scale: .6; } 20% { opacity: 1; scale: 1.1; } 100% { opacity: 0; translate: 0 -40px; } }
.cx-sq.tgt .ot-hint { display: none; }
.ot-frozen-note { color: #bfefff; }

@media (prefers-reduced-motion: reduce) { .ot-d .in, .ot-d.born .in, .ot-d.lift .in { transition: none !important; animation: none !important; } }
