@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: 'Nunito', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* ---- Desktop blurred background ---- */
#desktop-bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(0.35) saturate(0.6);
  transform: scale(1.15);
  z-index: 0;
}

/* ---- Phone frame ---- */
#phone-frame {
  position: relative;
  /* Scale proportionally so the frame always fits the viewport */
  height: min(844px, calc(100svh - 32px));
  width: auto;
  aspect-ratio: 390 / 844;
  border-radius: min(46px, 5.5%);
  overflow: hidden;
  z-index: 1;
  box-shadow:
    0 50px 120px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  background: #000;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* On actual narrow phones: go full screen */
@media (max-width: 430px) {
  #phone-frame {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    aspect-ratio: unset;
  }
  #desktop-bg { display: none; }
}

/* ---- Utilities ---- */
.hidden { display: none !important; }

/* ---- COVER SCREEN ---- */
#cover-screen {
  position: absolute;
  inset: 0;
  z-index: 10;
}

#cover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.70) 0%,
    rgba(0, 0, 0, 0.32) 45%,
    rgba(0, 0, 0, 0.05) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 28px 44px;
}

.cover-icon-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-bottom: 14px;
}

#cover-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

#cover-icon.hidden-icon { display: none; }

#cover-philosophy {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

#cover-title {
  font-size: 34px;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  text-align: center;
  margin-bottom: 12px;
}

#cover-desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
  text-align: center;
  margin-bottom: 28px;
}

.start-btn {
  width: 100%;
  padding: 18px;
  border-radius: 50px;
  border: none;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.1s;
}
.start-btn:active { transform: scale(0.97); background: rgba(255, 255, 255, 0.32); }

/* ---- PLAYER SCREEN ---- */
#player-screen {
  position: absolute;
  inset: 0;
}

/* Persistent gradient overlay — real element so it can never be covered by a video
   at z-index 3. Sits at z-index 4, above all video states, below tap-area (5+). */
#video-gradient {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.70) 0%,
    rgba(0, 0, 0, 0.32) 45%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  will-change: opacity, transform;
}

#video-a { opacity: 1; z-index: 2; }
#video-b { opacity: 0; z-index: 2; }
#video-a.on-top { z-index: 3; }
#video-b.on-top { z-index: 3; }

/* tap capture */
#tap-area {
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* ---- TOP BAR ---- */
#top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  padding: 16px 14px 8px;
  gap: 8px;
}

.icon-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 6px;
  flex-shrink: 0;
  opacity: 0.92;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}

.mute-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

#progress-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 4px;
}

.progress-seg {
  flex: 1;
  height: 100%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
  position: relative;
}

.progress-seg .seg-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #fff;
  width: 0%;
  border-radius: 2px;
  transition: width 0.7s ease;
}

/* ---- TEXT LAYER ---- */
#text-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 28px 90px;
  pointer-events: none;
  transition: padding 0.35s ease;
}

#text-layer.push-up {
  padding-bottom: 220px;
}

#text-layer.push-down {
  padding-top: 220px;
}

/* Active text slot */
.text-slot {
  position: absolute;
  width: calc(100% - 56px);
  text-align: center;
  opacity: 0;
}

