@charset "UTF-8";

:root {
    color-scheme: light;
    --text: #292642;
    --muted: #68667d;
    --soft: #858298;
    --glass: rgb(255 255 255 / var(--panel-alpha));
    --glass-soft: rgb(255 255 255 / calc(var(--panel-alpha) * .72));
    --glass-border: rgb(255 255 255 / .68);
    --control: rgb(255 255 255 / .48);
    --shadow: 0 22px 60px rgb(48 69 112 / .18), inset 0 1px 0 rgb(255 255 255 / .72);
    --card-shadow: 0 10px 30px rgb(43 61 100 / .12), inset 0 1px 0 rgb(255 255 255 / .7);
    --ease: cubic-bezier(.2,.8,.2,1);
}

html[data-theme="dark"] {
    color-scheme: dark;
    --text: #f4f2ff;
    --muted: #c0bed3;
    --soft: #a5a2bb;
    --glass: rgb(20 24 48 / var(--panel-alpha));
    --glass-soft: rgb(24 29 55 / calc(var(--panel-alpha) * .78));
    --glass-border: rgb(255 255 255 / .16);
    --control: rgb(20 24 48 / .48);
    --shadow: 0 24px 70px rgb(0 0 0 / .32), inset 0 1px 0 rgb(255 255 255 / .1);
    --card-shadow: 0 12px 34px rgb(0 0 0 / .23), inset 0 1px 0 rgb(255 255 255 / .08);
}

* { box-sizing: border-box; }
html { min-width: 300px; scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    color: var(--text);
    font-family: ui-rounded, "SF Pro Rounded", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }

.backdrop, .backdrop-shade {
    position: fixed;
    inset: 0;
    pointer-events: none;
}
.backdrop {
    inset: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(var(--bg-blur)) saturate(1.04);
    transform: scale(1.035);
    transition: filter .4s ease, background-image .4s ease;
    z-index: -3;
}
.backdrop-shade {
    z-index: -2;
    background: linear-gradient(180deg, rgb(109 181 241 / .05), rgb(31 91 145 / .08));
}
html[data-theme="dark"] .backdrop-shade {
    background: linear-gradient(180deg, rgb(8 13 35 / .44), rgb(7 11 29 / .7));
}

