/* 플레이포트 · 게임 상점 */
:root {
  --bg: #0B1020;
  --surface: #141B33;
  --surface-2: #1A2242;
  --line: #222B4A;
  --text: #EEF1FA;
  --muted: #8C95B5;
  --primary: #FF5A4E;
  --accent: #5CE1E6;
  --ok: #46D39A;
  --warn: #FFC857;
  --danger: #E5484D;
  --danger-text: #FF8A8D;
  --r: 12px;
  --notch: 16px;
  --display: "Chakra Petch", "Pretendard Variable", system-ui, sans-serif;
  --body: "Pretendard Variable", "Pretendard", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.gs {
  margin: 0;
  min-height: 100vh;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: radial-gradient(1200px 500px at 80% -10%, rgba(92, 225, 230, .08), transparent 60%), radial-gradient(900px 400px at -10% 0%, rgba(255, 90, 78, .08), transparent 60%), var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
}
:where(.gs) button, :where(.gs) input { font: inherit; color: inherit; }
:where(.gs) button { cursor: pointer; }
:where(.gs) a { color: var(--accent); }
.gs :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gs [hidden] { display: none !important; }
.gs-sprites { position: absolute; width: 0; height: 0; overflow: hidden; }
.gs-mono { font-family: var(--display); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.gs-muted { margin: 6px 0 0; color: var(--muted); }
.gs-fine { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

/* 머리 */
.gs-top { position: sticky; top: 0; z-index: 30; background: rgba(11, 16, 32, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.gs-top__inner { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand reset" "nav nav"; align-items: center; gap: 10px; }
.gs-brand { grid-area: brand; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.gs-brand__mark { width: 30px; height: 30px; }
.gs-brand__en { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .08em; }
.gs-brand__ko { font-size: 13px; color: var(--muted); }
.gs-nav { grid-area: nav; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.gs-nav__item { display: grid; place-items: center; min-height: 40px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.gs-nav__item.is-active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 -2px 0 var(--primary); }
.gs-reset { grid-area: reset; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 600; }
.gs-reset:hover { color: var(--text); border-color: var(--muted); }
@media (min-width: 860px) {
  .gs-top__inner { grid-template-columns: auto 1fr auto; grid-template-areas: "brand nav reset"; padding: 12px 24px; }
  .gs-nav { justify-self: center; width: 380px; }
}

.gs-main { max-width: 1200px; margin: 0 auto; padding: 20px 16px 110px; }
@media (min-width: 860px) { .gs-main { padding: 32px 24px 110px; } }

/* 글자 */
.gs-eyebrow { margin: 0 0 4px; font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--accent); }
.gs-h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.3; letter-spacing: -.01em; }
.gs-h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.3; }
.gs-h3 { margin: 0 0 12px; font-family: var(--display); font-weight: 600; font-size: 18px; }
@media (min-width: 860px) { .gs-h1 { font-size: 36px; } }
.gs-tag { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 4px; border: 1px solid rgba(92, 225, 230, .45); color: var(--accent); font-size: 12px; font-weight: 700; white-space: nowrap; }
.gs-tag--warn { border-color: rgba(255, 200, 87, .5); color: var(--warn); }

/* 버튼·칩·입력 */
.gs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 1px solid transparent; border-radius: 10px; background: var(--surface-2); color: var(--text); font-weight: 700; font-size: 15px; text-decoration: none; }
.gs-btn--primary { background: var(--primary); color: #0B1020; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%); border-radius: 8px; }
.gs-btn--primary:hover { background: #FF7268; }
.gs-btn--ghost { border-color: var(--line); background: transparent; }
.gs-btn--ghost:hover { border-color: var(--muted); }
.gs-btn--sm { min-height: 40px; padding: 0 12px; font-size: 13px; }
.gs-btn--lg { min-height: 54px; font-size: 16px; }
.gs-btn--block { width: 100%; }
.gs-btn:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
.gs-icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); }
.gs-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; margin-bottom: 18px; scrollbar-width: none; }
.gs-chip { flex: none; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-weight: 600; font-size: 14px; }
.gs-chip[aria-pressed="true"] { border-color: var(--accent); color: var(--bg); background: var(--accent); }
.gs-input { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font-size: 15px; }
.gs-input:focus { border-color: var(--accent); outline: none; }

/* 스토어 */
.gs-store__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.gs-search { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 220px; max-width: 360px; min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--muted); }
.gs-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 15px; color: var(--text); }
.gs-search:focus-within { border-color: var(--accent); }
.gs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .gs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1040px) { .gs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.gs-card { display: flex; flex-direction: column; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-align: left; overflow: hidden; clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%); transition: transform .15s ease-out, border-color .15s; }
.gs-card:hover { transform: translateY(-3px); border-color: rgba(92, 225, 230, .5); }
.gs-card__poster { position: relative; display: block; aspect-ratio: 3 / 4; background: var(--bg); }
.gs-card__poster svg { display: block; width: 100%; height: 100%; }
.gs-card__poster::after, .gs-detail__poster::after { content: ""; position: absolute; inset: 55% 0 0 0; background: linear-gradient(transparent, rgba(5, 8, 18, .72)); pointer-events: none; }
.gs-card__en, .gs-card__sale { z-index: 1; }
.gs-card__en { position: absolute; left: 10px; right: 10px; bottom: 8px; font-family: var(--display); font-weight: 700; font-size: 15px; line-height: 1.1; letter-spacing: .06em; color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, .7); }
.gs-card__sale { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 4px; background: var(--primary); color: #0B1020; font-family: var(--display); font-weight: 700; font-size: 13px; }
.gs-card__body { display: grid; gap: 4px; padding: 10px 12px 12px; }
.gs-card__title { font-weight: 700; font-size: 15px; }
.gs-card__genre { font-size: 12px; color: var(--muted); }
.gs-card__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; }
.gs-price { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.gs-price s { font-size: 12px; color: var(--muted); }
.gs-price b { font-family: var(--display); font-weight: 700; font-size: 18px; }
.gs-price em { font-style: normal; font-family: var(--display); font-weight: 700; color: var(--primary); }
.gs-price--lg b { font-size: 26px; }
.gs-stock { padding: 1px 8px; border: 1px solid rgba(92, 225, 230, .35); border-radius: 4px; color: var(--accent); font-size: 12px; font-weight: 600; white-space: nowrap; }
.gs-stock.is-low { border-color: rgba(255, 200, 87, .5); color: var(--warn); }
.gs-empty { padding: 32px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r); }

