/* ==========================================================================
   Wuflino v6 — Bold Submerged Header, Auto-Locale Multi-Language,
   All 7 Live Sports, Exact Zero-Clip iPhone Widgets & Swipeable Apple Watch
   ========================================================================== */

:root {
  --bg: #F9F7F3;
  --header-bg: rgba(249, 247, 243, 0.82);
  --surface: rgba(255, 255, 255, 0.76);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-soft: rgba(24, 24, 27, 0.044);

  --ink: #18181B;
  --headline-soft: #6C655D;
  --ink-muted: #57534E;
  --ink-faint: #8A847C;

  --rim: rgba(24, 24, 27, 0.085);
  --rim-strong: rgba(24, 24, 27, 0.16);

  --orb-1: rgba(227, 171, 99, 0.24);
  --orb-2: rgba(212, 165, 132, 0.14);
  --orb-3: rgba(164, 152, 204, 0.10);

  --accent: #8C5A2B;
  --accent-soft: rgba(140, 90, 43, 0.10);
  --btn-bg: #18181B;
  --btn-ink: #FFFFFF;
  --btn-hover: #2A2A30;

  --shadow-sm: 0 2px 10px rgba(24, 22, 20, 0.045);
  --shadow-md: 0 14px 36px rgba(24, 22, 20, 0.075);
  --shadow-lg: 0 28px 64px rgba(24, 22, 20, 0.12);
}

html[data-theme="ocean"] {
  --bg: #F6F9FA; --header-bg: rgba(246, 249, 250, 0.82);
  --orb-1: rgba(89, 153, 194, 0.22); --orb-2: rgba(102, 178, 178, 0.14); --orb-3: rgba(136, 158, 212, 0.10);
  --accent: #275C78; --accent-soft: rgba(39, 92, 120, 0.10); --headline-soft: #4F6875;
}
html[data-theme="dusk"] {
  --bg: #F8F7FB; --header-bg: rgba(248, 247, 251, 0.82);
  --orb-1: rgba(115, 97, 181, 0.21); --orb-2: rgba(165, 138, 198, 0.14); --orb-3: rgba(132, 166, 212, 0.10);
  --accent: #4B3E82; --accent-soft: rgba(75, 62, 130, 0.10); --headline-soft: #635D78;
}
html[data-theme="rose"] {
  --bg: #FAF7F8; --header-bg: rgba(250, 247, 248, 0.82);
  --orb-1: rgba(173, 82, 107, 0.19); --orb-2: rgba(212, 154, 158, 0.14); --orb-3: rgba(172, 148, 196, 0.10);
  --accent: #823A4E; --accent-soft: rgba(130, 58, 78, 0.10); --headline-soft: #755C63;
}
html[data-theme="fern"] {
  --bg: #F6F9F6; --header-bg: rgba(246, 249, 246, 0.82);
  --orb-1: rgba(94, 153, 107, 0.20); --orb-2: rgba(146, 184, 138, 0.13); --orb-3: rgba(124, 174, 170, 0.10);
  --accent: #316140; --accent-soft: rgba(49, 97, 64, 0.10); --headline-soft: #54695A;
}
html[data-theme="midnight"] {
  --bg: #0B0D14; --header-bg: rgba(11, 13, 20, 0.80);
  --surface: rgba(24, 27, 38, 0.74); --surface-strong: rgba(30, 34, 48, 0.90); --surface-soft: rgba(255, 255, 255, 0.06);
  --ink: #F4F5F8; --headline-soft: #9EA4B4; --ink-muted: #A4AAB8; --ink-faint: #6D7484;
  --rim: rgba(255, 255, 255, 0.09); --rim-strong: rgba(255, 255, 255, 0.18);
  --orb-1: rgba(89, 130, 196, 0.20); --orb-2: rgba(120, 96, 178, 0.15); --orb-3: rgba(66, 150, 168, 0.11);
  --accent: #9EC5FF; --accent-soft: rgba(158, 197, 255, 0.14);
  --btn-bg: #F4F5F8; --btn-ink: #11131A; --btn-hover: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", "Noto Sans SC", "Noto Sans Devanagari", "Noto Sans JP", "Noto Sans KR", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.62;
  overflow-x: hidden;
  transition: background-color 0.45s ease, color 0.35s ease;
}

button, input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img, canvas, svg { display: block; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.tabular { font-variant-numeric: tabular-nums; }

.ambient-canvas { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient-orb { position: absolute; border-radius: 50%; filter: blur(110px); transition: background 0.65s ease; }
.orb-1 { top: -220px; left: 50%; transform: translateX(-50%); width: 1080px; height: 640px; background: var(--orb-1); }
.orb-2 { top: 44%; right: -260px; width: 680px; height: 680px; background: var(--orb-2); }
.orb-3 { bottom: 6%; left: -240px; width: 660px; height: 660px; background: var(--orb-3); }

.roaming-pet-canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 40; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

/* ==========================================================================
   BOLD SUBMERGED MODERN HEADER (Significantly Larger Presence!)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.28s ease, border-color 0.28s ease, backdrop-filter 0.28s ease;
}
.site-header.is-scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom-color: var(--rim);
}

.header-inner {
  width: min(1220px, calc(100% - 48px));
  margin-inline: auto;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; }
.brand-icon { border-radius: 11px; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.10); }
.brand-name { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.32rem; font-weight: 800; letter-spacing: -0.03em; }

.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: -0.01em;
  transition: color 0.18s ease;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--rim);
  background: var(--surface);
  backdrop-filter: blur(12px);
  color: var(--ink-muted);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.lang-select-wrap:hover { border-color: var(--rim-strong); color: var(--ink); }
.globe-svg { flex: 0 0 auto; opacity: 0.78; }
.lang-select {
  border: 0;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  outline: none;
  padding-right: 4px;
}
.footer-lang-select {
  border: 1px solid var(--rim);
  border-radius: 999px;
  background: var(--surface);
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  outline: none;
}

/* Crisp Obsidian Primary & Frosted Secondary Buttons */
.primary-btn,
.primary-btn-nav,
.primary-btn-sm,
.grad-btn,
.grad-cta-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 600;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 20px rgba(24, 24, 27, 0.14);
  transition: transform 0.16s ease, background-color 0.18s ease, box-shadow 0.2s ease;
}
.primary-btn, .grad-btn { height: 48px; padding: 0 24px; font-size: 0.92rem; }
.primary-btn-nav { height: 42px; padding: 0 22px; font-size: 0.94rem; }
.primary-btn-sm, .grad-cta-sm { height: 34px; padding: 0 15px; font-size: 0.8rem; }
.primary-btn-lg { height: 56px; padding: 0 28px; }
.primary-btn:hover, .primary-btn-nav:hover, .primary-btn-sm:hover, .grad-btn:hover, .grad-cta-sm:hover {
  background: var(--btn-hover);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 26px rgba(24, 24, 27, 0.18);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--rim-strong);
  background: var(--surface);
  backdrop-filter: blur(14px);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, background-color 0.18s ease;
}
.secondary-btn:hover { transform: translateY(-1px); background: var(--surface-strong); }

