/* ============================================================
   番茄岛 · 基础样式 & 专注页
   ============================================================ */
:root {
  --font-sans: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Palatino Linotype", "Book Antiqua", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-digit: "Bahnschrift", "DIN Alternate", "SFMono-Regular", "Cascadia Mono", Consolas, monospace;

  --bg: #f6efe3;
  --bg-deep: #efe0ca;
  --bg-soft: #fbf6ec;
  --surface: #fffaf2;
  --surface-strong: #fffdf8;
  --surface-2: #f6ecd9;
  --surface-3: #efe1c9;
  --text: #2f3128;
  --text-soft: #595a4c;
  --muted: #8b8272;
  --line: rgba(71, 60, 42, 0.12);
  --line-strong: rgba(71, 60, 42, 0.2);
  --primary: #e9523d;
  --primary-light: #ff8e78;
  --primary-deep: #b73426;
  --primary-soft: #f9ddd7;
  --primary-contrast: #fff9f2;
  --leaf: #3f6b50;
  --leaf-soft: #dfe9d9;
  --accent: #e7a83f;
  --accent-soft: #f8eac9;
  --danger: #b5483e;
  --ring-track: rgba(80, 62, 40, 0.13);
  --shadow-card: 0 24px 70px rgba(89, 64, 35, 0.13);
  --shadow-soft: 0 10px 28px rgba(89, 64, 35, 0.08);
  --shadow-float: 0 18px 48px rgba(89, 64, 35, 0.18);
  --glass: rgba(255, 250, 242, 0.72);
  --nav-bg: rgba(250, 244, 233, 0.82);
  --chip-bg: rgba(255, 253, 248, 0.68);
  --danger-soft: #f6deda;
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --blob-one: rgba(233, 82, 61, 0.09);
  --blob-two: rgba(231, 168, 63, 0.12);
  --blob-three: rgba(63, 107, 80, 0.08);
  --skin-aura-a: #e9523d;
  --skin-aura-b: #e7a83f;
  --skin-aura-c: #3f6b50;
  --grain-opacity: 0.035;
  color-scheme: light;
}

html[data-skin="sky"] {
  --bg: #e9f3fb;
  --bg-deep: #d4e7f4;
  --bg-soft: #f4faff;
  --surface: #fbfdff;
  --surface-strong: #ffffff;
  --surface-2: #eef7fd;
  --surface-3: #dbecf8;
  --text: #263640;
  --text-soft: #4d606b;
  --muted: #7e909b;
  --line: rgba(52, 92, 114, 0.12);
  --line-strong: rgba(52, 92, 114, 0.2);
  --primary: #e45a45;
  --primary-light: #ff917d;
  --primary-deep: #b53b2b;
  --primary-soft: #fbe1db;
  --leaf: #3d7582;
  --leaf-soft: #dceef1;
  --accent: #eab85e;
  --accent-soft: #faf0d9;
  --ring-track: rgba(52, 92, 114, 0.14);
  --glass: rgba(251, 253, 255, 0.7);
  --nav-bg: rgba(238, 247, 253, 0.84);
  --chip-bg: rgba(255, 255, 255, 0.72);
  --blob-one: rgba(105, 170, 206, 0.16);
  --blob-two: rgba(234, 184, 94, 0.14);
  --blob-three: rgba(61, 117, 130, 0.09);
  --shadow-card: 0 24px 70px rgba(51, 92, 122, 0.13);
  --shadow-soft: 0 10px 28px rgba(51, 92, 122, 0.08);
}

html[data-skin="peach"] {
  --bg: #fff1ea;
  --bg-deep: #ffdfd9;
  --bg-soft: #fff9f5;
  --surface: #fffaf7;
  --surface-strong: #fffefc;
  --surface-2: #ffede7;
  --surface-3: #ffdcd5;
  --text: #3b2b32;
  --text-soft: #6f555e;
  --muted: #a28790;
  --line: rgba(94, 60, 71, 0.12);
  --line-strong: rgba(94, 60, 71, 0.2);
  --primary: #e96f7e;
  --primary-light: #ff9daa;
  --primary-deep: #bd4b5c;
  --primary-soft: #fde0e4;
  --leaf: #7a6a9c;
  --leaf-soft: #e8e2f0;
  --accent: #f2ac5b;
  --accent-soft: #fcedd6;
  --ring-track: rgba(94, 60, 71, 0.14);
  --glass: rgba(255, 250, 247, 0.72);
  --nav-bg: rgba(255, 241, 234, 0.84);
  --chip-bg: rgba(255, 255, 255, 0.68);
  --blob-one: rgba(233, 111, 126, 0.1);
  --blob-two: rgba(242, 172, 91, 0.14);
  --blob-three: rgba(122, 106, 156, 0.08);
  --shadow-card: 0 24px 70px rgba(128, 76, 88, 0.12);
}

html[data-skin="matcha"] {
  --bg: #f0f2e4;
  --bg-deep: #dfe6cd;
  --bg-soft: #f9faef;
  --surface: #fbfcf3;
  --surface-strong: #fffff9;
  --surface-2: #f0f3e0;
  --surface-3: #e2e8cf;
  --text: #30372c;
  --text-soft: #58604e;
  --muted: #858b76;
  --line: rgba(65, 80, 56, 0.13);
  --line-strong: rgba(65, 80, 56, 0.21);
  --primary: #c75b43;
  --primary-light: #f18d74;
  --primary-deep: #9e3e2b;
  --primary-soft: #f5ddd5;
  --leaf: #52734d;
  --leaf-soft: #dfe9d7;
  --accent: #d8a24c;
  --accent-soft: #f3e7cb;
  --ring-track: rgba(65, 80, 56, 0.14);
  --glass: rgba(251, 252, 243, 0.7);
  --nav-bg: rgba(240, 242, 228, 0.84);
  --chip-bg: rgba(255, 255, 249, 0.68);
  --blob-one: rgba(82, 115, 77, 0.12);
  --blob-two: rgba(216, 162, 76, 0.13);
  --blob-three: rgba(199, 91, 67, 0.06);
}

html[data-skin="paper"] {
  --bg: #f1e9da;
  --bg-deep: #e5d5bb;
  --bg-soft: #f9f3e7;
  --surface: #fcf8ee;
  --surface-strong: #fffdf7;
  --surface-2: #f3e9d7;
  --surface-3: #e8d9c0;
  --text: #343129;
  --text-soft: #5f594c;
  --muted: #8d8371;
  --line: rgba(76, 65, 44, 0.15);
  --line-strong: rgba(76, 65, 44, 0.24);
  --primary: #b94a3c;
  --primary-light: #dd7c6d;
  --primary-deep: #8e3025;
  --primary-soft: #f1d9d2;
  --leaf: #5e6552;
  --leaf-soft: #e4e5d6;
  --accent: #bd8f4e;
  --accent-soft: #f1e3c8;
  --ring-track: rgba(76, 65, 44, 0.16);
  --glass: rgba(252, 248, 238, 0.72);
  --nav-bg: rgba(241, 233, 218, 0.86);
  --chip-bg: rgba(255, 253, 247, 0.7);
  --blob-one: rgba(185, 74, 60, 0.08);
  --blob-two: rgba(189, 143, 78, 0.14);
  --blob-three: rgba(94, 101, 82, 0.08);
  --shadow-card: 0 24px 70px rgba(94, 73, 41, 0.14);
}

