/* 게임 안내 창 1.0 (2026-11-22) game-guide.js */
.gg-wrap{--gg-ink:#1e1b4b;--gg-mute:#5b6178;--gg-line:#e2e5f1;--gg-soft:#f5f6fd;--gg-main:#4338ca;--gg-main-soft:#eef0ff;--gg-star:#b45309;
  position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(15,13,46,.62);font-family:inherit;color:var(--gg-ink)}
html.gg-open{overflow:hidden}
.gg-dlg,.gg-page{word-break:keep-all;overflow-wrap:break-word}
.gg-dlg{position:relative;display:flex;flex-direction:column;width:min(880px,100%);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:hidden;border-radius:20px;background:#fff;box-shadow:0 20px 60px rgba(15,13,46,.45)}
.gg-x{position:absolute;top:10px;right:10px;z-index:2;width:38px;height:38px;border:0;border-radius:50%;background:rgba(15,13,46,.6);color:#fff;font-size:17px;cursor:pointer}
.gg-x:hover{background:rgba(15,13,46,.85)}
.gg-head{display:flex;gap:16px;align-items:center;padding:16px 56px 12px 18px;border-bottom:1px solid var(--gg-line,#e2e5f1)}
.gg-pic{flex:0 0 168px;aspect-ratio:16/9;overflow:hidden;border-radius:12px;background:#e8ebf7}
.gg-pic img{width:100%;height:100%;object-fit:cover;display:block}
.gg-title{min-width:0}
.gg-kind{display:inline-block;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:800;background:#eef0ff;color:#3730a3}
.gg-kind-science{background:#dcfce7;color:#166534}
.gg-kind-together{background:#e0e7ff;color:#3730a3}
.gg-kind-learn{background:#fef3c7;color:#92400e}
.gg-kind-class{background:#fce7f3;color:#9d174d}
.gg-kind-play{background:#ffe4e6;color:#9f1239}
.gg-name{margin:6px 0 0;font-size:22px;line-height:1.3;text-wrap:balance}
.gg-one{margin:4px 0 0;color:var(--gg-mute,#5b6178);font-size:14px;line-height:1.5;text-wrap:pretty}
.gg-tabs{display:flex;gap:6px;padding:10px 18px 0;border-bottom:1px solid var(--gg-line,#e2e5f1)}
.gg-tab{min-height:42px;padding:8px 18px;border:1px solid transparent;border-bottom:0;border-radius:12px 12px 0 0;background:transparent;color:var(--gg-mute,#5b6178);font:inherit;font-size:15px;font-weight:800;cursor:pointer;margin-bottom:-1px}
.gg-tab:hover{color:var(--gg-main,#4338ca)}
.gg-tab.is-on{background:#fff;border-color:var(--gg-line,#e2e5f1);color:var(--gg-main,#4338ca);box-shadow:inset 0 3px 0 var(--gg-main,#4338ca)}
.gg-tab:focus-visible,.gg-btn:focus-visible,.gg-go:focus-visible,.gg-more:focus-visible,.gg-x:focus-visible{outline:3px solid #a5b4fc;outline-offset:2px}
.gg-body{flex:1 1 auto;min-height:0;overflow:auto;padding:6px 18px 16px;overscroll-behavior:contain}
.gg-sec{margin-top:14px}
.gg-h{margin:0 0 6px;font-size:15px;color:var(--gg-main,#4338ca)}
.gg-p{margin:0;font-size:15px;line-height:1.7;text-wrap:pretty}
.gg-note{margin:6px 0 0;color:var(--gg-mute,#5b6178);font-size:13px;line-height:1.6;text-wrap:pretty}
.gg-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:12px 0 0}
.gg-fact{padding:8px 12px;border:1px solid var(--gg-line,#e2e5f1);border-radius:12px;background:var(--gg-soft,#f5f6fd)}
.gg-fact dt{font-size:12px;color:var(--gg-mute,#5b6178)}
.gg-fact dd{margin:2px 0 0;font-size:14px;font-weight:700;line-height:1.45;text-wrap:balance}
.gg-flow{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px;margin:0;padding:0;list-style:none}
.gg-flow-i{position:relative;display:flex;flex-direction:column;gap:4px;padding:12px 12px 12px 48px;border:1px solid var(--gg-line,#e2e5f1);border-radius:14px;background:#fff}
.gg-flow-n{position:absolute;left:12px;top:12px;width:26px;height:26px;border-radius:50%;background:var(--gg-main,#4338ca);color:#fff;font-size:14px;font-weight:800;display:grid;place-items:center}
.gg-flow-t{font-size:15px;line-height:1.4}
.gg-flow-d{font-size:13px;line-height:1.55;color:var(--gg-mute,#5b6178);text-wrap:pretty}
.gg-chips{display:flex;flex-wrap:wrap;gap:6px}
.gg-chip{padding:5px 11px;border-radius:999px;background:var(--gg-main-soft,#eef0ff);color:#312e81;font-size:13px;font-weight:700}
.gg-list,.gg-steps{margin:0;padding-left:22px;font-size:15px;line-height:1.7}
.gg-list li,.gg-steps li{margin:2px 0;text-wrap:pretty}
.gg-steps li::marker{font-weight:800;color:var(--gg-main,#4338ca)}
.gg-goal{padding:12px 14px;border-radius:14px;background:#fffbeb;border:1px solid #fde68a}
.gg-goal .gg-h{color:#92400e}
.gg-star .gg-h{color:var(--gg-star,#b45309)}
.gg-keys{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:6px 14px}
.gg-key{display:flex;align-items:center;gap:10px;min-height:34px}
.gg-kbd-wrap{display:flex;flex-wrap:wrap;gap:4px;flex:0 0 auto;max-width:55%}
.gg-kbd{display:inline-block;min-width:28px;padding:3px 8px;border:1px solid #c7cbe0;border-bottom-width:3px;border-radius:8px;background:#fff;font-family:inherit;font-size:13px;font-weight:800;text-align:center;white-space:nowrap}
.gg-key-d{font-size:14px;line-height:1.5}
.gg-foot{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 18px;border-top:1px solid var(--gg-line,#e2e5f1);background:#fafbff}
.gg-go{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 22px;border:0;border-radius:12px;background:var(--gg-main,#4338ca);color:#fff;font:inherit;font-size:16px;font-weight:800;text-decoration:none;cursor:pointer}
.gg-go:hover{filter:brightness(1.08)}
.gg-go:disabled{background:#9ca3af;cursor:not-allowed}
.gg-more{display:inline-flex;align-items:center;min-height:40px;padding:6px 14px;border:1px solid #c7d2fe;border-radius:10px;background:#fff;color:#3730a3;font-size:14px;font-weight:700;text-decoration:none}
.gg-all{margin-left:auto}
/* 카드에 붙는 단추 한 쌍 */
.gg-btns{display:flex;gap:6px;flex-wrap:wrap}
.gg-btn{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:4px 12px;border:1px solid #c7d2fe;border-radius:999px;background:#fff;color:#3730a3;font:inherit;font-size:13px;font-weight:800;cursor:pointer;white-space:nowrap}
.gg-btn:hover{background:#eef0ff}
.gg-btns.is-dark .gg-btn{background:rgba(255,255,255,.1);border-color:rgba(199,210,254,.45);color:#e0e7ff}
.gg-btns.is-dark .gg-btn:hover{background:rgba(255,255,255,.2)}
/* 페이지 안(games-guide.html) */
.gg-page{display:flex;flex-direction:column;border:1px solid #e2e5f1;border-radius:20px;background:#fff;overflow:hidden;color:#1e1b4b}
.gg-page .gg-head{padding-right:18px}
.gg-body-page{overflow:visible}
.gg-foot-page{background:#fafbff}
@media (max-width:700px){
  .gg-wrap{padding:8px}
  .gg-dlg{max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);border-radius:16px}
  .gg-head{gap:12px;padding:12px 52px 10px 12px}
  .gg-pic{flex-basis:96px}
  .gg-name{font-size:18px}
  .gg-one{display:none}
  .gg-tabs{padding:8px 12px 0}
  .gg-tab{flex:1;padding:8px 6px;font-size:14px}
  .gg-body{padding:4px 12px 12px}
  .gg-foot{padding:10px 12px}
  .gg-go{flex:1 1 100%}
  .gg-all{margin-left:0}
}
/* 1024x600·1366x630처럼 낮은 창: 머리를 줄여 본문 자리를 늘린다 */
@media (max-height:680px){
  .gg-head{padding-top:10px;padding-bottom:8px}
  .gg-pic{flex-basis:120px}
  .gg-name{font-size:19px;margin-top:4px}
  .gg-tabs{padding-top:6px}
  .gg-tab{min-height:38px;padding:6px 16px}
  .gg-foot{padding:8px 18px}
  .gg-go{min-height:40px}
}
