@font-face {
  font-family: "GomgomKkalkkeum";
  src: url("/fonts/gomgom-kkalkkeum/GomgomKkalkkeum-Regular.woff2") format("woff2");
  font-display: swap;
}

body.gg-portal-game {
  font-family: "GomgomKkalkkeum", "Noto Sans KR", system-ui, sans-serif;
}

body.gg-portal-game.teacher-game-page {
  --tg-paper: #faf8f4;
  --tg-panel: #fffefa;
  --tg-ink: #263341;
  --tg-muted: #61717a;
  --tg-line: #d8e1e4;
  --tg-dark: #2e67b7;
  --tg-orange: #2e67b7;
}

body.gg-portal-game.angry-page {
  --paper: #faf8f4;
  --ink: #263341;
  --line: #d8e1e4;
}

body.gg-portal-game.angry-page .rank-button {
  color: var(--ink);
}

body.gg-portal-game.angry-page .world-tabs button[aria-selected="true"],
body.gg-portal-game.angry-page .primary-action {
  border-color: #2e67b7;
  background: #2e67b7 !important;
  color: #fff;
}

body.gg-portal-game:has(.play-header) {
  --class-bg: #faf8f4;
  --class-primary: #2e67b7;
  --class-border: #d8e1e4;
}

body.gg-portal-game .welcome-view {
  grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
  align-items: center;
  min-height: min(68svh, 540px);
}
body.gg-portal-game .welcome-preview img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--class-border);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgb(37 58 80 / 11%);
}

body.gg-portal-game:has(.topbar) {
  --paper: #faf8f4;
  --ink: #263341;
  --line: #d8e1e4;
  background: var(--paper);
}
body.gg-portal-game:has(.topbar) #clearMode,
body.gg-portal-game:has(.topbar) .record-tabs button[aria-pressed="true"] {
  border-color: #2e67b7;
  background: #2e67b7;
}

body.gg-portal-game .play-update-log {
  border-color: #d8e1e4;
  color: #263341;
  background: #fffefa;
}
body.gg-portal-game .play-update-log li { border-color: #e4e9e7; }
body.gg-portal-game .play-update-log time { color: #64727d; }

.gg-site-strip {
  position: relative;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-bottom: 1px solid #dedbd0;
  background: #fffdf9;
  color: #273738;
  font-family: "GomgomKkalkkeum", "Noto Sans KR", system-ui, sans-serif;
}
.gg-site-strip nav { display: flex; align-items: center; justify-content: center; gap: 2px; }
.gg-site-strip a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  color: #596967;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.gg-site-strip a:hover,
.gg-site-strip a[aria-current="page"] { color: #286a4d; text-decoration: underline; text-underline-offset: 6px; }
.gg-site-strip a:focus-visible { outline: 2px solid #286a4d; outline-offset: 2px; }
.gg-site-strip-utility { position: absolute; right: max(15px, env(safe-area-inset-right)); }

@media (max-width: 720px) {
  .gg-site-strip { display: grid; min-height: 88px; grid-template-rows: 44px 44px; }
  .gg-site-strip-utility { position: static; }
  .gg-site-strip a { padding-inline: 10px; font-size: 12px; }
}

@media (max-width: 800px) {
  body.gg-portal-game .welcome-view {
    grid-template-columns: 1fr;
    gap: 20px;
    min-height: 0;
  }
}
