/* Game Guide — tabbed full-screen (prefix: game-guide-) */

body.game-guide-active {
  background:
    radial-gradient(ellipse 80% 60% at 15% 0%, rgba(40, 90, 150, 0.35), transparent 55%),
    linear-gradient(180deg, #07101c 0%, #0a1524 50%, #0c1828 100%);
}

.game-guide-scene {
  --gg-text: #17324a;
  --gg-muted: #5a738a;
  --gg-title: #e8f4ff;
  --gg-cyan: #3aa8c5;
  --gg-blue: #3d8fd4;
  --gg-blue-deep: #2a6fad;
  --gg-panel: rgba(248, 252, 255, 0.94);
  --gg-border: rgba(150, 190, 220, 0.45);
  --gg-radius: 14px;

  position: relative;
  width: 1920px;
  height: 1080px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--gg-text);
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(70, 140, 200, 0.14), transparent 42%),
    linear-gradient(180deg, #0a1422 0%, #102033 150px, #e8f2fa 150px, #eef6fc 100%);
}

.game-guide-header {
  position: sticky;
  top: 0;
  z-index: 30;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 10px 36px 12px;
  background: linear-gradient(180deg, rgba(8, 18, 32, 0.97) 0%, rgba(12, 24, 40, 0.94) 100%);
  border-bottom: 1px solid rgba(90, 150, 190, 0.28);
  box-sizing: border-box;
}

.game-guide-header-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  min-height: 52px;
}

.game-guide-header-row__left {
  justify-self: start;
}

.game-guide-header-row__right {
  justify-self: end;
  min-width: 220px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.game-guide-back-btn {
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(120, 180, 220, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #d7ecff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.game-guide-title {
  grid-column: 2;
  justify-self: center;
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  color: var(--gg-title);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.game-guide-role-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 268px;
  height: 36px;
  padding: 3px;
  box-sizing: border-box;
  gap: 0;
  background: rgba(6, 24, 41, 0.9);
  border: 1px solid rgba(95, 156, 190, 0.55);
  border-radius: 9px;
}

.game-guide-role-tab {
  min-width: 0;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(220, 235, 245, 0.84);
  font-size: 14px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

.game-guide-role-tab.is-active {
  color: #ffffff;
  background: #338fbd;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.game-guide-detail-tabs {
  display: grid;
  gap: 6px;
  margin: 4px auto 0;
  box-sizing: border-box;
}

.game-guide-detail-tabs--main {
  grid-template-columns: repeat(2, 1fr);
  width: 500px;
  max-width: calc(100% - 40px);
  height: 42px;
}

.game-guide-detail-tabs--teacher {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(1100px, calc(100% - 40px));
  height: 42px;
}

.game-guide-detail-tab {
  min-width: 0;
  height: 42px;
  padding: 0 22px;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid rgba(86, 143, 178, 0.6);
  background: rgba(8, 28, 47, 0.76);
  color: rgba(222, 236, 246, 0.88);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.game-guide-detail-tab.is-active {
  color: #ffffff;
  background: #338fbd;
  border-color: rgba(124, 205, 239, 0.82);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.game-guide-panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px 40px 28px;
}

.game-guide-pane {
  max-width: 1760px;
  margin: 0 auto;
}

.game-guide-lead {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.55;
  color: #2a4a64;
}

.game-guide-hero {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 18px;
  align-items: center;
  padding: 22px 26px;
  border-radius: 18px;
  background: var(--gg-panel);
  border: 1px solid var(--gg-border);
  margin-bottom: 14px;
}

.game-guide-hero-title {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 900;
  color: #123552;
}

.game-guide-hero-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--gg-muted);
}

.game-guide-robok {
  width: 150px;
  height: auto;
  justify-self: end;
}

.game-guide-summary-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.game-guide-summary-row article {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--gg-panel);
  border: 1px solid var(--gg-border);
}

.game-guide-summary-row h4 {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--gg-blue-deep);
  font-weight: 800;
}

.game-guide-summary-row p {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #16344c;
  line-height: 1.35;
}

.game-guide-flow-row {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  counter-reset: ggflow;
}

.game-guide-flow-row--wrap {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.game-guide-flow-row li {
  position: relative;
  padding: 14px 14px 14px 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(150, 190, 220, 0.45);
  font-size: 14px;
  font-weight: 800;
  color: #1d4f6e;
  counter-increment: ggflow;
}

.game-guide-flow-row li::before {
  content: counter(ggflow);
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gg-cyan);
  color: #fff;
  font-size: 12px;
  display: grid;
  place-items: center;
}

.game-guide-step-inline {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  counter-reset: ggstep;
}

.game-guide-step-inline li {
  padding: 12px 10px 12px 34px;
  border-radius: 12px;
  background: var(--gg-panel);
  border: 1px solid var(--gg-border);
  font-size: 13px;
  font-weight: 700;
  color: #1f5474;
  position: relative;
  counter-increment: ggstep;
  line-height: 1.35;
}

.game-guide-step-inline li::before {
  content: counter(ggstep);
  position: absolute;
  left: 10px;
  top: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gg-blue);
  color: #fff;
  font-size: 11px;
  display: grid;
  place-items: center;
}

.game-guide-stage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.game-guide-stage-card {
  border-radius: 14px;
  background: var(--gg-panel);
  border: 1px solid var(--gg-border);
  overflow: hidden;
}

.game-guide-stage-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: 96px 1fr 24px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.game-guide-stage-thumb {
  width: 96px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
}

.game-guide-stage-num {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--gg-cyan);
}

.game-guide-stage-toggle strong {
  display: block;
  font-size: 16px;
  color: #14344f;
}

.game-guide-stage-toggle span:last-of-type {
  font-size: 13px;
  color: var(--gg-muted);
}

.game-guide-stage-detail {
  padding: 0 14px 12px;
  font-size: 14px;
  color: var(--gg-muted);
  line-height: 1.5;
}

.game-guide-stage-detail-list {
  margin: 0;
  padding-left: 18px;
}

.game-guide-feature-shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.game-guide-shot-card,
.game-guide-media-card {
  border-radius: 14px;
  background: var(--gg-panel);
  border: 1px solid var(--gg-border);
  padding: 10px;
}

.game-guide-shot-card h4,
.game-guide-media-card h4,
.game-guide-mini-card h4 {
  margin: 8px 0 4px;
  font-size: 15px;
  color: #14344f;
}

.game-guide-shot-card p,
.game-guide-mini-card p,
.game-guide-role-text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--gg-muted);
}

.game-guide-shot-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  border-radius: 10px;
  overflow: hidden;
}

.game-guide-shot-btn img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  border: 1px solid rgba(120, 160, 190, 0.35);
  background: #0b1626;
}

.game-guide-media-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.game-guide-media-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 12px;
  align-items: start;
}

.game-guide-media-card .game-guide-shot-btn img {
  height: 150px;
}

.game-guide-media-card ul {
  margin: 0 0 6px;
  padding-left: 18px;
  font-size: 13px;
  color: #35586f;
  line-height: 1.45;
}

.game-guide-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 14px;
  margin-bottom: 12px;
}

.game-guide-split--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-guide-subhead {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: #14344f;
}

