/*
 * TERA OPTIONS — first visit on the platform: the welcome offer, the guided tour and the notification bell.
 * Loaded after style.css; uses its palette (--panel, --muted, --gold, ...).
 */
.ob-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ================================================================ welcome offer */

.wo-modal { background: radial-gradient(60% 50% at 50% 42%, rgba(242, 184, 75, 0.12), transparent 70%), rgba(3, 8, 20, 0.8); }
.modal-card.wo-card {
  position: relative; max-width: 452px; padding: 0 22px 20px; border-radius: 22px;
  border: 1px solid rgba(242, 184, 75, 0.34);
  background:
    radial-gradient(120% 52% at 50% 0%, rgba(242, 184, 75, 0.2), transparent 62%),
    linear-gradient(180deg, #15253b 0%, #0e1c30 52%, #0c192b 100%);
  box-shadow: 0 50px 120px -24px rgba(0, 0, 0, 0.85), 0 0 90px -26px rgba(242, 184, 75, 0.5), inset 0 1px 0 rgba(255, 226, 163, 0.18);
}
.modal-card.wo-card:focus { outline: none; }
.wo-x {
  position: absolute; top: 10px; right: 10px; z-index: 3; width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: rgba(7, 17, 31, 0.55); color: var(--muted); cursor: pointer;
  transition: background .15s, color .15s;
}
@media (hover: hover) { .wo-x:hover { background: rgba(7, 17, 31, 0.85); color: var(--text); } }
.wo-x:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.wo-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* the gift: a 3D box with its lid lifting and light spilling out, standing on a glowing floor, with slow rays
   behind, motes rising and a few sparkles. It turns a little toward the mouse (--mx, --my: js/onboarding.js). */
.wo-hero { --mx: 0; --my: 0; position: relative; height: 188px; margin: 0 -22px 6px; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.wo-hero::after { /* fades the hero into the card */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 30px; z-index: 2;
  background: linear-gradient(transparent, rgba(14, 28, 48, 0.9));
}
.wo-rays {
  position: absolute; left: 50%; top: 50%; width: 600px; height: 600px; margin: -300px 0 0 -300px; z-index: -2;
  background: repeating-conic-gradient(from 0deg, rgba(255, 214, 140, 0.13) 0deg 5deg, transparent 5deg 15deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 12%, transparent 72%); mask-image: radial-gradient(closest-side, #000 12%, transparent 72%);
  animation: woSpin 60s linear infinite;
  translate: calc(var(--mx) * -16px) calc(var(--my) * -12px);
}
/* a floor in perspective: fine gold grid lines and a ring of light where the box stands */
.wo-floor {
  position: absolute; left: 50%; bottom: -24px; width: 600px; height: 420px; margin-left: -300px; z-index: -1;
  background:
    radial-gradient(closest-side, rgba(255, 196, 100, 0.46), rgba(255, 196, 100, 0.1) 60%, transparent) 50% 65.5% / 270px 270px no-repeat,
    radial-gradient(closest-side, transparent 86%, rgba(255, 224, 166, 0.75) 90%, transparent 95%) 50% 65.5% / 200px 200px no-repeat,
    linear-gradient(90deg, rgba(255, 214, 140, 0.2) 1px, transparent 1px) 50% 0 / 30px 30px,
    linear-gradient(rgba(255, 214, 140, 0.2) 1px, transparent 1px) 0 65.5% / 30px 30px;
  transform: perspective(320px) rotateX(60deg); transform-origin: 50% 100%;
  -webkit-mask-image: radial-gradient(46% 42% at 50% 65.5%, #000 35%, transparent 100%); mask-image: radial-gradient(46% 42% at 50% 65.5%, #000 35%, transparent 100%);
}
.wo-halo {
  position: absolute; left: 50%; top: 52%; width: 320px; height: 230px; margin: -115px 0 0 -160px; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 200, 110, 0.5), rgba(242, 184, 75, 0.16) 55%, transparent);
  animation: woBreathe 4.6s ease-in-out infinite;
  translate: calc(var(--mx) * -8px) calc(var(--my) * -6px);
}
.wo-stage {
  position: relative; width: 240px; height: 180px; margin-top: 4px;
  transform: perspective(700px) rotateX(calc(var(--my) * -14deg)) rotateY(calc(var(--mx) * 22deg));
}
.wo-gift { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45)); animation: woFloat 4.6s ease-in-out infinite; }
.wo-lid { transform-box: fill-box; transform-origin: 30% 100%; animation: woLid 4.6s ease-in-out infinite; }
.wo-beam { animation: woBeam 4.6s ease-in-out infinite; }
.wo-sheen { animation: woSheen 5.6s ease-in-out infinite; } /* light passing over the front of the box */
.wo-mote { /* specks of light drifting up out of the open box */
  position: absolute; top: 72px; width: 5px; height: 5px; border-radius: 50%; opacity: 0;
  background: #fff1cf; box-shadow: 0 0 8px 2px rgba(255, 206, 120, 0.75);
  animation: woRise 4s ease-out infinite;
}
.wo-mote.m1 { left: 38%; animation-delay: -.2s; }
.wo-mote.m2 { left: 47%; width: 4px; height: 4px; animation-delay: -1.6s; animation-duration: 3.4s; }
.wo-mote.m3 { left: 55%; animation-delay: -2.7s; }
.wo-mote.m4 { left: 62%; width: 3px; height: 3px; animation-delay: -.9s; animation-duration: 4.6s; }
.wo-mote.m5 { left: 43%; width: 3px; height: 3px; animation-delay: -3.3s; animation-duration: 4.4s; }
.wo-mote.m6 { left: 58%; width: 4px; height: 4px; animation-delay: -2.1s; animation-duration: 3.7s; }
.wo-spark {
  position: absolute; z-index: 1; width: 14px; height: 14px;
  background: radial-gradient(circle, #fff6dc 0 18%, #ffd27a 40%, transparent 72%);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: woTwinkle 2.8s ease-in-out infinite;
  translate: calc(var(--mx) * 24px) calc(var(--my) * 18px);
}
.wo-stage { transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.wo-rays, .wo-halo, .wo-spark { transition: translate .6s cubic-bezier(.22, 1, .36, 1); }
.wo-spark.s1 { left: calc(50% - 122px); top: 44px; animation-delay: -.4s; }
.wo-spark.s2 { left: calc(50% + 98px); top: 30px; width: 18px; height: 18px; animation-delay: -1.3s; }
.wo-spark.s3 { left: calc(50% + 118px); top: 112px; width: 10px; height: 10px; animation-delay: -2.1s; }
.wo-spark.s4 { left: calc(50% - 104px); top: 126px; width: 11px; height: 11px; animation-delay: -.9s; }
.wo-spark.s5 { left: calc(50% + 24px); top: 8px; width: 9px; height: 9px; animation-delay: -1.8s; }
@keyframes woSpin { to { transform: rotate(360deg); } }
@keyframes woBreathe { 50% { opacity: 0.6; transform: scale(0.94); } }
@keyframes woFloat { 50% { transform: translateY(-5px); } }
@keyframes woLid { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-2.5deg); } }
@keyframes woBeam { 50% { opacity: 0.6; } }
@keyframes woSheen { 0%, 55% { transform: translateX(0); } 85%, 100% { transform: translateX(132px); } }
@keyframes woRise { 0% { opacity: 0; transform: translateY(0) scale(0.5); } 20% { opacity: 1; } 100% { opacity: 0; transform: translateY(-78px) scale(1); } }
@keyframes woTwinkle { 0%, 100% { opacity: 0; transform: scale(0.3) rotate(0); } 45% { opacity: 1; transform: scale(1) rotate(45deg); } 70% { opacity: 0.7; transform: scale(0.8) rotate(60deg); } }