html[data-skin="ocean"] {
  --bg: #dfecef;
  --bg-deep: #c2dbe0;
  --bg-soft: #f0f8f9;
  --surface: #f8fbfb;
  --surface-strong: #ffffff;
  --surface-2: #e9f3f4;
  --surface-3: #d4e8ea;
  --text: #233538;
  --text-soft: #4b6266;
  --muted: #7a9094;
  --line: rgba(36, 80, 86, 0.13);
  --line-strong: rgba(36, 80, 86, 0.22);
  --primary: #d65745;
  --primary-light: #f28d78;
  --primary-deep: #a83b2d;
  --primary-soft: #f5ded8;
  --leaf: #246a73;
  --leaf-soft: #d7e9e8;
  --accent: #e3a64b;
  --accent-soft: #f4e7cf;
  --ring-track: rgba(36, 80, 86, 0.15);
  --glass: rgba(248, 251, 251, 0.72);
  --nav-bg: rgba(223, 236, 239, 0.86);
  --chip-bg: rgba(255, 255, 255, 0.68);
  --blob-one: rgba(36, 106, 115, 0.14);
  --blob-two: rgba(227, 166, 75, 0.12);
  --blob-three: rgba(214, 87, 69, 0.07);
}

html[data-skin="midnight"] {
  --bg: #14121f;
  --bg-deep: #0d0b15;
  --bg-soft: #1b1729;
  --surface: #1e1a2e;
  --surface-strong: #26213a;
  --surface-2: #29233d;
  --surface-3: #342c4c;
  --text: #f5ecdf;
  --text-soft: #d0c5d9;
  --muted: #a196ae;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --primary: #ff6b57;
  --primary-light: #ff9c8c;
  --primary-deep: #d84d3a;
  --primary-soft: #3c2631;
  --primary-contrast: #201722;
  --leaf: #73d2a0;
  --leaf-soft: #1e3a2e;
  --accent: #ffd166;
  --accent-soft: #3b311c;
  --danger: #ff8a7d;
  --ring-track: rgba(255, 255, 255, 0.12);
  --shadow-card: 0 26px 80px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.28);
  --shadow-float: 0 20px 50px rgba(0, 0, 0, 0.5);
  --glass: rgba(30, 26, 46, 0.7);
  --nav-bg: rgba(20, 18, 31, 0.84);
  --chip-bg: rgba(255, 255, 255, 0.06);
  --danger-soft: #44262a;
  --blob-one: rgba(255, 107, 87, 0.09);
  --blob-two: rgba(255, 209, 102, 0.07);
  --blob-three: rgba(115, 210, 160, 0.06);
  --grain-opacity: 0.025;
  color-scheme: dark;
}

html[data-skin="rose"] {
  --bg: #f8edf0;
  --bg-deep: #efdae1;
  --bg-soft: #fff8f9;
  --surface: #fff9fa;
  --surface-strong: #fffdfd;
  --surface-2: #f8e9ed;
  --surface-3: #eed7de;
  --text: #3a2c31;
  --text-soft: #6e575f;
  --muted: #9c828b;
  --line: rgba(93, 60, 72, 0.12);
  --line-strong: rgba(93, 60, 72, 0.2);
  --primary: #c96987;
  --primary-light: #e692a9;
  --primary-deep: #9d4a66;
  --primary-soft: #f6dde5;
  --leaf: #6d7d6e;
  --leaf-soft: #e5e9e1;
  --accent: #d6a96b;
  --accent-soft: #f6ecd9;
  --ring-track: rgba(93, 60, 72, 0.14);
  --glass: rgba(255, 249, 250, 0.72);
  --nav-bg: rgba(248, 237, 240, 0.84);
  --chip-bg: rgba(255, 255, 255, 0.68);
  --blob-one: rgba(201, 105, 135, 0.1);
  --blob-two: rgba(214, 169, 107, 0.13);
  --blob-three: rgba(109, 125, 110, 0.08);
  --shadow-card: 0 24px 70px rgba(112, 72, 84, 0.12);
}

html[data-skin="lemon"] {
  --bg: #f6f8e7;
  --bg-deep: #e6edca;
  --bg-soft: #fcfdf3;
  --surface: #fdfff5;
  --surface-strong: #fffffb;
  --surface-2: #f1f6dc;
  --surface-3: #e4ecc8;
  --text: #30382c;
  --text-soft: #5d6650;
  --muted: #858c6f;
  --line: rgba(72, 82, 55, 0.13);
  --line-strong: rgba(72, 82, 55, 0.21);
  --primary: #e1723f;
  --primary-light: #f29e6d;
  --primary-deep: #b45222;
  --primary-soft: #f9e2d4;
  --leaf: #3d7b76;
  --leaf-soft: #dcece7;
  --accent: #d6c34f;
  --accent-soft: #f5f0cf;
  --ring-track: rgba(72, 82, 55, 0.14);
  --glass: rgba(253, 255, 245, 0.72);
  --nav-bg: rgba(246, 248, 231, 0.84);
  --chip-bg: rgba(255, 255, 251, 0.68);
  --blob-one: rgba(225, 114, 63, 0.08);
  --blob-two: rgba(214, 195, 79, 0.16);
  --blob-three: rgba(61, 123, 118, 0.09);
}

html[data-skin="aurora"] {
  --bg: #e5f4ee;
  --bg-deep: #cbe7dd;
  --bg-soft: #f5fcf9;
  --surface: #f7fdfa;
  --surface-strong: #fefffe;
  --surface-2: #e8f6f0;
  --surface-3: #d6eee5;
  --text: #22322e;
  --text-soft: #4c625c;
  --muted: #748f87;
  --line: rgba(44, 93, 83, 0.13);
  --line-strong: rgba(44, 93, 83, 0.21);
  --primary: #d75b47;
  --primary-light: #f08d78;
  --primary-deep: #ac3f2e;
  --primary-soft: #f6dfda;
  --leaf: #2f6f63;
  --leaf-soft: #d6ebe5;
  --accent: #55b9a8;
  --accent-soft: #d8f1ec;
  --ring-track: rgba(44, 93, 83, 0.14);
  --glass: rgba(247, 253, 250, 0.72);
  --nav-bg: rgba(229, 244, 238, 0.84);
  --chip-bg: rgba(255, 255, 255, 0.68);
  --blob-one: rgba(85, 214, 176, 0.13);
  --blob-two: rgba(127, 212, 255, 0.12);
  --blob-three: rgba(192, 157, 255, 0.09);
  --shadow-card: 0 24px 70px rgba(44, 93, 83, 0.13);
}

html[data-skin="sunset"] {
  --bg: #f8e7d6;
  --bg-deep: #edcdae;
  --bg-soft: #fdf5eb;
  --surface: #fff8ed;
  --surface-strong: #fffdf9;
  --surface-2: #f8ecdd;
  --surface-3: #eed8c0;
  --text: #382f26;
  --text-soft: #685846;
  --muted: #8e7b65;
  --line: rgba(100, 74, 45, 0.14);
  --line-strong: rgba(100, 74, 45, 0.22);
  --primary: #c6523c;
  --primary-light: #e98165;
  --primary-deep: #983a29;
  --primary-soft: #f2d9d1;
  --leaf: #6d6b45;
  --leaf-soft: #e8e6d4;
  --accent: #e0a63e;
  --accent-soft: #f7e6c8;
  --ring-track: rgba(100, 74, 45, 0.15);
  --glass: rgba(255, 248, 237, 0.73);
  --nav-bg: rgba(248, 231, 214, 0.85);
  --chip-bg: rgba(255, 253, 249, 0.68);
  --blob-one: rgba(255, 180, 94, 0.14);
  --blob-two: rgba(255, 131, 96, 0.11);
  --blob-three: rgba(246, 215, 134, 0.12);
  --shadow-card: 0 24px 70px rgba(109, 75, 39, 0.13);
}