.game-guide-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.game-guide-mini-grid--tools {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-guide-mini-grid--record {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.game-guide-mini-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(150, 190, 220, 0.4);
}

.game-guide-tag {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(58, 143, 212, 0.12);
  color: #1f5a82;
}

.game-guide-tag.is-soon {
  background: rgba(180, 140, 40, 0.14);
  color: #7a5a10;
}

.game-guide-tag.is-assigned {
  background: rgba(40, 140, 100, 0.12);
  color: #1f6a4a;
}

.game-guide-note {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(58, 168, 197, 0.1);
  border: 1px solid rgba(58, 168, 197, 0.22);
  color: #2a6078;
  font-size: 13px;
  line-height: 1.45;
}

.game-guide-note--soft {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(150, 180, 205, 0.45);
  color: #4a6578;
}

.game-guide-bullet-list {
  margin: 0;
  padding-left: 18px;
  color: #35586f;
  font-size: 14px;
  line-height: 1.55;
}

.game-guide-bullet-list code,
.game-guide-note code {
  font-size: 12px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(40, 90, 140, 0.08);
}

.game-guide-footer,
.game-guide-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.game-guide-btn {
  min-width: 148px;
  height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.game-guide-btn-primary {
  background: linear-gradient(180deg, #4aa3d8 0%, #2f7fbc 100%);
  color: #fff;
}

.game-guide-btn-secondary {
  background: rgba(58, 168, 197, 0.14);
  color: #1f6a82;
  border-color: rgba(58, 168, 197, 0.35);
}

.game-guide-btn-soft {
  background: #fff;
  color: #1f5a7a;
  border-color: rgba(140, 185, 215, 0.7);
}

.game-guide-btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  color: #35556e;
  border-color: rgba(150, 180, 205, 0.55);
}

.game-guide-message {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  margin: 0;
  max-width: 70%;
  text-align: center;
  color: #d7ecff;
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.game-guide-lightbox {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(4, 12, 22, 0.78);
  cursor: zoom-out;
}

.game-guide-lightbox img {
  max-width: min(1600px, 92%);
  max-height: 86%;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(180, 210, 230, 0.35);
  background: #0b1626;
  cursor: default;
}

.game-guide-lightbox-close {
  position: absolute;
  top: 24px;
  right: 36px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(160, 200, 230, 0.4);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 1400px) {
  .game-guide-stage-grid,
  .game-guide-feature-shots,
  .game-guide-summary-row,
  .game-guide-flow-row,
  .game-guide-flow-row--wrap,
  .game-guide-mini-grid--record {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-guide-step-inline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .game-guide-media-card {
    grid-template-columns: 1fr;
  }
}

/* Final information architecture — guide-scene scoped overrides */
.game-guide-scene .game-guide-header {
  padding: 10px 48px 12px;
  gap: 6px;
}

.game-guide-scene .game-guide-title {
  font-size: 32px;
  font-weight: 900;
}

.game-guide-scene .game-guide-role-tabs {
  width: 268px;
  height: 36px;
}

.game-guide-scene .game-guide-role-tab {
  min-width: 0;
  height: 28px;
  font-size: 14px;
}

.game-guide-scene .game-guide-detail-tabs--main {
  width: 500px;
  max-width: calc(100% - 40px);
  height: 42px;
  margin: 4px auto 0;
}

.game-guide-scene .game-guide-detail-tabs--teacher {
  width: min(1100px, calc(100% - 40px));
  height: 42px;
  margin: 4px auto 0;
}

.game-guide-scene .game-guide-detail-tab {
  height: 42px;
  font-size: 16px;
  border-radius: 8px;
  padding: 0 22px;
}

.game-guide-scene .game-guide-role-tab.is-active {
  background: #338fbd;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.game-guide-scene .game-guide-detail-tab.is-active {
  background: #338fbd;
  border-color: rgba(124, 205, 239, 0.82);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.game-guide-scene .game-guide-panel {
  padding: 24px 54px 32px;
}

.game-guide-scene .game-guide-pane {
  max-width: 1780px;
  min-height: 100%;
}

.game-guide-scene .game-guide-section-heading {
  text-align: center;
  margin: 0 auto 22px;
}

.game-guide-scene .game-guide-eyebrow {
  display: inline-block;
  margin-bottom: 7px;
  color: #2d769f;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.game-guide-scene .game-guide-section-heading h2 {
  margin: 0 0 10px;
  color: #123a59;
  font-size: 34px;
  line-height: 1.24;
  font-weight: 900;
}

.game-guide-scene .game-guide-section-heading p {
  margin: 0;
  color: #506d82;
  font-size: 18px;
  line-height: 1.55;
}

.game-guide-scene .game-guide-hero--image {
  grid-template-columns: minmax(540px, 0.82fr) minmax(760px, 1.18fr);
  min-height: 700px;
  margin: 0;
  padding: 0;
  gap: 0;
  overflow: hidden;
  background: #f8fbfe;
}

.game-guide-scene .game-guide-hero-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 62px;
}

.game-guide-scene .game-guide-hero-title {
  margin: 0 0 24px;
  font-size: 44px;
  line-height: 1.25;
}

.game-guide-scene .game-guide-hero-text {
  font-size: 21px;
  line-height: 1.65;
}

.game-guide-scene .game-guide-hero-copy .game-guide-footer {
  justify-content: flex-start;
  margin-top: 38px;
}

.game-guide-scene .game-guide-hero-image {
  width: 100%;
  height: 700px;
  object-fit: cover;
}

.game-guide-scene .game-guide-stage-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(480px, calc((100% - 36px) / 3));
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-color: #78a9c5 rgba(120, 160, 190, 0.14);
  scrollbar-width: thin;
  padding: 2px 2px 14px;
}

.game-guide-scene .game-guide-stage-card {
  scroll-snap-align: start;
  min-height: 470px;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(45, 83, 110, 0.1);
}

.game-guide-scene .game-guide-stage-thumb {
  width: 100%;
  height: 270px;
  border-radius: 0;
  object-fit: cover;
}

.game-guide-scene .game-guide-stage-card-body {
  padding: 20px 24px 24px;
}

.game-guide-scene .game-guide-stage-card-body h3 {
  margin: 2px 0 8px;
  color: #143d5b;
  font-size: 25px;
}

.game-guide-scene .game-guide-stage-card-body > p {
  margin: 0;
  color: #4f6d82;
  font-size: 18px;
  font-weight: 700;
}

.game-guide-scene .game-guide-stage-num {
  font-size: 14px;
}

.game-guide-scene .game-guide-stage-detail-list {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.42;
}

.game-guide-scene .game-guide-stage-detail-list li {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 8px;
}

.game-guide-scene .game-guide-stage-detail-list strong {
  color: #255e7d;
}

.game-guide-scene .game-guide-scroll-hint {
  margin: 9px 0 0;
  text-align: center;
  color: #58768a;
  font-size: 15px;
  font-weight: 700;
}

.game-guide-scene .game-guide-step-inline {
  width: min(1160px, 100%);
  margin: 0 auto 24px;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  counter-reset: ggstep;
}

.game-guide-scene .game-guide-step-inline li {
  min-height: 68px;
  padding: 0 28px 0 76px;
  display: flex;
  align-items: center;
  font-size: 21px;
  box-shadow: 0 8px 22px rgba(50, 90, 120, 0.08);
}

.game-guide-scene .game-guide-step-inline li::before {
  left: 24px;
  top: 50%;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  font-size: 18px;
}

.game-guide-scene .game-guide-step-inline li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -27px;
  color: #5a88a4;
  font-size: 25px;
}

.game-guide-scene .game-guide-feature-shots {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}

.game-guide-scene .game-guide-shot-card {
  padding: 14px 14px 18px;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(45, 83, 110, 0.08);
}

.game-guide-scene .game-guide-shot-btn img {
  height: 270px;
  object-fit: contain;
}

.game-guide-scene .game-guide-shot-card h4 {
  margin: 15px 4px 6px;
  font-size: 22px;
}

.game-guide-scene .game-guide-shot-card p {
  margin: 0 4px;
  font-size: 17px;
  line-height: 1.5;
}

.game-guide-scene .game-guide-wide-shot {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(120, 160, 190, 0.4);
  border-radius: 18px;
  background: #e7f1f8;
  cursor: zoom-in;
  box-shadow: 0 12px 28px rgba(45, 83, 110, 0.1);
}

.game-guide-scene .game-guide-wide-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.game-guide-scene .game-guide-wide-shot span {
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 7px 11px;
  border-radius: 8px;
  background: rgba(9, 31, 48, 0.8);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.game-guide-scene .game-guide-pane--record .game-guide-wide-shot {
  width: min(1260px, 100%);
  height: 520px;
  margin: 0 auto;
}

.game-guide-scene .game-guide-principle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.game-guide-scene .game-guide-principle-grid article {
  min-height: 190px;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 22px;
  align-items: center;
  padding: 30px 34px;
  border: 1px solid var(--gg-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
}

.game-guide-scene .game-guide-principle-grid article:nth-child(2),
.game-guide-scene .game-guide-principle-grid article:nth-child(3) {
  background: rgba(226, 240, 248, 0.9);
}

.game-guide-scene .game-guide-principle-grid article > span {
  color: #4a8eaf;
  font-size: 27px;
  font-weight: 900;
}

.game-guide-scene .game-guide-principle-grid h3,
.game-guide-scene .game-guide-design-points h3,
.game-guide-scene .game-guide-record-points h3 {
  margin: 0 0 8px;
  color: #143d5b;
  font-size: 22px;
}

.game-guide-scene .game-guide-principle-grid p,
.game-guide-scene .game-guide-design-points p,
.game-guide-scene .game-guide-record-points p {
  margin: 0;
  color: #526f83;
  font-size: 17px;
  line-height: 1.55;
}

.game-guide-scene .game-guide-design-layout,
.game-guide-scene .game-guide-record-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(520px, 0.84fr);
  gap: 24px;
}

.game-guide-scene .game-guide-design-shots,
.game-guide-scene .game-guide-record-shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.game-guide-scene .game-guide-design-shots .game-guide-wide-shot,
.game-guide-scene .game-guide-record-shots .game-guide-wide-shot {
  height: 490px;
}

.game-guide-scene .game-guide-design-points,
.game-guide-scene .game-guide-record-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.game-guide-scene .game-guide-design-points article,
.game-guide-scene .game-guide-record-points article {
  padding: 22px;
  border-left: 4px solid #70a9c6;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
}

.game-guide-scene .game-guide-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.game-guide-scene .game-guide-support-grid .game-guide-shot-card {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) 1.05fr;
  grid-template-rows: auto auto;
  column-gap: 22px;
  align-items: center;
}

.game-guide-scene .game-guide-support-grid .game-guide-shot-btn {
  grid-row: 1 / 3;
}

.game-guide-scene .game-guide-support-grid .game-guide-shot-btn img {
  height: 210px;
}

.game-guide-scene .game-guide-support-grid .game-guide-shot-card h4 {
  align-self: end;
}

.game-guide-scene .game-guide-support-grid .game-guide-shot-card p {
  align-self: start;
}

.game-guide-scene .game-guide-btn {
  min-width: 164px;
  height: 50px;
  font-size: 17px;
}

.game-guide-scene .game-guide-inline-actions {
  margin-top: 18px;
}

@media (max-width: 1400px) {
  .game-guide-scene .game-guide-hero--image {
    grid-template-columns: 0.9fr 1.1fr;
  }

  .game-guide-scene .game-guide-stage-scroller {
    grid-auto-columns: minmax(450px, calc((100% - 18px) / 2));
  }
}

/* =========================================================
   화면 연습 (student guide practice screen)
   Large content-area viewport + auto-fit scale of 1920×1080 chrome.
   Live game CSS stays untouched.
   ========================================================= */

.game-guide-pane--practice {
  max-width: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  /* 화면 연습 전용: 게임창+체크리스트 묶음을 오른쪽으로 이동 */
  margin-left: auto;
  margin-right: 12px;
}

.game-guide-scene .game-guide-panel:has(.game-guide-pane--practice) {
  padding: 14px 28px 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#gp-practice-host {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.gp-body-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 0;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  /* 그룹 가운데 정렬 후 게임창을 오른쪽으로 이동 */
  padding-left: 96px;
  box-sizing: border-box;
}

.gp-side-rail {
  flex: 0 0 149px;
  width: 149px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-self: flex-start;
}

.gp-progress {
  width: 149px;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 11px 10px;
  box-sizing: border-box;
  border-radius: 12px;
  background: #f7fbfe;
  border: 1px solid rgba(120, 170, 200, 0.55);
  box-shadow: 0 4px 14px rgba(8, 28, 48, 0.1);
}

.gp-progress-step {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: #5a7388;
  pointer-events: none;
  user-select: none;
}

.gp-progress-step[data-state="current"] {
  color: #3d5a70;
}

.gp-progress-step[data-state="done"] {
  color: #1f4a63;
}

.gp-progress-mark {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  border: 2px solid rgba(100, 145, 175, 0.75);
  border-radius: 4px;
  background: #ffffff;
  color: #1f8a6f;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.gp-progress-step[data-state="done"] .gp-progress-mark {
  border-color: rgba(45, 150, 125, 0.85);
  background: rgba(232, 248, 242, 0.95);
}

.gp-progress-label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.gp-progress-sep {
  display: none;
}

.gp-screen {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  flex: 1 1 auto;
  min-height: 0;
}

.gp-viewport {
  position: relative;
  /* Exact size is set by JS to the largest 16:9 fit inside the panel. */
  width: auto;
  max-width: none;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(120, 190, 220, 0.28);
  box-shadow: 0 20px 50px rgba(4, 10, 20, 0.45);
  background: #050b14;
  color: #eaf6ff;
  flex: 0 0 auto;
  min-width: 0;
}

.gp-scale-layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  transform-origin: top left;
  /* Default before first measure — JS replaces with fitted scale. */
  transform: scale(0.8);
  --eq-frame-width: 1920px;
  --eq-frame-height: 1080px;
  --eq-shell-gap: 24px;
  --eq-inventory-width: 68px;
  --eq-inventory-height: 44px;
  overflow: hidden;
}

.gp-scale-layer .eq-bg,
.gp-scale-layer .eq-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Learning card: real edu-worksheet size, centered — no separate shrink. */
.gp-learning-wrap {
  position: absolute;
  left: 150px;
  right: 96px;
  top: 88px;
  bottom: 180px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* Intro: only the start box — no big worksheet behind it. */
.gp-learning-wrap.is-intro {
  top: 72px;
  bottom: 120px;
  align-items: center;
}

.gp-learning-card {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 1180px;
  width: min(1180px, 100%);
  padding: 20px 30px 22px;
}

.gp-learning-card.edu-worksheet-panel--large {
  display: flex !important;
  flex-direction: column;
}

.gp-learning-card.edu-worksheet-panel--large > .edu-worksheet-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.gp-learning-card.is-intro.edu-worksheet-panel,
.gp-learning-card.is-intro.edu-worksheet-panel--large {
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.gp-learning-card.is-intro .edu-worksheet-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

.gp-learning-card.is-intro .gp-greeting-panel {
  width: 100%;
  padding: 0;
}

.gp-learning-card.is-intro .gp-start-box {
  width: min(560px, 70vw);
}

/* Start screen: inner guidance box inside the big learning card. */
.gp-greeting-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 0 8px;
}

.gp-greeting-panel[hidden],
.gp-problem-panel[hidden],
.gp-problem-header[hidden] {
  display: none !important;
}

.gp-start-box {
  width: min(72%, 784px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 34px 32px 30px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f9ff 100%);
  border: 1px solid #c4d7e2;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(23, 56, 74, 0.1);
  text-align: center;
}

.gp-start-title {
  margin: 0;
  color: #123344;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.3;
}

.gp-start-desc {
  margin: 0;
  color: #365464;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
}

.gp-start-box .gp-action-row {
  margin-top: 6px;
}

.gp-start-box .gp-start-practice-btn {
  min-width: 150px;
  font-size: 19px;
  padding: 12px 26px;
}

/* Problem activity content: no inner box — only the outer learning card wraps. */
.gp-problem-card {
  position: relative;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  /* Reserve bottom slot so #gp-action-row can appear without shifting bars/fractions. */
  padding: 8px 0 64px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Push bars lower inside the big worksheet (title stays at top). */
.gp-learning-card .edu-worksheet-body:has(#gp-problem-panel:not([hidden])) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  justify-content: flex-start;
}

.gp-learning-card #gp-problem-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1 1 auto;
  padding-top: 8px;
  padding-bottom: 12px;
  margin-top: 8px;
}

.gp-learning-card #gp-problem-panel[hidden] {
  display: none !important;
}

/* Title left-aligned inside the restored big worksheet. */
.gp-learning-card .gp-problem-header.edu-worksheet-header:not([hidden]) {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: center;
  text-align: left !important;
  width: 100%;
}

.gp-learning-card .gp-problem-header.edu-worksheet-header[hidden] {
  display: none !important;
}

.gp-learning-card .gp-problem-header .edu-worksheet-title,
.gp-learning-card #gp-learning-title {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  width: 100%;
  color: #17384d;
}

