/* Order flow (/start) and order page (/order/:id) */
body.flow { min-height: 100vh; background: radial-gradient(70% 50% at 80% -10%, rgba(201, 169, 110, 0.12), transparent 70%), var(--bg); }
.fbar { position: sticky; top: 0; z-index: 40; background: rgba(10, 9, 8, 0.8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.fbar .wrap { display: flex; align-items: center; height: 70px; gap: 20px; }
.fbar .exit { margin-left: auto; font-size: 14px; color: var(--mute); text-decoration: none; }
.fbar .exit:hover { color: var(--text); }
.progress { height: 2px; background: var(--line); }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); box-shadow: 0 0 12px var(--gold); transition: width 0.8s var(--ease); }

.flow-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; padding-top: 56px; padding-bottom: 120px; align-items: start; }
@media (max-width: 1000px) { .flow-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 36px; } }

.rail { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 44px; }
.rail button { background: none; border: 1px solid var(--line); color: var(--mute); border-radius: 999px; padding: 6px 14px 6px 10px; font: 500 13px var(--sans); display: inline-flex; gap: 8px; align-items: center; cursor: default; transition: all 0.3s; }
.rail button .d { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-size: 10px; }
.rail button.done { color: var(--text-2); cursor: pointer; }
.rail button.done .d { background: var(--gold-3); border-color: var(--gold-3); color: #16110a; }
.rail button.done:hover { border-color: var(--line-2); }
.rail button.cur { color: var(--text); border-color: var(--gold-3); background: rgba(201, 169, 110, 0.07); }
.rail button.cur .d { border-color: var(--gold); color: var(--gold); }
@media (max-width: 640px) { .rail button:not(.cur) span.t { display: none; } .rail button { padding: 6px 8px; } .rail button.cur { padding-right: 14px; } }

.stp { display: none; }
.stp.on { display: block; animation: stepIn 0.7s var(--ease) both; }
.stp.on.back { animation-name: stepBack; }
@keyframes stepIn { from { opacity: 0; transform: translateY(18px); filter: blur(4px); } }
@keyframes stepBack { from { opacity: 0; transform: translateY(-14px); filter: blur(4px); } }
@media (prefers-reduced-motion: reduce) { .stp.on { animation: none; } }
.stp h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 62px); line-height: 1.02; letter-spacing: -0.02em; margin: 14px 0 14px; }
.stp h1 em { color: var(--gold-2); }
.stp .sub { color: var(--text-2); font-size: 17px; margin: 0 0 38px; max-width: 600px; }

