:root { color-scheme: dark; font-family: "Microsoft JhengHei", "微軟正黑體", sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: #050407; }
#board { position: absolute; left: 50%; top: 50%; transform-origin: center; }
#refresh-button { position: absolute; z-index: 20; top: 16px; right: 12px; width: 44px; height: 44px; padding: 9px; display: grid; place-items: center; border: 1px solid #d5ae52; border-radius: 50%; background: #140c08cc; color: #fede71; cursor: pointer; touch-action: manipulation; }
#refresh-button svg { display: block; width: 24px; height: 24px; }
#refresh-button:hover { background: #39230ff2; }
#refresh-button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
#refresh-button:disabled { opacity: .7; cursor: wait; }
#refresh-button[aria-busy="true"] svg { animation: refresh-spin .8s linear infinite; }
@keyframes refresh-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #refresh-button[aria-busy="true"] svg { animation: none; } }
#background, #placeholder { position: absolute; inset: 0; width: 100%; height: 100%; }
[hidden] { display: none !important; }
.ranking { position: absolute; display: grid; grid-template-rows: repeat(10, 1fr); margin: 0; padding: 0; }
.entry { min-width: 0; display: grid; grid-template-columns: var(--rank-width) minmax(0, 1fr) var(--win-width) var(--date-width); align-items: center; gap: 5px; padding-right: 6px; }
.shop, .time { display: flex; flex-direction: column; color: #fff; line-height: 1.15; }
.shop { font-size: var(--name-size); min-width: 0; }
.shop span { white-space: nowrap; }
.win { font-family: Arial, sans-serif; font-size: var(--win-size); font-weight: 400; white-space: nowrap; color: #FEDE71; -webkit-text-stroke: 1.8px #1F0000; paint-order: stroke fill; font-variant-numeric: tabular-nums; letter-spacing: normal; text-align: right; }
.time { text-align: center; font-size: var(--date-size); font-variant-numeric: tabular-nums; }
.updated-at { position: absolute; right: 18px; bottom: 10px; color: #fff; font-family: "Microsoft JhengHei", "微軟正黑體", sans-serif; font-size: 14px; font-weight: 400; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
[data-orientation="landscape"] .updated-at { right: 28px; bottom: 22px; }
.fallback-rank { visibility: hidden; text-align: center; font-size: 27px; font-weight: 700; color: #fff; }
.empty-message { grid-row: 1 / -1; align-self: center; justify-self: center; font-size: 24px; color: #fff; text-shadow: 0 2px 4px #000; }
#status, #asset-status { position: fixed; z-index: 10; left: 50%; transform: translateX(-50%); padding: 8px 16px; border: 1px solid #a17e34; border-radius: 6px; background: #100c09ed; color: #fce7b4; font-size: 14px; text-align: center; max-width: 95vw; }
#status { bottom: 12px; }
.demo #status { top: 0; bottom: auto; left: 0; width: 100%; max-width: none; height: 32px; transform: none; border: 0; border-radius: 0; padding: 5px 12px; display: flex; align-items: center; justify-content: center; }
#asset-status { top: 8px; }
#placeholder { background: radial-gradient(ellipse at 28% 12%, #2d174b, #080711 65%); border: 3px solid #d2a63e; border-radius: 12px; }
.placeholder-title { position: absolute; top: 8%; left: 5%; font-size: 53px; color: #FEDE71; font-weight: 700; }
.placeholder-help { position: absolute; top: 18%; left: 5%; color: #c9bb9a; font-size: 17px; }
.placeholder-head { position: absolute; width: 49%; text-align: center; padding: 8px; color: #fff; font-size: 35px; font-weight: 700; border: 2px solid #cba242; background: linear-gradient(#1648a6, #092055); }
.daily-head { left: 0; top: 27%; }
.period-head { left: 50%; top: 27%; background: linear-gradient(#b4483b, #62071e); }
.placeholder-foot { position: absolute; left: 5%; bottom: 4%; font-size: 18px; color: #c9bb9a; }
.without-art .entry { background: #092668; border-bottom: 1px solid #386db9; }
.without-art .entry:nth-child(even) { background: #064f9e; }
.without-art .period .entry { background: #72081c; border-color: #bf374c; }
.without-art .period .entry:nth-child(even) { background: #9e2035; }
.without-art .fallback-rank { visibility: visible; }
[data-orientation="landscape"] .placeholder-title { top: 4%; }
[data-orientation="landscape"] .placeholder-help { top: 13%; }
[data-orientation="landscape"] .placeholder-head { top: 20%; width: 30.7%; }
[data-orientation="landscape"] .daily-head { left: 3.4%; }
[data-orientation="landscape"] .period-head { left: 34.3%; }