/* Black numbers for the reference 1/4 beside the bar. */
.gp-ref-value,
.gp-ref-value .textbook-math,
.gp-ref-value .tm-num,
.gp-ref-value .tm-den {
  color: #123344 !important;
}

.gp-problem-prompt {
  margin: 0;
  color: #1c3a4d;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
  word-break: keep-all;
}

.gp-problem-prompt b {
  color: #0f6fa6;
  font-weight: 900;
}

.gp-problem-prompt .gp-problem-frac,
.gp-problem-prompt .textbook-math {
  vertical-align: middle;
}

/* Two horizontal rows: [bar]  [right side].
   Both rows share the same fixed widths so the bars start-align. */
.gp-bar-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin: 0 auto;
  width: fit-content;
  max-width: 100%;
  transform: translateX(4cm);
}

.gp-bar-row {
  display: flex;
  align-items: center;
  gap: 22px;
}

/* Fixed-width right column — same width on both rows so bars stay aligned. */
.gp-row-side {
  width: 280px;
  min-width: 280px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.gp-row-side.gp-ref-value {
  justify-content: flex-start;
  padding-left: 8px;
}

.gp-ref-value .textbook-math,
.gp-ref-value .gp-problem-frac,
.gp-ref-value .tm-num,
.gp-ref-value .tm-den {
  transform: none;
  font-size: 30px !important;
}

.gp-problem-card .stage1-sa-bar.fraction-strip {
  width: 560px;
  min-width: 560px;
  max-width: 560px;
  height: 64px;
  min-height: 64px;
  max-height: 64px;
  flex: 0 0 64px;
}

/* Reference bar is display-only: no pointer, no hover. */
.gp-problem-card .stage1-sa-bar.gp-ref-bar .stage1-sa-seg {
  cursor: default;
  pointer-events: none;
}

.gp-problem-card .stage1-sa-bar.gp-color-bar .stage1-sa-seg:not(:disabled) {
  cursor: pointer;
}

/* Short success highlight when 3 cells are confirmed. */
.gp-problem-card .stage1-sa-bar.gp-color-bar.is-confirm {
  box-shadow:
    inset 0 0 10px rgba(43, 191, 154, 0.22),
    0 0 0 2px rgba(43, 191, 154, 0.55) !important;
}

/* Final success on the coloring bar (correct 3/4). Outline keeps layout stable. */
.gp-problem-card .stage1-sa-bar.gp-color-bar.is-success,
.gp-problem-card .stage1-sa-bar.gp-color-bar.gp-fraction-bar-visual-complete {
  outline: 3px solid rgba(78, 190, 224, 0.95);
  outline-offset: 2px;
  box-shadow:
    0 0 0 6px rgba(78, 190, 224, 0.16),
    0 0 18px rgba(78, 190, 224, 0.38);
  transition:
    outline 0.2s ease,
    box-shadow 0.2s ease;
}

/* Correct numerator/denominator — keep small input styles only.
   Never draw a big teal box around the whole #gp-answer-field. */
.gp-screen .gp-answer-field,
.gp-screen .gp-answer-field.is-success,
.gp-screen .gp-answer-field.gp-fraction-bar-answer-correct {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.gp-problem-card .stage1-sa-bar.gp-color-bar.is-bar-error {
  border-color: #e35b6a !important;
  box-shadow:
    inset 0 0 12px rgba(0, 0, 0, 0.28),
    0 0 0 2px rgba(227, 91, 106, 0.5) !important;
  animation: gp-answer-shake 0.5s ease-in-out;
}

/* Answer fraction — exact s11 write-fraction markup + light worksheet look. */
.gp-answer-field {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}

.gp-learning-card .gp-sa-write.stage1-sa-fraction-explain {
  position: relative;
  margin: 0;
}

.gp-learning-card .gp-sa-write .stage1-sa-fraction-core-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.gp-learning-card .gp-sa-write .stage1-sa-fraction-core.tm-frac .tm-num .edu-blank-input--md,
.gp-learning-card .gp-sa-write .stage1-sa-fraction-core.tm-frac .tm-den .edu-blank-input--md {
  width: 57px;
  height: 57px;
  min-width: 57px;
  min-height: 57px;
}

/* Force real edu-blank look (override any leftover practice skins). */
.gp-learning-card .gp-sa-write .edu-blank-input {
  border: var(--edu-blank-input-border) !important;
  border-radius: 10px !important;
  background: var(--edu-blank-input-bg) !important;
  color: var(--edu-blank-input-color) !important;
  -webkit-text-fill-color: var(--edu-blank-input-color) !important;
  box-shadow: var(--edu-blank-input-shadow) !important;
  opacity: 1 !important;
  font-weight: 900 !important;
  font-size: 30px !important;
  text-align: center !important;
}

.gp-learning-card .gp-sa-write .edu-blank-input:focus,
.gp-learning-card .gp-sa-write .edu-blank-input:focus-visible {
  border-color: var(--edu-blank-input-border-focus) !important;
  box-shadow: var(--edu-blank-input-shadow-focus) !important;
}

.gp-learning-card .gp-sa-write .edu-blank-input:disabled:not([readonly]) {
  opacity: 0.45 !important;
  border-color: rgba(120, 190, 240, 0.35) !important;
  background: rgba(240, 248, 255, 0.72) !important;
  color: rgba(13, 39, 68, 0.38) !important;
  -webkit-text-fill-color: rgba(13, 39, 68, 0.38) !important;
  box-shadow: none !important;
  cursor: not-allowed;
}

/* Correct answers must stay black — never grey out when locked. */
.gp-learning-card .gp-sa-write .edu-blank-input.is-ok,
.gp-learning-card .gp-sa-write .edu-blank-input.correct,
.gp-learning-card .gp-sa-write .edu-blank-input.is-correct,
.gp-learning-card .gp-sa-write .edu-blank-input.is-ok:disabled,
.gp-learning-card .gp-sa-write .edu-blank-input.correct:disabled,
.gp-learning-card .gp-sa-write .edu-blank-input.is-correct:disabled,
.gp-learning-card .gp-sa-write .edu-blank-input.is-ok[readonly],
.gp-learning-card .gp-sa-write .edu-blank-input.correct[readonly] {
  border-color: var(--edu-blank-input-correct-border) !important;
  background: rgba(230, 250, 255, 0.98) !important;
  box-shadow: var(--edu-blank-input-correct-shadow) !important;
  color: #0d2744 !important;
  -webkit-text-fill-color: #0d2744 !important;
  opacity: 1 !important;
  font-weight: 900 !important;
}

.gp-learning-card .gp-sa-write .edu-blank-input.is-error,
.gp-learning-card .gp-sa-write .edu-blank-input.is-warn {
  border-color: var(--edu-blank-input-error-border) !important;
  background: var(--edu-blank-input-error-bg) !important;
  box-shadow: var(--edu-blank-input-error-shadow) !important;
  color: var(--edu-blank-input-color) !important;
  -webkit-text-fill-color: var(--edu-blank-input-color) !important;
  opacity: 1 !important;
}

.gp-learning-card .gp-sa-write .edu-blank-input.is-shake {
  animation: gp-answer-shake 0.42s ease-in-out;
}

.gp-learning-card .gp-sa-write .edu-fraction-blank-line--md {
  width: 57px;
  height: 3px;
  margin: 5px 0;
  background: #0d2744;
}

/* Fraction blank labels: hidden until the student opens 힌트. */
.gp-learning-card .gp-sa-write .stage1-sa-frac-label {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}

.gp-learning-card .gp-sa-write.is-frac-labels-visible .stage1-sa-frac-label {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(0) !important;
  pointer-events: none;
}

.gp-learning-card .gp-sa-write .stage1-sa-frac-hint-line {
  background: linear-gradient(90deg, rgba(14, 116, 178, 0.35), rgba(14, 165, 233, 0.95));
  box-shadow: none;
}

.gp-learning-card .gp-sa-write .stage1-sa-frac-hint-line::before {
  border-color: rgba(14, 165, 233, 0.95);
}

.gp-learning-card .gp-sa-write .stage1-sa-frac-hint-text {
  border: 1px solid rgba(120, 190, 240, 0.75);
  background: rgba(235, 247, 255, 0.98);
  color: #0b5ea8;
  box-shadow: 0 2px 8px rgba(14, 116, 178, 0.12);
}

.gp-answer-success {
  display: none !important;
}

@keyframes gp-answer-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* Contextual next-step buttons inside the learning card. */
.gp-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.gp-action-row[hidden] {
  display: none;
}

.gp-action-row .gp-action-btn {
  min-width: 132px;
}

/* Action row reserved in layout but always hidden during the practice flow.
   Transitions use student actions / short timers — never 「확인했어요」 / 「다음」. */
.gp-problem-card > #gp-action-row {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  margin-top: 0;
  z-index: 2;
  display: none !important;
}

.gp-problem-card > #gp-action-row[hidden] {
  display: none !important;
}

