/* web403: the game website /<lang>/web/ — dark navy + gold (day: parchment + navy), chunky game buttons, no libraries.
   Logical properties everywhere (ar / he / fa / ur read right to left). server/web403.js renders, public/js/web403.js fills. */
@font-face { font-family: 'w403serif'; src: url('/fonts/web2/serif-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
:root {
  --bg: #050a1c; --bg2: #0a1534; --panel: rgba(16, 30, 72, .78); --panel2: rgba(22, 40, 92, .9); --line: rgba(242, 194, 78, .34); --line2: rgba(160, 182, 255, .16);
  --text: #eef2ff; --muted: #a9b5da; --gold: #f2c24e; --gold2: #ffe9a3; --gold3: #9c6a12; --navy: #0b1840; --ok: #7fe0b0; --shadow: 0 14px 40px rgba(0, 0, 0, .45);
  --r: 16px; --sky1: #0b1a4a; --sky2: #050a1c; --ridge: #081232; --ridge2: #040817;
  color-scheme: dark;
}
:root[data-theme='light'] {
  --bg: #f4ecd8; --bg2: #fbf5e6; --panel: rgba(255, 252, 242, .92); --panel2: #fffaf0; --line: rgba(168, 116, 26, .45); --line2: rgba(26, 35, 71, .14);
  --text: #18224a; --muted: #56608a; --gold: #c8901c; --gold2: #f7d77a; --gold3: #7a5208; --navy: #1a2a66; --shadow: 0 12px 30px rgba(60, 40, 0, .16);
  --sky1: #9fc2ff; --sky2: #f4ecd8; --ridge: #3d5590; --ridge2: #22346b;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body.w403 { margin: 0; min-height: 100vh; background: radial-gradient(1200px 600px at 50% -10%, var(--bg2), var(--bg)) fixed, var(--bg); color: var(--text);
  font: 15px/1.55 system-ui, -apple-system, 'Segoe UI', 'Noto Sans', 'Noto Sans Thai', Tahoma, sans-serif; overflow-x: hidden; }
a { color: var(--gold2); }
:root[data-theme='light'] a { color: var(--gold3); }
img { max-width: 100%; }
.w403-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.w403-skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 50; background: var(--gold); color: #1a1200; padding: 8px 14px; border-radius: 10px; }
.w403-skip:focus { top: 8px; }
.w403-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 3px solid var(--gold2); outline-offset: 2px; }

/* ------------------------------------------------------------ top bar */
.w403-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 8px max(12px, env(safe-area-inset-left)) 8px max(12px, env(safe-area-inset-right));
  background: linear-gradient(180deg, rgba(5, 10, 28, .96), rgba(8, 16, 44, .9)); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
:root[data-theme='light'] .w403-bar { background: linear-gradient(180deg, rgba(255, 250, 238, .97), rgba(246, 236, 212, .93)); }
.w403-brand { display: flex; flex: 0 0 auto; }
.w403-brand img { height: 38px; width: auto; }
.w403 .lt, :root[data-theme='light'] .w403 .dk { display: none; }
:root[data-theme='light'] .w403 .lt { display: block; }
.w403-nav { display: flex; gap: 4px; margin-inline-start: 8px; flex: 1 1 auto; min-width: 0; overflow: hidden; }
.w403-nav a { color: var(--text); text-decoration: none; font-weight: 600; padding: 7px 10px; border-radius: 10px; white-space: nowrap; font-size: 14px; }
.w403-nav a:hover { background: var(--line2); color: var(--gold2); }
:root[data-theme='light'] .w403-nav a:hover { color: var(--gold3); }
.w403-lang { position: relative; margin-inline-start: auto; }
.w403-lang summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 7px 10px; border-radius: 12px; border: 1px solid var(--line); font-weight: 600; font-size: 14px; max-width: 160px; }
.w403-lang summary::-webkit-details-marker { display: none; }
.w403-lang summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w403-lang svg, .w403-theme svg { width: 20px; height: 20px; flex: 0 0 auto; }
.w403-lang ul { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; width: min(560px, calc(100vw - 24px)); max-height: min(60vh, 460px); overflow: auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 2px; background: var(--panel2); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.w403-lang li a { display: block; padding: 7px 9px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px; }
.w403-lang li a:hover, .w403-lang li a[aria-current] { background: var(--line2); color: var(--gold2); }
.w403-theme { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; flex: 0 0 auto; }
.w403-theme .sun, :root[data-theme='light'] .w403-theme .moon { display: none; }
:root[data-theme='light'] .w403-theme .sun { display: block; }

/* ------------------------------------------------------------ buttons (chunky, game-like) */
.w403-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 18px; border-radius: 14px; font-weight: 800; text-decoration: none; color: var(--text);
  background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 2px solid var(--line); box-shadow: 0 4px 0 rgba(0, 0, 0, .35); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.w403 a.w403-btn { color: var(--text); }
.w403-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .35); }
.w403-btn-gold, .w403 a.w403-btn-gold { color: #2a1800; background: linear-gradient(180deg, #fff1b8, #f2c24e 45%, #c98d16); border-color: #fff0b0; box-shadow: 0 4px 0 #7a4f06, 0 0 18px rgba(242, 194, 78, .35); text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
.w403-barplay { flex: 0 0 auto; white-space: nowrap; }

/* ------------------------------------------------------------ hero */
.w403-hero { position: relative; overflow: hidden; isolation: isolate; padding: 28px 16px 54px; min-height: min(86vh, 860px); display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.w403-sky { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--sky1), var(--sky2) 88%); }
.w403-sky .st { position: absolute; inset: 0; opacity: .7; background-image: radial-gradient(1.5px 1.5px at 12% 18%, #fff, transparent 60%), radial-gradient(1px 1px at 32% 8%, #fff, transparent 60%), radial-gradient(1.5px 1.5px at 58% 22%, #ffe9a3, transparent 60%),
  radial-gradient(1px 1px at 76% 12%, #fff, transparent 60%), radial-gradient(1.5px 1.5px at 88% 30%, #fff, transparent 60%), radial-gradient(1px 1px at 22% 36%, #fff, transparent 60%), radial-gradient(1px 1px at 66% 40%, #fff, transparent 60%);
  animation: w403tw 6s ease-in-out infinite alternate; }
:root[data-theme='light'] .w403-sky .st { opacity: 0; }
.w403-sky .glow { position: absolute; left: 50%; top: 34%; width: min(900px, 120vw); aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(242, 194, 78, .28), transparent 62%); animation: w403pulse 5s ease-in-out infinite; }
.w403-sky .ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 42%; }
.w403-sky .ridge path { fill: var(--ridge); }
.w403-sky .ridge path.near { fill: var(--ridge2); }
@keyframes w403tw { to { opacity: .35; } }
@keyframes w403pulse { 50% { opacity: .65; transform: translate(-50%, -50%) scale(1.06); } }
.w403-hero-in { width: min(980px, 100%); display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.w403-logo img { width: min(420px, 78vw); height: auto; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .5)); }
.w403-upd { position: relative; width: min(760px, 100%); text-align: start; padding: 18px 20px 16px; border-radius: var(--r); background: var(--panel); border: 2px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(6px); }
.w403-upd::before { content: ''; position: absolute; inset: 5px; border-radius: 12px; border: 1px solid var(--line2); pointer-events: none; }
.w403-ribbon { position: absolute; top: -14px; inset-inline-start: 16px; margin: 0; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
  color: #2a1800; background: linear-gradient(180deg, #fff1b8, #f2c24e 60%, #c98d16); box-shadow: 0 3px 0 #7a4f06; }
.w403-ribbon svg { width: 16px; height: 16px; }
.w403-upd h2 { margin: 6px 0 2px; font: 700 clamp(19px, 3.2vw, 26px)/1.25 'w403serif', system-ui, sans-serif; color: var(--gold2); }
:root[data-theme='light'] .w403-upd h2 { color: var(--navy); }
.w403-upd time, .w403-card time { color: var(--muted); font-size: 13px; }
.w403-upd ul, .w403-card ul { margin: 8px 0 0; padding-inline-start: 20px; }
.w403-upd li, .w403-card li { margin: 3px 0; }
.w403-start { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: min(420px, 92vw); min-height: 72px; padding: 12px 34px; border-radius: 22px; text-decoration: none;
  font: 900 clamp(22px, 4.6vw, 34px)/1 'w403serif', system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #2a1800 !important;
  background: linear-gradient(180deg, #fff6cf, #ffd765 38%, #f2b52c 62%, #b97a0c); border: 3px solid #fff3c0; box-shadow: 0 7px 0 #6e4504, 0 0 0 4px rgba(242, 194, 78, .25), 0 0 46px rgba(242, 194, 78, .55);
  text-shadow: 0 2px 0 rgba(255, 255, 255, .55); animation: w403glow 2.6s ease-in-out infinite; transition: transform .12s, box-shadow .12s; }
.w403-start .i svg { width: 1em; height: 1em; display: block; }
.w403-start:hover { transform: translateY(-2px); }
.w403-start:active { transform: translateY(5px); box-shadow: 0 2px 0 #6e4504, 0 0 0 4px rgba(242, 194, 78, .25); }
@keyframes w403glow { 50% { box-shadow: 0 7px 0 #6e4504, 0 0 0 7px rgba(242, 194, 78, .18), 0 0 70px rgba(242, 194, 78, .75); } }
.w403-menu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: min(760px, 100%); }
.w403-mbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 92px; padding: 12px 8px; border-radius: 18px; text-decoration: none; font-weight: 900; font-size: 15px; letter-spacing: .02em;
  color: var(--text) !important; background: linear-gradient(180deg, #24407e, #12245a 60%, #0b1840); border: 2px solid var(--line); box-shadow: 0 5px 0 #040a20, inset 0 1px 0 rgba(255, 255, 255, .18); transition: transform .12s, box-shadow .12s; }
:root[data-theme='light'] .w403-mbtn { color: #fff8e6 !important; background: linear-gradient(180deg, #33509a, #1d3274 60%, #142458); }
.w403-mbtn .i { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #2a1800; background: radial-gradient(circle at 35% 30%, #fff3c4, #f2c24e 55%, #b07a10); box-shadow: 0 2px 0 #6e4504; }
.w403-mbtn .i svg { width: 24px; height: 24px; }
.w403-mbtn .t { line-height: 1.15; overflow-wrap: anywhere; }
.w403-mbtn:hover { border-color: var(--gold2); }
.w403-mbtn:active { transform: translateY(4px); box-shadow: 0 1px 0 #040a20; }
.w403-comm { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 0; }
.w403-comm span { color: var(--muted); font-weight: 700; }
.w403-comm a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); text-decoration: none; color: var(--text) !important; font-weight: 600; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------ sections */
.w403-sec { width: min(1120px, 100%); margin: 0 auto; padding: 46px 16px 10px; }
.w403-h { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font: 700 clamp(22px, 3.6vw, 32px)/1.2 'w403serif', system-ui, sans-serif; }
.w403-h svg { width: 30px; height: 30px; color: var(--gold); flex: 0 0 auto; }
.w403-h::after { content: ''; flex: 1 1 auto; height: 2px; background: linear-gradient(90deg, var(--line), transparent); }
[dir='rtl'] .w403-h::after { background: linear-gradient(270deg, var(--line), transparent); }
.w403-hgold span { background: linear-gradient(180deg, #fff3c4, #f2c24e 55%, #c98d16); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .04em; text-transform: uppercase; }
:root[data-theme='light'] .w403-hgold span { background: linear-gradient(180deg, #c8901c, #7a5208); -webkit-background-clip: text; background-clip: text; }
.w403-subl { margin: -8px 0 16px; color: var(--muted); }
.w403-subl b { color: var(--gold2); }
:root[data-theme='light'] .w403-subl b { color: var(--gold3); }
.w403-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 14px; }
.w403-card { padding: 16px; border-radius: var(--r); background: var(--panel); border: 1px solid var(--line2); border-top: 3px solid var(--gold); box-shadow: var(--shadow); min-width: 0; overflow-wrap: anywhere; }
.w403-card h3 { margin: 4px 0 6px; font-size: 17px; line-height: 1.3; }
.w403-card p { margin: 6px 0 0; color: var(--muted); }
.w403-more { text-align: center; margin: 18px 0 0; }
.w403-wait { color: var(--muted); padding: 18px; text-align: center; list-style: none; }

/* ------------------------------------------------------------ rankings */
.w403-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding: 2px 2px 8px; }
.w403-tab { flex: 0 0 auto; min-height: 42px; padding: 8px 16px; border-radius: 14px; border: 2px solid var(--line2); background: var(--panel); color: var(--text); font: inherit; font-weight: 800; cursor: pointer; }
.w403-tab[aria-selected='true'] { color: #2a1800; background: linear-gradient(180deg, #fff1b8, #f2c24e 55%, #c98d16); border-color: #fff0b0; box-shadow: 0 3px 0 #7a4f06; }
.w403-sub { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; }
.w403-sub[hidden] { display: none; }
.w403-select { min-height: 42px; max-width: 100%; padding: 6px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--panel2); color: var(--text); font: inherit; font-weight: 700; }
.w403-pill { min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--line2); background: var(--panel); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.w403-pill[aria-pressed='true'] { border-color: var(--gold); color: var(--gold2); }
:root[data-theme='light'] .w403-pill[aria-pressed='true'] { color: var(--gold3); }
.w403-list { list-style: none; margin: 0; padding: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.w403-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line2); }
.w403-row:first-child { border-top: 0; }
.w403-rk { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-weight: 900; background: var(--line2); }
.top.r1 .w403-rk { color: #2a1800; background: radial-gradient(circle at 35% 30%, #fff3c4, #f2c24e 60%, #a8700c); box-shadow: 0 0 14px rgba(242, 194, 78, .6); }
.top.r2 .w403-rk { color: #1d2430; background: radial-gradient(circle at 35% 30%, #ffffff, #c4ccd6 60%, #7c8794); }
.top.r3 .w403-rk { color: #2a1406; background: radial-gradient(circle at 35% 30%, #ffd6b0, #cd8a4c 60%, #84501f); }
.w403-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.w403-wbox { display: flex; flex-direction: column; min-width: 0; }
.w403-nml { display: flex; align-items: center; gap: 4px; min-width: 0; }
.w403-nm { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w403-line { color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.w403-val { text-align: end; font-weight: 900; color: var(--gold2); display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
:root[data-theme='light'] .w403-val { color: var(--gold3); }
.w403-val small { color: var(--muted); font-weight: 600; white-space: normal; text-align: end; }
.w403-ai { display: inline-flex; opacity: .5; font-size: .95em; flex: 0 0 auto; }
.w403-em { width: 36px; height: 36px; border-radius: 8px; flex: 0 0 auto; object-fit: cover; }
.w403-em0 { display: grid; place-items: center; background: var(--line2); }

/* ------------------------------------------------------------ TOP SPENDER */
.w403-tbl { border-radius: var(--r); overflow: hidden; border: 2px solid var(--line); background: var(--panel); box-shadow: var(--shadow), 0 0 40px rgba(242, 194, 78, .08); }
.w403-tr { display: grid; grid-template-columns: 70px minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 10px; padding: 11px 16px; border-top: 1px solid var(--line2); }
.w403-th { border-top: 0; background: linear-gradient(180deg, rgba(242, 194, 78, .22), rgba(242, 194, 78, .08)); color: var(--gold2); font-weight: 900; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
:root[data-theme='light'] .w403-th { color: var(--gold3); }
.w403-tr.w403-wait { display: block; }
.w403-tr .w403-rk { margin: 0 auto; }
.w403-th span:first-child { text-align: center; }
.w403-cn { display: flex; flex-direction: column; min-width: 0; }
.w403-guild { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w403-amt { font-weight: 900; color: var(--gold2); font-variant-numeric: tabular-nums; }
:root[data-theme='light'] .w403-amt { color: var(--gold3); }
.w403-cper { color: var(--muted); font-size: 13px; }
.w403-tr.top.r1 { background: linear-gradient(90deg, rgba(242, 194, 78, .16), transparent 70%); }
[dir='rtl'] .w403-tr.top.r1 { background: linear-gradient(270deg, rgba(242, 194, 78, .16), transparent 70%); }
.w403-free .w403-rk { opacity: .55; }
.w403-empty { color: var(--muted); font-style: italic; font-weight: 700; letter-spacing: .02em; }
.w403-free .w403-amt { color: var(--muted); }
.w403-note { color: var(--muted); font-size: 13px; margin: 10px 2px 0; }

/* ------------------------------------------------------------ HALL OF FAME */
.w403-tiers { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.w403-tchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 6px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); font-size: 13px; }
[dir='rtl'] .w403-tchip { padding: 4px 6px 4px 12px; }
.w403-tchip small { color: var(--muted); }
.w403-tmini { width: 24px; height: 26px; }
.w403-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 158px), 1fr)); gap: 14px; }
.w403-hcard { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 10px 14px; border-radius: 18px; text-align: center; min-width: 0;
  background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 2px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.w403-hcard::before { content: ''; position: absolute; inset: 0; background: radial-gradient(120px 90px at 50% 18%, rgba(242, 194, 78, .22), transparent 70%); pointer-events: none; }
.w403-badge { width: 86px; height: 95px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .45)); }
.w403-hcard.t6 .w403-badge, .w403-hcard.t5 .w403-badge { animation: w403float 3.4s ease-in-out infinite; }
@keyframes w403float { 50% { transform: translateY(-4px); } }
.w403-htier { font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--gold2); }
:root[data-theme='light'] .w403-htier { color: var(--gold3); }
.w403-hname { font-weight: 900; font-size: 16px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w403-hguild { color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w403-lock { opacity: .62; border-style: dashed; filter: saturate(.3); }
.w403-lock::before { background: none; }
.w403-lockic { display: grid; place-items: center; width: 86px; height: 95px; color: var(--muted); }
.w403-lockic svg { width: 44px; height: 44px; }

/* ------------------------------------------------------------ footer */
.w403-foot { margin-top: 54px; padding: 30px 16px calc(30px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .25)); text-align: center; }
.w403-foot p:first-child { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.w403-foot h2 { font-size: 15px; color: var(--muted); margin: 24px 0 10px; }
.w403-langs { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; max-width: 1000px; }
.w403-langs a { color: var(--muted); text-decoration: none; font-size: 13px; }
.w403-langs a[aria-current] { color: var(--gold2); font-weight: 700; }
.w403-copy { color: var(--muted); font-size: 13px; margin-top: 20px; }
.w403-pol { margin: 14px 0 0; font-size: 14px; } /* trust429: price page + top-up / refund policy links */

/* ------------------------------------------------------------ sizes */
@media (max-width: 900px) { .w403-nav { display: none; } }
@media (max-width: 560px) {
  .w403-brand img { height: 30px; }
  .w403-barplay { padding: 6px 12px; min-height: 38px; font-size: 13px; }
  .w403-lang summary { padding: 7px; }
  .w403-lang summary span { display: none; }
  .w403-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .w403-mbtn { min-height: 80px; flex-direction: row; justify-content: flex-start; gap: 10px; padding: 10px 12px; text-align: start; }
  .w403-mbtn .i { width: 38px; height: 38px; flex: 0 0 auto; }
  .w403-tr { grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: 'r n a' 'r n p'; row-gap: 0; padding: 10px 12px; }
  .w403-tr > :nth-child(1) { grid-area: r; } .w403-tr > :nth-child(2) { grid-area: n; } .w403-tr > :nth-child(3) { grid-area: a; text-align: end; } .w403-tr > :nth-child(4) { grid-area: p; text-align: end; font-size: 11px; }
  .w403-th > :nth-child(4) { display: none; }
  .w403-th { grid-template-areas: 'r n a'; }
  .w403-row { grid-template-columns: 40px minmax(0, 1fr) auto; padding: 9px 10px; }
}
/* phones held sideways: a short screen — the hero does not need the whole height */
@media (max-height: 520px) and (orientation: landscape) {
  .w403-hero { min-height: 0; padding: 18px 16px 34px; }
  .w403-logo img { width: min(260px, 40vw); }
  .w403-hero-in { gap: 12px; }
  .w403-start { min-height: 58px; }
  .w403-menu { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .w403-mbtn { min-height: 64px; flex-direction: row; gap: 8px; padding: 8px; font-size: 14px; }
  .w403-mbtn .i { width: 32px; height: 32px; flex: 0 0 auto; }
  .w403-mbtn .i svg { width: 19px; height: 19px; }
}
/* league441: the ranked league's hall of fame tab — a tier chip in front of the name (both themes) */
.w403-l441t { flex: none; display: inline-grid; place-items: center; min-width: 74px; height: 26px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .02em; color: #1d1405; border: 1.5px solid rgba(255, 255, 255, .55); }
.w403-l441t.t0 { background: linear-gradient(#e9b07c, #a8673a); } .w403-l441t.t1 { background: linear-gradient(#f1f4f8, #a9b4c2); } .w403-l441t.t2 { background: linear-gradient(#ffe48a, #d39a22); }
.w403-l441t.t3 { background: linear-gradient(#bff6ec, #3fb5a2); } .w403-l441t.t4 { background: linear-gradient(#d4ecff, #5b8fe8); } .w403-l441t.t5 { background: linear-gradient(#efd2ff, #9a55d8); color: #fff; }
.w403-l441t.t6 { background: linear-gradient(#ffe9a6, #ff8a3d 55%, #d2335a); color: #fff; }
:root[data-theme='light'] .w403-l441t { border-color: rgba(60, 40, 10, .35); }
