/* DESITechnology — shared styles. Most layout lives inline in each page. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #FFFDF8; color: #17142B; font-family: 'DM Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: #3B2BB8; }
a:hover { color: #1F1470; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #FFC93C; outline-offset: 2px;
}

/* Forms (Support page) */
.dt-form { display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.dt-form label { font-size: 14px; font-weight: 500; color: #3D3858; margin-top: 6px; }
.dt-form-dark label { color: #CFCAE3; }
.dt-input {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 2px solid #D7D1F0;
  background: #FFFFFF; color: #17142B; font-size: 16px; font-family: inherit;
}
textarea.dt-input { resize: vertical; }
.dt-form-dark .dt-input { border-color: #4A4560; background: #24203D; color: #FFFFFF; }
.dt-form-dark .dt-input::placeholder { color: #9A95AE; }
.dt-btn-yellow, .dt-btn-dark {
  align-self: flex-start; margin-top: 10px; border: none; padding: 15px 26px; border-radius: 12px;
  font-weight: 700; font-size: 16px; font-family: inherit; cursor: pointer; min-height: 48px;
}
.dt-btn-yellow { background: #FFC93C; color: #17142B; }
.dt-btn-dark { background: #17142B; color: #FFFFFF; }
.dt-btn-yellow:disabled, .dt-btn-dark:disabled { opacity: 0.6; cursor: wait; }
.dt-status { margin: 4px 0 0; font-size: 15px; min-height: 1.4em; }
.dt-status.ok { color: #0B6E65; }
.dt-form-dark .dt-status.ok { color: #7FE3D8; }
.dt-status.err { color: #B0185A; }
.dt-form-dark .dt-status.err { color: #FF9EC4; }
/* honeypot: hidden from people, visible to simple spam bots */
.dt-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Loading placeholders while platforms load */
.dt-skeleton { background: #F4F2EC; border-radius: 28px; min-height: 200px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- DESI ID pages (login, account, legal) ---------- */
.id-page { min-height: 100vh; background: #EFEAFF; position: relative; overflow-x: hidden; }
.id-top { max-width: 1200px; margin: 0 auto; padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.id-brand { display: flex; align-items: center; gap: 10px; color: #17142B; text-decoration: none; }
.id-brand b { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 20px; line-height: 1.05; }
.id-brand small { display: block; font-size: 11px; color: #4A4560; }
.id-top-link { color: #17142B; font-weight: 700; text-decoration: none; padding: 10px 0; }
.id-blob { position: absolute; z-index: 0; pointer-events: none; }
.id-main { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 24px 16px 80px; }
.id-card { background: #FFFFFF; border-radius: 28px; padding: 32px; box-shadow: 0 20px 50px rgba(59,43,184,0.10); }
.id-login { max-width: 460px; margin: 16px auto 0; }
.id-h1 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(30px, 6vw, 40px); letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 8px; }
.id-sub { margin: 0 0 24px; color: #4A4560; line-height: 1.55; }
.id-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding: 12px 18px; border-radius: 14px; border: 2px solid #E6E1F5; background: #FFFFFF; color: #17142B; font: 700 16px 'DM Sans', system-ui, sans-serif; cursor: pointer; text-decoration: none; margin-bottom: 10px; }
.id-btn:hover { border-color: #C9BFFF; background: #FAF9FF; color: #17142B; }
.id-btn:disabled { opacity: .6; cursor: wait; }
.id-btn-primary { background: #17142B; border-color: #17142B; color: #FFFFFF; }
.id-btn-primary:hover { background: #2A2545; border-color: #2A2545; color: #FFFFFF; }
.id-btn-passkey { background: #5B3FE0; border-color: #5B3FE0; color: #FFFFFF; }
.id-btn-passkey:hover { background: #4A31C9; border-color: #4A31C9; color: #FFFFFF; }
.id-badge { width: 26px; height: 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; flex: none; }
.id-or { display: flex; align-items: center; gap: 12px; color: #6A6580; font-size: 14px; margin: 18px 0; }
.id-or::before, .id-or::after { content: ''; flex: 1; height: 1px; background: #E6E1F5; }
.id-label { display: block; font-size: 14px; font-weight: 500; color: #3D3858; margin: 0 0 6px; }
.id-input { width: 100%; padding: 14px 16px; border-radius: 12px; border: 2px solid #D7D1F0; font: 16px 'DM Sans', system-ui, sans-serif; color: #17142B; background: #FFFFFF; margin-bottom: 12px; }
.id-input:focus { border-color: #5B3FE0; }
.id-code { letter-spacing: 10px; font-size: 26px; text-align: center; font-weight: 700; }
.id-msg { min-height: 1.4em; margin: 6px 0 0; font-size: 15px; line-height: 1.45; }
.id-msg.err { color: #B0185A; } .id-msg.ok { color: #0B6E65; }
.id-alert { border-radius: 14px; padding: 12px 16px; margin: 0 0 18px; font-size: 15px; line-height: 1.45; }
.id-alert.err { background: #FFE8F1; color: #8C1247; } .id-alert.ok { background: #DDF6F3; color: #0B5F57; }
.id-linkbtn { background: none; border: none; color: #3B2BB8; font: 700 15px 'DM Sans', sans-serif; cursor: pointer; padding: 10px 4px; text-decoration: underline; }
.id-fine { font-size: 13px; color: #6A6580; line-height: 1.5; margin: 18px 0 0; text-align: center; }
.id-section { margin-top: 20px; }
.id-h2 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; margin: 0 0 6px; }
.id-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 0; border-top: 1px solid #F0EDF8; }
.id-row:first-of-type { border-top: 0; }
.id-row .grow { flex: 1 1 220px; min-width: 0; }
.id-row .t { font-weight: 700; } .id-row .s { font-size: 14px; color: #6A6580; overflow-wrap: anywhere; }
.id-small { width: auto; min-height: 42px; padding: 8px 16px; margin: 0; font-size: 15px; border-radius: 12px; display: inline-flex; }
.id-danger { background: #FFE8F1; border-color: #FFE8F1; color: #8C1247; }
.id-danger:hover { background: #FFD3E4; border-color: #FFD3E4; color: #8C1247; }
.id-pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #DDF6F3; color: #0B5F57; }
.id-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.id-hidden { display: none !important; }
.legal { max-width: 820px; margin: 0 auto; }
.legal h1 { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: clamp(32px, 6vw, 48px); letter-spacing: -0.03em; margin: 0 0 6px; }
.legal h2 { font-family: 'Bricolage Grotesque', sans-serif; font-size: 22px; margin: 32px 0 8px; }
.legal p, .legal li { line-height: 1.7; color: #2E2A45; }
.legal .updated { color: #6A6580; margin: 0 0 24px; }
.legal .note { background: #FFF4D6; border-radius: 14px; padding: 14px 18px; color: #5C3D00; }

/* ---------- Shared footer with colourful social boxes ---------- */
.dt-footer { background: #17142B; color: #FFFFFF; font-family: 'DM Sans', system-ui, sans-serif; }
.dt-footer-top { max-width: 1200px; margin: 0 auto; padding: 64px 24px 40px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.dt-footer-brand { flex: 1 1 320px; min-width: 0; }
.dt-footer-logo { display: inline-flex; align-items: center; gap: 12px; color: #FFFFFF; text-decoration: none; }
.dt-footer-logo:hover { color: #FFFFFF; }
.dt-footer-logo b { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 24px; line-height: 1.05; }
.dt-footer-logo small { display: block; font-size: 12px; color: #CFCAE3; margin-top: 3px; }
.dt-footer-brand p { margin: 16px 0 8px; color: #CFCAE3; font-size: 15px; line-height: 1.5; }
.dt-footer-mail { color: #FFC93C; font-weight: 700; text-decoration: none; display: inline-block; padding: 6px 0; overflow-wrap: anywhere; }
.dt-footer-mail:hover { color: #FFDD7A; text-decoration: underline; }
.dt-footer-social { flex: 0 1 auto; }
.dt-footer-label { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #CFCAE3; }
.dt-social { display: flex; flex-wrap: wrap; gap: 10px; }
.dt-soc { width: 54px; height: 54px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
a.dt-soc:hover, a.dt-soc:focus-visible { transform: translateY(-3px) rotate(-4deg); box-shadow: 0 8px 18px rgba(0,0,0,.35); }
.dt-soc:nth-child(5n+1) { background: #5B3FE0; color: #FFFFFF; }
.dt-soc:nth-child(5n+2) { background: #13B7A8; color: #17142B; }
.dt-soc:nth-child(5n+3) { background: #FF6FA8; color: #17142B; }
.dt-soc:nth-child(5n+4) { background: #FFC93C; color: #17142B; }
.dt-soc:nth-child(5n+5) { background: #FF8A4C; color: #17142B; }
.dt-footer-bottom { max-width: 1200px; margin: 0 auto; padding: 20px 24px 28px; border-top: 1px solid #36314F; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; font-size: 14px; color: #CFCAE3; }
.dt-footer-bottom nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.dt-footer-bottom a { color: #CFCAE3; text-decoration: none; padding: 10px 0; }
.dt-footer-bottom a:hover { color: #FFFFFF; text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .dt-soc { transition: none; } a.dt-soc:hover { transform: none; } }

/* ---------- Gamified redesign (DESI ID + DESI Coins) ---------- */
.dt-hidden { display: none !important; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary span[aria-hidden="true"] { transform: rotate(45deg); }
.dt-soc { border: 2px solid #FFFFFF; }
.dt-foot-links a { color: #CFCAE3; text-decoration: none; padding: 10px 0; }
.dt-foot-links a:hover { color: #FFFFFF; text-decoration: underline; }

/* Chunky buttons press down a little */
.dt-press { transition: transform .12s ease, box-shadow .12s ease; }
.dt-press:hover { transform: translate(-1px, -1px); }
.dt-press:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #17142B !important; }
.dt-press:disabled { opacity: .6; cursor: default; transform: none; }
button.dt-press, a.dt-press { cursor: pointer; }
[data-auth-link] { white-space: nowrap; }

.dt-msg { min-height: 1.4em; margin: 10px 0 0; font-size: 15px; line-height: 1.45; text-align: center; }
.dt-msg.err { color: #B0185A; } .dt-msg.ok { color: #0B6E65; }
.dt-linkbtn { background: none; border: none; color: #3B2BB8; font: 700 15px 'DM Sans', sans-serif; cursor: pointer; padding: 10px 4px; text-decoration: underline; }
.dt-form-dark .dt-status { color: #CFCAE3; }

/* Account rows */
.dt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 0; border-top: 2px dashed #E6E1F5; }
.dt-row:first-child { border-top: 0; }
.dt-row .grow { flex: 1 1 200px; min-width: 0; }
.dt-row .t, .dt-hist .t { font-weight: 700; overflow-wrap: anywhere; }
.dt-row .s, .dt-hist .s, p.s { font-size: 14px; color: #6A6580; }
.dt-small { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 16px; border-radius: 12px; border: 2px solid #17142B; background: #FFFFFF; color: #17142B; font: 700 15px 'DM Sans', sans-serif; cursor: pointer; text-decoration: none; }
.dt-small:hover { background: #FFF1B8; color: #17142B; }
.dt-danger { background: #FFE8F1; color: #8C1247; }
.dt-on { background: #DDF6F3; border: 2px solid #17142B; border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 14px; }
.dt-hist { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 2px dashed #E6E1F5; }
.dt-hist:first-child { border-top: 0; }
.dt-hist .amt { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 800; font-size: 20px; color: #0B6E65; }
.dt-badge-off { filter: grayscale(1); opacity: .4; }

/* Star ratings */
.dt-star { width: 36px; height: 36px; padding: 0; border: 2px solid #17142B; border-radius: 10px; background: #FFFFFF; color: #D7D1F0; font-size: 20px; line-height: 1; cursor: pointer; }
.dt-star.on { background: #FFF1B8; color: #E0A100; }
.dt-star:hover { background: #FFF4D6; color: #E0A100; }

/* "+5 coins" pop-up */
#dt-toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; display: flex; align-items: center; gap: 10px; max-width: calc(100% - 32px); background: #FFF1B8; color: #17142B; border: 2px solid #17142B; box-shadow: 4px 4px 0 #17142B; border-radius: 16px; padding: 10px 18px 10px 10px; font-weight: 700; transform: translate(-50%, 140%); opacity: 0; transition: transform .3s ease, opacity .3s ease; pointer-events: none; }
#dt-toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (prefers-reduced-motion: reduce) { .dt-press, #dt-toast, .dt-press:hover { transition: none; transform: none; } }
/* Join page: on small screens keep the sign-in box clear of decorations */
@media (max-width: 900px) { .dt-login-stage > div:not(#login) { display: none !important; } }

/* ---- Mobile menu, buttons and decorations (same rules as the design canvas) ---- */
.dt-join-m, .dt-burger, .dt-menu-cb { display: none; }
.dt-deco { pointer-events: none; }
.dt-menu-scrim { display: none; }
@media (max-width: 1100px) { .dt-coin-mid { left: auto !important; right: -18px; top: -70px !important; } }
.dt-btn { white-space: nowrap; justify-content: center; }
h1, h2, h3 { overflow-wrap: break-word; }
@media (max-width: 760px) {
  .dt-nav { flex-wrap: nowrap !important; gap: 10px !important; padding-top: 14px !important; padding-bottom: 14px !important; }
  .dt-brand { flex: 1 1 auto; }
  .dt-brand { gap: 8px !important; }
  .dt-brand svg { width: 26px; height: 26px; flex: none; }
  .dt-brand-sub { display: none !important; }
  .dt-brand-name { font-size: 18px !important; letter-spacing: -0.01em; }
  .dt-join-m { display: inline-flex !important; flex: none; }
  .dt-burger { display: inline-flex !important; }
  .dt-menu-cb { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
  .dt-menu-cb:focus-visible + .dt-burger { outline: 3px solid #FFC93C; outline-offset: 2px; }
  .dt-nav-links { display: none !important; position: absolute; left: 16px; right: 16px; top: calc(100% - 4px); flex-direction: column; flex-wrap: nowrap !important; align-items: stretch !important; gap: 0 !important; background: #FFFFFF; border: 2px solid #17142B; box-shadow: 6px 6px 0 #17142B; border-radius: 20px; padding: 6px 18px 18px; z-index: 30; }
  .dt-menu-cb:checked ~ .dt-nav-links { display: flex !important; }
  .dt-menu-cb:checked ~ .dt-menu-scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(23,20,43,.28); cursor: default; }
  header:has(.dt-menu-cb:checked) { z-index: 60; }
  .dt-nav-links > a { color: #17142B !important; padding: 15px 2px !important; font-size: 17px !important; font-weight: 700; border-bottom: 2px dashed #E6E1F5; }
  .dt-nav-links > a.dt-join { border-bottom: 2px solid #17142B; margin-top: 14px; padding: 13px 18px !important; justify-content: center; }
  .dt-deco { display: none !important; }
  .dt-btn { flex: 1 1 auto; }
  .dt-nav .dt-btn { flex: none; }
  .dt-shrink { width: min(100%, 300px) !important; margin: 0 auto; }
  [style*="inset: 0; z-index: -1; overflow: hidden"] { opacity: .45; }
  .dt-nav { padding-left: 16px !important; padding-right: 16px !important; }
  .dt-brand { overflow: hidden; }
  .dt-brand-name { white-space: nowrap; }
  h1 { font-size: clamp(34px, 9.5vw, 44px) !important; }
  h2 { font-size: clamp(26px, 7.6vw, 34px) !important; }
  [style*="padding: 6px 14px 6px 6px; border-radius: 999px"] { font-size: 13px !important; }
  [style*="width: min(100%, 440px); padding: 28px"] { padding: 22px 16px !important; }
  [style*="width: min(100%, 440px); padding: 28px"] a[style*="min-height"], [style*="width: min(100%, 440px); padding: 28px"] button[style*="min-height"] { font-size: 15px !important; white-space: nowrap; gap: 10px !important; padding-left: 10px !important; padding-right: 10px !important; }
  [style*="width: min(100%, 440px); padding: 28px"] h2 { font-size: 26px !important; }
}
@media (max-width: 400px) {
  .dt-brand-name { font-size: 16px !important; }
  .dt-brand svg { width: 24px; height: 24px; }
  .dt-join-m [data-auth-short] { display: none; }
  .dt-join-m { padding: 6px !important; }
}
