*{box-sizing:border-box}:root{color:#fff;background-color:#101827;font-family:Arial,sans-serif}body{min-width:320px;min-height:100vh;margin:0}#root{min-height:100vh}header{background-color:#17243a;border-bottom:1px solid #304259;padding:24px 40px}header h1{color:#60a5fa;letter-spacing:3px;margin:0 0 8px;font-size:28px}header p{color:#b6c6db;margin:0;font-size:14px}.page-content{max-width:1200px;margin:0 auto;padding:40px}.page-content h2{margin:0 0 16px;font-size:24px}.page-content>p{color:#cbd5e1;margin:0 0 24px}.game-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;display:grid}.game-card{background:linear-gradient(#1e293b 0%,#172033 100%);border:1px solid #334155;border-radius:16px;flex-direction:column;min-width:0;padding:24px;transition:transform .2s,border-color .2s,box-shadow .2s;display:flex;box-shadow:0 8px 20px #0000002e}.game-card:hover{border-color:#60a5fa;transform:translateY(-4px);box-shadow:0 12px 28px #00000047}.game-card-media{color:#93c5fd;background:linear-gradient(135deg,#243b62,#16243c);border-radius:12px;justify-content:center;align-items:center;height:120px;margin-bottom:20px;display:flex;overflow:hidden}.game-card-media img{object-fit:cover;width:100%;height:100%}.game-card-content{flex:1}.game-badge{color:#93c5fd;background-color:#2563eb2e;border:1px solid #60a5fa59;border-radius:999px;margin-bottom:14px;padding:6px 10px;font-size:12px;font-weight:700;display:inline-block}.game-card h3{color:#fff;margin:0 0 12px;font-size:22px}.game-card-title{color:inherit}.game-card-title:hover{color:#93c5fd}.game-card-title:focus-visible{outline-offset:3px;outline:2px solid #93c5fd}.game-card p{color:#94a3b8;margin:0;font-size:14px;line-height:1.6}.game-card-buttons{gap:12px;margin-top:24px;display:flex}.game-button{color:#fff;cursor:pointer;border:none;border-radius:10px;flex:1;justify-content:center;align-items:center;gap:8px;min-width:0;padding:12px 10px;font-size:14px;font-weight:700;text-decoration:none;transition:transform .15s,filter .15s;display:flex}.game-button:hover{filter:brightness(1.1);transform:translateY(-2px)}.game-button:focus-visible{outline-offset:3px;outline:2px solid #fff}.game-button--ai{background:linear-gradient(135deg,#2563eb,#3b82f6)}.game-button--player{background:linear-gradient(135deg,#0f766e,#14b8a6)}.game-search{color:#fff;background-color:#1e293b;border:1px solid #334155;border-radius:10px;outline:none;width:100%;margin-bottom:24px;padding:14px 18px;font-size:15px;transition:border-color .2s}.game-search::placeholder{color:#94a3b8}.game-search:focus{border-color:#60a5fa}.category-filters{flex-wrap:wrap;gap:10px;margin:20px 0 24px;display:flex}.category-filter{color:#cbd5e1;cursor:pointer;background:#1e293b;border:1px solid #334155;border-radius:999px;padding:10px 18px;font-size:14px;font-weight:600;transition:all .2s}.category-filter:hover{color:#fff;background:#334155}.category-filter.active{color:#fff;background:#2563eb;border-color:#2563eb}.category-filter:focus-visible{outline-offset:3px;outline:2px solid #93c5fd}@media (width<=600px){.page-content{padding:24px 16px}.game-grid{grid-template-columns:1fr}.game-card{padding:18px}header{padding:20px 16px}}.omok-page{--omok-border:#334155;--omok-panel:#172033;--omok-muted:#b6c6db;--omok-accent:#93c5fd}.omok-heading,.omok-board-heading,.omok-choice-row{justify-content:space-between;align-items:center;gap:12px;display:flex}.omok-heading{flex-wrap:wrap;justify-content:flex-start;margin:8px 0 18px}.omok-heading h2,.omok-heading .game-badge{margin:0}.omok-layout{grid-template-columns:minmax(0,1fr) minmax(310px,360px);align-items:start;gap:20px;display:grid}.omok-panels{gap:12px;min-width:0;display:grid}.omok-board-card,.omok-panel{border:1px solid var(--omok-border);background:var(--omok-panel);border-radius:16px;min-width:0;padding:16px;box-shadow:0 8px 18px #050a1433}.omok-page h3{margin:0;font-size:16px}.omok-panel h3,.omok-board-heading{margin-bottom:12px}.omok-board-heading span,.omok-board-card figcaption,.omok-note,.omok-color-count{color:var(--omok-muted);font-size:13px}.omok-board-card figure{margin:0}.omok-board{border-radius:12px;width:100%;height:auto;display:block;box-shadow:0 6px 12px #04080f61}.omok-board-card figcaption{margin-top:10px}.omok-panel fieldset{border:0;min-width:0;margin:0;padding:0}.omok-choice-row{margin-bottom:8px;font-size:14px}.omok-choices,.omok-actions{gap:6px;display:flex}.omok-panel button{border:1px solid var(--omok-border);color:#e2e8f0;min-height:38px;font:inherit;cursor:pointer;background:#101827;border-radius:8px;padding:6px 10px;font-size:13px}.omok-panel button[aria-pressed=true]{border-color:var(--omok-accent);background:#203b60}.omok-panel button:focus-visible{outline:2px solid var(--omok-accent);outline-offset:2px}.omok-panel button:disabled{cursor:default}.omok-panel button:disabled:not([aria-pressed=true]){color:#9daec5;background:#141e2e}.omok-colors{flex-wrap:wrap;gap:4px;display:flex}.omok-panel .omok-color{align-content:center;justify-items:center;gap:3px;min-width:42px;min-height:46px;padding:3px;font-size:11px;display:grid}.omok-swatch{background:var(--omok-color);border:1px solid #fff6;border-radius:50%;width:20px;height:20px}.omok-panel button[aria-pressed=true] .omok-swatch{outline-offset:2px;outline:1px solid #e2e8f0}.omok-note{margin:8px 0 0;line-height:1.5}.omok-panel .omok-colors+.omok-hint,.omok-panel .omok-note+.omok-colors,.omok-actions{margin-top:8px}.omok-actions button{flex:1;min-height:44px;font-weight:700}.omok-actions .omok-primary:not(:disabled){color:#101827;background:#60a5fa;border-color:#60a5fa}.omok-status{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0;display:grid}.omok-status div{background:#101827;border-radius:8px;padding:7px 8px}.omok-status dt{color:var(--omok-muted);font-size:12px}.omok-status dd{color:#e2e8f0;margin:4px 0 0;font-size:13px;font-weight:600}.omok-rules{color:#cbd5e1;margin:0;padding-inline-start:18px;font-size:13px;line-height:1.65}@media (width<=760px){.omok-layout{grid-template-columns:minmax(0,1fr);gap:12px}}@media (width<=600px){.omok-board-card,.omok-panel{padding:12px}}.game-page{max-width:840px}.game-back-link{color:#e2e8f0;background-color:#1e293b;border:1px solid #334155;border-radius:999px;align-items:center;gap:8px;min-height:44px;margin-bottom:12px;padding:8px 14px;font-size:14px;font-weight:600;line-height:1.4;text-decoration:none;transition:background-color .18s,border-color .18s;display:inline-flex}.game-back-link svg{flex-shrink:0}@media (hover:hover){.game-back-link:hover{background-color:#334155;border-color:#64748b}}.game-page-panel{background-color:#172033;border:1px solid #334155;border-radius:16px;padding:24px}.game-detail-heading{background-color:#101827;border-radius:12px;align-items:center;gap:16px;padding:20px;display:flex}.game-detail-heading h2{overflow-wrap:anywhere;margin:0}.game-detail-heading .game-badge{margin-bottom:8px}.game-detail-artwork{flex:none;width:64px;height:64px;margin:0}.game-detail-section{border-top:1px solid #334155;margin-top:20px;padding-top:20px}.game-detail-section h3,.game-detail-section summary{margin:0 0 8px;font-size:16px;font-weight:700}.game-detail-section summary{cursor:pointer;margin-bottom:0}.game-back-link:focus-visible,.game-detail-section summary:focus-visible{outline-offset:3px;outline:2px solid #93c5fd}.game-page-panel p,.game-page-panel ol{color:#cbd5e1;overflow-wrap:anywhere;margin:0;line-height:1.6}.game-page-panel ol{padding-inline-start:24px}.game-page-panel details[open] summary{margin-bottom:8px}.game-detail-section .game-card-buttons{margin-top:12px}@media (width<=600px){.game-page-panel,.game-detail-heading{padding:16px}.game-detail-artwork{width:48px;height:48px}}@media (width<=360px){.game-detail-section .game-card-buttons{flex-direction:column}}