.gp-greeting-panel .gp-action-row {
  margin-top: 24px;
}

.gp-learning-demo {
  display: none;
}

.gp-demo-frac {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #1c3a4d;
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
}

.gp-demo-bar {
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: #1c3a4d;
}

.gp-demo-caption {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #5c7d92;
}

/* Dialogue lives in unscaled overlay — never inside .gp-scale-layer. */
.gp-ui-overlay {
  position: absolute;
  inset: 0;
  z-index: 200;
  /* Must stay none so scaled inventory under this layer remains clickable. */
  pointer-events: none !important;
}

.gp-scale-layer {
  z-index: 1;
  pointer-events: auto;
}

.gp-scale-layer .stage-chrome-inventory {
  z-index: 420;
  pointer-events: auto !important;
}

.gp-scale-layer .stage-chrome-inventory-button {
  pointer-events: auto !important;
  cursor: pointer;
}

.gp-ui-overlay #gp-dialogue-panel.gp-dialogue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 5;
  width: min(980px, calc(100% - 48px));
  max-width: calc(100% - 48px);
  display: grid;
  pointer-events: auto;
}

/*
 * Live game hides .stage-chrome-support-actions anywhere under #scene-root
 * except inside #dialogue-panel. Practice uses #gp-dialogue-panel, so restore
 * the real hint/scratch dock here (practice-only).
 */