html[data-skin="galaxy"] {
  --bg: #1b1630;
  --bg-deep: #110e20;
  --bg-soft: #231c3d;
  --surface: #241d3b;
  --surface-strong: #2d2548;
  --surface-2: #2f274d;
  --surface-3: #3a305c;
  --text: #fbeff8;
  --text-soft: #d8c8df;
  --muted: #a99ab8;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --primary: #ff7e9d;
  --primary-light: #ffa6b8;
  --primary-deep: #d9587b;
  --primary-soft: #3f2336;
  --primary-contrast: #241326;
  --leaf: #8ee3c9;
  --leaf-soft: #1e3a35;
  --accent: #ffd46b;
  --accent-soft: #3d321c;
  --danger: #ff9cae;
  --ring-track: rgba(255, 255, 255, 0.12);
  --shadow-card: 0 26px 80px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.28);
  --shadow-float: 0 20px 50px rgba(0, 0, 0, 0.5);
  --glass: rgba(36, 29, 59, 0.72);
  --nav-bg: rgba(27, 22, 48, 0.84);
  --chip-bg: rgba(255, 255, 255, 0.06);
  --danger-soft: #422839;
  --blob-one: rgba(255, 126, 157, 0.1);
  --blob-two: rgba(142, 227, 201, 0.08);
  --blob-three: rgba(185, 167, 255, 0.08);
  --grain-opacity: 0.025;
  color-scheme: dark;
}

html[data-skin="obsidian"] {
  --bg: #0a0908;
  --bg-deep: #050505;
  --bg-soft: #12100c;
  --surface: #14120e;
  --surface-strong: #1b1813;
  --surface-2: #211d16;
  --surface-3: #2e271b;
  --text: #f7ebd7;
  --text-soft: #d9c9ad;
  --muted: #a29173;
  --line: rgba(244, 210, 124, 0.13);
  --line-strong: rgba(244, 210, 124, 0.24);
  --primary: #d9a746;
  --primary-light: #f3cf7d;
  --primary-deep: #a47720;
  --primary-soft: #3b2e17;
  --primary-contrast: #1e1506;
  --leaf: #ad9759;
  --leaf-soft: #2b2819;
  --accent: #f4d27c;
  --accent-soft: #3c311b;
  --danger: #f08c6f;
  --ring-track: rgba(244, 210, 124, 0.16);
  --shadow-card: 0 28px 82px rgba(0, 0, 0, 0.58);
  --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.42);
  --shadow-float: 0 20px 54px rgba(0, 0, 0, 0.55);
  --glass: rgba(20, 18, 14, 0.74);
  --nav-bg: rgba(10, 9, 8, 0.86);
  --chip-bg: rgba(255, 229, 166, 0.055);
  --danger-soft: #3d241d;
  --blob-one: rgba(217, 167, 70, 0.1);
  --blob-two: rgba(124, 83, 29, 0.11);
  --blob-three: rgba(246, 216, 137, 0.05);
  --grain-opacity: 0.03;
  color-scheme: dark;
}

html[data-skin="opal"] {
  --bg: #ece4f4;
  --bg-deep: #dfd4ec;
  --bg-soft: #faf6ff;
  --surface: #fdfbff;
  --surface-strong: #fffefe;
  --surface-2: #f2eafa;
  --surface-3: #e6dcf2;
  --text: #2d2939;
  --text-soft: #574f66;
  --muted: #7b708c;
  --line: rgba(70, 55, 85, 0.13);
  --line-strong: rgba(70, 55, 85, 0.22);
  --primary: #8d5bb5;
  --primary-light: #b17bd1;
  --primary-deep: #6c3f8f;
  --primary-soft: #eadcf5;
  --leaf: #3c837d;
  --leaf-soft: #d9efeb;
  --accent: #c99354;
  --accent-soft: #f5e9cf;
  --ring-track: rgba(70, 55, 85, 0.14);
  --glass: rgba(253, 251, 255, 0.72);
  --nav-bg: rgba(236, 228, 244, 0.84);
  --chip-bg: rgba(255, 255, 255, 0.7);
  --blob-one: rgba(255, 170, 208, 0.24);
  --blob-two: rgba(137, 229, 212, 0.2);
  --blob-three: rgba(183, 158, 255, 0.22);
  --shadow-card: 0 24px 70px rgba(83, 62, 104, 0.13);
  --shadow-soft: 0 10px 28px rgba(83, 62, 104, 0.09);
}

/* ---------- skin atmosphere / rarity light effects ---------- */
.skin-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease-soft);
}

.skin-fx-aurora {
  position: absolute;
  width: 64vw;
  height: 64vw;
  min-width: 520px;
  min-height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 45%, var(--skin-aura-a), transparent 64%);
  opacity: 0;
  mix-blend-mode: screen;
  animation: skin-aurora 22s ease-in-out infinite alternate;
}

.skin-fx-aurora.aurora-one {
  left: -18vw;
  top: 5vh;
}

.skin-fx-aurora.aurora-two {
  right: -20vw;
  top: 37vh;
  background: radial-gradient(circle at 50% 45%, var(--skin-aura-b), transparent 64%);
  animation-delay: -9s;
  animation-direction: alternate-reverse;
}

.skin-fx-holo {
  position: absolute;
  inset: -30%;
  opacity: 0;
  background: conic-gradient(
    from 35deg,
    transparent 0deg,
    color-mix(in srgb, var(--skin-aura-a) 20%, transparent) 65deg,
    transparent 120deg,
    color-mix(in srgb, var(--skin-aura-b) 16%, transparent) 210deg,
    transparent 275deg,
    color-mix(in srgb, var(--skin-aura-c) 18%, transparent) 320deg,
    transparent 360deg
  );
  mix-blend-mode: screen;
  animation: skin-holo-turn 34s linear infinite;
}

.skin-fx-sheen {
  position: absolute;
  top: -35%;
  left: -35%;
  width: 58vw;
  height: 170vh;
  transform: rotate(18deg) translateX(-65%);
  background: linear-gradient(
    90deg,
    transparent 25%,
    color-mix(in srgb, var(--skin-aura-a) 18%, transparent) 42%,
    color-mix(in srgb, var(--skin-aura-b) 28%, transparent) 49%,
    rgba(255, 255, 255, 0.14) 51%,
    transparent 68%
  );
  filter: none;
  opacity: 0;
  animation: skin-sheen 14s ease-in-out infinite;
}

.skin-fx-sparkles {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.skin-fx-sparkles i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: var(--skin-aura-b);
  box-shadow: 0 0 9px var(--skin-aura-b), 0 0 20px color-mix(in srgb, var(--skin-aura-a) 35%, transparent);
  opacity: 0;
  animation: skin-sparkle 4.8s ease-in-out var(--d) infinite;
}

.skin-fx-sparkles i:nth-child(3n) {
  width: calc(var(--s) + 2px);
  height: 1px;
  border-radius: 99px;
  background: var(--skin-aura-a);
}

html[data-skin-rarity="rare"] .skin-fx {
  opacity: 0.46;
}

html[data-skin-rarity="rare"] .skin-fx-sheen {
  opacity: 0.35;
  animation-duration: 18s;
}

html[data-skin-rarity="rare"] .skin-fx-aurora.aurora-two,
html[data-skin-rarity="rare"] .skin-fx-holo,
html[data-skin-rarity="rare"] .skin-fx-sparkles {
  display: none;
}

html[data-skin-rarity="rare"] .skin-fx-aurora.aurora-one {
  display: block;
  opacity: 0.12;
}

html[data-skin-rarity="epic"] .skin-fx {
  opacity: 0.82;
}

html[data-skin-rarity="epic"] .skin-fx-aurora {
  opacity: 0.32;
}