/* ---- Standard text ---- */
.t-standard {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1.38;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

/* ---- Focus text ---- */
.t-focus {
  font-size: 27px;
  font-weight: 800;
  color: #fff;
  line-height: 1.32;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

/* ---- Quote ---- */
.t-quote-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.t-quote-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 2px;
}

.t-quote-icon.no-icon { display: none; }

.t-quote-phil {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

.t-quote-body {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1.32;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
  margin-top: 4px;
}

.t-quote-attr {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 10px;
  font-style: italic;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}

/* ---- Split ---- */
.t-split-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.t-split-item {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1.38;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
  opacity: 0;
}

/* ---- QSS ---- */
.t-qss-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.t-qss-head {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  opacity: 0;
}

.t-qss-body {
  font-size: 25px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
  opacity: 0;
}

/* ---- Tap hint ---- */
#tap-hint {
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 40px;
  padding: 11px 26px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
}
#tap-hint.hint-show {
  animation: hintFadeInOut 3.2s ease forwards;
}
@keyframes hintFadeInOut {
  0%   { opacity: 0; }
  15%  { opacity: 1; }
  70%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ---- Keyframe animations ---- */

@keyframes enterUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes enterDown {
  from { opacity: 0; transform: translateY(-22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes exitUp {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-22px); }
}
@keyframes exitDown {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(22px); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes scaleInBig {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}
/* Transform-only variants — opacity handled by a separate fadeIn animation
   so the two properties can have independent easing/duration */
@keyframes scaleInFade {
  from { transform: scale(0.96); }
  to   { transform: scale(1); }
}
@keyframes scaleInBigFade {
  from { transform: scale(1.04); }
  to   { transform: scale(1); }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideUpFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-enter-up    { animation: enterUp 0.6s cubic-bezier(0.2, 0, 0, 1) forwards; }
.anim-enter-down  { animation: enterDown 0.6s cubic-bezier(0.2, 0, 0, 1) forwards; }
.anim-exit-up     { animation: exitUp 0.38s cubic-bezier(0.4, 0, 1, 1) forwards; }
.anim-exit-down   { animation: exitDown 0.38s cubic-bezier(0.4, 0, 1, 1) forwards; }
.anim-scale-in    { animation: scaleIn 0.6s cubic-bezier(0.2, 0, 0, 1) forwards; }
.anim-scale-in-b  { animation: scaleInBig 0.6s cubic-bezier(0.2, 0, 0, 1) forwards; }
.anim-fade-out    { animation: fadeOut 0.38s ease forwards; }
.anim-fade-in     { animation: fadeIn 0.9s ease forwards; }
.anim-slide-up    { animation: slideUpFadeIn 0.5s cubic-bezier(0.2, 0, 0, 1) forwards; }
.anim-slide-up-delayed {
  animation: slideUpFadeIn 0.5s cubic-bezier(0.2, 0, 0, 1) forwards;
  animation-delay: 1s;
}

/* ---- INTERACTABLE LAYER ---- */
/*
 * mix-blend-mode: screen on the LAYER (not on individual child videos).
 * This makes the layer's black areas transparent so the bg video shows through,
 * while the glow/ring colors blend on top. White text stays white under screen.
 * The layer's stacking context blends against the phone frame (which holds the bg videos).
 */
#interactable-layer {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  mix-blend-mode: screen;
}

#interactable-layer.ia-active {
  pointer-events: all;
}

/* Inner circle wrapper — video + ring scale independently of the text label */
#ia-circle-wrap {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  transform-origin: center center;
  will-change: transform;
  transition: transform 80ms linear;
}

/* Long tap – center */
.ia-longtap-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: fadeIn 0.9s ease forwards;
}

.ia-longtap-center .ia-ov-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.ia-longtap-center .ia-ov-text {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  padding: 16px;
  line-height: 1.4;
  pointer-events: none;
}

/* Long-tap progress ring (SVG overlay) */
.ia-progress-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  z-index: 3;
  pointer-events: none;
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 4;
}

.ring-fill {
  fill: none;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 4;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: center;
  /* CSS transition lets the browser interpolate between JS samples smoothly */
  transition: stroke-dashoffset 80ms linear;
}

/* Long tap – bottom */
.ia-longtap-bottom {
  position: absolute;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  animation: fadeIn 0.9s ease forwards;
}

.ia-longtap-bottom .ia-ov-video {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
}