/* fields */
.field { margin-bottom: 26px; }
.field > label, .lbl { display: block; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; color: var(--text-2); margin-bottom: 10px; }
.field .hint { font-size: 13px; color: var(--mute); margin-top: 8px; }
.lbl .opt, .field > label .opt { color: var(--mute); font-weight: 400; margin-left: 6px; }
.inp, textarea.inp, select.inp {
  width: 100%; background: rgba(20, 18, 15, 0.7); border: 1px solid var(--line-2); border-radius: 14px; color: var(--text); font: 16px var(--sans);
  padding: 16px 18px; transition: border-color 0.25s, box-shadow 0.25s, background 0.25s; outline: none;
}
textarea.inp { min-height: 120px; resize: vertical; line-height: 1.5; }
.inp::placeholder { color: #6f675a; }
.inp:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 169, 110, 0.12); background: rgba(24, 21, 17, 0.9); }
.inp.bad { border-color: var(--bad); }
input[type="date"].inp { color-scheme: dark; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 640px) { .row2 { grid-template-columns: 1fr; } }
.big-inp { display: flex; gap: 10px; }
.big-inp .inp { font-size: 18px; padding: 20px 22px; border-radius: 16px; }
.big-inp .btn { --h: auto; border-radius: 16px; padding: 0 24px; }
@media (max-width: 560px) { .big-inp { flex-direction: column; } .big-inp .btn { --h: 54px; } }
.err { color: var(--bad); font-size: 14px; margin-top: 10px; min-height: 1px; }
.nav-btns { display: flex; align-items: center; gap: 14px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.nav-btns .spacer { flex: 1; }
.link-btn { background: none; border: 0; color: var(--mute); font: 500 15px var(--sans); cursor: pointer; padding: 10px 4px; }
.link-btn:hover { color: var(--text); }
.kbd { font-size: 12px; color: var(--mute); }
@media (max-width: 560px) { .kbd { display: none; } }

/* game card */
.gcard { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; margin-top: 22px; padding: 18px; border-radius: 20px; border: 1px solid rgba(201, 169, 110, 0.45); background: radial-gradient(120% 120% at 0% 0%, rgba(201, 169, 110, 0.12), transparent 60%), var(--panel); animation: stepIn 0.7s var(--ease) both; }
.gcard img, .gcard .ph { width: 96px; height: 96px; border-radius: 18px; object-fit: cover; background: var(--panel-2); border: 1px solid var(--line); }
.gcard .ph { display: grid; place-items: center; font-family: var(--serif); font-size: 40px; color: var(--gold); }
.gcard h3 { margin: 0 0 4px; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.05; }
.gcard .by { color: var(--mute); font-size: 14px; }
.gstats { display: flex; gap: 22px; margin-top: 10px; flex-wrap: wrap; }
.gstats div { font-size: 13px; color: var(--mute); }
.gstats b { display: block; color: var(--text); font-size: 17px; font-weight: 600; }
.cur-thumbs { margin-top: 18px; }
.cur-thumbs .strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.cur-thumbs img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); opacity: 0.9; }
.manual { margin-top: 18px; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(25, 19, 10, 0.3); border-top-color: #19130a; animation: rot 0.8s linear infinite; }
.btn:not(.btn-gold) .spin { border-color: var(--line-2); border-top-color: var(--gold); }
@keyframes rot { to { transform: rotate(360deg); } }

/* package pick */
.pkgs { display: grid; gap: 14px; }
.pkg { position: relative; display: grid; grid-template-columns: 26px 1fr auto; gap: 18px; align-items: start; padding: 24px 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; transition: border-color 0.3s, background 0.3s, transform 0.4s var(--ease); }
.pkg:hover { border-color: var(--line-2); }
.pkg input { position: absolute; opacity: 0; pointer-events: none; }
.pkg .radio { width: 22px; height: 22px; margin-top: 6px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: all 0.3s; }
.pkg .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform 0.35s var(--ease); }
.pkg.sel { border-color: var(--gold); background: radial-gradient(100% 140% at 0% 0%, rgba(201, 169, 110, 0.12), transparent 60%), var(--panel); }
.pkg.sel .radio { border-color: var(--gold); }
.pkg.sel .radio::after { transform: scale(1); }
.pkg input:focus-visible + .radio { outline: 2px solid var(--gold); outline-offset: 3px; }
.pkg h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pkg h3 .tag { font-family: var(--sans); font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; background: var(--gold); color: #19130a; padding: 3px 9px; border-radius: 999px; }
.pkg p { margin: 4px 0 10px; color: var(--text-2); font-size: 15px; }
.pkg .inc { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--mute); }
.pkg .inc span::before { content: "◆"; color: var(--gold-3); font-size: 7px; margin-right: 7px; vertical-align: 2px; }
.pkg .amt { font-family: var(--serif); font-size: 36px; line-height: 1; white-space: nowrap; }
@media (max-width: 640px) { .pkg { grid-template-columns: 24px 1fr; } .pkg .amt { grid-column: 2; font-size: 30px; } }
.addons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
@media (max-width: 640px) { .addons { grid-template-columns: 1fr; } }
.addon { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); cursor: pointer; transition: border-color 0.3s; }
.addon:hover { border-color: var(--line-2); }
.addon input { width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.addon.sel { border-color: var(--gold-3); }
.addon b { display: block; font-weight: 600; font-size: 15px; }
.addon span { font-size: 13px; color: var(--mute); }
.addon .p { margin-left: auto; font-family: var(--serif); font-size: 22px; color: var(--gold-2); white-space: nowrap; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chipx { position: relative; }
.chipx input { position: absolute; opacity: 0; pointer-events: none; }
.chipx span { display: inline-flex; flex-direction: column; padding: 11px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; font-size: 15px; transition: all 0.25s; user-select: none; }
.chipx span small { font-size: 12px; color: var(--mute); margin-top: 2px; max-width: 220px; }
.chipx input:checked + span { border-color: var(--gold); background: rgba(201, 169, 110, 0.1); color: var(--text); }
.chipx input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.chips.styles-pick { display: grid; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .chips.styles-pick { grid-template-columns: 1fr 1fr; } }
.chips.styles-pick .chipx span { width: 100%; height: 100%; }

/* uploads */
.drop { position: relative; border: 1.5px dashed rgba(201, 169, 110, 0.35); border-radius: 22px; padding: 44px 24px; text-align: center; background: radial-gradient(80% 120% at 50% 0%, rgba(201, 169, 110, 0.07), transparent 70%), rgba(20, 18, 15, 0.5); transition: border-color 0.3s, background 0.3s, transform 0.4s var(--ease); cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--gold); background: radial-gradient(80% 120% at 50% 0%, rgba(201, 169, 110, 0.14), transparent 70%), rgba(24, 21, 17, 0.7); }
.drop.over { transform: scale(1.01); }
.drop .ico { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--gold); font-size: 22px; }
.drop h3 { margin: 0 0 6px; font-family: var(--serif); font-weight: 400; font-size: 28px; }
.drop p { margin: 0; color: var(--mute); font-size: 14px; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.suggest { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 26px; }
@media (max-width: 720px) { .suggest { grid-template-columns: 1fr 1fr; } }
.suggest div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; color: var(--mute); }
.suggest b { display: block; color: var(--text-2); font-weight: 500; font-size: 14px; }
.files { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.files li { position: relative; display: grid; grid-template-columns: 36px 1fr auto auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; }
.files li .fi { width: 36px; height: 36px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--gold); letter-spacing: 0.04em; overflow: hidden; }
.files li .fi img { width: 100%; height: 100%; object-fit: cover; }
.files li .nm { min-width: 0; }
.files li .nm b { display: block; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.files li .nm span { font-size: 12px; color: var(--mute); }
.files li .st { font-size: 12px; color: var(--mute); white-space: nowrap; }
.files li .st.ok { color: var(--good); }
.files li .st.bad { color: var(--bad); }
.files li .x { background: none; border: 0; color: var(--mute); cursor: pointer; font-size: 18px; padding: 4px 6px; border-radius: 8px; }
.files li .x:hover { color: var(--text); background: var(--panel-2); }
.files li .pb { position: absolute; left: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--gold-3), var(--gold-2)); transition: width 0.2s; }
.toggle { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text-2); cursor: pointer; }
.toggle input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold); flex: none; }