.apple-svg-sm { width: 15px; height: 15px; }
.apple-svg { width: 22px; height: 22px; }
.store-btn-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.08; }
.store-btn-text small { font-size: 0.64rem; font-weight: 500; opacity: 0.78; }
.store-btn-text strong { font-size: 1.02rem; font-weight: 700; }

/* ==========================================================================
   Typography & Flowing Sections
   ========================================================================== */
.kicker { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.kicker-light { color: #A6C3F0; }

.display-xl {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Noto Sans SC", "Noto Sans Devanagari", "Noto Sans JP", "Noto Sans KR", sans-serif;
  font-size: clamp(2.55rem, 5.5vw, 4.35rem);
  font-weight: 800; line-height: 1.07; letter-spacing: -0.04em;
}
.display-lg {
  margin: 10px 0 0;
  font-family: "Plus Jakarta Sans", "Noto Sans SC", "Noto Sans Devanagari", "Noto Sans JP", "Noto Sans KR", sans-serif;
  font-size: clamp(1.95rem, 3.6vw, 2.85rem);
  font-weight: 800; line-height: 1.12; letter-spacing: -0.032em;
}
.display-md {
  margin: 8px 0 0;
  font-family: "Plus Jakarta Sans", "Noto Sans SC", "Noto Sans Devanagari", "Noto Sans JP", "Noto Sans KR", sans-serif;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -0.025em;
}
.display-light { color: #F5F7FC; }
.headline-soft { color: var(--headline-soft); }

.body-copy { margin: 14px 0 0; font-size: 1rem; line-height: 1.68; color: var(--ink-muted); }
.narrow { max-width: 580px; }
.center-copy { margin-inline: auto; }

.band { padding: 88px 0; position: relative; }
.band-intro { margin-bottom: 44px; }
.center-intro { text-align: center; }

/* ==========================================================================
   OPEN HERO (Digital Companion + Unclipped Free-Roaming Pet Anchor)
   ========================================================================== */
.hero {
  padding: 146px 24px 36px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  position: relative;
}
.hero-copy { max-width: 720px; position: relative; z-index: 2; }
.hero-lead { margin: 20px auto 0; max-width: 540px; font-size: 1.04rem; line-height: 1.68; color: var(--ink-muted); }
.hero-cta-row { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.hero-pet-anchor {
  position: relative; width: 100%; max-width: 1140px; height: 235px; margin-top: 10px;
  display: flex; align-items: flex-end; justify-content: center;
}
.open-tap-whisper { margin: 0 0 6px; font-size: 0.78rem; font-weight: 500; color: var(--ink-faint); transition: opacity 0.45s ease; }
.open-tap-whisper.is-quiet { opacity: 0.32; }

/* ==========================================================================
   WORLDS & FRONT-VIEW SKI GOGGLES
   ========================================================================== */
.worlds-deck {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 24px;
  align-items: stretch;
}
.world-stage {
  position: relative;
  min-height: 560px;
  border-radius: 30px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #1C2133 0%, #11131B 68%, #0B0D14 100%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
#studio-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.world-config {
  border-radius: 30px;
  background: var(--surface);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--rim);
  box-shadow: var(--shadow-md);
  padding: 26px 26px 24px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
}
.wc-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wc-header h3 { margin: 0; font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.04rem; font-weight: 700; }
.wc-active-chip {
  padding: 4px 12px; border-radius: 999px; background: var(--surface-soft);
  border: 1px solid var(--rim); font-size: 0.74rem; font-weight: 600; color: var(--ink-muted);
}

.scene-cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.scene-thumb-card {
  position: relative; border: 1.5px solid var(--rim); border-radius: 18px;
  overflow: hidden; padding: 0; aspect-ratio: 16 / 10; background: #11131B; cursor: pointer;
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.scene-thumb-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.32s ease; }
.scene-thumb-card:hover { transform: translateY(-2px); border-color: var(--rim-strong); }
.scene-thumb-card:hover img { transform: scale(1.03); }
.scene-thumb-card.is-active { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink), var(--shadow-sm); }
.scene-thumb-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(8, 10, 18, 0.78) 100%); pointer-events: none; }
.st-label { position: absolute; left: 11px; bottom: 9px; z-index: 2; font-size: 0.77rem; font-weight: 600; color: #FFFFFF; }

.goggles-panel {
  border-radius: 22px; background: var(--surface-soft); border: 1px solid var(--rim);
  padding: 18px; display: flex; flex-direction: column; gap: 14px;
}
.goggles-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.goggles-head h3 { margin: 0; font-family: "Plus Jakarta Sans", sans-serif; font-size: 0.96rem; font-weight: 700; }
.goggles-head p { margin: 3px 0 0; font-size: 0.78rem; color: var(--ink-muted); }

.goggle-toggles { display: flex; gap: 6px; }
.pill-toggle {
  height: 31px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--rim-strong);
  background: var(--surface-strong); font-size: 0.75rem; font-weight: 600; color: var(--ink-muted);
  cursor: pointer; transition: all 0.18s ease;
}
.pill-toggle:hover { color: var(--ink); }
.pill-toggle.is-active { border-color: transparent; background: var(--btn-bg); color: var(--btn-ink); }

.lens-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.lens-chip {
  border: 1px solid var(--rim); background: var(--surface-strong); border-radius: 13px;
  padding: 8px 4px 7px; display: flex; flex-direction: column; align-items: center; gap: 5px;
  cursor: pointer; transition: transform 0.16s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.lens-chip:hover { transform: translateY(-1px); border-color: var(--rim-strong); }
.lens-chip i { width: 21px; height: 21px; border-radius: 50%; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.45); }
.lens-chip span { font-size: 0.67rem; font-weight: 600; color: var(--ink-muted); }
.lens-chip.is-active { border-color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); }
.lens-chip.is-active span { color: var(--ink); font-weight: 700; }

.brightness-bar label { display: flex; justify-content: space-between; font-size: 0.76rem; font-weight: 600; color: var(--ink-muted); margin-bottom: 6px; }
.brightness-bar label em { font-style: normal; color: var(--ink); font-weight: 700; }
.brightness-bar input[type="range"] { width: 100%; accent-color: var(--ink); cursor: pointer; }

/* ==========================================================================
   ALL 7 SUPPORTED SPORTS LIVE SHOWCASE (Simultaneous Crisp Native Tiles!)
   ========================================================================== */
.sports-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.sport-tile {
  width: 248px;
  border-radius: 26px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--rim);
  box-shadow: var(--shadow-sm);
  padding: 20px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.sport-tile:hover { transform: translateY(-3px); border-color: var(--rim-strong); box-shadow: var(--shadow-md); }
