/* 로그인 화면 게임 허브 (2026-11-16) gate-hub.js · student.html #gate.gate-hub
   게임 허브(game-plaza.css .gh)와 같은 남색 바탕·큰 카드·게임 줄을 쓰고, 그 위에 로그인 칸만 흰 카드로 얹는다.
   assessment-entry.css(예전 두 칸 로그인 화면)보다 뒤에 읽어서 덮어쓴다. */
.student-entry.gate.gate-hub{display:block;max-width:min(1180px,calc(100% - 32px));margin:22px auto 32px;padding:22px;border:0;border-radius:24px;overflow:visible;background:linear-gradient(160deg,#1e1b4b,#312e81 55%,#3b2f8f);color:#eef2ff;box-shadow:0 12px 36px rgba(30,27,75,.22)}

/* 머리: 제목·안내·숫자 */
.gate-hub .gate-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 20px;margin-bottom:16px}
.gate-hub .gate-kicker{margin:0 0 6px;color:#facc15;font-size:13px;font-weight:800;letter-spacing:.03em}
.gate-hub .gate-head h1{margin:0;font-size:28px;line-height:1.25;letter-spacing:-.02em;color:#fff}
.gate-hub .gate-lead{margin:6px 0 0;color:#c7d2fe;font-size:14px;line-height:1.6}
.gate-hub .gp-stat{background:rgba(255,255,255,.08);border-color:rgba(199,210,254,.25)}
.gate-hub .gp-stat strong{color:#fff}
.gate-hub .gp-stat span{color:#c7d2fe}
.gate-hub:not(.gate-hub-ready) .gp-stats{display:none}

/* 위: 큰 게임 카드 + 로그인 칸 */
.gate-hub .gate-top{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(330px,1fr);gap:16px;align-items:stretch}
.gate-hub .gate-top:has(>#gateHero[hidden]){grid-template-columns:minmax(0,520px);justify-content:center}
.gate-hub.review-login-selected .gate-top{grid-template-columns:minmax(0,1fr) minmax(330px,1fr)}
.gate-hub.review-login-selected #gateHero{display:none}
.gate-hub #gateHero{min-height:360px}
.gate-hub #gateHero[hidden]{display:none}
.gate-hub .gh-hero-body p{margin:0}
.gate-hub .gh-hero-body .gh-kicker{margin:0}
.gate-hub .gh-hero-name{font-size:30px;line-height:1.25}
.gate-hub .gh-hero-desc{color:#e0e7ff;font-size:15px}
.gate-hub .gp-gate{color:#fde68a;font-size:13px}
.gate-hub .gate-hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin-top:6px}
.gate-hub .gate-hero-actions .gh-hero-go{margin-top:0}
.gate-hub .gate-guest{display:inline-flex;align-items:center;min-height:44px;padding:6px 4px;color:#e0e7ff;font-size:14px;font-weight:700;text-decoration:underline;text-underline-offset:4px}
.gate-hub .gate-guest:hover{color:#fff}
.gate-hub .gate-hero-note{margin:4px 0 0;max-width:42em;color:#c7d2fe;font-size:12px;line-height:1.6}
.gate-hub .gate-guest:focus-visible,.gate-hub .gh-hero-go:focus-visible{outline:3px solid #facc15;outline-offset:3px}

/* 로그인 칸(흰 카드) */
.gate-hub .student-entry-login{align-self:stretch;padding:26px 26px 20px;border-radius:18px;background:#fff;color:var(--ink,#1e1b4b);box-shadow:0 10px 30px rgba(15,13,46,.28)}
.gate-hub .student-entry-login h2{margin:0 0 12px;font-size:23px}
.gate-hub .student-entry-login>div>p:first-child{margin-bottom:16px}
.gate-hub .gate-pick{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:0 0 14px;padding:9px 12px;border:1px solid #fde68a;border-radius:12px;background:#fffbeb;color:#713f12;font-size:13px;line-height:1.5}
.gate-hub .gate-pick[hidden]{display:none}
.gate-hub .gate-pick-label{padding:1px 8px;border-radius:999px;background:#facc15;color:#422006;font-size:12px;font-weight:800}
.gate-hub .gate-pick b{font-size:14px}
.gate-hub .gate-pick-tail{color:#92400e;font-size:12px}
.gate-hub .student-entry-footer{margin-top:18px;padding-top:14px}
.gate-hub #reviewLoginIntro{border-radius:18px}

/* 단원평가 한 줄 카드 */
.gate-hub .student-entry-intro{display:grid;grid-template-columns:56px minmax(0,1fr) auto;column-gap:16px;align-items:center;margin:16px 0 0;padding:16px 20px;border:1px solid rgba(199,210,254,.28);border-radius:18px;background:rgba(255,255,255,.07);color:#eef2ff}
.gate-hub .student-entry-intro[hidden]{display:none!important}
.gate-hub .student-entry-intro .assessment-entry-icon{grid-row:1/span 3;width:56px;height:56px;margin:0;font-size:28px;border-radius:16px;float:none}
.gate-hub .student-entry-intro .assessment-entry-kicker{grid-column:2;margin:0;color:#facc15;font-size:12px}
.gate-hub .student-entry-intro h1{grid-column:2;margin:2px 0 0;min-height:0;font-size:20px;line-height:1.35;letter-spacing:0;color:#fff}
.gate-hub .student-entry-intro .assessment-entry-description,.gate-hub .student-entry-intro .assessment-entry-steps{display:none}
.gate-hub .student-entry-intro .assessment-entry-rule{grid-column:2;margin:4px 0 0;padding:0;border:0;background:none}
.gate-hub .student-entry-intro .assessment-entry-rule b{display:inline;margin:0;font-size:13px;color:#fde68a}
.gate-hub .student-entry-intro .assessment-entry-rule span{display:inline;margin-left:6px;font-size:13px;color:#c7d2fe}
.gate-hub .student-entry-intro .assessment-entry-rule br{display:none}
.gate-hub .student-entry-intro .assessment-entry-cta{grid-column:3;grid-row:1/span 3;width:auto;min-height:46px;padding:10px 18px;border-color:#fff;background:#fff;color:#312e81;box-shadow:none;font-size:15px}
.gate-hub .student-entry-intro .assessment-entry-cta:hover{background:#eef2ff;color:#312e81}
.gate-hub .student-entry-intro .assessment-entry-note{grid-column:2/4;min-height:0;margin:8px 0 0;color:#c7d2fe;font-size:12px}
.gate-hub .student-entry-intro .assessment-entry-note:empty{display:none}

/* 아래: 게임 줄 (모양은 game-plaza.css .gh-row·.gh-tile) */
.gate-hub #gateRows[hidden],.gate-hub.review-login-selected #gateRows{display:none}
.gate-hub .gh-row{margin-top:20px}
.gate-hub .gh-row-head{flex-wrap:wrap;justify-content:flex-start;gap:2px 12px;margin-bottom:8px}
.gate-hub .gh-row-title{margin:0}
.gate-hub .gate-row-note{margin:0;color:#c7d2fe;font-size:13px}
.gate-hub .gh-tile{border:1px solid rgba(199,210,254,.2);border-radius:14px;background:rgba(255,255,255,.06);color:#eef2ff;box-shadow:none}
.gate-hub .gh-tile:hover{border-color:#facc15;color:#eef2ff}
.gate-hub .gh-tile.is-picked{border-color:#facc15;box-shadow:0 0 0 2px #facc15}

@media(max-width:860px){
  .gate-hub .gate-top,.gate-hub.review-login-selected .gate-top{grid-template-columns:minmax(0,1fr)}
  .gate-hub .student-entry-login{order:-1}
  /* 좁은 화면: 그림 위·글 아래로 나눠 글이 게임 그림 위에 겹치지 않게 */
  .gate-hub #gateHero{min-height:0;justify-content:flex-start}
  .gate-hub #gateHero .gh-hero-pic{position:relative;inset:auto;aspect-ratio:16/9}
  .gate-hub #gateHero::after{display:none}
  .gate-hub #gateHero .gh-hero-body{padding:14px 16px 16px}
}
@media(max-width:600px){
  .student-entry.gate.gate-hub{max-width:calc(100% - 16px);margin:8px auto 20px;padding:14px;border-radius:18px}
  .gate-hub .gate-head h1{font-size:23px}
  .gate-hub .gate-lead{font-size:13px}
  .gate-hub .gp-stats{width:100%}
  .gate-hub .gp-stat{flex:1;min-width:0;padding:6px 8px}
  .gate-hub .student-entry-login{padding:20px 18px 16px}
  .gate-hub .gh-hero-name{font-size:23px}
  .gate-hub .gate-hero-actions .gh-hero-go{width:100%;justify-content:center}
  .gate-hub .student-entry-intro{grid-template-columns:44px minmax(0,1fr);padding:14px}
  .gate-hub .student-entry-intro .assessment-entry-icon{width:44px;height:44px;font-size:24px;border-radius:13px}
  .gate-hub .student-entry-intro .assessment-entry-cta{grid-column:1/3;grid-row:auto;width:100%;margin-top:12px}
  .gate-hub .student-entry-intro .assessment-entry-rule span{display:block;margin:2px 0 0}
  .gate-hub .gate-row-note{display:none}
}
/* ===== 2026-11-18 단순하게: 왼쪽 묶음 그림 세 개, 아래 줄바꿈 칸 (gate-hub.js gate-hub-v2) ===== */
.gate-hub #gateHero.gate-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-self:start;align-items:start;gap:12px;min-height:0;padding:0;background:none;border-radius:0;overflow:visible}
.gate-hub #gateHero.gate-groups::after{display:none}
.gate-hub #gateHero.gate-groups[hidden]{display:none}
.gate-group{display:flex;flex-direction:column;min-width:0;padding:8px;border:1px solid rgba(199,210,254,.25);border-radius:18px;background:rgba(255,255,255,.07);color:#fff;font:inherit;text-align:left;cursor:pointer;transition:transform .12s ease,border-color .12s ease}
.gate-group:hover{transform:translateY(-2px);border-color:#facc15}
.gate-group:focus-visible{outline:3px solid #facc15;outline-offset:2px}
.gate-group-pic{position:relative;aspect-ratio:1/1;overflow:hidden;border:2px solid rgba(255,255,255,.9);border-radius:12px;background:#e2e8f0}
.gate-group-pic img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.gate-group-cap{display:flex;align-items:baseline;justify-content:space-between;gap:6px;padding:10px 4px 2px}
.gate-group-cap strong{font-size:17px;line-height:1.3;word-break:keep-all}
.gate-group-cap small{flex:none;padding:1px 9px;border-radius:999px;background:rgba(255,255,255,.16);color:#e0e7ff;font-size:13px;font-weight:800}
.gate-group[data-group=learn] .gate-group-cap small{background:#2563eb;color:#fff}
.gate-group[data-group=science] .gate-group-cap small{background:#16a34a;color:#fff}
.gate-group[data-group=together] .gate-group-cap small{background:#ea580c;color:#fff}
.gate-hub .gate-pick-guest{margin-left:auto;color:#92400e;font-size:13px;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.gate-hub .gh-row{scroll-margin-top:12px}
@media(max-width:860px){
  .gate-hub #gateHero.gate-groups{order:2}
  .gate-group-pic{aspect-ratio:4/3}
}
@media(max-width:600px){
  .gate-hub #gateHero.gate-groups{gap:6px}
  .gate-group{padding:5px;border-radius:14px}
  .gate-group-cap{flex-direction:column;align-items:flex-start;gap:2px;padding:6px 2px 2px}
  .gate-group-cap strong{font-size:13px}
  .gate-group-cap small{font-size:11px}
}
