/* 进入前十 (gate10.js) — the Swiss page itself tells the ranking: grid, Inter 700 numerals, flat colour, one accent.
   Paper ground, ink type, logo cloud blue for the tiles and the counter at 10, sun yellow only on the covered top three. */
.gx { position: absolute; inset: 0; overflow: hidden; background: var(--bg, #f4f3ef); color: var(--fg, #0e2233);
  font-family: var(--sans, "Inter", "Noto Sans SC", system-ui, sans-serif); }
.gx > * { position: absolute; }
.gx-head { z-index: 1; }
.gx-ln { overflow: hidden; }
.gx-ln > * { display: block; transform: translateY(.6em); opacity: 0; }
.gx.shown .gx-ln > * { animation: gx-rise .7s cubic-bezier(.2, .7, .1, 1) both; }
.gx.shown .gx-head .gx-ln:nth-child(2) > * { animation-delay: .12s; }
.gx.shown .gx-head .gx-ln:nth-child(3) > * { animation-delay: .24s; }
.gx.shown .gx-ctr .gx-ln > * { animation-delay: .3s; }
@keyframes gx-rise { to { transform: none; opacity: 1; } }
.gx-lbl { display: flex; flex-wrap: wrap; gap: 0 1.4em; border-top: 2px solid currentColor; padding-top: 10px; font: 400 12px/1.6 var(--sans, "Inter", sans-serif); letter-spacing: .08em; text-transform: uppercase; color: var(--grey, #5f6a73); }
.gx-lbl span:first-child { color: var(--fg, #0e2233); font-weight: 700; }
.gx-h { margin: 2vh 0 0; font: 700 clamp(40px, 5.6vw, 84px)/1.05 var(--sans, sans-serif); letter-spacing: -.01em; }
.gx-p { margin: 1.4vh 0 0; font-size: 15px; line-height: 1.8; color: var(--grey, #5f6a73); max-width: 30em; }

/* the counter: TOP 20 → TOP 10 */
.gx-ctr { z-index: 1; line-height: .8; }
.gx-top { font: 700 12px/1.6 "Inter", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--grey, #5f6a73); margin-bottom: .1em; }
.gx-odo { display: flex; overflow: hidden; height: .8em; margin-top: 8px; font-family: "Inter", sans-serif; font-weight: 700; letter-spacing: -.045em; font-feature-settings: "tnum" 1; transform-origin: 0 100%; color: var(--fg, #0e2233); transition: color .4s; }
.gx-odo .d { display: block; width: .64em; overflow: hidden; font-style: normal; }
.gx-odo .d > span { display: flex; flex-direction: column; transition: transform .26s cubic-bezier(.2, .7, .1, 1); }
.gx-odo .d b { display: flex; justify-content: center; height: .8em; line-height: .8; font-weight: 700; }
.gx:not(.shown) .gx-odo { opacity: 0; }
.gx.shown .gx-odo { animation: gx-fade .5s .3s both; }
@keyframes gx-fade { from { opacity: 0; } }

/* tiles */
.gx-t { overflow: hidden; background: var(--accent, #306c90); transform-origin: 0 0; will-change: transform; contain: layout paint; }
.gx-t img { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: 50% 50%; }
/* the covered top three: the night-sky field of the title pages, the number in its rank colour (RANK_COLORS.bright) */
.gx-t.veil { background: radial-gradient(ellipse 140% 60% at 30% 100%, color-mix(in srgb, var(--rk, #e4b448) 38%, transparent), transparent 75%), linear-gradient(180deg, #0b1a28 0%, #10283b 50%, #16384f 100%); }
.gx-n { position: absolute; left: 0; bottom: 0; height: 1.24em; padding: .17em .28em 0; overflow: hidden; background: var(--ink, #0e2233); color: var(--paper, #f4f3ef);
  font: 700 1em/.9 "Inter", sans-serif; letter-spacing: -.03em; font-feature-settings: "tnum" 1; }
.gx-reel { display: flex; flex-direction: column; will-change: transform; }
.gx-reel i { display: block; height: 1.07em; line-height: .9; font-style: normal; }
.gx-t.veil .gx-n { background: none; color: var(--rk, #e4b448); padding-left: .12em; }
.gx-t.veil .gx-reel i { color: inherit !important; }
.gx-t.hit .gx-n { background: var(--paper, #f4f3ef); }
.gx-t.hit .gx-reel i { color: var(--ink, #0e2233) !important; }
.gx-t.fly { z-index: 8; }
.gx-t.fly img { animation: none; }

/* while leaving: the next page's text field (sky blues of the logo) and the blurred fill of its photo box */
.gx-sky { visibility: hidden; z-index: 7; background: radial-gradient(ellipse 130% 45% at 25% 100%, color-mix(in srgb, var(--rk, #306c90) 34%, transparent), transparent 72%), linear-gradient(180deg, #0b1a28 0%, #10283b 50%, #16384f 100%); }
.gx-bgf { overflow: hidden; z-index: 6; }
.gx-bgf img { position: absolute; inset: -8%; width: 116%; height: 116%; object-fit: cover; filter: saturate(1.15) brightness(.78); }
html[data-theme="dark"] .gx-bgf img { filter: saturate(1.1) brightness(.5); }
.gx-t.hit { z-index: 4; }
.gx-t:not(.veil) .gx-n { width: 1.8em; }


@media (prefers-reduced-motion: reduce) {
  .gx-ln > *, .gx-odo { transform: none !important; opacity: 1 !important; animation: none !important; }
}