.gp-ui-overlay #gp-dialogue-panel .dialogue-support-slot {
  display: flex !important;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
  padding-left: 10px;
  margin-left: 2px;
  border-left: 1px solid rgba(92, 210, 255, 0.22);
}

.gp-ui-overlay #gp-dialogue-panel .dialogue-inline-support,
.gp-ui-overlay #gp-dialogue-panel .stage-chrome-support-actions,
.gp-ui-overlay #gp-dialogue-panel .eq-support-actions {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: auto !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: var(--dialogue-support-gap, 8px) !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.gp-ui-overlay #gp-dialogue-panel .eq-help-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: var(--dialogue-support-btn-width, 72px) !important;
  height: 40px !important;
  min-height: 0 !important;
  padding: 0 10px !important;
  border-radius: 12px !important;
  color: #eafaff !important;
  background: rgba(10, 28, 48, 0.78) !important;
  border: 1px solid rgba(115, 226, 255, 0.42) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  cursor: pointer !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.gp-ui-overlay #gp-dialogue-panel .eq-help-btn:hover,
.gp-ui-overlay #gp-dialogue-panel .eq-help-btn:focus-visible {
  border-color: rgba(140, 236, 255, 0.7) !important;
  background: rgba(16, 42, 68, 0.9) !important;
}

.gp-ui-overlay #gp-dialogue-panel .gp-dialogue-nav {
  width: var(--dialogue-nav-size, 45px);
  height: var(--dialogue-nav-size, 45px);
  border: 0;
  background: transparent;
  pointer-events: none;
  opacity: 0;
}

.gp-ui-overlay #gp-dialogue-panel .gp-dialogue-nav[data-dialogue-nav="prev"] {
  grid-area: dialogue-prev;
}

.gp-ui-overlay #gp-dialogue-panel .gp-dialogue-nav[data-dialogue-nav="next"] {
  grid-area: dialogue-next;
}

