Download css/bazaar.css from Lashtw/idle: direct link, hf CLI and curl.
- Browser
- Download file 53.4 kB
-
https://huggingface.co/spaces/Lashtw/idle/resolve/main/css/bazaar.css
- Command line
-
hf download hf://spaces/Lashtw/idle/css/bazaar.css
-
curl -L -o bazaar.css https://huggingface.co/spaces/Lashtw/idle/resolve/main/css/bazaar.css
53.4 kB
/* ============================================================================
* css/bazaar.css
* 《攻城掠地・霸業征途》西域萬國大市集(Western Grand Bazaar)互動舞台樣式
* - 暖色絲路羊皮紙 × 西域燈籠長街頂部橫幅 × 深紫褐資訊牌匾 × 紅色系 5×5 賓果方塊
* - 行動端鐵律:max-height: 88vh / 84vh、原生捲動流暢、所有觸控區 >= 44px
* ============================================================================ */
@keyframes bzFloatSlow {
0%, 100% { transform: translateY(0px); }
50% { transform: translateY(-5px); }
}
@keyframes bzPulseGlow {
0%, 100% { box-shadow: 0 4px 0 #9a4906, 0 0 0 0 rgba(217, 119, 6, 0.45), 0 8px 18px rgba(154, 73, 6, 0.3); }
50% { box-shadow: 0 4px 0 #9a4906, 0 0 0 6px rgba(245, 158, 11, 0), 0 10px 24px rgba(217, 119, 6, 0.5); }
}
@keyframes bzNearPulse {
0%, 100% { transform: scale(1); opacity: 1; }
50% { transform: scale(1.06); opacity: 0.85; }
}
@keyframes bzFpvAdvance {
0% { transform: scale(1) translate3d(0px, 0px, 0); }
25% { transform: scale(1.07) translate3d(-4px, -4px, 0); }
50% { transform: scale(1.14) translate3d(4px, 2px, 0); }
75% { transform: scale(1.22) translate3d(-3px, -5px, 0); }
100% { transform: scale(1.28) translate3d(0px, 0px, 0); }
}
@keyframes bzStageImpact {
0% { transform: scale(1.28) translate3d(0px, 0px, 0); }
20% { transform: scale(1.31) translate3d(-6px, 3px, 0); }
45% { transform: scale(1.3) translate3d(6px, -4px, 0); }
70% { transform: scale(1.29) translate3d(-3px, 2px, 0); }
100% { transform: scale(1.28) translate3d(0px, 0px, 0); }
}
@keyframes bzExclaimPop {
0% { transform: translate(-50%, -35%) scale(0.2) rotate(-14deg); opacity: 0; }
55% { transform: translate(-50%, -62%) scale(1.3) rotate(8deg); opacity: 1; }
78% { transform: translate(-50%, -48%) scale(0.95) rotate(-4deg); }
100% { transform: translate(-50%, -52%) scale(1.06) rotate(0deg); opacity: 1; }
}
/* 仿寶可夢遭遇戰:黑白急閃(白→黑→白→黑…),結尾停在全黑 */
@keyframes bzFpvFlash {
0% { opacity: 1; background: #ffffff; }
14% { opacity: 1; background: #000000; }
28% { opacity: 1; background: #ffffff; }
42% { opacity: 1; background: #000000; }
56% { opacity: 1; background: #ffffff; }
70% { opacity: 1; background: #000000; }
84% { opacity: 1; background: #ffffff; }
100% { opacity: 1; background: #000000; }
}
@keyframes bzCurtainOutLeft {
0% { transform: translateX(0%); }
100% { transform: translateX(-105%); }
}
@keyframes bzCurtainOutRight {
0% { transform: translateX(0%); }
100% { transform: translateX(105%); }
}
@keyframes bzNpcSlideIn {
0% { transform: translateX(130%); opacity: 0; }
100% { transform: translateX(0%); opacity: 1; }
}
@keyframes bzIntroFadeUp {
0% { transform: translateY(14px); opacity: 0; }
100% { transform: translateY(0); opacity: 1; }
}
@keyframes bzIntroNextBlink {
0%, 100% { opacity: 1; }
50% { opacity: 0.15; }
}
@keyframes bzShutterInLeft {
0% { transform: translateX(-104%); opacity: 0.95; }
100% { transform: translateX(0%); opacity: 1; }
}
@keyframes bzShutterInRight {
0% { transform: translateX(104%); opacity: 0.95; }
100% { transform: translateX(0%); opacity: 1; }
}
@keyframes bzStreakZoom {
0% { transform: scale(0.45); opacity: 0; }
35% { opacity: 0.85; }
100% { transform: scale(1.65); opacity: 0; }
}
@keyframes bzBonusFloat {
0% { transform: translateY(8px) scale(0.85); opacity: 0; }
20% { transform: translateY(0) scale(1.06); opacity: 1; }
80% { transform: translateY(-4px) scale(1); opacity: 1; }
100% { transform: translateY(-10px) scale(0.96); opacity: 0; }
}
@keyframes bzUrgentBlink {
0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5); }
50% { box-shadow: 0 0 0 5px rgba(220, 38, 38, 0.15); }
}
@keyframes bzShake {
0%, 100% { transform: translateX(0); }
20% { transform: translateX(-7px); }
40% { transform: translateX(7px); }
60% { transform: translateX(-5px); }
80% { transform: translateX(5px); }
}
@keyframes bzLineShimmer {
0%, 100% { box-shadow: inset 0 0 0 2px #fde68a, 0 0 10px rgba(251, 191, 36, 0.55); }
50% { box-shadow: inset 0 0 0 2.5px #fffbeb, 0 0 18px rgba(251, 191, 36, 0.88); }
}
@keyframes bzShatterBurst {
0% { transform: scale(0.75); opacity: 0; }
45% { transform: scale(1.08); opacity: 1; }
100% { transform: scale(1); opacity: 1; }
}
@keyframes bzLanternParticle {
0%, 100% { transform: translateY(0px) scale(1); opacity: 0.45; }
50% { transform: translateY(-16px) scale(1.25); opacity: 0.9; }
}
/* ----------------------------------------------------------------------------
* 1. Modal Shell(暖色羊皮紙主面板、古銅金邊框、捲動保護與置頂關閉鈕)
* ---------------------------------------------------------------------------- */
.modal.bazaar-modal {
max-width: 980px;
width: 96vw;
max-height: 88vh;
padding: 0;
overflow: hidden;
display: flex;
flex-direction: column;
background:
radial-gradient(circle at 18% 12%, rgba(255, 251, 235, 0.45), transparent 50%),
linear-gradient(180deg, #eed6b3 0%, #e4c598 55%, #dcba87 100%);
border: 2.5px solid #9e6d3b;
border-radius: 20px;
box-shadow: 0 26px 72px rgba(28, 16, 10, 0.72), inset 0 1px 0 rgba(255, 251, 235, 0.7);
color: #3c2213;
}
@media (max-height: 700px) {
.modal.bazaar-modal {
max-height: 84vh;
}
}
.modal.bazaar-modal .modal-body {
flex: 1 1 auto;
min-height: 0;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
touch-action: pan-y;
padding: 0;
}
.modal.bazaar-modal .modal-body::-webkit-scrollbar {
width: 7px;
}
.modal.bazaar-modal .modal-body::-webkit-scrollbar-thumb {
background: rgba(146, 86, 38, 0.42);
border-radius: 99px;
}
.modal.bazaar-modal .modal-close,
.modal.bazaar-modal .modal-x {
position: sticky;
top: 0;
z-index: 120;
min-width: 44px;
min-height: 44px;
width: 44px;
height: 44px;
border-radius: 999px;
border: 2px solid #d4a656;
background: linear-gradient(180deg, #3c2a46 0%, #24192d 100%);
color: #fef3c7;
font-size: 18px;
font-weight: 900;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
touch-action: manipulation;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
transition: transform 0.15s ease, filter 0.15s ease;
}
.modal.bazaar-modal > .modal-x {
position: absolute;
top: 10px;
right: 12px;
z-index: 125;
}
.modal.bazaar-modal .modal-close:hover,
.modal.bazaar-modal .modal-x:hover {
filter: brightness(1.18);
transform: scale(1.06);
}
/* ----------------------------------------------------------------------------
* 2. 頂部燈籠街景橫幅與書籤式三頁籤 (.bz-hero-banner / .bz-sticky-header)
* ---------------------------------------------------------------------------- */
.bz-shell {
display: flex;
flex-direction: column;
min-height: 100%;
}
.bz-sticky-header,
.bz-hero-banner {
position: sticky;
top: 0;
z-index: 110;
padding: 14px 66px 0 18px;
background:
linear-gradient(90deg, rgba(28, 18, 36, 0.82) 0%, rgba(44, 24, 34, 0.42) 52%, rgba(28, 18, 36, 0.78) 100%),
url('../assets/bazaar_street_bg.png?v=20261127_v1') center 38%/cover no-repeat;
border-bottom: 3px solid #b7813f;
box-shadow: 0 6px 18px rgba(60, 34, 19, 0.25);
}
.bz-head-top {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
}
.bz-title-wrap {
display: flex;
align-items: center;
gap: 10px;
min-width: 0;
padding: 7px 14px 7px 10px;
border-radius: 14px;
background: linear-gradient(180deg, rgba(50, 29, 44, 0.94) 0%, rgba(33, 20, 34, 0.96) 100%);
border: 1.5px solid #d4a656;
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}
.bz-title-emblem {
width: 40px;
height: 40px;
border-radius: 10px;
background: linear-gradient(135deg, #c8332b, #8b1a1a);
border: 1.5px solid #fbbf24;
display: flex;
align-items: center;
justify-content: center;
font-size: 21px;
flex-shrink: 0;
}
.bz-title {
margin: 0;
font-size: 19px;
font-weight: 900;
color: #fde68a;
letter-spacing: 0.6px;
text-shadow: 0 2px 4px rgba(0, 0, 0, 0.65);
}
.bz-subtitle {
font-size: 12px;
color: #f3dcc1;
font-weight: 700;
margin-top: 2px;
}
.bz-status-pills {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.bz-pill {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 6px 12px;
border-radius: 999px;
font-size: 12.5px;
font-weight: 800;
border: 1.5px solid #c69853;
background: linear-gradient(180deg, #422b3e, #2b1d2c);
color: #fef3c7;
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}
.bz-pill-gold {
background: linear-gradient(180deg, #493026, #301f19);
border-color: #eab308;
color: #fef08a;
}
.bz-pill-teal {
background: linear-gradient(180deg, #1b4f58, #12373e);
border-color: #2dd4bf;
color: #ccfbf1;
}
.bz-pill-crimson {
background: linear-gradient(180deg, #7f1d1d, #561212);
border-color: #f87171;
color: #fee2e2;
}
/* 書籤式三頁籤 */
.bz-tabs {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 8px;
margin-top: 12px;
}
.bz-tab-btn {
min-height: 44px;
padding: 9px 10px;
border-radius: 12px 12px 0 0;
border: 1.5px solid #9e7844;
border-bottom: none;
background: linear-gradient(180deg, #312946 0%, #201a30 100%);
color: #f4dfbe;
font-size: 13.5px;
font-weight: 800;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
touch-action: manipulation;
transition: transform 0.14s ease, filter 0.14s ease;
}
.bz-tab-btn:hover {
filter: brightness(1.1);
}
.bz-tab-btn.is-active {
background: linear-gradient(180deg, #fff8eb 0%, #f3dcb6 100%);
border-color: #d49f54;
color: #4b2412;
font-weight: 900;
box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}
.bz-content {
padding: 14px 18px 22px;
display: flex;
flex-direction: column;
gap: 14px;
}
/* ----------------------------------------------------------------------------
* 3. 開市前倒數封印面板
* ---------------------------------------------------------------------------- */
.bz-countdown-card {
position: relative;
border-radius: 16px;
overflow: hidden;
border: 2px solid #9e6d3b;
background: linear-gradient(180deg, #fbf0dc 0%, #f1dab3 100%);
padding: 18px;
display: flex;
flex-direction: column;
gap: 14px;
box-shadow: 0 8px 20px rgba(60, 34, 19, 0.18);
}
.bz-countdown-hero {
position: relative;
border-radius: 14px;
overflow: hidden;
height: clamp(170px, 28vh, 235px);
border: 2px solid #b7813f;
}
.bz-countdown-hero img {
width: 100%;
height: 100%;
object-fit: cover;
filter: brightness(0.75) saturate(1.1);
}
.bz-countdown-seal {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 16px;
background: radial-gradient(circle, rgba(35, 22, 42, 0.56) 0%, rgba(28, 17, 30, 0.86) 100%);
}
.bz-countdown-clock {
font-size: clamp(24px, 4.5vw, 34px);
font-weight: 900;
color: #fde68a;
letter-spacing: 1px;
text-shadow: 0 2px 14px rgba(245, 158, 11, 0.65);
margin: 6px 0;
}
.bz-rule-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
gap: 10px;
}
.bz-rule-tile {
padding: 12px 14px;
border-radius: 12px;
background: #fff6e5;
border: 1.5px solid #d5ab73;
font-size: 13px;
line-height: 1.55;
color: #4b2d1a;
}
.bz-rule-tile b {
color: #9e1b1f;
display: block;
margin-bottom: 4px;
}
/* ----------------------------------------------------------------------------
* 4. 第一列雙欄看板(左:深紫褐今日點亮水位卡 + 右:淺米色漫步駱駝卡)
* ---------------------------------------------------------------------------- */
.bz-hero-panel {
display: grid;
grid-template-columns: 1.28fr 1fr;
gap: 14px;
align-items: stretch;
}
.bz-card {
background: linear-gradient(180deg, #faf0dc 0%, #f1dcb8 100%);
border: 2px solid #b98952;
border-radius: 16px;
padding: 14px 16px;
box-shadow: 0 5px 14px rgba(72, 41, 18, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.65);
color: #3c2213;
}
.bz-quota-card {
background: linear-gradient(135deg, #352744 0%, #261b33 65%, #1e1529 100%);
border: 2px solid #c8964e;
border-radius: 16px;
padding: 15px 16px;
color: #fef3c7;
box-shadow: 0 8px 20px rgba(38, 22, 46, 0.34), inset 0 0 0 1px rgba(254, 240, 138, 0.18);
display: flex;
flex-direction: column;
justify-content: space-between;
gap: 10px;
}
.bz-quota-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
flex-wrap: wrap;
}
.bz-quota-title {
font-size: 15px;
font-weight: 900;
color: #fde68a;
display: inline-flex;
align-items: center;
gap: 6px;
}
.bz-card .bz-quota-title {
color: #6b2e12;
}
.bz-quota-val {
font-size: 13.5px;
font-weight: 900;
color: #5eead4;
}
.bz-quota-track {
position: relative;
height: 15px;
border-radius: 999px;
background: #171122;
border: 1.5px solid #8a6434;
overflow: hidden;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}
.bz-quota-cap {
position: absolute;
top: 0;
left: 0;
bottom: 0;
background: rgba(245, 158, 11, 0.16);
}
.bz-quota-fill {
position: relative;
z-index: 2;
height: 100%;
border-radius: 999px;
background: linear-gradient(90deg, #10b981 0%, #84cc16 52%, #f59e0b 100%);
transition: width 0.35s ease;
}
.bz-quota-meta {
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
flex-wrap: wrap;
font-size: 12.5px;
color: #e2d4ec;
}
.bz-chain-chip {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 5px 12px;
border-radius: 999px;
font-size: 12px;
font-weight: 800;
background: linear-gradient(180deg, #7f2532, #5b1822);
border: 1.5px solid #f87171;
color: #ffe4e6;
}
.bz-chain-chip.is-clear {
background: linear-gradient(180deg, #115e59, #0f4542);
border-color: #2dd4bf;
color: #ccfbf1;
}
/* 右卡:淺米羊皮紙+Q版駱駝 */
.bz-cta-card {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
background: linear-gradient(160deg, #fff5e2 0%, #f5dfb9 100%);
border: 2px solid #ba8950;
}
.bz-cta-main {
flex: 1 1 auto;
min-width: 0;
display: flex;
flex-direction: column;
gap: 10px;
}
.bz-cta-copy {
font-size: 13px;
font-weight: 700;
color: #54311b;
line-height: 1.5;
}
.bz-cta-camel {
width: 88px;
flex-shrink: 0;
display: flex;
align-items: flex-end;
justify-content: center;
}
.bz-cta-camel img {
width: 88px;
height: auto;
object-fit: contain;
filter: drop-shadow(0 6px 10px rgba(72, 41, 18, 0.35));
animation: bzFloatSlow 3.2s ease-in-out infinite;
}
.bz-btn-primary {
width: 100%;
min-height: 48px;
padding: 10px 14px;
border-radius: 13px;
border: 2px solid #fef08a;
background: linear-gradient(180deg, #f5b036 0%, #d97706 68%, #b45309 100%);
color: #ffffff;
font-size: 14.5px;
font-weight: 900;
text-shadow: 0 1px 2px rgba(92, 42, 6, 0.7);
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
touch-action: manipulation;
animation: bzPulseGlow 2.4s ease-in-out infinite;
transition: transform 0.14s ease, filter 0.14s ease;
}
.bz-btn-primary:hover:not(:disabled) {
transform: translateY(-2px);
filter: brightness(1.07);
}
.bz-btn-primary:disabled {
opacity: 0.55;
cursor: not-allowed;
animation: none;
}
.bz-btn-secondary {
min-height: 44px;
padding: 9px 14px;
border-radius: 11px;
border: 1.5px solid #0f766e;
background: linear-gradient(180deg, #14b8a6, #0d9488);
color: #ffffff;
font-size: 13.5px;
font-weight: 800;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
touch-action: manipulation;
box-shadow: 0 3px 8px rgba(15, 118, 110, 0.25);
transition: transform 0.14s ease, filter 0.14s ease;
}
.bz-btn-secondary:hover:not(:disabled) {
transform: translateY(-1px);
filter: brightness(1.08);
}
.bz-btn-ghost {
min-height: 44px;
padding: 8px 14px;
border-radius: 11px;
border: 1.5px solid #b5844c;
background: #fff7e8;
color: #5a3118;
font-size: 13px;
font-weight: 800;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
touch-action: manipulation;
transition: background 0.14s ease, border-color 0.14s ease;
}
.bz-btn-ghost:hover:not(:disabled) {
background: #fde8c6;
border-color: #92400e;
}
/* ----------------------------------------------------------------------------
* 5. 深紫藍頂條包裝卡片:里程碑寶箱 & 十卷賓果外框 (.bz-framed-panel)
* ---------------------------------------------------------------------------- */
.bz-framed-panel {
border-radius: 16px;
border: 2px solid #a77742;
background: linear-gradient(180deg, #f8e8cc 0%, #f1d9b1 100%);
overflow: hidden;
box-shadow: 0 6px 16px rgba(72, 41, 18, 0.15);
}
.bz-panel-bar {
padding: 10px 15px;
background: linear-gradient(180deg, #3c2f51 0%, #281f39 100%);
border-bottom: 2px solid #c8964e;
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
flex-wrap: wrap;
}
.bz-panel-bar-title {
font-size: 14.5px;
font-weight: 900;
color: #fde68a;
}
.bz-panel-bar-sub {
font-size: 12px;
font-weight: 700;
color: #e9d8fd;
}
.bz-panel-body {
padding: 12px 14px 14px;
}
/* 個人連線進度條 5 / 15 / 30 / 60 / 90 / 120 */
.bz-milestones-strip {
display: grid;
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 8px;
}
.bz-pm-card {
padding: 9px 9px;
border-radius: 12px;
background: linear-gradient(180deg, #fffaf0 0%, #fae6c3 100%);
border: 1.5px solid #cfa167;
display: flex;
flex-direction: column;
gap: 3px;
font-size: 11.5px;
color: #4b2b16;
box-shadow: 0 3px 6px rgba(92, 54, 24, 0.1);
}
.bz-pm-card.is-claimed {
background: linear-gradient(180deg, #fef08a 0%, #fcd34d 100%);
border-color: #b45309;
box-shadow: 0 0 12px rgba(245, 158, 11, 0.38);
}
.bz-pm-lines {
font-size: 13px;
font-weight: 900;
color: #9e1b1f;
display: flex;
align-items: center;
justify-content: space-between;
gap: 4px;
}
.bz-pm-name {
font-weight: 900;
color: #3c2213;
}
.bz-pm-desc {
color: #6b4328;
line-height: 1.35;
font-weight: 600;
}
/* ----------------------------------------------------------------------------
* 6. 十卷全顯切換(無水平捲動截斷)& 紅色系 5×5 賓果單字方塊
* ---------------------------------------------------------------------------- */
.bz-scroll-tabs {
display: grid;
grid-template-columns: repeat(10, minmax(0, 1fr));
gap: 6px;
}
.bz-scroll-pill {
min-height: 46px;
padding: 5px 4px;
border-radius: 10px;
border: 1.5px solid #c99a60;
background: linear-gradient(180deg, #fff9ee 0%, #f5dfb8 100%);
color: #4a2813;
font-size: 12px;
font-weight: 900;
cursor: pointer;
display: inline-flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 1px;
touch-action: manipulation;
transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.bz-scroll-pill-sub {
font-size: 10.5px;
font-weight: 800;
color: #7c4b27;
}
.bz-scroll-pill.is-active {
background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
border-color: #fbbf24;
color: #ffffff;
box-shadow: 0 3px 10px rgba(153, 27, 27, 0.4);
}
.bz-scroll-pill.is-active .bz-scroll-pill-sub {
color: #fde68a;
}
.bz-scroll-pill:hover {
transform: translateY(-1px);
border-color: #b91c1c;
}
.bz-near-tag {
display: inline-block;
padding: 0 5px;
border-radius: 99px;
background: #f59e0b;
color: #3c1406;
font-size: 9.5px;
font-weight: 900;
animation: bzNearPulse 1.3s ease-in-out infinite;
}
.bz-bingo-grid {
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 7px;
margin-top: 10px;
}
/* ★ 紅色系賓果單字方塊(未點亮:柔緋紅雕花;已點亮:帝王正紅金框+翠綠打勾;鎖鏈:暗酒紅鐵鏈) */
.bz-cell {
position: relative;
min-height: 66px;
padding: 6px 6px;
border-radius: 11px;
border: 1.5px solid #c94a4a;
background: linear-gradient(180deg, #fde2e1 0%, #f6c1be 100%);
color: #5c1417;
cursor: pointer;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
gap: 2px;
overflow: hidden;
touch-action: manipulation;
box-shadow: 0 2px 6px rgba(153, 27, 27, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.65);
transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.bz-cell:hover {
transform: translateY(-1px);
border-color: #991b1b;
box-shadow: 0 4px 10px rgba(153, 27, 27, 0.25);
}
.bz-cell.is-selected {
outline: 2.5px solid #d97706;
outline-offset: 1px;
}
.bz-cell.is-lit {
background: linear-gradient(180deg, #dc2626 0%, #b91c1c 58%, #991b1b 100%);
border: 2px solid #fbbf24;
color: #ffffff;
box-shadow: 0 4px 12px rgba(185, 28, 28, 0.4), inset 0 1px 0 rgba(254, 243, 199, 0.45);
}
.bz-cell.is-lit .bz-cell-top {
color: #fde68a;
}
.bz-cell.is-lit .bz-cell-zh {
color: #fef3c7;
font-weight: 800;
}
.bz-cell.is-free {
background: linear-gradient(135deg, #f59e0b 0%, #dc2626 100%);
border: 2px solid #fde68a;
color: #ffffff;
font-weight: 900;
box-shadow: 0 4px 12px rgba(217, 119, 6, 0.42);
}
.bz-cell.is-free .bz-cell-top {
color: #fef08a;
}
.bz-cell.is-locked {
background: linear-gradient(180deg, #68131d 0%, #420911 100%);
border: 1.5px dashed #f87171;
color: #ffe4e6;
box-shadow: 0 3px 10px rgba(66, 9, 17, 0.35);
}
.bz-cell.is-locked .bz-cell-top {
color: #fca5a5;
}
.bz-cell.is-locked .bz-cell-zh {
color: #fecdd3;
}
.bz-cell.is-line-win {
animation: bzLineShimmer 2s ease-in-out infinite;
}
.bz-cell-check {
display: inline-flex;
align-items: center;
justify-content: center;
width: 18px;
height: 18px;
border-radius: 6px;
background: #16a34a;
border: 1px solid #bbf7d0;
color: #ffffff;
font-size: 11px;
font-weight: 900;
line-height: 1;
}
.bz-cell-top {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
font-size: 10px;
font-weight: 800;
color: #9b1c1c;
}
.bz-cell-word {
width: 100%;
font-size: 12.5px;
font-weight: 900;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.bz-cell-zh {
width: 100%;
font-size: 10.5px;
font-weight: 700;
color: #7f1d1d;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.bz-word-inspector {
margin-top: 10px;
padding: 12px 14px;
border-radius: 13px;
background: #fff9ee;
border: 1.5px solid #cfa062;
color: #3c2213;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
}
/* ----------------------------------------------------------------------------
* 7. 第一人稱漫步深處與驚嘆號條紋切屏轉場 (.bz-walk-stage / .bz-fpv-scene)
* ---------------------------------------------------------------------------- */
.bz-walk-stage {
position: relative;
height: clamp(240px, 40vh, 340px);
border-radius: 16px;
overflow: hidden;
border: 2px solid #9e6d3b;
background: #140c1c;
box-shadow: 0 16px 38px rgba(45, 24, 12, 0.45);
}
.bz-fpv-scene {
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
}
.bz-fpv-bg {
position: absolute;
inset: -6%;
background: #1a1122 url('../assets/bazaar_street_bg.png?v=20261127_v1') center/cover no-repeat;
transform-origin: center 54%;
animation: bzFpvAdvance 1.25s cubic-bezier(0.25, 0.72, 0.3, 1) forwards;
}
.bz-fpv-scene.is-impact .bz-fpv-bg {
animation: bzStageImpact 0.35s ease-out forwards;
}
.bz-fpv-vignette {
position: absolute;
inset: 0;
background:
radial-gradient(circle at 50% 48%, rgba(25, 14, 34, 0.04) 24%, rgba(16, 8, 22, 0.72) 100%),
linear-gradient(180deg, rgba(16, 8, 22, 0.25) 0%, rgba(16, 8, 22, 0.05) 45%, rgba(16, 8, 22, 0.85) 100%);
pointer-events: none;
}
.bz-fpv-streaks {
position: absolute;
inset: 0;
pointer-events: none;
border-radius: 50%;
border: 2px dashed rgba(253, 230, 138, 0.25);
animation: bzStreakZoom 1.15s ease-out infinite;
}
.bz-lantern-glow {
position: absolute;
width: 14px;
height: 14px;
border-radius: 99px;
background: radial-gradient(circle, #fde68a 0%, rgba(245, 158, 11, 0.7) 55%, transparent 100%);
pointer-events: none;
animation: bzLanternParticle 1.8s ease-in-out infinite;
}
.bz-walk-skip-btn {
position: absolute;
top: 12px;
right: 12px;
z-index: 30;
min-height: 44px;
min-width: 44px;
padding: 8px 14px;
border-radius: 99px;
border: 1.5px solid #fbbf24;
background: rgba(34, 20, 38, 0.9);
color: #fde68a;
font-size: 13px;
font-weight: 800;
cursor: pointer;
touch-action: manipulation;
}
.bz-fpv-exclaim {
position: absolute;
top: 44%;
left: 50%;
z-index: 12;
transform: translate(-50%, -50%);
display: inline-flex;
align-items: center;
justify-content: center;
width: 78px;
height: 78px;
border-radius: 50%;
background: radial-gradient(circle, rgba(254, 240, 138, 0.96), rgba(217, 119, 6, 0.92));
border: 3px solid #ffffff;
font-size: 42px;
line-height: 1;
box-shadow: 0 0 28px rgba(251, 191, 36, 0.95);
opacity: 0;
pointer-events: none;
}
.bz-fpv-exclaim.is-show {
animation: bzExclaimPop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.bz-walk-caption {
position: absolute;
left: 16px;
right: 16px;
bottom: 14px;
z-index: 14;
text-align: center;
font-size: 14.5px;
font-weight: 900;
color: #fef3c7;
text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95);
}
.bz-walk-flash {
position: absolute;
inset: 0;
z-index: 20;
pointer-events: none;
opacity: 0;
}
.bz-walk-flash.is-active {
animation: bzFpvFlash 0.7s steps(1, end) forwards;
}
.bz-encounter-transition {
position: absolute;
inset: 0;
z-index: 25;
display: flex;
flex-direction: column;
pointer-events: none;
opacity: 0;
}
.bz-encounter-transition.is-active {
opacity: 1;
}
.bz-shutter-bar {
flex: 1 1 0;
background: #000000;
transform: translateX(-105%);
}
/* 商人登場畫面:黑幕拉開 → 商人從右側滑入 → 底部對話框 */
.bz-intro-stage {
position: relative;
height: clamp(300px, 52vh, 430px);
border-radius: 16px;
overflow: hidden;
border: 2px solid #9e6d3b;
background: #140c1c;
box-shadow: 0 16px 38px rgba(45, 24, 12, 0.45);
cursor: pointer;
}
.bz-intro-bg {
position: absolute;
inset: 0;
background: #1a1122 url('../assets/bazaar_street_bg.png?v=20261127_v1') center/cover no-repeat;
filter: brightness(0.78);
}
.bz-intro-npc {
position: absolute;
right: 6%;
bottom: 96px;
height: 68%;
z-index: 5;
transform: translateX(130%);
opacity: 0;
animation: bzNpcSlideIn 0.55s cubic-bezier(0.2, 0.9, 0.3, 1) 0.6s forwards;
}
.bz-intro-npc img {
height: 100%;
width: auto;
display: block;
filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.6));
}
.bz-intro-dialog {
position: absolute;
left: 12px;
right: 12px;
bottom: 12px;
z-index: 8;
display: flex;
align-items: center;
justify-content: space-between;
gap: 14px;
padding: 14px 18px;
border-radius: 12px;
background: #fffaf0;
border: 3px solid #3c2213;
box-shadow: 0 0 0 3px #f5d9a8, 0 8px 18px rgba(0, 0, 0, 0.45);
color: #3c2213;
opacity: 0;
animation: bzIntroFadeUp 0.35s ease-out 0.9s forwards;
}
.bz-intro-dialog-body {
flex: 1 1 auto;
min-width: 0;
}
.bz-intro-speaker {
display: inline-block;
margin-bottom: 4px;
padding: 2px 10px;
border-radius: 999px;
background: #3c2213;
color: #fde68a;
font-size: 12px;
font-weight: 800;
letter-spacing: 0.04em;
}
.bz-intro-line {
font-size: 16px;
font-weight: 900;
line-height: 1.45;
color: #2c160b;
}
.bz-intro-sub {
margin-top: 4px;
font-size: 12px;
font-weight: 700;
color: #7c4b27;
}
.bz-intro-start-btn {
flex: 0 0 auto;
min-height: 44px;
padding: 10px 20px;
border-radius: 10px;
border: 2px solid #78350f;
background: linear-gradient(135deg, #f59e0b, #d97706);
color: #ffffff;
font-size: 15px;
font-weight: 900;
letter-spacing: 0.04em;
cursor: pointer;
box-shadow: 0 4px 12px rgba(217, 119, 6, 0.45);
transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
white-space: nowrap;
}
.bz-intro-start-btn:hover {
transform: translateY(-1px) scale(1.03);
box-shadow: 0 6px 16px rgba(217, 119, 6, 0.6);
filter: brightness(1.05);
}
.bz-intro-start-btn:active {
transform: translateY(1px) scale(0.98);
}
@media (max-width: 640px) {
.bz-intro-dialog {
flex-direction: column;
align-items: stretch;
gap: 10px;
padding: 12px 14px;
}
.bz-intro-line {
font-size: 15px;
}
.bz-intro-start-btn {
width: 100%;
}
}
.bz-intro-curtain {
position: absolute;
inset: 0;
z-index: 12;
display: flex;
flex-direction: column;
pointer-events: none;
}
.bz-intro-curtain .bz-shutter-bar {
transform: translateX(0);
}
.bz-intro-curtain .bz-shutter-bar.is-even {
animation: bzCurtainOutLeft 0.4s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}
.bz-intro-curtain .bz-shutter-bar.is-odd {
animation: bzCurtainOutRight 0.4s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}
@media (max-width: 640px) {
.bz-intro-npc {
height: 56%;
right: 2%;
bottom: 108px;
}
.bz-intro-line {
font-size: 16px;
}
}
.bz-encounter-transition.is-active .bz-shutter-bar.is-even {
animation: bzShutterInLeft 0.34s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}
.bz-encounter-transition.is-active .bz-shutter-bar.is-odd {
transform: translateX(105%);
animation: bzShutterInRight 0.34s cubic-bezier(0.7, 0, 0.3, 1) forwards;
}
@media (prefers-reduced-motion: reduce) {
.bz-fpv-bg,
.bz-fpv-streaks,
.bz-lantern-glow {
animation: none !important;
}
.bz-walk-flash.is-active {
animation: none !important;
opacity: 0.45;
}
.bz-encounter-transition.is-active .bz-shutter-bar {
animation: none !important;
transform: translateX(0);
transition: opacity 0.2s ease;
}
.bz-intro-npc,
.bz-intro-dialog {
animation: none !important;
transform: none;
opacity: 1;
}
.bz-intro-curtain {
display: none;
}
}
/* ----------------------------------------------------------------------------
* 7B. 計時無限續題 HUD、連擊加秒、戰後錯題複習與放棄確認遮罩
* ---------------------------------------------------------------------------- */
.bz-timed-hud {
padding: 10px 12px;
border-radius: 13px;
background: linear-gradient(155deg, #2d233d 0%, #20182d 100%);
border: 1.5px solid #c8964e;
color: #fef3c7;
display: flex;
flex-direction: column;
gap: 8px;
}
.bz-timed-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
flex-wrap: wrap;
}
.bz-timer-pill {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 4px 12px;
border-radius: 99px;
background: linear-gradient(135deg, #f59e0b, #d97706);
color: #1f1106;
font-size: 14px;
font-weight: 900;
border: 1px solid #fde68a;
}
.bz-timer-pill.is-urgent {
background: linear-gradient(135deg, #ef4444, #b91c1c);
color: #ffffff;
border-color: #fecaca;
animation: bzUrgentBlink 0.7s ease-in-out infinite;
}
.bz-combo-pill {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 4px 10px;
border-radius: 99px;
background: rgba(251, 191, 36, 0.16);
border: 1px solid rgba(251, 191, 36, 0.55);
color: #fde68a;
font-size: 12px;
font-weight: 900;
}
.bz-combo-pill.is-hot {
background: linear-gradient(135deg, #dc2626, #ea580c);
color: #fffbeb;
border-color: #fde047;
}
.bz-timer-track {
position: relative;
height: 9px;
border-radius: 99px;
background: #140e1c;
border: 1px solid rgba(200, 150, 78, 0.45);
overflow: hidden;
}
.bz-timer-fill {
height: 100%;
border-radius: 99px;
background: linear-gradient(90deg, #10b981, #fbbf24);
transition: width 0.1s linear, background 0.2s ease;
}
.bz-timer-fill.is-urgent {
background: linear-gradient(90deg, #f97316, #dc2626);
}
.bz-bonus-float {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 3px 10px;
border-radius: 99px;
background: linear-gradient(135deg, #0d9488, #0f766e);
color: #ffffff;
font-size: 12px;
font-weight: 900;
animation: bzBonusFloat 1.5s ease-out forwards;
}
.bz-review-header-card {
padding: 14px 16px;
border-radius: 15px;
background: linear-gradient(155deg, #7f1d1d 0%, #45101a 100%);
border: 2px solid #f59e0b;
color: #fef3c7;
box-shadow: 0 8px 20px rgba(88, 17, 29, 0.28);
}
.bz-wrong-summary-list {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 8px;
}
.bz-wrong-word-chip {
padding: 9px 11px;
border-radius: 11px;
background: #fff9ee;
border: 1.5px solid #e19f54;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
color: #3c2213;
}
.bz-wrong-speak-btn {
min-width: 44px;
min-height: 44px;
border-radius: 10px;
border: 1.5px solid #b91c1c;
background: #fee2e2;
color: #7f1d1d;
font-size: 15px;
font-weight: 900;
cursor: pointer;
flex-shrink: 0;
touch-action: manipulation;
}
.bz-confirm-backdrop {
position: absolute;
inset: 0;
z-index: 160;
background: rgba(20, 10, 16, 0.74);
backdrop-filter: blur(4px);
display: flex;
align-items: center;
justify-content: center;
padding: 18px;
}
.bz-confirm-dialog {
width: 100%;
max-width: 400px;
padding: 18px;
border-radius: 16px;
background: linear-gradient(180deg, #fffaf0 0%, #f5dfb9 100%);
border: 2.5px solid #b91c1c;
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
color: #3c2213;
display: flex;
flex-direction: column;
gap: 12px;
}
/* ----------------------------------------------------------------------------
* 8. 四大角色對決競技場 (.bz-arena)
* ---------------------------------------------------------------------------- */
.bz-arena {
display: grid;
grid-template-columns: 250px minmax(0, 1fr);
gap: 14px;
align-items: start;
}
.bz-npc-panel {
border-radius: 16px;
border: 2px solid #c8964e;
background: linear-gradient(170deg, #372848 0%, #241a32 100%);
padding: 14px;
display: flex;
flex-direction: column;
align-items: center;
gap: 9px;
color: #fef3c7;
}
.bz-npc-portrait {
width: 100%;
max-width: 205px;
aspect-ratio: 896 / 1200;
border-radius: 13px;
overflow: hidden;
border: 2px solid #d4a656;
background: radial-gradient(circle at 50% 35%, rgba(251, 191, 36, 0.22), rgba(25, 16, 36, 0.85));
}
.bz-npc-portrait img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.bz-npc-name {
font-size: 15px;
font-weight: 900;
color: #fde68a;
text-align: center;
}
.bz-npc-role {
font-size: 12px;
color: #5eead4;
font-weight: 800;
text-align: center;
}
.bz-npc-bubble {
width: 100%;
padding: 10px 12px;
border-radius: 12px;
background: rgba(20, 13, 30, 0.72);
border: 1px solid rgba(253, 230, 138, 0.32);
font-size: 13px;
line-height: 1.5;
color: #fef3c7;
}
.bz-battle-panel {
border-radius: 16px;
border: 2px solid #b5834b;
background: linear-gradient(180deg, #fff8eb 0%, #f4dfc0 100%);
padding: 16px;
display: flex;
flex-direction: column;
gap: 13px;
color: #3c2213;
box-shadow: 0 8px 20px rgba(72, 41, 18, 0.14);
}
.bz-battle-top {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
flex-wrap: wrap;
}
.bz-word-banner {
padding: 14px 16px;
border-radius: 14px;
background: linear-gradient(145deg, #2d233d 0%, #1d172a 100%);
border: 2px solid #c8964e;
color: #fef3c7;
display: flex;
flex-direction: column;
gap: 8px;
}
.bz-word-en-lg {
font-size: 26px;
font-weight: 900;
color: #ffffff;
letter-spacing: 0.4px;
}
.bz-options-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.bz-opt-btn {
min-height: 52px;
padding: 10px 14px;
border-radius: 12px;
border: 1.5px solid #c69258;
background: linear-gradient(180deg, #fffdf7 0%, #f9ead0 100%);
color: #3c2213;
font-size: 14.5px;
font-weight: 800;
text-align: left;
cursor: pointer;
display: flex;
align-items: center;
gap: 10px;
touch-action: manipulation;
box-shadow: 0 2px 6px rgba(92, 54, 24, 0.12);
transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}
.bz-opt-btn:hover:not(:disabled) {
transform: translateY(-1px);
border-color: #b91c1c;
background: #fef3c7;
}
.bz-opt-btn.is-correct {
border-color: #15803d;
background: linear-gradient(180deg, #dcfce7, #bbf7d0);
color: #14532d;
}
.bz-opt-btn.is-wrong {
border-color: #b91c1c;
background: linear-gradient(180deg, #fee2e2, #fecaca);
color: #7f1d1d;
animation: bzShake 0.36s ease;
}
.bz-opt-tag {
width: 28px;
height: 28px;
border-radius: 8px;
background: linear-gradient(180deg, #b91c1c, #7f1d1d);
border: 1px solid #fbbf24;
color: #fef3c7;
font-size: 13px;
font-weight: 900;
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
/* 織毯娘子 5×5 配對消除 */
.bz-pair-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.bz-pair-col {
display: flex;
flex-direction: column;
gap: 8px;
}
.bz-pair-card {
min-height: 54px;
padding: 10px 12px;
border-radius: 12px;
border: 1.5px solid #c69258;
background: linear-gradient(180deg, #fffdf7 0%, #f8e7c9 100%);
color: #3c2213;
font-size: 14px;
font-weight: 800;
text-align: left;
cursor: pointer;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
touch-action: manipulation;
box-shadow: 0 2px 5px rgba(92, 54, 24, 0.1);
transition: transform 0.14s ease, border-color 0.14s ease, opacity 0.22s ease, background 0.14s ease;
}
.bz-pair-card:hover:not(:disabled) {
border-color: #0d9488;
transform: translateY(-1px);
}
.bz-pair-card.is-selected {
border-color: #b91c1c;
background: linear-gradient(180deg, #fde68a, #fcd34d);
box-shadow: 0 0 12px rgba(217, 119, 6, 0.45);
}
.bz-pair-card.is-matched {
border-color: #16a34a;
background: #dcfce7;
color: #166534;
opacity: 0.55;
transform: scale(0.97);
cursor: default;
}
.bz-pair-card.is-wrong-shake {
border-color: #b91c1c;
background: #fee2e2;
color: #7f1d1d;
animation: bzShake 0.4s ease;
}
/* 琵琶樂師語音按鈕 */
.bz-pipa-btn {
min-height: 56px;
padding: 12px 20px;
border-radius: 14px;
border: 2px solid #e9d5ff;
background: linear-gradient(135deg, #7e22ce, #4338ca);
color: #ffffff;
font-size: 16px;
font-weight: 900;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 10px;
touch-action: manipulation;
box-shadow: 0 6px 18px rgba(109, 40, 217, 0.35);
transition: transform 0.15s ease;
}
.bz-pipa-btn:hover {
transform: scale(1.02);
}
.bz-mute-toggle-btn {
min-height: 44px;
padding: 8px 12px;
border-radius: 11px;
border: 1.5px solid #7e22ce;
background: #f3e8ff;
color: #581c87;
font-size: 12.5px;
font-weight: 800;
cursor: pointer;
touch-action: manipulation;
}
/* 星象學者羊皮紙與拼字寶石 */
.bz-parchment-box {
padding: 14px 16px;
border-radius: 14px;
background: linear-gradient(160deg, #322443 0%, #231931 100%);
border: 2px solid #c8964e;
color: #fef3c7;
font-size: 15.5px;
line-height: 1.65;
font-weight: 700;
}
.bz-cloze-blank {
display: inline-block;
padding: 1px 10px;
margin: 0 3px;
border-radius: 8px;
background: rgba(245, 158, 11, 0.28);
border-bottom: 2.5px solid #fbbf24;
color: #fde68a;
font-weight: 900;
}
.bz-scramble-slots {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 8px;
padding: 12px;
border-radius: 14px;
background: #fdf2dd;
border: 1.5px dashed #b5834b;
}
.bz-slot-btn {
min-width: 44px;
min-height: 46px;
padding: 6px 10px;
border-radius: 10px;
border: 1.5px solid #c99a60;
background: #ffffff;
color: #78350f;
font-size: 18px;
font-weight: 900;
cursor: pointer;
touch-action: manipulation;
}
.bz-slot-btn.is-filled {
border-color: #b91c1c;
background: linear-gradient(180deg, #dc2626, #991b1b);
color: #fef3c7;
}
.bz-scramble-gems {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 8px;
}
.bz-gem-btn {
min-width: 44px;
min-height: 48px;
padding: 8px 12px;
border-radius: 12px;
border: 1.5px solid #0f766e;
background: linear-gradient(180deg, #14b8a6, #0f766e);
color: #ffffff;
font-size: 18px;
font-weight: 900;
cursor: pointer;
touch-action: manipulation;
box-shadow: 0 3px 8px rgba(15, 118, 110, 0.28);
transition: transform 0.12s ease, opacity 0.12s ease;
}
.bz-gem-btn:hover:not(:disabled) {
transform: translateY(-2px) scale(1.04);
}
.bz-gem-btn:disabled {
opacity: 0.25;
cursor: default;
}
.bz-shatter-burst {
padding: 12px 14px;
border-radius: 13px;
background: linear-gradient(135deg, #fef08a, #fde047);
border: 2px solid #b45309;
color: #78350f;
font-weight: 900;
animation: bzShatterBurst 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bz-feedback-bar {
padding: 11px 14px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
flex-wrap: wrap;
font-size: 13.5px;
font-weight: 800;
}
.bz-feedback-bar.is-ok {
background: #dcfce7;
border: 1.5px solid #16a34a;
color: #14532d;
}
.bz-feedback-bar.is-bad {
background: #fee2e2;
border: 1.5px solid #b91c1c;
color: #7f1d1d;
}
/* ----------------------------------------------------------------------------
* 9. 13 道首破奪標紅榜牆與英雄榜 (.bz-board-wall)
* ---------------------------------------------------------------------------- */
.bz-board-wall {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
gap: 9px;
}
.bz-fb-banner {
padding: 10px 12px;
border-radius: 12px;
border: 1.5px solid #cfa062;
background: #fff9ee;
display: flex;
flex-direction: column;
gap: 4px;
font-size: 12px;
color: #3c2213;
}
.bz-fb-banner.is-open {
border-color: #dc2626;
background: linear-gradient(180deg, #fee2e2 0%, #fecaca 100%);
}
.bz-fb-banner.is-claimed {
border-color: #d97706;
background: linear-gradient(180deg, #fef3c7 0%, #fde68a 100%);
}
.bz-fb-pulse {
display: inline-block;
padding: 2px 8px;
border-radius: 99px;
background: #b91c1c;
border: 1px solid #fbbf24;
color: #ffffff;
font-size: 11px;
font-weight: 800;
animation: bzNearPulse 1.5s ease-in-out infinite;
}
.bz-table-wrap {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
border-radius: 13px;
border: 1.5px solid #ba8950;
background: #fffaf0;
}
.bz-rank-table {
width: 100%;
border-collapse: collapse;
font-size: 13.5px;
color: #3c2213;
}
.bz-rank-table th,
.bz-rank-table td {
padding: 10px 12px;
border-bottom: 1px solid #ead3ae;
text-align: left;
white-space: nowrap;
}
.bz-rank-table th {
color: #fde68a;
font-size: 12px;
font-weight: 800;
background: #352744;
}
.bz-rank-table tr.is-me {
background: #fef3c7;
}
/* ----------------------------------------------------------------------------
* 10. 戰後結算與黑市嵌合區
* ---------------------------------------------------------------------------- */
.bz-settle-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.bz-settle-row {
padding: 10px 12px;
border-radius: 12px;
background: #fff9ee;
border: 1.5px solid #d5ab73;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
flex-wrap: wrap;
}
.bz-first-blood-hero {
padding: 14px 16px;
border-radius: 14px;
background: linear-gradient(135deg, #dc2626, #b45309);
border: 2px solid #fde047;
color: #fef9c3;
font-weight: 900;
box-shadow: 0 10px 28px rgba(185, 28, 28, 0.35);
}
.bz-market-host .me-caravan-bar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
padding: 12px 16px;
margin-bottom: 12px;
border-radius: 14px;
background: linear-gradient(150deg, #352744, #22182d);
border: 2px solid #c8964e;
color: #fef3c7;
}
.bz-market-host .me-caravan-bar-exp {
width: 180px;
height: 8px;
border-radius: 99px;
background: #171122;
overflow: hidden;
border: 1px solid #c8964e;
}
.bz-market-host .me-caravan-bar-exp > span {
display: block;
height: 100%;
background: linear-gradient(90deg, #10b981, #fbbf24);
}
.bz-market-host .me-item-buy-btn {
min-height: 44px;
}
.bz-market-host .me-coupon-toggle {
min-height: 44px;
touch-action: manipulation;
}
/* ----------------------------------------------------------------------------
* 10B. 九州沙盤大市集地標慶典金芒與紅點提示 (.spot-bazaar-camp)
* ---------------------------------------------------------------------------- */
.map-spot.spot-merchant-camp.spot-bazaar-camp .spot-merchant-wrap::before {
width: 112%;
height: 112%;
background: radial-gradient(circle, rgba(251, 191, 36, 0.58) 0%, rgba(20, 184, 166, 0.24) 48%, rgba(217, 119, 6, 0) 74%);
}
.map-spot.spot-merchant-camp.spot-bazaar-camp .spot-merchant-img {
filter: drop-shadow(0 8px 18px rgba(245, 158, 11, 0.55));
animation: none !important;
}
.map-spot.spot-merchant-camp.spot-bazaar-camp .spot-badge-daily {
top: 2px;
left: 50%;
transform: translateX(-50%);
white-space: nowrap;
display: inline-flex;
align-items: center;
gap: 4px;
background: linear-gradient(135deg, #f59e0b, #d97706);
box-shadow: 0 3px 12px rgba(245, 158, 11, 0.55);
}
.map-spot.spot-merchant-camp.spot-bazaar-camp.bazaar-countdown .spot-badge-daily {
background: linear-gradient(135deg, #334155, #1e293b);
box-shadow: 0 3px 10px rgba(15, 23, 42, 0.45);
}
.spot-bazaar-dot {
display: inline-block;
width: 8px;
height: 8px;
border-radius: 50%;
background: #ef4444;
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 0 8px #ef4444;
animation: bzNearPulse 1.3s ease-in-out infinite;
flex: 0 0 auto;
}
.map-spot.spot-merchant-camp.spot-bazaar-camp .spot-label {
border-color: #f59e0b !important;
box-shadow: 0 4px 16px rgba(245, 158, 11, 0.25) !important;
}
/* 西域萬國大市集慶典煙火特效(地面亮點升空 → 頂點快爆 → 重力緩落閃爍) */
.spot-bazaar-fireworks {
position: absolute;
inset: -48% -24% 10% -24%;
pointer-events: none;
z-index: 6;
overflow: visible;
}
.bz-fw {
position: absolute;
width: 4px;
height: 4px;
--fw-color: #fde047;
--fw-glow: rgba(253, 224, 71, 0.95);
--fw-launch-y: 72px;
--fw-dur: 3.6s;
--fw-delay: 0s;
}
.bz-fw-1 {
left: 20%;
top: 16%;
--fw-color: #fde047;
--fw-glow: rgba(251, 191, 36, 0.95);
--fw-launch-y: 68px;
--fw-delay: 0s;
}
.bz-fw-2 {
right: 16%;
top: 10%;
--fw-color: #fb7185;
--fw-glow: rgba(244, 63, 94, 0.95);
--fw-launch-y: 78px;
--fw-delay: 1.2s;
}
.bz-fw-3 {
left: 52%;
top: 2%;
--fw-color: #38bdf8;
--fw-glow: rgba(56, 189, 248, 0.95);
--fw-launch-y: 84px;
--fw-delay: 2.4s;
}
/* 1. 地面亮點升空拖尾 */
.bz-fw-rocket {
position: absolute;
left: 50%;
top: 50%;
width: 4px;
height: 14px;
margin-left: -2px;
margin-top: -7px;
border-radius: 999px;
background: linear-gradient(to bottom, #ffffff 0%, var(--fw-color) 45%, transparent 100%);
box-shadow: 0 0 8px #ffffff, 0 0 14px var(--fw-glow);
opacity: 0;
animation: bzFwLaunch var(--fw-dur) cubic-bezier(0.22, 0.61, 0.36, 1) var(--fw-delay) infinite;
}
/* 2. 頂點爆開閃光核心 */
.bz-fw-burst {
position: absolute;
left: 50%;
top: 50%;
width: 0;
height: 0;
}
.bz-fw-burst::before {
content: '';
position: absolute;
left: -8px;
top: -8px;
width: 16px;
height: 16px;
border-radius: 50%;
background: radial-gradient(circle, #ffffff 0%, var(--fw-color) 42%, transparent 72%);
opacity: 0;
animation: bzFwCore var(--fw-dur) ease-out var(--fw-delay) infinite;
}
/* 3. 12 顆火花:外層 <i> 負責「剛爆開很快」的徑向急擴,內層 <b> 負責「慢慢重力落下+閃爍淡出」 */
.bz-fw-burst i {
position: absolute;
left: 0;
top: 0;
width: 0;
height: 0;
animation: bzFwGravity var(--fw-dur) ease-in var(--fw-delay) infinite;
}
.bz-fw-burst i b {
position: absolute;
left: -2px;
top: -2px;
width: 4px;
height: 4px;
border-radius: 50%;
background: #ffffff;
box-shadow: 0 0 4px #ffffff, 0 0 8px var(--fw-color), 0 0 14px var(--fw-glow);
opacity: 0;
animation: bzFwSpark var(--fw-dur) cubic-bezier(0.05, 0.88, 0.22, 1) var(--fw-delay) infinite;
}
.bz-fw-burst i:nth-child(1) { --ang: 0deg; --dist: 30px; }
.bz-fw-burst i:nth-child(2) { --ang: 30deg; --dist: 26px; }
.bz-fw-burst i:nth-child(3) { --ang: 60deg; --dist: 31px; }
.bz-fw-burst i:nth-child(4) { --ang: 90deg; --dist: 27px; }
.bz-fw-burst i:nth-child(5) { --ang: 120deg; --dist: 30px; }
.bz-fw-burst i:nth-child(6) { --ang: 150deg; --dist: 25px; }
.bz-fw-burst i:nth-child(7) { --ang: 180deg; --dist: 30px; }
.bz-fw-burst i:nth-child(8) { --ang: 210deg; --dist: 26px; }
.bz-fw-burst i:nth-child(9) { --ang: 240deg; --dist: 31px; }
.bz-fw-burst i:nth-child(10) { --ang: 270deg; --dist: 27px; }
.bz-fw-burst i:nth-child(11) { --ang: 300deg; --dist: 30px; }
.bz-fw-burst i:nth-child(12) { --ang: 330deg; --dist: 25px; }
@keyframes bzFwLaunch {
0% {
transform: translateY(var(--fw-launch-y)) scaleY(0.7);
opacity: 0;
}
4% {
transform: translateY(var(--fw-launch-y)) scaleY(1.25);
opacity: 1;
}
23% {
transform: translateY(4px) scaleY(1);
opacity: 1;
}
26% {
transform: translateY(0) scaleY(0.3);
opacity: 0;
}
100% {
transform: translateY(0) scaleY(0.3);
opacity: 0;
}
}
@keyframes bzFwCore {
0%, 24% { transform: scale(0.1); opacity: 0; }
27% { transform: scale(1.9); opacity: 1; }
38% { transform: scale(2.8); opacity: 0; }
100% { transform: scale(0.1); opacity: 0; }
}
@keyframes bzFwSpark {
0%, 24% {
transform: rotate(var(--ang)) translateX(0) scale(0.3);
opacity: 0;
}
27% {
transform: rotate(var(--ang)) translateX(calc(var(--dist) * 0.45)) scale(1.25);
opacity: 1;
}
44% {
transform: rotate(var(--ang)) translateX(var(--dist)) scale(0.95);
opacity: 0.95;
}
66% {
transform: rotate(var(--ang)) translateX(calc(var(--dist) * 1.18)) scale(0.65);
opacity: 0.55;
}
84% {
transform: rotate(var(--ang)) translateX(calc(var(--dist) * 1.24)) scale(0.25);
opacity: 0;
}
100% {
transform: rotate(var(--ang)) translateX(0) scale(0.2);
opacity: 0;
}
}
@keyframes bzFwGravity {
0%, 26% { transform: translateY(0); }
46% { transform: translateY(4px); }
72% { transform: translateY(18px); }
86% { transform: translateY(28px); }
100% { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
.spot-bazaar-fireworks {
display: none;
}
}
/* ----------------------------------------------------------------------------
* 11. 行動端響應式規則 (@media)
* ---------------------------------------------------------------------------- */
@media (max-width: 768px) {
.bz-sticky-header,
.bz-hero-banner {
padding: 10px 56px 0 12px;
}
.bz-title {
font-size: 16px;
}
.bz-tabs {
gap: 5px;
}
.bz-tab-btn {
font-size: 11.5px;
padding: 6px 4px;
}
.bz-content {
padding: 12px 10px 18px;
}
.bz-hero-panel {
grid-template-columns: 1fr;
}
.bz-cta-camel {
width: 68px;
}
.bz-cta-camel img {
width: 68px;
}
.bz-milestones-strip {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.bz-scroll-tabs {
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 5px;
}
.bz-bingo-grid {
gap: 4px;
}
.bz-cell {
min-height: 54px;
padding: 4px 3px;
}
.bz-cell-word {
font-size: 10.5px;
}
.bz-cell-zh {
font-size: 9.5px;
}
.bz-arena {
grid-template-columns: 1fr;
gap: 10px;
}
.bz-npc-panel {
display: grid;
grid-template-columns: 68px minmax(0, 1fr);
grid-template-rows: auto auto;
align-items: center;
gap: 8px 12px;
padding: 10px 12px;
}
.bz-npc-portrait {
grid-row: 1 / 3;
width: 68px;
max-width: 68px;
}
.bz-npc-name,
.bz-npc-role {
text-align: left;
}
.bz-npc-bubble {
grid-column: 1 / -1;
font-size: 12.5px;
padding: 8px 10px;
}
.bz-options-grid {
grid-template-columns: 1fr;
}
.bz-pair-grid {
gap: 8px;
}
.bz-pair-card {
padding: 8px 9px;
font-size: 13px;
}
}
@media (max-width: 640px) {
.map-spot.spot-merchant-camp.spot-bazaar-camp .spot-badge-daily {
font-size: 9px;
padding: 1px 6px;
}
.map-spot.spot-merchant-camp.spot-bazaar-camp .spot-label {
font-size: 9.5px;
padding: 2px 6px;
}
.bz-wrong-summary-list {
grid-template-columns: 1fr;
}
}
@media (max-height: 700px) {
.bz-walk-stage {
height: 190px;
}
}
/* ============================================================================
* css/bazaar.css
* 《攻城掠地・霸業征途》西域萬國大市集(Western Grand Bazaar)互動舞台樣式
* - 暖色絲路羊皮紙 × 西域燈籠長街頂部橫幅 × 深紫褐資訊牌匾 × 紅色系 5×5 賓果方塊
* - 行動端鐵律:max-height: 88vh / 84vh、原生捲動流暢、所有觸控區 >= 44px
* ============================================================================ */
@keyframes bzFloatSlow {
0%, 100% { transform: translateY(0px); }
50% { transform: translateY(-5px); }
}
@keyframes bzPulseGlow {
0%, 100% { box-shadow: 0 4px 0 #9a4906, 0 0 0 0 rgba(217, 119, 6, 0.45), 0 8px 18px rgba(154, 73, 6, 0.3); }
50% { box-shadow: 0 4px 0 #9a4906, 0 0 0 6px rgba(245, 158, 11, 0), 0 10px 24px rgba(217, 119, 6, 0.5); }
}
@keyframes bzNearPulse {
0%, 100% { transform: scale(1); opacity: 1; }
50% { transform: scale(1.06); opacity: 0.85; }
}
@keyframes bzFpvAdvance {
0% { transform: scale(1) translate3d(0px, 0px, 0); }
25% { transform: scale(1.07) translate3d(-4px, -4px, 0); }
50% { transform: scale(1.14) translate3d(4px, 2px, 0); }
75% { transform: scale(1.22) translate3d(-3px, -5px, 0); }
100% { transform: scale(1.28) translate3d(0px, 0px, 0); }
}
@keyframes bzStageImpact {
0% { transform: scale(1.28) translate3d(0px, 0px, 0); }
20% { transform: scale(1.31) translate3d(-6px, 3px, 0); }
45% { transform: scale(1.3) translate3d(6px, -4px, 0); }
70% { transform: scale(1.29) translate3d(-3px, 2px, 0); }
100% { transform: scale(1.28) translate3d(0px, 0px, 0); }
}
@keyframes bzExclaimPop {
0% { transform: translate(-50%, -35%) scale(0.2) rotate(-14deg); opacity: 0; }
55% { transform: translate(-50%, -62%) scale(1.3) rotate(8deg); opacity: 1; }
78% { transform: translate(-50%, -48%) scale(0.95) rotate(-4deg); }
100% { transform: translate(-50%, -52%) scale(1.06) rotate(0deg); opacity: 1; }
}
/* 仿寶可夢遭遇戰:黑白急閃(白→黑→白→黑…),結尾停在全黑 */
@keyframes bzFpvFlash {
0% { opacity: 1; background: #ffffff; }
14% { opacity: 1; background: #000000; }
28% { opacity: 1; background: #ffffff; }
42% { opacity: 1; background: #000000; }
56% { opacity: 1; background: #ffffff; }
70% { opacity: 1; background: #000000; }
84% { opacity: 1; background: #ffffff; }
100% { opacity: 1; background: #000000; }
}
@keyframes bzCurtainOutLeft {
0% { transform: translateX(0%); }
100% { transform: translateX(-105%); }
}
@keyframes bzCurtainOutRight {
0% { transform: translateX(0%); }
100% { transform: translateX(105%); }
}
@keyframes bzNpcSlideIn {
0% { transform: translateX(130%); opacity: 0; }
100% { transform: translateX(0%); opacity: 1; }
}
@keyframes bzIntroFadeUp {
0% { transform: translateY(14px); opacity: 0; }
100% { transform: translateY(0); opacity: 1; }
}
@keyframes bzIntroNextBlink {
0%, 100% { opacity: 1; }
50% { opacity: 0.15; }
}
@keyframes bzShutterInLeft {
0% { transform: translateX(-104%); opacity: 0.95; }
100% { transform: translateX(0%); opacity: 1; }
}
@keyframes bzShutterInRight {
0% { transform: translateX(104%); opacity: 0.95; }
100% { transform: translateX(0%); opacity: 1; }
}
@keyframes bzStreakZoom {
0% { transform: scale(0.45); opacity: 0; }
35% { opacity: 0.85; }
100% { transform: scale(1.65); opacity: 0; }
}
@keyframes bzBonusFloat {
0% { transform: translateY(8px) scale(0.85); opacity: 0; }