.omok-root-wrap { height: 100%; }
.omok-root { height: 100%; display: flex; flex-direction: column; background: radial-gradient(900px 500px at 50% 25%, rgba(60, 40, 20, 0.25), transparent 65%); }

.omok-status { display: flex; align-items: center; gap: 12px; padding: 8px 16px; border-bottom: 1px solid rgba(232, 196, 106, 0.18); background: linear-gradient(180deg, rgba(232, 196, 106, 0.06), transparent); }
.omok-status-left { display: flex; align-items: center; gap: 10px; }
.omok-mode-chip { font-size: 12.5px; font-weight: 800; color: #9be9f7; background: rgba(103, 232, 249, 0.12); padding: 3px 11px; border-radius: 20px; }
.omok-me { font-size: 12.5px; font-weight: 700; color: #ece6d6; display: inline-flex; align-items: center; gap: 5px; }
.omok-status-turn { flex: 1; text-align: center; font-size: 14px; font-weight: 800; color: rgba(236, 230, 214, 0.7); }
.omok-turn-on { color: #6ff0a3; text-shadow: 0 0 10px rgba(63, 224, 127, 0.4); }
.omok-status-timer { width: 130px; height: 5px; background: rgba(255, 255, 255, 0.08); border-radius: 5px; overflow: hidden; }
.omok-timer-bar { height: 100%; width: 100%; background: linear-gradient(90deg, #6ff0a3, #fbe39a); transition: width 0.15s linear; }
.omok-timer-bar.omok-timer-low { background: linear-gradient(90deg, #ff8e7a, #ff5a44); }
.omok-dot { display: inline-block; width: 13px; height: 13px; border-radius: 50%; vertical-align: middle; }
.omok-dot-b { background: radial-gradient(circle at 35% 30%, #6a6a72, #111 70%); box-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.omok-dot-w { background: radial-gradient(circle at 35% 30%, #fff, #c3c3cc 75%); box-shadow: 0 1px 2px rgba(0,0,0,0.4); border: 1px solid #9a9aa4; }

.omok-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 10px; min-height: 0; }
.omok-frame { position: relative; aspect-ratio: 1 / 1; height: 100%; max-width: 100%; max-height: 100%; }
@supports not (aspect-ratio: 1 / 1) { .omok-frame { height: 100%; width: 100%; } }
.omok-board { position: absolute; inset: 0; z-index: 1; filter: drop-shadow(0 12px 28px rgba(0,0,0,0.5)); }
.omok-board-svg { width: 100%; height: 100%; display: block; }
.omok-stones, .omok-markers, .omok-ghost { position: absolute; inset: 0; pointer-events: none; }
.omok-stones { z-index: 2; }
.omok-markers { z-index: 3; }
.omok-ghost { z-index: 4; opacity: 0.5; }
.omok-input { position: absolute; inset: 0; z-index: 5; cursor: pointer; touch-action: none; }

.omok-stone { position: absolute; }
.omok-stone-svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 3px 4px rgba(0,0,0,0.55)); }
.omok-place-anim .omok-stone-svg { animation: omokDrop 0.24s cubic-bezier(.2,.8,.3,1); }
@keyframes omokDrop { 0% { transform: translateY(-45%) scale(0.65); opacity: 0; } 60% { transform: translateY(0) scale(1.08); opacity: 1; } 100% { transform: none; } }
.omok-ghost .omok-stone-svg { width: 100%; height: 100%; }

.omok-mark { position: absolute; }
.omok-last svg, .omok-fb svg, .omok-winglow { width: 100%; height: 100%; display: block; }
.omok-winglow { border-radius: 50%; animation: omokWin 1s ease-in-out infinite; }
@keyframes omokWin { 0%, 100% { box-shadow: 0 0 12px 3px rgba(255,90,68,0.55); } 50% { box-shadow: 0 0 24px 7px rgba(255,90,68,0.95); } }

.omok-swap2 { padding: 12px 16px; border-top: 1px solid rgba(232, 196, 106, 0.18); flex-direction: column; gap: 10px; align-items: center; }
.omok-swap2-q { font-size: 14px; font-weight: 800; color: #fff5d8; text-align: center; }

.gof-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gof-action-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.gof-btn { border: none; border-radius: 10px; padding: 10px 18px; font-weight: 800; cursor: pointer; font-size: 13px; transition: 0.15s; display: inline-flex; align-items: center; gap: 6px; }
.gof-btn-clear { background: rgba(255, 255, 255, 0.07); color: #ece6d6; border: 1px solid rgba(232, 196, 106, 0.2); }
.gof-btn-play { background: linear-gradient(180deg, #fbe39a, #b07d1f); color: #2a1d04; box-shadow: 0 5px 16px rgba(232, 196, 106, 0.25); }
.gof-btn:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.08); }
.gof-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.omok-result { position: absolute; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; background: rgba(5, 7, 16, 0.82); backdrop-filter: blur(4px); }
.gof-result-card { width: 380px; max-width: 90%; background: linear-gradient(180deg, #1a2138, #0c1020); border: 1px solid #e8c46a; border-radius: 18px; padding: 26px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(232, 196, 106, 0.12); }
.gof-result-title { text-align: center; font-size: 20px; font-weight: 800; color: #fff5d8; margin-bottom: 18px; }
.gof-result-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.gof-result-row { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 11px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(232, 196, 106, 0.12); }
.gof-result-me { border-color: #e8c46a; background: rgba(232, 196, 106, 0.1); }
.gof-result-rank { font-size: 18px; width: 30px; text-align: center; }
.gof-result-name { flex: 1; font-weight: 700; font-size: 14px; }
.gof-result-cards { font-size: 12.5px; color: rgba(236, 230, 214, 0.7); }
.gof-result-card .gof-btn-play { width: 100%; justify-content: center; }

.omok-help-grid { display: flex; gap: 16px; flex-wrap: wrap; }
.omok-mini-board { width: 120px; height: 120px; position: relative; flex-shrink: 0; }
.omok-mini-board .omok-board-svg { width: 100%; height: 100%; }

#mg-root.mg-full .omok-status-timer { width: 180px; }
@media (max-width: 720px) {
  .omok-status { padding: 6px 8px; gap: 6px; flex-wrap: wrap; }
  .omok-status-turn { font-size: 12.5px; }
  .omok-status-timer { width: 70px; }
  .omok-mode-chip { font-size: 11px; padding: 2px 8px; }
  .omok-me { font-size: 11.5px; }
  .omok-stage { padding: 4px; }
  .omok-swap2 { padding: 10px 8px; }
  .omok-swap2 .gof-btn { padding: 13px 16px; font-size: 14px; }
  .omok-swap2-q { font-size: 13px; }
  .gof-result-card { width: 92%; padding: 20px 16px; }
  .omok-help-grid { gap: 10px; }
  .omok-mini-board { width: 96px; height: 96px; }
}

.mg-diff-neural { background: linear-gradient(180deg, #7c5cd6, #4b2da0) !important; color: #fff !important; border: 1px solid #a78bfa !important; box-shadow: 0 4px 14px rgba(124,92,214,0.4); position: relative; }
.mg-diff-neural::after { content: 'AI'; margin-left: 5px; font-size: 10px; font-weight: 900; opacity: .7; }

.omok-neural-load { position: absolute; inset: 0; z-index: 35; display: flex; align-items: center; justify-content: center; background: rgba(8,7,20,0.86); backdrop-filter: blur(5px); transition: opacity 0.4s; }
.omok-neural-load.omok-neural-done { opacity: 0; }
.omok-nl-box { text-align: center; width: 280px; max-width: 86%; }
.omok-nl-core { position: relative; width: 96px; height: 96px; margin: 0 auto 18px; }
.omok-nl-brain { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 40px; animation: omokNlPulse 1.6s ease-in-out infinite; }
.omok-nl-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid transparent; border-top-color: #a78bfa; border-right-color: #67e8f9; animation: omokNlSpin 1.1s linear infinite; }
.omok-nl-ring2 { inset: 12px; border-top-color: #f0abfc; border-left-color: #a78bfa; animation-duration: 1.7s; animation-direction: reverse; }
@keyframes omokNlSpin { to { transform: rotate(360deg); } }
@keyframes omokNlPulse { 0%,100% { transform: scale(1); filter: drop-shadow(0 0 6px rgba(167,139,250,0.6)); } 50% { transform: scale(1.14); filter: drop-shadow(0 0 16px rgba(103,232,249,0.9)); } }
.omok-nl-title { font-size: 14.5px; font-weight: 800; color: #e9e2ff; margin-bottom: 14px; letter-spacing: 0.3px; }
.omok-nl-bar { height: 8px; border-radius: 6px; background: rgba(255,255,255,0.1); overflow: hidden; }
.omok-nl-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #7c5cd6, #67e8f9, #f0abfc); background-size: 200% 100%; animation: omokNlFlow 1.4s linear infinite; transition: width 0.3s; }
@keyframes omokNlFlow { to { background-position: 200% 0; } }
.omok-nl-pct { margin-top: 8px; font-size: 12.5px; font-weight: 800; color: #a78bfa; }
.omok-help-credit { margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(232,196,106,0.14); font-size: 11px; color: rgba(236,230,214,0.45); line-height: 1.6; }
.omok-help-credit a { color: rgba(167,139,250,0.8); text-decoration: none; }
.omok-help-credit a:hover { text-decoration: underline; }
