:root {
  color-scheme: dark;
  --bg: #080b13;
  --panel: #101725;
  --line: #25334a;
  --text: #f0f5ff;
  --muted: #a9b8ce;
  --accent: #9cddff;
  --focus: #a1e5ff;
  --r: 22px;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(ellipse at 70% 0, #10243d 0, transparent 620px), var(--bg);
  font-size: 15px;
  line-height: 1.55;
}
a { color: var(--accent); text-underline-offset: .2em; }
button, input { font: inherit; }
button:not(:disabled) { cursor: pointer; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
::selection { color: #080b13; background: var(--accent); }
p, h1, h2, h3, figure, dl, dd { margin: 0; }
.shell { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0 20px; }
.site-header nav { display: flex; align-items: center; gap: 24px; }
.brand { color: var(--text); text-decoration: none; font-size: 23px; font-weight: 800; letter-spacing: -.055em; }
.brand span { color: var(--accent); }
.back, .support-link { color: #c1cde0; text-decoration: none; font-size: 14px; }
.back:hover, .support-link:hover { color: white; }
.support-link { padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: #102037; white-space: nowrap; }
.support-link span { color: var(--accent); margin-left: .2em; }

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr);
  min-height: 440px; border: 1px solid #293d59; border-radius: 28px;
  background: radial-gradient(ellipse at 86% 30%, #172f50, #111b2e 54%, #101726 84%);
}
.hero-content { position: relative; z-index: 1; padding: clamp(26px, 4vw, 56px); padding-right: 0; }
.order-label { display: flex; align-items: center; gap: 11px; margin-bottom: 27px; }
.order-label img { background: #0c111b; border: 1px solid #344764; border-radius: 10px; }
.order-label p:first-child { font-weight: 700; line-height: 1.25; }
.order-label p:last-child { color: var(--muted); font-size: 13px; margin-top: 2px; }
.order-label p:empty { display: none; }
.status {
  --state-color: #bfcbdf;
  display: inline-flex; gap: 8px; align-items: center; color: var(--state-color);
  padding: 5px 11px; border: 1px solid #3c4d66; border-radius: 999px;
  background: #1a2a3d; font-size: 12px; font-weight: 700;
}
.status::before { content: ""; height: 7px; width: 7px; border-radius: 50%; background: currentColor; }
.status[data-tone="good"] { --state-color: #a2edce; background: #14332f; border-color: #306054; }
.status[data-tone="work"] { --state-color: #b6e4ff; background: #172f4a; border-color: #36587b; }
.status[data-tone="warning"] { --state-color: #ffd3a0; background: #392b27; border-color: #614a39; }
h1 { margin-top: 13px; max-width: 650px; font-size: clamp(34px, 4.65vw, 61px); line-height: 1.025; font-weight: 760; letter-spacing: -.057em; text-wrap: balance; }
.hero-message { color: #b8c5da; margin-top: 16px; max-width: 46ch; font-size: clamp(15px, 1.6vw, 17px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions:not(:has(> :not([hidden]))) { display: none; }
.hero-actions:not(:empty) { margin-top: 24px; }
.button {
  appearance: none; text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; min-height: 46px; padding: 9px 16px; border-radius: 11px;
  font-weight: 700; font-size: 14px; line-height: 1.25; text-align: center;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.button-primary {
  background: linear-gradient(115deg, #c0ebff, #8cc9ff); color: #08172b; border: 1px solid #a6d9fc;
  padding-inline: 19px; box-shadow: 0 5px 20px #3c89d93f;
}
.button-primary:hover:not(:disabled) { background: #d3efff; box-shadow: 0 6px 24px #4f9bec63; }
.button:disabled { opacity: .53; box-shadow: none; }
.button-secondary { border: 1px solid #344865; background: #172439; color: #ddeaff; }
.button-secondary:hover:not(:disabled) { background: #213450; border-color: #5a7899; }
.feedback { color: #ffd0a6; font-size: 14px; margin-top: 12px; }
.order-facts {
  display: flex; align-items: flex-start; flex-wrap: wrap; gap: 14px 0;
  margin-top: 25px; padding-top: 16px; border-top: 1px solid #354763;
}
.order-facts > div { padding: 0 17px; border-right: 1px solid #33425a; }
.order-facts > div:first-child { padding-left: 0; }
.order-facts > div:last-of-type, .order-facts:has(> div:last-of-type[hidden]) > div:nth-of-type(2) { border-right: 0; }
.order-facts dt { color: var(--muted); font-size: 12px; }
.order-facts dd { margin-top: 3px; font-size: 15px; font-weight: 730; font-variant-numeric: tabular-nums; }

.card-scene {
  display: grid; place-items: center; min-width: 0;
}
.card-scene::before {
  content: ""; position: absolute; z-index: -1; width: 59%; height: 100%; right: 0; top: 0;
  background: radial-gradient(ellipse at 60% 56%, #19214e15 12%, #10192c2c 46%, #111b2ebd 86%),
    url("/img/gq/bg-super-v1.webp") center / cover;
  mask-image: linear-gradient(90deg, transparent, #000 42%);
}
.card-orbit {
  position: absolute; pointer-events: none; width: 53%; border-radius: 50%; transform: rotate(-24deg);
  animation: orbit-appear .9s ease-out backwards;
}
.card-orbit-wide { height: 43%; right: -3%; border: 1px solid #a2d8ff46; box-shadow: 0 0 27px #6ac2fc29; }
.card-orbit-close { height: 30%; right: -3%; border: 1px solid #95d5ff39; }
.card-art {
  position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden; width: min(78%, 342px); aspect-ratio: 1.61; padding: clamp(18px, 2.4vw, 29px);
  border: 1px solid #9ed1ffba; border-radius: 19px;
  transform: perspective(850px) rotateX(4deg) rotateY(-7deg) rotateZ(-10deg);
  background: radial-gradient(ellipse at 5% 0, #4a70b9 0, transparent 59%), linear-gradient(145deg, #23375c, #1a2344 56%, #194060);
  box-shadow: 0 24px 68px #020613d9, inset 0 1px 5px #aedbff48;
  animation: card-arrive .78s cubic-bezier(.2,.72,.24,1) .06s backwards;
  transition: transform .36s cubic-bezier(.2,.72,.24,1), box-shadow .36s ease;
}
.card-art::before {
  content: ""; position: absolute; inset: -10%; z-index: 1; pointer-events: none; opacity: 0;
  transform: translateX(100%) skewX(-18deg);
  background: linear-gradient(90deg, transparent 25%, #c1eaff36 46%, #e1f4ff65 51%, #c1eaff24 56%, transparent 76%);
}
[data-order-state="issued"] .card-art::before {
  animation: card-glint 1.15s ease-out .55s;
}
.card-art::after {
  content: ""; z-index: -1; position: absolute; right: -30%; bottom: -96%; width: 112%; aspect-ratio: 1;
  border-radius: 50%; border: 1px solid #c1e9ff77; box-shadow: 0 0 0 18px #98dcff26, 0 0 0 42px #73c3ff15, 0 0 0 68px #89d3ff0b;
}
.card-art-top, .card-art-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-art-top > span:first-child { font-size: clamp(12px, 1.5vw, 16px); font-weight: 750; letter-spacing: -.04em; }
.card-chip { width: 28px; height: 20px; border: 1px solid #c5e1fc9e; border-radius: 5px; background: repeating-linear-gradient(90deg, transparent 0 7px, #bdd8f46b 8px, transparent 9px), linear-gradient(#ffffff25,#b5d6ff47); }
.card-art-name { display: flex; align-items: center; gap: 9px; font-size: clamp(20px, 3.2vw, 33px); line-height: 1; letter-spacing: -.055em; font-weight: 750; }
.card-art-name img { border-radius: 9px; width: clamp(26px, 3vw, 37px); height: auto; }
.card-art-name b { color: #bce6ff; font-weight: inherit; }
.card-art-bottom { color: #d9e7fa; font-size: 11px; }
.card-art-bottom > span:last-child { font-weight: 750; letter-spacing: .12em; }
@keyframes card-arrive {
  from { opacity: 0; transform: perspective(850px) translateY(28px) rotateX(13deg) rotateY(-17deg) rotateZ(-15deg) scale(.93); }
  to { opacity: 1; }
}
@keyframes orbit-appear {
  from { opacity: 0; transform: rotate(-32deg) scale(.88); }
  to { opacity: 1; }
}
@keyframes card-glint {
  0% { opacity: 0; transform: translateX(-82%) skewX(-18deg); }
  24%, 65% { opacity: .8; }
  100% { opacity: 0; transform: translateX(93%) skewX(-18deg); }
}
@media (hover: hover) and (pointer: fine) {
  .card-scene:hover .card-art {
    transform: perspective(850px) translateY(-7px) rotateX(0) rotateY(-1deg) rotateZ(-7deg);
    box-shadow: 0 29px 78px #020613da, 0 0 34px #588ec445, inset 0 1px 5px #bce3ff66;
  }
}

.journey {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; list-style: none; margin: 15px 0 36px; padding: 0;
  overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #0f1725;
  counter-reset: stage;
}
.journey li { counter-increment: stage; display: flex; gap: 12px; align-items: center; min-width: 0; padding: 13px 18px; border-right: 1px solid var(--line); }
.journey li:last-child { border-right: 0; }
.journey-number {
  display: grid; flex: 0 0 31px; height: 31px; place-content: center;
  border: 1px solid #40516b; border-radius: 50%; color: #b8c9df; font-size: 13px; font-weight: 730;
}
.journey-number::before { content: counter(stage); }
.journey [data-stage="done"] .journey-number { color: #a2edce; border-color: #356957; background: #15362d; }
.journey [data-stage="done"] .journey-number::before { content: "✓"; }
.journey [aria-current="step"] { background: #182b44; }
.journey [aria-current="step"] .journey-number { color: #09213b; background: #a0dcff; border-color: #a0dcff; }
.journey li div > span { display: block; color: var(--muted); font-size: 12px; }
.journey li strong { display: block; font-size: 14px; font-weight: 680; }

.surface { background: linear-gradient(135deg, #141f31, #101724 72%); border: 1px solid var(--line); border-radius: var(--r); }
.card-details, .prepare { padding: clamp(21px, 3vw, 32px); margin-bottom: 35px; }
.section-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 18px; }
.section-top h2 { font-size: clamp(27px, 3.3vw, 38px); line-height: 1.14; letter-spacing: -.04em; text-wrap: balance; }
.section-top p { color: var(--muted); margin-top: 5px; }
.section-top .button { flex-shrink: 0; }
#gc-details-title:focus, #gc-prepare-title:focus { outline: none; }
.reveal-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.section-top .reveal-time {
  margin: 0; color: #becde0; font-size: 13px; padding: 5px 10px;
  background: #0e1929; border: 1px solid #334761; border-radius: 999px;
}
.reveal-time span { color: #bce8ff; font-variant-numeric: tabular-nums; font-weight: 700; }
.card-details:not([hidden]) { animation: details-arrive .29s cubic-bezier(.2,.72,.24,1) backwards; }
.details-grid { display: grid; grid-template-columns: minmax(0, .91fr) minmax(0, 1.09fr); align-items: start; gap: 14px; }
.details-group {
  background: #0a111d; border: 1px solid #2a435e; border-radius: 15px; padding: 19px; min-width: 0;
  animation: details-arrive .35s cubic-bezier(.2,.72,.24,1) .06s backwards;
}
.details-group + .details-group { animation-delay: .13s; }
.details-group h3 { margin-bottom: 14px; color: #ddedff; font-size: 17px; }
.details-group dl { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.details-group dl > div { grid-column: span 3; min-width: 0; border-top: 1px solid #293d57; padding-top: 8px; }
.details-group .field-wide { grid-column: 1 / -1; }
.details-group .field-compact { grid-column: span 2; }
.details-group dt { color: #ccdaef; font-size: 13px; font-weight: 650; }
.details-group dt small { display: block; color: #a7b9d1; font-size: 11px; font-weight: 450; margin-top: 1px; }
.details-group dd { margin-top: 4px; font-size: 15px; overflow-wrap: anywhere; }
.field-translation { display: block; color: #a9bdd5; font-size: 11px; line-height: 1.4; margin-top: 2px; }
.address-hint { color: #c4dcf6; background: #12233a; border-radius: 8px; padding: 8px 10px; margin-top: 13px; font-size: 13px; }
.details-card {
  position: relative; isolation: isolate; overflow: hidden; border-color: #53769c;
  background: radial-gradient(ellipse at 4% 1%, #223d62 3%, transparent 65%),
    linear-gradient(135deg, #162840, #101c30 64%, #1a344c);
}
.details-card::after {
  content: ""; position: absolute; pointer-events: none; z-index: -1;
  width: 92%; aspect-ratio: 1; bottom: -96%; right: -44%; border-radius: 50%;
  box-shadow: 0 0 0 1px #749fc750, 0 0 0 19px #729bc824, 0 0 0 39px #729bc815;
}
.details-card h3::after {
  content: ""; float: right; width: 25px; height: 18px; border: 1px solid #b4dcff9c; border-radius: 4px;
  background: repeating-linear-gradient(90deg, transparent 0 6px, #bdd8f46b 7px, transparent 8px), #a6d5f82f;
}
.details-card dl > div { border-color: #506d8a; }
.details-card dd { font-family: ui-monospace, Consolas, monospace; font-variant-numeric: tabular-nums; }
.details-card .field-wide dd { font-size: clamp(17px, 2.45vw, 29px); line-height: 1.3; letter-spacing: .035em; }
@keyframes details-arrive {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

#gc-issue { display: grid; gap: 17px; max-width: 650px; }
#gc-issue > .button { justify-self: start; }
#gc-issue > div > label { display: block; font-weight: 700; margin-bottom: 7px; }
#gc-total {
  display: block; width: min(100%, 215px); min-height: 47px; color: var(--text); background: #0b1321;
  border: 1px solid #3c5470; border-radius: 10px; padding: 8px 12px; font-variant-numeric: tabular-nums;
}
.amount-hint { color: var(--muted); margin-top: 6px; font-size: 13px; }
.amount-hint[data-invalid] { color: #ffce9b; }
.confirm { display: flex; align-items: flex-start; gap: 11px; padding: 13px; border: 1px solid #334763; border-radius: 11px; max-width: 560px; }
.confirm input { flex: 0 0 18px; width: 18px; height: 18px; margin: 3px 0 0; accent-color: #92d8ff; }
#gc-issue .feedback { margin-top: 0; }

.guide { margin-top: 32px; }
.guide-grid { display: grid; grid-template-columns: 1.07fr .93fr; align-items: start; gap: 17px; }
.guide-steps { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; counter-reset: guide; }
.guide-steps li { position: relative; counter-increment: guide; padding: 15px 17px 15px 59px; border-radius: 15px; }
.guide-steps li::before {
  content: counter(guide); position: absolute; top: 16px; left: 16px;
  display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px;
  background: #1b3550; border: 1px solid #3c648b; color: #b9e6ff; font-size: 13px; font-weight: 730;
}
.guide-steps h3 { font-size: 17px; letter-spacing: -.017em; }
.guide-steps p, .notice p { margin-top: 4px; color: #b5c3d8; font-size: 14px; }
.guide-steps strong { color: #e7f2ff; }
.guide-aside { display: grid; gap: 10px; }
.checkout { padding: 16px 18px; border-radius: 15px; }
.checkout figcaption { display: flex; gap: 8px; align-items: center; font-weight: 730; }
.checkout figcaption img { border-radius: 6px; }
.checkout-fields { margin-top: 11px; }
.checkout-fields > div { display: flex; gap: 14px; justify-content: space-between; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.checkout-fields dt { color: var(--muted); }
.checkout-fields dd { color: #e5eeff; font-weight: 670; text-align: right; }
.checkout-fields .checkout-total { padding: 10px 0 0; }
.checkout-total dt { color: #f3f7ff; font-weight: 700; }
.checkout-total dd { color: #aee4ff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.checkout-total small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.notice { padding: 13px 15px; border: 1px solid #5b4b42; border-radius: 14px; background: #211e27; }
.notice > strong { color: #ffdfb6; }
.order-footer {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 18px;
  border-top: 1px solid var(--line); margin: 32px 0 38px; padding-top: 17px;
  color: var(--muted); font-size: 13px;
}
.order-footer > div { max-width: 74ch; }
.order-footer p + p { margin-top: 5px; }
.refresh { flex-shrink: 0; }

@media (max-width: 850px) {
  .shell { width: calc(100% - 40px); }
  .hero { min-height: 390px; }
  .hero-content { padding: 28px 0 28px 26px; }
  .card-art { width: 79%; }
  .order-facts > div { padding-inline: 10px; }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 32px); }
  .site-header { padding: 15px 0; }
  .site-header nav { gap: 13px; }
  .brand { font-size: 21px; }
  .back { font-size: 19px; }
  .back span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hero { grid-template-columns: 1fr; min-height: auto; border-radius: 22px; background: linear-gradient(165deg, #162844, #101827 57%); }
  .hero-content { padding: 21px 19px 16px; }
  .order-label { margin-bottom: 16px; }
  .hero-message { margin-top: 11px; }
  .hero-actions:not(:empty) { margin-top: 18px; }
  .order-facts { display: grid; grid-template-columns: auto 1fr; margin-top: 18px; padding-top: 12px; }
  .order-facts > div { padding-inline: 11px; }
  .order-facts > div:nth-child(2) { border-right: 0; }
  .order-facts > div:last-child { padding-left: 0; grid-column: 1 / -1; }
  .order-facts dd { font-size: 14px; }
  .card-scene {
    position: relative; min-height: 194px;
    background: linear-gradient(#111c2c 1%, transparent 51%, #10192d85), url("/img/gq/bg-super-v1.webp") center 48% / cover;
  }
  .card-scene::before { content: none; }
  .card-orbit { width: 84%; right: 7%; }
  .card-orbit-close { right: 6%; }
  .card-art { width: min(64%, 242px); padding: 14px 16px; border-radius: 13px; }
  .card-art-name { font-size: 25px; }
  .journey { margin: 10px 0 25px; }
  .journey li { padding: 10px 5px; text-align: center; justify-content: center; gap: 5px; flex-direction: column; }
  .journey li div > span { font-size: 11px; }
  .journey li strong { font-size: 11px; line-height: 1.3; }
  .journey-number { flex: 0 0 auto; width: 24px; height: 24px; font-size: 11px; }
  .guide-grid, .details-grid { grid-template-columns: 1fr; gap: 10px; }
  .details-group { padding: 14px; }
  .details-group dl { gap: 10px; }
  .details-group dt { font-size: 12px; }
  .reveal-controls { gap: 8px; }
  .reveal-controls .button { padding-inline: 10px; }
  .section-top { flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
  .section-top p { font-size: 14px; }
  .order-footer { flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .shell { width: calc(100% - 24px); }
  .hero-content { padding-inline: 15px; }
  .order-facts > div { padding-inline: 7px; }
  .order-facts dd { font-size: 13px; }
  .card-art-name { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .card-art, .card-scene:hover .card-art { transition: none; }
  .card-art, .card-orbit, [data-order-state="issued"] .card-art::before,
  .card-details:not([hidden]), .details-group { animation: none; }
  .card-scene:hover .card-art { transform: perspective(850px) rotateX(4deg) rotateY(-7deg) rotateZ(-10deg); }
}
