/* Uma Of The Year (/uma): a dark, cinematic, full-screen page with no scroll of its own — the hero (the cup in a dark hall, the year
   giant behind it, two rock mounds in front) and the second state (the ballot, the count), one wheel tick, swipe or key apart.
   Laid out on a 1440 × 810 frame: 1u = 1px there. Fonts: Archivo (its widths) and Be Vietnam Pro, from Google Fonts in uma.html. */
:root { --deep: #060303; --dark: #160a08; --accent: #8c1a12; --soft: #e8b65a; --copper: #e0602a; --light: #f6ead2;   /* (Arima Kinen's: black, smoke red, fire orange, gold) */
  --u: min(100vw / 1440, 100vh / 810); --s: calc(100vw / 1440); --mb: 0px; --ease-out: cubic-bezier(.16,1,.3,1);
  --disp: 'Playfair Display', Georgia, serif; --lift: 0 2px 4px rgb(0 0 0 / .9), 0 0 18px rgb(0 0 0 / .75); }
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; overflow: hidden; background: var(--deep); color: #fff6e3; }
.nav, .h1, .s2, .glyphs { text-shadow: var(--lift); }
.h1 .gt, .card .lb b, .card .rk, .card .ini, .card .tg { text-shadow: none; }   /* (gold, clipped to its letters: a shadow would paint over it) */
body { overscroll-behavior: none; font-family: 'Be Vietnam Pro', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
:focus-visible { outline: 1px solid var(--soft); outline-offset: 4px; }

.stage { position: fixed; inset: 0; overflow: hidden; background: var(--deep); }

/* the scene */
.scene { position: absolute; inset: 0; transform-origin: 50% 60%; }
.scene > * { position: absolute; pointer-events: none; }
.hall { inset: -60%; background:   /* (larger than the screen: the camera's swing never shows its edge) — black, red smoke, a fire behind the cup */
  radial-gradient(ellipse 20% 26% at 50% 50%, rgb(255 170 90 / .55), rgb(230 96 42 / .35) 45%, transparent 80%),
  radial-gradient(ellipse 34% 38% at 50% 48%, rgb(200 60 24 / .45), transparent 75%),
  radial-gradient(ellipse 60% 34% at 50% 26%, rgb(110 16 10 / .7), transparent 80%),
  radial-gradient(ellipse 30% 40% at 22% 60%, rgb(80 10 6 / .55), transparent 80%), radial-gradient(ellipse 30% 40% at 78% 60%, rgb(80 10 6 / .55), transparent 80%),
  #050202; }
/* photographs (Pexels / Unsplash licences, free to use: work/uma-assets/manifest.json): a fire behind the cup, glowing coals on the ground, gold dust over all — each screened onto the black */
.flame { left: 50%; bottom: 16%; height: 74%; transform: translateX(-50%); opacity: .6; }
.coals { left: -40%; width: 180%; bottom: 0; height: 26%; object-fit: cover; opacity: .85;
  -webkit-mask-image: linear-gradient(0deg, #000 35%, transparent); mask-image: linear-gradient(0deg, #000 35%, transparent); }
.dust { left: -15%; top: -15%; width: 130%; height: 130%; object-fit: cover; opacity: .32; will-change: transform, opacity; animation: float 26s linear infinite alternate, twinkle 3.2s ease-in-out infinite alternate; }
.dust.far { transform: rotate(180deg); opacity: .2; animation: floatfar 34s linear infinite alternate, twinkle 4.1s ease-in-out -1.5s infinite alternate; }   /* (a second layer, larger and slower, the other way: depth) */
@keyframes float { from { transform: translate(0, 3%); } to { transform: translate(-4%, -6%); } }
@keyframes floatfar { from { transform: rotate(180deg) translate(0, 0); } to { transform: rotate(180deg) translate(-3%, 5%); } }
/* (both layers some 1.3 times the screen, not 2 and 3: drawn first as the opening plays, the far one alone was nine screens of pixels — a stall of most of a second) */
@keyframes twinkle { from { opacity: .22; } to { opacity: .4; } }
.floor { left: -30%; right: -30%; bottom: -30%; height: 60%; background: radial-gradient(ellipse 40% 6% at 50% 0%, rgb(255 150 70 / .55), rgb(200 60 20 / .2) 50%, transparent 80%), linear-gradient(180deg, rgb(40 8 4 / .5), #030101 60%); }
.cup { left: 50%; bottom: 13%; height: min(80vh, 120vw); transform: translateX(-50%); transform-origin: 50% 100%;
  filter: drop-shadow(0 0 calc(60 * var(--s)) rgb(255 120 50 / .45)) drop-shadow(0 calc(-4 * var(--s)) calc(14 * var(--s)) rgb(255 200 120 / .35)); }
/* the halo behind the cup: a burst of light (the user's picture, cut from its black), turning slowly and breathing */
.halo { left: 50%; top: 42%; width: min(122vh, 130vw); aspect-ratio: 1; translate: -50% -50%; animation: breathe 4.5s ease-in-out infinite alternate; }
.halo .burst { width: 100%; height: 100%; display: block; will-change: transform; animation: turn 50s linear infinite; }
@keyframes turn { to { transform: rotate(1turn); } }
@keyframes breathe { from { opacity: .78; } to { opacity: 1; } }
.cupref { left: 50%; top: 87%; height: min(80vh, 120vw); transform: translateX(-50%) scaleY(-1); transform-origin: 50% 0; opacity: .22;
  -webkit-mask-image: linear-gradient(0deg, transparent 72%, #000); mask-image: linear-gradient(0deg, transparent 72%, #000); filter: blur(2px); }

/* the year, giant, behind the cup */
.word { left: -4%; right: -4%; top: calc(8 * var(--s)); text-align: center; font: 700 calc(178 * var(--s))/1 'Cinzel', 'Times New Roman', serif; letter-spacing: .01em; white-space: nowrap; color: #6d140d; }
.word > span { display: inline-block; transform: scaleX(1.05); }
.word i { display: inline-block; font-style: normal; background: linear-gradient(180deg, #8e1c12, #4a0b07 80%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 calc(18 * var(--s)) rgb(150 20 10 / .5)); }
.word i.sp { width: .35em; }

.embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.shade { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 75% 70% at 50% 50%, transparent 55%, rgb(0 0 0 / .7)), linear-gradient(180deg, rgb(0 0 0 / .45) 0%, transparent 16%, transparent 80%, rgb(0 0 0 / .4) 100%); }

.fg { position: absolute; left: 0; right: 0; bottom: 0; height: calc(810 * var(--s)); overflow: hidden; pointer-events: none; }

/* nav */
.nav { position: absolute; z-index: 5; top: 0; left: 0; right: 0; height: calc(86 * var(--u)); display: flex; justify-content: space-between; align-items: center; padding: 0 calc(30 * var(--u)) 0 calc(26 * var(--u)); }
/* (the header only over the opening: down in any of the sections below it, gone, the boards up into its room — the user, 2026-11-29:
   "xuống mấy mục khác ẩn header luôn"; the side menu there still goes between them) */
.nav { transition: transform .35s var(--ease-out), opacity .25s; }
.stage.is-s2 .nav, .stage.down .nav { transform: translateY(-110%); opacity: 0; pointer-events: none; }   /* (down: gone as the move down starts, not once it ends — the user: "đợi 1 lúc mới mất") */
.logo img { height: max(44px, calc(60 * var(--u))); width: auto; display: block; filter: drop-shadow(0 0 8px rgb(255 160 60 / .45)) drop-shadow(0 2px 3px rgb(0 0 0 / .8)); }
.links { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);   /* (centred on the page, any screen) */ display: flex; gap: calc(80 * var(--u)); list-style: none; }
.links li { overflow: hidden; }
.links a { display: inline-block; padding: 6px 0; line-height: 14px; font-size: max(12px, calc(13 * var(--u))); font-weight: 600; letter-spacing: .02em; text-transform: uppercase; opacity: .92; transition: opacity .3s; }
.links a:hover { opacity: .6; }
.menu { width: max(28px, calc(32 * var(--u))); height: max(28px, calc(24 * var(--u))); display: flex; flex-direction: column; justify-content: center; gap: max(6px, calc(9 * var(--u))); }
.menu i { display: block; height: 1.5px; background: var(--light); }
.glyphs { position: absolute; z-index: 4; left: calc(32 * var(--u)); top: calc(211 * var(--u)); display: flex; flex-direction: column; gap: calc(13.8 * var(--u)); color: rgb(241 230 212 / .8); }
.glyphs svg { width: max(11px, calc(17 * var(--u))); display: block; }

/* hero */
/* the gold title — Arima Kinen's banner lettering: an old-style serif, gold, outlined dark, glowing */
:root { --gold: linear-gradient(180deg, #fffbe6 0%, #ffe59a 30%, #e9a93a 58%, #b8731c 72%, #f7d77e 100%);
  --outline: drop-shadow(1px 0 0 #3b0f04) drop-shadow(-1px 0 0 #3b0f04) drop-shadow(0 1px 0 #3b0f04) drop-shadow(0 -1px 0 #3b0f04); }
.h1 .gt { position: absolute; left: 0; right: 0; top: calc(92 * var(--u)); text-align: center; overflow: hidden; padding: .08em 0 .16em; pointer-events: none;
  font: 400 calc(92 * var(--u))/1.1 'Amarante', 'Cinzel', serif; letter-spacing: .01em; }
.h1 .gt span { display: inline-block; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: var(--outline) drop-shadow(0 3px 2px rgb(0 0 0 / .7)) drop-shadow(0 0 calc(22 * var(--u)) rgb(255 140 50 / .6)); }
.h1 { position: absolute; inset: 0; pointer-events: none; }
.h1 > * { pointer-events: auto; }
.h1 h1 { position: absolute; left: calc(78 * var(--u)); top: calc(236 * var(--u)); width: calc(330 * var(--u)); overflow: hidden; padding-bottom: .08em; font: 800 calc(32 * var(--u))/1.15 var(--disp);
  letter-spacing: .01em; text-transform: uppercase; }
.h1 h1 span, .hbody span { display: block; }
.hbody { position: absolute; right: calc(60 * var(--u)); top: calc(250 * var(--u)); width: max(200px, calc(230 * var(--u))); overflow: hidden; font-size: max(13px, calc(14 * var(--u))); font-weight: 500; line-height: 1.45; color: #fff3dc; }
.vcard { position: absolute; left: calc(78 * var(--u)); top: calc(360 * var(--u)); width: calc(164 * var(--u)); height: calc(114 * var(--u)); min-width: 120px; min-height: 84px; border: 1px solid rgb(241 230 212 / .18);
  background: #1d1712 url(/static/uma/cup.webp) 50% 30% / 70% auto no-repeat; overflow: hidden; display: grid; place-items: center; }
.vcard::before { content: ''; position: absolute; inset: 0; background: rgb(17 15 12 / .45); }
.vcard svg { position: relative; width: max(16px, calc(26 * var(--u))); }
.vcard span { position: absolute; left: 10px; bottom: 7px; font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.caps { position: absolute; left: calc(37 * var(--u)); right: calc(37 * var(--u)); bottom: calc(14 * var(--u)); display: flex; justify-content: space-between; }
.cap { overflow: hidden; }
.mi { display: flex; align-items: center; gap: calc(14 * var(--u)); }
.mi b { font: 700 calc(34 * var(--u))/1 var(--disp); color: #f3cf7c; }
.mi span { border-left: 1px solid rgb(243 207 124 / .6); padding-left: calc(12 * var(--u)); font-size: max(12px, calc(12.5 * var(--u))); font-weight: 500; line-height: 1.3; color: #fff3dc; }

/* the second state */
.s2 { position: absolute; inset: 0; pointer-events: none; }
.s2 > * { opacity: 0; }
.stage.is-s2 .s2 > * { opacity: 1; pointer-events: auto; }
.stage.is-s2 .h1 > *, .stage.is-s2 .fg, .stage.is-s2 .word { opacity: 0; pointer-events: none; }
.stage.is-s2 .scene { transform: perspective(1600px) translateX(-15vw) rotateY(22deg) scale(.9); }   /* (uma.js POSE) */
/* (the scene darkened behind the boards by a black veil over it, not a filter: filtered, every turning and twinkling layer in it was drawn
   again each frame, the boards at 25–30 fps on a phone — the user, 2026-11-29: "tối ưu lại … đang hơi lag"; its light layers still there) */
.scene > .dim { inset: 0; background: #000; opacity: 0; }
.stage.is-s2 .scene > .dim { opacity: .4; }
.stage.is-s2 .dust, .stage.is-s2 .halo, .stage.is-s2 .halo .burst { animation-play-state: paused; }
.s2 h2 { position: absolute; left: calc(74 * var(--u)); top: calc(124 * var(--u)); font: 800 calc(38 * var(--u))/1.15 var(--disp); text-transform: uppercase; }
.s2p { position: absolute; left: calc(74 * var(--u)); top: calc(289 * var(--u)); width: calc(266 * var(--u)); font-size: max(13px, calc(14.5 * var(--u))); font-weight: 500; line-height: 1.5; color: #fff3dc; }
.s2p b { color: var(--soft); font-weight: 500; }
.clock { display: block; margin-top: calc(10 * var(--u)); font: 700 max(22px, calc(32 * var(--u)))/1.1 var(--disp); color: #f3cf7c; font-variant-numeric: tabular-nums; }
.cats { position: absolute; left: calc(74 * var(--u)); top: calc(420 * var(--u)); display: flex; flex-direction: column; gap: 2px; }
.cats button { text-align: left; padding: 6px 0; font-size: max(12px, calc(13 * var(--u))); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; opacity: .6; transition: opacity .3s; }
.cats button:hover { opacity: .8; } .cats button[aria-current=true] { opacity: 1; }
.cats button[aria-current=true]::before { content: '— '; color: var(--soft); }
.arrow { position: absolute; left: calc(73 * var(--u)); top: calc(560 * var(--u)); display: flex; align-items: center; gap: calc(14 * var(--u)); padding: 6px 0; min-height: 32px;
  font-size: max(11px, calc(12.5 * var(--u))); font-weight: 500; letter-spacing: .02em; text-transform: uppercase; transition: opacity .3s; }
.arrow svg { width: max(24px, calc(26 * var(--u))); transition: transform .5s var(--ease-out); }
.arrow:hover svg { transform: translate(3px, -3px); }
.arrow.off { opacity: .35; pointer-events: none; }
.find { position: absolute; left: calc(704 * var(--u)); right: calc(36 * var(--u)); top: calc(40 * var(--u)); display: flex; align-items: center; gap: 14px; }
.find input { flex: 1; min-height: 32px; border-bottom: 1px solid rgb(241 230 212 / .2); font-size: max(11px, calc(12.5 * var(--u))); letter-spacing: .02em; text-transform: uppercase; }
.find input::placeholder { color: rgb(241 230 212 / .45); }
.find input:focus { outline: none; border-color: var(--soft); }
.find span { font-size: 11px; color: rgb(241 230 212 / .55); white-space: nowrap; }
.strip { position: absolute; left: calc(704 * var(--u)); right: 0; top: calc(88 * var(--u)); height: calc(272 * var(--u)); display: flex; gap: calc(12 * var(--u)); overflow-x: auto; overflow-y: hidden;
  padding-right: calc(36 * var(--u)); scrollbar-width: none; overscroll-behavior: contain; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.strip::-webkit-scrollbar { display: none; }
.cards { position: absolute; left: calc(704 * var(--u)); top: calc(480 * var(--u)); display: flex; gap: calc(19 * var(--u)); }

/* the ballot board: the candidates in a grid, your ballot beside them */
.gn { display: block; font-weight: 400; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .8)); }
.s2.votev .find, .s2.votev .strip, .s2.votev .cards, .s2.votev .arrow { display: none; }
.vote[hidden] { display: none; }
.vote { position: absolute; left: calc(470 * var(--u)); right: calc(36 * var(--u)); top: calc(28 * var(--u)); bottom: calc(28 * var(--u)); display: grid; grid-template-columns: minmax(0, 1fr) clamp(280px, calc(340 * var(--u)), 380px); gap: calc(22 * var(--u)); text-shadow: none; }
.vb-main { min-height: 0; display: flex; flex-direction: column; gap: 14px; }
.vb-bar { display: flex; align-items: center; gap: 14px; }
.vb-search { flex: 1; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 8px; background: rgb(12 3 2 / .75); border: 1px solid rgb(243 207 124 / .35); transition: border-color .2s; }
.vb-search:focus-within { border-color: rgb(243 207 124 / .8); }
.vb-search svg { width: 18px; color: #f3cf7c; flex: none; }
.vb-search input { flex: 1; min-width: 0; height: 100%; font: 500 14px 'Be Vietnam Pro', sans-serif; color: #fff3dc; }
.vb-search input:focus { outline: none; } .vb-search input::placeholder { color: rgb(255 243 220 / .45); }
.vb-count { font: 500 12px 'Be Vietnam Pro', sans-serif; color: rgb(243 207 124 / .8); white-space: nowrap; letter-spacing: .04em; }
.vgrid { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(118px, calc(150 * var(--u)), 170px), 1fr)); gap: 14px; align-content: start; grid-auto-rows: max-content;
  padding: 4px 8px 40px 4px; scrollbar-width: thin; scrollbar-color: rgb(243 207 124 / .35) transparent; -webkit-mask-image: linear-gradient(180deg, #000 88%, transparent); mask-image: linear-gradient(180deg, #000 88%, transparent); }
.vg-none { grid-column: 1 / -1; padding: 40px 0; text-align: center; color: rgb(255 243 220 / .6); }
.vt { position: relative; display: flex; flex-direction: column; text-align: left; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: linear-gradient(170deg, #3a0c07, #1a0403 60%, #0d0202) padding-box, linear-gradient(160deg, #fff1b8, #d39a32 28%, #6e3f0e 52%, #f6d27a 76%, #a86b1c) border-box;
  box-shadow: 0 0 0 1px #2a0603, inset 0 0 0 1px rgb(255 214 140 / .45), inset 0 0 0 3px #1a0403, inset 0 0 0 4px rgb(214 160 70 / .55), 0 8px 22px rgb(0 0 0 / .55);
  transition: transform .25s var(--ease-out), box-shadow .25s, filter .25s; }
.vt:not(:disabled):hover { transform: translateY(-4px); filter: brightness(1.1); }
.vt:disabled { cursor: default; }
.vt-pic { position: relative; flex: none; margin: 4px 4px 0; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 4px; }
.vt-pic .im { position: absolute; inset: 0; display: grid; place-items: center; background-size: cover; background-position: 50% 20%; transition: transform .6s var(--ease-out); }
.vt:not(:disabled):hover .im { transform: scale(1.05); }
.vt-pic .ini { font: 400 clamp(28px, calc(46 * var(--u)), 54px)/1 'Amarante', serif; color: rgb(255 214 140 / .55); }
.vt-pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgb(20 4 3 / .7)); }
.vt-pic em { position: absolute; z-index: 1; left: 8px; top: 8px; padding: 3px 7px; border-radius: 99px; font: 600 10px/1.2 'Be Vietnam Pro', sans-serif; font-style: normal; letter-spacing: .06em; text-transform: uppercase; background: rgb(12 3 2 / .7); color: #f3cf7c; border: 1px solid rgb(243 207 124 / .4); }
.vt-nm { position: relative; z-index: 2; padding: 8px 11px 12px; font: 400 clamp(15px, calc(18 * var(--u)), 19px)/1.15 'Amarante', serif; }
.vt-nm::first-line { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vt-nm small { display: block; margin-top: 3px; font: 400 11px/1.2 'Be Vietnam Pro', sans-serif; color: rgb(255 243 220 / .5); }
.vt.on { box-shadow: 0 0 0 2px #ffd98a, 0 0 26px rgb(255 170 60 / .7), inset 0 0 0 1px rgb(255 214 140 / .45), 0 10px 30px rgb(0 0 0 / .45); }

.vt-rk { position: absolute; z-index: 3; right: 10px; top: 6px; font: 400 30px/1 'Amarante', serif; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; filter: var(--outline) drop-shadow(0 2px 3px rgb(0 0 0 / .8)) drop-shadow(0 0 10px rgb(255 150 60 / .55)); font-size: 40px; animation: pop .35s var(--ease-out); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.vb-side { position: relative; align-self: start; max-height: 100%; display: flex; flex-direction: column; gap: 16px; padding: 22px 20px 20px; border-radius: 10px; overflow-y: auto;   /* (quiet: one thin gold line, dark inside) */
  background: linear-gradient(180deg, rgb(30 6 4 / .94), rgb(12 3 2 / .96)); border: 1px solid rgb(243 207 124 / .45); box-shadow: inset 0 1px 0 rgb(255 230 170 / .12), 0 20px 50px rgb(0 0 0 / .5); }
.vs-head span { display: block; font: 600 11px 'Be Vietnam Pro', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: rgb(243 207 124 / .75); }
.vs-head b { display: block; margin-top: 6px; font: 400 26px/1.05 'Amarante', serif; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vs-prog { display: grid; gap: 7px; font: 500 12px 'Be Vietnam Pro', sans-serif; color: rgb(255 243 220 / .7); }
.vs-prog i { height: 4px; border-radius: 4px; background: rgb(255 255 255 / .08); overflow: hidden; }
.vs-prog i b { display: block; height: 100%; background: linear-gradient(90deg, #c98a2c, #f6d27a); transition: width .4s var(--ease-out); }
.vs-list { list-style: none; display: grid; gap: 2px; }
.vs-row { display: grid; grid-template-columns: 30px 40px 1fr auto; align-items: center; gap: 12px; min-height: 64px; padding: 8px 10px 8px 6px; border-radius: 8px; border-bottom: 1px solid rgb(243 207 124 / .12); transition: background .2s; }
.vs-row:hover { background: rgb(243 207 124 / .05); }
.vs-row.full[tabindex] { cursor: grab; touch-action: none; user-select: none; }
.vs-row.drag { cursor: grabbing; position: relative; z-index: 2; background: rgb(40 26 14 / .95); box-shadow: 0 10px 30px rgb(0 0 0 / .5); transition: none; }
.vs-row.drop { background: rgb(243 207 124 / .14); outline: 1px dashed rgb(243 207 124 / .5); }
.vs-row:focus-visible { outline: 2px solid #f3cf7c; outline-offset: -2px; }


.vs-medal { width: 34px; text-align: center; font: 400 30px/1 'Amarante', serif; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; filter: var(--outline) drop-shadow(0 2px 3px rgb(0 0 0 / .8)) drop-shadow(0 0 10px rgb(255 150 60 / .55)); font-size: 36px; }
.vs-thumb { position: relative; width: 40px; height: 50px; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px rgb(243 207 124 / .5); }
.vs-thumb .im { position: absolute; inset: 0; display: grid; place-items: center; background-size: cover; background-position: 50% 20%; }
.vs-thumb .ini { font: 400 18px 'Amarante', serif; color: rgb(255 214 140 / .6); }
.vs-nm { min-width: 0; font: 400 18px/1.15 'Amarante', serif; overflow: hidden; text-overflow: ellipsis; }
.vs-nm::first-line { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vs-nm small, .vs-empty small { display: block; margin-top: 3px; font: 500 11px 'Be Vietnam Pro', sans-serif; color: rgb(243 207 124 / .8); }
.vs-empty { grid-column: 2 / -1; font: 500 13px 'Be Vietnam Pro', sans-serif; color: rgb(255 243 220 / .4); }
.vs-act { display: flex; gap: 2px; opacity: .45; transition: opacity .2s; } .vs-row:hover .vs-act, .vs-act:focus-within { opacity: 1; }
.vs-act button { width: 26px; height: 26px; border-radius: 6px; color: #f3cf7c; font-size: 11px; background: transparent; transition: background .2s; }
.vs-act button:hover:not(:disabled) { background: rgb(243 207 124 / .14); } .vs-act button:disabled { opacity: .25; cursor: default; }
.vs-send { display: grid; place-items: center; height: 50px; border-radius: 8px; background: #e9b850; color: #2a0a03; font: 700 14px/1 'Playfair Display', serif; letter-spacing: .1em; text-transform: uppercase; transition: background .2s; }
.vs-send:hover:not(:disabled) { background: #f3cb6a; } .vs-send:disabled { opacity: .45; cursor: default; }
.vs-note { font: 400 12px/1.5 'Be Vietnam Pro', sans-serif; color: rgb(255 243 220 / .6); } .vs-note b { color: #f3cf7c; font-weight: 600; }
.vs-next { align-self: center; padding: 6px 0; font: 700 13px 'Playfair Display', serif; letter-spacing: .08em; text-transform: uppercase; color: #f3cf7c; border-bottom: 1px solid rgb(243 207 124 / .4); }

/* page buttons under a grid of characters (18 a page) */
.pager { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 10px 0 4px; }
.pager button { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 8px; font: 600 14px 'Be Vietnam Pro', sans-serif; color: rgb(255 243 220 / .8); border: 1px solid rgb(243 207 124 / .3); background: rgb(12 3 2 / .6); }
.pager button[aria-current=true] { background: #e9b850; color: #2a0a03; border-color: #e9b850; }
.pager button:disabled { opacity: .3; }

/* the candidates: a card each — her picture, her names, the admins' word about her */
.s2.introm .find, .s2.introm .strip, .s2.introm .cards, .s2.introm .arrow { display: none; }
.introv[hidden] { display: none; }
.introv { position: absolute; left: calc(470 * var(--u)); right: calc(36 * var(--u)); top: calc(28 * var(--u)); bottom: calc(28 * var(--u)); display: flex; flex-direction: column; gap: 14px; text-shadow: none; }
.ichips { display: flex; gap: 6px; }
.ichips button { height: 46px; padding: 0 16px; border-radius: 8px; font: 600 13px 'Be Vietnam Pro', sans-serif; color: rgb(255 243 220 / .7); border: 1px solid rgb(243 207 124 / .3); background: rgb(12 3 2 / .6); transition: background .2s, color .2s; }
.ichips button[aria-pressed=true] { background: #e9b850; color: #2a0a03; border-color: #e9b850; }
.igrid { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(300px, calc(380 * var(--u)), 420px), 1fr)); grid-auto-rows: max-content; gap: 14px; align-content: start;
  padding: 4px 8px 40px 4px; scrollbar-width: thin; scrollbar-color: rgb(243 207 124 / .35) transparent; -webkit-mask-image: linear-gradient(180deg, #000 90%, transparent); mask-image: linear-gradient(180deg, #000 90%, transparent); }
.ic { position: relative; display: grid; grid-template-columns: clamp(96px, calc(120 * var(--u)), 130px) 1fr; gap: 16px; padding: 10px 16px 10px 10px; border-radius: 8px;
  border: 2px solid transparent; background: linear-gradient(170deg, #3a0c07, #1a0403 60%, #0d0202) padding-box, linear-gradient(160deg, #fff1b8, #d39a32 28%, #6e3f0e 52%, #f6d27a 76%, #a86b1c) border-box;
  box-shadow: 0 0 0 1px #2a0603, inset 0 0 0 1px rgb(255 214 140 / .3), 0 8px 22px rgb(0 0 0 / .5); }
.introv .ic .lv { background-size: 56px auto, 56px auto, 100% 100%; opacity: .85; }   /* (the card's leaves, small on a wide card) */
.ic-pic { position: relative; aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px rgb(243 207 124 / .5); }
.ic-pic .im { position: absolute; inset: 0; display: grid; place-items: center; background-size: cover; background-position: 50% 20%; }
.ic-pic .ini { font: 400 40px 'Amarante', serif; color: rgb(255 214 140 / .55); }
.ic-txt { position: relative; z-index: 2; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.ic-txt em { align-self: flex-start; padding: 3px 8px; border-radius: 99px; font: 600 10px/1.2 'Be Vietnam Pro', sans-serif; font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: #f3cf7c; border: 1px solid rgb(243 207 124 / .45); }
.ic-txt h4 { font: 400 clamp(19px, calc(24 * var(--u)), 26px)/1.1 'Amarante', serif; }
.ic-txt small { font: 400 12px 'Be Vietnam Pro', sans-serif; color: rgb(255 243 220 / .55); }
.ic-txt p { margin-top: 6px; font: 400 13.5px/1.55 'Be Vietnam Pro', sans-serif; color: rgb(255 243 220 / .85); }
.ic-none { color: rgb(255 243 220 / .4); font-style: italic; }

/* Top 3: a podium of its own — the 1st high in the middle on gold, the 2nd on silver, the 3rd on bronze; they rise in turn */
.s2.podm .find, .s2.podm .strip, .s2.podm .cards { display: none; }
.podv[hidden], .noms[hidden] { display: none; }   /* (their own display would keep them shown) */
.podv { position: absolute; left: calc(560 * var(--u)); right: calc(36 * var(--u)); top: calc(96 * var(--u)); bottom: 0; display: flex; flex-direction: column; text-shadow: none; }
.pod-head { position: relative; z-index: 2; text-align: center; font: 400 calc(64 * var(--u))/1 'Amarante', serif; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: var(--outline) drop-shadow(0 0 20px rgb(255 140 50 / .5)); }
.pod-head small { display: block; margin-top: 8px; font: 600 max(11px, calc(13 * var(--u)))/1 'Be Vietnam Pro', sans-serif; letter-spacing: .2em; text-transform: uppercase; -webkit-text-fill-color: #f3cf7c; }
.pod-row { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1.25fr 1fr; align-items: end; gap: calc(24 * var(--u)); }
.pl { position: relative; display: flex; flex-direction: column; align-items: center; gap: calc(10 * var(--u)); animation: rise 1s cubic-bezier(.16,1,.3,1) both; }
.pl.p3 { animation-delay: .1s; } .pl.p2 { animation-delay: .45s; } .pl.p1 { animation-delay: .8s; }
.pl .card { position: relative; z-index: 1; width: min(74%, 27vh); height: auto; aspect-ratio: 216 / 282; cursor: pointer; }
.pl.p1 .card { width: min(82%, 36vh); box-shadow: 0 0 0 2px #ffd98a, 0 0 50px rgb(255 170 60 / .55), 0 20px 40px rgb(0 0 0 / .6); }
.pl .card .lb { display: none; }
.pl .card .rk { font-size: calc(54 * var(--u)); }
.pl-name { font: 400 max(15px, calc(26 * var(--u)))/1.05 'Amarante', serif; text-align: center; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; filter: var(--outline) drop-shadow(0 2px 2px rgb(0 0 0 / .8)); }
.pl.p1 .pl-name { font-size: max(18px, calc(36 * var(--u))); }
/* the podium: faceted black stone, as a trophy's base — a lit top, dark sides, its number gilt; the floor mirrors it */
.pl-step { position: relative; align-self: center; width: 86%; display: grid; place-items: center; margin-top: calc(14 * var(--u));
  background: linear-gradient(90deg, #0c0c0e, #3a3a40 14%, #17171a 30%, #222226 50%, #141416 70%, #34343a 86%, #0b0b0d);
  -webkit-box-reflect: below 0 linear-gradient(transparent 55%, rgb(255 255 255 / .22)); }
.pl-step::before { content: ''; position: absolute; left: 0; right: 0; top: calc(-14 * var(--u)); height: calc(14 * var(--u));
  background: linear-gradient(180deg, #8a8a90, #e8e6e2 60%, #b9b6b0); clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%); }
.pl-step span { font: 400 calc(64 * var(--u))/1 'Amarante', serif; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 0 rgb(0 0 0 / .8)); }
.pl.p1 .pl-step { height: calc(130 * var(--u)); width: 80%; } .pl.p2 .pl-step { height: calc(90 * var(--u)); } .pl.p3 .pl-step { height: calc(62 * var(--u)); }
.podv .ribbons { position: absolute; left: -10%; right: -6%; top: 22%; bottom: 0; width: 116%; height: 78%; pointer-events: none; filter: drop-shadow(0 10px 20px rgb(0 0 0 / .35)); }
.podv .rb { animation: flow 9s ease-in-out infinite alternate; } .podv .rb.b { animation-duration: 12s; animation-delay: -4s; } .podv .rb.c { animation-duration: 10s; animation-delay: -7s; }
@keyframes flow { from { transform: translateX(-2%) translateY(0); } to { transform: translateX(2%) translateY(-3%); } }
.pod-row { position: relative; }

/* the nominees (top 30, then top 10), as Ballon d'Or's list: a dark board, the word down its side, two columns of names */
.s2.nomv .find, .s2.nomv .strip, .s2.nomv .cards { display: none; }
.noms { display: flex; flex-direction: column; position: absolute; left: calc(704 * var(--u)); right: calc(36 * var(--u)); top: calc(28 * var(--u)); bottom: calc(30 * var(--u)); overflow: hidden;
  padding: calc(34 * var(--u)) calc(44 * var(--u)) calc(30 * var(--u)) calc(130 * var(--u)); text-shadow: none;
  background: linear-gradient(160deg, rgb(20 4 3 / .92), rgb(46 10 6 / .82) 55%, rgb(18 4 3 / .92)); border: 1px solid rgb(243 207 124 / .28); box-shadow: 0 20px 60px rgb(0 0 0 / .6); }
.noms .nv { position: absolute; left: calc(28 * var(--u)); bottom: calc(30 * var(--u)); transform-origin: 0 100%; transform: rotate(-90deg) translateY(100%); white-space: nowrap;
  font: 400 calc(104 * var(--u))/1 'Amarante', serif; letter-spacing: .02em; background: linear-gradient(90deg, #6e3f0e, #f6d27a 45%, #fff1b8 60%, #c98a2c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.noms .nh { display: flex; align-items: center; gap: calc(16 * var(--u)); margin-bottom: calc(26 * var(--u)); }
.noms .nh img { height: calc(54 * var(--u)); min-height: 34px; }
.noms .nh span { font: 400 calc(38 * var(--u))/1 'Amarante', serif; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; filter: var(--outline) drop-shadow(0 0 12px rgb(255 140 50 / .45)); }
.noms .nh small { display: block; margin-top: 8px; -webkit-text-fill-color: #f3cf7c; filter: none; font: 500 max(11px, calc(12 * var(--u)))/1 'Be Vietnam Pro', sans-serif; letter-spacing: .08em; color: #f3cf7c; }
.noms .nl { flex: 1; min-height: 0; list-style: none; display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--rows), minmax(0, 1fr)); grid-template-columns: 1fr 1fr; column-gap: calc(40 * var(--u)); container-type: size; }   /* (the names fill the board: rows shared out, the type as large as they allow) */
.noms li { align-self: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 clamp(12px, min(calc(100cqh / var(--rows) * .58), 3.6cqw), 46px)/1.1 'Amarante', serif; color: #fff3dc;
  animation: nomin .6s cubic-bezier(.33,1,.68,1) both; animation-delay: calc(var(--i) * 70ms + 200ms); }
.noms li b { font-weight: 400; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .8)); }   /* (Amarante has one weight: the surname in gold, not bold) */
.noms li.gold { color: #f3cf7c; } .noms li.gold b { filter: drop-shadow(0 0 8px rgb(255 160 60 / .7)); }
.noms .nl.ten li { font-size: clamp(14px, min(calc(100cqh / var(--rows) * .42), 4.6cqw), 54px); }
.noms .ny { position: absolute; right: calc(28 * var(--u)); bottom: calc(22 * var(--u)); text-align: center; font: 400 max(13px, calc(17 * var(--u)))/1.15 'Amarante', serif; letter-spacing: .2em; color: #f3cf7c; }
@keyframes nomin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
/* Uma Of The Year's ten: 1st first, two rows of five filling the right side */
.s2.tenv .find, .s2.tenv .strip { display: none; }
.s2.tenv .cards { left: calc(470 * var(--u)); right: calc(36 * var(--u)); top: calc(38 * var(--u)); bottom: calc(30 * var(--u)); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: calc(16 * var(--u)); }
.s2.tenv .cards .card { width: 100%; height: 100%; aspect-ratio: auto; }
.s2.tenv.t18 .cards { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: calc(12 * var(--u)); }
.s2.tenv .card .lb { font-size: max(13px, calc(18 * var(--u))); }

/* your ballot: its cards fill the right side, Uma Of The Year above, rookies below */
.s2.mine .find, .s2.mine .strip { display: none; }
.s2.mine .cards { top: calc(40 * var(--u)); bottom: calc(36 * var(--u)); right: calc(36 * var(--u)); display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(0, 1fr); }
.s2.mine .cards .card { width: auto; height: auto; aspect-ratio: auto; }
.s2.mine .card .lb { font-size: max(15px, calc(24 * var(--u))); } .s2.mine .card .rk { font-size: calc(60 * var(--u)); } .s2.mine .card .ini { font-size: calc(80 * var(--u)); }
/* a card, as the reel's: its picture, a dark foot, its label */
.card { position: relative; flex: none; display: block; width: calc(216 * var(--u)); height: calc(246 * var(--u)); overflow: hidden; text-align: left; border-radius: 8px;
  border: 2px solid transparent; background: linear-gradient(170deg, #3a0c07, #1a0403 60%, #0d0202) padding-box, linear-gradient(160deg, #fff1b8, #d39a32 28%, #6e3f0e 52%, #f6d27a 76%, #a86b1c) border-box;
  box-shadow: 0 0 0 1px #2a0603, inset 0 0 0 1px rgb(255 214 140 / .45), inset 0 0 0 3px #1a0403, inset 0 0 0 4px rgb(214 160 70 / .55), 0 8px 22px rgb(0 0 0 / .6); }
.card .lv, .vt .lv, .ic .lv { position: absolute; z-index: 1; inset: 0; pointer-events: none; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .6));
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath transform='translate(-8 -6) rotate(30) scale(2.6)' d='M12 1l1.7 3.9 3.3-1.4-.9 3.7 3.7-.4-2.2 2.8 3.1 1.8-3.7 1.1.9 2.6-3.3-1.3-.6 3.6h-.6V20h-1v-2.6h-.6l-.6-3.6-3.3 1.3.9-2.6-3.7-1.1 3.1-1.8-2.2-2.8 3.7.4-.9-3.7 3.3 1.4z' fill='%23c8341b'/%3E%3Cpath transform='translate(30 -8) rotate(-20) scale(1.7)' d='M12 1l1.7 3.9 3.3-1.4-.9 3.7 3.7-.4-2.2 2.8 3.1 1.8-3.7 1.1.9 2.6-3.3-1.3-.6 3.6h-.6V20h-1v-2.6h-.6l-.6-3.6-3.3 1.3.9-2.6-3.7-1.1 3.1-1.8-2.2-2.8 3.7.4-.9-3.7 3.3 1.4z' fill='%23e8762a'/%3E%3Cpath transform='translate(-6 34) rotate(70) scale(1.4)' d='M12 1l1.7 3.9 3.3-1.4-.9 3.7 3.7-.4-2.2 2.8 3.1 1.8-3.7 1.1.9 2.6-3.3-1.3-.6 3.6h-.6V20h-1v-2.6h-.6l-.6-3.6-3.3 1.3.9-2.6-3.7-1.1 3.1-1.8-2.2-2.8 3.7.4-.9-3.7 3.3 1.4z' fill='%23f2b03c'/%3E%3C/svg%3E") 0 0 / 34% auto no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath transform='translate(108 106) rotate(210) scale(2.6)' d='M12 1l1.7 3.9 3.3-1.4-.9 3.7 3.7-.4-2.2 2.8 3.1 1.8-3.7 1.1.9 2.6-3.3-1.3-.6 3.6h-.6V20h-1v-2.6h-.6l-.6-3.6-3.3 1.3.9-2.6-3.7-1.1 3.1-1.8-2.2-2.8 3.7.4-.9-3.7 3.3 1.4z' fill='%23b52a17'/%3E%3Cpath transform='translate(70 108) rotate(160) scale(1.7)' d='M12 1l1.7 3.9 3.3-1.4-.9 3.7 3.7-.4-2.2 2.8 3.1 1.8-3.7 1.1.9 2.6-3.3-1.3-.6 3.6h-.6V20h-1v-2.6h-.6l-.6-3.6-3.3 1.3.9-2.6-3.7-1.1 3.1-1.8-2.2-2.8 3.7.4-.9-3.7 3.3 1.4z' fill='%23e8762a'/%3E%3Cpath transform='translate(106 66) rotate(250) scale(1.4)' d='M12 1l1.7 3.9 3.3-1.4-.9 3.7 3.7-.4-2.2 2.8 3.1 1.8-3.7 1.1.9 2.6-3.3-1.3-.6 3.6h-.6V20h-1v-2.6h-.6l-.6-3.6-3.3 1.3.9-2.6-3.7-1.1 3.1-1.8-2.2-2.8 3.7.4-.9-3.7 3.3 1.4z' fill='%23f2b03c'/%3E%3C/svg%3E") 100% 100% / 34% auto no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120'%3E%3Ccircle cx='18' cy='30' r='0.7' fill='%23ffd98a' opacity='0.8'/%3E%3Ccircle cx='40' cy='12' r='0.5' fill='%23ffd98a' opacity='0.6'/%3E%3Ccircle cx='80' cy='30' r='0.6' fill='%23ffd98a' opacity='0.7'/%3E%3Ccircle cx='90' cy='55' r='0.5' fill='%23ffd98a' opacity='0.5'/%3E%3Ccircle cx='12' cy='62' r='0.5' fill='%23ffd98a' opacity='0.6'/%3E%3Ccircle cx='60' cy='48' r='0.4' fill='%23ffd98a' opacity='0.5'/%3E%3Ccircle cx='70' cy='80' r='0.6' fill='%23ffd98a' opacity='0.7'/%3E%3Ccircle cx='30' cy='88' r='0.4' fill='%23ffd98a' opacity='0.6'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.strip .card { width: calc(160 * var(--u)); height: calc(256 * var(--u)); min-width: 92px; }
.card .im { position: absolute; inset: 4px; border-radius: 4px; overflow: hidden; background-size: cover; background-position: 50% 20%; transition: transform .9s var(--ease-out); display: grid; place-items: center; }
.card:hover .im { transform: scale(1.05); }
.card::after { content: ''; position: absolute; inset: 4px; border-radius: 4px; background: linear-gradient(180deg, rgb(20 3 2 / 0) 45%, rgb(20 3 2 / .88)); pointer-events: none; }
.card .ini { font: 400 calc(54 * var(--u))/1 'Amarante', serif; color: rgb(255 214 140 / .5); }
.card .lb { position: absolute; z-index: 2; left: calc(14 * var(--u)); right: calc(12 * var(--u)); bottom: calc(12 * var(--u)); font: 400 max(13px, calc(19 * var(--u)))/1.1 'Amarante', serif; }
.card .lb b { font-weight: 400; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; filter: var(--outline) drop-shadow(0 1px 1px rgb(0 0 0 / .8)); }
.card .lb small { display: block; margin-top: 4px; font: 400 max(10px, calc(10.5 * var(--u)))/1.2 'Be Vietnam Pro', sans-serif; letter-spacing: .04em; color: rgb(255 225 170 / .8); }
.card .rk { position: absolute; z-index: 2; top: calc(8 * var(--u)); right: calc(12 * var(--u)); font: 400 calc(44 * var(--u))/1 'Amarante', serif; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; filter: var(--outline) drop-shadow(0 2px 6px rgb(0 0 0 / .7)); }
.card .tg { position: absolute; z-index: 2; top: calc(10 * var(--u)); left: calc(10 * var(--u)); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.card.on { box-shadow: 0 0 0 2px #ffd98a, 0 0 22px rgb(255 170 60 / .75), inset 0 0 0 1px rgb(255 214 140 / .45); }
.card.slot:not(.full) { opacity: .7; } .card.slot:not(.full) .lv { opacity: .35; }
.card.slot:not(.full) .lb { font-family: 'Be Vietnam Pro', sans-serif; font-size: max(12px, calc(14 * var(--u))); font-weight: 500; }
.card.slot .hint { position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgb(241 230 212 / .45); }
.card .x { position: absolute; z-index: 2; top: 6px; left: 6px; width: 30px; height: 30px; font-size: 18px; opacity: .8; }
.card.ro { cursor: default; }
.card.ro:hover .im { transform: none; }
.card.new { animation: rise 1.2s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(30%); } to { opacity: 1; transform: none; } }
.card.year .rk { font-size: calc(30 * var(--u)); }
.blank { align-self: center; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: rgb(241 230 212 / .5); white-space: nowrap; }

/* the walkout (uma.js walkout): over everything while a rank is told */
.wo { position: absolute; inset: 0; z-index: 30; overflow: hidden; cursor: pointer; text-shadow: none; }
.wo-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 50% 45% at 50% 52%, rgb(200 60 24 / .55), rgb(40 4 2 / .96) 70%, #000), #050101; }
.wo-flash { position: absolute; inset: 0; background: #fffaf0; opacity: 0; pointer-events: none; z-index: 5; }
.wo-num { position: absolute; left: 50%; top: 50%; opacity: 0; font: 400 min(46vh, 60vw)/1 'Amarante', serif; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: var(--outline) drop-shadow(0 0 40px rgb(255 140 50 / .7)); }
.wo-env { --wax-image: url('/static/uma/seal.webp'); /* Switch to seal-red.webp for burgundy wax. */
  position: absolute; left: 50%; top: 50%; opacity: 0; width: min(64vh, 80vw); aspect-ratio: 1.5; perspective: 1200px; }
.wo-env .paper { position: absolute; inset: 0; border-radius: 4px; background: #68172a url('/static/uma/envelope.webp') center / 100% 100%;
  box-shadow: 0 28px 38px -12px rgb(0 0 0 / .8), 0 3px 5px rgb(0 0 0 / .5), inset 0 1px 1px rgb(244 185 165 / .26), inset 0 -1px 1px rgb(222 142 133 / .2); }
.wo-env .fold { position: absolute; inset: 0; border-radius: 4px; pointer-events: none;
  background: linear-gradient(180deg, rgb(0 0 0 / .25), transparent 14%); }
.wo-env .glow { position: absolute; left: 6%; right: 6%; top: -18%; height: 75%; opacity: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(ellipse at 50% 35%, rgb(255 237 194 / .9), rgb(255 186 90 / .35) 32%, transparent 70%); filter: blur(12px); }
.wo-env span { position: absolute; left: 0; right: 0; bottom: 8%; text-align: center; font: 400 min(3.4vh, 4.5vw)/1 'Amarante', serif;
  color: #d9b46a; text-shadow: 0 1px 0 rgb(255 226 166 / .45), 0 -1px 1px #3f0d1b, 1px 1px 1px rgb(43 5 11 / .6); }
.wo-env span small { display: block; margin-top: .55em; font-size: .5em; letter-spacing: .3em; }
.wo-env .flap { position: absolute; left: 0; right: 0; top: 0; height: 58%; transform-origin: 50% 0; transform-style: preserve-3d; z-index: 2; }
.wo-env .flap-front, .wo-env .flap-back { position: absolute; inset: 0; display: block; backface-visibility: hidden;
  filter: drop-shadow(0 3px 2px rgb(23 0 6 / .55)); }
.wo-env .flap-front::before, .wo-env .flap-back::before { content: ''; position: absolute; inset: 0;
  clip-path: polygon(0 0, 100% 0, 50.5% 99.5%, 49.5% 99.5%); background: url('/static/uma/paper.webp') center / 100% 172%; }
.wo-env .flap-front::after { content: ''; position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 50.5% 99.5%, 49.5% 99.5%);
  background: linear-gradient(180deg, rgb(177 82 85 / .08), transparent 40%, rgb(25 0 7 / .15)); }
.wo-env .flap-back { transform: rotateY(180deg); }
.wo-env .flap-back::before { background-image: linear-gradient(rgb(201 131 124 / .16), rgb(201 131 124 / .16)), url('/static/uma/paper.webp'); }
.wo-env .seal { position: absolute; z-index: 3; left: 40%; top: 42%; width: 20%; aspect-ratio: 1; }
.wo-env .seal .wax { position: absolute; inset: 0; background: var(--wax-image) center / contain no-repeat;
  filter: drop-shadow(1px 3px 2px rgb(28 4 5 / .65)); }
.wo-env .wax-left { clip-path: polygon(0 0, 52% 0, 48% 26%, 54% 39%, 47% 53%, 52% 68%, 46% 83%, 50% 100%, 0 100%); }
.wo-env .wax-right { clip-path: polygon(52% 0, 100% 0, 100% 100%, 50% 100%, 46% 83%, 52% 68%, 47% 53%, 54% 39%, 48% 26%); }
.wo-cup { position: absolute; left: 50%; top: 0; height: 100vh; opacity: 0; transform-origin: 50% 0; filter: drop-shadow(0 0 60px rgb(255 120 40 / .5)); }
.wo-mark { position: absolute; left: 50%; top: 52%; opacity: 0; text-align: center; font: 400 min(40vh, 52vw)/1 'Amarante', serif; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: var(--outline) drop-shadow(0 0 50px rgb(255 150 60 / .85)); }
.wo-mark small { display: block; font-size: .2em; letter-spacing: .04em; }
.wo-stage { position: absolute; inset: 0; opacity: 0; display: grid; place-items: center; align-content: center; gap: 3vh; }
.wo-burst { position: absolute; left: 50%; top: 46%; width: min(120vh, 130vw); translate: -50% -50%; animation: turn 40s linear infinite; pointer-events: none; }
.wo-card { position: relative; }
.wo .card { width: min(42vh, 66vw); height: auto; aspect-ratio: 216 / 282; box-shadow: 0 0 0 2px #ffd98a, 0 0 60px rgb(255 160 60 / .6), 0 30px 60px rgb(0 0 0 / .7); }
.wo .card .lb { display: none; }
.wo .card .rk { font-size: min(9vh, 12vw); }
.wo .card .ini { font-size: min(12vh, 16vw); }
.wo-name { position: relative; text-align: center; font: 400 min(7vh, 9vw)/1.05 'Amarante', serif; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: var(--outline) drop-shadow(0 3px 3px rgb(0 0 0 / .8)) drop-shadow(0 0 24px rgb(255 140 50 / .55)); }
.wo-name small { display: block; margin-top: 1vh; font: 600 max(12px, 1.7vh)/1.2 'Be Vietnam Pro', sans-serif; letter-spacing: .12em; text-transform: uppercase; -webkit-text-fill-color: #f3cf7c; }
.wo.big .wo-name { font-size: min(9vh, 11vw); }
.wo.big .card { width: min(48vh, 72vw); }
/* the 1st: a title alone in the dark, the card face down then turned, a ring of light, fireworks, the name letter by letter */
.wo-title { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); opacity: 0; text-align: center; z-index: 4; pointer-events: none; }
.wo-title small { display: block; margin-bottom: 2.4vh; font: 700 min(3vh, 4.4vw)/1.2 'Playfair Display', serif; letter-spacing: .22em; text-transform: uppercase; color: #f3cf7c; text-shadow: 0 0 20px rgb(255 160 60 / .6); }
.wo-title b { display: block; font: 400 min(14vh, 14vw)/1 'Amarante', serif; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: var(--outline) drop-shadow(0 4px 4px rgb(0 0 0 / .8)) drop-shadow(0 0 40px rgb(255 150 60 / .75)); }
.wo-ring { position: absolute; left: 50%; top: 44%; width: min(40vh, 60vw); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; opacity: 0; pointer-events: none; z-index: 3;
  border: 3px solid #fff0c0; box-shadow: 0 0 40px 8px rgb(255 180 70 / .8), inset 0 0 40px 6px rgb(255 180 70 / .7); }
.wo-fw { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.wo.one .wo-card { perspective: 1400px; }
.wo.one .wo-card .card { backface-visibility: hidden; }
.wo-back { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; align-content: center; gap: 1.6vh; border-radius: 8px; backface-visibility: hidden;
  border: 2px solid transparent; background: repeating-linear-gradient(90deg, rgb(0 0 0 / .12) 0 3px, transparent 3px 9px) padding-box, radial-gradient(ellipse at 50% 40%, #a3170e, #4a0604 75%) padding-box,
    linear-gradient(160deg, #fff1b8, #d39a32 28%, #6e3f0e 52%, #f6d27a 76%, #a86b1c) border-box;
  box-shadow: inset 0 0 0 3px #3a0603, inset 0 0 0 4px rgb(246 210 122 / .7), 0 0 60px rgb(255 160 60 / .5), 0 30px 60px rgb(0 0 0 / .7); }
.wo-back img { height: 36%; filter: drop-shadow(0 0 14px rgb(255 170 70 / .6)); }
.wo-back b { font: 400 min(4.6vh, 6vw)/1 'Amarante', serif; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wo-back small { font: 400 min(2.6vh, 3.4vw)/1 'Amarante', serif; letter-spacing: .3em; color: #f3cf7c; }
.wo.one .wo-name { font-size: min(11vh, 12vw); background: none; filter: none; }
.wo.one .wo-name i { display: inline-block; font-style: normal; background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: var(--outline) drop-shadow(0 3px 3px rgb(0 0 0 / .8)) drop-shadow(0 0 26px rgb(255 150 60 / .7)); }
.wo-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.wo-tap { position: absolute; left: 50%; bottom: 3vh; transform: translateX(-50%); opacity: 0; font: 500 12px/1 'Be Vietnam Pro', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #f3cf7c; z-index: 3; }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 22px; transform: translateX(-50%); padding: 12px 18px; background: var(--light); color: var(--deep); font-weight: 500; font-size: 14px; max-width: calc(100vw - 32px); }

/* before the intro */
.stage.pre .h1 > *, .stage.pre .links a, .stage.pre .menu, .stage.pre .fg, .stage.pre .glyphs, .stage.pre .word { opacity: 0; }
.stage.pre .scene { transform: scale(1.3); }

/* phones, and anything portrait */
@media (max-width: 820px), (max-aspect-ratio: 1/1) {
  :root { --u: calc(100vw / 390); --mb: 96px; }
  .nav { height: auto; padding: 16px 18px 0; flex-wrap: wrap; }
  .logo img { height: 46px; } .menu { width: 30px; height: 28px; gap: 7px; }
  .links { position: static; transform: none; order: 3; width: 100%; justify-content: space-between; gap: 8px; margin-top: 4px; }
  .links a { font-size: 11px; }
  .shade { background: linear-gradient(180deg, rgb(17 15 12 / .9) 0%, rgb(17 15 12 / .62) 30%, rgb(17 15 12 / .25) 48%, transparent 60%, rgb(17 15 12 / .45) 100%); }
  .cup, .cupref { height: min(56vh, 110vw); }
  .coals { height: 22%; } .cup { bottom: 20%; } .cupref { top: 80%; }
  .word { top: 150px; font-size: 15vw; }
  .h1 .gt { top: 166px; font-size: min(48px, 12vw); }
  .stage { --t2: 108px; } .stage.is-s2 { --t2: 40px; } .stage.is-s2 .glyphs { top: 16px; }   /* (the header gone below the opening: all up) */
  .glyphs { left: 18px; top: 94px; flex-direction: row; gap: 12px; } .glyphs svg { width: 13px; }
  .h1 h1 { left: 18px; right: 18px; top: 118px; width: auto; white-space: normal; font-size: min(20px, 5.2vw); }
  .hbody, .vcard { top: auto; bottom: 120px; }
  .hbody { left: 18px; right: auto; width: min(300px, 60vw); font-size: 13px; }
  .vcard { left: auto; right: 18px; width: min(120px, 26vw); height: min(84px, 18vw); min-width: 0; min-height: 0; }
  .caps { left: 18px; right: 18px; bottom: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .cap { position: static; } .mi { gap: 10px; } .mi b { font-size: 22px; } .mi span { font-size: 11px; padding-left: 8px; }
  .fg { height: 100%; }
  .s2 h2 { left: 18px; right: 18px; top: var(--t2); font-size: min(22px, 5.8vw); line-height: 1.25; }
  .s2 h2 br { display: none; }
  .stage.is-s2 .scene { transform: perspective(1000px) translateX(0) rotateY(16deg) scale(.96); }
  .stage.is-s2 .scene > .dim { opacity: .58; }
  .s2p { left: 18px; right: 18px; width: auto; top: calc(var(--t2) + 2 * 1.25 * min(22px, 5.8vw) + 8px); font-size: 12.5px; }
  .s2p .more { display: none; }
  .clock { display: inline; margin-left: 6px; font-size: 18px; }
  .cats { left: 18px; right: 18px; top: auto; bottom: calc((100vw - 52px) / 3 * 246 / 216 + 20px + 12px + 40px); flex-direction: row; gap: 16px; flex-wrap: wrap; }
  .cats button { font-size: 11px; }
  .arrow { left: auto; right: 18px; top: auto; bottom: calc((100vw - 52px) / 3 * 246 / 216 + 20px + 8px); }
  .find { left: 18px; right: 18px; top: calc(var(--t2) + 2 * 1.25 * min(22px, 5.8vw) + 8px + 44px); }
  .strip { left: 18px; top: calc(var(--t2) + 2 * 1.25 * min(22px, 5.8vw) + 8px + 44px + 44px); bottom: calc((100vw - 52px) / 3 * 246 / 216 + 20px + 84px); height: auto; gap: 8px; padding-right: 18px; }
  .strip { bottom: auto; height: min(200px, 26vh); }
  .strip .card { width: auto; height: 100%; aspect-ratio: 5 / 8; min-width: 0; }
  .cards .card .im { place-items: start center; padding-top: 16%; } .cards .card .ini { font-size: 20px; } .cards .card .x { top: 2px; left: 2px; }
  .cards { left: 18px; right: 18px; top: auto; bottom: 20px; gap: 8px; }
  .cards .card { width: calc((100vw - 52px) / 3); height: auto; aspect-ratio: 216 / 246; }
  .s2.mine .cards { top: calc(var(--t2) + 2 * 1.25 * min(22px, 5.8vw) + 52px); bottom: 64px; left: 18px; right: 18px; }
  .noms { left: 10px; right: 10px; top: calc(var(--t2) + 2 * 1.25 * min(22px, 5.8vw) + 50px); bottom: 92px; padding: 18px 14px 18px 56px; } .noms .nv { font-size: 44px; left: 10px; }
  .noms .ny { top: 16px; bottom: auto; right: 14px; }
  .noms .nl { column-gap: 14px; } .noms li { white-space: normal; font-size: clamp(13px, min(calc(100cqh / var(--rows) * .45), 5.4cqw), 22px); } .noms .nl.ten li { font-size: clamp(16px, min(calc(100cqh / var(--rows) * .32), 7.4cqw), 30px); } .noms .nh span { font-size: 22px; }
  .s2.nomv .cats, .s2.podm .cats, .s2.votev .cats, .s2.introm .cats { bottom: 16px; }
  .introv { left: 10px; right: 10px; top: calc(var(--t2) + 2 * 1.25 * min(22px, 5.8vw) + 46px); bottom: 98px; gap: 10px; } .introv .vb-bar { flex-wrap: wrap; } .ichips button { height: 38px; }
  .igrid { grid-template-columns: 1fr; gap: 10px; } .ic { grid-template-columns: 86px 1fr; gap: 12px; }
  .vote { left: 10px; right: 10px; top: calc(var(--t2) + 2 * 1.25 * min(22px, 5.8vw) + 46px); bottom: 54px; grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; }
  .vgrid { grid-template-columns: repeat(3, 1fr); gap: 8px; padding-bottom: 16px; } .vt-nm { font-size: 13px; padding: 6px 7px 8px; } .vt-nm small { display: none; }
  .vb-side { padding: 10px; gap: 8px; border-radius: 12px; } .vs-head, .vs-prog, .vs-note, .vs-next { display: none; }
  .vs-list { grid-template-columns: repeat(3, 1fr); gap: 6px; } .vs-row { grid-template-columns: 1fr; justify-items: center; min-height: 0; padding: 6px; gap: 4px; text-align: center; }
  .vs-medal { width: auto; font-size: 24px; } .vs-thumb { display: none; } .vs-nm { font-size: 12px; max-width: 100%; white-space: nowrap; } .vs-nm small { display: none; }
  .vs-act button { width: 24px; height: 24px; } .vs-empty { grid-column: auto; font-size: 11px; } .vs-send { height: 42px; font-size: 12px; }
  .podv { left: 10px; right: 10px; top: calc(var(--t2) + 2 * 1.25 * min(22px, 5.8vw) + 46px); bottom: 98px; }
  .pod-head { font-size: 30px; } .pod-row { gap: 6px; } .pl .card .rk { font-size: 22px; } .pl-name { font-size: 14px; } .pl.p1 .pl-name { font-size: 17px; }
  .pl.p1 .pl-step { height: 64px; } .pl.p2 .pl-step { height: 44px; } .pl.p3 .pl-step { height: 30px; } .pl-step span { font-size: 24px; } .pl-step::before { top: -7px; height: 7px; }
  .s2.tenv .cards { left: 10px; right: 10px; top: calc(var(--t2) + 2 * 1.25 * min(22px, 5.8vw) + 46px); bottom: 98px; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: minmax(150px, auto); overflow-y: auto; gap: 8px; }
  .s2.tenv.t18 .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: none; }
  .s2.tenv .cats { bottom: 16px; }
  .s2.mine .cats { bottom: 16px; } .s2.mine .cards { gap: 6px; bottom: 92px; }
  .s2.mine .card .lb { font-size: 14px; } .s2.mine .card .rk { font-size: 26px; } .s2.mine .card .ini { font-size: 30px; }
  .card .lb { font-size: 11px; } .card .rk { font-size: 26px; } .card .ini { font-size: 30px; }
  /* (the sections' menu a tab bar of one line along the foot, over everything, swiped along if it runs out of room; every board ending above it —
     the user, 2026-11-29: "tối ưu lại cho điện thoại", "giao diện": the ballot hid all but its last tab, and on the candidates it ran on two lines over the list) */
  .s2 .cats, .s2.nomv .cats, .s2.podm .cats, .s2.votev .cats, .s2.introm .cats, .s2.tenv .cats, .s2.mine .cats {
    left: 0; right: 0; top: auto; bottom: 0; z-index: 6; flex-wrap: nowrap; gap: 12px; justify-content: space-between; overflow-x: auto; scrollbar-width: none;
    padding: 18px 12px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(rgb(8 3 2 / 0), rgb(8 3 2 / .94) 40%); }
  .s2 .cats::-webkit-scrollbar { display: none; }
  .s2 .cats button { flex: none; padding: 8px 0; white-space: nowrap; font-size: 10.5px; letter-spacing: .02em; }
  .cards { bottom: 64px; }
  .vote { bottom: 58px; } .introv, .podv, .s2.tenv .cards { bottom: 58px; } .noms { bottom: 62px; } .s2.mine .cards { bottom: 62px; }
  /* (the ballot's moves a finger's size) */
  .vs-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } .vs-row { min-width: 0; }
  .vs-act { gap: 2px; opacity: 1; width: 100%; justify-content: center; } .vs-act button { flex: 1 1 0; width: auto; max-width: 32px; min-width: 0; height: 32px; font-size: 16px; }   /* (no hover on a phone: never dimmed; shrunk to the column on a narrow one) */
}
@media (max-width: 380px) { .s2 .cats { gap: 9px; padding-inline: 10px; } .s2 .cats button { font-size: 9.6px; letter-spacing: 0; } }   /* (all four tabs on a narrow phone too) */
@media (min-width: 600px) and (max-aspect-ratio: 1/1) {
  :root { --u: calc(100vw / 760); --mb: 76px; }
  .h1 h1 { font-size: min(30px, 4.4vw); top: 130px; }
  .hbody { font-size: 14px; width: 300px; } .vcard { width: 200px; height: 140px; }
  .links { position: absolute; left: 50%; top: 30px; transform: translateX(-50%); width: auto; gap: 36px; } .links a { font-size: 12px; }
  .caps { grid-template-columns: repeat(4, 1fr); }
  .fg { height: calc(100vw * 810 / 1440 + 152px); }
  .s2 h2 { font-size: min(34px, 4.6vw); }
  .cards .card { width: calc((100vw - 92px) / 3); } .cards { gap: 14px; }
}
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
  :root { --u: calc(100vh / 470); --mb: 36px; }
  .links { gap: 22px; left: 50%; transform: translate(-50%, -50%); }
  .vcard, .glyphs { display: none; }
  .h1 h1 { width: 30vw; font-size: clamp(13px, 2vw, 18px); top: 30vh; } .h1 .gt { font-size: 11vh; top: 11vh; }
  .fg { height: calc(810 * var(--s) + 36px); }
}
@media (prefers-reduced-motion: reduce) { .pl, .podv .rb { animation: none; } .noms li { animation: none; } .dust, .halo, .halo .burst { animation: none; } .card .im, .arrow svg { transition: none; } .card.new { animation: none; } }

/* (a year's poster over the page, tapped away) */
.poster { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: rgb(6 2 1 / .88); cursor: zoom-out; animation: posterIn .3s var(--ease-out) both; }
@keyframes posterIn { from { opacity: 0; } to { opacity: 1; } }
.poster img { max-width: min(100%, 1000px); max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 60px rgb(0 0 0 / .6); }