/* 대화상자 */
.gs-dialog { padding: 0; border: 0; background: transparent; color: var(--text); max-width: none; max-height: none; }
.gs-dialog::backdrop { background: rgba(4, 6, 14, .7); }
.gs-dialog[open] { position: fixed; inset: auto 0 0 0; width: 100%; margin: 0; }
.gs-dialog__body { position: relative; max-width: 640px; margin: 0 auto; max-height: 88vh; overflow: auto; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; }
@media (min-width: 760px) {
  .gs-dialog[open] { inset: 0; margin: auto; width: min(760px, calc(100% - 32px)); height: fit-content; }
  .gs-dialog--sheet[open] { width: min(620px, calc(100% - 32px)); }
  .gs-dialog__body { border-bottom: 1px solid var(--line); border-radius: 16px; max-width: none; }
}
.gs-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.gs-dialog__title { margin: 0; font-family: var(--display); font-weight: 700; font-size: 24px; }
.gs-dialog__foot { margin: 8px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.gs-map { list-style: none; margin: 12px 0 0; padding: 0; }
.gs-map li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.gs-map li > span { font-size: 13px; color: var(--muted); }
.gs-map a { font-weight: 700; text-decoration: none; }

.gs-detail { display: grid; gap: 16px; }
@media (min-width: 760px) { .gs-detail { grid-template-columns: 240px 1fr; gap: 24px; padding: 24px; } }
.gs-detail__close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.gs-detail__poster { position: relative; width: 160px; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); }
@media (min-width: 760px) { .gs-detail__poster { width: 100%; } }
.gs-detail__poster svg { display: block; width: 100%; height: 100%; }
.gs-detail__blurb { margin: 8px 0 14px; color: var(--muted); }
.gs-kv { display: grid; gap: 8px; margin: 0 0 16px; }
.gs-kv div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; font-size: 14px; }
.gs-kv dt { color: var(--muted); }
.gs-kv dd { margin: 0; font-weight: 600; }
.gs-kv dd.is-low { color: var(--warn); }
.gs-detail__buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.gs-detail__buy .gs-btn { min-width: 160px; }