.gp-ui-overlay #gp-dialogue-panel .dialogue-content,
.gp-ui-overlay #gp-dialogue-panel #gp-dialogue-text,
.gp-ui-overlay #gp-dialogue-panel .dialogue-text {
  min-width: 0;
}

.gp-ui-overlay #gp-dialogue-panel .dialogue-text p {
  margin: 0;
}

.gp-ui-overlay #gp-dialogue-panel .dialogue-text p + p {
  margin-top: 4px;
}

/* Ask tab: always visible on the scaled stage right edge. */
.gp-scale-layer .gp-ask-tab.robok-ask-btn {
  right: 0;
  bottom: calc(var(--eq-inventory-height, 44px) + 28px + 14px);
  left: auto;
  top: auto;
  z-index: 120;
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Inventory available/locked restated — practice never sets stageN-ui-active. */
.gp-scale-layer .stage-chrome-inventory-slot.filled.available .stage-chrome-inventory-button {
  color: #fff;
  background: linear-gradient(180deg, rgba(25, 56, 95, 0.98), rgba(11, 29, 52, 0.98));
  border-color: rgba(126, 230, 255, 0.72);
  box-shadow:
    0 0 0 1px rgba(88, 185, 255, 0.18),
    0 0 18px rgba(75, 216, 255, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -8px 16px rgba(5, 19, 39, 0.42);
}

.gp-scale-layer .stage-chrome-inventory-slot.locked .stage-chrome-inventory-button,
.gp-scale-layer .stage-chrome-inventory-button[aria-disabled="true"] {
  color: rgba(214, 222, 232, 0.34);
  background: linear-gradient(180deg, rgba(13, 17, 24, 0.98), rgba(6, 9, 15, 0.99));
  border-color: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), 0 8px 14px rgba(0, 0, 0, 0.18);
  filter: saturate(0.4) brightness(0.8);
  opacity: 0.92;
  cursor: not-allowed;
}

.gp-scale-layer .stage-chrome-inventory-slot.locked {
  position: relative;
}

.gp-scale-layer .stage-chrome-inventory-slot.locked::after {
  content: "LOCK";
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  padding: 2px 4px;
  border-radius: 999px;
  color: rgba(238, 244, 255, 0.54);
  background: rgba(255, 255, 255, 0.1);
  font-size: 8px;
  font-weight: 950;
  line-height: 1;
  pointer-events: none;
}

.gp-scale-layer .eq-tool-tooltip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Soft target pulse — current step only; no full-screen dim. */
.practice-current-target {
  outline: 3px solid rgba(91, 196, 240, 0.95);
  outline-offset: 4px;
  box-shadow:
    0 0 0 7px rgba(91, 196, 240, 0.16),
    0 0 20px rgba(91, 196, 240, 0.45);
  animation: practiceTargetPulse 1.6s ease-in-out infinite;
}

/* Correct → later: dim stage, keep inventory bright + pulsing. */
.gp-viewport.is-item-spotlight .gp-scale-layer::before,
.gp-viewport.is-hint-spotlight .gp-scale-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(3, 10, 22, 0.46);
  pointer-events: none;
}

.gp-viewport.is-item-spotlight .stage-chrome-inventory {
  position: relative;
  z-index: 60;
  filter: none;
}

.gp-viewport.is-hint-spotlight .gp-ui-overlay #gp-dialogue-panel .eq-help-btn.practice-current-target,
.gp-viewport.is-hint-spotlight .gp-ui-overlay #gp-hint-btn.practice-current-target {
  position: relative;
  z-index: 60;
}

.gp-viewport.is-item-spotlight .practice-current-target,
.gp-viewport.is-hint-spotlight .practice-current-target {
  outline-color: rgba(94, 234, 212, 0.95);
  box-shadow:
    0 0 0 4px rgba(56, 189, 248, 0.35),
    0 0 28px rgba(56, 189, 248, 0.55);
}

.gp-viewport.is-popup-open .practice-current-target {
  animation: none;
  outline-color: rgba(94, 234, 212, 0.35);
  box-shadow: none;
}

/* Tool panel targets (만들기 / ×) must stay bright while the popup is open. */
.gp-viewport.is-popup-open .gp-item-tool-host .eq-tool-panel-submit.practice-current-target,
.gp-viewport.is-popup-open .gp-item-tool-host .eq-tool-panel-close.practice-current-target {
  position: relative;
  z-index: 200;
  outline: 3px solid rgba(83, 197, 244, 0.95) !important;
  outline-offset: 4px;
  border-color: rgba(83, 197, 244, 0.95) !important;
  box-shadow:
    0 0 0 7px rgba(83, 197, 244, 0.18),
    0 0 20px rgba(83, 197, 244, 0.48) !important;
  animation: practiceTargetPulse 1.6s ease-in-out infinite;
}

@keyframes practiceTargetPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 5px rgba(91, 196, 240, 0.12),
      0 0 14px rgba(91, 196, 240, 0.3);
  }

  50% {
    box-shadow:
      0 0 0 9px rgba(91, 196, 240, 0.2),
      0 0 24px rgba(91, 196, 240, 0.5);
  }
}

/* ---- Unscaled UI overlay (dialogue always; popups when open) ---- */
.gp-popup-dim {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: transparent;
  pointer-events: none;
}

.gp-popup-dim[hidden] {
  display: none !important;
}

.gp-item-tool-host,
.gp-scratch-host,
.gp-ask-panel-host {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: none;
  pointer-events: none;
}

.gp-item-tool-host[data-open="true"],
.gp-scratch-host[data-open="true"],
.gp-ask-panel-host[data-open="true"] {
  display: block;
  pointer-events: none;
  z-index: 40;
}

/* Open tool panel must sit above dialogue so compare/make clicks aren't stolen. */
.gp-item-tool-host[data-open="true"] {
  z-index: 60;
}

.gp-item-tool-host[data-open="true"] .eq-tool-input-panel {
  pointer-events: auto !important;
  z-index: 61;
}

/*
 * Practice-only: match live shared-tool width (420px+).
 * Compare mode needs explicit 2-column grid (no stage*-ui-active in practice).
 */
.gp-item-tool-host .eq-tool-input-panel[data-stage-shared-tool="true"],
.gp-item-tool-host .eq-tool-input-panel.gp-practice-tool-scale {
  position: absolute !important;
  right: auto !important;
  bottom: auto !important;
  width: 440px !important;
  min-width: 440px !important;
  max-width: 440px !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 16px 18px 18px !important;
  margin: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border: 1px solid #85c9df !important;
  border-radius: 16px !important;
  color: #294b5d !important;
  background: #eaf4f8 !important;
  box-shadow: 0 10px 24px rgba(7, 39, 58, 0.22) !important;
  pointer-events: auto;
  box-sizing: border-box;
  transform-origin: top left !important;
  transform: none !important;
}

.gp-item-tool-host .eq-tool-input-panel .eq-tool-panel-kicker {
  display: none !important;
}

.gp-item-tool-host .eq-tool-input-panel .eq-tool-panel-head {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  z-index: 3 !important;
}

.gp-item-tool-host .eq-tool-input-panel .eq-tool-panel-close {
  display: grid !important;
  place-items: center !important;
  width: 28px !important;
  height: 28px !important;
  border: 1px solid rgba(83, 166, 194, 0.55) !important;
  border-radius: 50% !important;
  color: #17384a !important;
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: none !important;
  font-size: 18px !important;
  line-height: 1 !important;
  visibility: visible !important;
  opacity: 1 !important;
  cursor: pointer !important;
}