.sport-live-cv {
  width: 118px;
  height: 118px;
}
.sport-tile strong {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink);
}

/* ==========================================================================
   REAL iPHONE HOME SCREEN WIDGETS (Exact PetWidgetFitness + PetWidgetLayouts!)
   ========================================================================== */
.widgets-layout {
  display: grid;
  grid-template-columns: minmax(320px, 396px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.iphone-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 392px;
  margin-inline: auto;
  border-radius: 48px;
  border: 7px solid #1E2028;
  padding: 14px 16px 18px;
  background: linear-gradient(155deg, #F6DAC0 0%, #EAD2E6 52%, #C9DCF1 100%);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
  display: flex; flex-direction: column; gap: 14px;
  transition: background 0.45s ease;
}
.iphone-frame > *:not(.iphone-wallpaper-art) { position: relative; z-index: 2; }
.iphone-wallpaper-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.42s ease;
}
.iphone-wallpaper-art svg { width: 100%; height: 100%; display: block; }
.iphone-frame[data-wp="transparent"] { background: #262E4E; }
.iphone-frame[data-wp="transparent"] .iphone-wallpaper-art { opacity: 1; }
.iphone-frame[data-wp="solid"] { background: linear-gradient(160deg, #E8E3DC 0%, #D7CFC6 100%); }

.ios-top-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 76px; }
.ios-time { font-size: 0.72rem; font-weight: 700; color: #1B1A1F; padding: 6px 0 0 4px; transition: color 0.3s ease; }
.ios-signal { display: flex; gap: 3px; padding: 10px 4px 0 0; }
.ios-signal span { width: 11px; height: 5px; border-radius: 3px; background: #1B1A1F; opacity: 0.65; transition: background-color 0.3s ease; }
.iphone-frame[data-wp="transparent"] .ios-time { color: #FFFFFF; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45); }
.iphone-frame[data-wp="transparent"] .ios-signal span { background: #FFFFFF; opacity: 0.92; }

.ios-home-bar {
  width: 104px;
  height: 4px;
  border-radius: 999px;
  background: rgba(24, 24, 27, 0.22);
  margin: 2px auto -4px;
  transition: background-color 0.3s ease;
}
.iphone-frame[data-wp="transparent"] .ios-home-bar { background: rgba(255, 255, 255, 0.55); }

.di-pill {
  border: 0; background: #000000; color: #FFFFFF;
  width: 136px; height: 34px; border-radius: 22px; padding: 0 9px;
  cursor: pointer; overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  transition: width 0.36s cubic-bezier(0.32, 1.15, 0.45, 1), height 0.36s cubic-bezier(0.32, 1.15, 0.45, 1);
}
.di-pill.is-expanded { width: 254px; height: 74px; border-radius: 26px; padding: 7px 12px; }
.di-compact-row { display: flex; align-items: center; justify-content: space-between; height: 34px; }
.di-pill.is-expanded .di-compact-row { display: none; }
#di-mini-cv { width: 30px; height: 30px; }
.di-symbol { display: grid; place-items: center; color: rgba(255, 255, 255, 0.88); }
.di-wk-compact { display: inline-flex; align-items: center; gap: 4px; font-size: 0.7rem; }
.di-wk-compact[hidden] { display: none; }
.wk-dot { width: 5px; height: 5px; border-radius: 50%; background: #4ADE80; }

.di-expanded-row { display: none; align-items: center; gap: 10px; height: 100%; text-align: left; }
.di-pill.is-expanded .di-expanded-row { display: flex; }
#di-exp-cv { width: 54px; height: 54px; flex: 0 0 auto; }
.di-exp-text { flex: 1; min-width: 0; line-height: 1.24; }
.di-exp-text strong { display: block; font-size: 0.82rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.di-exp-text span { display: block; font-size: 0.71rem; color: rgba(255, 255, 255, 0.75); }
.di-exp-wk { text-align: right; line-height: 1.18; flex: 0 0 auto; }
.di-exp-wk[hidden] { display: none; }
.di-exp-wk strong { display: block; font-size: 0.84rem; color: #4ADE80; }
.di-exp-wk small { font-size: 0.62rem; color: rgba(255, 255, 255, 0.72); }

/* REAL Medium Widget (Exact 338:158 Proportions, ZERO Clipping!) */
.real-widget-medium {
  width: 100%;
  aspect-ratio: 338 / 158;
  border-radius: 26px;
  padding: 10px 12px;
  color: #1A1A1E;
  background: linear-gradient(135deg, #FFF5E7 0%, #F7DFC7 55%, #EBD6EE 100%);
  box-shadow: 0 12px 26px rgba(24, 20, 32, 0.14);
  overflow: hidden;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
/* True Background-Free Transparent UI — ZERO card fill, ZERO border, ZERO shadow! */
.real-widget-medium[data-bg="transparent"],
.real-widget-small[data-bg="transparent"] {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  color: #FFFFFF;
  text-shadow: 0 1px 6px rgba(10, 14, 28, 0.48);
}
.real-widget-medium[data-bg="transparent"] .st-left-card { background: transparent; }
.real-widget-medium[data-bg="transparent"] .st-chart-head em,
.real-widget-medium[data-bg="transparent"] .st-days b,
.real-widget-small[data-bg="transparent"] .rwd-date { color: #FFD8A6; }
.real-widget-medium[data-bg="transparent"] .st-svg polyline,
.real-widget-medium[data-bg="transparent"] .hr-svg path { stroke: #FFD8A6; }
.real-widget-medium[data-bg="transparent"] .st-svg circle,
.real-widget-medium[data-bg="transparent"] .hr-svg circle { fill: #FFD8A6; stroke: #FFFFFF; }
.real-widget-medium[data-bg="transparent"] .hr-svg line { stroke: rgba(255, 255, 255, 0.24); }
.real-widget-medium[data-bg="transparent"] .hr-right-pet { background: none; }
.real-widget-small[data-bg="transparent"] .rw-ring-svg circle:first-child { stroke: rgba(255, 255, 255, 0.28); }
.real-widget-small[data-bg="transparent"] .rw-ring-svg circle:last-child { stroke: #FFD8A6; }
.real-widget-medium[data-bg="solid"],
.real-widget-small[data-bg="solid"] { background: #FFFDF9; color: #1A1A1E; }

.wm-layout-panel { display: none; width: 100%; height: 100%; }
.wm-layout-panel.is-active { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 11px; align-items: stretch; }
.wm-layout-panel.wm-hr-panel.is-active { grid-template-columns: 1.12fr 0.88fr; gap: 6px; }
.wm-layout-panel[data-wmed="wideMotion"].is-active,
.wm-layout-panel[data-wmed="petOnly"].is-active { display: block; }
#w-wide-cv, #w-med-pet-cv { width: 100%; height: 100%; }

/* Step Trail Left Tinted Card (Zero Paws Clipped!) */
.st-left-card {
  position: relative;
  border-radius: 16px;
  background: rgba(26, 26, 30, 0.08);
  padding: 7px 9px 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.st-head-txt small { display: block; font-size: 0.6rem; font-weight: 700; opacity: 0.72; line-height: 1.1; }
.st-head-txt strong { display: block; font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.2rem; font-weight: 800; line-height: 1.08; margin-top: 1px; }
#w-steptrail-cv { width: 76px; height: 76px; margin: 0 auto; flex: 0 0 auto; }

.st-right-chart { display: flex; flex-direction: column; justify-content: space-between; padding: 3px 2px 2px; }
.st-chart-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.66rem; font-weight: 700; }
.st-chart-head em { font-style: normal; color: #C66D24; }
.st-svg { width: 100%; height: 66px; }
.st-days { display: flex; justify-content: space-between; font-size: 0.59rem; font-weight: 700; opacity: 0.65; }
.st-days b { color: #B54224; opacity: 1; }

/* Exact PetWidgetFitness.swift Heart Rate (Metrics LEFT, Haloed Pet RIGHT) */
.hr-left-col { display: flex; flex-direction: column; justify-content: space-between; padding: 4px 2px 3px 4px; }
.hr-head small { display: block; font-size: 0.61rem; font-weight: 700; opacity: 0.74; line-height: 1.1; }
.hr-head strong { display: block; font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.48rem; font-weight: 800; line-height: 1.05; margin-top: 1px; }
.hr-head strong em { font-style: normal; font-size: 0.68rem; font-weight: 700; opacity: 0.76; }
.hr-svg { width: 100%; height: 48px; }
.hr-range { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.61rem; color: inherit; opacity: 0.82; }
.hr-range b { font-weight: 700; }
.hr-right-pet {
  position: relative;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 54%, rgba(181, 66, 36, 0.16) 0%, transparent 72%);
  border-radius: 50%;
}
#w-hr-cv { width: 112px; height: 112px; }

/* Two Real Small Square Widgets (Zero Clipping!) */
.real-widgets-small-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.real-widget-small {
  aspect-ratio: 1 / 1;
  border-radius: 26px;
  padding: 10px 11px 9px;
  color: #1A1A1E;
  background: linear-gradient(145deg, #FFF5E7 0%, #F6DFC9 60%, #EBD8EC 100%);
  box-shadow: 0 12px 26px rgba(24, 20, 32, 0.14);
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.rw-radial-head small { display: block; font-size: 0.6rem; font-weight: 700; opacity: 0.72; }
.rw-radial-head strong { display: block; font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.36rem; font-weight: 800; line-height: 1.05; }
.rw-radial-body { display: flex; align-items: flex-end; justify-content: space-between; gap: 4px; margin-top: auto; }
.rw-ring-wrap { position: relative; width: 58px; height: 58px; flex: 0 0 auto; }
.rw-ring-svg { width: 100%; height: 100%; }
.rw-ring-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; }
.rw-ring-txt b { font-size: 0.72rem; font-weight: 800; }
.rw-ring-txt small { font-size: 0.44rem; font-weight: 700; opacity: 0.68; }
#w-radial-cv { width: 72px; height: 72px; flex: 0 0 auto; }

.rw-analog-face { width: 100%; height: 100%; display: grid; place-items: center; }
.rw-petonly-face { width: 100%; height: 100%; display: grid; place-items: center; }
.rw-analog-face[hidden], .rw-digital-face[hidden], .rw-petonly-face[hidden] { display: none; }
#w-analog-cv, #w-small-pet-cv { width: 100%; height: 100%; }

.rw-digital-face { position: relative; width: 100%; height: 100%; }
.rwd-digits { display: flex; flex-direction: column; font-family: "Plus Jakarta Sans", sans-serif; font-size: 3rem; font-weight: 900; line-height: 0.86; letter-spacing: -0.05em; }
.rwd-date { position: absolute; top: 2px; right: 2px; text-align: right; font-size: 0.62rem; font-weight: 800; color: #B54224; line-height: 1.2; }
#w-digital-cv { position: absolute; right: 0; bottom: 0; width: 70px; height: 70px; }

/* Balanced 2x2 Frosted Widget Control Cards (Zero Empty Space!) */
.widget-cards-2x2 {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.wctrl-card {
  border-radius: 22px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid var(--rim);
  box-shadow: var(--shadow-sm);
  padding: 16px 16px 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wc-label { font-size: 0.67rem; font-weight: 700; letter-spacing: 0.14em; color: var(--ink-faint); }
.wctrl-pills { display: flex; flex-wrap: wrap; gap: 6px; }

.glass-seg {
  display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 4px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--rim);
  backdrop-filter: blur(16px); width: fit-content;
}
.gseg-btn {
  border: 1px solid var(--rim);
  background: var(--surface-strong);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.18s ease;
}
.glass-seg .gseg-btn { border-color: transparent; background: transparent; padding: 7px 14px; }
.gseg-btn:hover { color: var(--ink); border-color: var(--rim-strong); }
.glass-seg .gseg-btn:hover { border-color: transparent; }
.gseg-btn.is-active {
  border-color: transparent;
  background: var(--btn-bg);
  color: var(--btn-ink);
  box-shadow: 0 4px 12px rgba(24, 24, 27, 0.14);
}

/* ==========================================================================
   INTERACTIVE SWIPEABLE APPLE WATCH (4 Real watchOS Pages!)
   ========================================================================== */
.fitness-layout {
  display: grid;
  grid-template-columns: minmax(290px, 390px) minmax(0, 1fr);
  gap: 54px;
  align-items: center;
}
.watch-floating-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 20px 0; }

.watch-ambient-halo {
  position: absolute; top: 44%; left: 50%; transform: translate(-50%, -50%);
  width: 300px; height: 300px; border-radius: 50%; filter: blur(54px); opacity: 0.48;
  pointer-events: none; background: radial-gradient(circle, rgba(134, 227, 208, 0.72) 0%, transparent 70%);
  transition: background 0.5s ease;
}
.watch-ambient-halo[data-band="lower"]    { background: radial-gradient(circle, rgba(185, 153, 252, 0.72) 0%, transparent 70%); }
.watch-ambient-halo[data-band="elevated"] { background: radial-gradient(circle, rgba(255, 188, 148, 0.76) 0%, transparent 70%); }
.watch-ambient-halo[data-band="full"]     { background: radial-gradient(circle, rgba(35, 198, 255, 0.62) 0%, transparent 70%); }
.watch-ambient-halo[data-band="workouts"] { background: radial-gradient(circle, rgba(146, 232, 42, 0.56) 0%, transparent 70%); }
.watch-ambient-halo[data-band="activity"] { background: radial-gradient(circle, rgba(250, 17, 79, 0.50) 0%, transparent 70%); }

.watch-chassis {
  position: relative; width: 200px; height: 236px; border-radius: 52px;
  background: linear-gradient(145deg, rgb(82, 84, 97) 0%, rgb(36, 38, 43) 50%, rgb(61, 61, 71) 100%);
  box-shadow: inset 0 0 0 1.3px rgba(255, 255, 255, 0.24), 0 24px 52px rgba(0, 0, 0, 0.34);
  padding: 9px;
}
.watch-crown-grooved {
  position: absolute; right: -7px; top: 52px; width: 7px; height: 34px;
  border-radius: 0 4.5px 4.5px 0; background: rgb(87, 89, 102); padding: 3px 0;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 1px 0 3px rgba(0, 0, 0, 0.45);
}
.watch-crown-grooved i { display: block; height: 1.5px; background: rgba(0, 0, 0, 0.45); }
.watch-side-btn {
  position: absolute; right: -4px; top: 107px; width: 4px; height: 46px;
  border-radius: 0 3px 3px 0; background: linear-gradient(180deg, rgb(84, 87, 97), rgb(38, 41, 46));
}
.watch-bezel-inner { width: 182px; height: 218px; border-radius: 42px; background: #000000; overflow: hidden; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.8); }

.watch-oled-screen {
  width: 182px; height: 218px; background: #000000; color: #FFFFFF;
  position: relative; overflow: hidden;
  cursor: grab; user-select: none; touch-action: pan-y;
}
.watch-oled-screen.is-dragging { cursor: grabbing; }

.watch-pager-track {
  display: flex;
  width: 728px; /* 4 * 182px */
  height: 218px;
  transform: translateX(-364px); /* default Page 2: Modular */
  transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.watch-oled-screen.is-dragging .watch-pager-track { transition: none; }

.watch-slide {
  width: 182px;
  height: 218px;
  flex: 0 0 182px;
  position: relative;
  overflow: hidden;
}

/* Watch Page 0: Workouts */
.watch-slide-workouts { padding: 14px 11px 22px; display: flex; flex-direction: column; gap: 7px; }
.ws-top-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.ws-green-title { font-size: 11.5px; font-weight: 700; color: #92E82A; }
.ws-muted-title { font-size: 11.5px; font-weight: 700; color: rgba(255, 255, 255, 0.65); }
.ws-mini-clock { font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, 0.85); }
.ws-workout-list { display: flex; flex-direction: column; gap: 5px; }
.ws-wk-item {
  height: 35px; border-radius: 12px; padding: 0 9px;
  background: rgba(255, 255, 255, 0.09); border: 0.75px solid rgba(255, 255, 255, 0.11);
  display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600;
}
.ws-wk-item.is-selected { background: rgba(146, 232, 42, 0.16); border-color: rgba(146, 232, 42, 0.55); }
.ws-wk-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.ws-wk-chk { margin-left: auto; font-size: 11px; color: #92E82A; font-weight: 800; }

/* Watch Page 1: Full-Bleed Night Companion (Zero Cutoff!) */
.watch-slide-night { padding: 0; }
#watch-full-cv { position: absolute; inset: 0; width: 182px; height: 218px; }
.wf-clock { position: absolute; top: 13px; right: 15px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.94); z-index: 3; }

/* Watch Page 2: Exact Modular Stress Face */
.watch-slide-modular { padding: 14px 12px 22px; display: flex; flex-direction: column; justify-content: space-between; }
.wm-clock-head { text-align: right; line-height: 1.02; padding-right: 2px; }
.wm-date { font-size: 11.5px; font-weight: 700; display: inline-flex; gap: 3px; }
.wm-wk { color: #FF453A; }
.wm-time { font-size: 35px; font-weight: 300; letter-spacing: -1px; line-height: 1.02; }

.wm-stress-slot {
  height: 58px; border-radius: 15px; background: rgba(255, 255, 255, 0.06);
  border: 0.75px solid rgba(255, 255, 255, 0.09); padding: 0 2px 0 6px;
  display: flex; align-items: center; justify-content: space-between; gap: 2px;
}
.wm-stress-info { width: 56px; display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.wm-band-label { font-size: 15px; font-weight: 600; color: #D4F4E2; }
.wm-stress-slot[data-band="lower"] .wm-band-label { color: #E9E3FF; }
.wm-stress-slot[data-band="usual"] .wm-band-label { color: #D4F4E2; }
.wm-stress-slot[data-band="elevated"] .wm-band-label { color: #FFDBCA; }
.wm-reading-time { font-size: 10px; color: #E2DFE6; margin-top: 2px; white-space: nowrap; }
.wm-gauge { position: relative; width: 49px; height: 4.5px; margin-top: 5px; border-radius: 99px; background: linear-gradient(90deg, #B999FC 0%, #86E3D0 50%, #FFBC94 100%); }
.wm-gauge-thumb { position: absolute; top: 50%; width: 4.5px; height: 8.5px; border-radius: 99px; background: #FCF7F4; border: 0.75px solid #000000; transform: translate(-50%, -50%); transition: left 0.32s cubic-bezier(0.25, 1.2, 0.5, 1); }
#watch-modular-cv { width: 84px; height: 58px; flex: 0 0 auto; }

.wm-bottom-rings { display: flex; justify-content: space-between; padding: 0 4px; }
.wm-bottom-rings span { width: 33px; height: 33px; border-radius: 50%; display: grid; place-items: center; font-size: 9.5px; font-weight: 700; }
.ring-green   { color: #30D158; border: 2px solid rgba(48, 209, 88, 0.55); }
.ring-neutral { color: rgba(255, 255, 255, 0.78); border: 2px solid rgba(255, 255, 255, 0.24); }
.ring-orange  { color: #FA913D; border: 2px solid rgba(250, 145, 61, 0.55); }

/* Watch Page 3: Activity Rings & Daily Loops */
.watch-slide-activity { padding: 14px 11px 22px; display: flex; flex-direction: column; gap: 8px; }
.ws-rings-card {
  border-radius: 16px; background: rgba(255, 255, 255, 0.09); border: 0.75px solid rgba(255, 255, 255, 0.12);
  padding: 9px; display: flex; align-items: center; gap: 10px;
}
.ws-ring-stats { display: flex; flex-direction: column; gap: 3px; font-size: 10.5px; }
.ws-ring-stats span { color: rgba(255, 255, 255, 0.48); margin-left: 1px; }
.ws-loops-card {
  border-radius: 16px; padding: 10px 11px;
  background: linear-gradient(135deg, rgba(227, 171, 99, 0.24), rgba(227, 171, 99, 0.08));
  border: 0.75px solid rgba(227, 171, 99, 0.34);
}
.ws-loops-k { display: block; font-size: 9px; font-weight: 800; letter-spacing: 0.08em; color: #F2C98D; }
.ws-loops-row { display: flex; align-items: baseline; gap: 3px; margin-top: 3px; }
.ws-loops-row strong { font-size: 20px; font-weight: 800; color: #FFFFFF; }
.ws-loops-row span { font-size: 11px; color: rgba(255, 255, 255, 0.55); }
.ws-loops-row em { margin-left: auto; font-style: normal; font-size: 10px; font-weight: 700; color: #30D158; }

.watch-page-dots {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 5; pointer-events: none;
}
.watch-page-dots i { width: 4.5px; height: 4.5px; border-radius: 50%; background: rgba(255, 255, 255, 0.30); transition: background-color 0.2s ease, transform 0.2s ease; }
.watch-page-dots i.is-on { background: #FFFFFF; transform: scale(1.2); }

.watch-swipe-bar { display: flex; align-items: center; gap: 10px; }
.watch-nav-btn {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--rim-strong);
  background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink);
  transition: background-color 0.16s ease, transform 0.16s ease;
}
.watch-nav-btn:hover { background: var(--surface-strong); transform: scale(1.06); }
.watch-swipe-hint { font-size: 0.78rem; font-weight: 600; color: var(--ink-faint); }
.watch-caption { margin: 0; font-size: 0.84rem; font-weight: 500; color: var(--ink-muted); text-align: center; max-width: 300px; }

.rhythm-timeline { margin-top: 22px; display: flex; flex-direction: column; gap: 9px; }
.rhythm-step {
  width: 100%; border: 1px solid var(--rim); background: var(--surface); backdrop-filter: blur(18px);
  border-radius: 18px; padding: 12px 16px; display: flex; align-items: flex-start; gap: 13px;
  text-align: left; cursor: pointer; transition: transform 0.16s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.rhythm-step:hover { transform: translateX(3px); border-color: var(--rim-strong); }
.rhythm-step.is-active { border-color: var(--ink); background: var(--surface-strong); box-shadow: 0 0 0 1px var(--ink), var(--shadow-sm); }
.rhythm-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; margin-top: 5px; }
.rhythm-text { flex: 1; min-width: 0; }
.rhythm-text strong { display: block; font-size: 0.9rem; font-weight: 700; }
.rhythm-text small { display: block; font-size: 0.8rem; color: var(--ink-muted); margin-top: 3px; line-height: 1.45; }
.rhythm-head-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.stress-mini-pills { display: inline-flex; gap: 4px; }
.smp-btn {
  border: 1px solid var(--rim);
  background: var(--surface-soft);
  color: var(--ink-muted);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}
.smp-btn:hover { color: var(--ink); border-color: var(--rim-strong); }
.smp-btn.is-active { background: var(--btn-bg); color: var(--btn-ink); border-color: transparent; }

/* ==========================================================================
   CIRCLE SECTION (Current Smooth Peanut v2, Zero Send Cheer!)
   ========================================================================== */
.circle-friends-showcase { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 24px; align-items: stretch; margin-bottom: 24px; }
.friend-selector-col, .friend-visit-stage, .competition-arena {
  border-radius: 30px; background: var(--surface); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid var(--rim); box-shadow: var(--shadow-md); padding: 26px;
}
.cf-top-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cf-top-bar h3 { margin: 0; font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.1rem; font-weight: 700; }

.invite-code-banner {
  border-radius: 16px; padding: 12px 15px; margin-bottom: 14px;
  background: var(--surface-soft); border: 1px dashed var(--rim-strong);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.invite-code-banner[hidden] { display: none; }
.invite-code-banner small { display: block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; color: var(--accent); }
.invite-code-banner strong { font-size: 0.96rem; letter-spacing: 0.08em; }
.invite-note { font-size: 0.74rem; color: var(--ink-muted); }

.friend-cards-stack { display: flex; flex-direction: column; gap: 10px; }
.friend-activity-card {
  width: 100%; border: 1px solid var(--rim); background: var(--surface-strong);
  border-radius: 20px; padding: 12px 14px; display: flex; align-items: center; gap: 13px;
  text-align: left; cursor: pointer; transition: transform 0.16s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.friend-activity-card:hover { transform: translateY(-1px); border-color: var(--rim-strong); }
.friend-activity-card.is-active { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--shadow-sm); }
.friend-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); }
.fac-meta { flex: 1; min-width: 0; }
.fac-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fac-title strong { font-size: 0.92rem; font-weight: 700; }
.fac-pet-pill { padding: 2px 9px; border-radius: 999px; background: var(--surface-soft); color: var(--ink-muted); font-size: 0.69rem; font-weight: 600; }
.fac-meta p { margin: 3px 0 0; font-size: 0.78rem; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fac-arrow { font-size: 0.92rem; color: var(--ink-faint); transition: transform 0.16s ease; }
.friend-activity-card.is-active .fac-arrow { color: var(--ink); transform: translateX(2px); }

.friend-visit-stage { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.fvs-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fvs-owner { display: flex; align-items: center; gap: 11px; }
.fvs-owner img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.fvs-owner strong { display: block; font-size: 0.93rem; font-weight: 700; }
.fvs-owner span { display: block; font-size: 0.77rem; color: var(--ink-muted); }
.fvs-medals { display: flex; gap: 6px; }
.fvs-medals img { width: 32px; height: 32px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.14)); }

.fvs-canvas-box {
  flex: 1; min-height: 205px; border-radius: 22px;
  background: radial-gradient(circle at 50% 60%, var(--orb-1) 0%, var(--surface-soft) 72%);
  display: grid; place-items: center; overflow: hidden;
}
#friend-visit-cv { width: 100%; max-width: 340px; height: 200px; }
.fvs-footer p { margin: 0; font-size: 0.85rem; color: var(--ink-muted); }

/* Competition Race Track Arena */
.ca-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.ca-pill { font-size: 0.69rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent); }
.ca-header h3 { margin: 4px 0 0; font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.32rem; font-weight: 800; }
.ca-header p { margin: 5px 0 0; font-size: 0.85rem; color: var(--ink-muted); max-width: 520px; }

.race-tracks { display: flex; flex-direction: column; gap: 11px; }
.race-lane {
  border-radius: 20px; background: var(--surface-strong); border: 1px solid var(--rim);
  padding: 11px 16px; display: grid; grid-template-columns: 185px minmax(0, 1fr) 76px;
  align-items: center; gap: 14px; transition: border-color 0.2s ease;
}
.race-lane.is-you { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.rl-racer { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rl-rank { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-soft); font-size: 0.72rem; font-weight: 800; display: grid; place-items: center; flex: 0 0 auto; }
.rl-rank.rank-1 { background: #F5C451; color: #3D2700; }
.rl-rank.rank-2 { background: #D2DAE4; color: #24303F; }
.rl-rank.rank-3 { background: #DCA177; color: #401E08; }
.rl-racer img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.rl-racer-txt { min-width: 0; }
.rl-racer-txt strong { display: block; font-size: 0.85rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rl-racer-txt small { display: block; font-size: 0.7rem; color: var(--ink-faint); }
.rl-track-bar { position: relative; height: 40px; border-radius: 999px; background: var(--surface-soft); overflow: visible; display: flex; align-items: center; }
.rl-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, rgba(24, 24, 27, 0.08), rgba(24, 24, 27, 0.16)); transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
html[data-theme="midnight"] .rl-fill { background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.18)); }
.race-lane.is-you .rl-fill { background: linear-gradient(90deg, var(--accent-soft), rgba(140, 90, 43, 0.28)); }
.rl-pet-runner { position: absolute; top: 50%; width: 48px; height: 48px; transform: translate(-50%, -54%); transition: left 0.55s cubic-bezier(0.22, 1, 0.36, 1); pointer-events: none; }
.rl-finish-flag { position: absolute; right: 12px; color: var(--accent); opacity: 0.72; display: grid; place-items: center; }
.rl-pts { text-align: right; font-size: 0.85rem; font-weight: 800; color: var(--ink); }

.ca-footer { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--rim); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ca-trophy-note { display: flex; align-items: center; gap: 12px; }
.ca-trophy-note strong { display: block; font-size: 0.88rem; }
.ca-trophy-note small { display: block; font-size: 0.79rem; color: var(--ink-muted); }

/* ==========================================================================
   ANIMATED ID CARDS — Exact 529:816 Shape, Zero-Dot Rim & Mobile Carousel
   ========================================================================== */
.petid-mobile-tabs { display: none; }
.petid-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 328px)); justify-content: center; gap: 26px; margin-bottom: 58px; }
.petid-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.petid-tier-head { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }

.petid-card {
  width: 100%; max-width: 328px; aspect-ratio: 529 / 816;
  perspective: 1100px; cursor: pointer; user-select: none;
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 35%;
}
.petid-flipper { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1); transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.petid-card.is-tilting .petid-flipper { transition: transform 0.08s linear; }
.petid-card.is-flipped .petid-flipper { transform: rotateY(180deg); }

.petid-face {
  position: absolute; inset: 0; border-radius: 27px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: 0 22px 46px rgba(18, 16, 28, 0.20), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}
.petid-back { transform: rotateY(180deg); }
.petid-foil { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; transform: none; }

.petid-glare { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.40) 0%, transparent 56%); mix-blend-mode: overlay; }
.petid-glare-prism {
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.50) 0%, transparent 48%), linear-gradient(125deg, rgba(130, 210, 255, 0.18), rgba(255, 195, 240, 0.18), rgba(255, 236, 150, 0.18));
  mix-blend-mode: soft-light;
}

.petid-layout { position: relative; z-index: 2; height: 100%; padding: 18px 20px; display: flex; flex-direction: column; color: #242238; text-align: left; }
.pid-header { display: flex; align-items: center; gap: 10px; height: 38px; }
.pid-young-circle { width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.58); border: 1px solid rgba(81, 81, 106, 0.30); display: grid; place-items: center; overflow: hidden; }
.pid-young-circle img { width: 30px; height: 30px; object-fit: contain; }
.pid-brand { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; color: #51516A; }
.pid-stage { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; }
.pid-live-canvas { width: 78%; max-width: 236px; aspect-ratio: 220 / 170; filter: drop-shadow(0 8px 12px rgba(36, 34, 56, 0.16)); }
.pid-identity { margin-bottom: 9px; }
.pid-name-row { display: flex; align-items: baseline; gap: 6px; }
.pid-name-row strong { font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.2rem; font-weight: 800; letter-spacing: -0.025em; color: #242238; }
.pid-sex { font-size: 0.9rem; font-weight: 600; color: #51516A; }
.pid-coat { display: flex; align-items: center; gap: 7px; margin-top: 2px; font-size: 0.77rem; font-weight: 500; color: #51516A; }
.coat-dot { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; background: linear-gradient(90deg, var(--c1) 50%, var(--c2) 50%); border: 0.75px solid rgba(81, 81, 106, 0.35); }
.pid-rule { border: 0; border-top: 1px solid rgba(126, 125, 154, 0.34); margin: 0; }
.pid-details { margin: 0; padding: 7px 0; display: flex; flex-direction: column; gap: 5px; }
.pid-details > div { display: flex; justify-content: space-between; font-size: 0.75rem; }
.pid-details dt { color: #51516A; font-weight: 500; }
.pid-details dd { margin: 0; color: #242238; font-weight: 700; }
.pid-footer { padding-top: 9px; display: flex; justify-content: space-between; color: #51516A; line-height: 1.3; }
.pid-footer small { display: block; font-size: 0.64rem; font-weight: 600; }
.pid-footer span { display: block; font-size: 0.75rem; font-weight: 600; color: #242238; }
.pid-footer .right { text-align: right; }
.petid-card-unique .pid-footer { text-shadow: 0 1px 6px rgba(255, 255, 255, 0.85); }
.flip-hint { margin: 20px 0 60px; text-align: center; font-size: 0.82rem; color: var(--ink-faint); }

/* ==========================================================================
   CURATED INTERACTIVE 3D MEDAL VAULT
   ========================================================================== */
.medal-vault {
  border-radius: 32px; background: radial-gradient(circle at 20% 0%, #20263B 0%, #111522 55%, #0B0E17 100%);
  border: 1px solid rgba(255, 255, 255, 0.10); padding: 38px 36px; box-shadow: var(--shadow-lg); color: #F4F6FC;
}
.mv-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.mv-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.mv-tab { border: 0; background: transparent; color: rgba(235, 240, 255, 0.72); padding: 8px 16px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.18s ease; }
.mv-tab:hover { color: #FFFFFF; }
.mv-tab.is-active { background: #F5F7FC; color: #111522; }
.mv-body { display: grid; grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr); gap: 26px; align-items: center; }
.mv-spotlight { border-radius: 24px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.10); padding: 26px; display: flex; align-items: center; gap: 24px; perspective: 800px; }
.mv-medal-3d { position: relative; width: 150px; height: 150px; flex: 0 0 auto; display: grid; place-items: center; transform-style: preserve-3d; transition: transform 0.18s ease-out; }
.mv-medal-3d img { width: 146px; height: 146px; object-fit: contain; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55)); }
.mv-sheen { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; background: radial-gradient(circle at var(--mx, 35%) var(--my, 30%), rgba(255, 255, 255, 0.34) 0%, transparent 55%); mix-blend-mode: overlay; }
.mv-tier-pill { display: inline-block; padding: 3px 11px; border-radius: 999px; background: rgba(255, 214, 128, 0.16); color: #FFD889; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.mv-spot-copy h4 { margin: 8px 0 0; font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.32rem; font-weight: 800; }
.mv-spot-copy p { margin: 8px 0 0; font-size: 0.85rem; line-height: 1.62; color: rgba(226, 232, 252, 0.76); }
.mv-picker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mv-tile { border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.04); border-radius: 20px; padding: 15px; display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer; color: #F2F5FF; transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease; }
.mv-tile:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.08); }
.mv-tile.is-active { border-color: rgba(255, 255, 255, 0.36); background: rgba(255, 255, 255, 0.10); }
.mv-tile img { width: 60px; height: 60px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.4)); }
.mv-tile strong { display: block; font-size: 0.89rem; font-weight: 700; }
.mv-tile small { display: block; font-size: 0.69rem; letter-spacing: 0.08em; text-transform: uppercase; color: #A6C3F0; margin-top: 2px; }

/* ==========================================================================
   FINALE & SUBMERGED MODERN FOOTER
   ========================================================================== */
.finale-band { padding: 92px 24px 104px; text-align: center; }
.finale-box { max-width: 700px; display: flex; flex-direction: column; align-items: center; }
.finale-icon { border-radius: 20px; box-shadow: var(--shadow-md); margin-bottom: 24px; }
.finale-lead { margin: 18px auto 0; max-width: 520px; font-size: 1rem; color: var(--ink-muted); }

.site-footer { padding: 0 0 48px; }
.footer-inner { border-top: 1px solid var(--rim); padding-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand strong { display: block; font-family: "Plus Jakarta Sans", sans-serif; font-size: 1rem; font-weight: 800; }
.footer-brand p { margin: 1px 0 0; font-size: 0.8rem; color: var(--ink-faint); }
.footer-links { display: flex; flex-wrap: wrap; gap: 26px; font-size: 0.86rem; font-weight: 500; color: var(--ink-muted); }
.footer-links a:hover { color: var(--ink); }
.footer-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.quiet-swatches { display: inline-flex; align-items: center; gap: 7px; }
.quiet-dot { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--rim-strong); background: var(--sw-bg); cursor: pointer; padding: 0; transition: transform 0.16s ease, box-shadow 0.16s ease; }
.quiet-dot:hover { transform: scale(1.16); }
.quiet-dot.is-active { border-color: var(--ink); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--ink); }
.footer-meta { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--ink-faint); }
.footer-meta .sep { opacity: 0.4; }

/* ==========================================================================
   LEGAL & SUPPORT SUBPAGES
   ========================================================================== */
.legal-main { padding: 128px 0 92px; }
.legal-card { max-width: 820px; margin-inline: auto; border-radius: 30px; background: var(--surface-strong); backdrop-filter: blur(22px); border: 1px solid var(--rim); box-shadow: var(--shadow-md); padding: 46px 48px; }
.legal-card h1 { margin: 8px 0 10px; font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(2rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -0.03em; }
.legal-updated { font-size: 0.84rem; color: var(--ink-faint); margin: 0 0 32px; }
.legal-card h2 { margin: 32px 0 10px; font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.2rem; font-weight: 700; }
.legal-card p, .legal-card li { font-size: 0.95rem; line-height: 1.76; color: var(--ink-muted); }
.legal-card ul { padding-left: 20px; margin: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.legal-highlight { margin: 22px 0; padding: 18px 20px; border-radius: 18px; background: var(--surface-soft); border: 1px solid var(--rim); }
.legal-highlight strong { display: block; color: var(--ink); margin-bottom: 4px; }
.support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.support-box { padding: 20px; border-radius: 20px; background: var(--surface-soft); border: 1px solid var(--rim); }
.support-box h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 700; color: var(--ink); }
.support-box p { margin: 0; font-size: 0.88rem; }

/* ==========================================================================
   Responsive (Tablet & 390px Mobile — Zero Horizontal Overflow)
   ========================================================================== */
.worlds-deck > *,
.widgets-layout > *,
.fitness-layout > *,
.circle-friends-showcase > *,
.mv-body > * { min-width: 0; }

@media (max-width: 1024px) {
  .site-nav { display: none; }
  .worlds-deck { grid-template-columns: 1fr; }
  .world-stage { min-height: 440px; }
  .widgets-layout, .fitness-layout, .circle-friends-showcase, .mv-body { grid-template-columns: 1fr; }
  .petid-mobile-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--rim);
    backdrop-filter: blur(16px);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin: 0 0 18px;
  }
  .pmt-btn {
    border: 0;
    background: transparent;
    color: var(--ink-muted);
    padding: 7px 18px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
  }
  .pmt-btn.is-active { background: var(--btn-bg); color: var(--btn-ink); }
  .petid-grid {
    display: flex;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 18px;
    margin: 0 -24px 44px;
    padding: 6px calc(50% - 144px) 18px;
  }
  .petid-grid::-webkit-scrollbar { display: none; }
  .petid-wrap {
    flex: 0 0 288px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
  .petid-tier-head { display: none; }
  .race-lane { grid-template-columns: 1fr; gap: 10px; }
  .rl-pts { text-align: left; }
}

@media (max-width: 640px) {
  .brand-name { display: none; }
  .header-inner { height: 70px; width: calc(100% - 32px); }
  .container { width: calc(100% - 32px); }
  .primary-btn-nav { height: 38px; padding: 0 16px; font-size: 0.85rem; }
  .lang-select-wrap { height: 38px; padding: 0 9px; }
  .lang-select { font-size: 0.82rem; }
  .hero { padding: 102px 16px 20px; }
  .hero-pet-anchor { height: 170px; }
  .band { padding: 60px 0; }
  .world-config { padding: 20px 16px; border-radius: 24px; }
  .lens-strip { grid-template-columns: repeat(3, 1fr); }
  .sport-tile { width: calc(50% - 9px); padding: 16px 10px 14px; }
  .sport-live-cv { width: 96px; height: 96px; }
  .widget-cards-2x2 { grid-template-columns: 1fr; }
  .iphone-frame { border-radius: 38px; padding: 12px 12px 16px; max-width: 100%; }
  .di-pill.is-expanded { width: min(210px, 68%); }
  .glass-seg { max-width: 100%; }
  .petid-grid {
    margin: 0 -16px 38px;
    padding: 6px calc(50% - min(138px, 38vw)) 18px;
  }
  .petid-wrap { flex: 0 0 min(276px, 76vw); }
  .medal-vault { padding: 28px 18px; border-radius: 24px; }
  .mv-spotlight { flex-direction: column; text-align: center; padding: 22px 16px; }
  .mv-picker-grid { grid-template-columns: 1fr; }
  .legal-card { padding: 28px 20px; border-radius: 22px; }
  .support-grid { grid-template-columns: 1fr; }
}