/* 결제 */
.gs-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 20px; padding: 0; }
.gs-steps li { display: flex; align-items: baseline; gap: 8px; padding-top: 10px; border-top: 3px solid var(--line); color: var(--muted); font-weight: 600; font-size: 14px; }
.gs-steps b { font-family: var(--display); font-size: 13px; }
.gs-steps li.is-done { border-color: var(--accent); color: var(--text); }
.gs-steps li.is-now { border-color: var(--primary); color: var(--text); }
.gs-co { display: grid; gap: 16px; }
@media (min-width: 860px) { .gs-co { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.gs-panel { padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% var(--notch), 100% 100%, 0 100%); }
.gs-panel__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-bottom: 12px; }
.gs-panel__head .gs-h3 { margin: 0; }
.gs-panel__head .gs-muted { margin: 0; font-size: 13px; }
.gs-line { display: flex; gap: 14px; }
.gs-line__poster { flex: none; width: 84px; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; }
.gs-line__poster svg { display: block; width: 100%; height: 100%; }
.gs-line__info { display: grid; align-content: start; gap: 4px; }
.gs-line__info b { font-size: 17px; }
.gs-line__info small { color: var(--muted); }
.gs-qty { display: inline-flex; align-items: center; margin-top: 6px; border: 1px solid var(--line); border-radius: 10px; width: fit-content; }
.gs-qty button { width: 44px; height: 40px; border: 0; background: transparent; color: var(--text); font-size: 20px; }
.gs-qty button:disabled { color: var(--line); cursor: not-allowed; }
.gs-qty output { min-width: 32px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 17px; }
.gs-sum { display: grid; gap: 8px; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.gs-sum div { display: flex; justify-content: space-between; gap: 10px; }
.gs-sum dt { color: var(--muted); }
.gs-sum dd { margin: 0; font-family: var(--display); font-weight: 600; }
.gs-sum dd.is-sale { color: var(--primary); }
.gs-sum__total { padding-top: 8px; border-top: 1px dashed var(--line); }
.gs-sum__total dt { color: var(--text); font-weight: 700; }
.gs-sum__total dd { font-size: 24px; font-weight: 700; color: var(--text); }
.gs-methods { display: grid; gap: 8px; margin-bottom: 16px; }
.gs-method { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); text-align: left; color: var(--muted); }
.gs-method span { display: grid; }
.gs-method b { color: var(--text); font-size: 15px; }
.gs-method small { font-size: 12px; }
.gs-method[aria-checked="true"] { border-color: var(--accent); background: rgba(92, 225, 230, .08); color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.gs-field { display: grid; gap: 6px; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.gs-field__label { margin: 12px 0 8px; font-size: 13px; font-weight: 600; color: #5A6380; }
.gs-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 16px; font-size: 13px; color: var(--muted); }
.gs-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex: none; }
.gs-error { margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: rgba(229, 72, 77, .14); color: var(--danger-text); font-size: 14px; font-weight: 600; }

/* 모의 PG 창: 밝은 별도 창처럼 */
.gs-pg[open] { width: min(420px, calc(100% - 24px)); inset: 0; margin: auto; height: fit-content; }
.gs-pg__body { overflow: hidden; border-radius: 14px; background: #F6F7FB; color: #1A2033; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.gs-pg__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 16px; background: #FFE9A8; font-size: 12px; font-weight: 700; color: #5B4500; }
.gs-pg__bar .gs-tag { border-color: #B98A00; color: #5B4500; }
.gs-pg__head { display: grid; gap: 2px; padding: 18px 18px 14px; border-bottom: 1px solid #E1E4EE; }
.gs-pg__head small { color: #5A6380; font-size: 12px; }
.gs-pg__head b { font-family: var(--display); font-size: 28px; }
.gs-pg__head span { font-size: 14px; color: #3A4260; }
.gs-pg__main { padding: 4px 18px 8px; }
.gs-pg__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.gs-pg .gs-chip { background: #fff; border-color: #D5D9E6; color: #3A4260; }
.gs-pg .gs-chip[aria-pressed="true"] { background: #1A2033; border-color: #1A2033; color: #fff; }
.gs-pg .gs-fine { color: #5A6380; }
.gs-pg .gs-kv dt { color: #5A6380; }
.gs-pg__actions { display: flex; gap: 8px; padding: 14px 18px 18px; }
.gs-pg__actions .gs-btn { flex: 1; }
.gs-pg__actions .gs-btn--ghost { border-color: #D5D9E6; color: #1A2033; }
.gs-pg__actions .gs-btn--primary { background: #1A2033; color: #fff; clip-path: none; }
.gs-pg__progress { list-style: none; margin: 14px 0 6px; padding: 0; display: grid; gap: 10px; }
.gs-pg__progress li { display: flex; align-items: center; gap: 10px; color: #8A90A8; font-weight: 600; }
.gs-pg__progress li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #C5CADB; flex: none; }
.gs-pg__progress li.is-done { color: #1A2033; }
.gs-pg__progress li.is-done::before { background: #2BA772; border-color: #2BA772; }
.gs-pg__actions .gs-fine { margin: 0; }

/* 완료 */
.gs-done { display: grid; gap: 18px; }
.gs-done__head { display: flex; gap: 14px; align-items: flex-start; }
.gs-done__icon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 12px; background: rgba(70, 211, 154, .15); color: var(--ok); }
.gs-codes { display: grid; gap: 10px; }
@media (min-width: 860px) { .gs-codes { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); } }
.gs-code { display: grid; gap: 8px; padding: 16px; border: 1px dashed rgba(92, 225, 230, .5); border-radius: var(--r); background: linear-gradient(135deg, rgba(92, 225, 230, .08), rgba(255, 90, 78, .06)); }
.gs-code__label { font-size: 12px; font-weight: 700; color: var(--muted); }
.gs-code__value { font-size: 24px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.gs-code__value.is-shown { color: var(--accent); }
.gs-code__actions { display: flex; gap: 8px; }
.gs-done__next { display: flex; flex-wrap: wrap; gap: 10px; }

/* 처리 콘솔 */
.gs-console__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.gs-console__head > div:first-child { max-width: 640px; }
.gs-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.gs-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font-weight: 600; font-size: 14px; }
.gs-toggle__knob { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--line); transition: background .2s; }
.gs-toggle__knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.gs-toggle[aria-checked="true"] { border-color: rgba(255, 200, 87, .6); }
.gs-toggle[aria-checked="true"] .gs-toggle__knob { background: rgba(255, 200, 87, .35); }
.gs-toggle[aria-checked="true"] .gs-toggle__knob::after { transform: translateX(16px); background: var(--warn); }
.gs-outcome { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.gs-seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.gs-seg button { min-height: 38px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-weight: 600; font-size: 13px; }
.gs-seg button[aria-checked="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 -2px 0 var(--warn); }

.gs-pipe { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; padding-top: 14px; }
@media (min-width: 860px) {
  .gs-pipe { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
  .gs-pipe::before { content: ""; position: absolute; left: 4%; right: 4%; top: calc(14px + 50%); height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
}
.gs-node { position: relative; z-index: 1; display: grid; gap: 4px; align-content: start; min-height: 132px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); transition: border-color .2s, box-shadow .2s; }
.gs-node.is-active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent), 0 0 24px rgba(92, 225, 230, .25); }
.gs-node__idx { font-family: var(--display); font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .1em; }
.gs-node b { font-size: 15px; }
.gs-node small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.gs-light { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.gs-light i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); box-shadow: 0 0 0 3px rgba(34, 43, 74, .6); }
.gs-light em { font-style: normal; }
.gs-light[data-state="busy"] { color: var(--accent); }
.gs-light[data-state="busy"] i { background: var(--accent); animation: gs-blink .5s ease-in-out infinite alternate; }
.gs-light[data-state="ok"] { color: var(--ok); }
.gs-light[data-state="ok"] i { background: var(--ok); }
.gs-light[data-state="warn"] { color: var(--warn); }
.gs-light[data-state="warn"] i { background: var(--warn); }
.gs-light[data-state="danger"] { color: var(--danger-text); }
.gs-light[data-state="danger"] i { background: var(--danger); }
@keyframes gs-blink { to { opacity: .35; } }
.gs-token { position: absolute; z-index: 3; left: 0; top: 0; padding: 2px 8px; border-radius: 4px; background: var(--primary); color: #0B1020; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .06em; box-shadow: 0 0 16px rgba(255, 90, 78, .6); transition: left .45s cubic-bezier(.5, 0, .2, 1), top .45s cubic-bezier(.5, 0, .2, 1); pointer-events: none; }

.gs-console__grid { display: grid; gap: 16px; margin-bottom: 16px; }
@media (min-width: 960px) { .gs-console__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } }
.gs-state { display: inline-flex; padding: 2px 10px; border-radius: 4px; font-style: normal; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.gs-state[data-s="처리 중"] { background: rgba(92, 225, 230, .14); color: var(--accent); }
.gs-state[data-s="완료"] { background: rgba(70, 211, 154, .14); color: var(--ok); }
.gs-state[data-s="보류"] { background: rgba(255, 200, 87, .14); color: var(--warn); }
.gs-state[data-s="자동 취소"] { background: rgba(229, 72, 77, .16); color: var(--danger-text); }
.gs-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-height: 200px; }
.gs-ev { display: grid; grid-template-columns: 74px 1fr; gap: 2px 10px; padding: 10px 12px; border-left: 3px solid var(--ok); border-radius: 0 8px 8px 0; background: var(--bg); animation: gs-in .25s ease-out; }
.gs-ev time { grid-row: span 2; font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--text); font-variant-numeric: tabular-nums; }
.gs-ev__mod { font-size: 12px; font-weight: 700; color: var(--accent); }
.gs-ev__text { font-size: 14px; }
.gs-ev.is-warn { border-left-color: var(--warn); }
.gs-ev.is-warn .gs-ev__mod { color: var(--warn); }
.gs-ev.is-danger { border-left-color: var(--danger); }
.gs-ev.is-danger .gs-ev__mod { color: var(--danger-text); }
@keyframes gs-in { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }

.gs-orders { display: grid; }
.gs-orders__row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "no state" "game amount" "game ms"; gap: 2px 10px; padding: 10px 6px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--text); text-align: left; font-size: 14px; align-items: center; }
.gs-orders__row > span:nth-child(1) { grid-area: no; font-size: 13px; color: var(--muted); }
.gs-orders__row > span:nth-child(2) { grid-area: game; display: grid; }
.gs-orders__row > span:nth-child(3) { grid-area: amount; justify-self: end; font-family: var(--display); font-weight: 600; }
.gs-orders__row > span:nth-child(4) { grid-area: state; justify-self: end; }
.gs-orders__row > span:nth-child(5) { grid-area: ms; justify-self: end; font-size: 12px; color: var(--muted); }
.gs-orders__row small { font-size: 12px; color: var(--muted); }
.gs-orders__row--head { display: none; }
button.gs-orders__row:hover { background: var(--surface-2); }
.gs-orders__row.is-current { background: rgba(92, 225, 230, .06); box-shadow: inset 3px 0 0 var(--accent); }
@media (min-width: 560px) {
  .gs-orders__row { grid-template-columns: 1.1fr 1.3fr .9fr .8fr .7fr; grid-template-areas: none; }
  .gs-orders__row > span { grid-area: auto !important; justify-self: start !important; }
  .gs-orders__row--head { display: grid; padding: 6px; font-size: 12px; font-weight: 700; color: var(--muted); border-top: 0; }
}

.gs-meet__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 860px) { .gs-meet__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; } }
.gs-meet__list li { display: flex; gap: 12px; }
.gs-meet__no { font-family: var(--display); font-weight: 700; font-size: 20px; color: var(--primary); line-height: 1.2; }
.gs-meet__list b { font-size: 15px; }
.gs-meet__list p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }

/* 공고 대응표·알림 */
.gs-fab { position: fixed; right: 16px; bottom: 16px; z-index: 25; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--text); font-size: 13px; font-weight: 700; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
@media (min-width: 860px) { .gs-fab { right: 24px; bottom: 24px; } }
.gs-toast { position: fixed; left: 0; right: 0; top: 112px; z-index: 40; width: max-content; max-width: calc(100% - 32px); margin: 0 auto; padding: 12px 18px; border: 1px solid rgba(92, 225, 230, .4); border-radius: 10px; background: var(--surface-2); color: var(--text); font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
@media (min-width: 860px) { .gs-toast { top: 84px; } }
.gs-toast.is-in { animation: gs-drop .3s ease-out; }
@keyframes gs-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.demo-notice { max-width: 1200px; margin: -80px auto 0; padding: 0 16px 90px; font-size: 12px; color: var(--muted); text-align: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; transition: none !important; }
}
