:root {
  color-scheme: dark;
  font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color: #e9ecf7;
  background: #0c1020;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
.page-root {
  min-height: 100vh;
  padding: 0 26px;
  background: radial-gradient(ellipse at 48% -10%, #2a21533d, transparent 57%),
              radial-gradient(ellipse at 0% 92%, #201b3a34, transparent 49%), #0c1020;
}
.masthead {
  width: min(100%, 1310px);
  height: 95px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ffffff12;
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 800; letter-spacing: .65px; }
.brand-light { color: #afa2f3; font-weight: 600; }
.brand small { display: block; margin-top: 5px; color: #70809b; font-size: 8px; font-weight: 650; letter-spacing: 3px; }
.brand-mark {
  display: grid; place-items: center;
  width: 43px; height: 46px; border: 1px solid #8873e7a0;
  background: #6b53c62e; border-radius: 12px; color: #c7b9fa;
  font-size: 28px; transform: rotate(-6deg);
}
.service-label { display: flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 700; letter-spacing: 2.5px; color: #a9b6cf; }
.dot { height: 7px; width: 7px; border-radius: 50%; background: #6fe0b2; box-shadow: 0 0 14px #6fe0b288; }
main { width: min(100%, 1250px); margin: 0 auto; padding: 31px 0 35px; }
.content { display: grid; grid-template-columns: minmax(310px, 405px) minmax(0, 1fr); align-items: stretch; gap: 25px; }
.summary-card, .form-card {
  border: 1px solid #29374f;
  border-radius: 21px;
  background: linear-gradient(150deg, #151e30 0%, #141c2d 82%);
  box-shadow: 0 16px 50px #01061124;
  min-width: 0;
}
.summary-card { padding: 29px; display: flex; flex-direction: column; }
.summary-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.small-title { color: #a2b1ce; font-size: 11px; font-weight: 750; letter-spacing: 1.7px; }
.reference { padding: 8px 11px; border-radius: 7px; color: #c3b6f6; background: #2a2445; font: 600 12px ui-monospace,Consolas,monospace; }
.gift-art { width: 100%; position: relative; aspect-ratio: 460 / 277; min-height: 175px; overflow: hidden; border: 1px solid #4e4c7f8c; border-radius: 13px; background: #161c38; }
.game-image { display: block; width: 100%; height: 100%; object-fit: cover; }
.game-art-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 13px; background: radial-gradient(ellipse at 50% 25%, #7860b555, transparent 70%), #1b2037; color: #bda9ef; }
.game-art-fallback span { color: #9c92bd; font-size: 10px; font-weight: 800; letter-spacing: 3px; }
.summary-card h2 { font-size: clamp(19px, 2vw, 25px); line-height: 1.3; letter-spacing: -.6px; margin: 22px 0 8px; overflow-wrap: anywhere; }
.package-name { margin: 0 0 24px; color: #95a5c0; font-size: 13px; line-height: 1.6; }
.summary-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 15px; padding: 25px 0 23px; border-top: 1px solid #2b364d; font-size: 12px; }
.summary-meta span { color: #90a1ba; }
.summary-meta strong { max-width: 160px; font-size: 12px; color: #e0e6f6; font-weight: 550; text-align: right; }
.summary-note { display: flex; align-items: center; gap: 13px; margin-top: auto; padding-top: 23px; border-top: 1px solid #2b364d; }
.summary-note p { margin: 0; color: #98a9c0; line-height: 1.7; font-size: 12px; }
.shield { display: grid; place-items: center; flex-shrink: 0; height: 34px; width: 34px; border-radius: 10px; background: #1d493c33; border: 1px solid #518b7966; color: #78d4aa; font-size: 18px; }
.form-card { padding: 29px 33px 22px; display: flex; flex-direction: column; }
.form-topbar { display: flex; align-items: center; justify-content: space-between; gap: 13px; margin-bottom: 37px; }
.steps { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: #7585a0; white-space: nowrap; font-size: 10px; font-weight: 650; }
.step { display: inline-flex; align-items: center; gap: 5px; }
.step.active { color: #b7a5fb; }
.step.done { color: #95a7c1; }
.step-check { display: none; place-items: center; height: 18px; width: 18px; background: #1547376b; color: #68dfad; border-radius: 50%; border: 1px solid #3d916d; font-size: 11px; }
.step.done .step-check { display: inline-grid; }
.steps i { flex: 1; height: 1px; min-width: 8px; background: #3b455d; }
.languages { flex-shrink: 0; display: flex; align-items: center; gap: 1px; padding: 3px; border: 1px solid #2d3a56; border-radius: 9px; }
.languages button { padding: 6px 7px; background: transparent; border: 0; border-radius: 6px; color: #95a5c1; font-weight: 700; font-size: 10px; }
.languages button[aria-pressed="true"] { color: #fff; background: #58489e; box-shadow: inset 0 0 0 1px #a08afb; }
h1 { margin: 0 0 10px; font-size: clamp(21px, 2.45vw, 29px); line-height: 1.25; letter-spacing: -.6px; font-weight: 750; }
h2 { font-size: 16px; line-height: 1.35; }
.form-intro { margin: 0 0 25px; color: #9baac4; font-size: 13px; line-height: 1.65; }
form > label:not(.consent) { display: block; margin: 23px 0 10px; font-size: 12px; font-weight: 550; color: #dae2f0; }
input:not([type=checkbox]):not([type=hidden]), select { display: block; width: 100%; min-width: 0; height: 48px; padding: 0 15px; border-radius: 10px; border: 1px solid #34425f; outline: none; color: #f0f3ff; background: #101829; font-size: 13px; }
input::placeholder { color: #71819d; }
input:focus, select:focus { border-color: #9787f3; box-shadow: 0 0 0 3px #7969cc2a; }
.field-hint { display: block; margin-top: 8px; color: #8b9ab3; line-height: 1.55; font-size: 11px; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 25px; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 auto; accent-color: #9079e5; }
.consent span { font-size: 11px; line-height: 1.7; color: #a7b4cd; }
.primary { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; margin-top: 23px; padding: 15px 20px; border: 1px solid #a78ffe; border-radius: 10px; background: linear-gradient(95deg, #806ce0, #9984ed); color: #fff; font-weight: 750; font-size: 13px; box-shadow: 0 9px 25px #5c42a124; transition: filter .15s, transform .15s; }
.primary:hover { filter: brightness(1.09); transform: translateY(-1px); }
.primary:disabled { opacity: .65; cursor: wait; transform: none; }
.privacy { color: #8495b0; line-height: 1.6; margin: 12px 0 0; font-size: 10px; }
.status-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: auto; padding-top: 19px; border-top: 1px solid #2c3952; }
.footer-status { display: flex; align-items: center; gap: 10px; min-width: 0; color: #9caec9; }
.clock { font-size: 20px; }
#status-badge { font-size: 11px; line-height: 1.55; }
.text-button { padding: 6px 1px; border: none; background: transparent; color: #beadfa; font-size: 11px; font-weight: 600; }
.text-button:hover { color: #f1eafd; }
.text-button:disabled { opacity: .5; }
button:focus-visible, a:focus-visible { outline: 2px solid #cbbcff; outline-offset: 4px; }
.notice { margin: 0 0 22px; padding: 17px 20px; border: 1px solid #354463; border-radius: 12px; background: #192337; color: #b8c6df; line-height: 1.65; font-size: 12px; }
.notice.error { border-color: #6c4458; background: #381f2e; color: #f2bdcb; }
.notice.correction { margin-top: -3px; padding: 12px 14px; background: #292438; border-color: #57496d; color: #decdf7; }
.result > .form-intro { margin-bottom: 18px; }
.result-alert { display: flex; align-items: center; gap: 16px; padding: 15px 18px; border-radius: 12px; border: 1px solid #378168; background: linear-gradient(100deg, #13382d, #12393077); }
.result-icon { display: grid; flex: 0 0 auto; place-items: center; height: 36px; width: 36px; border-radius: 50%; background: #6ae7a7; color: #063421; font-size: 20px; font-weight: 800; }
.result-alert strong { color: #74edb0; font-size: 13px; }
.result-alert p { margin: 5px 0 0; font-size: 11px; line-height: 1.6; color: #aac8bc; }
.result-alert.warning { border-color: #936477; background: #34232f; }
.result-alert.warning .result-icon { background: #e8a4a8; color: #43232c; }
.result-alert.warning strong { color: #f7c1c1; }
.result-alert.warning p { color: #dfafb8; }
.info-panel, .timeline-panel { padding: 19px 20px; margin-top: 14px; border: 1px solid #30415c; border-radius: 12px; }
.info-panel h2, .timeline-panel h2 { margin: 0 0 13px; font-size: 15px; }
.info-rows { margin: 0; }
.info-rows > div { display: grid; grid-template-columns: minmax(125px, 42%) minmax(0, 1fr); gap: 10px; border-bottom: 1px solid #2b3950; padding: 9px 0; align-items: baseline; }
.info-rows > div:last-child { border-bottom: 0; }
.info-rows dt, .info-rows dd { margin: 0; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.info-rows dt { color: #9cacbf; }
.info-rows dd { color: #e2e9f8; }
.info-panel > .privacy { margin-top: 10px; }
.timeline { margin: 13px 0; }
.timeline-row { display: flex; align-items: flex-start; gap: 15px; padding: 9px 0; }
.timeline-icon { display: grid; place-items: center; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; border: 1px solid #71809c; font-weight: 750; color: #96a7c2; }
.timeline-copy { min-width: 0; flex: 1; }
.timeline-copy strong { font-size: 12px; font-weight: 650; }
.timeline-copy p { color: #91a3bc; font-size: 11px; line-height: 1.55; margin: 4px 0 0; }
.timeline-label { margin-left: auto; padding-top: 4px; white-space: nowrap; color: #95a7c2; font-size: 10px; font-weight: 650; }
.timeline-row.done .timeline-icon { color: #15472e; background: #77dda9; border-color: #77dda9; }
.timeline-row.done .timeline-label { color: #69e6ae; }
.timeline-row.current .timeline-icon { color: #b69cfa; background: #4c3a8155; border-color: #9679ec; }
.timeline-row.current .timeline-label { color: #bd9bfa; }
.result-note { margin: 12px 0 0; padding: 12px 13px; border: 1px solid #30415c; border-radius: 9px; color: #9faeca; font-size: 11px; line-height: 1.7; }
.result + .status-footer { margin-top: 17px; }
footer { width: min(100%, 1310px); margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; padding: 18px 0 26px; border-top: 1px solid #ffffff10; font-size: 9px; color: #65748f; line-height: 1.6; }
.footer-divider { margin: 0 6px; color: #9478dd; }
@media (max-width: 1100px) {
  .form-topbar { align-items: flex-start; flex-direction: column-reverse; gap: 14px; }
  .languages { align-self: flex-end; }
  .steps { width: 100%; }
}
@media (max-width: 850px) {
  .page-root { padding: 0 18px; }
  .content { grid-template-columns: 270px minmax(0, 1fr); gap: 16px; }
  .summary-card { padding: 20px; }
  .form-card { padding: 23px 22px; }
  .step { font-size: 9px; }
}
@media (max-width: 700px) {
  .page-root { padding: 0 14px; }
  .masthead { height: 76px; }
  .brand { font-size: 17px; }
  main { padding-top: 18px; }
  .content { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .summary-card { padding: 17px; }
  .gift-art { aspect-ratio: 460 / 190; min-height: 150px; }
  .summary-card h2 { font-size: 19px; margin: 14px 0 5px; }
  .package-name { margin-bottom: 13px; }
  .summary-meta { padding: 15px 0; gap: 10px; }
  .summary-note { margin-top: 0; padding-top: 12px; }
  .form-card { padding: 19px 18px; }
  .form-topbar { margin-bottom: 25px; }
  .steps { gap: 6px; }
  .steps i { min-width: 3px; }
  .languages { align-self: flex-end; }
  .info-panel, .timeline-panel { padding: 15px 13px; }
  footer { flex-direction: column; gap: 7px; }
}
@media (max-width: 400px) {
  .steps { font-size: 9px; }
  .step { gap: 3px; }
  .step span:nth-child(2) { font-size: 8px; }
  .timeline-label { max-width: 88px; white-space: normal; text-align: right; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
/* Image fills the artwork frame without changing the height of the order card. */
.game-image { position: absolute; inset: 0; }
/* Steam Ops country picker 0.5.4 — styled popup instead of native OS select. */
.country-picker { position: relative; width: 100%; }
.country-picker input[type="hidden"] { display: none !important; }
.country-trigger {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  width: 100%; min-height: 48px; padding: 0 15px; border-radius: 10px;
  border: 1px solid #34425f; color: #f0f3ff; background: #101829;
  font-size: 13px; text-align: left; transition: border-color .16s, box-shadow .16s;
}
.country-trigger.is-placeholder { color: #9caac2; }
.country-trigger svg { flex: 0 0 auto; color: #a9b4ce; transition: transform .16s; }
.country-trigger:hover { border-color: #5c5b84; }
.country-trigger:focus-visible, .country-trigger[aria-expanded="true"] {
  outline: none; border-color: #9787f3; box-shadow: 0 0 0 3px #7969cc2a;
}
.country-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.country-trigger[aria-invalid="true"] { border-color: #d888a7; }
.country-menu {
  position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; right: 0;
  padding: 9px; border-radius: 12px; border: 1px solid #55477e;
  background: #151b30; box-shadow: 0 24px 65px #03050fcf, 0 0 0 1px #68529a24;
}
.country-search-box { position: relative; margin-bottom: 7px; }
.country-search-box > svg { position: absolute; z-index: 1; left: 13px; top: 15px; color: #9b91c3; pointer-events: none; }
input#country-search[type="search"] {
  height: 46px; width: 100%; padding: 0 15px 0 42px;
  background: #0f1729; color: #f1efff; border: 1px solid #3b4565;
  border-radius: 9px; box-sizing: border-box; font-size: 13px;
}
input#country-search:focus { outline: none; border-color: #8c73dc; box-shadow: 0 0 0 2px #8c73dc33; }
.country-options { max-height: 280px; overflow-y: auto; overscroll-behavior: contain; padding: 3px; scrollbar-color: #62568e #171d31; scrollbar-width: thin; }
.country-option {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; min-height: 39px; padding: 9px 13px;
  background: transparent; color: #d5dced; border: 0; border-radius: 8px;
  font-size: 13px; font-weight: 500; line-height: 1.4; text-align: left;
}
.country-option:hover, .country-option:focus-visible { outline: none; background: #3b305e; color: #fff; }
.country-option[aria-selected="true"] { color: #d6c6ff; background: #453567; font-weight: 650; }
.country-option[aria-selected="true"]::after { content: "✓"; color: #b69af3; font-size: 15px; }
.country-empty { text-align: center; color: #a4a9c4; padding: 18px; font-size: 12px; }
@media (max-width: 700px) {
  .country-menu { max-height: min(55vh, 390px); }
  .country-options { max-height: min(38vh, 270px); }
}