html[data-skin-rarity="epic"] .skin-fx-holo {
  opacity: 0.045;
}

html[data-skin-rarity="epic"] .skin-fx-sheen {
  opacity: 0.52;
  animation-duration: 10s;
}

html[data-skin-rarity="epic"] .skin-fx-sparkles {
  opacity: 0.65;
}

html[data-skin-rarity="legendary"] .skin-fx {
  opacity: 1;
}

html[data-skin-rarity="legendary"] .skin-fx-aurora {
  opacity: 0.48;
}

html[data-skin-rarity="legendary"] .skin-fx-holo {
  opacity: 0.12;
}

html[data-skin-rarity="legendary"] .skin-fx-sheen {
  opacity: 0.8;
  animation-duration: 7.5s;
}

html[data-skin-rarity="legendary"] .skin-fx-sparkles {
  opacity: 1;
}

html[data-skin-rarity="epic"] .timer-card,
html[data-skin-rarity="legendary"] .timer-card {
  border-color: color-mix(in srgb, var(--skin-aura-a) 38%, var(--line));
}

html[data-skin-rarity="legendary"] .timer-card {
  animation: legendary-card-glow 7s ease-in-out infinite;
}

html[data-skin-rarity="epic"] .timer-card-glow,
html[data-skin-rarity="legendary"] .timer-card-glow {
  width: 300px;
  height: 300px;
  background: conic-gradient(from 0deg, var(--skin-aura-a), var(--skin-aura-b), var(--skin-aura-c), var(--skin-aura-a));
  filter: blur(28px);
  opacity: 0.25;
  animation: rotate-slow 24s linear infinite;
}

html[data-skin-rarity="legendary"] .timer-card-glow {
  opacity: 0.38;
}

.card-sheen {
  position: absolute;
  inset: -55% -35%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-70%) rotate(9deg);
  background: linear-gradient(
    110deg,
    transparent 34%,
    color-mix(in srgb, var(--skin-aura-a) 18%, transparent) 45%,
    rgba(255, 255, 255, 0.25) 49%,
    color-mix(in srgb, var(--skin-aura-b) 22%, transparent) 54%,
    transparent 65%
  );
  filter: none;
  mix-blend-mode: soft-light;
}

.timer-aura {
  position: absolute;
  inset: 0;
  z-index: 4;
  padding: 1.5px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    120deg,
    transparent 8%,
    var(--skin-aura-a) 26%,
    rgba(255, 255, 255, 0.7) 41%,
    var(--skin-aura-b) 56%,
    transparent 74%,
    var(--skin-aura-c) 91%,
    transparent
  );
  background-size: 250% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.timer-sparkles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
}

.timer-sparkles i {
  position: absolute;
  left: var(--sx);
  top: var(--sy);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--skin-aura-b);
  box-shadow: 0 0 8px var(--skin-aura-b), 0 0 18px var(--skin-aura-a);
  opacity: 0;
  animation: timer-sparkle 4.6s ease-in-out var(--sd) infinite;
}

.timer-sparkles i:nth-child(3n) {
  width: 6px;
  height: 1px;
  border-radius: 99px;
  background: var(--skin-aura-a);
}

html[data-skin-rarity="rare"] .timer-aura {
  opacity: 0.22;
}

html[data-skin-rarity="rare"] .timer-sparkles {
  opacity: 0.28;
}

html[data-skin-rarity="epic"] .timer-aura {
  opacity: 0.62;
  animation: timer-aura-flow 8s linear infinite;
}

html[data-skin-rarity="epic"] .timer-sparkles {
  opacity: 0.72;
}

html[data-skin-rarity="legendary"] .timer-aura {
  opacity: 0.92;
  animation: timer-aura-flow 5.8s linear infinite;
}

html[data-skin-rarity="legendary"] .timer-sparkles {
  opacity: 1;
}

@keyframes timer-sparkle {
  0%, 100% { transform: scale(0.3) translateY(3px); opacity: 0; }
  42% { transform: scale(1.25) translateY(-4px); opacity: 0.95; }
  72% { transform: scale(0.7) translateY(1px); opacity: 0.35; }
}

@keyframes timer-aura-flow {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

html[data-skin-rarity="rare"] .card-sheen {
  opacity: 0.45;
  animation: card-sheen 9s ease-in-out infinite;
}

html[data-skin-rarity="epic"] .card-sheen {
  opacity: 0.7;
  animation: card-sheen 7s ease-in-out infinite;
}

html[data-skin-rarity="legendary"] .card-sheen {
  opacity: 0.9;
  animation: card-sheen 5.5s ease-in-out infinite;
}

html[data-skin-rarity="epic"] .brand-copy strong,
html[data-skin-rarity="legendary"] .brand-copy strong {
  background: linear-gradient(100deg, var(--text) 5%, var(--skin-aura-a) 34%, var(--skin-aura-b) 62%, var(--text) 96%);
  background-size: 230% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: skin-text-flow 9s linear infinite;
}

html[data-skin-rarity="epic"] .nav-item.is-active,
html[data-skin-rarity="legendary"] .nav-item.is-active {
  background: linear-gradient(120deg, var(--skin-aura-a), var(--skin-aura-b) 52%, var(--skin-aura-c));
  background-size: 180% 100%;
  color: var(--primary-contrast);
  animation: skin-nav-flow 8s ease-in-out infinite alternate;
}

html[data-skin-rarity="legendary"] .primary-action {
  box-shadow:
    0 14px 32px color-mix(in srgb, var(--primary) 28%, transparent),
    0 0 0 1px color-mix(in srgb, var(--skin-aura-b) 45%, transparent),
    0 0 26px color-mix(in srgb, var(--skin-aura-a) 24%, transparent);
}

html[data-skin-rarity="epic"] .timer-digits,
html[data-skin-rarity="legendary"] .timer-digits {
  background-image: linear-gradient(
    100deg,
    var(--text) 0%,
    var(--text) 21%,
    color-mix(in srgb, var(--skin-aura-a) 35%, var(--text)) 48%,
    color-mix(in srgb, var(--skin-aura-b) 28%, var(--text)) 71%,
    var(--text) 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 6px color-mix(in srgb, var(--text) 10%, transparent));
  animation: skin-text-flow 9s linear infinite;
}

html[data-skin-rarity="legendary"] .topbar::after {
  background: linear-gradient(90deg, transparent, var(--skin-aura-a), var(--skin-aura-b), transparent);
  background-size: 200% 100%;
  opacity: 0.7;
  animation: topbar-flow 8s linear infinite;
}

@keyframes skin-aurora {
  from { transform: translate3d(-3%, -2%, 0) scale(0.94) rotate(-8deg); }
  to { transform: translate3d(4%, 6%, 0) scale(1.12) rotate(8deg); }
}

@keyframes skin-holo-turn {
  to { transform: rotate(360deg); }
}

@keyframes skin-sheen {
  0%, 18% { transform: rotate(18deg) translateX(-72%); opacity: 0; }
  36% { opacity: 0.65; }
  58% { opacity: 0.22; }
  78%, 100% { transform: rotate(18deg) translateX(170%); opacity: 0; }
}

@keyframes skin-sparkle {
  0%, 100% { transform: translateY(5px) scale(0.5); opacity: 0; }
  45% { transform: translateY(-4px) scale(1.2); opacity: 0.95; }
  70% { opacity: 0.35; }
}

@keyframes card-sheen {
  0%, 15% { transform: translateX(-75%) rotate(9deg); opacity: 0; }
  36% { opacity: 0.6; }
  60% { opacity: 0.18; }
  82%, 100% { transform: translateX(82%) rotate(9deg); opacity: 0; }
}

@keyframes skin-text-flow {
  to { background-position: 220% 0; }
}

@keyframes skin-nav-flow {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

@keyframes legendary-card-glow {
  0%, 100% { box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22), 0 0 0 1px color-mix(in srgb, var(--skin-aura-a) 14%, transparent); }
  50% { box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3), 0 0 34px color-mix(in srgb, var(--skin-aura-a) 16%, transparent); }
}