.wo-kicker { position: relative; z-index: 3; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; font-size: 12px; font-weight: 600; color: #d9c49a; }
.wo-kicker span {
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #1b1405;
  padding: 4px 9px; border-radius: 999px; background: linear-gradient(180deg, #ffd98a, #f2b84b); box-shadow: 0 4px 14px -4px rgba(242, 184, 75, 0.7);
}
.wo-card h2 { margin: 0 0 6px; text-align: center; font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.wo-lead { margin: 0 auto 16px; max-width: 360px; text-align: center; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

.wo-perks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.wo-perk {
  display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px;
  border-radius: 14px; border: 1px solid rgba(242, 184, 75, 0.2);
  background: linear-gradient(135deg, rgba(242, 184, 75, 0.09), rgba(242, 184, 75, 0.02) 60%), rgba(255, 255, 255, 0.015);
}
.wo-ic {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #2a1a03;
  background: linear-gradient(145deg, #ffe2a3, #f2b84b 60%, #d39431); box-shadow: 0 6px 16px -6px rgba(242, 184, 75, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.wo-ic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wo-text { display: grid; gap: 3px; min-width: 0; }
.wo-text b { font-size: 14px; line-height: 1.3; }
.wo-text small { font-size: 12px; line-height: 1.5; color: var(--muted); }
.wo-tag {
  align-self: start; margin-top: 1px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px; color: var(--gold); border: 1px solid rgba(242, 184, 75, 0.5); background: rgba(242, 184, 75, 0.1);
}
.wo-tag.is-live { color: #5fe0c9; border-color: rgba(34, 179, 154, 0.5); background: rgba(34, 179, 154, 0.12); }
.wo-tag.is-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(34, 179, 154, 0.22); }
/* not available yet: dashed, quieter, its icon outlined instead of solid gold */
.wo-perk.is-soon { border-style: dashed; border-color: rgba(242, 184, 75, 0.38); background: repeating-linear-gradient(135deg, rgba(242, 184, 75, 0.045) 0 8px, transparent 8px 16px); }
.wo-perk.is-soon .wo-ic { background: rgba(242, 184, 75, 0.08); color: var(--gold); box-shadow: inset 0 0 0 1px rgba(242, 184, 75, 0.45); }
.wo-perk.is-soon .wo-text b { color: #dbe3ee; }

.wo-fine { margin: 0 0 16px; font-size: 11.5px; line-height: 1.5; color: var(--muted); text-align: center; }
.wo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wo-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 12px; font-size: 14px; text-decoration: none; }
.wo-cta {
  border: 0; color: #1b1405; background: linear-gradient(180deg, #ffd98a, #f2b84b 55%, #e2a237);
  box-shadow: 0 14px 30px -12px rgba(242, 184, 75, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
@media (hover: hover) { .wo-cta:hover { background: linear-gradient(180deg, #ffe2a3, #f6c461 55%, #e9ab42); } }
.wo-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
@media (hover: hover) { .wo-cta:hover svg { transform: translateX(3px); } }
.wo-actions .btn:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; }
.wo-later { color: var(--text); }

/* phones: a shorter hero, each tag beside its title, and the two buttons kept in view at the foot of the sheet */
@media (max-width: 600px) {
  .modal-card.wo-card { padding-left: 20px; padding-right: 20px; border-radius: 22px 22px 0 0; }
  .wo-hero { height: 150px; margin-left: -20px; margin-right: -20px; }
  .wo-stage { width: 196px; height: 147px; }
  .wo-mote { top: 58px; }
  .wo-spark.s1 { left: calc(50% - 104px); top: 34px; }
  .wo-spark.s3 { left: calc(50% + 100px); top: 92px; }
  .wo-spark.s4 { left: calc(50% - 90px); top: 104px; }
  .wo-card h2 { font-size: 21px; }
  .wo-lead { margin-bottom: 14px; font-size: 13px; }
  .wo-perk { grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-areas: 'ic title tag' 'ic note note'; gap: 3px 10px; padding: 11px; }
  .wo-text { display: contents; }
  .wo-ic { grid-area: ic; width: 34px; height: 34px; }
  .wo-text b { grid-area: title; align-self: center; }
  .wo-text small { grid-area: note; }
  .wo-tag { grid-area: tag; padding: 3px 7px; font-size: 11px; letter-spacing: 0.03em; }
  .wo-fine { margin-bottom: 4px; }
  .wo-actions {
    position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom)); z-index: 3;
    margin: 0 -20px calc(-20px - env(safe-area-inset-bottom)); padding: 20px 20px calc(16px + env(safe-area-inset-bottom));
    background: linear-gradient(rgba(12, 25, 43, 0), #0c192b 30%);
  }
  .wo-actions .btn { padding: 0 10px; font-size: 13.5px; line-height: 1.2; white-space: normal; }
}
/* short screens (a phone held sideways, a small laptop window): a smaller gift, and the buttons kept in view */
@media (max-height: 640px) {
  .wo-hero { height: 124px; }
  .wo-stage { width: 160px; height: 120px; }
  .wo-floor { scale: 0.75; }
  .wo-mote { top: 47px; }
  .wo-spark.s1 { left: calc(50% - 92px); top: 26px; }
  .wo-spark.s3 { left: calc(50% + 86px); top: 74px; }
  .wo-spark.s4 { left: calc(50% - 78px); top: 86px; }
}
@media (max-height: 640px) and (min-width: 601px) {
  .wo-actions {
    position: sticky; bottom: -20px; z-index: 3; margin: 0 -22px -20px; padding: 20px 22px 20px;
    background: linear-gradient(rgba(12, 25, 43, 0), #0c192b 30%);
  }
}

/* ================================================================ notification bell */

.notif { position: relative; }
.notif-btn { position: relative; overflow: visible; }
.notif-btn::before { content: ''; position: absolute; inset: -3px; } /* a 42px tap target */
.notif-btn[aria-expanded="true"] { background: var(--panel-2); color: var(--text); border-color: var(--accent); }
.notif-btn:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.notif-badge {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #1b1405;
  background: linear-gradient(180deg, #ffd98a, #f2b84b); box-shadow: 0 0 0 2px var(--bg-2), 0 0 14px rgba(242, 184, 75, 0.5);
  animation: npPop .4s cubic-bezier(.34, 1.56, .64, 1) both;
}
.notif-btn.ring svg { transform-origin: 50% 12%; animation: npRing .9s ease-in-out; }
@keyframes npPop { from { transform: scale(0.3); opacity: 0; } }
@keyframes npRing { 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } 75% { transform: rotate(2deg); } }

.notif-panel { /* above the toasts while it's open, so a message never covers the list */
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); z-index: 101; width: 372px; max-height: min(560px, calc(100dvh - 90px));
  display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, #13243c, var(--panel-2)); border: 1px solid var(--border-2); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); animation: npIn .2s cubic-bezier(.22, 1, .36, 1) both;
}
.notif-panel:focus { outline: none; }
@keyframes npIn { from { opacity: 0; transform: translateY(-6px); } }
.np-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 57px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--border); }
.np-head h2 { margin: 0; font-size: 14px; font-weight: 700; }
.np-mark { min-height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--accent-2); font-size: 12.5px; font-weight: 600; }
@media (hover: hover) { .np-mark:hover { background: var(--panel-3); } }
.np-list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; min-height: 0; display: grid; gap: 2px; align-content: start; }
.np-row {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) 10px; gap: 12px; align-items: start; width: 100%; padding: 10px;
  border: 0; border-radius: 10px; background: transparent; color: var(--text); text-align: left; text-decoration: none; font: inherit; cursor: pointer;
}
.np-row:focus-visible { background: rgba(148, 163, 184, 0.09); outline: none; text-decoration: none; }
@media (hover: hover) { .np-row:hover { background: rgba(148, 163, 184, 0.09); outline: none; text-decoration: none; } }
.np-row:focus-visible { box-shadow: inset 0 0 0 2px var(--c-focus); }
.np-item.unread .np-row { background: rgba(49, 95, 234, 0.08); }
.np-item.unread .np-row:focus-visible { background: rgba(49, 95, 234, 0.14); }
@media (hover: hover) { .np-item.unread .np-row:hover { background: rgba(49, 95, 234, 0.14); } }
.np-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #9cbcff; background: rgba(49, 95, 234, 0.16); border: 1px solid rgba(109, 147, 247, 0.28); }
.np-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.np-ic.k-offer, .np-ic.k-money { color: #2a1a03; background: linear-gradient(145deg, #ffe2a3, #f2b84b 60%, #d39431); border-color: transparent; }
.np-ic.k-verify { color: var(--c-cyan); background: rgba(56, 189, 248, 0.12); border-color: rgba(56, 189, 248, 0.3); }
.np-ic.k-tip { color: var(--gold); background: rgba(242, 184, 75, 0.1); border-color: rgba(242, 184, 75, 0.32); }
.np-ic.k-win { color: var(--up-2); background: rgba(38, 166, 154, 0.12); border-color: rgba(38, 166, 154, 0.35); }
.np-ic.k-loss { color: var(--down-2); background: rgba(239, 83, 80, 0.12); border-color: rgba(239, 83, 80, 0.35); }
.np-ic.k-tie { color: var(--muted); background: var(--panel-3); border-color: var(--border-2); }
.np-text { display: grid; gap: 2px; min-width: 0; }
.np-text b { font-size: 13px; font-weight: 600; line-height: 1.35; }
.np-item.unread .np-text b { font-weight: 700; }
.np-text > span:not(.ob-sr) { font-size: 12px; line-height: 1.45; color: var(--muted); }
.np-text time { margin-top: 2px; font-size: 11px; color: #8797ad; }
.np-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--c-cyan); box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2); }
.np-empty { display: grid; justify-items: center; gap: 4px; padding: 36px 16px; text-align: center; color: var(--muted); font-size: 12.5px; }
.np-empty b { color: var(--text); font-size: 14px; }
.np-empty-ic { width: 44px; height: 44px; margin-bottom: 6px; border-radius: 12px; display: grid; place-items: center; background: var(--panel-3); }
.np-empty-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.np-foot { padding: 6px; border-top: 1px solid var(--border); }
.np-foot-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-weight: 600; text-align: left; }
@media (hover: hover) { .np-foot-btn:hover { background: var(--panel-3); color: var(--text); } }
.np-foot-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.np-mark:focus-visible, .np-foot-btn:focus-visible { outline: 2px solid var(--c-focus); outline-offset: -2px; }

@media (max-width: 860px) {
  .notif-panel { position: fixed; left: 16px; right: 16px; top: calc(max(8px, env(safe-area-inset-top)) + 46px); width: auto; max-height: calc(100dvh - 140px); }
}

/* ================================================================ guided tour */

.tour { position: fixed; inset: 0; z-index: 96; animation: tourIn .3s ease-out both; }
.tour.out { opacity: 0; transition: opacity .22s ease-out; }
@keyframes tourIn { from { opacity: 0; } }
.tour-block { position: absolute; inset: 0; }
/* the spotlight: a clear box with a soft ring; its huge shadow dims everything else */
.tour-hole {
  position: fixed; left: 0; top: 0; width: 0; height: 0; border-radius: 12px; pointer-events: none;
  box-shadow: 0 0 0 2px rgba(122, 162, 255, 0.95), 0 0 0 200vmax rgba(3, 8, 20, 0.74);
}
.tour-hole::after {
  content: ''; position: absolute; inset: -5px; border-radius: 16px;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.22), 0 0 26px 4px rgba(56, 189, 248, 0.4);
  animation: tourGlow 2.4s ease-in-out infinite;
}
@keyframes tourGlow { 50% { opacity: 0.3; } }
.tour.ready .tour-hole { transition: transform .45s cubic-bezier(.22, 1, .36, 1), width .45s cubic-bezier(.22, 1, .36, 1), height .45s cubic-bezier(.22, 1, .36, 1); }

/* the card takes focus so screen readers announce it; its buttons show the focus ring, the card itself
   doesn't, so it can't be mistaken for the highlight */
.tour-card {
  position: fixed; left: 0; top: 0; width: 344px; max-width: calc(100vw - 32px); padding: 16px 16px 12px;
  border-radius: 16px; border: 1px solid rgba(109, 147, 247, 0.42);
  background: linear-gradient(180deg, #172c50, #0f1f36);
  box-shadow: 0 30px 80px -12px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.tour-card:focus { outline: none; }
.tour.ready .tour-card { transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
/* the tip on the card's edge, pointing at the highlight (--tip: its offset along that edge) */
.tour-tip {
  display: none; position: absolute; width: 14px; height: 14px; transform: rotate(45deg);
  background: #13253f; border: 1px solid rgba(109, 147, 247, 0.42);
}
.tour-card[data-side="below"] .tour-tip { display: block; top: -8px; left: calc(var(--tip) - 7px); background: #172c50; border-right: 0; border-bottom: 0; }
.tour-card[data-side="above"] .tour-tip { display: block; bottom: -8px; left: calc(var(--tip) - 7px); background: #0f1f36; border-left: 0; border-top: 0; }
.tour-card[data-side="left"] .tour-tip { display: block; right: -8px; top: calc(var(--tip) - 7px); border-left: 0; border-bottom: 0; }
.tour-card[data-side="right"] .tour-tip { display: block; left: -8px; top: calc(var(--tip) - 7px); border-right: 0; border-top: 0; }
.tour.ready .tour-tip { transition: left .4s cubic-bezier(.22, 1, .36, 1), top .4s cubic-bezier(.22, 1, .36, 1); }
.tour-body.swap { animation: tourSwap .34s cubic-bezier(.22, 1, .36, 1); }
@keyframes tourSwap { from { opacity: 0; transform: translateY(5px); } }
.tour-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.tour-count { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9cbcff; }
.tour-dots { display: flex; gap: 4px; }
.tour-dots i { width: 12px; height: 4px; border-radius: 2px; background: rgba(148, 163, 184, 0.28); transition: width .3s, background .3s; }
.tour-dots i.on { width: 22px; background: linear-gradient(90deg, #315fea, #38bdf8); }
.tour-card h2 { margin: 0 0 4px; font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.tour-card p { margin: 0 0 14px; font-size: 13px; line-height: 1.55; color: #b4c1d3; }
.tour-btns { display: flex; align-items: center; gap: 8px; }
.tour-btns .btn { min-height: 40px; padding: 0 16px; border-radius: 10px; }
.tour-btns .btn.primary { min-width: 84px; }
.tour-skip { min-height: 40px; padding: 0 8px; margin-left: -8px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-weight: 600; }
@media (hover: hover) { .tour-skip:hover { color: var(--text); } }
.tour-btns button:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }

/* phones: a sheet along the edge away from the highlight */
@media (max-width: 600px) {
  .tour-card { width: auto; max-width: none; left: 16px; right: 16px; transform: none; }
  .tour-card[data-dock="bottom"] { top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .tour-card[data-dock="top"] { top: calc(16px + env(safe-area-inset-top)); }
}

@media (prefers-reduced-motion: reduce) {
  .wo-rays, .wo-halo, .wo-gift, .wo-lid, .wo-beam, .wo-sheen, .wo-mote, .wo-spark, .notif-badge, .notif-btn.ring svg, .notif-panel,
  .tour, .tour-hole::after, .tour-body.swap { animation: none; }
  .wo-spark { opacity: 0.85; transform: rotate(45deg); }
  .wo-stage, .wo-rays, .wo-halo, .wo-spark, .wo-cta svg, .tour-dots i { transition: none; }
  .tour.ready .tour-hole, .tour.ready .tour-card, .tour.ready .tour-tip, .tour.out { transition: none; }
}
