:root {
    --accent: #6bc5ff;
    --accent-soft: rgba(107, 197, 255, 0.35);
    --modal-bg: rgba(10, 15, 20, 0.85);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", sans-serif;
    color: #fff; overflow: hidden; background: #0a0f14;
    -webkit-tap-highlight-color: transparent; margin: 0; padding: 0; height: 100%; width: 100%;
}
body.no-copy {
    user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none;
    -webkit-touch-callout: none; -webkit-user-drag: none;
}
body.custom-cursor, body.custom-cursor * { cursor: url("var(--cursor-url)"), auto; }

.bg-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-image) center center / cover no-repeat;
    filter: brightness(var(--bg-bright, 0.5)) saturate(1.1);
    z-index: -2; will-change: transform; opacity: 0; transition: opacity 0.8s ease-in-out;
}
.bg-container.zoom { animation: bgSlowZoom 30s infinite alternate ease-in-out; }
.bg-container.loaded { opacity: 1; }
@keyframes bgSlowZoom { 0% { transform: scale(1); } 100% { transform: scale(1.05); } }

#rainCanvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
#fxCanvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9990; pointer-events: none; }

.page-wrap {
    opacity: 0; transform: scale(0.95) translateZ(0);
    transition: opacity 0.3s ease, transform 0.3s ease; will-change: transform, opacity;
    height: 100vh; overflow-y: auto; overflow-x: hidden; display: flex; align-items: center; justify-content: center;
    scrollbar-width: none; -ms-overflow-style: none;
}
.page-wrap::-webkit-scrollbar { width: 0; height: 0; display: none; }
.page-wrap.show { opacity: 1; transform: scale(1) translateZ(0); }

.main {
    position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center; padding: 20px 20px 30px; text-align: center;
    width: 100%; max-width: 1100px; margin: 0 auto;
}
.main > * {
    opacity: 0; transform: translateY(-40px) scale(0.94) translateZ(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}
.page-wrap.show .main > * { opacity: 1; transform: translateY(0) scale(1) translateZ(0); }

.avatar {
    width: var(--avatar-size, 110px); height: var(--avatar-size, 110px);
    border-radius: var(--avatar-radius, 50%); border: 3px solid rgba(255, 255, 255, 0.4);
    background: var(--avatar-image) center center / cover no-repeat; margin-bottom: 20px;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.2); transition: box-shadow 0.5s; flex-shrink: 0;
}
.avatar:hover { box-shadow: 0 0 40px var(--accent-soft); }

h1 { font-size: clamp(28px, 5vw, 40px); font-weight: 700; letter-spacing: 2px; margin-bottom: 12px; text-shadow: 0 0 18px rgba(0, 0, 0, 0.7), 0 0 8px rgba(255, 255, 255, 0.2); }
h1 .cursor-blink { display: inline-block; width: 2px; background: var(--accent); margin-left: 2px; animation: blink 0.8s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.desc { font-size: clamp(14px, 2.5vw, 17px); opacity: 0.85; margin-bottom: 30px; font-weight: 300; letter-spacing: 1px; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); white-space: pre-line; }

/* 一言 */
.quote { font-size: clamp(13px, 2.2vw, 16px); opacity: 0.8; margin-bottom: 26px; font-style: italic; min-height: 1.4em; color: var(--accent); transition: opacity 0.5s; letter-spacing: 0.5px; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.quote.fade { opacity: 0; }

/* 按钮组 */
.btn-group { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 950px; margin-bottom: 30px; }
.link-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 16px; }
.link-tab { padding: 7px 18px; border-radius: 40px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.75); cursor: pointer; font-size: 13px; transition: all .3s; }
.link-tab:hover { background: rgba(255,255,255,.14); color: #fff; }
.link-tab.active { background: var(--accent); border-color: var(--accent); color: #04121c; font-weight: 600; }
.btn-group a {
    position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px;
    background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 50px; color: #fff; text-decoration: none;
    font-size: clamp(13px, 2vw, 15px); font-weight: 500; letter-spacing: 0.5px;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1); overflow: hidden; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.btn-group a:hover { background: rgba(255, 255, 255, 0.2); border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4), 0 0 15px var(--accent-soft); }
.btn-group a:active { transform: translateY(0px); transition: all 0.1s; }
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.5); transform: scale(0); animation: rippleEffect 0.7s ease-out; pointer-events: none; }
@keyframes rippleEffect { to { transform: scale(4.5); opacity: 0; } }

/* 留言板 / 友情链接 入口按钮 */
.friend-link-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 950px; margin: 0 auto 30px; }
.friend-link-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 50px; color: #fff;
    font-size: clamp(13px, 2vw, 15px); font-weight: 500; letter-spacing: 0.5px; font-family: inherit;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1); overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); cursor: pointer; white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.friend-link-btn .icon { font-size: 1.05em; line-height: 1; }