@keyframes topbar-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.5s var(--ease-soft), color 0.5s var(--ease-soft);
}

body.modal-open {
  overflow: hidden;
}

::selection {
  color: var(--primary-contrast);
  background: var(--primary);
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
}

.icon use {
  pointer-events: none;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 55%, transparent);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface-strong);
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
}

/* ---------- ambient background ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 12% 0%, var(--blob-one), transparent 70%),
    radial-gradient(ellipse 50% 40% at 88% 8%, var(--blob-two), transparent 72%),
    radial-gradient(ellipse 50% 50% at 50% 100%, var(--blob-three), transparent 68%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 42%, var(--bg-deep) 140%);
}

.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.16;
  mask-image: radial-gradient(ellipse 65% 60% at 50% 30%, #000 10%, transparent 78%);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--line-strong) 0.8px, transparent 0.8px);
  background-size: 26px 26px;
  opacity: 0.18;
  mask-image: radial-gradient(circle at 70% 40%, #000, transparent 68%);
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.65;
}

.orb-one {
  top: -8vw;
  left: -7vw;
  width: 34vw;
  height: 34vw;
  min-width: 300px;
  min-height: 300px;
  background: radial-gradient(circle at 35% 35%, var(--primary-soft), transparent 70%);
  animation: ambient-drift 24s ease-in-out infinite alternate;
}

.orb-two {
  right: -8vw;
  top: 18vh;
  width: 28vw;
  height: 28vw;
  min-width: 240px;
  min-height: 240px;
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
  animation: ambient-drift 30s ease-in-out -8s infinite alternate-reverse;
}

.orb-three {
  left: 32%;
  bottom: -18vw;
  width: 42vw;
  height: 35vw;
  min-width: 300px;
  min-height: 300px;
  background: radial-gradient(circle, var(--leaf-soft), transparent 68%);
  opacity: 0.4;
  animation: ambient-drift 34s ease-in-out -15s infinite alternate;
}

.floating-dot {
  position: absolute;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.28;
  filter: blur(0.2px);
  animation: float-dot 11s ease-in-out infinite;
}

.dot-one {
  top: 18%;
  left: 6%;
  width: 7px;
  height: 7px;
}

.dot-two {
  top: 34%;
  right: 8%;
  width: 10px;
  height: 10px;
  background: var(--accent);
  animation-delay: -3s;
}

.dot-three {
  bottom: 22%;
  left: 44%;
  width: 5px;
  height: 5px;
  background: var(--leaf);
  animation-delay: -6s;
}

@keyframes ambient-drift {
  from { transform: translate3d(-2%, 0, 0) scale(1); }
  to { transform: translate3d(4%, 5%, 0) scale(1.08); }
}

@keyframes float-dot {
  0%, 100% { transform: translateY(0); opacity: 0.18; }
  50% { transform: translateY(-22px); opacity: 0.45; }
}

/* ---------- shell / topbar ---------- */
.app-shell {
  position: relative;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: 100%;
  padding: 14px clamp(20px, 4.2vw, 64px);
  border-bottom: 1px solid transparent;
  background: var(--nav-bg);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  transition: border-color 0.3s var(--ease-soft), background 0.4s var(--ease-soft);
}

.topbar::after {
  content: "";
  position: absolute;
  left: clamp(20px, 4.2vw, 64px);
  right: clamp(20px, 4.2vw, 64px);
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  border-radius: 16px;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--primary-soft), var(--surface-strong));
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft);
  transform: rotate(-3deg);
  transition: transform 0.4s var(--ease-spring);
}

.brand:hover .brand-mark {
  transform: rotate(4deg) scale(1.04);
}

.brand-mark svg {
  width: 38px;
  height: 38px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--chip-bg);
  box-shadow: 0 5px 18px rgba(79, 56, 31, 0.04);
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 17px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
  transition: color 0.22s, background 0.32s var(--ease-spring), transform 0.32s var(--ease-spring);
}

.nav-item .icon {
  width: 17px;
  height: 17px;
  opacity: 0.9;
}

.nav-item:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-item.is-active {
  color: var(--primary-contrast);
  background: var(--primary);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 30%, transparent);
}

.nav-item.is-active .icon {
  opacity: 1;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--accent);
  color: #35240b;
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
}

.nav-dot {
  position: absolute;
  top: 7px;
  right: 9px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: var(--primary);
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.streak-pill,
.coin-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--chip-bg);
  box-shadow: 0 4px 14px rgba(79, 56, 31, 0.035);
  transition: transform 0.25s var(--ease-spring), border-color 0.2s, background 0.2s;
}

.streak-pill:hover,
.coin-pill:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--surface-strong);
}

.streak-pill .icon {
  width: 17px;
  height: 17px;
  color: var(--primary);
  fill: currentColor;
}

.streak-pill strong {
  font-size: 14px;
  font-weight: 800;
}

.streak-pill span {
  color: var(--muted);
  font-size: 11px;
}

.coin-pill strong {
  font-family: var(--font-digit);
  font-size: 16px;
  letter-spacing: 0.02em;
}

.coin-disc {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.coin-disc svg {
  width: 18px;
  height: 18px;
}

.coin-caption {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.coin-pill.is-bumping {
  animation: coin-bump 0.65s var(--ease-spring);
}

.coin-pill.is-shaking {
  animation: shake 0.45s var(--ease-soft);
}

@keyframes coin-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.1) rotate(-2deg); border-color: var(--accent); }
  70% { transform: scale(0.98) rotate(1deg); }
  100% { transform: scale(1); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--chip-bg);
  color: var(--text-soft);
  transition: transform 0.3s var(--ease-spring), color 0.2s, background 0.2s, border-color 0.2s;
}

.icon-button:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--surface-strong);
  transform: translateY(-2px) rotate(8deg);
}

.icon-button .icon {
  width: 18px;
  height: 18px;
}

.help-button {
  display: grid;
}

.main-content {
  width: min(1280px, calc(100% - clamp(36px, 7vw, 96px)));
  margin: 0 auto;
  padding: 42px 0 72px;
}

.view {
  animation: view-enter 0.45s var(--ease-spring) both;
}

@keyframes view-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- shared typographic blocks ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow-line {
  width: 28px;
  height: 1px;
  background: var(--primary);
}

.focus-heading,
.page-heading,
.collection-heading,
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.focus-heading {
  margin-bottom: 26px;
}

.focus-heading h1,
.page-heading h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.2vw, 58px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.focus-heading h1 em {
  position: relative;
  color: var(--primary);
  font-style: normal;
  white-space: nowrap;
  z-index: 0;
}

.focus-heading h1 em::after {
  content: "";
  position: absolute;
  left: -1%;
  right: -1%;
  bottom: 8%;
  z-index: -1;
  height: 22%;
  border-radius: 99px;
  background: var(--accent-soft);
  transform: rotate(-1.2deg);
}

.highlight {
  position: relative;
  white-space: nowrap;
  z-index: 0;
}

.highlight::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 5%;
  z-index: -1;
  height: 16%;
  border-radius: 99px;
  background: var(--accent-soft);
  transform: rotate(-0.8deg);
}

.lede {
  max-width: 620px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.soft-button,
.secondary-button,
.primary-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.3s var(--ease-spring), background 0.2s, box-shadow 0.25s, border-color 0.2s;
}

