/* ===== Heartbeat pastel theme =====
 * Game-UI look: lavender→pink glow world, white glossy cards with thin lavender
 * borders, pink gradient pills and ribbon labels. Loaded after style.css; it
 * intentionally never styles .kv-frame / .kv / .kv-anim / .kv-part. */
:root {
  --t-pk1: #ff8fc7; --t-pk2: #f0509a; --t-pk3: #d63384; --t-mg: #c2399a;
  --t-lav: #f3e8ff; --t-lav2: #e9d5ff; --t-lav3: #d8b4fe; --t-pink: #fce7f3; --t-pink2: #fbcfe8;
  --t-ink: #5b3a7e; --t-muted: #8a6fa3;
  --t-border: #e4cdfb;
  --t-shadow: 0 10px 30px rgba(186, 120, 230, .22), 0 2px 8px rgba(214, 120, 200, .14);
  --t-glow: 0 6px 18px rgba(240, 80, 154, .38), 0 0 0 4px rgba(255, 143, 199, .18);
  --t-round: "Arial Rounded MT Bold", "Hiragino Maru Gothic ProN", "Yu Gothic UI", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  --t-pill: linear-gradient(180deg, #ffa6d2 0%, #ff8fc7 35%, #f0509a 100%);
  --t-gloss: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,0));
  --t-card: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,247,252,.9));
  /* white text with magenta outline */
  --t-outline: 2px 0 0 var(--t-mg), -2px 0 0 var(--t-mg), 0 2px 0 var(--t-mg), 0 -2px 0 var(--t-mg),
    1.5px 1.5px 0 var(--t-mg), -1.5px 1.5px 0 var(--t-mg), 1.5px -1.5px 0 var(--t-mg), -1.5px -1.5px 0 var(--t-mg),
    0 5px 12px rgba(194, 57, 154, .35);
  /* pink text with white outline */
  --t-outline-w: 3px 0 0 #fff, -3px 0 0 #fff, 0 3px 0 #fff, 0 -3px 0 #fff,
    2px 2px 0 #fff, -2px 2px 0 #fff, 2px -2px 0 #fff, -2px -2px 0 #fff,
    0 6px 16px rgba(240, 80, 154, .3);
  --t-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c1 7 5 11 12 12-7 1-11 5-12 12-1-7-5-11-12-12 7-1 11-5 12-12Z' fill='%23fff'/%3E%3C/svg%3E");
  --t-star-pk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c1 7 5 11 12 12-7 1-11 5-12 12-1-7-5-11-12-12 7-1 11-5 12-12Z' fill='%23ff8fc7'/%3E%3C/svg%3E");
  --t-heart-pk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 21S1 14 1 7a5.5 5.5 0 0 1 11-1 5.5 5.5 0 0 1 11 1c0 7-11 14-11 14Z' fill='%23ff8fc7'/%3E%3C/svg%3E");
  /* sparkle field: stars, hearts, dots (tile) */
  --t-sparkles: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg fill='%23fff'%3E%3Cpath d='M60 30c1 9 6 14 15 15-9 1-14 6-15 15-1-9-6-14-15-15 9-1 14-6 15-15Z' opacity='.9'/%3E%3Cpath d='M330 90c.7 6 4 9.3 10 10-6 .7-9.3 4-10 10-.7-6-4-9.3-10-10 6-.7 9.3-4 10-10Z' opacity='.85'/%3E%3Cpath d='M210 300c1 8 5 12 13 13-8 1-12 5-13 13-1-8-5-12-13-13 8-1 12-5 13-13Z' opacity='.8'/%3E%3Ccircle cx='150' cy='120' r='2.4' opacity='.9'/%3E%3Ccircle cx='380' cy='250' r='3' opacity='.8'/%3E%3Ccircle cx='40' cy='360' r='2' opacity='.9'/%3E%3Ccircle cx='280' cy='190' r='1.6'/%3E%3C/g%3E%3Cg fill='%23ffb3d9' opacity='.55'%3E%3Cpath d='M110 250s-12-7.5-12-15a6 6 0 0 1 12-1.2 6 6 0 0 1 12 1.2c0 7.5-12 15-12 15Z'/%3E%3Cpath d='M360 380s-8-5-8-10a4 4 0 0 1 8-.8 4 4 0 0 1 8 .8c0 5-8 10-8 10Z'/%3E%3C/g%3E%3Cpath d='M250 40c.6 5 3.4 7.8 8.4 8.4-5 .6-7.8 3.4-8.4 8.4-.6-5-3.4-7.8-8.4-8.4 5-.6 7.8-3.4 8.4-8.4Z' fill='%23e9b8ff' opacity='.7'/%3E%3C/svg%3E");
  --t-bokeh: radial-gradient(circle at 12% 18%, rgba(255,255,255,.7) 0 3%, transparent 12%),
    radial-gradient(circle at 85% 12%, rgba(251,207,232,.8) 0 4%, transparent 16%),
    radial-gradient(circle at 70% 78%, rgba(233,213,255,.9) 0 5%, transparent 20%),
    radial-gradient(circle at 20% 85%, rgba(252,231,243,.9) 0 4%, transparent 18%);
}