/* Title row: keep both mode chips fully visible beside the title. */
.gp-item-tool-host .eq-tool-input-panel[data-tool-id="bar"] .eq-tool-panel-title-wrap,
.gp-item-tool-host .eq-tool-input-panel[data-tool-id="circle"] .eq-tool-panel-title-wrap {
  padding: 10px 42px 10px 16px !important;
  margin: -6px -6px 12px !important;
}

.gp-item-tool-host .eq-tool-input-panel[data-tool-id="bar"] .eq-tool-panel-title-row,
.gp-item-tool-host .eq-tool-input-panel[data-tool-id="circle"] .eq-tool-panel-title-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
}

.gp-item-tool-host .eq-tool-input-panel[data-tool-id="bar"] .eq-tool-panel-title-row strong,
.gp-item-tool-host .eq-tool-input-panel[data-tool-id="circle"] .eq-tool-panel-title-row strong {
  font-size: 18px !important;
  line-height: 1.15 !important;
}

.gp-item-tool-host .eq-tool-input-panel[data-tool-id="bar"] .eq-tool-mode-tabs,
.gp-item-tool-host .eq-tool-input-panel[data-tool-id="circle"] .eq-tool-mode-tabs {
  flex: 0 0 158px !important;
  width: 158px !important;
  min-width: 158px !important;
  max-width: 158px !important;
  height: 26px !important;
  margin: 0 !important;
  display: flex !important;
  gap: 5px !important;
}

.gp-item-tool-host .eq-tool-input-panel[data-tool-id="bar"] .eq-tool-mode-tab,
.gp-item-tool-host .eq-tool-input-panel[data-tool-id="circle"] .eq-tool-mode-tab {
  flex: 1 1 0 !important;
  height: 26px !important;
  min-width: 0 !important;
  padding: 0 3px !important;
  font-size: 10px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/*
 * Practice lacks body.stage*-ui-active, so compare inputs never get the live
 * 2-column grid. Force side-by-side like Stage 1.
 */
.gp-item-tool-host .eq-tool-input-panel[data-stage-shared-tool="true"] .eq-tool-compare-inputs {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  column-gap: 12px !important;
  row-gap: 8px !important;
  align-items: start !important;
  justify-items: center !important;
  margin-top: 4px !important;
  margin-bottom: 0 !important;
  width: 100% !important;
}

.gp-item-tool-host .eq-tool-input-panel[data-stage-shared-tool="true"] .eq-tool-compare-slot {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 4px 2px !important;
  display: grid !important;
  justify-items: center !important;
  align-content: start !important;
  gap: 6px !important;
}

.gp-item-tool-host .eq-tool-input-panel[data-stage-shared-tool="true"] .eq-tool-compare-slot strong {
  display: block !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

.gp-item-tool-host .eq-tool-input-panel[data-stage-shared-tool="true"] .eq-tool-compare-slot .fraction-input-box {
  width: 72px !important;
  min-width: 72px !important;
  height: auto !important;
  min-height: 0 !important;
  gap: 4px !important;
}

.gp-item-tool-host .eq-tool-input-panel[data-stage-shared-tool="true"] .eq-tool-compare-slot .fraction-input {
  width: 56px !important;
  min-width: 56px !important;
  height: 36px !important;
  font-size: 18px !important;
  line-height: 36px !important;
}

.gp-item-tool-host .eq-tool-input-panel[data-stage-shared-tool="true"] .eq-tool-compare-slot .fraction-input-line {
  width: 64px !important;
  height: 2px !important;
}

.gp-item-tool-host .eq-tool-input-panel .eq-tool-panel-preview,
.gp-item-tool-host .eq-tool-input-panel[data-stage-shared-tool="true"]:not(.eq-question-tool-panel):not(.eq-math-tool-panel) .eq-tool-panel-preview,
.gp-item-tool-host .eq-tool-input-panel[data-stage-shared-tool="true"]:not(.eq-question-tool-panel):not(.eq-math-tool-panel).is-compare .eq-tool-panel-preview {
  overflow: visible !important;
  max-height: none !important;
  min-height: 0 !important;
}

.gp-item-tool-host .eq-tool-input-panel .eq-tool-interpretation,
.gp-item-tool-host .eq-tool-input-panel .eq-tool-compare-verdict,
.gp-item-tool-host .eq-tool-input-panel .eq-tool-empty-preview-text {
  overflow: visible !important;
  white-space: normal !important;
  word-break: keep-all !important;
  max-width: 100% !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
}

/* Compare actions span both columns under the two fraction slots. */
.gp-item-tool-host .eq-tool-input-panel[data-stage-shared-tool="true"]:not(.eq-question-tool-panel):not(.eq-math-tool-panel) .eq-tool-compare-actions {
  grid-column: 1 / -1 !important;
  position: relative !important;
  display: grid !important;
  grid-template-columns: 1fr auto auto !important;
  align-items: center !important;
  column-gap: 8px !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 40px !important;
  margin: 2px 0 0 !important;
  transform: none !important;
}

.gp-item-tool-host .eq-tool-input-panel[data-stage-shared-tool="true"]:not(.eq-question-tool-panel):not(.eq-math-tool-panel) .eq-tool-compare-actions .eq-tool-panel-compare {
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  grid-column: 2 !important;
  justify-self: center !important;
  margin: 0 !important;
}

.gp-item-tool-host .eq-tool-input-panel[data-stage-shared-tool="true"]:not(.eq-question-tool-panel):not(.eq-math-tool-panel) .eq-tool-result-view-tabs-inline {
  position: static !important;
  right: auto !important;
  top: auto !important;
  grid-column: 3 !important;
  justify-self: end !important;
  width: auto !important;
  min-width: 122px !important;
  margin: 0 !important;
  transform: none !important;
}

/* Keep bar segment grid visible without stage*-ui-active body class. */
.gp-item-tool-host .eq-analysis-fraction-bar {
  display: grid !important;
  grid-template-columns: repeat(var(--denominator), 1fr) !important;
  width: min(304px, 100%) !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.gp-item-tool-host .eq-analysis-fraction-bar .seg {
  display: block !important;
  min-width: 0 !important;
}

.gp-item-tool-host .eq-tool-preview-model-row,
.gp-item-tool-host .eq-tool-model-wrap,
.gp-item-tool-host .eq-tool-model-area {
  max-width: 100% !important;
  overflow: visible !important;
}

/* Single-mode fraction inputs (compare slots have their own tighter rules). */
.gp-item-tool-host .eq-tool-input-panel .eq-tool-single-section .fraction-input {
  width: 64px !important;
  min-width: 64px !important;
  height: 40px !important;
  font-size: 20px !important;
}

.gp-item-tool-host .eq-tool-input-panel .eq-tool-single-section .fraction-input-line {
  width: 80px !important;
}

/* Real #calculation-pad docked to the practice viewport right edge.
   Practice-only sizing (main game #calculation-pad untouched). */
.gp-scratch-host #calculation-pad.gp-docked-calc-pad {
  position: absolute !important;
  /* Taller white canvas; nudge left so the right edge isn't clipped. */
  top: calc(40px + (100% - 162px) * 0.04) !important;
  right: 36px !important;
  bottom: calc(110px + (100% - 162px) * 0.04) !important;
  left: auto !important;
  width: min(341.33px, 27.733%) !important;
  max-width: calc(100% - 52px) !important;
  height: auto !important;
  max-height: none !important;
  box-sizing: border-box !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 30;
  overflow: visible !important;
}

.gp-scratch-host #calculation-pad.gp-docked-calc-pad.hidden {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.gp-scratch-host #calculation-pad.gp-docked-calc-pad .calc-pad-window {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  padding: 8px 10px 10px !important;
}

.gp-scratch-host #calculation-pad.gp-docked-calc-pad .calc-pad-subtitle {
  display: none !important;
}

