:root {
  color-scheme: dark;
  --page: #07111c;
  --surface: #101d2b;
  --surface-raised: #142538;
  --text: #eef5fc;
  --muted: #a6b6c7;
  --border: #2b4055;
  --blue: #34aee3;
  --blue-hover: #168fca;
  --shadow: 0 8px 26px rgb(0 0 0 / 24%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--page);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { isolation: isolate; margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(ellipse at 50% 0%, #102438 0, var(--page) 55%); color: var(--text); }
button, input { font: inherit; }
[hidden] { display: none !important; }

.site-header {
  position: relative;
  z-index: 1;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  background: rgb(7 17 28 / 84%);
  border-bottom: 1px solid var(--border);
}
.brand { position: absolute; left: 50%; display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; transform: translateX(-50%); }
.brand-logo { flex: 0 0 52px; width: 52px; height: 52px; display: block; border: 1px solid #d8e3e8; border-radius: 50%; background-color: #fff; background-image: url('/dreamlink-logo.png'); background-size: 179% auto; background-position: 62% 52%; background-repeat: no-repeat; }
.brand-name { color: #f1f8ff; font-size: 32px; font-weight: 800; letter-spacing: -.045em; line-height: 1; text-shadow: 0 0 22px rgb(80 198 255 / 22%); }
.brand-divider { height: 21px; width: 1px; margin: 0 2px; background: var(--border); }
.brand-section, .header-note { color: var(--muted); font-size: 13px; }
.header-contact { margin-left: auto; padding: 8px 13px; border: 1px solid #34516b; border-radius: 999px; background: rgb(15 33 49 / 82%); color: #dcecf8; font-size: 12px; font-weight: 650; text-decoration: none; }
.header-contact:hover { border-color: #57c5ee; color: #fff; }

main { position: relative; z-index: 1; width: min(100% - 40px, 960px); margin: 0 auto; }
.search-section { max-width: 720px; margin: 0 auto; padding: 47px 0 42px; }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
h1 { margin: 0; font-size: clamp(36px, 5vw, 48px); line-height: 1.1; letter-spacing: -.045em; }
.intro { max-width: 600px; margin: 14px 0 25px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.search-history { margin: 0 0 14px; }
.search-history-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 650; }
.search-history-heading button { padding: 3px 0; border: 0; background: transparent; color: var(--blue); font-size: 11px; cursor: pointer; }
.search-history-items { display: flex; flex-wrap: wrap; gap: 7px; }
.recent-search { min-height: 30px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; background: rgb(17 34 51 / 88%); color: #dce8f4; font-size: 11px; cursor: pointer; }
.recent-search:hover { border-color: #4d99bd; background: #163047; }
.search-control { position: relative; z-index: 3; }
.search-form {
  min-height: 60px; display: flex; align-items: center; gap: 12px;
  padding: 6px 6px 6px 16px; background: rgb(16 29 43 / 94%); border: 1px solid #344b61;
  border-radius: 9px; box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s;
}
.search-form:focus-within { border-color: #5b9bc9; box-shadow: 0 0 0 3px rgb(23 105 170 / 12%); }
.search-icon { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: #7b8797; stroke-width: 1.8; stroke-linecap: round; }
.search-form input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 15px; }
.search-form input::placeholder { color: #91a3b6; }
.search-form button {
  min-width: 96px; height: 46px; padding: 0 20px; border: 0; border-radius: 7px;
  background: var(--blue); color: white; font-size: 14px; font-weight: 600; cursor: pointer;
}
.search-form button:hover { background: var(--blue-hover); }
.search-form button:disabled { cursor: wait; opacity: .7; }
.search-suggestions { position: absolute; z-index: 30; top: calc(100% + 7px); left: 0; right: 0; display: grid; max-height: min(390px, 65vh); overflow-y: auto; padding: 5px; border: 1px solid #354d64; border-radius: 10px; background: #0d1a27; box-shadow: 0 14px 34px rgb(0 0 0 / 42%); }
.suggestion-item { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 8px; border: 0; border-radius: 7px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.suggestion-item:hover, .suggestion-item:focus-visible { outline: 0; background: #192d40; }
.suggestion-art { position: relative; flex: 0 0 64px; width: 64px; height: 36px; display: grid; place-items: center; overflow: hidden; border-radius: 4px; background: #0a1420; }
.suggestion-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.suggestion-copy { display: grid; gap: 3px; min-width: 0; }
.suggestion-copy strong { overflow: hidden; color: #e4eef8; font-size: 13px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.suggestion-copy small { color: #9aabbd; font-size: 10px; }
.suggestion-arrow { margin-left: auto; color: #7c8b9a; font-size: 15px; }
.suggestion-message { margin: 0; padding: 14px; color: var(--muted); font-size: 12px; }
.price-note { margin: 13px 2px 0; color: #9aabbd; font-size: 12px; line-height: 1.5; }

.trending-section { position: relative; isolation: isolate; width: 100vw; margin: 0 calc(50% - 50vw) 0; overflow: hidden; padding: 33px max(20px, calc((100vw - 1120px) / 2)) 30px; border: 0; border-radius: 0; background: transparent; color: #f4f8fc; }
.trending-section::before, .trending-section::after { position: absolute; z-index: 0; inset: 0; content: ""; pointer-events: none; }
.trending-section::before { background-image: linear-gradient(rgb(57 182 236 / 12%) 1px, transparent 1px), linear-gradient(90deg, rgb(57 182 236 / 12%) 1px, transparent 1px); background-size: 42px 42px; opacity: .42; transform: perspective(500px) rotateX(52deg) scale(1.55); transform-origin: center bottom; animation: game-grid-drift 24s linear infinite; }
.trending-section::after { inset: -45% -15%; background: radial-gradient(ellipse at 28% 70%, rgb(15 107 173 / 22%), transparent 29%), radial-gradient(ellipse at 77% 27%, rgb(32 202 211 / 15%), transparent 30%); animation: game-neon-pulse 9s ease-in-out infinite alternate; }
.game-particles { position: fixed; z-index: 0; inset: 0; width: 100%; height: 100%; opacity: .7; pointer-events: none; mix-blend-mode: screen; }
.trending-content { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; }
.trending-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.trending-heading .eyebrow { margin-bottom: 7px; }
.trending-heading .eyebrow { color: #65dafa; }
.trending-heading h2 { color: #f4f8fc; font-size: 23px; }
.trending-intro { margin: 6px 0 0; color: #adbdcc; font-size: 13px; line-height: 1.5; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 3px; padding: 7px 10px; border: 1px solid rgb(151 189 214 / 22%); border-radius: 999px; background: rgb(9 21 33 / 72%); color: #c1d0dc; font-size: 11px; white-space: nowrap; }
.live-pill span { width: 7px; height: 7px; border-radius: 50%; background: #4aab78; box-shadow: 0 0 0 3px #e7f5ed; }
.featured-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.feature-card { position: relative; min-width: 0; min-height: 0; aspect-ratio: 460 / 215; display: flex; align-items: flex-end; overflow: hidden; padding: 19px; border: 1px solid rgb(157 199 221 / 32%); border-radius: 10px; background: linear-gradient(135deg, #132b40, #456678); color: #fff; text-align: left; cursor: pointer; isolation: isolate; transition: border-color .2s ease, box-shadow .2s ease; }
.feature-cod { background: linear-gradient(135deg, #181a20, #676050); }
.feature-card img, .feature-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.feature-card img { z-index: 0; object-fit: cover; }
.feature-shade { z-index: 1; background: linear-gradient(90deg, rgb(5 12 22 / 22%) 0%, transparent 68%), linear-gradient(0deg, rgb(5 12 22 / 82%), rgb(5 12 22 / 20%) 43%, transparent 78%); }
.feature-card:hover { border-color: #66d8f3; box-shadow: 0 0 22px rgb(38 181 226 / 20%); }
.feature-card:focus-visible, .popular-row button:focus-visible { outline: 3px solid #74b9ec; outline-offset: 3px; }
.feature-copy { position: relative; z-index: 2; display: grid; gap: 6px; max-width: calc(100% - 25px); }
.feature-tag { width: fit-content; padding: 5px 7px; border: 1px solid rgb(255 255 255 / 35%); border-radius: 4px; background: rgb(10 23 38 / 56%); font-size: 9px; font-weight: 750; letter-spacing: .12em; }
.feature-copy strong { font-size: clamp(17px, 2.4vw, 22px); line-height: 1.2; letter-spacing: -.02em; text-shadow: 0 1px 8px rgb(0 0 0 / 45%); }
.feature-copy > span:last-child { color: rgb(255 255 255 / 82%); font-size: 12px; }
.feature-arrow { position: absolute; z-index: 2; right: 16px; bottom: 18px; font-size: 20px; color: #fff; }
.popular-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.popular-row > span { margin-right: 3px; color: #a7b7c6; font-size: 11px; font-weight: 650; }
.popular-row button { min-height: 31px; padding: 0 11px; border: 1px solid rgb(164 195 216 / 28%); border-radius: 999px; background: rgb(10 24 38 / 78%); color: #d5e1eb; font-size: 11px; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.popular-row button:hover { border-color: #63c5e7; background: #16344a; color: #fff; }

@keyframes game-grid-drift { from { background-position: 0 0, 0 0; } to { background-position: 0 168px, 168px 0; } }
@keyframes game-neon-pulse { from { transform: translate3d(-2%, 0, 0) scale(.96); opacity: .7; } to { transform: translate3d(2%, 1%, 0) scale(1.06); opacity: 1; } }

.results-section { padding: 27px 0 8px; border-top: 1px solid var(--border); }
.results-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
h2 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.result-count { color: var(--muted); font-size: 12px; }
.status { min-height: 38px; margin: 13px 0 8px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.status.error { color: #ff9b96; }
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 9px; background: rgb(16 29 43 / 95%); box-shadow: var(--shadow); }
.cover { height: auto; aspect-ratio: 460 / 215; background: #0a1420; overflow: hidden; }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover img[hidden] { display: none; }
.card-body { padding: 15px; }
.offer-type { display: inline-block; color: var(--blue); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.card h3 { min-height: 44px; margin: 9px 0 4px; font-size: 15px; line-height: 1.45; font-weight: 650; }
.seller { min-height: 17px; color: var(--muted); font-size: 12px; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 17px 0 13px; }
.price-label { color: var(--muted); font-size: 12px; }
.price { color: var(--text); font-size: 20px; font-weight: 700; letter-spacing: -.025em; white-space: nowrap; }
.buy { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #40b5e7; border-radius: 7px; background: #138dc4; color: #fff; text-decoration: none; font-size: 13px; font-weight: 650; }
.buy:hover { background: #0e78ad; border-color: #6ad2fa; }
.empty { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; min-height: 100px; padding: 20px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--muted); }
.empty-icon { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #1a2c3d; color: #a9c3d8; }
.empty-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.empty strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 14px; font-weight: 600; }
.empty p { margin: 0; font-size: 13px; line-height: 1.45; }
.checkout-note { display: flex; align-items: flex-start; gap: 10px; margin: 28px 0 0; padding: 13px 15px; border: 1px solid var(--border); border-radius: 8px; background: rgb(14 27 40 / 86%); color: var(--muted); }
.info-icon { flex: 0 0 17px; width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid #a3afbc; border-radius: 50%; font-family: Georgia, serif; font-size: 12px; font-style: italic; }
.checkout-note p { margin: 0; font-size: 12px; line-height: 1.5; }
.guide-section { margin: 28px 0 10px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.guide-card { min-width: 0; overflow: hidden; border: 1px solid #2d4358; border-radius: 10px; background: rgb(15 29 43 / 88%); box-shadow: 0 8px 24px rgb(0 0 0 / 18%); backdrop-filter: blur(8px); }
.guide-card summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 17px; color: #e9f4fd; font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; }
.guide-card summary::-webkit-details-marker { display: none; }
.guide-card summary::after { flex: 0 0 auto; content: "+"; color: #61c9f1; font-size: 20px; font-weight: 400; line-height: 1; }
.guide-card[open] summary { border-bottom: 1px solid #293e52; }
.guide-card[open] summary::after { content: "−"; }
.guide-copy { padding: 14px 17px 17px; color: #b5c5d4; font-size: 12px; line-height: 1.8; }
.guide-copy p { margin: 0 0 10px; }
.guide-copy p:last-child { margin-bottom: 0; }
.guide-copy ol { display: grid; gap: 5px; margin: 0 0 12px; padding-left: 20px; }
.guide-copy strong { color: #e5f1fb; }
.site-footer { position: relative; z-index: 1; width: min(100% - 40px, 960px); display: flex; justify-content: space-between; gap: 15px; margin: 42px auto 0; padding: 16px 0 22px; border-top: 1px solid var(--border); color: #9aabbd; font-size: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.checkout-section { margin: 38px 0 8px; padding: 26px; border: 1px solid var(--border); border-radius: 12px; background: rgb(13 25 38 / 96%); box-shadow: var(--shadow); scroll-margin-top: 20px; }
.checkout-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.checkout-heading .eyebrow { margin-bottom: 6px; }
.checkout-heading h2 { font-size: 24px; }
.text-button { padding: 8px 0; border: 0; background: transparent; color: var(--blue); font-weight: 600; cursor: pointer; }
.game-card { display: grid; grid-template-columns: 1fr; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: rgb(16 29 43 / 95%); box-shadow: var(--shadow); }
.game-cover, .selected-cover { position: relative; align-self: start; min-height: 0; aspect-ratio: 460 / 215; background: #0a1420; overflow: hidden; }
.artwork-loading::after { position: absolute; z-index: 0; inset: 0; content: ""; background: linear-gradient(105deg, transparent 25%, rgb(129 185 220 / 12%) 45%, rgb(129 185 220 / 22%) 50%, rgb(129 185 220 / 12%) 55%, transparent 75%); background-size: 220% 100%; animation: artwork-shimmer 1.15s linear infinite; pointer-events: none; }
@keyframes artwork-shimmer { to { background-position-x: -220%; } }
.game-cover img, .selected-cover img { display: block; width: 100%; height: 100%; object-fit: contain; }
.game-card-details { display: flex; flex-direction: column; align-items: flex-start; padding: 22px; }
.game-card-details h3, .selected-details h3, .method-form h3, .payment-panel h3 { margin: 8px 0; font-size: 20px; line-height: 1.35; }
.game-card-details .seller, .selected-details .seller { margin: 0; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 17px; border: 1px solid transparent; border-radius: 7px; font-weight: 650; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.primary-button { background: var(--blue); color: white; }
.primary-button:hover { background: var(--blue-hover); }
.primary-button:disabled, .secondary-button:disabled { cursor: wait; opacity: .65; }
.secondary-button { border-color: var(--border); background: #16283a; color: #dce9f5; }
.secondary-button:hover { background: #20384e; }
.select-game { margin-top: auto; }
.selected-offer { display: grid; grid-template-columns: 1fr; overflow: hidden; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.selected-details { padding: 22px; }
.selected-price { margin: 18px 0; font-size: 27px; font-weight: 750; letter-spacing: -.03em; }
.method-form, .payment-panel { max-width: 620px; margin: 8px auto 0; padding: 22px; border: 1px solid var(--border); border-radius: 10px; background: #101e2c; }
.method-form .form-note { margin: 0 0 16px; }
.method-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.method-option { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 7px; background: #142538; color: var(--text); font-size: 14px; cursor: pointer; }
.method-option:has(input:checked) { border-color: #41acd8; background: #19364a; }
.method-option input { accent-color: var(--blue); }
.payment-panel { background: #101e2c; }
.payment-panel > .eyebrow { margin-bottom: 5px; }
.order-summary { display: grid; grid-template-columns: 90px 1fr; gap: 9px 14px; margin: 18px 0; padding: 15px; border-radius: 8px; background: #17293b; }
.summary-label { color: var(--muted); font-size: 12px; }
.summary-price { font-size: 19px; }
.copy-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); }
.copy-row > div { display: grid; gap: 5px; min-width: 0; }
.copy-row strong { overflow-wrap: anywhere; font-size: 14px; }
.copy-button { min-height: 34px; padding: 0 12px; font-size: 12px; }
.burmese-prompt { margin: 18px 0 12px; padding: 13px 14px; border-left: 3px solid #71c9ec; border-radius: 4px; background: #172c3e; line-height: 1.7; }
.receipt-form { display: grid; gap: 12px; }
.file-label { display: grid; gap: 8px; padding: 14px; border: 1px dashed #526b82; border-radius: 8px; color: #dce8f4; font-size: 13px; font-weight: 600; cursor: pointer; }
.file-label input { max-width: 100%; font-size: 13px; }
.form-note { color: var(--muted); font-size: 12px; line-height: 1.55; }
.notice { display: flex; align-items: flex-start; gap: 12px; margin: 10px 0; padding: 15px 16px; border: 1px solid var(--border); border-radius: 8px; line-height: 1.6; }
.notice h3 { margin: 0 0 5px; font-size: 17px; }
.notice p { margin: 0; font-size: 13px; }
.error-notice { display: block; border-color: #673b43; background: #2b1920; color: #ffb9b8; }
.success-notice { display: block; border-color: #285d48; background: #12291f; color: #a8e7bd; }
.pending-notice { align-items: center; border-color: #35495d; background: #142537; }
.pending-dot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; background: #e0aa4d; box-shadow: 0 0 0 4px #3a3021; }
.telegram-button { margin: 15px 0 10px; }
.success-notice .form-note { margin-top: 2px; }

@media (max-width: 760px) {
  .results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trending-section { padding: 26px 20px 23px; }
}
@media (max-width: 520px) {
  .site-header { min-height: 74px; padding: 0 12px; }
  .brand { gap: 8px; }
  .brand-logo { width: 40px; height: 40px; flex-basis: 40px; }
  .brand-name { font-size: 22px; }
  .header-contact { padding: 7px 9px; font-size: 10px; }
  .header-note { display: none; }
  main { width: calc(100% - 32px); }
  .search-section { padding: 35px 0 32px; }
  h1 { font-size: 37px; }
  .intro { margin: 11px 0 20px; font-size: 14px; }
  .search-form { min-height: 56px; gap: 8px; padding-left: 12px; }
  .search-form button { min-width: 76px; padding: 0 14px; }
  .trending-section { padding: 22px 16px 20px; }
  .trending-heading { align-items: flex-start; flex-direction: column; gap: 10px; margin-bottom: 14px; }
  .trending-heading h2 { font-size: 18px; }
  .featured-grid { grid-template-columns: 1fr; gap: 10px; }
  .feature-card { min-height: 0; aspect-ratio: 460 / 215; padding: 15px; }
  .feature-copy strong { font-size: 19px; }
  .popular-row { gap: 7px; }
  .popular-row > span { flex: 0 0 100%; }
  .results { grid-template-columns: 1fr; gap: 12px; }
  .cover { aspect-ratio: 460 / 190; }
  .card-body { padding: 14px; }
  .card h3 { min-height: 0; }
  .checkout-section { margin-top: 26px; padding: 17px; }
  .checkout-heading { align-items: flex-start; }
  .checkout-heading h2 { font-size: 20px; }
  .text-button { font-size: 12px; }
  .game-card, .selected-offer { grid-template-columns: 1fr; }
  .game-cover, .selected-cover { min-height: 0; aspect-ratio: 460 / 215; }
  .game-card-details, .selected-details { padding: 16px; }
  .game-card-details h3, .selected-details h3 { margin: 5px 0; font-size: 18px; }
  .select-game { margin-top: 16px; }
  .method-form, .payment-panel { padding: 16px; }
  .method-list { grid-template-columns: 1fr; }
  .order-summary { grid-template-columns: 70px 1fr; }
  .site-footer { width: calc(100% - 32px); flex-direction: column; margin-top: 32px; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card summary { padding: 14px 15px; }
  .guide-copy { padding: 12px 15px 15px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