.sky-sparkles { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.sky-sparkles i {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgb(255 255 255 / .85);
    box-shadow: 0 0 14px 3px rgb(255 255 255 / .55);
    animation: sparkle 4.5s ease-in-out infinite;
}
.sky-sparkles i:nth-child(1) { left: 12%; top: 22%; }
.sky-sparkles i:nth-child(2) { right: 15%; top: 15%; animation-delay: -1.4s; transform: scale(.7); }
.sky-sparkles i:nth-child(3) { left: 22%; bottom: 20%; animation-delay: -2.6s; transform: scale(.55); }
.sky-sparkles i:nth-child(4) { right: 11%; bottom: 29%; animation-delay: -.7s; }
.sky-sparkles i:nth-child(5) { left: 6%; top: 58%; animation-delay: -3.3s; transform: scale(.65); }
.sky-sparkles i:nth-child(6) { right: 25%; top: 48%; animation-delay: -2s; transform: scale(.45); }

.glass-control {
    border: 1px solid var(--glass-border);
    background: var(--control);
    color: var(--text);
    box-shadow: 0 8px 24px rgb(32 52 88 / .14), inset 0 1px 0 rgb(255 255 255 / .35);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
.theme-toggle {
    position: fixed;
    top: max(22px, env(safe-area-inset-top));
    right: max(24px, env(safe-area-inset-right));
    z-index: 20;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: transform .25s var(--ease), background .25s ease;
}
.theme-toggle:hover { transform: translateY(-2px) rotate(8deg); }
.theme-toggle:active { transform: scale(.92); }
.theme-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .moon-icon { display: none; }
html[data-theme="dark"] .theme-toggle .sun-icon { display: none; }
html[data-theme="dark"] .theme-toggle .moon-icon { display: block; }

.ui-toggle {
    position: fixed;
    top: max(22px, env(safe-area-inset-top));
    right: max(82px, calc(env(safe-area-inset-right) + 70px));
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 7px;
    height: 46px;
    padding: 0 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
    transition: transform .25s var(--ease), background .25s ease, border-color .25s ease;
}
.ui-toggle:hover { transform: translateY(-2px); border-color: rgb(var(--accent-rgb) / .5); }
.ui-toggle:active { transform: scale(.95); }
.ui-toggle svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ui-toggle svg circle { fill: var(--accent); stroke: none; }
.ui-toggle:focus-visible { outline: 3px solid rgb(var(--accent-rgb) / .45); outline-offset: 3px; }
html.ui-switching .page-shell { animation: ui-refresh .55s var(--ease); }

.page-shell {
    width: min(720px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(58px, 8vh, 94px) 0 max(34px, env(safe-area-inset-bottom));
}
.profile-card {
    position: relative;
    padding: 36px 40px 34px;
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    background: var(--glass);
    box-shadow: var(--shadow);
    backdrop-filter: blur(25px) saturate(1.3);
    -webkit-backdrop-filter: blur(25px) saturate(1.3);
    text-align: center;
    overflow: hidden;
    animation: profile-in .8s var(--ease) both;
}
.profile-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% -10%, rgb(255 255 255 / .38), transparent 48%);
    pointer-events: none;
}
html[data-theme="dark"] .profile-card::before { background: radial-gradient(circle at 50% -10%, rgb(var(--accent-rgb) / .13), transparent 52%); }
.profile-decoration { position: absolute; color: rgb(var(--accent-rgb) / .48); font-size: 25px; animation: sparkle 4s ease-in-out infinite; }
.deco-one { left: 8%; top: 16%; }
.deco-two { right: 9%; top: 30%; font-size: 19px; animation-delay: -2s; }
.clock { position: relative; margin-bottom: 21px; }
.clock-time {
    display: block;
    font-family: "SF Pro Rounded", "Arial Rounded MT Bold", ui-rounded, system-ui, sans-serif;
    font-size: clamp(42px, 7vw, 58px);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
}
.clock-date { margin-top: 10px; color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: .5px; }
.avatar-wrap { position: relative; width: 112px; height: 112px; margin: 0 auto 20px; }
.avatar-ring {
    width: 100%;
    height: 100%;
    padding: 4px;
    border-radius: 50%;
    background: conic-gradient(from 30deg, var(--accent), #ff91cf, #70e4e2, var(--accent));
    box-shadow: 0 8px 25px rgb(var(--accent-rgb) / .25);
}
.avatar { display: block; width: 100%; height: 100%; border: 3px solid rgb(255 255 255 / .75); border-radius: 50%; object-fit: cover; background: #d9edff; }
.online-dot {
    position: absolute;
    right: 4px;
    bottom: 8px;
    width: 18px;
    height: 18px;
    border: 3px solid rgb(255 255 255 / .9);
    border-radius: 50%;
    background: #48d6a1;
    box-shadow: 0 3px 9px rgb(35 173 125 / .35);
}
.profile-card h1 { position: relative; margin: 0; font-size: clamp(25px, 5vw, 31px); line-height: 1.35; letter-spacing: 1px; }
.accent-line { width: 116px; height: 4px; margin: 14px auto 12px; border-radius: 99px; background: linear-gradient(90deg, var(--accent), #f08bd4); opacity: .85; }
.online-status { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 14px; }
.online-status span { width: 11px; height: 11px; border-radius: 50%; background: #68d884; box-shadow: 0 0 0 5px rgb(104 216 132 / .12); }
.site-intro { margin: 20px auto 0; color: var(--muted); font-size: 14px; line-height: 1.9; white-space: normal; }

.navigation { margin-top: 28px; }
.link-group + .link-group { margin-top: 23px; }
.link-group h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 12px 4px; color: var(--text); font-size: 15px; font-weight: 650; letter-spacing: .5px; text-shadow: 0 1px 8px rgb(255 255 255 / .45); }
html[data-theme="dark"] .link-group h2 { text-shadow: 0 2px 8px rgb(0 0 0 / .4); }
.link-group h2 > span { width: 4px; height: 17px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 12px rgb(var(--accent-rgb) / .25); }
.link-list { display: grid; gap: 12px; }
.link-card {
    display: flex;
    align-items: center;
    min-height: 86px;
    padding: 16px 22px;
    border: 1px solid var(--glass-border);
    border-radius: 21px;
    background: var(--glass-soft);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(22px) saturate(1.25);
    -webkit-backdrop-filter: blur(22px) saturate(1.25);
    text-decoration: none;
    opacity: 0;
    animation: card-in .65s var(--ease) forwards;
    animation-delay: var(--delay);
    transition: transform .25s var(--ease), background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.link-card:hover {
    transform: translateY(-4px);
    border-color: rgb(var(--accent-rgb) / .38);
    background: var(--glass);
    box-shadow: 0 17px 36px rgb(var(--accent-rgb) / .16), inset 0 1px 0 rgb(255 255 255 / .35);
}
.link-card:active { transform: translateY(-1px) scale(.992); }
.link-card:focus-visible, .theme-toggle:focus-visible, .music-ball:focus-visible { outline: 3px solid rgb(var(--accent-rgb) / .45); outline-offset: 3px; }
.link-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-right: 16px;
    border-radius: 15px;
    background: linear-gradient(145deg, rgb(var(--accent-rgb) / .12), rgb(255 255 255 / .26));
    font-size: 26px;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .25);
}
.link-icon > span { transform: translateY(-1px); }
.link-icon.image-icon img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; }
.link-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 4px; }
.link-copy strong { font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.link-copy small { color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.link-arrow { flex: 0 0 auto; width: 19px; height: 19px; margin-left: 12px; fill: none; stroke: var(--soft); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease), stroke .25s ease; }
.link-card:hover .link-arrow { transform: translateX(4px); stroke: var(--accent); }
.empty-links { padding: 24px; border: 1px dashed var(--glass-border); border-radius: 20px; background: var(--glass-soft); color: var(--muted); text-align: center; font-size: 14px; backdrop-filter: blur(16px); }
.site-footer { padding: 34px 12px 8px; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.7; text-shadow: 0 1px 7px rgb(255 255 255 / .4); }
html[data-theme="dark"] .site-footer { text-shadow: 0 1px 7px rgb(0 0 0 / .4); }

.music-player { position: fixed; left: max(25px, env(safe-area-inset-left)); bottom: max(25px, env(safe-area-inset-bottom)); z-index: 25; display: flex; align-items: center; gap: 10px; }
.music-ball {
    position: relative;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    padding: 0;
    border: 1px solid rgb(255 255 255 / .48);
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, var(--accent), #52cbd0);
    box-shadow: 0 10px 30px rgb(var(--accent-rgb) / .35), inset 0 1px 0 rgb(255 255 255 / .45);
    cursor: pointer;
    transition: transform .25s var(--ease);
}
.music-ball:hover { transform: translateY(-3px) scale(1.04); }
.music-disc { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgb(255 255 255 / .3); border-radius: 50%; background: rgb(255 255 255 / .13); }
.music-note { font-size: 23px; line-height: 1; transform: translateY(-1px); }
.music-player.is-playing .music-disc { animation: spin 7s linear infinite; }
.sound-wave { position: absolute; right: -2px; bottom: 1px; display: flex; align-items: flex-end; justify-content: center; gap: 2px; width: 20px; height: 20px; padding: 4px; border: 2px solid rgb(255 255 255 / .8); border-radius: 50%; background: var(--accent); }
.sound-wave i { width: 2px; height: 4px; border-radius: 2px; background: #fff; }
.music-player.is-playing .sound-wave i { animation: wave .65s ease-in-out infinite alternate; }
.music-player.is-playing .sound-wave i:nth-child(2) { animation-delay: -.35s; }
.music-player.is-playing .sound-wave i:nth-child(3) { animation-delay: -.15s; }
.music-label { max-width: 150px; padding: 8px 12px; border: 1px solid var(--glass-border); border-radius: 12px; background: var(--control); box-shadow: var(--card-shadow); backdrop-filter: blur(15px); color: var(--text); font-size: 12px; opacity: 0; transform: translateX(-8px); pointer-events: none; transition: .25s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-player:hover .music-label, .music-player:focus-within .music-label { opacity: 1; transform: translateX(0); }
.music-toast { position: fixed; left: 94px; bottom: max(38px, calc(env(safe-area-inset-bottom) + 13px)); z-index: 24; max-width: calc(100vw - 120px); padding: 10px 14px; border: 1px solid var(--glass-border); border-radius: 13px; background: var(--glass); box-shadow: var(--card-shadow); backdrop-filter: blur(16px); color: var(--text); font-size: 12px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: .35s var(--ease); }
.music-toast.show { opacity: 1; transform: translateY(0); }

@keyframes profile-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sparkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wave { from { height: 3px; } to { height: 10px; } }

/* 五套自动轮换 UI：各自拥有独立的配色、质感和卡片布局。 */
html[data-ui="sakura"] {
    --panel-alpha: .68;
    --glass-border: rgb(255 255 255 / .82);
    --shadow: 0 24px 70px rgb(165 80 112 / .2), inset 0 1px 0 rgb(255 255 255 / .8);
    --card-shadow: 0 12px 32px rgb(173 87 119 / .13), inset 0 1px 0 rgb(255 255 255 / .85);
}
html[data-ui="sakura"] .backdrop-shade { background: linear-gradient(160deg, rgb(255 220 235 / .12), rgb(186 88 128 / .14)); }
html[data-ui="sakura"] .profile-card { border-radius: 40px 24px 40px 24px; }
html[data-ui="sakura"] .profile-card::before { background: radial-gradient(circle at 50% -10%, rgb(255 218 234 / .7), transparent 52%); }
html[data-ui="sakura"] .avatar-ring { background: conic-gradient(from 30deg, #e2669b, #ffb4cc, #ffd88a, #e2669b); }
html[data-ui="sakura"] .accent-line { background: linear-gradient(90deg, #e2669b, #ffbd8a); }
html[data-ui="sakura"] .link-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-ui="sakura"] .link-card { min-height: 108px; align-items: flex-start; border-radius: 25px; }
html[data-ui="sakura"] .link-icon { background: linear-gradient(145deg, rgb(226 102 155 / .16), rgb(255 255 255 / .55)); }
html[data-ui="sakura"] .link-arrow { display: none; }
html[data-ui="sakura"] .link-card:hover { transform: translateY(-4px) rotate(-.4deg); }

html[data-ui="midnight"] {
    --panel-alpha: .7;
    --glass: rgb(13 20 46 / var(--panel-alpha));
    --glass-soft: rgb(18 28 60 / calc(var(--panel-alpha) * .84));
    --glass-border: rgb(122 162 255 / .24);
    --shadow: 0 24px 80px rgb(3 8 30 / .5), 0 0 50px rgb(122 162 255 / .08), inset 0 1px 0 rgb(255 255 255 / .12);
    --card-shadow: 0 14px 38px rgb(2 7 26 / .35), inset 0 1px 0 rgb(122 162 255 / .1);
}
html[data-ui="midnight"] .backdrop-shade { background: linear-gradient(180deg, rgb(5 10 32 / .35), rgb(4 8 26 / .75)); }
html[data-ui="midnight"] .profile-card { border-radius: 20px; }
html[data-ui="midnight"] .profile-card::before { background: radial-gradient(circle at 50% -10%, rgb(122 162 255 / .2), transparent 58%); }
html[data-ui="midnight"] .avatar-ring { background: conic-gradient(from 30deg, #7aa2ff, #b68cff, #5de1ff, #7aa2ff); }
html[data-ui="midnight"] .link-card { border-radius: 16px; }
html[data-ui="midnight"] .link-card:hover { box-shadow: 0 16px 44px rgb(66 104 210 / .25), inset 0 1px 0 rgb(122 162 255 / .18); }
html[data-ui="midnight"] .link-icon { background: linear-gradient(145deg, rgb(122 162 255 / .18), rgb(182 140 255 / .1)); }
html[data-ui="midnight"] .sky-sparkles i { width: 6px; height: 6px; box-shadow: 0 0 18px 4px rgb(122 162 255 / .7); }

html[data-ui="glacier"] {
    --panel-alpha: .82;
    --glass-border: rgb(255 255 255 / .9);
    --shadow: 0 18px 50px rgb(37 99 108 / .13), inset 0 1px 0 #fff;
    --card-shadow: 0 8px 24px rgb(37 99 108 / .09), inset 0 1px 0 #fff;
}
html[data-ui="glacier"] .backdrop { filter: blur(var(--bg-blur)) saturate(.85) brightness(1.08); }
html[data-ui="glacier"] .backdrop-shade { background: linear-gradient(180deg, rgb(218 255 248 / .12), rgb(36 122 126 / .09)); }
html[data-ui="glacier"] body { font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif; }
html[data-ui="glacier"] .profile-card { border-radius: 18px; }
html[data-ui="glacier"] .profile-card::before { background: linear-gradient(135deg, rgb(255 255 255 / .45), transparent 55%); }
html[data-ui="glacier"] .avatar-ring { padding: 3px; background: linear-gradient(135deg, #2f9f9a, #8bd9c9); box-shadow: 0 7px 20px rgb(47 159 154 / .2); }
html[data-ui="glacier"] .accent-line { width: 72px; background: #2f9f9a; }
html[data-ui="glacier"] .link-list { gap: 9px; }
html[data-ui="glacier"] .link-card { min-height: 76px; border-radius: 12px; box-shadow: var(--card-shadow); }
html[data-ui="glacier"] .link-card:hover { transform: translateY(-2px); border-color: rgb(47 159 154 / .4); }
html[data-ui="glacier"] .link-icon { border-radius: 11px; background: rgb(47 159 154 / .1); box-shadow: none; }

html[data-ui="cyber"] {
    --panel-alpha: .76;
    --text: #d8fff5;
    --muted: #8bc8bd;
    --soft: #69a99f;
    --glass: rgb(5 20 27 / var(--panel-alpha));
    --glass-soft: rgb(8 28 36 / calc(var(--panel-alpha) * .9));
    --glass-border: rgb(55 230 195 / .24);
    --shadow: 0 20px 65px rgb(0 0 0 / .45), inset 0 1px 0 rgb(55 230 195 / .12);
    --card-shadow: 0 10px 30px rgb(0 0 0 / .28), inset 0 1px 0 rgb(55 230 195 / .07);
}
html[data-ui="cyber"] body { font-family: "SFMono-Regular", Consolas, "Liberation Mono", "PingFang SC", monospace; }
html[data-ui="cyber"] .backdrop { filter: blur(var(--bg-blur)) saturate(1.4) hue-rotate(35deg); }
html[data-ui="cyber"] .backdrop-shade { background: linear-gradient(180deg, rgb(2 15 20 / .42), rgb(2 13 18 / .82)); }
html[data-ui="cyber"] .profile-card { border-radius: 10px; border-top: 2px solid var(--accent); }
html[data-ui="cyber"] .profile-card::before { background: linear-gradient(90deg, transparent, rgb(55 230 195 / .1), transparent); }
html[data-ui="cyber"] .clock-time { letter-spacing: 4px; }
html[data-ui="cyber"] .avatar-ring { padding: 3px; border-radius: 12px; background: linear-gradient(135deg, #37e6c3, #137b78); }
html[data-ui="cyber"] .avatar { border-radius: 8px; }
html[data-ui="cyber"] .online-dot { border-radius: 4px; }
html[data-ui="cyber"] .accent-line { width: 140px; height: 2px; border-radius: 0; background: linear-gradient(90deg, transparent, #37e6c3, transparent); }
html[data-ui="cyber"] .link-card { border-radius: 6px; border-left: 3px solid transparent; }
html[data-ui="cyber"] .link-card:hover { transform: translateX(6px); border-color: rgb(55 230 195 / .5); box-shadow: 0 10px 32px rgb(55 230 195 / .13); }
html[data-ui="cyber"] .link-icon { border-radius: 6px; background: rgb(55 230 195 / .09); box-shadow: inset 0 0 0 1px rgb(55 230 195 / .1); }
html[data-ui="cyber"] .link-group h2 > span { border-radius: 0; }

@keyframes ui-refresh { from { opacity: .3; transform: translateY(9px); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
    html[data-ui="sakura"] .link-list { grid-template-columns: 1fr; }
    html[data-ui="sakura"] .link-card { min-height: 84px; align-items: center; }
    .page-shell { width: calc(100% - 30px); padding-top: max(68px, calc(env(safe-area-inset-top) + 58px)); }
    .profile-card { padding: 28px 20px 27px; border-radius: 25px; }
    .clock { margin-bottom: 19px; }
    .clock-time { font-size: clamp(38px, 11vw, 49px); letter-spacing: 1px; }
    .clock-date { font-size: 13px; }
    .avatar-wrap { width: 98px; height: 98px; margin-bottom: 17px; }
    .online-dot { width: 16px; height: 16px; right: 3px; bottom: 6px; }
    .site-intro { font-size: 13px; }
    .ui-toggle { top: max(13px, env(safe-area-inset-top)); right: max(67px, calc(env(safe-area-inset-right) + 57px)); height: 42px; padding: 0 11px; font-size: 11px; }
    .ui-toggle svg { width: 16px; height: 16px; }
    .theme-toggle { top: max(13px, env(safe-area-inset-top)); right: max(15px, env(safe-area-inset-right)); width: 42px; height: 42px; }
    .navigation { margin-top: 24px; }
    .link-card { min-height: 80px; padding: 14px 16px; border-radius: 19px; }
    .link-icon { width: 45px; height: 45px; margin-right: 13px; border-radius: 14px; font-size: 24px; }
    .link-copy strong { font-size: 15px; }
    .link-arrow { margin-left: 7px; }
    .music-player { left: max(17px, env(safe-area-inset-left)); bottom: max(18px, env(safe-area-inset-bottom)); }
    .music-ball { width: 53px; height: 53px; }
    .music-label { display: none; }
    .music-toast { left: 81px; bottom: max(28px, calc(env(safe-area-inset-bottom) + 10px)); }
}

@media (max-width: 360px) {
    .page-shell { width: calc(100% - 22px); }
    .profile-card { padding-inline: 15px; }
    .link-card { padding-inline: 12px; }
    .link-icon { width: 41px; height: 41px; margin-right: 10px; }
    .link-copy small { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
