* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; font-family: Arial, Helvetica, sans-serif; color: #fff; }
body {
  background: #120014;
}
.screen-shell { width: 100vw; height: 100vh; padding: clamp(8px, 1vw, 18px); }
.hero-panel {
  position: relative; width: 100%; height: 100%; overflow: hidden; border: 2px solid rgba(255, 193, 55, .8); border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(26, 0, 42, .30), rgba(8, 0, 16, .52)),
    url("images/bg.webp") center center / cover no-repeat;
  box-shadow: inset 0 0 55px rgba(255, 193, 55, .15), 0 0 30px rgba(255, 76, 0, .24);
}
.hero-panel::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 44px 44px; opacity: .08; }
.hero-panel::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 18%; background: linear-gradient(180deg, rgba(14,0,22,.58), rgba(14,0,22,.20) 58%, rgba(14,0,22,0) 100%); pointer-events: none; z-index: 1; }
.sparkle-layer { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.sparkle {
  position: absolute;
  opacity: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,230,1) 0%, rgba(255,220,90,.95) 34%, rgba(255,80,230,.36) 58%, rgba(255,255,255,0) 76%);
  box-shadow: 0 0 12px rgba(255, 236, 150, .82), 0 0 28px rgba(226, 87, 255, .38), 0 0 44px rgba(255, 132, 0, .20);
  animation: sparkleTwinkle 4.8s ease-in-out infinite;
}
.sparkle::before, .sparkle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,236,160,.75), rgba(255,255,255,0));
  transform: translate(-50%, -50%);
}
.sparkle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.bg-orb { display: none; position: absolute; border-radius: 50%; filter: blur(2px); opacity: .75; }
.orb-one { width: 45vw; height: 45vw; background: radial-gradient(circle, rgba(255, 183, 0, .38), transparent 60%); right: -12vw; top: -18vw; }
.orb-two { width: 35vw; height: 35vw; background: radial-gradient(circle, rgba(255, 0, 102, .26), transparent 62%); left: -12vw; bottom: -12vw; }
.top-bar { position: relative; z-index: 2; height: 7%; display: flex; align-items: center; justify-content: space-between; padding: .7vh 1.8vw; }
.brand-chip, .update-chip { border: 1px solid rgba(255, 205, 80, .78); border-radius: 999px; background: rgba(12, 0, 20, .84); box-shadow: 0 0 20px rgba(255,174,0,.20), inset 0 0 14px rgba(255,255,255,.04); padding: .7vh 1.3vw; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(4px); }
.update-chip { font-size: clamp(13px, 1.1vw, 22px); color: #ffe47a; }
.main-grid { position: relative; z-index: 2; height: 93%; display: grid; grid-template-columns: 36% 64%; gap: .9vw; padding: 0 1.1vw 1.1vw; }
.main-grid::before { content: ""; position: absolute; left: 0; top: 0; width: calc(36% - .15vw); height: 100%; border-radius: 28px; background: linear-gradient(180deg, rgba(18, 0, 28, .34), rgba(38, 0, 48, .24) 30%, rgba(22, 0, 30, .42) 100%); box-shadow: inset 0 0 40px rgba(0,0,0,.12); pointer-events: none; z-index: 0; }
.mascot-area { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: space-between; min-width: 0; padding-top: 0; overflow: hidden; }
.title-block { text-align: center; padding: 1.2vh 1vw; background: linear-gradient(90deg, rgba(255,180,0,.20), rgba(151,0,255,.14), rgba(255,180,0,.20)); border: 1px solid rgba(255,215,80,.55); box-shadow: inset 0 0 28px rgba(255,255,255,.06), 0 0 26px rgba(255,183,0,.12); }
.mascot-title { position: relative; z-index: 3; width: 100%; border-radius: 24px; background: transparent; border: none; box-shadow: none; padding: .35vh 0 .1vh; }
.title-block p { margin: 0 0 .15vh; color: #ffc83e; font-weight: 900; letter-spacing: .36em; font-size: clamp(11px, .9vw, 18px); }
.logo-sheen-wrap { position: relative; display: block; width: min(99%, 780px); margin: 0 auto; overflow: hidden; border-radius: 16px; }
.logo-sheen-wrap::after {
  content: "";
  position: absolute;
  top: -16%;
  bottom: -16%;
  left: -28%;
  width: 18%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,247,198,.18) 25%, rgba(255,255,255,.55) 50%, rgba(255,247,198,.18) 75%, rgba(255,255,255,0));
  transform: skewX(-20deg);
  filter: blur(1px);
  opacity: .0;
  pointer-events: none;
  animation: logoSweep 6.4s ease-in-out infinite;
}