.soft-button {
  border: 1px solid var(--line);
  background: var(--chip-bg);
  color: var(--text-soft);
}

.soft-button:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.soft-button.is-active {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-soft);
}

.soft-button .icon {
  width: 16px;
  height: 16px;
}

.primary-button {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--primary-contrast);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--primary) 24%, transparent);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--primary) 32%, transparent);
}

.primary-button:active,
.secondary-button:active,
.soft-button:active {
  transform: translateY(0) scale(0.98);
}

.primary-button.compact {
  min-height: 38px;
  padding: 0 18px;
  font-size: 12px;
}

.primary-button.wide {
  width: 100%;
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: var(--surface-strong);
  color: var(--text-soft);
}

.secondary-button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.danger-button {
  border: 1px solid transparent;
  background: var(--danger);
  color: #fff9f2;
}

.danger-button:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.icon-button.small-icon {
  width: 34px;
  height: 34px;
}

/* ---------- focus layout ---------- */
.focus-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.focus-layout.is-immersive {
  grid-template-columns: minmax(0, 1fr);
  max-width: 820px;
  margin: 0 auto;
}

.focus-layout.is-immersive .side-stack,
.focus-layout.is-immersive + .focus-strip {
  display: none;
}

.focus-layout.is-immersive .timer-card {
  min-height: 660px;
}

/* ---------- timer card ---------- */
.timer-card {
  position: relative;
  overflow: hidden;
  padding: 24px 30px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, color-mix(in srgb, var(--primary-soft) 55%, transparent), transparent 70%),
    linear-gradient(155deg, var(--surface-strong) 0%, var(--surface) 55%, var(--surface-2) 130%);
  box-shadow: var(--shadow-card);
  isolation: isolate;
  transition: border-color 0.3s, box-shadow 0.4s;
}

.timer-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(var(--line-strong) 0.65px, transparent 0.65px);
  background-size: 15px 15px;
  opacity: 0.22;
  mask-image: radial-gradient(ellipse at 50% 20%, #000, transparent 70%);
}

.timer-card::after {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  width: 50%;
  height: 50%;
  border-radius: 50%;
  background: var(--primary-soft);
  filter: blur(44px);
  opacity: 0.45;
  transform: translateX(-50%);
  z-index: -1;
}

.timer-card.is-running {
  border-color: color-mix(in srgb, var(--primary) 25%, var(--line));
  box-shadow: 0 28px 80px color-mix(in srgb, var(--primary) 10%, transparent), var(--shadow-card);
}

.timer-card.is-break {
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, color-mix(in srgb, var(--leaf-soft) 55%, transparent), transparent 70%),
    linear-gradient(155deg, var(--surface-strong) 0%, var(--surface) 55%, var(--surface-2) 130%);
}

.timer-card-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  right: -80px;
  bottom: -80px;
  border-radius: 50%;
  background: var(--accent-soft);
  filter: blur(20px);
  opacity: 0.4;
  z-index: -1;
}

.card-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: var(--grain-opacity);
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.timer-vine {
  position: absolute;
  pointer-events: none;
  opacity: 0.55;
}

.vine-left {
  left: 26px;
  top: 120px;
  width: 30px;
  height: 190px;
  border-left: 1px solid var(--leaf);
  border-radius: 50%;
  transform: rotate(10deg);
}

.vine-left span {
  position: absolute;
  width: 18px;
  height: 9px;
  border-radius: 100% 0 100% 0;
  background: var(--leaf-soft);
  border: 1px solid color-mix(in srgb, var(--leaf) 25%, transparent);
}

.vine-left span:nth-child(1) { top: 30px; left: -17px; transform: rotate(24deg); }
.vine-left span:nth-child(2) { top: 88px; left: 0; transform: rotate(-20deg); }
.vine-left span:nth-child(3) { top: 146px; left: -16px; transform: rotate(24deg); }

.timer-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mode-tabs {
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-2) 75%, transparent);
}

.mode-tab {
  min-width: 76px;
  height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  transition: color 0.2s, background 0.3s var(--ease-spring), box-shadow 0.3s;
}

.mode-tab:hover {
  color: var(--text);
}

.mode-tab.is-active {
  color: var(--primary);
  background: var(--surface-strong);
  box-shadow: 0 4px 14px rgba(70, 48, 24, 0.08);
}

.timer-card.is-break .mode-tab.is-active {
  color: var(--leaf);
}

.timer-settings-btn {
  width: 38px;
  height: 38px;
  background: transparent;
}

.timer-stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 2px;
}

.timer-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: min(390px, 80%);
  aspect-ratio: 1;
  margin: 4px auto 2px;
}

.timer-orbit::before {
  content: "";
  position: absolute;
  inset: 13%;
  border-radius: 50%;
  background: radial-gradient(circle at 45% 38%, color-mix(in srgb, var(--surface-strong) 95%, transparent), color-mix(in srgb, var(--surface-2) 40%, transparent));
  border: 1px solid var(--line);
  box-shadow: inset 0 12px 30px rgba(255, 255, 255, 0.08), 0 18px 45px rgba(80, 54, 30, 0.05);
}

.timer-ticks {
  position: absolute;
  inset: 4.2%;
  border-radius: 50%;
  background: repeating-conic-gradient(from -1deg, var(--line-strong) 0deg 0.55deg, transparent 0.55deg 6deg);
  mask: radial-gradient(circle, transparent 0 47.8%, #000 48.2% 49.6%, transparent 50%);
  opacity: 0.55;
  animation: rotate-slow 120s linear infinite;
}

.timer-card.is-running .timer-ticks {
  animation-duration: 60s;
}

@keyframes rotate-slow {
  to { transform: rotate(360deg); }
}

.timer-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(0deg);
  overflow: visible;
}

.ring-track {
  fill: none;
  stroke: var(--ring-track);
  stroke-width: 1.6;
  stroke-dasharray: 2 7;
}

.ring-progress {
  fill: none;
  stroke: url(#ringGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: url(#ringGlow);
  transition: stroke-dashoffset 0.28s linear, opacity 0.4s;
}

.ring-head {
  fill: var(--accent);
  stroke: var(--surface-strong);
  stroke-width: 2;
  filter: drop-shadow(0 0 8px var(--accent));
  transition: opacity 0.4s, cx 0.28s linear, cy 0.28s linear;
}

.timer-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 48px;
}

.timer-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: color-mix(in srgb, var(--surface-strong) 70%, transparent);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.timer-digits {
  margin: 9px 0 5px;
  color: var(--text);
  font-family: var(--font-digit);
  font-size: clamp(66px, 8vw, 100px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.065em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 0 color-mix(in srgb, var(--surface-strong) 55%, transparent);
  transition: color 0.3s;
}

.timer-card.is-running .timer-digits {
  color: var(--primary);
}

.timer-card.is-break.is-running .timer-digits {
  color: var(--leaf);
}

.timer-sub {
  max-width: 220px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.orbit-satellite {
  position: absolute;
  z-index: 3;
  border-radius: 50%;
  pointer-events: none;
}

.satellite-one {
  top: 18%;
  right: 10%;
  width: 9px;
  height: 9px;
  background: var(--primary);
  box-shadow: 0 0 0 5px var(--primary-soft);
  opacity: 0.8;
}

.satellite-two {
  left: 12%;
  bottom: 24%;
  width: 6px;
  height: 6px;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.timer-card.is-running .satellite-one {
  animation: satellite-pulse 2.4s ease-in-out infinite;
}

.timer-card.is-running .satellite-two {
  animation: satellite-pulse 3.1s ease-in-out -1s infinite;
}

@keyframes satellite-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.45); opacity: 1; }
}

