Download css/lottery.css from Lashtw/idle: direct link, hf CLI and curl.
- Browser
- Download file 27.4 kB
-
https://huggingface.co/spaces/Lashtw/idle/resolve/main/css/lottery.css
- Command line
-
hf download hf://spaces/Lashtw/idle/css/lottery.css
-
curl -L -o lottery.css https://huggingface.co/spaces/Lashtw/idle/resolve/main/css/lottery.css
27.4 kB
/* ============================================================================
* css/lottery.css
* 錯題樂透・聚寶朱紅描金琉璃箱美學(對應 assets/lottery_box.png)
* - 學生端琉璃圓倉舞台、大螢幕開獎台、手機單欄 RWD、深淺主題無縫相容
* ============================================================================ */
/* 大地圖點位圖示 */
.spot-lottery-wrap {
display: inline-flex;
flex-direction: column;
align-items: center;
gap: 2px;
cursor: pointer;
user-select: none;
}
.spot-lottery-img {
width: 100%;
height: auto;
display: block;
object-fit: contain;
filter: drop-shadow(0 8px 14px rgba(153, 27, 27, 0.42)) drop-shadow(0 0 12px rgba(245, 196, 81, 0.55));
animation: lotteryFloat 3.4s ease-in-out infinite;
transition: transform 0.22s ease, filter 0.22s ease;
}
@media (hover: hover) {
.spot-lottery-wrap:hover .spot-lottery-img {
transform: scale(1.07);
filter: drop-shadow(0 12px 20px rgba(153, 27, 27, 0.55)) drop-shadow(0 0 20px rgba(251, 191, 36, 0.85));
}
}
.spot-lottery-img.lottery-done {
filter: grayscale(0.55) opacity(0.75);
animation: none;
}
@keyframes lotteryFloat {
0%,
100% {
transform: translateY(0px);
}
50% {
transform: translateY(-7px);
}
}
@keyframes lotteryLanternSway {
0%,
100% {
transform: rotate(-4deg);
}
50% {
transform: rotate(4deg);
}
}
@keyframes lotteryEmblemFloat {
0%,
100% {
transform: translateY(0px) rotate(-1deg);
}
50% {
transform: translateY(-4px) rotate(1.5deg);
}
}
@keyframes lotteryBallFloat {
0%,
100% {
transform: translateY(0px) scale(1);
}
50% {
transform: translateY(-4px) scale(1.03);
}
}
@keyframes lotterySlideOut {
0% {
transform: translateX(-36px) scale(0.75);
opacity: 0;
}
65% {
transform: translateX(4px) scale(1.06);
opacity: 1;
}
100% {
transform: translateX(0) scale(1);
opacity: 1;
}
}
@keyframes lotteryConfettiFall {
0% {
transform: translateY(-20px) rotate(0deg);
opacity: 1;
}
100% {
transform: translateY(260px) rotate(540deg);
opacity: 0;
}
}
/* ----------------------------------------------------------------------------
* 學生端 Modal 主容器:朱紅御漆 × 古銅鎏金 × 暖光燈籠琉璃倉
* ---------------------------------------------------------------------------- */
.modal.lottery-shell-modal {
background: transparent;
border: none;
box-shadow: none;
padding: 0;
border-radius: 20px;
}
.modal.lottery-shell-modal .modal-body {
padding: 0;
}
.modal.lottery-shell-modal .modal-x {
top: 18px;
right: 18px;
z-index: 5;
width: 44px;
height: 44px;
border-radius: 999px;
background: rgba(69, 10, 10, 0.92);
color: #fde68a;
border: 1.5px solid rgba(245, 196, 81, 0.65);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}
.modal.lottery-shell-modal .modal-x:hover {
background: #991b1b;
color: #fffbeb;
border-color: #fef08a;
}
.lottery-modal-card {
font-family: "Inter", "Noto Sans TC", sans-serif;
color: #fef3c7;
background:
radial-gradient(ellipse at 50% 0%, rgba(245, 158, 11, 0.24), transparent 58%),
linear-gradient(170deg, #5c0d0d 0%, #3e0808 55%, #230404 100%);
border: 2px solid rgba(245, 196, 81, 0.65);
border-radius: 20px;
padding: 14px 14px 16px;
box-shadow:
0 20px 48px rgba(0, 0, 0, 0.58),
inset 0 0 0 1px rgba(254, 240, 138, 0.18),
inset 0 0 38px rgba(245, 158, 11, 0.12);
}
.lottery-modal-card .mute {
color: #f3d6a2;
}
/* 頂部寶箱主題華蓋列(對應 lottery_box.png 與左右燈籠) */
.lottery-hero-canopy {
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
padding: 10px 54px 10px 14px;
margin-bottom: 12px;
border-radius: 16px;
background: linear-gradient(135deg, rgba(127, 29, 29, 0.92), rgba(69, 10, 10, 0.95));
border: 1.5px solid rgba(245, 196, 81, 0.55);
box-shadow: inset 0 1px 0 rgba(254, 243, 199, 0.24), 0 8px 20px rgba(0, 0, 0, 0.35);
overflow: hidden;
}
.lottery-hero-brand {
display: flex;
align-items: center;
gap: 10px;
min-width: 0;
}
.lottery-hero-emblem {
width: 66px;
height: 50px;
object-fit: contain;
flex-shrink: 0;
filter: drop-shadow(0 4px 10px rgba(245, 196, 81, 0.6));
animation: lotteryEmblemFloat 3.2s ease-in-out infinite;
}
.lottery-lantern {
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 1.25rem;
transform-origin: top center;
animation: lotteryLanternSway 3.8s ease-in-out infinite;
filter: drop-shadow(0 0 8px rgba(251, 146, 60, 0.8));
}
.lottery-lantern.right {
animation-delay: -1.9s;
}
.lottery-header-bar {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 8px;
padding-right: 48px;
margin-bottom: 12px;
}
.lottery-title-main {
font-size: 1.32rem;
font-weight: 900;
color: #fde68a;
text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.lottery-pill-tag {
display: inline-flex;
align-items: center;
gap: 5px;
padding: 5px 12px;
border-radius: 999px;
font-size: 0.88rem;
font-weight: 800;
background: rgba(245, 158, 11, 0.22);
color: #fde68a;
border: 1px solid rgba(251, 191, 36, 0.52);
white-space: nowrap;
}
/* 琉璃圓球聚寶舞台(非冷色藍灰,與 lottery_box.png 同系朱紅描金+暖琥珀) */
.lottery-box-stage {
position: relative;
border-radius: 18px;
padding: 14px;
background:
radial-gradient(circle at 50% 34%, rgba(251, 191, 36, 0.22), transparent 62%),
linear-gradient(155deg, #4b0d0d 0%, #2d0606 100%);
border: 2px solid rgba(245, 196, 81, 0.52);
box-shadow: inset 0 0 28px rgba(245, 158, 11, 0.14), 0 10px 26px rgba(0, 0, 0, 0.45);
overflow: hidden;
margin-bottom: 12px;
}
.lottery-dome-canvas-wrap {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 4px 0 6px;
}
.lottery-dome-canvas {
width: 100%;
max-width: 340px;
height: auto;
aspect-ratio: 340 / 292;
display: block;
border-radius: 16px;
cursor: pointer;
}
.lottery-dome-legend {
margin-top: 8px;
padding: 8px 12px;
border-radius: 10px;
background: rgba(127, 29, 29, 0.55);
border: 1px solid rgba(245, 196, 81, 0.34);
font-size: 0.9rem;
color: #fde68a;
text-align: center;
line-height: 1.5;
width: 100%;
}
.lottery-stats-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 8px;
margin-top: 12px;
}
.lottery-stat-card {
background: linear-gradient(160deg, rgba(110, 20, 20, 0.78), rgba(62, 10, 10, 0.9));
border: 1px solid rgba(245, 196, 81, 0.36);
border-radius: 12px;
padding: 10px 6px;
text-align: center;
box-shadow: inset 0 1px 0 rgba(254, 240, 138, 0.12);
}
.lottery-stat-label {
font-size: 0.84rem;
color: #f3d6a2;
display: block;
}
.lottery-stat-val {
font-size: 1.2rem;
font-weight: 900;
color: #fffbeb;
display: block;
margin-top: 3px;
}
/* 三階集氣進度條 */
.lottery-milestone-box {
background: linear-gradient(155deg, rgba(84, 15, 15, 0.85), rgba(50, 8, 8, 0.92));
border: 1.5px solid rgba(245, 196, 81, 0.42);
border-radius: 14px;
padding: 12px 14px;
margin-top: 12px;
}
.lottery-milestone-track {
position: relative;
height: 14px;
border-radius: 999px;
background: rgba(0, 0, 0, 0.45);
border: 1px solid rgba(245, 196, 81, 0.28);
overflow: hidden;
margin: 8px 0 8px;
}
.lottery-milestone-fill {
height: 100%;
border-radius: 999px;
background: linear-gradient(90deg, #ef4444 0%, #f59e0b 48%, #fef08a 100%);
box-shadow: 0 0 12px rgba(245, 196, 81, 0.7);
transition: width 0.55s ease;
}
.lottery-milestone-flags {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 8px;
font-size: 0.88rem;
}
.lottery-m-flag {
padding: 8px 10px;
border-radius: 9px;
background: rgba(40, 6, 6, 0.65);
border: 1px solid rgba(245, 196, 81, 0.25);
color: #f3d6a2;
text-align: center;
line-height: 1.4;
}
.lottery-m-flag.reached {
background: linear-gradient(135deg, rgba(217, 119, 6, 0.42), rgba(180, 83, 9, 0.48));
border-color: #fde68a;
color: #fef9c3;
font-weight: 800;
box-shadow: 0 0 12px rgba(245, 196, 81, 0.28);
}
/* 互動按鈕:觸控高度 >= 48px */
.lottery-primary-btn {
width: 100%;
min-height: 52px;
border: 1.5px solid #fef08a;
border-radius: 14px;
padding: 13px 18px;
font-size: 1.12rem;
font-weight: 900;
color: #450a0a;
background: linear-gradient(135deg, #fef08a 0%, #f59e0b 55%, #d97706 100%);
box-shadow: 0 8px 20px rgba(217, 119, 6, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.55);
cursor: pointer;
transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}
.lottery-primary-btn:hover:not(:disabled) {
transform: translateY(-2px) scale(1.01);
box-shadow: 0 12px 26px rgba(245, 158, 11, 0.56);
}
.lottery-primary-btn:disabled {
opacity: 0.55;
cursor: not-allowed;
}
/* 答題面板:朱紅金框+象牙暖紙選項(確保配線GIF白/透明底題圖100%清楚) */
.lottery-quiz-card {
background: linear-gradient(160deg, rgba(102, 18, 18, 0.78), rgba(58, 9, 9, 0.92));
border: 1.5px solid rgba(245, 196, 81, 0.45);
border-radius: 16px;
padding: 16px;
}
.lottery-q-stem {
font-size: 1.16rem;
font-weight: 700;
line-height: 1.6;
margin: 12px 0 16px;
color: #fffbeb;
}
.lottery-q-stem img,
.lottery-opt-btn img {
background: #fffbeb;
padding: 3px;
border-radius: 6px;
vertical-align: middle;
}
.lottery-options-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}
.lottery-opt-btn {
min-height: 48px;
padding: 12px 14px;
border-radius: 12px;
border: 1.5px solid rgba(217, 119, 6, 0.65);
background: #fffbeb;
color: #3b0a0a;
font-size: 1.05rem;
font-weight: 700;
text-align: left;
cursor: pointer;
transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
display: flex;
align-items: center;
gap: 8px;
}
.lottery-opt-btn:hover:not(:disabled) {
transform: translateY(-2px);
border-color: #b45309;
background: #fef3c7;
box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}
.lottery-opt-btn.correct,
.lottery-opt-btn.is-correct {
border-color: #16a34a;
background: #dcfce7;
color: #14532d;
}
.lottery-opt-btn.wrong,
.lottery-opt-btn.is-wrong {
border-color: #dc2626;
background: #fee2e2;
color: #7f1d1d;
}
/* ----------------------------------------------------------------------------
* 教師大螢幕開獎台頁面(lottery-draw.html):對齊遊戲亮色暖杏底 (#f9e9da) × 白金卡片 × 高對比放大字體
* ---------------------------------------------------------------------------- */
body.lottery-draw-body {
min-height: 100vh;
margin: 0;
padding: 18px 20px;
background:
radial-gradient(1200px 600px at 10% -10%, rgba(239, 90, 86, 0.10), transparent 60%),
radial-gradient(900px 500px at 110% 10%, rgba(244, 212, 116, 0.22), transparent 60%),
var(--bg-0, #f9e9da);
color: var(--text, #2c201b);
font-family: "Inter", "Noto Sans TC", sans-serif;
font-size: 17px;
line-height: 1.6;
}
.lottery-draw-body .lottery-pill-tag {
background: #fef3c7;
color: #78350f;
border: 1.5px solid #d97706;
font-size: 0.94rem;
padding: 5px 12px;
}
.draw-topbar {
max-width: 1260px;
margin: 0 auto 16px;
padding: 14px 18px;
border-radius: 18px;
background: linear-gradient(135deg, #ffffff, #fcf4eb);
border: 2px solid rgba(180, 110, 80, 0.28);
box-shadow: 0 10px 26px rgba(120, 70, 50, 0.1);
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.draw-topbar-emblem {
width: 56px;
height: 42px;
object-fit: contain;
filter: drop-shadow(0 3px 8px rgba(180, 83, 9, 0.35));
}
.draw-auth-card {
max-width: 440px;
margin: 60px auto;
padding: 28px;
border-radius: 20px;
background: #ffffff;
border: 2px solid rgba(180, 110, 80, 0.32);
box-shadow: 0 18px 40px rgba(120, 70, 50, 0.14);
}
.draw-layout {
max-width: 1260px;
margin: 0 auto;
display: grid;
grid-template-columns: 1.12fr 0.88fr;
gap: 18px;
align-items: start;
}
.draw-panel {
background: linear-gradient(170deg, #ffffff 0%, #fcf4eb 100%);
border: 2px solid rgba(180, 110, 80, 0.28);
border-radius: 22px;
padding: 20px;
box-shadow: 0 12px 32px rgba(120, 70, 50, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
position: relative;
overflow: hidden;
}
.draw-canvas-wrap {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 6px 0;
border-radius: 18px;
background: radial-gradient(circle at 50% 48%, rgba(245, 196, 81, 0.18), rgba(249, 233, 218, 0.45) 75%);
}
.draw-canvas-wrap canvas {
max-width: 100%;
height: auto;
display: block;
}
.draw-chute-reveal {
margin-top: 12px;
min-height: 86px;
border-radius: 16px;
border: 2px solid #d97706;
background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 100%);
padding: 14px 18px;
display: flex;
align-items: center;
justify-content: center;
gap: 14px;
flex-wrap: wrap;
box-shadow: inset 0 2px 8px rgba(217, 119, 6, 0.12);
}
.draw-rolling-ball {
width: 60px;
height: 60px;
border-radius: 999px;
display: inline-flex;
align-items: center;
justify-content: center;
font-weight: 900;
font-size: 1.35rem;
background: radial-gradient(circle at 32% 30%, #fef9c3, #f59e0b 65%, #92400e);
color: #451a03;
border: 2.5px solid #b45309;
box-shadow: 0 4px 16px rgba(217, 119, 6, 0.45);
animation: lotterySlideOut 0.48s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.draw-btn {
min-height: 48px;
padding: 10px 16px;
border-radius: 12px;
border: 1.5px solid rgba(180, 110, 80, 0.38);
background: #fcf4eb;
color: #2c201b;
font-size: 1.04rem;
font-weight: 800;
cursor: pointer;
transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.draw-btn:hover:not(:disabled) {
transform: translateY(-1px);
border-color: #b91c1c;
background: #fffbeb;
box-shadow: 0 6px 14px rgba(120, 70, 50, 0.14);
}
.draw-btn:disabled {
opacity: 0.45;
cursor: not-allowed;
}
.draw-btn.gold {
background: linear-gradient(135deg, #fde68a 0%, #f59e0b 60%, #d97706 100%);
color: #450a0a;
border-color: #b45309;
box-shadow: 0 6px 16px rgba(217, 119, 6, 0.25);
}
.draw-select {
min-height: 46px;
padding: 8px 14px;
border-radius: 12px;
border: 1.5px solid rgba(180, 110, 80, 0.4);
background: #ffffff;
color: #2c201b;
font-size: 1rem;
font-weight: 700;
cursor: pointer;
}
.draw-tier-card {
padding: 12px 14px;
border-radius: 14px;
background: #ffffff;
border: 1.5px solid rgba(180, 110, 80, 0.25);
box-shadow: 0 4px 12px rgba(120, 70, 50, 0.05);
}
.draw-participant-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 9px 12px;
border-radius: 10px;
background: #ffffff;
border: 1px solid rgba(180, 110, 80, 0.2);
font-size: 1.02rem;
}
.lottery-draw-body .lottery-primary-btn {
min-height: 54px;
font-size: 1.18rem;
}
.lottery-confetti {
position: absolute;
width: 9px;
height: 14px;
top: 0;
pointer-events: none;
animation: lotteryConfettiFall 2.2s ease-out forwards;
}
/* ----------------------------------------------------------------------------
* 🎲 奇蹟骰跳出對決舞台(3 顆實體感點數金骰+對子/豹子光環特效)
* ---------------------------------------------------------------------------- */
@keyframes wonderDicePopIn {
0% { transform: scale(0.72) translateY(28px); opacity: 0; }
65% { transform: scale(1.04) translateY(-4px); opacity: 1; }
100% { transform: scale(1) translateY(0); opacity: 1; }
}
@keyframes wonderDieRollBounce {
0% { transform: translateY(0) rotate(0deg) scale(1); }
25% { transform: translateY(-22px) rotate(-18deg) scale(1.09); }
50% { transform: translateY(-6px) rotate(14deg) scale(0.96); }
75% { transform: translateY(-18px) rotate(-10deg) scale(1.06); }
100% { transform: translateY(0) rotate(0deg) scale(1); }
}
@keyframes wonderDieMatchPulse {
0%, 100% { transform: translateY(-6px) scale(1.08); box-shadow: 0 10px 26px rgba(245, 158, 11, 0.72), 0 0 0 4px rgba(220, 38, 38, 0.55); }
50% { transform: translateY(-10px) scale(1.13); box-shadow: 0 14px 32px rgba(245, 158, 11, 0.92), 0 0 0 6px rgba(245, 158, 11, 0.8); }
}
.wonder-dice-overlay {
position: fixed;
inset: 0;
z-index: 999;
background: rgba(44, 32, 27, 0.62);
backdrop-filter: blur(5px);
display: flex;
align-items: center;
justify-content: center;
padding: 16px;
}
.wonder-dice-card {
position: relative;
width: min(640px, 100%);
border-radius: 22px;
padding: 22px 24px;
background: linear-gradient(165deg, #ffffff 0%, #fcf4eb 100%);
border: 2.5px solid #d97706;
box-shadow: 0 24px 60px rgba(44, 32, 27, 0.42), inset 0 0 24px rgba(245, 158, 11, 0.14);
color: #2c201b;
overflow: hidden;
animation: wonderDicePopIn 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.wonder-dice-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin-bottom: 12px;
}
.wonder-dice-target-row {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 10px;
margin-bottom: 10px;
}
.wonder-dice-rules {
padding: 10px 14px;
border-radius: 12px;
background: #fef3c7;
border: 1.5px solid rgba(217, 119, 6, 0.45);
color: #78350f;
font-size: 1rem;
font-weight: 700;
text-align: center;
margin-bottom: 16px;
}
.wonder-dice-stage {
display: flex;
align-items: center;
justify-content: center;
gap: 24px;
padding: 18px 10px 22px;
min-height: 150px;
border-radius: 18px;
background: radial-gradient(circle at 50% 45%, rgba(245, 158, 11, 0.22), rgba(243, 222, 203, 0.52) 78%);
border: 1.5px solid rgba(180, 110, 80, 0.28);
margin-bottom: 14px;
}
.wonder-die {
position: relative;
width: 104px;
height: 104px;
border-radius: 22px;
padding: 12px;
background: linear-gradient(145deg, #ffffff 0%, #fffbeb 55%, #fde68a 100%);
border: 2.5px solid #b45309;
box-shadow:
0 10px 22px rgba(120, 70, 50, 0.28),
inset 0 3px 6px rgba(255, 255, 255, 0.95),
inset 0 -4px 8px rgba(180, 83, 9, 0.25);
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 1fr);
place-items: center;
transition: transform 0.24s ease, opacity 0.24s ease, filter 0.24s ease, box-shadow 0.24s ease;
}
.wonder-die.rolling {
animation: wonderDieRollBounce 0.36s ease-in-out infinite;
border-color: #ef4444;
}
.wonder-die.locked {
transform: scale(1.02);
}
.wonder-die.matched {
background: linear-gradient(145deg, #fffbeb 0%, #fef08a 58%, #f59e0b 100%);
border-color: #b91c1c;
animation: wonderDieMatchPulse 1.1s ease-in-out infinite;
}
.wonder-die.matched::after {
content: '同點!';
position: absolute;
top: -12px;
right: -10px;
padding: 2px 8px;
border-radius: 999px;
background: #b91c1c;
color: #fef08a;
font-size: 0.78rem;
font-weight: 900;
border: 1.5px solid #fef08a;
box-shadow: 0 3px 8px rgba(0, 0, 0, 0.28);
}
.wonder-die.unmatched {
opacity: 0.58;
filter: saturate(0.65);
transform: scale(0.95);
}
.wonder-pip {
width: 17px;
height: 17px;
border-radius: 999px;
background: radial-gradient(circle at 30% 30%, #451a03, #1c1917);
box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.7);
}
.wonder-pip.red {
background: radial-gradient(circle at 30% 30%, #ef4444, #991b1b);
}
.wonder-pip.big-one {
width: 26px;
height: 26px;
}
.wonder-dice-result-banner {
padding: 12px 16px;
border-radius: 14px;
font-size: 1.18rem;
font-weight: 900;
text-align: center;
margin-bottom: 14px;
background: #fcf4eb;
border: 1.5px solid rgba(180, 110, 80, 0.3);
color: #2c201b;
}
.wonder-dice-result-banner.hit {
background: linear-gradient(135deg, #fef08a 0%, #fde68a 100%);
border-color: #b91c1c;
color: #991b1b;
box-shadow: 0 6px 18px rgba(217, 119, 6, 0.28);
}
.wonder-dice-result-banner.miss {
background: #f5ebe0;
border-color: #998074;
color: #685247;
}
.wonder-dice-actions {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
/* 學生端樂透大廳&答題頁完整獎項看板 */
.lottery-prizes-board {
margin-top: 10px;
padding: 12px 14px;
border-radius: 14px;
background: rgba(69, 10, 10, 0.72);
border: 1.5px solid rgba(251, 191, 36, 0.45);
box-shadow: inset 0 1px 0 rgba(254, 243, 199, 0.14);
}
.lottery-prizes-board.is-compact {
margin-top: 0;
padding: 10px 12px;
}
.lottery-prizes-head {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 8px;
margin-bottom: 10px;
color: #fef3c7;
font-size: 0.96rem;
}
.lottery-prize-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px;
}
.lottery-prize-item {
padding: 9px 11px;
border-radius: 10px;
background: rgba(31, 6, 6, 0.72);
border: 1px solid rgba(251, 191, 36, 0.3);
display: flex;
flex-direction: column;
gap: 4px;
}
.lottery-prize-item.tier-head {
border-color: rgba(250, 204, 21, 0.75);
background: linear-gradient(145deg, rgba(120, 53, 15, 0.55), rgba(69, 10, 10, 0.78));
}
.lottery-prize-item-head {
display: flex;
justify-content: space-between;
align-items: baseline;
gap: 6px;
flex-wrap: wrap;
font-size: 0.92rem;
color: #fde68a;
}
.lottery-prize-quota {
font-size: 0.78rem;
font-weight: 700;
color: #fed7aa;
}
.lottery-prize-rewards {
display: flex;
flex-wrap: wrap;
gap: 6px;
font-size: 0.84rem;
font-weight: 700;
color: #fffbeb;
}
.lottery-prize-rewards span {
padding: 2px 7px;
border-radius: 999px;
background: rgba(251, 191, 36, 0.16);
border: 1px solid rgba(251, 191, 36, 0.25);
}
.lottery-prize-titles {
font-size: 0.79rem;
color: #fcd34d;
font-weight: 700;
}
.lottery-prize-extras {
margin-top: 9px;
display: grid;
gap: 6px;
}
.lottery-prize-extra-row {
padding: 7px 10px;
border-radius: 9px;
background: rgba(255, 251, 235, 0.08);
border: 1px solid rgba(251, 191, 36, 0.22);
color: #fef3c7;
font-size: 0.83rem;
line-height: 1.45;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 6px;
}
.lottery-prize-status {
padding: 2px 9px;
border-radius: 999px;
font-size: 0.76rem;
font-weight: 800;
}
.lottery-prize-status.ok {
background: rgba(16, 185, 129, 0.24);
border: 1px solid rgba(52, 211, 153, 0.55);
color: #a7f3d0;
}
.lottery-prize-status.need {
background: rgba(245, 158, 11, 0.22);
border: 1px solid rgba(251, 191, 36, 0.5);
color: #fde68a;
}
/* 答題/答錯題頁面獎項快速查看抽屜 */
.lottery-quiz-prize-drawer {
margin-top: 10px;
border-radius: 12px;
background: rgba(69, 10, 10, 0.6);
border: 1px solid rgba(251, 191, 36, 0.42);
overflow: hidden;
}
.lottery-quiz-prize-drawer > summary {
min-height: 44px;
padding: 10px 14px;
cursor: pointer;
list-style: none;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
font-weight: 800;
font-size: 0.88rem;
color: #fde68a;
user-select: none;
transition: background 0.15s ease;
}
.lottery-quiz-prize-drawer > summary::-webkit-details-marker {
display: none;
}
.lottery-quiz-prize-drawer > summary::after {
content: '▾';
font-size: 1rem;
transition: transform 0.2s ease;
}
.lottery-quiz-prize-drawer[open] > summary::after {
transform: rotate(180deg);
}
.lottery-quiz-prize-drawer > summary:hover {
background: rgba(251, 191, 36, 0.12);
}
.lottery-quiz-prize-body {
padding: 0 10px 10px;
}
/* 教師大螢幕:全部抽完導引橫幅 + 一鍵派發結算明細 Modal */
.settle-ready-banner {
margin-top: 12px;
padding: 14px 16px;
border-radius: 14px;
background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
border: 2px solid #d97706;
box-shadow: 0 8px 20px rgba(217, 119, 6, 0.2);
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
flex-wrap: wrap;
}
.settle-ready-text {
display: flex;
flex-direction: column;
gap: 2px;
color: #78350f;
}
.settle-ready-text b {
font-size: 1.08rem;
color: #991b1b;
}
.settle-ready-text span {
font-size: 0.92rem;
font-weight: 600;
}
.settle-preview-card {
width: min(740px, 100%);
max-height: 88vh;
display: flex;
flex-direction: column;
gap: 12px;
}
.settle-preview-summary {
padding: 10px 12px;
border-radius: 12px;
background: #fffbeb;
border: 1.5px solid rgba(217, 119, 6, 0.45);
}
.settle-summary-chips {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.settle-preview-list {
flex: 1 1 auto;
overflow-y: auto;
-webkit-overflow-scrolling: touch;
max-height: 46vh;
display: grid;
gap: 8px;
padding-right: 4px;
}
.settle-preview-row {
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 8px;
padding: 10px 12px;
border-radius: 10px;
background: #ffffff;
border: 1px solid rgba(180, 130, 100, 0.28);
color: #2c201b;
}
.settle-preview-who {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.settle-preview-rewards {
font-size: 0.92rem;
font-weight: 800;
color: #92400e;
display: flex;
align-items: center;
gap: 6px;
flex-wrap: wrap;
}
.settle-preview-error {
padding: 10px 12px;
border-radius: 10px;
background: #fee2e2;
border: 1.5px solid #dc2626;
color: #7f1d1d;
font-weight: 700;
font-size: 0.95rem;
}
.settle-preview-success {
padding: 12px 14px;
border-radius: 12px;
background: #ecfdf5;
border: 1.5px solid #10b981;
}
/* 深淺主題同步保護 */
html[data-theme="dark"] .lottery-modal-card {
color: #fef3c7;
}
html[data-theme="dark"] body.lottery-draw-body {
background:
radial-gradient(ellipse at 18% 0%, rgba(245, 158, 11, 0.24), transparent 48%),
radial-gradient(ellipse at 82% 8%, rgba(220, 38, 38, 0.28), transparent 52%),
linear-gradient(160deg, #270505 0%, #450a0a 52%, #1b0303 100%);
color: #fef3c7;
}
@media (max-width: 900px) {
.draw-layout {
grid-template-columns: 1fr;
}
}
@media (max-width: 640px) {
.lottery-stats-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.lottery-milestone-flags {
grid-template-columns: 1fr;
}
.lottery-options-grid {
grid-template-columns: 1fr;
}
.lottery-hero-emblem {
width: 54px;
height: 42px;
}
.lottery-lantern {
display: none;
}
.wonder-dice-card {
padding: 16px;
}
.wonder-dice-stage {
gap: 12px;
padding: 14px 6px 18px;
}
.wonder-die {
width: 82px;
height: 82px;
padding: 9px;
border-radius: 16px;
}
.wonder-pip {
width: 13px;
height: 13px;
}
.wonder-pip.big-one {
width: 21px;
height: 21px;
}
.wonder-dice-actions {
flex-direction: column;
}
.lottery-prize-grid {
grid-template-columns: 1fr;
}
.settle-preview-card {
max-height: 88vh;
padding: 16px;
}
}
@media (max-height: 700px) {
.settle-preview-card {
max-height: 84vh;
}
}
/* ============================================================================
* css/lottery.css
* 錯題樂透・聚寶朱紅描金琉璃箱美學(對應 assets/lottery_box.png)
* - 學生端琉璃圓倉舞台、大螢幕開獎台、手機單欄 RWD、深淺主題無縫相容
* ============================================================================ */
/* 大地圖點位圖示 */
.spot-lottery-wrap {
display: inline-flex;
flex-direction: column;
align-items: center;
gap: 2px;
cursor: pointer;
user-select: none;
}
.spot-lottery-img {
width: 100%;
height: auto;
display: block;
object-fit: contain;
filter: drop-shadow(0 8px 14px rgba(153, 27, 27, 0.42)) drop-shadow(0 0 12px rgba(245, 196, 81, 0.55));
animation: lotteryFloat 3.4s ease-in-out infinite;
transition: transform 0.22s ease, filter 0.22s ease;
}
@media (hover: hover) {
.spot-lottery-wrap:hover .spot-lottery-img {
transform: scale(1.07);
filter: drop-shadow(0 12px 20px rgba(153, 27, 27, 0.55)) drop-shadow(0 0 20px rgba(251, 191, 36, 0.85));
}
}
.spot-lottery-img.lottery-done {
filter: grayscale(0.55) opacity(0.75);
animation: none;
}
@keyframes lotteryFloat {
0%,
100% {
transform: translateY(0px);
}
50% {
transform: translateY(-7px);
}
}
@keyframes lotteryLanternSway {
0%,
100% {
transform: rotate(-4deg);
}
50% {
transform: rotate(4deg);
}
}
@keyframes lotteryEmblemFloat {
0%,
100% {
transform: translateY(0px) rotate(-1deg);
}
50% {
transform: translateY(-4px) rotate(1.5deg);
}
}
@keyframes lotteryBallFloat {
0%,
100% {
transform: translateY(0px) scale(1);
}
50% {
transform: translateY(-4px) scale(1.03);
}
}
@keyframes lotterySlideOut {
0% {
transform: translateX(-36px) scale(0.75);
opacity: 0;
}
65% {
transform: translateX(4px) scale(1.06);
opacity: 1;
}
100% {
transform: translateX(0) scale(1);
opacity: 1;