:root {
  color-scheme: dark;
  --page: #0c0b13;
  --card: #1d1928;
  --text: #f2eff7;
  --muted: #aea7bd;
  --accent: #a87ad0;
  --accent-soft: #9073af;
  --radius: 24px;
}
* { box-sizing: border-box; }
html { min-width: 300px; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: var(--page);
  color: var(--text);
  min-height: 100vh;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 600px 560px at -9% 2%, rgba(100,65,139,.22), transparent 78%),
    radial-gradient(ellipse 500px 490px at 108% 100%, rgba(83,50,128,.15), transparent 78%);
  z-index: -1;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid #bb94e4; outline-offset: 4px; }
.page {
  width: min(100% - 36px, 630px);
  margin: 0 auto;
  padding: 56px 0 46px;
}
.eyebrow {
  font-size: 12px;
  line-height: 1.2;
  margin: 0 0 13px 4px;
  font-weight: 800;
  color: #c6bed1;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.promo-card {
  width: 100%;
  min-height: 150px;
  border-radius: 26px;
  padding: 25px 25px 23px;
  border: 1px solid rgba(162,124,203,.34);
  background: linear-gradient(116deg, #2e2343 0%, #201a2d 44%, #17141e 100%);
  box-shadow: 0 18px 35px rgba(0,0,0,.14), inset 0 1px rgba(255,255,255,.035);
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
  text-align: left;
  transition: background .2s, border-color .2s, transform .2s;
}
.promo-card:hover { border-color: rgba(182,133,225,.6); background: linear-gradient(116deg, #392a52, #211b2f 60%, #17141e); transform: translateY(-1px); }
.promo-card-inner { display: grid; min-width: 0; gap: 7px; }
.promo-code {
  font-size: clamp(24px, 6.4vw, 37px);
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 12px rgba(176,157,219,.1);
}
.bonus-line { color: #cdc7d4; font-size: 15px; line-height: 1.4; }
.bonus-line strong { color: #bd88df; font-weight: 800; }
.copy-prompt { font-size: 12px; font-weight: 700; color: #c5a8e3; margin-top: 6px; letter-spacing: .015em; }
.promo-card:hover .copy-prompt { color: #ecdcfc; }
.copied .copy-prompt { color: #d8f5db; }
.copy-icon {
  display: grid;
  place-items: center;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(172,135,223,.2);
  border-radius: 17px;
  background: rgba(143,100,193,.13);
  color: #b98ce2;
}
.copy-icon svg { width: 25px; height: 25px; }
.copied .copy-icon { color: #eddef9; background: rgba(143,100,193,.3); }
.hero {
  margin: 0 0 30px;
  position: relative;
  isolation: isolate;
  min-height: 122px;
}
.hero-decoration {
  position: absolute;
  width: 370px;
  height: 175px;
  right: -62px;
  bottom: -43px;
  z-index: -1;
  opacity: .2;
  background: url('assets/crown.webp') center / cover no-repeat;
  mask-image: linear-gradient(to right, transparent, #000 42%);
  pointer-events: none;
}
h1 {
  max-width: 580px;
  margin: 0;
  font-size: clamp(30px, 5.5vw, 38px);
  line-height: 1.2;
  font-weight: 825;
  letter-spacing: -.035em;
}
h1 span { color: #bd8bdb; }
.hero p {
  max-width: 485px;
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: #afa9bc;
}
.section { margin-top: 25px; }
.promo-section { margin-top: 12px; }
.section-heading {
  margin: 0 0 15px 3px;
  font-size: 25px;
  font-weight: 810;
  line-height: 1.2;
  letter-spacing: -.025em;
}
.cards { display: grid; gap: 13px; }
.link-card {
  position: relative;
  isolation: isolate;
  min-height: 108px;
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(158,140,186,.21);
  display: flex;
  align-items: center;
  text-align: left;
  padding: 14px 17px;
  gap: 17px;
  background: linear-gradient(118deg, #211c2c 0%, #292333 58%, #24202f 100%);
  box-shadow: 0 12px 32px rgba(0,0,0,.13);
  transition: transform .2s, background .2s, border-color .2s;
}
.link-card:hover { transform: translateY(-2px); border-color: rgba(166,126,203,.58); }
.link-card.is-pending { cursor: default; }
.link-card.is-pending:hover { transform: none; }
.game-thumb {
  display: block;
  width: 82px;
  height: 82px;
  flex: 0 0 82px;
  border-radius: 18px;
  overflow: hidden;
  background: #141321;
  border: 1px solid rgba(160,141,188,.18);
}
.game-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.link-copy { display: grid; flex: 1; gap: 6px; min-width: 0; position: relative; z-index: 1; }
.link-title { font-size: 21px; font-weight: 790; line-height: 1.2; overflow-wrap: anywhere; }
.link-desc { color: #b5adbf; font-size: 14px; line-height: 1.4; }
.arrow {
  display: grid;
  place-items: center;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  color: #b78ad5;
  margin-left: auto;
  background: rgba(162,124,203,.07);
  position: relative;
  z-index: 1;
}
.arrow svg { width: 24px; height: 24px; }
.arrow.pending { flex-basis: 47px; font-size: 11px; color: #9d92ab; background: rgba(162,124,203,.07); }
.telegram { margin-top: 25px; }
/* Telegram is now exactly the same compact one-row card as the game links. */
.telegram-card { background: linear-gradient(118deg, #211c2c 0%, #292333 58%, #24202f 100%); }
.telegram-thumb { border-color: rgba(165,115,206,.33); background: #12091c; }
.telegram-card .link-title { font-size: 20px; }
.telegram-card .link-desc { color: #c6b9d7; }
.telegram-card .arrow { color: #c28eeb; background: rgba(155,98,209,.13); }
.empty-message { color: #a6a0b0; font-size: 14px; margin: 8px 0; }
.footer { margin-top: 30px; text-align: center; font-size: 11px; color: #777082; }
.toast {
  position: fixed;
  left: 50%;
  bottom: max(25px, env(safe-area-inset-bottom));
  transform: translate(-50%, 20px);
  padding: 13px 19px;
  max-width: calc(100% - 36px);
  min-width: 185px;
  text-align: center;
  font-size: 13px;
  color: #f5f1f9;
  background: #30263c;
  border: 1px solid rgba(173,138,211,.35);
  border-radius: 999px;
  box-shadow: 0 9px 24px rgba(0,0,0,.2);
  opacity: 0;
  pointer-events: none;
  transition: transform .2s, opacity .2s;
  z-index: 100;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 480px) {
  .page { width: calc(100% - 32px); padding-top: 33px; padding-bottom: 32px; }
  .promo-card { min-height: 131px; padding: 20px 18px; border-radius: 23px; }
  .promo-card-inner { gap: 7px; }
  .copy-prompt { font-size: 11.5px; margin-top: 4px; }
  .promo-code { font-size: clamp(23px, 6.7vw, 30px); }
  .bonus-line { font-size: 12.5px; }
  .copy-icon { width: 49px; height: 49px; flex-basis: 49px; border-radius: 15px; }
  .hero { margin-top: 4px; margin-bottom: 24px; min-height: 0; }
  .hero-decoration { width: 220px; height: 106px; right: 0; bottom: -15px; opacity: .12; }
  h1 { font-size: clamp(26px, 7vw, 32px); }
  .section { margin-top: 23px; }
  .promo-section { margin-top: 14px; }
  .section-heading { font-size: 23px; }
  .link-card { min-height: 94px; border-radius: 22px; padding: 12px; gap: 13px; }
  .game-thumb { width: 70px; height: 70px; flex-basis: 70px; border-radius: 16px; }
  .link-title { font-size: 18px; }
  .arrow { flex-basis: 36px; width: 36px; height: 36px; }
  .telegram-card .link-title { font-size: 18px; }
  .telegram-card .link-desc { font-size: 13px; }
}
@media (max-width: 350px) {
  .page { width: calc(100% - 24px); }
  .promo-code { font-size: 22px; }
  .copy-icon { width: 43px; height: 43px; flex-basis: 43px; }
  .game-thumb { width: 59px; height: 59px; flex-basis: 59px; }
  .link-title { font-size: 16px; }
  .telegram-card .link-title { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms!important; }
}

/* Telegram thumbnail: complete original lettering now composed for a square. */
.telegram-thumb img { object-fit: contain; }
/* Allow longer supporting copy without truncation at narrow widths. */
.telegram-card .link-desc { overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .telegram-card .link-desc { font-size: 12.5px; line-height: 1.35; }
}
