/* Sunup tour (js/tour.js): "Moving in", the one-minute tour after the first-open intro, plus the firsts hints.
 * A spotlight over the live app and a light sheet like the three questions. Loaded after app.css; uses its variables. */
.tr-ui { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.tr-dim { position: absolute; inset: 0; pointer-events: auto; }
.tr-hole { position: absolute; pointer-events: auto; margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer;
  box-shadow: 0 0 0 200vmax rgba(24, 18, 52, .58); transition: left .3s ease, top .3s ease, width .3s ease, height .3s ease; }
.tr-hole.pill { border-radius: 20px; }
.tr-hole::after { content: ''; position: absolute; inset: -6px; border-radius: inherit; border: 3px solid #FFE47A; animation: tr-pulse 1.6s ease-out infinite; }
.tr-hole:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.tr-bubble { position: absolute; pointer-events: none; background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 18px; font-weight: 800; font-size: 15px; line-height: 1.3; box-shadow: var(--shadow-lg); animation: tr-pop .18s ease-out; }
.tr-bubble::after { content: ''; position: absolute; left: var(--tail, 50%); bottom: -6px; width: 12px; height: 12px; background: #fff; border-radius: 2px; transform: translateX(-50%) rotate(45deg); }
.tr-bubble.up::after { bottom: auto; top: -6px; }

.tr-sheet { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(480px, 100%); box-sizing: border-box; max-height: 72vh; overflow-y: auto; pointer-events: auto;
  background: var(--paper); color: var(--ink); border-radius: 28px 28px 0 0; padding: 14px 20px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 24px rgba(40, 30, 80, .18); animation: tr-up .35s cubic-bezier(.2, .9, .3, 1.15); }
.tr-sheet.lifted { border-radius: 28px; padding-bottom: 18px; } /* above the tab bar while a tab is spotlit */
.tr-body { animation: tr-fade .25s ease; }
.tr-sheet h2 { margin: 2px 0 10px; font-size: var(--fs-xl); line-height: 1.25; text-wrap: balance; }
.tr-sheet .btn.big { margin-top: 14px; width: 100%; }
.tr-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 32px; margin-bottom: 6px; }
.tr-top > :last-child { justify-self: end; }
.tr-top .link { font-weight: 800; color: var(--muted); }
.tr-dots { display: flex; gap: 5px; }
.tr-dots i { width: 7px; height: 7px; border-radius: 99px; background: #EADFCF; }
.tr-dots i.on { background: var(--btn-edge); }
.tr-kicker { margin: 0; font-size: var(--fs-2xs); font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.tr-text { margin: 0; color: var(--muted); }
.tr-note { margin: 10px 0 0; font-size: var(--fs-sm); color: var(--muted); text-align: center; }
.tr-hero { display: grid; place-items: center; }
.tr-hero svg { width: 88px; height: 88px; }

/* 03: the picker */
.tr-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tr-pick > div { display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 108px; padding: 8px 4px 10px; border-radius: 18px; background: #fff; box-shadow: 0 2px 0 var(--line); text-align: center; font-size: var(--fs-sm); }
.tr-pick > div svg { width: 56px; height: 56px; }
.tr-pick small { font-size: var(--fs-2xs); font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.tr-pick .on { outline: 3px solid var(--btn-edge); background: #FFF8E2; }
.tr-pick .ghost { background: transparent; box-shadow: none; border: 2px dashed #E2D5C3; color: #A99DB4; font-weight: 800; font-size: var(--fs-xs); }

/* lists, ways, shop */
.tr-list { display: grid; gap: 8px; }
.tr-list > div { display: grid; grid-template-columns: 38px 1fr; gap: 10px; align-items: center; background: #fff; border-radius: 16px; padding: 9px 12px; box-shadow: 0 2px 0 var(--line); }
.tr-list b { display: block; } .tr-list small { display: block; color: var(--muted); font-weight: 700; font-size: var(--fs-xs); }
.tr-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--tab-on); font-size: 20px; color: #B2741E; }
.tr-ic svg { max-width: 34px; max-height: 34px; }
.tr-ways { display: grid; gap: 6px; }
.tr-ways > div { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 2px 0 var(--line); font-weight: 800; }
.tr-ways b { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--tab-on); font-size: var(--fs-xs); }
.tr-ways p { margin: 0; text-align: center; font-size: var(--fs-2xs); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: #A99DB4; }
.tr-shop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tr-shop > div { display: grid; justify-items: center; gap: 3px; padding: 8px 4px; border-radius: 16px; background: #fff; box-shadow: 0 2px 0 var(--line); text-align: center; font-size: var(--fs-xs); }
.tr-shop svg { width: 52px; height: 52px; }
.tr-shop span { display: inline-flex; align-items: center; gap: 3px; background: var(--chip, #F3E7D6); border-radius: 999px; padding: 2px 8px; font-weight: 800; }
.tr-shop span svg { width: 14px; height: 14px; }

/* Today: the tile after a skip, and the streak reward tile */
.tr-tile { display: flex; align-items: center; gap: 12px; width: 100%; margin: 12px 0; padding: 12px 14px; border: 0; border-radius: 20px; background: var(--tab-on); color: var(--ink); box-shadow: 0 3px 0 var(--line); font: inherit; text-align: left; cursor: pointer; }
.tr-tile b { display: block; } .tr-tile small { display: block; color: var(--muted); font-weight: 700; font-size: var(--fs-sm); }
.tr-tile .sunling-solo, .tr-tile > svg { flex: none; width: 48px; height: 48px; }
.tr-tile .go { margin-left: auto; flex: none; padding: 7px 12px; border-radius: 999px; background: linear-gradient(180deg, var(--btn-top), var(--btn-bot)); box-shadow: 0 3px 0 var(--btn-edge); color: var(--btn-ink); font-weight: 800; font-size: var(--fs-sm); white-space: nowrap; }
div.tr-tile { cursor: default; }

/* Firsts: the tab dot, and the room arrow that pulses once */
.tabs a.tr-dot { position: relative; }
.tabs a.tr-dot::after { content: ''; position: absolute; top: 3px; right: calc(50% - 16px); width: 9px; height: 9px; border-radius: 50%; background: #E0523A; border: 2px solid var(--paper); }
.room-arrow.tr-hint { box-shadow: 0 0 0 4px #FFE47A; animation: tr-nudge 1s ease-in-out 3; }

@keyframes tr-pulse { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes tr-pop { from { transform: scale(.85); opacity: 0; } }
@keyframes tr-up { from { transform: translate(-50%, 24px); opacity: 0; } }
@keyframes tr-fade { from { opacity: 0; transform: translateX(10px); } }
@keyframes tr-nudge { 50% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .tr-hole, .tr-hole::after, .tr-bubble, .tr-sheet, .tr-body, .room-arrow.tr-hint { animation: none; transition: none; } }