.ia-longtap-bottom .ia-ov-text {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.ia-longtap-bottom .ia-progress-ring {
  width: 90px;
  height: 90px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Swipe – shown below (direction Up) */
.ia-swipe-bottom {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: fadeIn 0.9s ease forwards;
}

/* Swipe – shown above (direction Down) */
.ia-swipe-top {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  animation: fadeIn 0.9s ease forwards;
}

.ia-swipe-video {
  width: 56px;
  height: 56px;
  object-fit: cover;
}

.ia-swipe-text {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  max-width: 200px;
  white-space: normal;
}

/* ---- SWIPE GESTURE CAPTURE ---- */
/* Must sit above #interactable-layer (z-20) so swipe events aren't consumed by ia layer */
#swipe-capture {
  position: absolute;
  inset: 0;
  z-index: 25;
  touch-action: none;
  display: none;
}
#swipe-capture.active { display: block; }

/* Video transition effects */
.video-slide-out-up {
  animation: videoSlideOutUp 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.video-slide-in-up {
  animation: videoSlideInUp 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.video-slide-out-down {
  animation: videoSlideOutDown 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.video-slide-in-down {
  animation: videoSlideInDown 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes videoSlideOutUp {
  from { transform: translateY(0); opacity: 1; }
  to   { transform: translateY(-40%); opacity: 0; }
}
@keyframes videoSlideInUp {
  from { transform: translateY(40%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes videoSlideOutDown {
  from { transform: translateY(0); opacity: 1; }
  to   { transform: translateY(40%); opacity: 0; }
}
@keyframes videoSlideInDown {
  from { transform: translateY(-40%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ---- MUSIC CHOICE MODAL ---- */
#music-modal {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 28px 44px;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.70) 0%,
    rgba(0, 0, 0, 0.32) 45%,
    rgba(0, 0, 0, 0.05) 100%
  );
  animation: fadeIn 0.35s ease forwards;
}

#music-modal.hidden { display: none !important; }

#music-modal-text {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
  margin: 0 0 20px;
}

#music-modal-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  pointer-events: all;
}

.music-btn {
  width: 100%;
  padding: 14px;
  border-radius: 50px;
  border: none;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: background 0.2s, transform 0.1s;
}
.music-btn:active { transform: scale(0.97); background: rgba(255, 255, 255, 0.32); }

.music-btn-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* ---- ATL SCREEN ---- */
#atl-screen {
  position: absolute;
  inset: 0;
  z-index: 40;
  overflow: hidden;
  animation: fadeIn 1.1s ease forwards;
}

#atl-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(16px) brightness(0.42);
  transform: scale(1.1);
}

#atl-title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  font-size: 20px;
  font-weight: 900;
  color: #f0e96e;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1.15;
  padding: 32px 28px 18px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.35) 60%, transparent 100%);
}

#atl-scroll {
  position: absolute;
  top: 88px;
  left: 0;
  right: 0;
  bottom: 100px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 28px 24px;
}
#atl-scroll::-webkit-scrollbar { display: none; }

#atl-text {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.58;
}

#atl-text p { margin-bottom: 22px; }
#atl-text p:last-child { margin-bottom: 0; }

#atl-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 28px 32px;
  background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.atl-btn {
  width: 100%;
  max-width: 320px;
  padding: 17px;
  border-radius: 50px;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  letter-spacing: 0.3px;
}
.atl-btn:active { background: rgba(255, 255, 255, 0.28); transform: scale(0.98); }

/* ---- END SCREEN ---- */
#end-screen {
  position: absolute;
  inset: 0;
  z-index: 45;
  overflow: hidden;
  animation: fadeIn 0.8s ease both;
}

#end-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(16px) brightness(0.35);
  transform: scale(1.1);
}

#end-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
#end-scroll::-webkit-scrollbar { display: none; }

#end-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 48px 0 52px;
  gap: 28px;
}

/* Logo + tagline */
#end-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
  width: 100%;
}

#end-logo {
  height: 34px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.45));
}

#end-tagline {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.70);
  text-align: center;
  margin: 0;
}

/* Carousel */
#end-carousel-outer {
  width: 100%;
  padding: 4px 0;
}

#end-carousel-mask {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

#end-carousel-track {
  display: flex;
  gap: 8px;
  width: max-content;
  animation: end-scroll-left linear infinite;
}

@keyframes end-scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.end-cc {
  width: 110px;
  height: 168px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.40);
}

.end-cc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.78) 100%);
}

.end-cc-title {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 8px 9px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  z-index: 1;
}

/* Wisdom text */
#end-wisdom {
  font-size: 18px;
  font-weight: 700;
  color: #F5E6C8;
  text-align: center;
  line-height: 1.4;
  padding: 0 28px;
  margin: 0;
}

/* Store buttons */
#end-store-btns {
  display: flex;
  gap: 10px;
  padding: 0 28px;
  width: 100%;
}

.end-store-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}
.end-store-btn:active { background: rgba(255,255,255,0.28); transform: scale(0.97); }

.end-store-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Learn more */
#end-learn-more {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.50);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-align: center;
  padding: 4px 28px;
  transition: color 0.2s;
}
#end-learn-more:hover { color: rgba(255, 255, 255, 0.80); }