.session-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(320px, 78%);
  margin: 2px auto 0;
  color: var(--muted);
  font-size: 10px;
}

.session-label {
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.cycle-dots {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cycle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background 0.3s, transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.cycle-dot.is-filled {
  background: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent);
}

.cycle-dot.is-next {
  background: var(--surface-strong);
  box-shadow: inset 0 0 0 1.5px var(--primary);
}

.cycle-label {
  font-family: var(--font-digit);
  font-size: 10px;
  white-space: nowrap;
}

.timer-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 26px);
  margin-top: 12px;
}

.round-action {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface-strong) 55%, transparent);
  color: var(--muted);
  transition: transform 0.3s var(--ease-spring), color 0.2s, border-color 0.2s, background 0.2s;
}

.round-action:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--surface-strong);
  transform: translateY(-3px);
}

.round-action:active {
  transform: translateY(0) rotate(-25deg);
}

.round-action .icon {
  width: 19px;
  height: 19px;
}

.primary-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 192px;
  height: 62px;
  padding: 0 26px 0 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: var(--primary-contrast);
  box-shadow:
    0 14px 32px color-mix(in srgb, var(--primary) 30%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, filter 0.2s;
}

.primary-action::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: inherit;
  pointer-events: none;
}

.primary-action:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 20px 42px color-mix(in srgb, var(--primary) 36%, transparent);
  filter: saturate(1.05);
}

.primary-action:active {
  transform: translateY(0) scale(0.985);
}

.primary-action-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.17);
  backdrop-filter: blur(4px);
}

.primary-action-icon .icon {
  width: 20px;
  height: 20px;
}

.primary-action .pause-icon {
  display: none;
}

.timer-card.is-running .primary-action .play-icon {
  display: none;
}

.timer-card.is-running .primary-action .pause-icon {
  display: block;
}

.primary-action-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.primary-action-copy strong {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.03em;
}

.primary-action-copy small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.timer-card.is-break .primary-action {
  background: linear-gradient(135deg, var(--leaf) 0%, color-mix(in srgb, var(--leaf) 70%, #000) 100%);
  box-shadow: 0 14px 32px color-mix(in srgb, var(--leaf) 25%, transparent);
}

.active-task-chip {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  padding: 8px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-strong) 42%, transparent);
  text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.active-task-chip:hover {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary-soft) 35%, var(--surface-strong));
  transform: translateY(-1px);
}

.active-task-chip.has-task {
  border-style: solid;
}

.chip-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--primary);
}

.chip-icon .icon {
  width: 17px;
  height: 17px;
}

.chip-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.chip-copy small {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.chip-copy strong {
  overflow: hidden;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip-progress {
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-digit);
  font-size: 10px;
  white-space: nowrap;
}

.chip-arrow {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.timer-foot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.duration-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  transition: color 0.2s;
}

.duration-link:hover {
  color: var(--primary);
}

.duration-link .icon {
  width: 12px;
  height: 12px;
}

.shortcut-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
}

.shortcut-hint kbd {
  height: 18px;
  min-width: 34px;
  padding: 0 5px;
}

/* ---------- side panels ---------- */
.side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: border-color 0.3s, transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

.panel:hover {
  border-color: var(--line-strong);
}

.panel-kicker {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mini-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 9px;
  font-weight: 600;
}

.mini-tag b {
  font-size: 11px;
}

.checkin-card {
  padding: 18px 20px 16px;
  background:
    radial-gradient(ellipse 75% 80% at 100% 0%, var(--accent-soft), transparent 62%),
    linear-gradient(150deg, var(--surface), var(--surface-2));
  overflow: hidden;
}

.checkin-card::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -46px;
  width: 130px;
  height: 130px;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  opacity: 0.7;
  pointer-events: none;
}

.checkin-main {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 10px;
}

.checkin-mascot {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface-strong) 65%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
  transform: rotate(-4deg);
}

.checkin-mascot svg {
  width: 54px;
  height: 54px;
  animation: mascot-bob 4s ease-in-out infinite;
}

@keyframes mascot-bob {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-4px) rotate(2deg); }
}

.mascot-spark {
  position: absolute;
  color: var(--accent);
  font-size: 12px;
  animation: twinkle 2.8s ease-in-out infinite;
}

.spark-a { top: -2px; right: -2px; }
.spark-b { left: -4px; bottom: 4px; color: var(--primary); animation-delay: -1.2s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.4; transform: scale(0.8) rotate(0); }
  50% { opacity: 1; transform: scale(1.15) rotate(18deg); }
}

.checkin-copy h2 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.checkin-copy p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.checkin-week {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  padding: 7px 2px 9px;
}

.checkin-day {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted);
}

.checkin-day i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface-strong) 50%, transparent);
  font-style: normal;
  font-size: 9px;
}

.checkin-day i .icon {
  width: 12px;
  height: 12px;
}

.checkin-day.is-today i {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 10%, transparent);
}

.checkin-day.is-checked i {
  border-color: var(--leaf);
  background: var(--leaf);
  color: var(--surface-strong);
}

.checkin-day.is-future {
  opacity: 0.45;
}

.checkin-day span {
  font-size: 8px;
}

.checkin-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.reward-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}

.reward-pill svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

.reward-pill b {
  color: var(--text);
  font-family: var(--font-digit);
  font-size: 12px;
}

.checkin-footer .primary-button:disabled {
  border-color: var(--line);
  background: var(--surface-2);
  color: var(--muted);
  box-shadow: none;
  transform: none;
}

.mini-tasks {
  padding: 18px 20px 16px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-heading h2 {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  transition: color 0.2s, gap 0.2s;
}

.text-button:hover {
  gap: 6px;
  color: var(--primary);
}

.text-button .icon {
  width: 13px;
  height: 13px;
}

.focus-task-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.focus-task {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 37px;
  padding: 7px 9px;
  border-radius: 11px;
  text-align: left;
  transition: background 0.2s, color 0.2s;
}

.focus-task:hover {
  background: var(--surface-2);
}

.focus-task.is-active {
  background: color-mix(in srgb, var(--primary-soft) 38%, var(--surface));
}

.focus-task-mark {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  color: var(--primary);
}

.focus-task-mark > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line);
}

.focus-task-mark .icon {
  width: 14px;
  height: 14px;
}

.focus-task-name {
  flex: 1;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-task-count {
  color: var(--muted);
  font-family: var(--font-digit);
  font-size: 9px;
}

.focus-task-empty {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 2px 12px;
  color: var(--muted);
  font-size: 11px;
}

.focus-task-empty small {
  font-size: 9px;
  opacity: 0.8;
}

.quick-add {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 4px 4px 4px 11px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-strong) 45%, transparent);
  transition: border-color 0.2s;
}

.quick-add:focus-within {
  border-color: var(--primary);
}

.quick-add input {
  flex: 1;
  width: 100%;
  height: 28px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 10px;
}

.quick-add input::placeholder {
  color: var(--muted);
}

.quick-add button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--primary);
  color: var(--primary-contrast);
  transition: transform 0.2s var(--ease-spring);
}

.quick-add button:hover {
  transform: rotate(90deg) scale(1.06);
}

.quick-add .icon {
  width: 15px;
  height: 15px;
}

.garden-card {
  padding: 18px 20px 14px;
  overflow: hidden;
}

.garden-heading {
  margin-bottom: 0;
}

.garden-count {
  font-family: var(--font-digit);
  font-size: 11px;
  color: var(--muted);
}

.garden-scene {
  position: relative;
  height: 132px;
  margin: 2px -6px 0;
}