.gp-scratch-host #calculation-pad.gp-docked-calc-pad .calc-pad-title-wrap h2 {
  font-size: calc(28px * 2 / 3) !important;
  line-height: 1.1 !important;
}

.gp-scratch-host #calculation-pad.gp-docked-calc-pad .calc-pad-header {
  gap: 6px !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
}

.gp-scratch-host #calculation-pad.gp-docked-calc-pad .calc-pad-toolbar {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  padding: 6px 8px !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
}

.gp-scratch-host #calculation-pad.gp-docked-calc-pad .calc-tool-group {
  order: 1;
  flex: 0 0 auto;
}

/* Move 「전체 지우기」 beside 지우개 (practice-only). */
.gp-scratch-host #calculation-pad.gp-docked-calc-pad #calc-clear-btn {
  order: 2;
  margin-left: 0 !important;
  flex: 0 0 auto;
  height: 32px !important;
  padding: 0 10px !important;
  font-size: 11px !important;
  white-space: nowrap;
}

/* Thickness gauge ≈ 1/2 width (practice-only). */
.gp-scratch-host #calculation-pad.gp-docked-calc-pad .calc-size-control {
  order: 3;
  margin-left: auto !important;
  min-width: 0 !important;
  width: 80px !important;
  max-width: 80px !important;
  gap: 4px !important;
  flex: 0 0 80px;
  font-size: 11px !important;
}

.gp-scratch-host #calculation-pad.gp-docked-calc-pad .calc-size-control input {
  width: 100% !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.gp-scratch-host #calculation-pad.gp-docked-calc-pad .calc-canvas-shell {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  width: 100% !important;
  padding: 4px !important;
  margin: 0 !important;
}

.gp-scratch-host #calculation-pad.gp-docked-calc-pad #calculation-canvas {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.gp-scratch-host #calculation-pad.gp-docked-calc-pad .calc-pad-footer {
  display: none !important;
}

/* Robok question panel — practice only, ~80% of previous size (main game untouched). */
.gp-ask-panel-host .eq-tool-input-panel.eq-question-tool-panel {
  position: absolute !important;
  top: calc(44px + (100% - 162px) * 0.1) !important;
  right: 10px !important;
  bottom: calc(118px + (100% - 162px) * 0.1) !important;
  left: auto !important;
  width: min(336px, 38.4%) !important; /* was min(420px, 48%) × 0.8 */
  min-width: min(336px, 38.4%) !important;
  max-width: min(336px, 38.4%) !important;
  height: auto !important;
  max-height: none !important;
  padding: 11px 11px 13px !important; /* was 14/16 × ~0.8 */
  margin: 0 !important;
  transform: none !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  border: 1px solid #85c9df !important;
  border-radius: 13px 0 0 13px !important;
  color: #294b5d !important;
  background: #bacee0 !important;
  box-shadow: -10px 11px 24px rgba(7, 39, 58, 0.22) !important;
  pointer-events: auto;
  box-sizing: border-box;
  font-size: 80% !important; /* cascade text/controls to ~80% */
}

.gp-ask-panel-host .eq-tool-input-panel.eq-question-tool-panel .eq-tool-panel-title-wrap strong {
  font-size: 1.05em !important;
}

.gp-ask-panel-host .eq-tool-input-panel.eq-question-tool-panel .eq-question-textarea,
.gp-ask-panel-host .eq-tool-input-panel.eq-question-tool-panel .eq-question-chip,
.gp-ask-panel-host .eq-tool-input-panel.eq-question-tool-panel .eq-question-record-block p,
.gp-ask-panel-host .eq-tool-input-panel.eq-question-tool-panel .eq-question-empty {
  line-height: 1.35 !important;
}

/* Practice-only: hide recommendation chips; keep compose row at the very bottom. */
.gp-ask-panel-host .eq-question-examples {
  display: none !important;
}

.gp-ask-panel-host .robok-chat-footer {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin-top: auto !important;
}

.gp-ask-panel-host .eq-question-compose {
  order: 3 !important;
}

.gp-ask-panel-host .eq-question-error {
  order: 2 !important;
}

.gp-complete[hidden] {
  display: none !important;
}

.gp-complete {
  position: absolute;
  inset: 0;
  z-index: 450;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 12, 21, 0.74);
  pointer-events: auto;
}

.gp-complete-card {
  position: relative;
  width: min(620px, calc(100% - 80px));
  min-height: 280px;
  padding: 32px 38px 30px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #f4f9fd;
  background: linear-gradient(
    180deg,
    rgba(17, 43, 63, 0.97),
    rgba(8, 27, 43, 0.97)
  );
  border: 1px solid rgba(102, 190, 225, 0.48);
  border-radius: 18px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: center;
  animation: gpCompleteCardIn 0.28s ease-out both;
}

@keyframes gpCompleteCardIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.gp-complete-card__icon {
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: rgba(49, 157, 207, 0.92);
  border: 1px solid rgba(142, 221, 248, 0.72);
  border-radius: 50%;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 20px rgba(61, 183, 231, 0.24);
}

.gp-complete-card__title {
  margin: 0;
  color: #ffffff;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
}

.gp-complete-card__description {
  margin-top: 14px;
  max-width: 520px;
  color: rgba(226, 239, 248, 0.9);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.65;
  text-align: center;
  word-break: keep-all;
}

.gp-complete-card__description p {
  margin: 0;
}

.gp-complete-card__description p + p {
  margin-top: 2px;
}

.gp-complete-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.gp-complete-card__actions .gp-complete-card__btn {
  min-width: 170px;
  height: 48px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.gp-complete-card__actions .game-guide-btn-ghost.gp-complete-card__btn,
.gp-complete-card__actions .gp-complete-btn--retry {
  color: #e6f4fb;
  background: rgba(10, 28, 42, 0.88);
  border: 1px solid rgba(120, 186, 214, 0.42);
  box-shadow: none;
}

.gp-complete-card__actions .game-guide-btn-ghost.gp-complete-card__btn:hover,
.gp-complete-card__actions .game-guide-btn-ghost.gp-complete-card__btn:focus-visible,
.gp-complete-card__actions .gp-complete-btn--retry:hover,
.gp-complete-card__actions .gp-complete-btn--retry:focus-visible {
  background: rgba(18, 44, 64, 0.96);
  border-color: rgba(142, 208, 232, 0.62);
}

.gp-complete-card__actions .game-guide-btn-primary.gp-complete-card__btn,
.gp-complete-card__actions .gp-complete-btn--record {
  color: #ffffff;
  background: #3399c8;
  border: 1px solid rgba(132, 215, 248, 0.85);
  box-shadow: 0 8px 18px rgba(20, 90, 130, 0.28);
}
