* { box-sizing: border-box; } html, body {width: 100%;height: 100%; margin: 0; } body {font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif; background: url("img/XPD_21.PNG") repeat;} .app-header { text-align: center; padding: 28px 20px 6px; } .header-badge { display: inline-block; padding: 7px 16px; border-radius: 999px; background: #244f3a; border: 1px solid #3b82f6; color: #93c5fd; font-size: 18px; font-weight: bold; margin-bottom: 10px; } .app-header h1 { margin: 0; font-size: clamp(30px, 5vw, 48px); letter-spacing: 0.08em; color: #fbbf24; } .app-header p { margin: 8px 0 0; color: #94a3b8; font-size: 14px; } .game-main { width: min(1100px, calc(100% - 30px)); margin: 0 auto 40px; display: flex; justify-content: center; align-items: flex-start; gap: 28px; } .side-panel { width: 280px; display: flex; flex-direction: column; gap: 15px; } .panel { background: rgba(15, 23, 42, 0.88); border: 1px solid #334155; border-radius: 14px; padding: 8px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22); } .panel-title { color: #94a3b8; font-size: 12px; font-weight: bold; letter-spacing: 0.08em; margin-bottom: 12px; } .turn-badge { display: block; width: 100%; text-align: center; padding: 10px; border-radius: 9px; font-size: 14px; font-weight: bold; margin-bottom: 14px; } .player-turn { background: #172d4c; border: 1px solid #3b82f6; color: #93c5fd; } .ai-turn { background: #3d2020; border: 1px solid #ef4444; color: #fca5a5; } .game-over-turn { background: #292929; border: 1px solid #64748b; color: #cbd5e1; } .status-message { min-height: 66px; display: flex; align-items: center; color: #e2e8f0; font-size: 14px; line-height: 1.7; } .count-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid #263244; font-size: 14px; color: #04c04c;} .countai-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid #263244; font-size: 14px; color: #e77dfc;} .count-row,.countai-row :last-child { border-bottom: none; } .count-row strong { color: #fbbf24; } .captured-box { min-height: 38px; margin: 5px 0 10px; padding: 10px; border-radius: 8px; background: #0b1220; border: 1px solid #243044; color: #b9c4d3; font-size: 14px; } .new-game-button { border: none; border-radius: 10px; padding: 13px 16px; background: linear-gradient(135deg, #2563eb, #1d4ed8); color: white; font-size: 14px; font-weight: bold; cursor: pointer; transition: transform 0.15s, filter 0.15s; } .new-game-button:hover { filter: brightness(1.12); transform: translateY(-1px); } .new-game-button:active { transform: translateY(1px); } .winp-count{ color: #04c04c; } .wina-count{ color: #e77dfc; } .board-area { display: flex; flex-direction: column; align-items: center; } .board-title { color: #cbd5e1; font-size: 16px; font-weight: bold; margin-bottom: 10px; } .board-container { position: relative; padding: 10px; background: linear-gradient(135deg, #b86b20, #8f4e13); border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); user-select: none; } .board-grid { display: grid; grid-template-columns: repeat(9, 1fr); grid-template-rows: repeat(9, 1fr); width: min(650px, 78vw); height: min(650px, 78vw); gap: 1px; background: #704012; border: 2px solid #542e0d; } .board-cell { position: relative; display: flex; justify-content: center; align-items: center; min-width: 0; min-height: 0; background: linear-gradient(135deg, #dca55c, #c98c3e); border: 1px solid rgba(83, 47, 13, 0.45); cursor: pointer; transition: background 0.12s; } .board-cell:hover { background: linear-gradient(135deg, #e6b36a, #d59a4c); } .board-cell.selected { background: linear-gradient(135deg, #f6d365, #eab84d); box-shadow: inset 0 0 0 3px #2563eb; } .board-cell.legal::after { content: ""; position: absolute; width: 13px; height: 13px; border-radius: 50%; background: rgba(37, 99, 235, 0.75); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25); pointer-events: none; } .board-cell.drag-over { background: linear-gradient(135deg, #93c5fd, #60a5fa); box-shadow: inset 0 0 0 3px #1d4ed8; } .piece { display: block; width: 82%; height: 82%; max-width: 64px; max-height: 64px; object-fit: contain; object-position: center; user-select: none; -webkit-user-drag: element; pointer-events: auto; filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.35)); transition: transform 0.12s, filter 0.12s; } .player-piece { cursor: grab; } .player-piece:active { cursor: grabbing; } .ai-piece { cursor: default; transform: rotate(180deg); } .board-cell.selected .player-piece { filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.9)) drop-shadow(0 4px 4px rgba(0, 0, 0, 0.35)); } a {font-size: 14px; color: #292828; font-weight: bold;} .wrap {white-space: nowrap;} .disable-link {cursor: default; font-size: 16px; color: #292828; font-weight: bold;} .ai-overlay { position: absolute; inset: 10px; z-index: 20; display: flex; flex-direction: column; justify-content: center; align-items: center; background: rgba(15, 23, 42, 0.78); border-radius: 8px; backdrop-filter: blur(3px); text-align: center; } .ai-overlay.hidden { display: none; } .ai-spinner { font-size: 38px; color: #fbbf24; animation: ai-pulse 1s infinite; } @keyframes ai-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.75); opacity: 0.45; } } .ai-overlay-title { margin-top: 10px; color: #fde68a; font-size: 18px; font-weight: bold; } .ai-overlay-text { margin-top: 5px; color: #94a3b8; font-size: 12px; } .game-modal { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center; align-items: center; padding: 20px;} .game-modal.hidden { display: none; } .modal-card { width: min(430px, 100%); padding: 30px; text-align: center; background: #15151631; border: 1px solid #1252ac; border-radius: 18px; box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5); } .modal-card h2 { margin: 0 0 10px; color: #f8fafc; font-size: 26px; } .modal-card p { margin: 0 0 22px; color: #ffeafc; line-height: 1.7; font-size: 16px; } .modal-button { border: none; border-radius: 9px; padding: 12px 24px; background: #2563eb; color: white; font-weight: bold; cursor: pointer; } .modal-button:hover { background: #1d4ed8; } @media (max-width: 800px) { .game-main { flex-direction: column; align-items: center; } .side-panel { width: min(650px, 100%); order: 2; } .board-area { order: 1; width: 100%; } .board-grid { width: min(92vw, 650px); height: min(92vw, 650px); } } @media (max-width: 450px) { .app-header { padding-top: 18px; } .app-header h1 { font-size: 30px; } .board-container { padding: 6px; } .board-grid { width: 94vw; height: 94vw; } .ai-overlay { inset: 6px; } .board-help { font-size: 10px; } } .board-cell.captured-flash {animation: capturedFlash 0.2s ease-in-out 5;} @keyframes capturedFlash {0% {opacity: 1;}50% {opacity: 0.15;}100% {opacity: 1;}} .timer-warning {color: rgb(226, 87, 53);} label{font-size: 14px; color: #21c6db; font-weight: bold;}