.hydra-points-logo { display: block; width: min(99%, 780px); max-height: 17vh; object-fit: contain; margin: .15vh auto 0; filter: drop-shadow(0 8px 16px rgba(0,0,0,.45)); }
h1 { margin: .35vh 0 0; font-size: clamp(25px, 3.2vw, 62px); line-height: .95; color: #ffe26a; text-shadow: 0 3px 0 #6d1700, 0 0 18px rgba(255,160,0,.75); }
.mascot-glow { position: absolute; left: 50%; top: 55%; width: 41vw; height: 41vw; transform: translate(-50%, -42%); border-radius: 50%; background: radial-gradient(circle, rgba(255,211,56,.55), rgba(255,70,0,.24) 42%, transparent 68%); z-index: 0; pointer-events: none; animation: mascotGlowBreath 4.6s ease-in-out infinite; }
.mascot { position: absolute; left: 50%; top: 57%; width: auto; height: min(69vh, 780px); max-width: 138%; max-height: none; object-fit: contain; filter: drop-shadow(0 1.8vh 1.9vh rgba(0,0,0,.72)); transform: translate(-50%, -34%); z-index: 1; pointer-events: none; }
.reset-card { position: relative; z-index: 3; width: 100%; padding: .8vh .9vw; border-radius: 18px; background: linear-gradient(135deg, rgba(45,0,62,.68), rgba(85,0,62,.56)); border: 1px solid rgba(255,215,80,.7); box-shadow: 0 0 18px rgba(255,180,0,.18), inset 0 0 14px rgba(255,255,255,.04); text-align: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.reset-card span { display:block; color:#ffc83e; font-weight:900; font-size: clamp(12px, .9vw, 17px); text-transform: uppercase; }
.reset-card strong { display:block; margin-top:.2vh; font-size: clamp(14px, 1.08vw, 22px); }
.leaderboard-card { position: relative; z-index: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; border-radius: 30px; border: 2px solid rgba(255, 200, 55, .88); background: linear-gradient(180deg, rgba(28,0,40,.68), rgba(10,0,18,.78)); box-shadow: inset 0 0 42px rgba(255,255,255,.05), 0 0 28px rgba(0,0,0,.42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); overflow: hidden; }
.leaderboard-meta { text-align: center; color: #f5d9ff; font-weight: 900; font-size: clamp(12px, .95vw, 18px); padding: .55vh .8vw; border-bottom: 1px solid rgba(255,215,80,.35); background: rgba(255, 190, 0, .06); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.table-wrap { flex: 1; padding: .45vh .8vw .65vh; }
table { width: 100%; height: 100%; border-collapse: separate; border-spacing: 0 .27vh; table-layout: fixed; }
th { height: 3.35vh; color: #1a001f; background: linear-gradient(#ffe985, #ffb320); font-size: clamp(12px, 1vw, 20px); text-transform: uppercase; letter-spacing: .06em; box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
th:first-child { border-radius: 14px 0 0 14px; width: 16%; }
th:nth-child(2) { width: 42%; }
th:last-child { border-radius: 0 14px 14px 0; width: 42%; }
td { height: 4.05vh; text-align: center; background: linear-gradient(90deg, rgba(44,0,60,.62), rgba(84,0,90,.56)); border-top: 1px solid rgba(255,215,80,.22); border-bottom: 1px solid rgba(255,215,80,.22); font-weight: 900; font-size: clamp(14px, 1.2vw, 24px); box-shadow: inset 0 0 12px rgba(255,255,255,.02); }
td:first-child { border-left: 1px solid rgba(255,215,80,.35); border-radius: 12px 0 0 12px; color: #ffdf5a; }
td:last-child { border-right: 1px solid rgba(255,215,80,.35); border-radius: 0 12px 12px 0; color: #ffe35e; }
.rank-wrap { display: inline-flex; align-items: center; justify-content: center; gap: 0; width: 100%; }
.rank-number { color: #ffdf5a; font-weight: 900; line-height: 1; }
.points-value { display: inline-block; color: #ffe35e; font-weight: 950; font-size: clamp(18px, 1.55vw, 34px); letter-spacing: .035em; text-shadow: 0 0 10px rgba(255, 205, 65, .22), 0 2px 8px rgba(0, 0, 0, .35); }
.top-eight-row td:first-child .rank-number { color: #ffe978; }
.candidate td { position: relative; overflow: hidden; background: linear-gradient(90deg, rgba(87,0,82,.70), rgba(57,0,80,.68)); border-top-color: rgba(255,216,76,.62); border-bottom-color: rgba(255,216,76,.62); box-shadow: inset 0 0 18px rgba(255, 202, 57, .10); }
.candidate td::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -38%;
  width: 28%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,244,190,.11), rgba(255,255,255,0));
  transform: skewX(-22deg);
  pointer-events: none;
  animation: rowSweep 8s linear infinite;
}
.top-eight-row:nth-child(2n) td::after { animation-delay: 1.1s; }
.candidate td:first-child { border-left: 4px solid #ffd34d; }
.candidate td:last-child { border-right-color: rgba(255,216,76,.62); }
@media (max-aspect-ratio: 4/3) {
  .main-grid { grid-template-columns: 1fr; }
  .mascot-area { display: none; }
}

@keyframes logoSweep {
  0%, 62% { left: -30%; opacity: 0; }
  68% { opacity: .12; }
  76% { opacity: .58; }
  86% { left: 118%; opacity: 0; }
  100% { left: 118%; opacity: 0; }
}
@keyframes sparkleTwinkle {
  0%, 100% { opacity: 0; transform: scale(.35) rotate(0deg); }
  18% { opacity: .36; }
  42% { opacity: 1; transform: scale(1.25) rotate(45deg); }
  62% { opacity: .48; }
}
@keyframes mascotGlowBreath {
  0%, 100% { opacity: .64; transform: translate(-50%, -42%) scale(1); }
  50% { opacity: .82; transform: translate(-50%, -42%) scale(1.035); }
}
@keyframes rowSweep {
  0%, 55% { left: -40%; opacity: 0; }
  65% { opacity: .7; }
  82% { left: 120%; opacity: 0; }
  100% { left: 120%; opacity: 0; }
}

.translatable {
  transition: opacity .35s ease, transform .35s ease, filter .35s ease;
}
.translation-fade-out {
  opacity: 0;
  transform: translateY(4px);
  filter: blur(2px);
}
.translation-fade-in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
html[lang="th"] body,
html[lang="zh"] body,
html[lang="ko"] body {
  font-family: Arial, "Noto Sans Thai", "Noto Sans CJK SC", "Noto Sans KR", "Microsoft YaHei", "Malgun Gothic", "Tahoma", sans-serif;
}
html[lang="th"] .brand-chip,
html[lang="zh"] .brand-chip,
html[lang="ko"] .brand-chip,
html[lang="th"] th,
html[lang="zh"] th,
html[lang="ko"] th {
  letter-spacing: .03em;
}
html[lang="th"] .title-block p,
html[lang="zh"] .title-block p,
html[lang="ko"] .title-block p {
  letter-spacing: .12em;
}