.friend-link-btn:hover { background: rgba(255, 255, 255, 0.2); border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4), 0 0 15px var(--accent-soft); }
.friend-link-btn:active { transform: translateY(0); transition: all 0.1s; }

/* 通用卡片模块 */
.mod-card { width: 100%; max-width: 760px; background: rgba(255,255,255,.05); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 22px 24px; margin-bottom: 26px; text-align: left; }
.mod-card h3 { font-size: 16px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; color: #fff; }
.mod-card h3 .ic { font-size: 18px; }

/* 倒计时 */
.countdown-list { display: flex; flex-wrap: wrap; gap: 14px; }
.countdown-item { flex: 1; min-width: 130px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 14px; text-align: center; }
.countdown-item .cd-name { font-size: 13px; opacity: .8; margin-bottom: 8px; }
.countdown-item .cd-val { font-size: 24px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.countdown-item .cd-unit { font-size: 12px; opacity: .7; margin-top: 4px; }

/* 技能条 */
.skill-row { margin-bottom: 14px; }
.skill-row:last-child { margin-bottom: 0; }
.skill-head { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 6px; }
.skill-bar { height: 8px; background: rgba(255,255,255,.12); border-radius: 8px; overflow: hidden; }
.skill-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #fff); border-radius: 8px; transition: width 1.2s cubic-bezier(.22,1,.36,1); }

/* 时间轴 */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: rgba(255,255,255,.18); }
.tl-item { position: relative; margin-bottom: 18px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-item::before { content: ''; position: absolute; left: -22px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(255,255,255,.1); }
.tl-date { font-size: 12px; color: var(--accent); margin-bottom: 3px; }
.tl-title { font-size: 14.5px; font-weight: 600; margin-bottom: 3px; }
.tl-desc { font-size: 13px; opacity: .78; line-height: 1.6; }

/* 社交矩阵 */
.social-grid { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.social-item { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: 40px; color: #fff; text-decoration: none; font-size: 14px; transition: all .3s; }
.social-item:hover { background: rgba(255,255,255,.16); border-color: var(--accent); transform: translateY(-2px); }
.social-item .qr-pop { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) scale(.8); width: 150px; height: 150px; background: #fff; border-radius: 12px; padding: 8px; opacity: 0; visibility: hidden; transition: all .3s; box-shadow: 0 12px 30px rgba(0,0,0,.5); z-index: 20; }
.social-item .qr-pop img { width: 100%; height: 100%; object-fit: contain; }
.social-item:hover .qr-pop { opacity: 1; visibility: visible; transform: translateX(-50%) scale(1); }

/* 相册缩略 */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.gallery-thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; cursor: pointer; border: 1px solid rgba(255,255,255,.12); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-thumb:hover img { transform: scale(1.08); }
.gallery-thumb .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 8px; font-size: 11px; background: linear-gradient(transparent, rgba(0,0,0,.7)); }

/* info */
.info { font-size: clamp(12px, 2vw, 14px); opacity: 0.9; line-height: 2; padding: 18px 0 8px; width: 100%; }
.info .online-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #34d399; margin-right: 5px; box-shadow: 0 0 8px #34d399; animation: pulseDot 1.6s infinite; }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

/* 备案 */
.beian-info { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px; padding: 7px 12px calc(7px + env(safe-area-inset-bottom)); box-sizing: border-box; max-width: 100%; font-size: 12px; line-height: 1.8; color: rgba(255, 255, 255, 0.78); background: transparent; text-align: center; }
.beian-info a { display: inline-flex; align-items: center; justify-content: center; gap: 4px; max-width: 100%; color: rgba(255, 255, 255, 0.86); text-decoration: none; white-space: nowrap; }
.beian-info a:hover { color: #fff; text-decoration: underline; }
.beian-info img { display: inline-block; flex: 0 0 17px; width: 17px; height: 17px; object-fit: contain; }
@media (max-width: 520px) { .beian-info { gap: 3px 5px; padding-left: 6px; padding-right: 6px; font-size: 10px; } .beian-info a { white-space: normal; } }

/* 顶部滚动公告 */
.notice-bar { position: fixed; top: 0; left: 0; right: 0; height: 34px; z-index: 9995; background: rgba(10,15,20,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.1); overflow: hidden; display: flex; align-items: center; }
.notice-bar .nb-tag { flex-shrink: 0; padding: 0 12px; font-size: 12px; color: #04121c; background: var(--accent); height: 100%; display: flex; align-items: center; font-weight: 600; }
.notice-marquee { flex: 1; overflow: hidden; position: relative; height: 100%; }
.notice-marquee span { position: absolute; white-space: nowrap; font-size: 13px; line-height: 34px; padding-left: 100%; animation: marquee var(--nb-speed, 20s) linear infinite; color: rgba(255,255,255,.9); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* 浮动按钮通用 */
.float-btn { position: fixed; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, 0.3); color: #fff; font-size: 24px; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 100; transition: all 0.3s; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); user-select: none; -webkit-tap-highlight-color: transparent; }
.float-btn:hover { background: rgba(255, 255, 255, 0.25); transform: scale(1.05); border-color: var(--accent); }
.music-btn { right: 25px; bottom: 25px; }
.music-btn::before { content: ""; position: absolute; width: 100%; height: 100%; border-radius: 50%; background: transparent; border: 2px solid rgba(255, 255, 255, 0.4); animation: pulseRing 2s infinite; }
@keyframes pulseRing { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.5); opacity: 0; } }
.music-btn.playing { animation: softSpin 3s linear infinite; background: rgba(255, 255, 255, 0.2); }
@keyframes softSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.random-bg-btn { right: 25px; bottom: 88px; font-size: 20px; }
.lang-btn { right: 25px; top: 20px; width: auto; height: 34px; border-radius: 20px; padding: 0 14px; font-size: 13px; }
.notice-offset .lang-btn { top: 48px; }

/* 看板娘 */
.pet { position: fixed; bottom: 20px; z-index: 98; width: var(--pet-size, 90px); cursor: pointer; transition: transform .3s; user-select: none; -webkit-user-drag: none; }
.pet.left { left: 20px; }
.pet.right { right: 90px; }
.pet:hover { transform: translateY(-6px) scale(1.04); }
.pet img { width: 100%; display: block; filter: drop-shadow(0 6px 14px rgba(0,0,0,.4)); }
.pet-bubble { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) scale(.85); background: rgba(20,28,40,.95); border: 1px solid rgba(255,255,255,.2); color: #fff; padding: 8px 14px; border-radius: 14px; font-size: 12.5px; white-space: nowrap; opacity: 0; visibility: hidden; transition: all .3s; }
.pet-bubble.show { opacity: 1; visibility: visible; transform: translateX(-50%) scale(1); }
.pet.left .pet-bubble { left: 0; transform: translateX(0) scale(.85); }
.pet.left .pet-bubble.show { transform: translateX(0) scale(1); }

/* Toast */
.custom-toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-120px); background: rgba(20, 20, 30, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 60px; padding: 14px 28px; color: #fff; font-size: clamp(13px, 2vw, 15px); font-weight: 500; letter-spacing: 0.5px; box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.1); z-index: 9999; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.custom-toast.show { transform: translateX(-50%) translateY(0); }
.notice-offset .custom-toast { top: 50px; }
.toast-icon { font-size: 20px; }

/* 弹窗（友链 / 留言 / 相册灯箱） */
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 10000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s ease; padding: 20px; }
.overlay.active { opacity: 1; visibility: visible; }
.modal { background: rgba(20, 28, 40, 0.94); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 24px; max-width: 520px; width: 100%; max-height: 82vh; overflow-y: auto; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6); transform: scale(0.92) translateY(30px); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease; opacity: 0; }
.overlay.active .modal { transform: scale(1) translateY(0); opacity: 1; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 28px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.modal-header h2 { font-size: clamp(18px, 3vw, 24px); font-weight: 600; letter-spacing: 1px; color: #fff; margin: 0; display: flex; align-items: center; gap: 10px; }
.modal-close { width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.7); font-size: 22px; cursor: pointer; transition: all 0.3s; display: flex; align-items: center; justify-content: center; line-height: 1; flex-shrink: 0; }
.modal-close:hover { background: rgba(255, 255, 255, 0.18); color: #fff; transform: rotate(90deg); }
.modal-body { padding: 20px 28px 28px; }
.modal-body .friend-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; margin-bottom: 10px; background: rgba(255, 255, 255, 0.05); border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.06); transition: all 0.3s ease; text-decoration: none; color: rgba(255, 255, 255, 0.85); }
.modal-body .friend-item:last-child { margin-bottom: 0; }
.modal-body .friend-item:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.2); transform: translateX(4px); color: #fff; }
.modal-body .friend-item .name { font-size: clamp(14px, 2vw, 16px); font-weight: 500; display: flex; align-items: center; gap: 10px; }
.modal-body .friend-item .name .emoji { font-size: 18px; }
.modal-body .friend-item .arrow { font-size: 16px; opacity: 0.4; }
.empty-tip { text-align: center; color: rgba(255, 255, 255, 0.5); padding: 30px 0; font-size: 15px; }

/* 留言板 */
.gb-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.gb-form input, .gb-form textarea { width: 100%; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 10px 12px; color: #fff; font-size: 14px; font-family: inherit; outline: none; }
.gb-form textarea { min-height: 70px; resize: vertical; }
.gb-form input:focus, .gb-form textarea:focus { border-color: var(--accent); }
.gb-submit { align-self: flex-start; background: var(--accent); color: #04121c; border: none; border-radius: 30px; padding: 9px 22px; font-size: 14px; font-weight: 600; cursor: pointer; transition: filter .2s; }
.gb-submit:hover { filter: brightness(1.1); }
.gb-submit:disabled { opacity: .5; cursor: not-allowed; }
.gb-item { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.gb-item .gb-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.gb-item .gb-name { font-weight: 600; font-size: 14px; color: var(--accent); }
.gb-item .gb-time { font-size: 11.5px; opacity: .55; }
.gb-item .gb-content { font-size: 13.5px; line-height: 1.6; opacity: .9; word-break: break-word; }
.gb-item .gb-reply { margin-top: 8px; padding: 8px 12px; background: rgba(107,197,255,.1); border-left: 3px solid var(--accent); border-radius: 6px; font-size: 13px; }
.gb-item .gb-reply b { color: var(--accent); }

/* 表单弹窗（友链申请）通用输入 */
.apply-form { display: flex; flex-direction: column; gap: 12px; }
.apply-form label { font-size: 13px; opacity: .8; }
.apply-form input { width: 100%; background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 10px 12px; color: #fff; font-size: 14px; outline: none; }
.apply-form input:focus { border-color: var(--accent); }

/* 相册灯箱 */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 10002; display: none; align-items: center; justify-content: center; padding: 30px; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 92%; max-height: 88%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.lightbox .lb-close { position: absolute; top: 20px; right: 26px; font-size: 34px; color: #fff; cursor: pointer; opacity: .7; }
.lightbox .lb-close:hover { opacity: 1; }

/* 访问密码 / 维护 全屏页 */
.gate-wrap { position: fixed; inset: 0; z-index: 10001; background: #0a0f14; display: flex; align-items: center; justify-content: center; padding: 20px; }
.gate-bg { position: absolute; inset: 0; background: var(--bg-image) center center / cover no-repeat; filter: brightness(.3) blur(3px); }
.gate-card { position: relative; z-index: 2; width: 100%; max-width: 380px; background: rgba(20,28,40,.9); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.15); border-radius: 22px; padding: 34px 30px; text-align: center; box-shadow: 0 30px 60px rgba(0,0,0,.6); }
.gate-card .gate-icon { font-size: 46px; margin-bottom: 12px; }
.gate-card h2 { font-size: 20px; margin-bottom: 8px; }
.gate-card p { font-size: 13.5px; opacity: .75; margin-bottom: 22px; line-height: 1.7; }
.gate-card input { width: 100%; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.2); border-radius: 10px; padding: 12px 14px; color: #fff; font-size: 15px; text-align: center; outline: none; margin-bottom: 14px; letter-spacing: 2px; }
.gate-card input:focus { border-color: var(--accent); }
.gate-card button { width: 100%; background: var(--accent); color: #04121c; border: none; border-radius: 10px; padding: 12px; font-size: 15px; font-weight: 700; cursor: pointer; transition: filter .2s; }
.gate-card button:hover { filter: brightness(1.1); }
.gate-err { color: #f87171; font-size: 13px; margin-top: 12px; min-height: 1.2em; }

.friend-modal::-webkit-scrollbar, .modal::-webkit-scrollbar { width: 4px; }
.friend-modal::-webkit-scrollbar-thumb, .modal::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 10px; }

@media (max-width: 768px) {
    .music-btn, .float-btn.music-btn { right: 16px; bottom: 20px; width: 44px; height: 44px; font-size: 20px; }
    .random-bg-btn { right: 16px; bottom: 74px; width: 44px; height: 44px; }
    .btn-group { gap: 10px; }
    .btn-group a { padding: 10px 18px; }
    .mod-card { padding: 18px; }
    .pet { width: calc(var(--pet-size, 90px) * 0.8); }
    .pet.right { right: 70px; }
    .modal { max-width: 94%; max-height: 76vh; }
    .custom-toast { padding: 10px 20px; border-radius: 40px; white-space: normal; max-width: 90%; }
}
@media (max-width: 480px) {
    .music-btn, .float-btn.music-btn { right: 10px; bottom: 14px; width: 38px; height: 38px; font-size: 18px; }
    .random-bg-btn { right: 10px; bottom: 60px; width: 38px; height: 38px; font-size: 17px; }
    .lang-btn { right: 12px; }
    .btn-group a { padding: 8px 14px; font-size: 12px; }
    h1 { letter-spacing: 1px; }
    .main { padding: 15px 15px 20px; }
    .countdown-item .cd-val { font-size: 20px; }
}