body { color: var(--t-ink); background: linear-gradient(160deg, var(--t-lav) 0%, var(--t-lav2) 35%, var(--t-pink2) 70%, var(--t-pink) 100%) fixed; }
::selection { color: #fff; background: var(--t-pk1); }
:focus-visible { outline-color: var(--t-pk2); }

/* Floating sparkle layer behind everything */
.bg-hearts { display: block; position: fixed; z-index: 0; inset: 0; pointer-events: none; background: var(--t-sparkles) 0 0 / 420px 420px repeat; opacity: .8; }
.site > *:not(.bg-hearts):not(.site-header) { position: relative; z-index: 1; }

/* ---------- Header: frosted white pill, pink pill nav ---------- */
.site-header { border: 1.5px solid rgba(255,255,255,.95); border-radius: 999px; background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 0 0 1px var(--t-border), var(--t-shadow); }
.brand-mark { color: var(--t-pk2); filter: drop-shadow(0 2px 4px rgba(240,80,154,.35)); }
.site-brand > span { color: var(--t-pk2); font-family: var(--t-round); font-style: normal; letter-spacing: .01em; }
.site-brand small { color: var(--t-muted); letter-spacing: .3em; }
.site-nav { gap: 6px; padding: 4px; border: 1px solid var(--t-border); border-radius: 999px; background: rgba(250,243,255,.85); }
.site-nav a { padding: 9px 20px; border-radius: 999px; color: var(--t-ink); font-family: var(--t-round); letter-spacing: .08em; }
.site-nav a:hover { color: var(--t-pk2); background: #fff; }
.site-nav a.is-active { position: relative; overflow: hidden; color: #fff; background: var(--t-pill);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7), 0 4px 10px rgba(240,80,154,.35); text-shadow: 0 1px 2px rgba(194,57,154,.5); }
.site-nav a.is-active::before { content: ""; position: absolute; inset: 2px 8px 50% 8px; border-radius: 999px; background: var(--t-gloss); pointer-events: none; }
.header-social { border: 2px solid var(--t-pk1); border-radius: 999px; color: var(--t-pk2); background: #fff;
  box-shadow: 0 0 0 3px rgba(255,143,199,.18), 0 4px 10px rgba(240,80,154,.2); }
.header-social:hover { color: #fff; background: var(--t-pill); }

/* ---------- Hero: pastel glow world behind the key visual ---------- */
.hero { background-color: transparent;
  background-image: var(--t-bokeh), linear-gradient(180deg, #f6ecff 0%, #f1dcff 45%, #fde2f1 100%);
  background-size: auto; }
.hero::before { top: auto; bottom: 40px; left: -120px; width: 380px; height: 380px; border: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,184,222,.75), rgba(255,184,222,0) 70%); box-shadow: none; }
.hero::after { right: -100px; bottom: 10px; width: 420px; height: 420px; border: 0;
  background: radial-gradient(circle, rgba(216,180,254,.8), rgba(216,180,254,0) 70%); }

/* Title card: white glossy panel instead of the yellow ticket */
.title-block { overflow: visible; border: 1.5px solid #fff; border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.97) 0%, rgba(255,245,251,.95) 60%, rgba(253,231,245,.95) 100%);
  box-shadow: 0 0 0 1.5px var(--t-border), 0 16px 40px rgba(186, 110, 220, .28), inset 0 -10px 24px rgba(255,190,225,.35); }
.title-block::before { top: -22px; right: 34px; width: 46px; height: 46px; clip-path: none; transform: none;
  background: var(--t-star-pk) center / contain no-repeat; filter: drop-shadow(0 0 2px #fff) drop-shadow(0 3px 6px rgba(240,80,154,.45)); }
.title-block::after { content: ""; position: absolute; top: -8px; right: 84px; width: 20px; height: 20px; background: var(--t-star-pk) center / contain no-repeat; opacity: .8; filter: drop-shadow(0 0 2px #fff); pointer-events: none; }
.title-en { color: #fff; font-family: var(--t-round); font-style: normal; letter-spacing: .01em; text-shadow: var(--t-outline);
  background: none; }
.title-zh { display: inline-block; position: relative; margin-top: 14px; padding: 6px 30px 6px calc(30px + .42em); color: #fff;
  background: var(--t-pill); border-radius: 6px; text-shadow: 0 1px 2px rgba(194,57,154,.6);
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.55); }
.hero-info { border-left: 1.5px dashed var(--t-lav3); }

/* Wish button: pink gradient pill with gloss */
.wish-btn { overflow: hidden; border: 2px solid rgba(255,255,255,.9); background: var(--t-pill); color: #fff; font-family: var(--t-round);
  text-shadow: 0 1px 3px rgba(194,57,154,.55); box-shadow: 0 0 0 1.5px var(--t-pk1), var(--t-glow); animation: theme-wish-glow 2.4s ease-in-out infinite; }
.wish-btn::before { content: ""; position: absolute; inset: 3px 18px 52% 18px; border-radius: 999px; background: var(--t-gloss); pointer-events: none; }
.wish-btn > * { position: relative; }
.wish-btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 1.5px var(--t-pk1), 0 10px 24px rgba(240,80,154,.45), 0 0 0 6px rgba(255,143,199,.2); filter: brightness(1.04); }
.wish-btn:active { transform: translateY(1px); box-shadow: 0 0 0 1.5px var(--t-pk1), 0 3px 8px rgba(240,80,154,.35); }
.wish-btn:focus-visible { outline: 3px solid var(--t-pk2); }
.wish-btn.is-done { background: linear-gradient(180deg, #e3c8ff, #c08cf5 60%, #a874e8); box-shadow: 0 0 0 1.5px var(--t-lav3), 0 6px 16px rgba(168,116,232,.4); animation: none; }
.wish-count { padding: 6px 18px; border: 1.5px solid #fff; border-radius: 999px; color: var(--t-ink); background: linear-gradient(180deg, #ffe3f1, #ffd0e8);
  box-shadow: 0 0 0 1px var(--t-pink2), 0 3px 8px rgba(240,80,154,.15); font-family: var(--t-round); }
.wish-count b { color: var(--t-pk2); font-family: var(--t-round); text-shadow: 0 0 0 transparent; }
@keyframes theme-wish-glow { 0%, 100% { box-shadow: 0 0 0 1.5px var(--t-pk1), var(--t-glow); } 50% { box-shadow: 0 0 0 1.5px var(--t-pk1), 0 6px 22px rgba(240,80,154,.5), 0 0 0 12px rgba(255,143,199,0); } }

/* Rhythm strip: soft pink ribbon with white beat line */
.rhythm-strip { height: 34px; border: 0; background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 34' width='200' height='34'%3E%3Cpath d='M0 17h52l6-7 6 14 8-20 9 26 7-13h30' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpath d='M160 24s-7-4.4-7-8.8a3.5 3.5 0 0 1 7-.7 3.5 3.5 0 0 1 7 .7c0 4.4-7 8.8-7 8.8Z' fill='%23fff'/%3E%3C/svg%3E"),
    linear-gradient(90deg, #f9a8d4, #f0abfc 50%, #c4b5fd);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.6), 0 4px 14px rgba(240,80,154,.2); }

/* ---------- Section titles: script title with heart + ribbon label ---------- */
.sec-head::after { height: 2px; opacity: 1; background: repeating-linear-gradient(90deg, var(--t-lav3) 0 8px, transparent 8px 16px); }
.sec-en { position: relative; color: var(--t-pk1); font-family: var(--t-round); font-style: italic; font-weight: 900; letter-spacing: .02em; text-shadow: var(--t-outline-w); }
.sec-en::after { content: "♡"; display: inline-block; margin-left: .12em; font-size: .5em; font-style: normal; vertical-align: .55em; color: var(--t-pk2); text-shadow: var(--t-outline-w); }
.sec-en::before { content: ""; position: absolute; left: -.28em; top: -.12em; width: .38em; height: .38em; background: var(--t-star) center / contain no-repeat; filter: drop-shadow(0 0 3px rgba(240,80,154,.6)); }
.movie .sec-en, .chara .sec-en { color: var(--t-pk1); }
.sec-zh, .movie .sec-zh, .chara .sec-zh { position: relative; padding: 9px 34px; border: 0; border-radius: 4px; color: #fff; background: linear-gradient(180deg, #ff9ccd, #f0509a);
  font-family: var(--t-round); text-shadow: 0 1px 2px rgba(194,57,154,.6); transform: none;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 50%, 100% 100%, 0 100%, 14px 50%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.55), inset 0 -3px 0 rgba(194,57,154,.25); }

/* ---------- Movie ---------- */
.movie { background: transparent; }
.movie::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 45% at 50% 55%, rgba(255,255,255,.75), rgba(255,255,255,0) 70%), var(--t-bokeh); }
.movie-frame { border: 6px solid #fff; border-radius: 22px; background: #2b1b40;
  box-shadow: 0 0 0 1.5px var(--t-border), 0 18px 40px rgba(186,110,220,.32), 0 0 0 8px rgba(255,255,255,.35); }
.movie-frame::after { box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); border-radius: 16px; }
.movie-carousel:focus-visible .movie-slide.is-active .movie-frame { outline-color: var(--t-pk2); }
.movie-play { border: 2px solid #fff; background: var(--t-pill); box-shadow: var(--t-glow); }
.movie-play::before { border-left-color: #fff; }
.movie-arrow { border: 2.5px solid var(--t-pk1); background: #fff; box-shadow: 0 0 0 4px rgba(255,143,199,.2), 0 6px 14px rgba(240,80,154,.25); }
.movie-arrow::before { border-color: var(--t-pk2); }
.movie-arrow:hover { background: var(--t-pink); box-shadow: 0 0 0 6px rgba(255,143,199,.25), 0 6px 14px rgba(240,80,154,.3); }
.movie-caption { color: var(--t-ink); font-family: var(--t-round); letter-spacing: .06em; }
.movie-caption b { padding: 3px 14px; border: 1.5px solid #fff; border-radius: 999px; color: #fff; background: var(--t-pill); font-family: var(--t-round);
  box-shadow: 0 0 0 1px var(--t-pk1), 0 3px 8px rgba(240,80,154,.3); }
.movie-dot::before { border: 1.5px solid var(--t-lav3); background: #fff; box-shadow: 0 1px 3px rgba(186,110,220,.25); }
.movie-dot.is-active::before { border-color: #fff; background: var(--t-pill); box-shadow: 0 0 0 1px var(--t-pk1), 0 2px 6px rgba(240,80,154,.4); }
.movie-dot:hover::before { background: var(--t-pink2); }

/* ---------- Characters ---------- */
.chara { border-top: 0; background-color: transparent;
  background-image: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.35) 20%, rgba(255,255,255,0)), var(--t-bokeh); }
.chara .sec-head { color: var(--t-ink); }









.chara-note { color: var(--t-muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1.5px solid #fff; color: var(--t-ink); background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(253,226,241,.85));
  box-shadow: 0 -6px 24px rgba(186,110,220,.15); }
.footer > p:first-child { color: var(--t-pk2); font-family: var(--t-round); }
.footer-note { color: var(--t-muted); }
.footer-sns a { padding: 0 18px; border: 1.5px solid var(--t-border); border-radius: 999px; background: #fff; color: var(--t-pk2); box-shadow: 0 3px 8px rgba(186,110,220,.18); }
.footer-sns a:hover { color: #fff; background: var(--t-pill); border-color: #fff; }

/* ---------- Age gate ---------- */
.age-gate { background-color: var(--t-lav2);
  background-image: var(--t-sparkles), var(--t-bokeh), linear-gradient(160deg, #f3e8ff 0%, #e9d5ff 40%, #fbcfe8 80%, #fce7f3 100%);
  background-size: 420px 420px, auto, auto; }
.age-gate::before, .age-gate::after { border: 0; background: radial-gradient(circle, rgba(255,255,255,.75), rgba(255,255,255,0) 70%); }
.age-gate::after { background: radial-gradient(circle, rgba(255,170,214,.6), rgba(255,170,214,0) 70%); }
.age-card { border: 1.5px solid #fff; border-radius: 28px; background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,240,249,.94));
  box-shadow: 0 0 0 1.5px var(--t-border), 0 24px 60px rgba(186,110,220,.35); }
.age-card::before, .age-card::after { content: ""; position: absolute; pointer-events: none; background: var(--t-star-pk) center / contain no-repeat; filter: drop-shadow(0 0 2px #fff) drop-shadow(0 3px 6px rgba(240,80,154,.4)); }
.age-card::before { top: -18px; right: 30px; width: 40px; height: 40px; }
.age-card::after { bottom: 22px; left: -14px; width: 26px; height: 26px; }
.age-logo { color: #fff; font-family: var(--t-round); font-style: normal; letter-spacing: .01em; text-shadow: var(--t-outline); }
.age-logo span { color: var(--t-muted); text-shadow: none; }
.age-badge { border: 3px solid #fff; border-radius: 50%; color: #fff; background: var(--t-pill); font-family: var(--t-round); transform: none;
  text-shadow: 0 1px 3px rgba(194,57,154,.6); box-shadow: 0 0 0 2px var(--t-pk1), var(--t-glow), inset 0 3px 0 rgba(255,255,255,.5); }
.age-title { color: var(--t-ink); font-family: var(--t-round); }
.age-desc { color: var(--t-muted); }
.btn { position: relative; overflow: hidden; border-radius: 999px; font-family: var(--t-round); letter-spacing: .06em; }
.btn-yes { border: 2px solid rgba(255,255,255,.9); color: #fff; background: var(--t-pill); text-shadow: 0 1px 3px rgba(194,57,154,.55); box-shadow: 0 0 0 1.5px var(--t-pk1), var(--t-glow); }
.btn-yes::before { content: ""; position: absolute; inset: 3px 20px 52% 20px; border-radius: 999px; background: var(--t-gloss); pointer-events: none; }
.btn-yes:hover { background: var(--t-pill); filter: brightness(1.05); }
.btn-no { border: 1.5px solid var(--t-border); color: var(--t-pk2); background: #fff; box-shadow: 0 3px 8px rgba(186,110,220,.15); }
.btn-no:hover { color: var(--t-pk3); background: var(--t-pink); }
.age-denied { color: var(--t-pk3); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-info { border-left: 0; border-top: 1.5px dashed var(--t-lav3); }
  .title-zh { padding-left: calc(26px + .42em); padding-right: 26px; }
}
@media (max-width: 600px) {
  .site-header { border-radius: 24px; }
  .site-nav { padding: 3px; }
  .site-nav a { padding: 8px 6px; border-radius: 999px; }
  .header-social { border-radius: 50%; }
  .title-block { border-radius: 22px; box-shadow: 0 0 0 1.5px var(--t-border), 0 12px 28px rgba(186,110,220,.28), inset 0 -8px 20px rgba(255,190,225,.35); }
  .title-block::before { width: 34px; height: 34px; top: -16px; right: 18px; }
  .title-block::after { right: 58px; width: 16px; height: 16px; }
  .title-zh { padding: 5px 22px 5px calc(22px + .35em); }
  .sec-zh, .movie .sec-zh, .chara .sec-zh { padding: 7px 24px; }
  .movie-frame { border-width: 4px; border-radius: 16px; box-shadow: 0 0 0 1.5px var(--t-border), 0 10px 24px rgba(186,110,220,.3); }
  .movie-arrow { box-shadow: 0 0 0 3px rgba(255,143,199,.2), 0 4px 10px rgba(240,80,154,.25); }

  .bg-hearts { background-size: 300px 300px; }
}
@media (prefers-reduced-motion: reduce) { .wish-btn { animation: none; } }

/* ---------- Refinements ---------- */
.chara { background-size: auto; background-color: rgba(243,232,255,.35); }

.site-brand { border-radius: 14px; }
.site-brand:focus-visible, .btn:focus-visible { outline-offset: 3px; }
.age-logo { font-size: 34px; }
.movie::before { background: radial-gradient(ellipse 60% 45% at 50% 55%, rgba(255,255,255,.5), rgba(255,255,255,0) 70%), var(--t-bokeh); }

/* Video caption (01 / 05 + title) removed on request */
.movie-caption { display: none !important; }


/* ===== Extra 期望預約 buttons: header + below character section ===== */
.header-actions { display: flex; align-items: center; gap: 10px; }
.wish-btn--nav { white-space: nowrap; flex-shrink: 0; min-width: 0; width: auto; min-height: 44px; padding: 8px 20px; gap: 6px; font-size: 15px; letter-spacing: .06em; }
.wish-btn--nav .wish-icon { font-size: 16px; }
.wish-btn--nav::before { inset: 2px 10px 52% 10px; }
.chara-wish { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 48px 24px 0; }
@media (max-width: 600px) {
  .header-actions { grid-column: 2; grid-row: 1; gap: 6px; }
  .wish-btn--nav { min-height: 34px; padding: 6px 12px; font-size: 13px; letter-spacing: .02em; }
  .site-header .site-brand small { display: none; }
  .wish-btn--nav .wish-icon { font-size: 13px; }
  .chara-wish { margin-top: 32px; }
  .chara-wish .wish-btn { width: min(100%, 320px); }
}


/* ===== Language switch (js/i18n.js) ===== */
.lang-switch { position: relative; display: inline-flex; align-items: center; flex-shrink: 0; gap: 6px; min-height: 44px; padding: 0 30px 0 12px;
  border: 2px solid var(--t-pk1); border-radius: 999px; color: var(--t-pk2); background: #fff; cursor: pointer;
  box-shadow: 0 0 0 3px rgba(255,143,199,.18), 0 4px 10px rgba(240,80,154,.2); transition: background .2s, color .2s; }
.lang-switch::after { content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; margin-top: -5px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); pointer-events: none; }
.lang-switch:hover { background: #fff3f9; }
.lang-switch:focus-within { outline: 3px solid #a52f78; outline-offset: 3px; }
.lang-globe { flex-shrink: 0; }
.lang-select { -webkit-appearance: none; appearance: none; min-width: 0; margin: 0; padding: 8px 0; border: 0; outline: 0; background: transparent;
  color: inherit; font: inherit; font-family: var(--t-round, inherit); font-size: 14px; font-weight: 700; letter-spacing: .04em; cursor: pointer; }
.lang-select option { color: #5a3d6e; background: #fff; }
.age-card { position: relative; }
.age-lang { display: flex; justify-content: flex-end; margin: -6px -6px 6px; }
.lang-switch--gate { min-height: 36px; padding-left: 10px; }
.lang-switch--gate .lang-select { padding: 5px 0; font-size: 13px; }
@media (max-width: 900px) {
  .header-social { flex-shrink: 0; }
}
@media (max-width: 600px) {
  .lang-switch:not(.lang-switch--gate) { min-height: 34px; gap: 0; padding: 0 17px 0 8px; box-shadow: 0 0 0 2px rgba(255,143,199,.18); }
  .lang-switch:not(.lang-switch--gate)::after { right: 7px; width: 5px; height: 5px; margin-top: -4px; }
  .lang-switch:not(.lang-switch--gate) .lang-globe { display: none; }
  .lang-switch:not(.lang-switch--gate) .lang-select { padding: 5px 0; font-size: 12px; letter-spacing: 0; }
  .header-actions { gap: 4px; }
  .site-header { column-gap: 8px; }
  .site-header .site-brand { gap: 5px; }
  .site-header .brand-mark { width: 24px; height: 24px; }
  .site-header .site-brand > span { font-size: 18px; }
  .wish-btn--nav { padding: 6px 10px; gap: 4px; }
}
@media (max-width: 370px) {
  .site-header .site-brand > span { font-size: 16px; }
  .wish-btn--nav { padding: 6px 8px; font-size: 12px; }
  .wish-btn--nav .wish-icon { display: none; }
}
/* Center nav tabs in the header row (desktop) */
.header-social { white-space: nowrap; }
@media (min-width: 1140px) {
  .site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .site-header .site-brand { justify-self: start; }
  .site-header .site-nav { justify-self: center; }
  .site-header .header-actions { justify-self: end; }
  .site-header .header-social { width: 44px; height: 44px; min-width: 44px; padding: 0; justify-content: center; gap: 0; }
  .site-header .header-social span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
