/* 어잉티기보플레이어 · 개발: 어잉티연구소 (Eoingtilab) */
/* The reader paints its outer frame inside the canvas. */
#giboCanvas { border: 0; clip-path: inset(2px); }


.gibo-tools { box-sizing:border-box; width:min(100%,600px); margin:4px auto 0; padding:8px 12px; border-radius:10px; background:#182b43; color:#fff; display:grid; gap:5px; font:500 13px/1.2 system-ui,sans-serif; }
.gibo-timeline,.gibo-transport,.gibo-options { display:flex; align-items:center; }
.gibo-timeline { gap:12px; }
.gibo-timeline input[type=range] { flex:1; width:0; min-width:0; height:20px; padding:0; margin:0; border:0; accent-color:#91ceff; cursor:pointer; }
.gibo-timeline span { color:#edf4fa; font-variant-numeric:tabular-nums; white-space:nowrap; }
.gibo-transport,.gibo-options { justify-content:center; gap:4px; }
.gibo-tools button { margin:0; box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; gap:2px; font:inherit; cursor:pointer; }
.gibo-transport button { height:36px; min-width:32px; padding:0 4px; background:transparent; border:0; color:white; border-radius:50%; }
.gibo-transport button:hover { background:#334862; }
.gibo-transport svg { width:20px; height:20px; }
.gibo-transport .gibo-play { width:40px; height:40px; margin:0 4px; background:white; color:#182b43; }
.gibo-play::before { content:""; width:0; height:0; margin-left:3px; border-block:8px solid transparent; border-left:13px solid currentColor; }
.gibo-play[data-playing=true]::before { width:5px; height:15px; margin:0; border:0; border-inline:4px solid currentColor; box-sizing:content-box; }
.gibo-options { border-top:1px solid #405066; padding-top:5px; }
.gibo-options { flex-wrap:wrap; }
.gibo-options .gibo-wood { width:40px; padding:0; }
.gibo-wood[data-wood=kaya] .sun,.gibo-wood[data-wood=walnut] .moon { display:none; }
.gibo-options button { min-height:30px; padding:0 12px; border:1px solid transparent; border-radius:5px; color:#d6e1ed; background:transparent; }
.gibo-options button[aria-pressed=true] { background:#354e6a; color:white; border-color:#63809d; }
.gibo-tools button:focus-visible,.gibo-tools input:focus-visible { outline:2px solid #97d4ff; outline-offset:1px; }
.gibo-tools button:disabled { opacity:.35; cursor:default; }

.gibo-embed { height:100dvh; display:grid; grid-template-rows:minmax(0,1fr) auto; }
.gibo-embed .gibo-stage { min-height:0; min-width:0; display:grid; place-items:center; }
.gibo-embed .gibo-tools { width:100%; margin:0; border-radius:0; padding:4px 10px; gap:2px 10px; }
@media(max-width:489px) {
 .gibo-embed .gibo-options { padding-top:2px; }
}

.gibo-detail-player { width:min(100%,var(--reader-size,600px)); margin-inline:auto; }
.gibo-detail-player .gibo-stage { display:grid; place-items:center; min-width:0; min-height:0; aspect-ratio:1; }
.gibo-detail-player .gibo-tools { width:100%; }
.gibo-detail-player .gibo-display-actions { display:inline-flex; align-items:center; border-inline-start:1px solid #52677d; padding-inline-start:4px; }
.gibo-display-actions button { width:36px; padding:0; }
.gibo-detail-player.is-large .gibo-tools { padding:10px 16px; font-size:15px; }
.gibo-detail-player.is-large .gibo-transport button { min-width:40px; height:42px; }
.gibo-detail-player.is-large .gibo-options button { min-height:36px; }
.gibo-detail-player.is-full { position:fixed; inset:0; z-index:2147483647; box-sizing:border-box; width:100%; height:100dvh; padding:8px; background:#131d29; display:grid; grid-template-rows:minmax(0,1fr) auto; }
.gibo-detail-player.is-full .gibo-stage { aspect-ratio:auto; }
.gibo-detail-player.is-full .gibo-tools { max-width:1000px; }


.gibo-review-layout { container-type:inline-size; display:grid; grid-template-columns:minmax(0,1fr); gap:20px; align-items:start; }
.gibo-board-column { min-width:0; }
.gibo-analysis-panel { box-sizing:border-box; width:100%; max-width:600px; margin-inline:auto; display:grid; gap:24px; color:#182b43; text-align:start; }
.gibo-analysis-panel[hidden],.gibo-analysis-panel [hidden] { display:none; }
.gibo-analysis-panel output { display:block; margin-block:8px; font-variant-numeric:tabular-nums; }
.gibo-analysis-panel svg { width:100%; height:72px; background:white; cursor:crosshair; }
.gibo-analysis-panel svg * { vector-effect:non-scaling-stroke; }
.gibo-analysis-panel p { margin:10px 0 0; line-height:1.6; white-space:pre-line; overflow-wrap:anywhere; }
.gibo-review-layout.is-wide { grid-template-columns:minmax(0,var(--board-track,2fr)) minmax(0,1fr); }

.gibo-record-info { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,215px),1fr)); gap:16px 24px; align-items:start; margin:28px 0; color:#182b43; }
.gibo-record-info[hidden] { display:none; }
.gibo-record-info > details { grid-column:1/-1; margin:0; }
.gibo-record-info > section { min-width:0; margin:0; border-block-start:2px solid #203b5e; }
.gibo-record-info h3,.gibo-record-info summary { margin:0; padding:10px 8px; font-size:1rem; font-weight:650; }
.gibo-record-info summary { cursor:pointer; border-block-start:1px solid #d5dfe7; }
.gibo-record-info dl { margin:0; display:grid; grid-template-columns:auto minmax(0,1fr); }
.gibo-record-info dt,.gibo-record-info dd { margin:0; padding:7px 8px; border-block-start:1px solid #e2e8ef; font-size:max(16px,1rem); line-height:1.5; overflow-wrap:anywhere; }
.gibo-record-info dt {color:#51647b; background:#f5f7fa;}

.gibo-analysis-panel output:not([hidden]) { display:flex; justify-content:space-between; gap:8px; margin:14px 0 10px; }
.gibo-analysis-panel output b { color:#182b43; font-size:clamp(16px,2cqi,22px); font-weight:650; letter-spacing:-.035em; }
.gibo-analysis-panel output b::before { content:""; display:inline-block; width:.52em; height:.52em; border:1px solid #506079; border-radius:50%; background:#253449; margin-inline-end:.3em; vertical-align:.08em; }
.gibo-analysis-panel output b:last-child::before { background:white; }
.gibo-analysis-panel output b:empty { display:none; }
.gibo-analysis-panel svg { height:88px; border-block-end:1px solid #d2dee8; background:linear-gradient(white,#f7fafc); }

.gibo-review-layout > .gibo-record-info { grid-column:1/-1; width:100%; margin:0; }
.gibo-detail-player .gibo-tools { font-size:15px; }
.gibo-detail-player .gibo-options button { min-height:36px; }
.gibo-analysis-panel p { font-size:16px; line-height:1.65; }
.gibo-film-caption { display:none; }
.gibo-detail-player.is-full .gibo-stage { position:relative; }
.gibo-detail-player.is-full .gibo-film-caption:not(:empty) { display:block; position:absolute; z-index:1; bottom:3%; left:50%; translate:-50% 0; width:max-content; max-width:min(82%,56ch); box-sizing:border-box; padding:.28em .8em; border-radius:4px; background:rgb(10 16 22 / 82%); color:white; text-align:center; text-shadow:0 1px 3px black; font:600 clamp(17px,2.2vw,32px)/1.5 system-ui,sans-serif; pointer-events:none; overflow-wrap:anywhere; }

#viewLayerout.boardView:has(.gibo-review-layout) { width:100%; max-width:none; box-sizing:border-box; padding-inline:clamp(4px,1vw,16px); }


.gibo-forecast { padding:16px; background:#f4f7fa; border-block-start:2px solid #172d53; }
.gibo-forecast:has(output[hidden]) { display:none; }
.gibo-analysis-panel .gibo-forecast svg { display:block; height:clamp(100px,14cqi,156px); }
.gibo-analysis-panel .gibo-subtitles { box-sizing:border-box; min-height:150px; padding:16px 20px 20px; margin:0; border-radius:8px; background:#182b43; color:#fff; display:grid; grid-template-rows:auto 1fr; gap:12px; }
.gibo-analysis-panel .gibo-subtitles h4 { display:flex; gap:8px; align-items:center; margin:0; color:#c7d9e9; font-size:15px; }
.gibo-subtitles h4::before { content:"CC"; border:1px solid currentColor; border-radius:3px; padding:1px 3px; font:700 11px/1.1 system-ui,sans-serif; }
.gibo-analysis-panel .gibo-subtitles p { align-self:center; margin:0; color:#fff; text-align:center; font-size:18px; font-weight:500; line-height:1.6; word-break:keep-all; overflow-wrap:anywhere; }
.gibo-analysis-panel .gibo-subtitles:not(:has(p:not(:empty))), .gibo-review-layout:has(.captions-off) .gibo-subtitles,
.gibo-detail-player.captions-off.is-full .gibo-film-caption:not(:empty) { display:none; }
.gibo-detail-player .gibo-options > button { padding-inline:8px; }
.gibo-detail-player .gibo-display-actions button { padding:0; }

.gibo-review-layout.is-wide .gibo-detail-player:not(.is-full) { width:100%; }
.gibo-review-layout .gibo-record-info { box-sizing:border-box; gap:8px 18px; padding:14px 16px; border-block:1px solid #d4dfe9; background:#f7f9fb; }
.gibo-review-layout .gibo-record-info > section { border:0; }
.gibo-review-layout .gibo-record-info h3 { padding:4px 0 8px; font-size:max(18px,1.1rem); }
.gibo-review-layout .gibo-record-info :is(dt,dd) { padding:6px 8px; }

.gibo-review-layout .gibo-record-info dd { font-size:max(17px,1.05rem); }
@container (min-width:1030px) {
    .gibo-record-info:has(> section:nth-of-type(3)) { grid-template-columns:minmax(495px,1.8fr) minmax(138px,.56fr) minmax(320px,1.15fr); }
}
@container (min-width:560px) and (max-width:1029px) {
    .gibo-record-info:has(> section:nth-of-type(3)) { grid-template-columns:minmax(0,1fr) minmax(320px,1.3fr); }
    .gibo-record-info:has(> section:nth-of-type(3)) > section:first-of-type { grid-column:1/-1; }
}

.gibo-game-conditions { container-type:inline-size; }
@container (min-width:320px) {
    .gibo-game-conditions dl { grid-template-columns:auto minmax(0,1fr) auto minmax(0,1fr); }
    .gibo-game-conditions dl > dd:last-child:nth-child(4n + 2) { grid-column:span 3; }
}

.gibo-info-stone { display:inline-block; box-sizing:border-box; width:14px; height:14px; vertical-align:middle; border:1px solid #9ca6b0; border-radius:50%; background:radial-gradient(circle at 35% 28%,white 30%,#e4e7ea); }
.gibo-info-stone.black { border-color:#252b30; background:radial-gradient(circle at 35% 28%,#646a70,#161b20 75%); }

.gibo-tools { position:relative; container-type:inline-size; }
.gibo-tools .gibo-corner-mark { display:inline-flex; align-items:center; justify-self:end; gap:3px; padding:2px 4px; color:#e5eff6; font:500 11px/1.35 system-ui,sans-serif; text-decoration:none; white-space:nowrap; }
.gibo-corner-mark strong { color:#f3f8fb; font-weight:700; }
.gibo-corner-mark svg { width:17px; height:17px; }
.gibo-tools .gibo-corner-mark:hover,.gibo-tools .gibo-corner-mark:focus-visible { color:white; text-decoration:underline; }
.gibo-tools > .gibo-timeline { grid-area:1/1; }
.gibo-tools > .gibo-transport { grid-area:2/1; }
.gibo-tools > .gibo-options { grid-area:3/1; }
.gibo-tools > .gibo-corner-mark { grid-area:3/1; align-self:center; margin-top:5px; }
.gibo-tools > .gibo-options { padding-inline:108px; }
@container (max-width:675px) {
    .gibo-tools > .gibo-options { padding-inline:0; }
    .gibo-tools > .gibo-corner-mark { grid-row:2; margin-top:0; }
    .gibo-tools > .gibo-transport { padding-inline-end:108px; }
}
@container (max-width:420px) {
    .gibo-tools > .gibo-corner-mark { grid-row:1; }
    .gibo-tools > .gibo-timeline { margin-inline-end:144px; }
    .gibo-tools > .gibo-transport { padding-inline-end:0; }
}
