/* ============ Shenanigo v3: hosting, invites, anywhere quests, streaks, trailer ============ */

/* nav extras */
.create-btn { padding: 9px 14px; }
.me-chip .streak { font: 700 13px var(--f-mono); color: #ffb35c; margin-left: -4px; }
.streak-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font: 600 13px var(--f-body); color: var(--muted); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-2); }
.streak-chip.lit { color: #ffcf8a; background: rgba(233, 169, 79, 0.14); box-shadow: inset 0 0 0 1px rgba(233, 169, 79, 0.45), 0 0 24px -8px rgba(255, 150, 60, 0.8); }

/* chips */
.chip.kit { color: #f5e2b0; background: rgba(216, 178, 90, 0.2); box-shadow: inset 0 0 0 1px rgba(240, 211, 138, 0.5); }
.chip.any { color: #d9e6b8; background: rgba(163, 184, 108, 0.18); box-shadow: inset 0 0 0 1px rgba(163, 184, 108, 0.5); }

/* sheets (modals) */
.sheet-ov { z-index: 145; }
.sheet-ov.out { animation: fadeOut 0.25s forwards; }
@keyframes fadeOut { to { opacity: 0; } }
.sheet { position: relative; width: min(460px, 100%, calc(100vw - 24px)); max-width: calc(100vw - 24px); padding: 40px 32px 32px; animation: sheetIn 0.55s var(--spring); }
.sheet.wide { width: min(620px, calc(100vw - 24px)); }
@keyframes sheetIn { from { transform: translateY(40px) scale(0.94); opacity: 0; } }
.sheet-x { position: absolute; top: 12px; right: 12px; }
.code-in { text-align: center; font: 700 30px var(--f-mono) !important; letter-spacing: 0.3em; text-transform: uppercase; padding: 18px !important; }
.bigcode { display: flex; justify-content: center; gap: 8px; margin: 22px 0 18px; }
.bigcode span { width: 54px; height: 66px; display: grid; place-items: center; border-radius: 14px; font: 800 32px var(--f-mono); color: #1a1508;
  background: linear-gradient(160deg, #f5e2b0, #d8b25a); box-shadow: 0 10px 24px -10px rgba(216, 178, 90, 0.9), inset 0 -3px 0 rgba(0, 0, 0, 0.15); animation: tileIn 0.5s var(--spring) both; }
.bigcode span:nth-child(2) { animation-delay: 0.05s; } .bigcode span:nth-child(3) { animation-delay: 0.1s; } .bigcode span:nth-child(4) { animation-delay: 0.15s; } .bigcode span:nth-child(5) { animation-delay: 0.2s; } .bigcode span:nth-child(6) { animation-delay: 0.25s; }
@keyframes tileIn { from { transform: translateY(18px) rotateX(70deg); opacity: 0; } }
.bigcode.sm { gap: 5px; margin: 14px 0 4px; justify-content: flex-start; }
.bigcode.sm span { width: 38px; height: 48px; font-size: 22px; border-radius: 10px; }
.qr { width: 190px; margin: 0 auto; padding: 10px; border-radius: 18px; background: #fbf6ea; }
.qr svg { display: block; width: 100%; height: auto; }

/* unlock pop */
.unlock-pop { position: fixed; z-index: 180; left: 50%; top: 96px; transform: translateX(-50%); display: flex; align-items: center; gap: 18px; padding: 18px 26px 18px 18px; border-radius: 24px; cursor: pointer;
  background: linear-gradient(135deg, rgba(58, 42, 12, 0.97), rgba(22, 26, 33, 0.97)); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.95), inset 0 0 0 1px rgba(240, 211, 138, 0.55), 0 0 60px -10px rgba(216, 178, 90, 0.6);
  animation: popIn 0.7s var(--spring); max-width: calc(100vw - 24px); }
.unlock-pop.out { animation: popOut 0.35s var(--ease) forwards; }
@keyframes popIn { from { transform: translate(-50%, -40px) scale(0.7); opacity: 0; } }
@keyframes popOut { to { transform: translate(-50%, -30px) scale(0.9); opacity: 0; } }
.unlock-pop .ico { position: relative; width: 64px; height: 64px; flex: none; display: grid; place-items: center; font-size: 36px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3cf, #d8b25a 60%, #8a6a2c); animation: spinIn 0.9s var(--spring); }
@keyframes spinIn { from { transform: rotate(-200deg) scale(0.3); } }
.unlock-pop .eyebrow { font-size: 10.5px; color: var(--amber); }
.unlock-pop b { display: block; font: 700 21px var(--f-display); margin-top: 4px; }
.unlock-pop small { color: var(--muted); font-size: 13px; }

/* host page */
.host-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 56px; align-items: center; }
.host-hero h1 { font-size: clamp(44px, 6vw, 88px); margin-top: 18px; }
.host-ticket { position: relative; padding: 30px; border-radius: 28px; transform: rotate(4deg); color: #1f2632; animation: floaty 6s ease-in-out infinite;
  background: linear-gradient(150deg, #fbf1d6, #f0d38a 55%, #d8b25a); box-shadow: 0 50px 100px -30px rgba(216, 178, 90, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  -webkit-mask: radial-gradient(circle 16px at 0 62%, transparent 98%, #000) , radial-gradient(circle 16px at 100% 62%, transparent 98%, #000); -webkit-mask-composite: source-in; mask-composite: intersect; }
@keyframes floaty { 50% { transform: rotate(2deg) translateY(-12px); } }
.host-ticket .tk-top { display: flex; justify-content: space-between; font: 700 12px var(--f-mono); letter-spacing: 0.3em; opacity: 0.7; }
.host-ticket .tk-title { font: 800 34px/1.05 var(--f-display); margin: 22px 0 26px; }
.host-ticket .tk-title .serif { font-weight: 400; }
.host-ticket .tk-code { display: flex; gap: 6px; padding-top: 22px; border-top: 2px dashed rgba(31, 38, 50, 0.3); }
.host-ticket .tk-code i { font: 800 26px var(--f-mono); font-style: normal; width: 38px; height: 46px; display: grid; place-items: center; border-radius: 10px; background: #1f2632; color: #f5e2b0; }
.host-ticket .tk-foot { margin-top: 16px; font: 600 13px var(--f-mono); opacity: 0.7; }
.hstep { position: relative; overflow: hidden; }
.hstep .n { position: absolute; right: 18px; top: 4px; font: 800 110px/1 var(--f-display); color: rgba(240, 211, 138, 0.07); }
.hostrow { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px; border-radius: 22px; }
.hostrow .thumb { --h: 42; position: relative; width: 72px; height: 72px; border-radius: 16px; overflow: hidden; }
.hostrow .thumb img { width: 100%; height: 100%; object-fit: cover; }
.codechip { padding: 8px 12px; border-radius: 10px; background: rgba(216, 178, 90, 0.14); color: #f5e2b0; font-weight: 700; letter-spacing: 0.18em; box-shadow: inset 0 0 0 1px rgba(240, 211, 138, 0.35); }
.joinline { justify-content: center; max-width: 480px; margin: 26px auto 0; flex-wrap: nowrap; }
.joinline .code-in { font-size: 24px !important; padding: 14px !important; }
.kit-list { margin: 18px 0 0; padding: 0; list-style: none; }
.kit-list li { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.kit-list li::before { content: '✦'; color: var(--amber); }
.kit-banner { display: flex; align-items: center; gap: 16px; padding: 18px 22px; margin: -18px 0 36px; border-radius: 20px; }
.big-seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.big-seg button { flex-direction: column; align-items: flex-start; text-align: left; padding: 14px 16px; font-size: 15.5px; gap: 2px; }
.big-seg button small { font-weight: 500; font-size: 12.5px; color: var(--dim); }
.big-seg button.on small { color: rgba(255, 255, 255, 0.85); }
.code-tile { border: 0; text-align: left; color: var(--text); background: linear-gradient(150deg, rgba(216, 178, 90, 0.22), rgba(22, 26, 33, 0.9)); box-shadow: inset 0 0 0 1px rgba(240, 211, 138, 0.35), var(--shadow); font: inherit; }

/* quest page */
.invite-flag { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 10px 18px; border-radius: 99px; font-size: 15px; color: #1a1508;
  background: linear-gradient(115deg, #f5e2b0, #d8b25a); box-shadow: 0 14px 40px -12px rgba(216, 178, 90, 0.9); animation: popIn2 0.8s var(--spring); }
@keyframes popIn2 { from { transform: scale(0.6) rotate(-6deg); opacity: 0; } }
.warn-card { box-shadow: var(--shadow), inset 0 0 0 1px rgba(233, 169, 79, 0.5); background: linear-gradient(150deg, rgba(233, 169, 79, 0.14), var(--surface)); }
.guest-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.guest-row:last-child { border-bottom: 0; }
.guest-row b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.anywhere-card { text-align: center; background: radial-gradient(120% 90% at 50% 0%, rgba(163, 184, 108, 0.22), var(--surface)); }

/* discover dice */
.fab.dice { font-size: 22px; }
.fab.dice.rolling { animation: roll 0.35s linear infinite; }
@keyframes roll { to { transform: rotate(360deg) scale(1.1); } }

/* trailer */
.trailer { position: relative; }
.video-frame { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 16 / 9; background: #0b0d11; box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(240, 211, 138, 0.25), 0 0 90px -30px rgba(216, 178, 90, 0.45); }
.video-frame video { width: 100%; height: 100%; display: block; object-fit: cover; background: #0b0d11; }
.play-big { position: absolute; inset: 0; border: 0; display: grid; place-items: center; background: radial-gradient(circle, rgba(10, 12, 15, 0.1), rgba(10, 12, 15, 0.45)); transition: opacity 0.4s; }
.play-big span { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; padding-left: 8px; font-size: 40px; color: #1a1508;
  background: linear-gradient(135deg, #f5e2b0, #d8b25a); box-shadow: 0 0 0 12px rgba(240, 211, 138, 0.18), 0 20px 60px rgba(0, 0, 0, 0.6); transition: transform 0.4s var(--spring); animation: breathe 2.6s ease-in-out infinite; }
.play-big:hover span { transform: scale(1.12); }
@keyframes breathe { 50% { box-shadow: 0 0 0 22px rgba(240, 211, 138, 0.08), 0 20px 60px rgba(0, 0, 0, 0.6); } }
.play-big.gone { opacity: 0; pointer-events: none; }

/* footer */
.foot { margin-top: 110px; padding: 40px 0 10px; border-top: 1px solid var(--line); display: grid; gap: 18px; justify-items: center; text-align: center; }
.foot .brandline { display: flex; align-items: center; gap: 10px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; color: var(--muted); font-size: 14.5px; }
.foot nav a:hover { color: var(--text); }
.foot p { font-size: 13px; max-width: 560px; }

@media (max-width: 1100px) {
  .host-hero { grid-template-columns: 1fr; } .host-ticket { max-width: 360px; }
  .create-btn .t { display: none; }
}
@media (max-width: 760px) {
  .tabbar a.plus .ic { width: 46px; height: 46px; margin-top: -22px; display: grid; place-items: center; border-radius: 16px; font-size: 26px; font-weight: 700; color: #1a1508;
    background: linear-gradient(135deg, #f5e2b0, #d8b25a); box-shadow: 0 10px 26px -8px rgba(216, 178, 90, 0.9), 0 0 0 4px rgba(21, 25, 32, 0.9); }
  .tabbar a.plus.on { background: transparent; }
  .hostrow { grid-template-columns: 56px minmax(0, 1fr); } .hostrow .thumb { width: 56px; height: 56px; } .hostrow > :last-child { grid-column: 1 / -1; }
  .bigcode span { width: 44px; height: 56px; font-size: 26px; }
  .big-seg { grid-template-columns: 1fr; }
  .kit-banner { margin-top: 0; } .kit-banner .btn { display: none; }
  .unlock-pop { top: 20px; }
  .play-big span { width: 76px; height: 76px; font-size: 30px; }
  .video-frame { border-radius: 18px; }
}

/* palette swatches (create wizard card color) */
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border: 0; border-radius: 12px; color: var(--muted); font-size: 13.5px; font-weight: 600; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line); transition: all 0.3s var(--spring); }
.swatches button span { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, hsl(var(--h), 60%, 66%), hsl(var(--h), 45%, 38%)); }
.swatches button.on { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(240, 211, 138, 0.8), 0 8px 20px -10px rgba(216, 178, 90, 0.9); transform: translateY(-1px); }
@media (max-width: 1100px) { .detail.host-first > aside { order: -1; } }
/* the actionbar hides on desktop, where the sticky aside already holds the action */
.actionbar .kit-list, .actionbar .eyebrow, .actionbar p { display: none; }

/* ============ Collect hunts: the finder ============ */
body.finder-open { overflow: hidden; }
body.finder-open .tabbar, body.finder-open .topbar { display: none; }
.finder { position: fixed; inset: 0; z-index: 175; background: #05070a; overflow: hidden; touch-action: manipulation; animation: fadeIn 0.3s; }
.finder.out { animation: fadeOut 0.3s forwards; }
.finder video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s; }
.finder.cam video { opacity: 1; }
.finder .f-sky { position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 110%, #2c3b24, #141b22 55%, #0b0e14); }
.finder.cam .f-sky { background: linear-gradient(180deg, rgba(5, 7, 10, 0.35), transparent 25%, transparent 70%, rgba(5, 7, 10, 0.55)); }
.finder .f-layer { position: absolute; inset: 0; }
.f-obj { position: absolute; left: 0; top: 0; width: 110px; height: 110px; border: 0; padding: 0; background: transparent; display: grid; place-items: center; cursor: pointer; will-change: transform; }
.f-obj span { font-size: 64px; line-height: 1; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 16px rgba(240, 211, 138, 0.55)); animation: bobObj 2.2s ease-in-out infinite; transition: transform 0.3s var(--spring); }
.f-obj::before { content: ''; position: absolute; inset: 18px; border-radius: 50%; background: radial-gradient(circle, rgba(240, 211, 138, 0.35), transparent 70%); animation: glowObj 2.2s ease-in-out infinite; }
.f-obj.moving span { animation: bobObj 1.1s ease-in-out infinite, wiggle 2.6s ease-in-out infinite; }
.f-obj.rare span { filter: drop-shadow(0 0 22px #ffd166) drop-shadow(0 0 40px rgba(255, 209, 102, 0.8)) saturate(1.4) sepia(0.4); }
.f-obj.rare::after { content: '✦'; position: absolute; right: 14px; top: 8px; color: #fff3cf; font-size: 22px; animation: blink 0.8s infinite; }
.f-obj.near::before { inset: 4px; background: radial-gradient(circle, rgba(159, 194, 94, 0.6), rgba(159, 194, 94, 0.18) 45%, transparent 70%); }
.f-obj.near:not(.rare) span { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 18px rgba(159, 194, 94, 0.9)); }
.f-obj.nope span { animation: wobble 0.4s; }
.f-obj.grab span { transform: scale(1.5); }
.f-obj.gone { transition: opacity 0.4s, transform 0.4s; opacity: 0; }
@keyframes bobObj { 50% { translate: 0 -10px; } }
@keyframes glowObj { 50% { transform: scale(1.3); opacity: 0.6; } }
@keyframes wiggle { 25% { rotate: -8deg; } 75% { rotate: 8deg; } }
.f-top { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 12px; padding: calc(14px + env(safe-area-inset-top)) 14px 14px; }
.f-x { width: 46px; height: 46px; flex: none; border: 0; border-radius: 14px; font-size: 20px; color: #fff; background: rgba(16, 19, 24, 0.7); backdrop-filter: blur(10px); }
.f-title { flex: 1; min-width: 0; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); }
.f-title b { display: block; font: 700 20px var(--f-display); }
.f-title small { font-size: 12.5px; opacity: 0.85; }
.f-count { flex: none; padding: 10px 16px; border-radius: 16px; font: 800 24px var(--f-mono); color: #1a1508; background: linear-gradient(135deg, #f5e2b0, #d8b25a); box-shadow: 0 10px 30px -10px rgba(216, 178, 90, 0.9); transition: transform 0.3s var(--spring); }
.f-count.pop { transform: scale(1.25) rotate(-6deg); }
.f-hint { position: absolute; left: 50%; top: calc(88px + env(safe-area-inset-top)); transform: translateX(-50%); max-width: calc(100vw - 24px); padding: 10px 16px; border-radius: 99px; background: rgba(16, 19, 24, 0.75); backdrop-filter: blur(10px); color: #fff; font-size: 14.5px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.f-hint .arr { display: inline-block; font-style: normal; color: var(--amber); transform: rotate(calc(var(--r) - 90deg)); transition: transform 0.3s; }
.f-safety { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); max-width: 300px; padding: 16px 20px; border-radius: 18px; text-align: center; color: #fff; font-weight: 600; background: rgba(16, 19, 24, 0.82); backdrop-filter: blur(10px); transition: opacity 0.6s; pointer-events: none; }
.f-safety.gone { opacity: 0; }
.f-bottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 0 calc(16px + env(safe-area-inset-bottom)); pointer-events: none; }
.f-radar { width: 140px; height: 140px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(163, 184, 108, 0.4), 0 20px 50px rgba(0, 0, 0, 0.6); }
.finder.nocam .f-radar, .finder:not(.compass) .f-radar { width: 190px; height: 190px; }
.f-status { font: 600 11px var(--f-mono); color: rgba(255, 255, 255, 0.75); text-shadow: 0 1px 6px #000; }
.f-note { position: absolute; left: 50%; bottom: 200px; transform: translateX(-50%); width: min(360px, calc(100vw - 32px)); padding: 18px 20px; border-radius: 18px; color: #1f2632; background: linear-gradient(160deg, #fbf1d6, #f0d38a); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6); animation: popIn2 0.6s var(--spring); }
.f-note b { display: block; font: 700 12px var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; }
.f-note p { font: 600 19px/1.35 var(--f-display); margin-top: 6px; }

/* hunt card on the quest log */
.hunt-card { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; background: rgba(216, 178, 90, 0.1); box-shadow: inset 0 0 0 1px rgba(240, 211, 138, 0.35); }
.hunt-emoji { font-size: 50px; line-height: 1; animation: bob 3s ease-in-out infinite; }
.hunt-card b { display: block; font: 700 19px var(--f-display); }
.hunt-card small { color: var(--muted); font-size: 13px; }
.hunt-count { font: 800 30px var(--f-mono); color: var(--amber); }
.hunt-count small { font-size: 16px; color: var(--dim); }
.hunt-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.hunt-dots i { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-size: 17px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-2); }
.hunt-dots i.on { background: rgba(159, 194, 94, 0.16); box-shadow: inset 0 0 0 1px rgba(159, 194, 94, 0.5); }
.notes-found { margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: rgba(251, 241, 214, 0.06); box-shadow: inset 0 0 0 1px rgba(240, 211, 138, 0.25); }
.notes-found p { margin-top: 8px; font: 500 16px/1.4 var(--f-display); color: #f5e2b0; }

/* collect editor */
.kind-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.kind-grid button { width: 48px; height: 48px; border: 0; border-radius: 14px; font-size: 26px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line); transition: all 0.25s var(--spring); }
.kind-grid button.on { background: rgba(216, 178, 90, 0.3); box-shadow: inset 0 0 0 2px rgba(240, 211, 138, 0.8); transform: translateY(-2px) scale(1.06); }
.collect-box { margin-top: 16px; padding: 18px; border-radius: 18px; background: rgba(216, 178, 90, 0.07); box-shadow: inset 0 0 0 1px rgba(240, 211, 138, 0.25); display: flex; flex-direction: column; gap: 16px; }
.obj-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.obj-row .n { font-size: 24px; }
.emoji-pin { font-size: 30px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6)); cursor: grab; }

/* sign in with Google / Microsoft */
.btn.sso { justify-content: center; gap: 12px; background: #fbf6ea; color: #1f2632; box-shadow: 0 10px 26px -14px rgba(0, 0, 0, 0.8); font-weight: 600; }
.btn.sso:hover { background: #fff; }
.btn.sso svg { width: 20px; height: 20px; flex: none; }
.or { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--dim); font: 600 11px var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