.garden-glow {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 74%;
  height: 60%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, var(--accent-soft), transparent 68%);
  opacity: 0.8;
}

.garden-plants {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 2px;
  padding: 0 8px;
}

.garden-plant {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 11%;
  min-width: 22px;
  max-width: 34px;
  height: calc(36px + (var(--plant-index) % 3) * 6px);
  opacity: 0.24;
  filter: grayscale(1) blur(0.3px);
  transform: translateY(5px) scale(0.75);
  transform-origin: bottom center;
  transition: opacity 0.5s, filter 0.5s, transform 0.6s var(--ease-spring);
}

.garden-plant svg {
  position: absolute;
  bottom: 14px;
  width: 80%;
  height: auto;
  filter: drop-shadow(0 4px 5px rgba(90, 30, 20, 0.14));
}

.plant-stem {
  position: absolute;
  bottom: 0;
  width: 2px;
  height: 22px;
  border-radius: 2px;
  background: var(--leaf);
  opacity: 0.55;
}

.garden-plant.is-grown {
  opacity: 1;
  filter: none;
  transform: translateY(0) scale(1);
}

.garden-plant.is-grown:nth-child(odd) {
  animation: plant-sway 5s ease-in-out -1s infinite;
}

.garden-plant.is-grown:nth-child(3n) {
  animation-delay: -2.5s;
}

@keyframes plant-sway {
  0%, 100% { transform: rotate(-1.4deg); }
  50% { transform: rotate(1.6deg); }
}

.garden-ground {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 0;
  height: 42px;
  overflow: hidden;
  border-radius: 50% 50% 10px 10px / 22px 22px 10px 10px;
}

.ground-hill {
  position: absolute;
  inset-inline: 0;
  border-radius: 50%;
}

.hill-back {
  bottom: 2px;
  height: 36px;
  background: color-mix(in srgb, var(--leaf) 16%, var(--surface-2));
}

.hill-front {
  bottom: -12px;
  height: 45px;
  background: color-mix(in srgb, var(--leaf) 25%, var(--surface-2));
  opacity: 0.9;
}

.ground-leaf {
  position: absolute;
  z-index: 3;
  width: 13px;
  height: 6px;
  border-radius: 100% 0 100% 0;
  background: var(--leaf);
  opacity: 0.55;
}

.leaf-a { left: 14%; bottom: 14px; transform: rotate(20deg); }
.leaf-b { left: 52%; bottom: 8px; transform: rotate(-18deg); }
.leaf-c { right: 16%; bottom: 15px; transform: rotate(28deg); }

.garden-note {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
}

.focus-strip {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
  margin-top: 22px;
  padding: 18px 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--glass);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.strip-stat {
  display: flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}

.strip-stat > span {
  margin-right: 4px;
  color: var(--muted);
  font-size: 10px;
}

.strip-stat strong {
  font-family: var(--font-digit);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.strip-stat small {
  color: var(--muted);
  font-size: 9px;
}

.strip-divider {
  width: 1px;
  height: 24px;
  background: var(--line);
}

.strip-quote {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}

.quote-mark {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 0.8;
}

.strip-quote p {
  overflow: hidden;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-style: italic;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Decorative layers must never intercept clicks. */
.checkin-card::after,
.timer-card::before,
.timer-card::after,
.level-card::after,
.achievement-card.is-ready::after,
.task-item.is-active::before,
.gacha-hero::before,
.gacha-hero::after {
  pointer-events: none;
}

/* ---------- toast / currency / canvas ---------- */
.toast-region {
  position: fixed;
  left: 50%;
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 22px));
  z-index: 2100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(92vw, 520px);
  pointer-events: none;
  transform: translateX(-50%);
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 11px 16px 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 99px;
  background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
  box-shadow: var(--shadow-float);
  color: var(--text);
  font-size: 12px;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: opacity 0.26s, transform 0.35s var(--ease-spring);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast.is-leaving {
  opacity: 0;
  transform: translateY(8px) scale(0.96);
}

.toast-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
}

.toast-icon .icon {
  width: 14px;
  height: 14px;
}

.toast-text {
  line-height: 1.5;
  padding-right: 4px;
}

.toast-warn .toast-icon {
  background: var(--accent-soft);
  color: var(--accent);
}

.toast-success .toast-icon {
  background: var(--leaf-soft);
  color: var(--leaf);
}

.coin-floater {
  position: fixed;
  z-index: 2200;
  pointer-events: none;
  color: var(--accent);
  font-family: var(--font-digit);
  font-size: 16px;
  font-weight: 700;
  text-shadow: 0 2px 8px var(--surface);
  animation: coin-float-up 1s var(--ease-spring) forwards;
}

@keyframes coin-float-up {
  0% { opacity: 0; transform: translate(-50%, 0) scale(0.6); }
  25% { opacity: 1; transform: translate(-50%, -8px) scale(1.1); }
  100% { opacity: 0; transform: translate(-50%, -50px) scale(0.95); }
}

.fx-canvas {
  position: fixed;
  inset: 0;
  z-index: 1600;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.noscript {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 30px;
  background: var(--surface);
  color: var(--text);
  text-align: center;
}

/* ---------- footer / mobile nav ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
}

.footer-brand svg {
  width: 18px;
  height: 18px;
}

.footer-link {
  color: var(--muted);
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-link:hover {
  color: var(--primary);
}

.mobile-nav {
  display: none;
}

/* ---------- performance guard during canvas celebrations ---------- */
body.is-fx-running .skin-fx {
  opacity: 0.28 !important;
  transition: opacity 0.25s ease;
}

body.is-fx-running .skin-fx-aurora,
body.is-fx-running .skin-fx-holo,
body.is-fx-running .skin-fx-sheen,
body.is-fx-running .skin-fx-sparkles i,
body.is-fx-running .ambient-orb,
body.is-fx-running .floating-dot,
body.is-fx-running .timer-ticks,
body.is-fx-running .timer-sparkles i,
body.is-fx-running .timer-aura,
body.is-fx-running .card-sheen,
body.is-fx-running .timer-card,
body.is-fx-running .nav-item.is-active,
body.is-fx-running .brand-copy strong,
body.is-fx-running .timer-digits,
body.is-fx-running .topbar::after,
body.is-fx-running .celebration-rays,
body.is-fx-running .complete-mascot svg,
body.is-fx-running .complete-star,
body.is-fx-running .confetti-chip {
  animation-play-state: paused !important;
}

body.is-fx-running .celebration-backdrop {
  background: rgba(30, 22, 15, 0.82);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  scroll-behavior: auto !important;
  transition-duration: 0.001ms !important;
}

body.reduce-motion .skin-fx,
body.reduce-motion .timer-sparkles,
body.reduce-motion .card-sheen,
body.reduce-motion .timer-aura {
  opacity: 0 !important;
}

/* ---------- low-power profile: fewer decorative layers, same look ---------- */
html[data-fx-quality="low"] .skin-fx-holo {
  display: none;
}

html[data-fx-quality="low"] .skin-fx-aurora.aurora-two {
  display: none;
}

html[data-fx-quality="low"] .skin-fx-sparkles i:nth-child(n+8),
html[data-fx-quality="low"] .timer-sparkles i:nth-child(n+5),
html[data-fx-quality="low"] .skin-starfield i:nth-child(n+8),
html[data-fx-quality="low"] .effect-preview .fx-shape:nth-child(n+8) {
  display: none;
}

html[data-fx-quality="low"] .ambient-orb,
html[data-fx-quality="low"] .floating-dot,
html[data-fx-quality="low"] .timer-ticks,
html[data-fx-quality="low"] .garden-plant.is-grown {
  animation: none;
}
