/* Jakobs.ai hub – "Dagens tur" (hub/daytrip.js, owner: hub). Prefix dt-. Tablet-first, also phone + desktop. */
.dt { position: relative; width: 100%; max-width: 980px; margin: 8px auto 4px; z-index: 1; }
.dt[hidden] { display: none; }

.dt-card {
  position: relative; display: flex; align-items: center; gap: clamp(10px, 2vw, 22px);
  padding: 10px clamp(12px, 2vw, 20px) 10px clamp(12px, 1.8vw, 16px);
  border: 4px solid rgba(255, 255, 255, .85); border-radius: 30px;
  background:
    radial-gradient(70% 90% at 100% 130%, rgba(124, 196, 90, .30), rgba(124, 196, 90, 0) 70%),
    linear-gradient(180deg, #fffdf6 0%, #fff4d9 100%);
  box-shadow: 0 6px 0 rgba(43, 58, 85, .12), 0 12px 24px rgba(43, 58, 85, .14);
}

/* the head: signpost + "Dagens tur" + what to do */
.dt-head { flex: 0 1 290px; min-width: 0; display: flex; align-items: center; gap: 10px; }
.dt-ico { flex: none; width: 48px; height: 48px; }
.dt-ico svg { display: block; width: 100%; height: 100%; }
.dt-htext { min-width: 0; }
.dt-title { margin: 0; font-size: clamp(21px, 2.6vw, 27px); font-weight: 700; line-height: 1.1; color: var(--ink); }
.dt-sub { margin: 3px 0 0; font-size: clamp(14px, 1.7vw, 17px); font-weight: 500; line-height: 1.2; color: var(--ink-soft); }
.dt-dots { display: none; gap: 5px; margin-left: auto; flex: none; }
.dt-dots i { width: 14px; height: 14px; border-radius: 50%; background: #efe3c8; box-shadow: inset 0 0 0 2px #e0cfa8; }
.dt-dots i.on { background: #3fae6a; box-shadow: inset 0 0 0 2px #2d8a50; }

/* the path: stop – stop – stop – stamp */
.dt-path { flex: 1; min-width: 0; display: flex; align-items: flex-start; justify-content: center; }
.dt-link {
  flex: 1 1 18px; min-width: 8px; max-width: 70px; height: 8px; margin-top: 34px; border-radius: 4px;
  background: radial-gradient(circle, #e0b07a 0 2.6px, transparent 3.2px) 0 50% / 12px 8px repeat-x;
}
.dt-link.on { background-image: radial-gradient(circle, #3fae6a 0 3px, transparent 3.6px); }

.dt-stop {
  flex: 0 1 96px; min-width: 64px; min-height: 64px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 2px 2px 4px; border-radius: 18px; text-decoration: none; color: var(--ink);
  touch-action: manipulation; -webkit-user-drag: none; transition: transform .12s ease;
}
.dt-badge { position: relative; display: block; width: 72px; height: 72px; }
.dt-badge img {
  display: block; width: 100%; height: 100%; border-radius: 20px; background: #fff;
  box-shadow: 0 0 0 4px #fff, 0 5px 0 4px rgba(43, 58, 85, .12);
}
.dt-num {
  position: absolute; left: -8px; top: -8px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font: 700 15px/1 'Fredoka', system-ui, sans-serif; color: #fff;
  background: var(--orange); box-shadow: 0 0 0 3px #fff;
}
.dt-tick { position: absolute; right: -9px; bottom: -9px; width: 32px; height: 32px; animation: dt-pop .5s cubic-bezier(.3, 1.7, .5, 1) both; }
.dt-tick svg { display: block; width: 100%; height: 100%; }
.dt-me {
  position: absolute; right: -12px; top: -14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; box-shadow: 0 2px 0 rgba(43, 58, 85, .15); font-size: 21px; line-height: 1;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; animation: dt-peek 2.6s ease-in-out infinite;
}
.dt-name {
  max-width: 100%; font-size: 14px; font-weight: 600; line-height: 1.12; text-align: center; color: var(--ink);
  overflow-wrap: anywhere; hyphens: auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dt-stop.done .dt-badge img { box-shadow: 0 0 0 4px #3fae6a, 0 5px 0 4px rgba(45, 138, 80, .25); }
.dt-stop.done .dt-num { background: #3fae6a; }
.dt-stop.done .dt-name { color: #2d7a3e; }
.dt-stop.next .dt-badge { animation: dt-hop 2.4s ease-in-out infinite; }
.dt-stop.next .dt-badge img { box-shadow: 0 0 0 4px var(--sun), 0 5px 0 4px rgba(217, 162, 28, .3); }
.dt-stop:hover .dt-badge img { transform: translateY(-2px); }
.dt-stop:active { transform: scale(.93); }
.dt-stop:focus-visible, .dt-goal:focus-visible { outline: 4px solid var(--orange); outline-offset: 3px; }
.dt-stop.going .dt-badge { animation: launch .6s ease-in forwards; }

/* the goal: an empty stamp outline → the day's stamp */
.dt-goal {
  flex: none; width: 66px; min-height: 76px; padding: 0; margin: 0; border: 0; background: none; display: block;
  touch-action: manipulation; font: inherit;
}
.dt-goal .dt-stamp { display: block; width: 66px; height: 78px; }
.dt-goal.on { cursor: pointer; transform: rotate(-6deg); filter: drop-shadow(0 4px 4px rgba(43, 58, 85, .22)); transition: transform .15s ease; }
.dt-goal.on:active { transform: rotate(-6deg) scale(.92); }
.dt-goal.thump { animation: dt-thump .8s cubic-bezier(.3, 1.5, .5, 1) both .35s; }
.dt-stamp-empty { opacity: .9; }
.dt-flame-s { transform-box: fill-box; transform-origin: 50% 0; animation: dt-flame .35s ease-in-out infinite alternate; }

/* done for the day + the celebration */
.dt-card.all { background:
    radial-gradient(70% 90% at 100% 130%, rgba(124, 196, 90, .4), rgba(124, 196, 90, 0) 70%),
    linear-gradient(180deg, #f6fff0 0%, #e4f7d8 100%); }
.dt-card.all .dt-title { color: #2d7a3e; }
.dt-card.party .dt-title { animation: dt-banner .7s cubic-bezier(.3, 1.6, .5, 1) both; }
.dt-card.party { animation: dt-shake .6s ease .2s; }
.dt-confetti { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 40; }
.dt-confetti i {
  position: absolute; top: -16px; left: var(--x); width: 10px; height: 14px; border-radius: 3px; background: var(--c);
  opacity: 0; animation: dt-fall 3s cubic-bezier(.3, .5, .6, 1) var(--d) both;
}
.dt-confetti i:nth-child(3n) { border-radius: 50%; width: 11px; height: 11px; }

@keyframes dt-pop { 0% { transform: scale(0) rotate(-40deg); } 100% { transform: none; } }
@keyframes dt-hop { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-7px); } 90% { transform: translateY(0) scale(1.03, .97); } }
@keyframes dt-peek { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
@keyframes dt-flame { from { transform: scaleY(.8); } to { transform: scaleY(1.15); } }
@keyframes dt-thump {
  0% { transform: scale(2.4) rotate(-30deg); opacity: 0; }
  55% { transform: scale(.9) rotate(-4deg); opacity: 1; }
  75% { transform: scale(1.08) rotate(-7deg); }
  100% { transform: rotate(-6deg); opacity: 1; }
}
@keyframes dt-banner { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dt-shake { 0%, 100% { transform: none; } 25% { transform: rotate(-1deg); } 50% { transform: rotate(1deg); } 75% { transform: rotate(-.5deg); } }
@keyframes dt-fall {
  0% { opacity: 1; transform: translate(0, 0) rotate(var(--r)) scale(var(--s)); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), 100vh) rotate(calc(var(--r) + 540deg)) scale(var(--s)); }
}

/* ---------- layouts ---------- */
/* portrait tablets and phones: the head on top, the path below */
@media (max-width: 900px) {
  .dt-card { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px 10px; }
  .dt-head { flex: none; }
  .dt-ico { width: 40px; height: 40px; }
  .dt-dots { display: flex; }
}
@media (max-width: 600px) {
  .dt { margin-top: 6px; }
  .dt-card { border-radius: 24px; padding: 8px 8px 8px; }
  .dt-head { padding: 0 4px; }
  .dt-sub { font-size: 14px; }
  .dt-badge { width: 62px; height: 62px; }
  .dt-badge img { border-radius: 17px; }
  .dt-link { margin-top: 29px; flex: 0 1 10px; min-width: 4px; background-size: 9px 8px; }
  .dt-link.on { background-image: radial-gradient(circle, #3fae6a 0 2.6px, transparent 3.2px); }
  .dt-stop { flex: 1 1 0; min-width: 64px; }
  .dt-name { font-size: 13px; letter-spacing: -.2px; }
  .dt-goal, .dt-goal .dt-stamp { width: 54px; }
  .dt-goal .dt-stamp { height: 64px; }
  .dt-goal { min-height: 64px; margin-top: 2px; }
}
@media (max-width: 380px) {
  .dt-badge { width: 56px; height: 56px; }
  .dt-link { margin-top: 26px; }
  .dt-goal, .dt-goal .dt-stamp { width: 48px; }
  .dt-goal .dt-stamp { height: 58px; }
  .dt-name { font-size: 12px; }
}
/* short landscape screens (phones turned sideways): one compact row */
@media (max-height: 520px) and (orientation: landscape) {
  .dt { margin-top: 4px; }
  .dt-card { flex-direction: row; align-items: center; padding: 3px 12px 2px; border-radius: 24px; }
  .dt-head { flex: 0 1 190px; }
  .dt-ico { width: 38px; height: 38px; }
  .dt-title { font-size: 20px; }
  .dt-sub { font-size: 13px; }
  .dt-dots { display: none; }
  .dt-badge { width: 54px; height: 54px; }
  .dt-badge img { border-radius: 15px; }
  .dt-link { margin-top: 25px; }
  .dt-stop { gap: 2px; padding-bottom: 2px; }
  .dt-name { font-size: 12.5px; letter-spacing: -.2px; -webkit-line-clamp: 1; }
  .dt-goal, .dt-goal .dt-stamp { width: 52px; }
  .dt-goal .dt-stamp { height: 62px; }
  .dt-goal { min-height: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .dt-confetti { display: none; }
}