/* review */
.review { display: grid; gap: 12px; }
.rv-block { border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; background: var(--panel); }
.rv-block .h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.rv-block .h b { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.rv-block .h button { background: none; border: 0; color: var(--mute); font: 500 13px var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.rv-block .h button:hover { color: var(--text); }
.rv-block p { margin: 2px 0; color: var(--text-2); font-size: 15px; white-space: pre-line; overflow-wrap: anywhere; }
.agree { margin: 26px 0 0; }
.agree a { color: var(--gold-2); }
.pay-note { display: flex; gap: 10px; align-items: center; color: var(--mute); font-size: 13px; margin-top: 14px; }
.pay-note svg { flex: none; }
.banner { padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); font-size: 14px; color: var(--text-2); margin-bottom: 26px; }
.banner.warn { border-color: rgba(224, 122, 106, 0.45); }
.banner.test { border-color: rgba(201, 169, 110, 0.45); }

/* summary aside */
.sum { position: sticky; top: 100px; border: 1px solid var(--line); border-radius: 22px; padding: 26px; background: linear-gradient(180deg, rgba(22, 20, 16, 0.92), rgba(14, 12, 10, 0.92)); box-shadow: 0 40px 80px -40px #000; }
.sum .eyebrow { margin-bottom: 18px; display: block; }
.sum .sg { display: flex; gap: 14px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.sum .sg img, .sum .sg .ph { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; background: var(--panel-2); border: 1px solid var(--line); flex: none; }
.sum .sg .ph { display: grid; place-items: center; color: var(--gold-3); font-family: var(--serif); font-size: 24px; }
.sum .sg b { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.sum .sg span { font-size: 13px; color: var(--mute); }
.sum .lines { padding: 18px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; font-size: 14px; }
.sum .lines div { display: flex; justify-content: space-between; gap: 12px; color: var(--text-2); }
.sum .lines div span:last-child { color: var(--text); white-space: nowrap; }
.sum .tot { display: flex; justify-content: space-between; align-items: baseline; padding-top: 18px; }
.sum .tot span { color: var(--mute); font-size: 14px; }
.sum .tot b { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; }
.sum ul { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; font-size: 13px; color: var(--mute); }
.sum li::before { content: "✦"; color: var(--gold-3); margin-right: 9px; font-size: 10px; }
@media (max-width: 1000px) { .sum { position: static; } .flow-grid aside { order: 2; } }

/* order page */
.booked { text-align: center; padding: 30px 0 10px; }
.booked .seal { width: 88px; height: 88px; margin: 0 auto 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold); background: radial-gradient(circle, rgba(201, 169, 110, 0.22), transparent 70%); box-shadow: 0 0 60px -10px rgba(201, 169, 110, 0.6); animation: seal 1.2s var(--ease) both; }
@keyframes seal { from { transform: scale(0.6); opacity: 0; } }
.booked h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 6vw, 76px); line-height: 1; letter-spacing: -0.02em; margin: 0 0 16px; }
.booked h1 em { color: var(--gold-2); }
.booked p { color: var(--text-2); font-size: 17px; max-width: 560px; margin: 0 auto; }
.next { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 50px 0; }
@media (max-width: 860px) { .next { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .next { grid-template-columns: 1fr; } }
.next > div { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: var(--panel); }
.next > div.now { border-color: var(--gold-3); }
.next .k { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.next h4 { margin: 8px 0 6px; font-family: var(--serif); font-weight: 400; font-size: 24px; }
.next p { margin: 0; font-size: 14px; color: var(--mute); }
.panel { border: 1px solid var(--line); border-radius: 22px; padding: 30px; background: var(--panel); margin-bottom: 18px; }
.panel h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; margin: 0 0 8px; }
.panel > p { color: var(--text-2); margin: 0 0 22px; }
.order-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 720px) { .order-meta { grid-template-columns: 1fr 1fr; } }
.order-meta div span { display: block; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.order-meta div b { font-weight: 500; overflow-wrap: anywhere; }
.center-box { max-width: 560px; margin: 90px auto; text-align: center; }
.center-box h1 { font-family: var(--serif); font-weight: 400; font-size: 48px; margin: 20px 0 12px; }
.center-box p { color: var(--text-2); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; background: var(--panel-2); border: 1px solid var(--line-2); padding: 12px 18px; border-radius: 12px; font-size: 14px; transition: all 0.4s var(--ease); z-index: 60; pointer-events: none; max-width: calc(100% - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
