idle / css /boss.css
Lashtw's picture
feat(lottery,admin): fix map calibrator & cross-bank isolation, add draw settlement & prize overview (v=20261119_v3)
f424be1
Raw History Blame Contribute Delete
55.5 kB
/* ========================================================================== css/boss.css - 世界 Boss 決戰殿堂專用樣式表 ========================================================================== */ :root { --gold: #f5c451; --gold-deep: #d98a14; --glass-bg: rgba(255, 255, 255, 0.10); --glass-line: rgba(255, 255, 255, 0.28); --glass-hi: rgba(255, 255, 255, 0.18); } * { box-sizing: border-box; } html, body { margin: 0; height: 100%; background: #07080d; color: #f8fafc; font-family: 'Inter', 'Noto Sans TC', sans-serif; user-select: none; overflow: hidden; } .hidden { display: none !important; } /* ========== 測試控制列(僅測試用,預設完全隱藏,需帶 ?debug=1 網址參數) ========== */ .debug-bar { display: none !important; position: fixed; left: 10px; bottom: 10px; z-index: 3000; background: rgba(10, 10, 16, 0.88); backdrop-filter: blur(8px); border: 1px solid rgba(245, 196, 81, 0.35); border-radius: 12px; padding: 6px 8px; gap: 5px; flex-wrap: wrap; align-items: center; max-width: 560px; font-size: 11px; color: #cbd5e1; } .debug-bar.debug-active { display: flex !important; } .debug-bar.collapsed > :not(.debug-toggle) { display: none; } .debug-btn { background: #1e1a24; color: #fde68a; border: 1px solid #6b4a12; padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; cursor: pointer; transition: background 0.15s, transform 0.15s; } .debug-btn:hover { background: #6b4a12; color: #fff; transform: translateY(-1px); } /* ========== 退出大地圖按鈕樣式 ========== */ .btn-exit-map { position: relative; min-height: 58px; padding: 0 24px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 16px; font-size: 16px; font-weight: 800; letter-spacing: 1px; color: #e2e8f0; background: rgba(255, 255, 255, 0.08); backdrop-filter: blur(8px); box-shadow: 0 6px 18px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.15); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s; } .btn-exit-map:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(245, 196, 81, 0.6); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.45), 0 0 12px rgba(245, 196, 81, 0.25); } .btn-exit-map:active { transform: scale(0.98); } .btn-card-close { position: absolute; top: 14px; right: 14px; z-index: 20; width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, 0.4); background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #f1f5f9; font-size: 18px; font-weight: 800; display: flex; align-items: center; justify-content: center; cursor: pointer; touch-action: manipulation; box-shadow: 0 4px 14px rgba(0,0,0,0.5); transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s; } .btn-card-close:hover { background: rgba(239, 68, 68, 0.85); border-color: #fca5a5; color: #fff; transform: scale(1.08); } .btn-card-close:active { transform: scale(0.95); } /* ========== 共用背景 ========== */ .scene { position: fixed; inset: 0; overflow: hidden; } .scene-bg { position: absolute; inset: 0; background: url('../assets/boss_bg_arena.jpg') center / cover no-repeat; } /* ===================================================== 第一頁:Boss 介紹 ===================================================== */ #screenIntro .scene-bg { filter: blur(6px) brightness(0.45) saturate(1.1); transform: scale(1.06); } .intro-wrap { position: relative; z-index: 2; height: 100%; display: flex; align-items: flex-start; /* 防禦性:永遠自頂部對齊,解決平板/小螢幕負座標溢出導致頂部 X 按鈕消失的 Bug */ justify-content: center; padding: 24px 16px 48px; overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; overscroll-behavior-y: contain; } .intro-card { width: 100%; max-width: 1040px; margin: auto 0; /* 內容高度小於螢幕時垂直居中,大於螢幕時頂部自然貼齊並平滑向下捲動 */ display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04)); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border: 1px solid var(--glass-line); border-radius: 24px; padding: 26px; box-shadow: 0 30px 80px rgba(0,0,0,0.6), inset 0 1px 0 var(--glass-hi); animation: cardIn 0.5s cubic-bezier(0.22, 1, 0.36, 1); touch-action: pan-y; } @keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } } .intro-portrait { position: relative; border-radius: 18px; background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.48), transparent 65%), url('../assets/boss_bg_arena.jpg') center / cover no-repeat; border: 1px solid rgba(245, 196, 81, 0.38); overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 20px 14px; min-height: 380px; box-shadow: inset 0 0 60px rgba(0,0,0,0.6); } .intro-portrait::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, transparent 45%, rgba(0,0,0,0.45) 100%), linear-gradient(180deg, rgba(0,0,0,0.18) 0%, transparent 35%, transparent 65%, rgba(0,0,0,0.5) 100%); pointer-events: none; } .intro-portrait img { position: relative; z-index: 1; width: 96%; max-height: 460px; margin: auto; object-fit: contain; filter: drop-shadow(0 16px 28px rgba(0,0,0,0.88)); animation: idleFloat 3.8s ease-in-out infinite; } .intro-info { display: flex; flex-direction: column; gap: 16px; min-width: 0; } .boss-title { margin: 0; font-size: 40px; font-weight: 900; letter-spacing: 4px; background: linear-gradient(180deg, #fff 20%, #fde68a 60%, #f59e0b); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 3px 10px rgba(0,0,0,0.6)); } .boss-desc { margin: 0; font-size: 14px; line-height: 1.8; color: #e2e8f0; } .class-progress { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: #cbd5e1; } .class-progress-row { display: flex; justify-content: space-between; font-weight: 700; } .mini-hp { height: 8px; border-radius: 99px; background: rgba(0,0,0,0.45); overflow: hidden; border: 1px solid rgba(255,255,255,0.15); } .mini-hp > div { height: 100%; background: linear-gradient(90deg, #ef4444, #f97316, #eab308); transition: width 0.4s; } .reward-box { background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(245, 196, 81, 0.3); border-radius: 16px; padding: 14px 16px; } .reward-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; } .reward-head h2 { margin: 0; font-size: 16px; font-weight: 900; color: var(--gold); letter-spacing: 1px; } .reward-head span { font-size: 11px; color: #94a3b8; } .reward-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .reward-item { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 9px 12px; transition: transform 0.2s, border-color 0.2s, background 0.2s; } .reward-item:hover { transform: translateY(-2px); border-color: rgba(245, 196, 81, 0.6); background: rgba(245, 196, 81, 0.10); } .reward-item.mvp { grid-column: 1 / -1; border-color: rgba(239, 68, 68, 0.4); background: rgba(239, 68, 68, 0.10); } .reward-ico { font-size: 22px; flex-shrink: 0; } .reward-name { font-size: 13px; font-weight: 800; color: #fef3c7; } .reward-sub { font-size: 11px; color: #94a3b8; margin-top: 2px; } .reward-qual { margin-top: 10px; font-size: 12px; font-weight: 700; color: #fca5a5; } .reward-qual.ok { color: #86efac; } .btn-start { position: relative; overflow: hidden; width: 100%; min-height: 58px; border: none; border-radius: 16px; font-size: 20px; font-weight: 900; letter-spacing: 4px; color: #2a1500; background: linear-gradient(180deg, #ffe08a, #f5b323 55%, #d98a14); box-shadow: 0 10px 30px rgba(245, 179, 35, 0.45), inset 0 2px 0 rgba(255,255,255,0.6); cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, filter 0.15s; } .btn-start::before { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,0.65), transparent); transform: skewX(-20deg); animation: shine 2.8s infinite; } @keyframes shine { 0% { left: -60%; } 60%, 100% { left: 130%; } } .btn-start:hover:not(:disabled) { transform: translateY(-2px) scale(1.01); box-shadow: 0 14px 38px rgba(245, 179, 35, 0.6), inset 0 2px 0 rgba(255,255,255,0.6); } .btn-start:active:not(:disabled) { transform: scale(0.98); } .btn-start:disabled { cursor: not-allowed; color: #94a3b8; background: linear-gradient(180deg, #475569, #334155); box-shadow: none; } .btn-start:disabled::before { display: none; } /* ===================================================== 第二頁:全螢幕戰鬥 ===================================================== */ #screenBattle { display: flex; flex-direction: column; } #screenBattle .scene-bg { filter: brightness(0.95) contrast(1.05); } .battle-hud { position: relative; z-index: 20; margin: 12px 14px 0; padding: 10px 18px 12px; border-radius: 16px; background: rgba(10, 8, 16, 0.62); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.16); box-shadow: 0 8px 24px rgba(0,0,0,0.45); } .hud-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; } .hud-name { font-size: 20px; font-weight: 900; letter-spacing: 3px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.7); } .hud-hp-text { font-size: 15px; font-weight: 800; color: #fca5a5; font-variant-numeric: tabular-nums; } .hp-bar-outer { height: 20px; background: rgba(0,0,0,0.6); border-radius: 99px; overflow: hidden; border: 1.5px solid rgba(245, 196, 81, 0.5); box-shadow: inset 0 2px 6px rgba(0,0,0,0.8); } .hp-bar-inner { height: 100%; background: linear-gradient(90deg, #ef4444, #f97316, #eab308); border-radius: 99px; transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 0 14px rgba(239, 68, 68, 0.8); } .hp-bar-inner.low { background: linear-gradient(90deg, #b91c1c, #ef4444); animation: hpPulse 1.2s infinite; } @keyframes hpPulse { 50% { opacity: 0.6; } } .battle-stage { position: relative; z-index: 10; flex: 1; min-height: 0; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; } .boss-sprite { height: 100%; max-height: 100%; max-width: 92vw; object-fit: contain; margin-bottom: -40px; /* 讓 Boss 微微壓在題目卡後方,增加層次 */ filter: drop-shadow(0 18px 28px rgba(0,0,0,0.85)) drop-shadow(0 0 28px rgba(168, 85, 247, 0.45)); animation: idleFloat 3.8s ease-in-out infinite; transition: filter 0.35s ease, transform 0.25s ease; } @keyframes idleFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } } .boss-sprite.hit { animation: bossHit 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; filter: drop-shadow(0 0 35px #ef4444) brightness(1.5); } @keyframes bossHit { 10%, 90% { transform: translate3d(-8px, 0, 0) scale(0.97); } 20%, 80% { transform: translate3d(10px, -4px, 0) scale(1.03); } 30%, 50%, 70% { transform: translate3d(-12px, 4px, 0); } 40%, 60% { transform: translate3d(12px, 0, 0); } } .boss-sprite.crit-hit { animation: bossCrit 0.85s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; filter: drop-shadow(0 0 60px #f59e0b) drop-shadow(0 0 30px #ef4444) brightness(2); } @keyframes bossCrit { 15% { transform: scale(1.18) rotate(7deg) translateY(-20px); } 35% { transform: scale(0.88) rotate(-6deg) translateY(12px); } 55% { transform: scale(1.08) rotate(3deg); } 75% { transform: scale(0.97) rotate(-1deg); } 100% { transform: none; } } /* 浮動傷害 */ .floating-dmg-box { position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%); z-index: 60; pointer-events: none; width: 100%; display: flex; justify-content: center; } .dmg-normal { font-size: 48px; font-weight: 900; color: #ff6b6b; text-shadow: 0 4px 14px rgba(0,0,0,0.9), 0 0 14px rgba(239, 68, 68, 0.8); animation: dmgUp 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; } .dmg-notice { font-size: 26px; color: #fde68a; } @keyframes dmgUp { 0% { opacity: 0; transform: translateY(0) scale(0.6); } 20% { opacity: 1; transform: translateY(-25px) scale(1.2); } 80% { opacity: 1; transform: translateY(-50px) scale(1); } 100% { opacity: 0; transform: translateY(-75px) scale(0.8); } } .dmg-crit { text-align: center; font-size: 68px; font-weight: 900; line-height: 1.1; background: linear-gradient(180deg, #fff 15%, #fef08a 45%, #f59e0b 80%, #b45309); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 18px rgba(245, 158, 11, 0.9)) drop-shadow(0 6px 12px rgba(0,0,0,0.9)); animation: dmgCrit 1.35s cubic-bezier(0.17, 0.89, 0.32, 1.28) forwards; } .dmg-crit small { display: block; font-size: 26px; letter-spacing: 3px; margin-top: 4px; } @keyframes dmgCrit { 0% { opacity: 0; transform: scale(0.2) rotate(-14deg); } 15% { opacity: 1; transform: scale(1.45) rotate(4deg); } 30% { transform: scale(1.1) rotate(-3deg); } 75% { opacity: 1; transform: scale(1) translateY(-30px); } 100% { opacity: 0; transform: scale(0.8) translateY(-70px); } } /* 暴擊特效 */ .screen-flash { position: fixed; inset: 0; z-index: 2500; pointer-events: none; opacity: 0; background: radial-gradient(circle, rgba(254, 240, 138, 0.9), rgba(245, 158, 11, 0.6) 45%, rgba(239, 68, 68, 0.4) 85%, transparent); } .screen-flash.active { animation: flash 0.4s ease-out forwards; } @keyframes flash { 15% { opacity: 1; } 100% { opacity: 0; } } .speed-lines { position: absolute; inset: -20%; z-index: 15; pointer-events: none; opacity: 0; background: repeating-conic-gradient(from 0deg at 50% 55%, rgba(254, 240, 138, 0.28) 0deg 6deg, transparent 6deg 18deg); } .speed-lines.active { animation: lines 0.6s ease-out forwards; } @keyframes lines { 0% { opacity: 0; transform: scale(0.8); } 20% { opacity: 1; transform: scale(1.05) rotate(4deg); } 100% { opacity: 0; transform: scale(1.3) rotate(12deg); } } .slash { position: absolute; top: 45%; left: 50%; width: 130%; height: 8px; z-index: 25; pointer-events: none; background: linear-gradient(90deg, transparent, #fff 25%, #fef08a 50%, #f59e0b 75%, transparent); box-shadow: 0 0 25px #f59e0b, 0 0 45px #fff; transform: translate(-50%, -50%) rotate(-30deg) scaleX(0); } .slash.active { animation: slash 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; } @keyframes slash { 40% { transform: translate(-50%, -50%) rotate(-30deg) scaleX(1.2); opacity: 1; } 100% { transform: translate(-50%, -50%) rotate(-30deg) scaleX(1.4); opacity: 0; } } .heavy-shake { animation: heavyShake 0.55s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; } @keyframes heavyShake { 10% { transform: translate(-14px, -10px) rotate(-1deg); } 20% { transform: translate(16px, 12px) rotate(1.5deg); } 30% { transform: translate(-18px, 8px) rotate(-1deg); } 40% { transform: translate(14px, -8px) rotate(1deg); } 50% { transform: translate(-10px, 6px); } 60% { transform: translate(8px, -4px); } 80% { transform: translate(-4px, 2px); } 100% { transform: none; } } /* ========== 玻璃鏡面題目卡 ========== */ .glass-card { position: relative; z-index: 30; width: calc(100% - 28px); max-width: 820px; margin: 0 auto 14px; padding: 14px 18px 16px; border-radius: 22px; background: linear-gradient(140deg, rgba(255,255,255,0.20), rgba(255,255,255,0.06) 45%, rgba(255,255,255,0.10)); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); border: 1px solid var(--glass-line); box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.45), inset 0 -1px 0 rgba(255,255,255,0.08); overflow: hidden; } /* 鏡面高光 */ .glass-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 45%; background: linear-gradient(180deg, rgba(255,255,255,0.16), transparent); pointer-events: none; } .q-meta { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 12px; color: rgba(255,255,255,0.75); } .q-badge { font-weight: 800; padding: 3px 10px; border-radius: 99px; background: rgba(239, 68, 68, 0.25); border: 1px solid rgba(252, 165, 165, 0.55); color: #fecaca; } .q-badge.charge { background: rgba(245, 196, 81, 0.28); border-color: rgba(253, 230, 138, 0.7); color: #fef3c7; box-shadow: 0 0 12px rgba(245, 196, 81, 0.5); } .q-meta .crit-hint.buff { color: #fde68a; font-weight: 800; } .q-stem { position: relative; font-size: 17px; font-weight: 700; line-height: 1.5; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,0.5); padding: 12px 16px; margin-bottom: 12px; border-radius: 14px; background: rgba(0,0,0,0.22); border: 1px solid rgba(255,255,255,0.14); } .q-stem .tag { font-size: 12px; color: rgba(255,255,255,0.55); margin-left: 6px; font-weight: 500; } .q-stem .charge-tag { color: #fde68a; font-weight: 900; margin-right: 4px; } .q-stem img { display: block; max-width: 100%; max-height: 220px; height: auto; margin: 10px auto; border-radius: 10px; object-fit: contain; background: #ffffff; padding: 4px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4); border: 1px solid rgba(255, 255, 255, 0.2); } .options-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .opt-btn { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 10px 14px; border-radius: 14px; font-family: inherit; font-size: 15px; font-weight: 600; color: #fff; text-align: left; cursor: pointer; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.25); box-shadow: inset 0 1px 0 rgba(255,255,255,0.2); transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s; touch-action: manipulation; } .opt-btn:hover:not(:disabled) { transform: translateY(-2px); background: rgba(255,255,255,0.20); border-color: rgba(253, 230, 138, 0.8); box-shadow: 0 8px 20px rgba(0,0,0,0.3), 0 0 16px rgba(245, 196, 81, 0.3), inset 0 1px 0 rgba(255,255,255,0.3); } .opt-btn:active:not(:disabled) { transform: scale(0.98); } .opt-btn:disabled { cursor: default; } .opt-btn img { display: inline-block; vertical-align: middle; max-width: 130px; max-height: 80px; height: auto; border-radius: 6px; object-fit: contain; background: #ffffff; padding: 3px; margin: 2px 0; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); } .opt-btn .opt-tag { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; font-size: 13px; font-weight: 900; color: #fef3c7; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.25); } .opt-btn.correct { background: rgba(16, 185, 129, 0.38); border-color: #6ee7b7; box-shadow: 0 0 20px rgba(16, 185, 129, 0.55); } .opt-btn.wrong { background: rgba(239, 68, 68, 0.38); border-color: #fca5a5; } .opt-btn.dim { opacity: 0.5; } .requeue-notice { position: relative; margin-top: 10px; padding: 7px 12px; border-radius: 10px; font-size: 12px; font-weight: 700; color: #fde68a; background: rgba(245, 158, 11, 0.18); border: 1px solid rgba(245, 196, 81, 0.45); } /* ========== 結算彈窗 ========== */ .modal-overlay { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,0.6); backdrop-filter: blur(6px); } .modal-card { width: 100%; max-width: 440px; text-align: center; padding: 24px; border-radius: 22px; background: linear-gradient(140deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06)); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-line); box-shadow: 0 25px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.4); animation: cardIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); } .modal-card h2 { margin: 6px 0 14px; font-size: 22px; color: var(--gold); letter-spacing: 2px; } .res-rows { text-align: left; font-size: 14px; background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; } .res-rows div { display: flex; justify-content: space-between; padding: 4px 0; } .tail-kill { margin-bottom: 14px; padding: 10px; border-radius: 12px; font-weight: 800; color: #fecaca; background: rgba(239, 68, 68, 0.2); border: 1px solid rgba(252, 165, 165, 0.5); } .btn-modal { width: 100%; min-height: 48px; border: none; border-radius: 14px; font-family: inherit; font-size: 16px; font-weight: 900; letter-spacing: 2px; color: #2a1500; cursor: pointer; background: linear-gradient(180deg, #ffe08a, #f5b323 55%, #d98a14); transition: transform 0.15s; } .btn-modal:hover { transform: translateY(-2px); } /* ========== 手機版 ========== */ @media (max-width: 760px) { .intro-card { grid-template-columns: 1fr; gap: 16px; padding: 16px; } .intro-portrait { min-height: 240px; } .intro-portrait img { max-height: 260px; } .boss-title { font-size: 30px; } .reward-list { grid-template-columns: 1fr; } html, body { overflow: auto; } #screenIntro { position: absolute; min-height: 100%; } .hud-name { font-size: 16px; } .q-stem { font-size: 15px; } .options-grid { grid-template-columns: 1fr; gap: 8px; } .opt-btn { min-height: 46px; font-size: 14px; } .boss-sprite { margin-bottom: -20px; } .dmg-crit { font-size: 44px; } } /* ========== 版本更新公告模版 ========== */ .patch-modal-wrap { position: relative; border-radius: 20px; overflow: hidden; border: 1.5px solid rgba(245, 196, 81, 0.45); box-shadow: 0 25px 70px rgba(0,0,0,0.8), 0 0 40px rgba(168, 85, 247, 0.25); background: #090a10; max-width: 520px; width: 100%; color: #fff; animation: cardIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); text-align: left; } .patch-stage { position: relative; width: 100%; height: 220px; overflow: hidden; background: url('../assets/boss_bg_arena.jpg') center / cover no-repeat; display: flex; align-items: flex-end; justify-content: center; } .patch-stage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9, 10, 16, 0.15) 0%, rgba(9, 10, 16, 0.95) 90%); pointer-events: none; } .patch-silhouette-wrap { position: relative; z-index: 2; width: 100%; height: 100%; display: flex; align-items: flex-end; justify-content: center; } .patch-silhouette-box { position: relative; display: inline-block; line-height: 0; animation: silhouettePulse 3.5s ease-in-out infinite alternate; transform-origin: center bottom; } .patch-silhouette-img.is-silhouette { height: 200px; width: 200px; object-fit: contain; filter: brightness(0) drop-shadow(0 0 16px rgba(245, 196, 81, 0.95)) drop-shadow(0 0 35px rgba(168, 85, 247, 0.8)); display: block; } @keyframes silhouettePulse { 0% { transform: scale(1) translateY(0); filter: drop-shadow(0 0 12px rgba(245, 196, 81, 0.7)) drop-shadow(0 0 25px rgba(168, 85, 247, 0.6)); } 100% { transform: scale(1.025) translateY(-4px); filter: drop-shadow(0 0 22px rgba(245, 196, 81, 1)) drop-shadow(0 0 45px rgba(239, 68, 68, 0.75)); } } .silhouette-eye { position: absolute; border-radius: 50%; background: radial-gradient(circle, #fff 15%, #fef08a 45%, #f59e0b 85%); box-shadow: 0 0 8px #f59e0b, 0 0 18px #ef4444; z-index: 5; pointer-events: none; transform: translate(-50%, -50%) rotate(var(--eye-rot, 0deg)); transform-origin: center center; animation: eyeBlink 4s infinite ease-in-out; } .eye-left { left: var(--eye-l-x, 24.5%); top: var(--eye-l-y, 48.1%); width: var(--eye-l-w, 9px); height: var(--eye-l-h, 6px); --eye-rot: var(--eye-l-rot, 14deg); } .eye-right { left: var(--eye-r-x, 37.7%); top: var(--eye-r-y, 44.5%); width: var(--eye-r-w, 11px); height: var(--eye-r-h, 8px); --eye-rot: var(--eye-r-rot, -6deg); } @keyframes eyeBlink { 0%, 90%, 100% { opacity: 1; transform: translate(-50%, -50%) rotate(var(--eye-rot, 0deg)) scale(1, 1); } 93%, 95% { opacity: 0.15; transform: translate(-50%, -50%) rotate(var(--eye-rot, 0deg)) scale(1, 0.1); } } /* 眼睛定位與校準工具 (Eyes Calibrator) 專屬樣式 */ .calibrator-modal { width: 94%; max-width: 820px; max-height: 92vh; background: #0f172a; border: 1px solid rgba(245, 196, 81, 0.4); border-radius: 18px; box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(245, 196, 81, 0.2); display: flex; flex-direction: column; overflow: hidden; animation: modalPop 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28); } .calibrator-header { padding: 14px 20px; background: linear-gradient(90deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95)); border-bottom: 1px solid rgba(255, 255, 255, 0.1); display: flex; justify-content: space-between; align-items: center; } .calibrator-header h3 { margin: 0; font-size: 16px; color: #fde68a; display: flex; align-items: center; gap: 8px; } .calibrator-body { padding: 16px; overflow-y: auto; display: grid; grid-template-columns: 290px 1fr; gap: 20px; } @media (max-width: 720px) { .calibrator-body { grid-template-columns: 1fr; } } .calibrator-preview-col { display: flex; flex-direction: column; align-items: center; gap: 12px; } .calibrator-stage-wrap { width: 270px; height: 270px; background: radial-gradient(circle, #1e293b 0%, #090d16 100%); border: 2px dashed rgba(245, 196, 81, 0.35); border-radius: 14px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; user-select: none; } .cal-underlay-img { position: absolute; width: 250px; height: 250px; object-fit: contain; pointer-events: none; transition: opacity 0.2s ease; } .cal-silhouette-img { position: absolute; width: 250px; height: 250px; object-fit: contain; filter: brightness(0) drop-shadow(0 0 12px rgba(245, 196, 81, 0.9)) drop-shadow(0 0 25px rgba(168, 85, 247, 0.7)); pointer-events: none; transition: opacity 0.2s ease; } .cal-box { width: 250px; height: 250px; position: relative; } .cal-eye { position: absolute; border-radius: 50%; background: radial-gradient(circle, #fff 15%, #fef08a 45%, #f59e0b 85%); box-shadow: 0 0 8px #f59e0b, 0 0 18px #ef4444; pointer-events: none; z-index: 10; transform: translate(-50%, -50%); } /* 拖曳握把 */ .cal-handle { position: absolute; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; transform: translate(-50%, -50%); cursor: grab; z-index: 20; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 900; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.8); touch-action: none; } .cal-handle:active { cursor: grabbing; transform: translate(-50%, -50%) scale(1.15); } .cal-handle.handle-l { background: rgba(16, 185, 129, 0.85); box-shadow: 0 0 10px #10b981; } .cal-handle.handle-r { background: rgba(14, 165, 233, 0.85); box-shadow: 0 0 10px #0ea5e9; } .cal-mode-pills { display: flex; gap: 6px; width: 100%; justify-content: center; } .cal-pill-btn { padding: 5px 10px; font-size: 12px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); color: #cbd5e1; border-radius: 6px; cursor: pointer; font-weight: 700; transition: all 0.15s; } .cal-pill-btn.active { background: #d97706; border-color: #f59e0b; color: #fff; box-shadow: 0 0 10px rgba(217, 119, 6, 0.4); } .cal-controls-col { display: flex; flex-direction: column; gap: 12px; } .cal-card-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .cal-eye-card { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; padding: 10px; } .cal-card-title { font-size: 13px; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; } .cal-field { margin-bottom: 6px; font-size: 12px; color: #94a3b8; } .cal-field label { display: flex; justify-content: space-between; margin-bottom: 2px; } .cal-field label b { color: #fde68a; } .cal-field input[type="range"] { width: 100%; accent-color: #f59e0b; cursor: pointer; } .cal-json-box { background: #020617; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; padding: 8px 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 11px; color: #4ade80; max-height: 120px; overflow-y: auto; white-space: pre-wrap; word-break: break-all; } .cal-actions { display: flex; gap: 8px; flex-wrap: wrap; } .cal-act-btn { flex: 1; padding: 8px 12px; font-size: 12px; font-weight: 800; border-radius: 8px; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: transform 0.15s, box-shadow 0.15s; } .cal-btn-copy { background: linear-gradient(135deg, #15803d, #22c55e); color: #fff; } .cal-btn-copy:hover { box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4); transform: translateY(-1px); } .cal-btn-apply { background: linear-gradient(135deg, #b45309, #f59e0b); color: #fff; } .cal-btn-apply:hover { box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4); transform: translateY(-1px); } .cal-btn-reset { background: rgba(255, 255, 255, 0.1); color: #cbd5e1; flex: 0 0 auto; } .patch-body { position: relative; z-index: 3; padding: 0 20px 20px; background: #090a10; } .patch-badge-pill { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, #b45309, #d97706); color: #fff; font-size: 11px; font-weight: 900; padding: 3px 12px; border-radius: 99px; letter-spacing: 1px; box-shadow: 0 2px 10px rgba(217, 119, 6, 0.4); } .patch-title { margin: 6px 0 4px 0; font-size: 22px; font-weight: 900; letter-spacing: 2px; background: linear-gradient(180deg, #fff 20%, #fde68a 65%, #f59e0b 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; } .patch-subtitle { margin: 0 0 12px 0; font-size: 13px; font-weight: 700; color: #fca5a5; letter-spacing: 0.5px; } .patch-lore-box { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(245, 196, 81, 0.25); border-left: 4px solid #f59e0b; border-radius: 12px; padding: 10px 14px; font-size: 13px; line-height: 1.65; color: #e2e8f0; margin-bottom: 12px; } .patch-features-grid { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; } .patch-feat-item { display: flex; align-items: flex-start; gap: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; padding: 8px 12px; } .patch-feat-icon { font-size: 18px; line-height: 1; flex-shrink: 0; margin-top: 2px; } .patch-feat-tit { font-size: 13px; font-weight: 800; color: #fef3c7; } .patch-feat-sub { font-size: 11px; color: #cbd5e1; margin-top: 2px; line-height: 1.35; } .patch-btn-confirm { width: 100%; min-height: 46px; border: none; border-radius: 14px; font-family: inherit; font-size: 16px; font-weight: 900; letter-spacing: 2px; color: #2a1500; background: linear-gradient(180deg, #ffe08a, #f5b323 55%, #d98a14); cursor: pointer; box-shadow: 0 8px 24px rgba(245, 179, 35, 0.4); transition: transform 0.15s, box-shadow 0.15s; } .patch-btn-confirm:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(245, 179, 35, 0.55); } /* ===================================================== 大地圖沙盤呈現預覽模態視窗 ===================================================== */ .map-preview-modal { width: 96vw; max-width: 1280px; height: 92vh; max-height: 840px; background: #0f121d; border: 1px solid rgba(245, 196, 81, 0.45); border-radius: 20px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 90px rgba(0,0,0,0.9); animation: cardIn 0.35s cubic-bezier(0.22, 1, 0.36, 1); } .map-preview-header { padding: 12px 20px; background: #161a29; border-bottom: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .map-preview-body { flex: 1; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #faede1; padding: 8px; } .sandbox-wrap { position: relative; width: 100%; height: 100%; max-height: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,0.35); container-type: inline-size; user-select: none; } .sandbox-bg { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; } .sandbox-spots { position: absolute; inset: 0; pointer-events: none; } .sandbox-spot { position: absolute; pointer-events: auto; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; transition: all .25s cubic-bezier(.34,1.56,.64,1); } .sandbox-spot:hover { transform: translate(-50%, -54%) scale(1.08); z-index: 40; } .sandbox-thumb { position: relative; display: flex; align-items: center; justify-content: center; } .sandbox-thumb img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(45,30,20, 0.45)); } .sandbox-label { background: rgba(255,255,255,0.92); border: 1px solid rgba(180,130,100,0.35); border-radius: 8px; padding: 3px 8px; font-size: 11px; font-weight: 800; color: #334155; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,0.15); text-align: center; } /* 世界 Boss 沙盤微縮手辦專屬特效 */ .spot-boss-wrap { position: relative; display: flex; align-items: center; justify-content: center; animation: bossHoverFloat 4.2s ease-in-out infinite; } @keyframes bossHoverFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } } .spot-boss-aura { position: absolute; inset: -15%; border-radius: 50%; pointer-events: none; z-index: 1; background: radial-gradient(circle, rgba(168, 85, 247, 0.45) 0%, rgba(239, 68, 68, 0.28) 45%, transparent 72%); animation: bossAuraPulse 3.2s ease-in-out infinite alternate; } @keyframes bossAuraPulse { 0% { transform: scale(0.92); opacity: 0.75; } 100% { transform: scale(1.18); opacity: 1; filter: drop-shadow(0 0 16px rgba(239, 68, 68, 0.6)); } } .spot-boss-img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 14px 26px rgba(40, 10, 30, 0.6)) drop-shadow(0 0 20px rgba(168, 85, 247, 0.65)); transition: all .28s cubic-bezier(.34,1.56,.64,1); } .sandbox-spot:hover .spot-boss-img { filter: drop-shadow(0 20px 36px rgba(40, 10, 30, 0.75)) drop-shadow(0 0 32px rgba(245, 158, 11, 0.95)) drop-shadow(0 0 16px rgba(239, 68, 68, 0.9)); transform: scale(1.08); } /* 封印態 */ .sandbox-spot.boss-sealed .spot-boss-aura { background: radial-gradient(circle, rgba(100, 116, 139, 0.35) 0%, rgba(15, 23, 42, 0.6) 55%, transparent 75%); } .sandbox-spot.boss-sealed .spot-boss-img { filter: brightness(0.24) contrast(1.45) drop-shadow(0 10px 22px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 14px rgba(245, 196, 81, 0.4)); } .sandbox-spot.boss-sealed:hover .spot-boss-img { filter: brightness(0.35) contrast(1.4) drop-shadow(0 16px 30px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 24px rgba(245, 196, 81, 0.8)); } .spot-boss-seal-ring { position: absolute; inset: 4%; border: 2px dashed rgba(245, 196, 81, 0.7); border-radius: 50%; pointer-events: none; z-index: 3; animation: sealRingRotate 18s linear infinite; box-shadow: inset 0 0 15px rgba(245, 196, 81, 0.3), 0 0 15px rgba(245, 196, 81, 0.3); } @keyframes sealRingRotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } .spot-badge-boss { position: absolute; top: -6px; left: -8px; z-index: 6; background: linear-gradient(135deg, #ef4444, #f59e0b); color: #fff; font-size: 11px; font-weight: 900; padding: 2px 10px; border-radius: 99px; box-shadow: 0 4px 12px rgba(239, 68, 68, 0.45); border: 1.5px solid rgba(255, 255, 255, 0.9); display: flex; align-items: center; gap: 4px; white-space: nowrap; } .sandbox-spot.boss-sealed .spot-badge-boss { background: linear-gradient(135deg, #475569, #1e293b); color: #cbd5e1; box-shadow: 0 3px 10px rgba(15, 23, 42, 0.5); border-color: rgba(245, 196, 81, 0.6); } .sandbox-spot.spot-boss .sandbox-label { background: linear-gradient(135deg, rgba(26, 16, 36, 0.95), rgba(45, 18, 30, 0.95)) !important; border: 1.5px solid rgba(245, 196, 81, 0.6) !important; color: #fde047 !important; box-shadow: 0 8px 20px rgba(20, 10, 30, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important; } /* ========== 平板與手機響應式適配 (解決平板看不到右上角 X、手機難滑動問題) ========== */ @media (max-width: 900px) { .intro-wrap { padding: 16px 12px 40px; } .intro-card { grid-template-columns: 1fr; gap: 16px; padding: 18px; border-radius: 18px; } .btn-card-close { top: 12px; right: 12px; width: 44px; height: 44px; } .intro-portrait { min-height: 220px; max-height: 260px; } .intro-portrait img { max-height: 220px; } .boss-title { font-size: 32px; letter-spacing: 2px; } .reward-list { grid-template-columns: 1fr 1fr; gap: 6px; } .reward-item { padding: 8px 10px; } .btn-start { min-height: 52px; font-size: 18px; } } @media (max-height: 820px) { .intro-wrap { padding: 12px 14px 30px; } .intro-card { gap: 18px; padding: 18px 22px; } .intro-portrait { min-height: 320px; } .intro-portrait img { max-height: 380px; } .boss-title { font-size: 30px; letter-spacing: 2px; } .boss-desc { font-size: 13px; line-height: 1.6; } .reward-box { padding: 10px 14px; } .btn-start { min-height: 50px; font-size: 18px; } } @media (max-width: 600px) { .reward-list { grid-template-columns: 1fr; } .boss-title { font-size: 26px; } } /* ========== ☯️ 窮奇專屬:陰陽雙生同命與自由選邊破陣樣式 ========== */ .yinyang-hp-box { background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(30, 15, 45, 0.72)); border: 1px solid rgba(245, 196, 81, 0.42); border-radius: 16px; padding: 12px 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.12); } .yinyang-hp-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; font-size: 13px; font-weight: 900; color: #fde68a; } .yinyang-hp-head small { font-size: 11px; font-weight: 600; color: #cbd5e1; } .yinyang-hp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .yinyang-hp-card { border-radius: 12px; padding: 10px 12px; border: 1px solid rgba(255,255,255,0.16); background: rgba(0,0,0,0.35); transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; } .yinyang-hp-card.yang { border-color: rgba(249, 115, 22, 0.45); background: linear-gradient(145deg, rgba(239, 68, 68, 0.14), rgba(245, 158, 11, 0.08)); } .yinyang-hp-card.yin { border-color: rgba(56, 189, 248, 0.45); background: linear-gradient(145deg, rgba(14, 165, 233, 0.14), rgba(139, 92, 246, 0.10)); } .yinyang-hp-card.sealed { opacity: 0.78; border-color: rgba(148, 163, 184, 0.45); background: rgba(15, 23, 42, 0.65); } .yy-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; margin-bottom: 8px; } .yinyang-hp-card.yang .yy-title { color: #fed7aa; } .yinyang-hp-card.yin .yy-title { color: #bae6fd; } .yy-bar-line { display: flex; align-items: center; gap: 10px; } .yy-bar-track { flex: 1; height: 12px; border-radius: 99px; background: rgba(0,0,0,0.55); overflow: hidden; border: 1px solid rgba(255,255,255,0.18); } .yy-val { font-variant-numeric: tabular-nums; font-size: 12px; font-weight: 800; color: #fde68a; white-space: nowrap; } .yy-bar-fill { height: 100%; border-radius: 99px; transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1); } .yy-bar-fill.yang { background: linear-gradient(90deg, #dc2626, #f97316, #fbbf24); box-shadow: 0 0 10px rgba(249, 115, 22, 0.75); } .yy-bar-fill.yin { background: linear-gradient(90deg, #2563eb, #06b6d4, #a855f7); box-shadow: 0 0 10px rgba(56, 189, 248, 0.75); } .boss-countdown-banner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 14px; border-radius: 12px; background: linear-gradient(135deg, rgba(220, 38, 38, 0.25), rgba(245, 158, 11, 0.22)); border: 1.5px solid rgba(251, 191, 36, 0.65); box-shadow: 0 6px 20px rgba(239, 68, 68, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2); } .boss-countdown-banner .cd-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .boss-countdown-banner .cd-badge { background: linear-gradient(135deg, #ef4444, #d97706); color: #fff; font-size: 11px; font-weight: 900; padding: 3px 9px; border-radius: 99px; letter-spacing: 0.5px; } .boss-countdown-banner .cd-open-at { font-size: 13px; font-weight: 800; color: #fef3c7; } .boss-countdown-banner .cd-timer { font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 900; color: #fde047; background: rgba(0, 0, 0, 0.45); padding: 4px 12px; border-radius: 8px; border: 1px solid rgba(253, 224, 71, 0.4); text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8); } .orders-notice-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px 12px; border-radius: 10px; background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 196, 81, 0.35); font-size: 13px; font-weight: 700; color: #f8fafc; } .orders-notice-bar b { color: #fde047; font-size: 14px; } .yinyang-btn-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; } .btn-mode { position: relative; min-height: 68px; padding: 10px 10px; border-radius: 14px; border: 1.5px solid rgba(255,255,255,0.28); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-align: center; color: #fff; transition: transform 0.16s, box-shadow 0.16s, filter 0.16s; overflow: hidden; } .btn-mode.yang { background: linear-gradient(160deg, #ea580c, #b91c1c 65%, #7c2d12); border-color: #fdba74; box-shadow: 0 8px 22px rgba(234, 88, 12, 0.4), inset 0 1px 0 rgba(255,255,255,0.35); } .btn-mode.yin { background: linear-gradient(160deg, #0284c7, #4338ca 65%, #312e81); border-color: #7dd3fc; box-shadow: 0 8px 22px rgba(14, 165, 233, 0.4), inset 0 1px 0 rgba(255,255,255,0.35); } .btn-mode.dual { background: linear-gradient(135deg, #d97706 0%, #9333ea 52%, #0284c7 100%); border-color: #fde047; box-shadow: 0 8px 24px rgba(168, 85, 247, 0.45), inset 0 1px 0 rgba(255,255,255,0.45); } .btn-mode:hover:not(:disabled) { transform: translateY(-2px) scale(1.02); filter: brightness(1.1); } .btn-mode:active:not(:disabled) { transform: scale(0.98); } .btn-mode:disabled { cursor: not-allowed; opacity: 0.55; filter: grayscale(0.65); box-shadow: none; } .btn-mode .mode-top { font-size: 15px; font-weight: 900; letter-spacing: 1px; text-shadow: 0 2px 4px rgba(0,0,0,0.65); } .btn-mode .mode-sub { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.92); } .btn-mode .mode-meta { margin-top: 2px; font-size: 10px; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: rgba(0,0,0,0.38); color: #fde68a; } /* 戰鬥頁雙血條 HUD */ .battle-yy-hud { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; } .battle-yy-item { padding: 6px 10px; border-radius: 12px; background: rgba(0,0,0,0.42); border: 1.5px solid rgba(255,255,255,0.16); transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s; } .battle-yy-item.yang.active-target { border-color: #fb923c; box-shadow: 0 0 14px rgba(249, 115, 22, 0.55); transform: scale(1.01); } .battle-yy-item.yin.active-target { border-color: #38bdf8; box-shadow: 0 0 14px rgba(56, 189, 248, 0.55); transform: scale(1.01); } .battle-yy-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 800; margin-bottom: 4px; } .battle-yy-item.yang .battle-yy-row span { color: #fdba74; } .battle-yy-item.yin .battle-yy-row span { color: #7dd3fc; } .battle-yy-row b { color: #fff; font-variant-numeric: tabular-nums; } .battle-yy-track { height: 12px; border-radius: 99px; background: rgba(0,0,0,0.65); overflow: hidden; border: 1px solid rgba(255,255,255,0.22); } .battle-yy-fill { height: 100%; border-radius: 99px; transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1); } .battle-yy-fill.yang { background: linear-gradient(90deg, #dc2626, #f97316, #fbbf24); box-shadow: 0 0 10px rgba(249, 115, 22, 0.8); } .battle-yy-fill.yin { background: linear-gradient(90deg, #2563eb, #06b6d4, #a855f7); box-shadow: 0 0 10px rgba(56, 189, 248, 0.8); } .q-badge.yang-atk { background: rgba(234, 88, 12, 0.32); border-color: rgba(253, 186, 116, 0.75); color: #ffedd5; } .q-badge.yin-atk { background: rgba(2, 132, 199, 0.32); border-color: rgba(125, 211, 252, 0.75); color: #e0f2fe; } @media (max-width: 760px) { .yinyang-hp-grid, .yinyang-btn-group, .battle-yy-hud { grid-template-columns: 1fr; } .btn-mode { min-height: 54px; } } /* 防止載入真實當期 Boss 前短暫閃現上週舊 Boss 背景與立繪 */ body.boss-hydrating .scene-bg, body.boss-hydrating .intro-portrait { background-image: radial-gradient(circle at 50% 45%, rgba(99, 102, 241, 0.22), #07080d 72%) !important; background-color: #07080d !important; } body.boss-hydrating .intro-portrait img, body.boss-hydrating .boss-sprite { opacity: 0 !important; visibility: hidden !important; animation: none !important; } body.boss-hydrating .intro-portrait::before { content: '✦ 感應神獸降臨中…'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; letter-spacing: 2px; color: rgba(253, 230, 138, 0.85); z-index: 2; animation: bossHydratePulse 1.4s ease-in-out infinite; } @keyframes bossHydratePulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } } .intro-portrait img, .boss-sprite { transition: opacity 0.28s ease-out; }
/* ==========================================================================
css/boss.css - 世界 Boss 決戰殿堂專用樣式表
========================================================================== */
:root {
--gold: #f5c451;
--gold-deep: #d98a14;
--glass-bg: rgba(255, 255, 255, 0.10);
--glass-line: rgba(255, 255, 255, 0.28);
--glass-hi: rgba(255, 255, 255, 0.18);
}
* { box-sizing: border-box; }
html, body {
margin: 0;
height: 100%;
background: #07080d;
color: #f8fafc;
font-family: 'Inter', 'Noto Sans TC', sans-serif;
user-select: none;
overflow: hidden;
}
.hidden { display: none !important; }
/* ========== 測試控制列(僅測試用,預設完全隱藏,需帶 ?debug=1 網址參數) ========== */
.debug-bar {
display: none !important;
position: fixed;
left: 10px;
bottom: 10px;
z-index: 3000;
background: rgba(10, 10, 16, 0.88);
backdrop-filter: blur(8px);
border: 1px solid rgba(245, 196, 81, 0.35);
border-radius: 12px;
padding: 6px 8px;
gap: 5px;
flex-wrap: wrap;
align-items: center;
max-width: 560px;
font-size: 11px;
color: #cbd5e1;
}
.debug-bar.debug-active {
display: flex !important;
}
.debug-bar.collapsed > :not(.debug-toggle) { display: none; }
.debug-btn {
background: #1e1a24;
color: #fde68a;
border: 1px solid #6b4a12;
padding: 4px 8px;
border-radius: 6px;
font-size: 11px;
font-weight: 700;
cursor: pointer;
transition: background 0.15s, transform 0.15s;
}
.debug-btn:hover { background: #6b4a12; color: #fff; transform: translateY(-1px); }
/* ========== 退出大地圖按鈕樣式 ========== */
.btn-exit-map {
position: relative;
min-height: 58px;
padding: 0 24px;
border: 1px solid rgba(255, 255, 255, 0.22);
border-radius: 16px;
font-size: 16px;
font-weight: 800;
letter-spacing: 1px;
color: #e2e8f0;
background: rgba(255, 255, 255, 0.08);
backdrop-filter: blur(8px);
box-shadow: 0 6px 18px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
white-space: nowrap;
transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn-exit-map:hover {
background: rgba(255, 255, 255, 0.16);
border-color: rgba(245, 196, 81, 0.6);
color: #fff;
transform: translateY(-2px);
box-shadow: 0 10px 24px rgba(0,0,0,0.45), 0 0 12px rgba(245, 196, 81, 0.25);
}
.btn-exit-map:active { transform: scale(0.98); }
.btn-card-close {
position: absolute;
top: 14px;
right: 14px;
z-index: 20;
width: 44px;
height: 44px;
min-width: 44px;
min-height: 44px;
border-radius: 50%;
border: 1.5px solid rgba(255, 255, 255, 0.4);