@font-face { font-family: "Big Shoulders Display"; src: url("../fonts/big-shoulders-display.woff2") format("woff2"); font-weight: 700 800; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/ibm-plex-sans.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --night: #130d08;
  --deep: #1d140c;
  --raise: #2a1d12;
  --raise-2: #3b2a19;
  --line: #5a432b;
  --text: #f3eadb;
  --muted: #cbb99b;
  --brass: #d9a441;
  --brass-hi: #f0c874;
  --brass-lo: #8f5f1c;
  --brass-ink: #1c1005;
  --copper: #c8683b;
  --steam: #5fd0bf;
  --ember: #e8553a;
  --ok: #7fe0d0;
  --panel: var(--raise);
  --ink: var(--text);
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow-card: 0 18px 38px -16px rgba(0, 0, 0, .75), 0 3px 8px rgba(0, 0, 0, .35);
  --rivets:
    radial-gradient(circle at 11px 11px, var(--brass-hi) 0 1.6px, #6b4510 2.2px 3px, transparent 3.4px),
    radial-gradient(circle at calc(100% - 11px) 11px, var(--brass-hi) 0 1.6px, #6b4510 2.2px 3px, transparent 3.4px),
    radial-gradient(circle at 11px calc(100% - 11px), var(--brass-hi) 0 1.6px, #6b4510 2.2px 3px, transparent 3.4px),
    radial-gradient(circle at calc(100% - 11px) calc(100% - 11px), var(--brass-hi) 0 1.6px, #6b4510 2.2px 3px, transparent 3.4px);
}
@property --beam { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--raise-2) var(--night); }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 400 1rem/1.6 var(--body);
  background: radial-gradient(1000px 520px at 85% -10%, rgba(200, 104, 59, .26), transparent 70%), radial-gradient(800px 480px at -8% 24%, rgba(95, 208, 191, .09), transparent 70%), radial-gradient(circle, rgba(217, 164, 65, .11) 1px, transparent 1.4px) 0 0 / 28px 28px, var(--night);
  background-attachment: fixed;
  counter-reset: sheet;
}
img { max-width: 100%; height: auto; }
a { color: var(--brass-hi); text-underline-offset: .18em; }
a:hover { color: #ffffff; }
::selection { background: var(--brass); color: var(--brass-ink); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--night); }
::-webkit-scrollbar-thumb { background: var(--raise-2); border-radius: 8px; border: 3px solid var(--night); }
:focus-visible { outline: 3px solid var(--steam); outline-offset: 3px; border-radius: 6px; }
input::placeholder { color: #a8967a; }
input, select { caret-color: var(--brass); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 1; letter-spacing: .02em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin: .3em 0 .3em; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.7rem); margin: 1.5em 0 .5em; }
h3 { font-size: 1.45rem; margin: 0 0 .4em; font-weight: 700; }
p { margin: 0 0 1em; }
.jun-wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.jun-narrow { width: min(560px, 100% - 32px); }
.jun-prose { width: min(780px, 100% - 32px); }
.jun-prose p, .jun-prose li { max-width: 68ch; }
.jun-prose h2 { color: var(--brass-hi); }
.jun-lead { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--muted); max-width: 58ch; }
.jun-muted { color: var(--muted); }
.jun-fine { font-size: .88rem; }
.jun-label { color: var(--muted); font: 500 .76rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.jun-skip { position: absolute; left: -999px; top: 0; background: var(--brass); color: var(--brass-ink); padding: 10px 14px; z-index: 80; }
.jun-skip:focus { left: 8px; top: 8px; }
.jun-ico { display: inline-block; width: 1.25em; height: 1.25em; background: currentColor; -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; flex: none; }
.jun-i-left { --i: url("../img/icons/caret-left.svg"); } .jun-i-right { --i: url("../img/icons/caret-right.svg"); }
.jun-i-search { --i: url("../img/icons/magnifying-glass.svg"); } .jun-i-menu { --i: url("../img/icons/list.svg"); } .jun-i-close { --i: url("../img/icons/x.svg"); }
.jun-i-bell { --i: url("../img/icons/bell.svg"); } .jun-i-seal { --i: url("../img/icons/gear.svg"); } .jun-i-clock { --i: url("../img/icons/clock.svg"); }
.jun-i-shield { --i: url("../img/icons/shield-check.svg"); } .jun-i-coins { --i: url("../img/icons/coins.svg"); } .jun-i-lock { --i: url("../img/icons/lock-key.svg"); }
.jun-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header: a copper pipe runs under the bar */
.jun-site-header { position: sticky; top: 0; z-index: 40; background: rgba(19, 13, 8, .94); backdrop-filter: blur(12px); padding-bottom: 7px; }
.jun-site-header::after { content: ""; position: absolute; inset: auto 0 0 0; height: 7px; background: repeating-linear-gradient(90deg, transparent 0 170px, rgba(0, 0, 0, .5) 170px 173px, rgba(240, 200, 116, .55) 173px 175px, transparent 175px 180px), linear-gradient(180deg, #5a2f16 0%, #c8683b 38%, #f0a06a 50%, #8a4624 70%, #3f2010 100%); }
.jun-bar { display: flex; align-items: center; gap: 12px 20px; min-height: 66px; padding-block: 8px; }
.jun-brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 800 1.7rem/1 var(--display); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.jun-brand img { width: 40px; height: 40px; }
.jun-site-nav { display: flex; gap: 2px; flex: 1; }
.jun-site-nav a { color: var(--muted); text-decoration: none; padding: 9px 14px; border-radius: 6px; font: 700 1.1rem/1 var(--display); text-transform: uppercase; letter-spacing: .07em; }
.jun-site-nav a:hover { color: #ffffff; background: var(--raise); }
.jun-site-nav a[aria-current="page"] { color: var(--brass-ink); background: linear-gradient(180deg, var(--brass-hi), var(--brass)); }
.jun-nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; place-items: center; background: var(--raise); color: var(--text); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 1.3rem; }
.jun-user-area { display: flex; align-items: center; gap: 10px; }
.jun-pill { display: inline-flex; align-items: center; gap: 8px; background: #0e0905; border: 1px solid var(--brass-lo); border-radius: 6px; padding: 6px 14px 6px 10px; font: 500 1rem/1 var(--mono); color: var(--brass-hi); white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(240, 200, 116, .12); font-variant-numeric: tabular-nums; }
.jun-pill .jun-ico { color: var(--brass); }

/* buttons: stamped brass plates */
.jun-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #7a4f14; border-radius: 8px; padding: 12px 26px; font: 800 1.2rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .07em; color: var(--brass-ink); text-decoration: none; cursor: pointer;
  background: linear-gradient(180deg, var(--brass-hi) 0%, var(--brass) 52%, #b8832c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 244, 210, .75), inset 0 -2px 0 rgba(90, 50, 8, .35), 0 10px 20px -10px rgba(217, 164, 65, .6);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), filter .2s; }
.jun-btn:hover { color: var(--brass-ink); transform: translateY(-2px); filter: brightness(1.07); box-shadow: inset 0 1px 0 rgba(255, 244, 210, .75), inset 0 -2px 0 rgba(90, 50, 8, .35), 0 14px 26px -10px rgba(217, 164, 65, .75); }
.jun-btn:active { transform: translateY(1px); }
.jun-btn.jun-small { padding: 8px 16px; font-size: 1.02rem; border-radius: 6px; }
.jun-btn.jun-ghost { background: rgba(240, 200, 116, .05); color: var(--brass-hi); border-color: var(--brass-lo); box-shadow: none; }
.jun-btn.jun-ghost:hover { color: #ffffff; border-color: var(--brass-hi); background: rgba(240, 200, 116, .12); box-shadow: none; }
.jun-btn.jun-danger { background: linear-gradient(180deg, #f27b63, var(--ember) 50%, #b93a24); color: #ffffff; border-color: #7d2314; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.jun-btn.jun-google { background: #ffffff; color: #1f1f1f; border-color: #b9b9b9; box-shadow: none; }
.jun-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; filter: grayscale(.5); }
.jun-btn[aria-pressed="true"], button[aria-pressed="true"] { color: var(--brass-ink); background: linear-gradient(180deg, var(--brass-hi), var(--brass)); box-shadow: inset 0 1px 0 rgba(255, 244, 210, .75); }
.jun-btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* bell, toasts */
.jun-bell-wrap { position: relative; }
.jun-bell { position: relative; background: var(--raise); color: var(--brass-hi); border: 1px solid var(--line); border-radius: 8px; width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer; font-size: 1.3rem; }
.jun-bell:hover { border-color: var(--brass); }
.jun-bell-count { position: absolute; top: -6px; right: -6px; background: var(--ember); color: #ffffff; font: 700 .72rem/1 var(--body); min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; }
.jun-bell-panel { position: absolute; right: 0; top: 52px; width: min(360px, 88vw); background: var(--deep); border: 1px solid var(--brass-lo); border-radius: 10px; padding: 8px; z-index: 50; max-height: 70vh; overflow: auto; box-shadow: var(--shadow-card); }
.jun-bell-panel[hidden] { display: none; }
.jun-bell-panel .jun-note { padding: 10px; border-bottom: 1px solid var(--line); }
.jun-bell-panel .jun-note:last-child { border-bottom: 0; }
.jun-bell-panel .jun-note.jun-unread strong::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--steam); margin-right: 8px; }
.jun-bell-panel small, .jun-bell-empty { color: var(--muted); }
.jun-toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 10px; z-index: 70; width: min(360px, calc(100% - 32px)); }
.jun-toast { background: linear-gradient(160deg, var(--raise-2), var(--deep)); border: 1px solid var(--brass); border-radius: 10px; padding: 14px 16px; box-shadow: var(--shadow-card); animation: toast-in .5s var(--ease); }
.jun-toast strong { font: 700 1.25rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .03em; color: var(--brass-hi); }
.jun-toast p { margin: 4px 0 0; color: var(--muted); font-size: .94rem; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }

main { overflow-x: clip; }

/* the machine: a drawing of the workshop with a pin on every shop */
.jun-machine { padding-top: 26px; }
.jun-machine-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 40px; align-items: end; margin-bottom: 18px; }
.jun-machine-head h1 { margin: 0 0 .25em; font-size: clamp(2.4rem, 5.2vw, 4.2rem); }
.jun-machine-head h1 em { font-style: normal; color: var(--brass); }
.jun-machine-head .jun-lead { margin: 0; }
.jun-machine-actions { display: grid; gap: 10px; justify-items: stretch; }
.jun-blueprint { position: relative; border-radius: 12px; border: 2px solid var(--brass-lo); background: #0e0905; box-shadow: var(--shadow-card), 0 0 0 5px #0e0905, 0 0 0 6px var(--line); overflow: hidden; }
.jun-blueprint > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.jun-spot { position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; color: var(--brass-ink); }
.jun-spot::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3c9, var(--brass-hi) 40%, var(--brass-lo)); border: 2px solid #3b2308; box-shadow: 0 3px 8px rgba(0, 0, 0, .6); }
.jun-spot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; border: 2px solid rgba(255, 243, 201, .8); }
.jun-spot[aria-current="true"]::after { inset: 0; border-color: var(--brass-hi); }
.jun-spot:hover::before, .jun-spot[aria-current="true"]::before { background: radial-gradient(circle at 35% 30%, #e6fff9, var(--steam) 45%, #1d6d61); }
.jun-spot[aria-current="true"]::after { animation: pin-ring 2.2s ease-out infinite; }
.jun-spot .jun-spot-tip { position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); white-space: nowrap; background: #0e0905; color: var(--brass-hi); border: 1px solid var(--brass-lo); border-radius: 4px; padding: 4px 9px; font: 500 .72rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: 0; pointer-events: none; transition: opacity .2s; }
.jun-spot:hover .jun-spot-tip, .jun-spot[aria-current="true"] .jun-spot-tip { opacity: 1; }
@keyframes pin-ring { 0% { opacity: 1; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.7); } }
.jun-pin-clockwork-hall { left: 24%; top: 20%; } .jun-pin-steam-works { left: 26%; top: 70%; } .jun-pin-inventors-loft { left: 46%; top: 70%; } .jun-pin-airship-dock { left: 72%; top: 15%; }
.jun-pin-jewellers-bench { left: 86%; top: 42%; } .jun-pin-beast-workshop { left: 57%; top: 40%; } .jun-pin-foundry-row { left: 88%; top: 80%; } .jun-pin-observatory-dome { left: 39%; top: 40%; }
.jun-pin-airship-dock .jun-spot-tip, .jun-pin-jewellers-bench .jun-spot-tip, .jun-pin-foundry-row .jun-spot-tip { left: auto; right: 0; transform: none; }

.jun-shops-tabs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin: 18px 0 0; }
.jun-shops-tabs a { display: grid; gap: 4px; align-content: start; padding: 10px 10px 12px; border: 1px solid var(--line); box-shadow: inset 0 -3px 0 var(--line); border-radius: 8px 8px 2px 2px; background: var(--deep); color: var(--text); text-decoration: none; font: 700 1.12rem/1.05 var(--display); text-transform: uppercase; letter-spacing: .04em; transition: background .25s, border-color .25s, box-shadow .25s; }
.jun-shops-tabs a small { font: 500 .7rem/1 var(--mono); color: var(--copper); letter-spacing: .14em; }
.jun-shops-tabs a:hover { background: var(--raise); box-shadow: inset 0 -3px 0 var(--brass-lo); }
.jun-shops-tabs a[aria-selected="true"] { background: linear-gradient(180deg, var(--raise-2), var(--raise)); border-color: var(--brass); box-shadow: inset 0 -3px 0 var(--brass-hi); color: var(--brass-hi); }
.jun-shops-tabs a[aria-selected="true"] small { color: var(--steam); }
.jun-shop-panel { position: relative; margin-top: -1px; padding: 26px clamp(18px, 3vw, 34px) 22px; border: 1px solid var(--brass); border-radius: 2px 2px 12px 12px; background: var(--rivets), linear-gradient(180deg, var(--raise), var(--deep)); box-shadow: var(--shadow-card); }
.jun-shop-panel[hidden] { display: none; }
.jun-shop-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 28px; margin-bottom: 16px; padding-inline: 8px; }
.jun-shop-head h2 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: var(--brass-hi); }
.jun-shop-head h2::before { content: none; }
.jun-shop-head p { margin: 4px 0 0; color: var(--muted); max-width: 60ch; }
.jun-shop-games { list-style: none; margin: 0; padding: 0 0 6px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }

/* banner */
.jun-banner { position: relative; border-radius: 12px; overflow: hidden; border: 2px solid var(--brass-lo); background: #0e0905; box-shadow: var(--shadow-card), 0 0 0 5px #0e0905, 0 0 0 6px var(--line); }
.jun-lobby-top { padding-top: 40px; }
.jun-slides { position: relative; aspect-ratio: 8 / 3; min-height: 300px; }
.jun-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility .7s; display: flex; align-items: center; }
.jun-slide.jun-is-on { opacity: 1; visibility: visible; }
.jun-slide > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 40%; z-index: 0; }
.jun-slide::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(19, 13, 8, .9) 0%, rgba(19, 13, 8, .55) 34%, transparent 58%); }
.jun-slide-copy { position: relative; z-index: 2; padding: clamp(22px, 4vw, 48px) clamp(22px, 5vw, 64px) clamp(40px, 5vw, 56px); max-width: 600px; }
.jun-slide-copy h1, .jun-slide-copy h2 { margin: 0 0 .3em; font-size: clamp(2rem, 4.6vw, 3.6rem); text-shadow: 0 3px 18px rgba(19, 13, 8, .9); }
.jun-slide-copy h2 span { color: var(--brass-hi); font-variant-numeric: tabular-nums; }
.jun-slide-copy p { color: #f3eadb; max-width: 46ch; text-shadow: 0 2px 10px rgba(19, 13, 8, .9); }
.jun-slide-mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); z-index: 0; opacity: .85; }
.jun-slide-mosaic > * { width: 100%; height: 100%; object-fit: cover; }
.jun-banner-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 46px; height: 46px; border-radius: 8px; display: grid; place-items: center; background: rgba(19, 13, 8, .7); color: var(--brass-hi); border: 1px solid var(--brass-lo); cursor: pointer; font-size: 1.3rem; }
.jun-banner-btn:hover { background: var(--brass); color: var(--brass-ink); }
.jun-banner-btn.jun-prev { left: 14px; } .jun-banner-btn.jun-next { right: 14px; }
.jun-dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 8px; z-index: 4; }
.jun-dots button { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--brass-hi); padding: 0; cursor: pointer; background: rgba(19, 13, 8, .6); transition: background .3s; }
.jun-dots button[aria-selected="true"] { background: var(--brass-hi); }

/* jackpot: a boiler gauge */
.jun-jackpot-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: center; margin-top: 30px; padding: clamp(24px, 3vw, 36px); border-radius: 12px; border: 1px solid var(--copper); background: var(--rivets), radial-gradient(700px 220px at 15% 0, rgba(200, 104, 59, .28), transparent 70%), linear-gradient(180deg, #3a2314, #1d1209); box-shadow: var(--shadow-card); }
.jun-jackpot-bar h2 { margin: 0 0 .1em; font-size: 1.5rem; color: var(--copper); }
.jun-jackpot-bar h2::before { content: none; }
.jun-jp-pot { margin: 0 0 12px; font: 500 clamp(2.2rem, 6.4vw, 4.4rem)/1 var(--mono); color: var(--brass-hi); text-shadow: 0 0 30px rgba(217, 164, 65, .4); font-variant-numeric: tabular-nums; }
.jun-jp-pot span { display: inline-block; }
.jun-jp-progress { height: 16px; border-radius: 4px; background: #0e0905; border: 1px solid var(--brass-lo); overflow: hidden; background-image: repeating-linear-gradient(90deg, transparent 0 18px, rgba(240, 200, 116, .18) 18px 20px); }
.jun-jp-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--copper), var(--brass-hi)); transition: width 1.2s var(--ease); }
.jun-jp-clock { display: grid; gap: 10px; justify-items: start; }
.jun-jp-time { margin: 0; font: 500 clamp(1.6rem, 3.6vw, 2.4rem)/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--text); }
.jun-jp-time small { font: 500 .8rem var(--mono); color: var(--muted); margin: 0 10px 0 2px; }

.jun-tiles { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 24px 0 26px; padding: 0; }
.jun-tiles a { display: grid; gap: 4px; justify-items: start; padding: 18px 18px 18px 20px; height: 100%; border-radius: 12px; text-decoration: none; color: var(--text); background: linear-gradient(180deg, var(--raise), var(--deep)); border: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--brass-lo); transition: transform .35s var(--ease), border-color .3s, box-shadow .3s; }
.jun-tiles a:hover { transform: translateY(-3px); border-color: var(--brass); box-shadow: inset 0 3px 0 var(--brass-hi); }
.jun-tiles .jun-ico { width: 34px; height: 34px; color: var(--brass); margin-bottom: 4px; }
.jun-tiles strong { font: 800 1.4rem/1.05 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.jun-tiles span:last-child { color: var(--muted); font-size: .92rem; }
.jun-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.jun-chips a { padding: 8px 16px; border-radius: 6px; border: 1px solid var(--line); background: var(--deep); color: var(--text); text-decoration: none; font: 700 1.05rem/1 var(--display); text-transform: uppercase; letter-spacing: .06em; }
.jun-chips a:hover { border-color: var(--brass); background: var(--raise); color: var(--brass-hi); }

/* sheets: every lobby block is numbered like a page of a drawing set */
.jun-rail-block h2::before, .jun-feed-block h2::before, .jun-why h2::before, .jun-what h2::before { counter-increment: sheet; content: "Sheet " counter(sheet, decimal-leading-zero); display: block; margin-bottom: 6px; font: 500 .72rem/1 var(--mono); letter-spacing: .18em; color: var(--copper); }

/* rails */
.jun-rail-block { margin-block: 0 8px; }
.jun-rail-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 38px 0 14px; }
.jun-rail-head h2 { margin: 0; }
.jun-rail-head > div:first-child { min-width: 0; }
.jun-rail-note { margin: 6px 0 0; color: var(--muted); font-size: .94rem; }
.jun-rail-ctl { display: flex; gap: 8px; align-items: center; }
.jun-rail-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; background: var(--raise); color: var(--brass-hi); border: 1px solid var(--line); cursor: pointer; font-size: 1.2rem; }
.jun-rail-btn:hover { background: var(--brass); color: var(--brass-ink); border-color: var(--brass); }
.jun-see-all { margin-right: 8px; font: 700 1.1rem/1 var(--display); text-transform: uppercase; letter-spacing: .06em; color: var(--brass-hi); text-decoration: none; padding: 10px 4px; white-space: nowrap; }
.jun-see-all:hover { text-decoration: underline; }
.jun-rail { list-style: none; margin: 0; padding: 12px 4px 20px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 4px; scrollbar-width: thin; scrollbar-color: var(--raise-2) transparent; }
.jun-rail .jun-game-card { flex: 0 0 calc((100% - 6 * 14px) / 7); scroll-snap-align: start; }

/* game cards: small framed plates */
.jun-game-grid { list-style: none; padding: 0; margin: 0 0 24px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.jun-game-card { position: relative; }
.jun-game-card a { position: relative; display: grid; gap: 2px; padding: 5px 5px 9px; border-radius: 10px; color: var(--text); text-decoration: none; background: linear-gradient(180deg, var(--raise), var(--deep)); border: 1px solid var(--line); box-shadow: var(--shadow-card); transition: transform .4s var(--ease), border-color .3s, box-shadow .4s var(--ease); }
.jun-game-card a::before { content: ""; position: absolute; inset: -2px; border-radius: 12px; padding: 2px; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: conic-gradient(from var(--beam), transparent 0deg, var(--brass-hi) 60deg, transparent 140deg, var(--steam) 250deg, transparent 330deg);
  -webkit-mask: linear-gradient(#000000 0 0) content-box, linear-gradient(#000000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: beam 3.4s linear infinite paused; }
.jun-game-card a:hover, .jun-game-card a:focus-visible { transform: translateY(-5px); border-color: var(--brass); box-shadow: 0 26px 44px -16px rgba(0, 0, 0, .85), 0 0 40px -12px rgba(217, 164, 65, .5); }
.jun-game-card a:hover::before, .jun-game-card a:focus-visible::before { opacity: 1; animation-play-state: running; }
@keyframes beam { to { --beam: 360deg; } }
.jun-cover { display: block; width: 100%; aspect-ratio: 1; border-radius: 6px; object-fit: cover; background: var(--raise-2); }
.jun-cover-ph { display: grid; place-items: center; padding: 14px; background: linear-gradient(150deg, var(--c1, #333333), #120c06 140%); border: 2px solid var(--c2, var(--brass)); text-align: center; }
.jun-cover-ph .jun-cover-name { font: 800 1.3rem/1.05 var(--display); text-transform: uppercase; color: var(--c2, var(--brass)); text-wrap: balance; }
.jun-game-card-name { font: 700 1.08rem/1.05 var(--display); text-transform: uppercase; letter-spacing: .03em; margin-top: 7px; padding-inline: 3px; }
.jun-game-card-meta { color: var(--muted); font: 500 .72rem/1.3 var(--mono); padding-inline: 3px; }
.jun-badge { position: absolute; top: 9px; left: 9px; z-index: 3; background: var(--ember); color: #ffffff; font: 800 .74rem/1 var(--display); padding: 4px 8px; border-radius: 3px; letter-spacing: .1em; text-transform: uppercase; }
.jun-badge-hot { background: var(--copper); } .jun-badge-new { background: #1f8577; } .jun-badge-exclusive { background: #6b4a8c; }
.jun-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; border-radius: 6px; overflow: hidden; aspect-ratio: 1; }
.jun-mosaic > * { width: 100%; height: 100%; object-fit: cover; display: block; }
a.jun-plain { color: inherit; text-decoration: none; }
a.jun-plain:hover { color: var(--brass-hi); }

/* feed */
.jun-feed-block { margin-top: 40px; }
.jun-feed { list-style: none; margin: 14px 0 0; padding: 4px 2px 16px; display: flex; gap: 10px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--raise-2) transparent; }
.jun-feed li { flex: 0 0 auto; padding: 11px 16px; border-radius: 6px; background: var(--deep); border: 1px solid var(--line); white-space: nowrap; }
.jun-feed li::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--copper); vertical-align: middle; }
.jun-feed b { color: var(--brass-hi); }
.jun-mult { font: 500 1rem/1 var(--mono); color: var(--steam); margin-left: 4px; }

/* why and what */
.jun-why { margin-top: 48px; }
.jun-why-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0; margin: 18px 0 0; }
.jun-why-grid li { padding: 28px 24px 24px; border-radius: 12px; background: var(--rivets), linear-gradient(180deg, var(--raise), var(--deep)); border: 1px solid var(--line); }
.jun-why-grid .jun-ico { width: 36px; height: 36px; color: var(--brass); margin-bottom: 10px; }
.jun-why-grid p { margin: 0; color: var(--muted); }
.jun-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: clamp(28px, 6vw, 88px); align-items: center; margin-block: clamp(48px, 8vw, 96px); }
.jun-split h2 { margin-top: 0; }
.jun-what { align-items: start; }
.jun-facts-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.jun-facts-list li { display: grid; grid-template-columns: 32px 1fr; gap: 6px 14px; align-items: start; }
.jun-facts-list .jun-ico { width: 30px; height: 30px; color: var(--brass); margin-top: 2px; }
.jun-facts-list strong { font: 700 1.3rem/1.1 var(--display); text-transform: uppercase; display: block; color: var(--text); }
.jun-facts-list span { color: var(--muted); }
.jun-ledger { position: relative; background: var(--rivets), linear-gradient(180deg, #e9c26b, #c99637 60%, #a97a28); color: #24160a; border-radius: 12px; padding: 34px 28px 28px; border: 1px solid #5a3a0e; box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 244, 210, .7); font-variant-numeric: tabular-nums; overflow: hidden; }
.jun-ledger h3 { font-size: 1.9rem; margin-bottom: 2px; color: #24160a; }
.jun-ledger .jun-sub { font: 500 .78rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #4a2e08; margin-bottom: 14px; }
.jun-ledger ul { list-style: none; margin: 0; padding: 0; }
.jun-ledger li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(36, 22, 10, .5); font-weight: 600; }
.jun-ledger li b { font: 500 1.15rem/1.2 var(--mono); }
.jun-ledger .jun-stamp-mark { position: absolute; right: -40px; bottom: -48px; width: 130px; height: 130px; background: url("../img/win-badge.svg") center / contain no-repeat; opacity: .22; display: block; font-size: 0; }
.jun-cta-band { position: relative; overflow: hidden; text-align: center; padding: clamp(36px, 6vw, 64px) 24px; margin-block: 56px 0; border-radius: 12px; border: 1px solid var(--brass); background: var(--rivets), radial-gradient(600px 240px at 50% 0, rgba(217, 164, 65, .22), transparent 70%), linear-gradient(180deg, var(--raise), var(--deep)); }
.jun-cta-band h2 { margin-top: 0; }
.jun-cta-band p { margin-inline: auto; }
.jun-cta-band .jun-btn-row { justify-content: center; }

/* panels and forms */
.jun-page-head { padding-top: 28px; }
.jun-panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 20px; align-items: start; }
.jun-panel { background: var(--rivets), linear-gradient(180deg, var(--raise), var(--deep)); border: 1px solid var(--line); border-radius: 12px; padding: 26px 22px 22px; margin: 0; box-shadow: var(--shadow-card); }
.jun-panel h2 { margin-top: 0; font-size: 1.8rem; }
.jun-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.jun-stat { background: linear-gradient(180deg, var(--raise), var(--deep)); border: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--brass-lo); border-radius: 12px; padding: 20px; display: grid; gap: 8px; align-content: start; }
.jun-stat strong { font: 500 1.6rem/1.1 var(--mono); color: var(--brass-hi); }
progress { width: 100%; height: 14px; border-radius: 4px; border: 0; overflow: hidden; background: #0e0905; accent-color: var(--brass); }
progress::-webkit-progress-bar { background: #0e0905; }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--copper), var(--brass-hi)); }
progress::-moz-progress-bar { background: linear-gradient(90deg, var(--copper), var(--brass-hi)); }
.jun-form { display: grid; gap: 16px; margin-block: 20px; }
.jun-form label, .jun-panel label { display: grid; gap: 6px; font-weight: 700; }
.jun-form small { font-weight: 400; color: var(--muted); }
input, select { background: #0e0905; color: var(--text); border: 1.5px solid var(--line); border-radius: 8px; padding: 12px 14px; font: inherit; width: 100%; min-height: 46px; }
input:hover, select:hover { border-color: #7d6040; }
input:focus, select:focus { border-color: var(--steam); outline: none; box-shadow: 0 0 0 3px rgba(95, 208, 191, .25); }
input[type="checkbox"] { accent-color: var(--brass); width: 20px; min-height: 0; height: 20px; }
.jun-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label.jun-check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
label.jun-check input { margin-top: 3px; flex: none; }
.jun-field-error, .jun-notice.jun-error { color: #ffa08e; margin: 0; }
.jun-notice { background: var(--raise); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; }
.jun-notice.jun-error { border-color: var(--ember); }
.jun-form-msg { min-height: 1.4em; color: var(--muted); margin: 10px 0 0; }
.jun-logout { margin-block: 36px; }
.jun-pager { display: flex; gap: 20px; }
.jun-table-wrap { overflow-x: auto; border-radius: 8px; border: 1px solid var(--line); background: var(--deep); }
.jun-table { width: 100%; border-collapse: collapse; }
.jun-table th, .jun-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.jun-table th { color: var(--brass-hi); font: 700 1.05rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .06em; background: var(--raise); }
.jun-table tr:last-child td { border-bottom: 0; }
.jun-table .jun-num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); }
code { background: var(--raise); padding: 2px 7px; border-radius: 4px; font-family: var(--mono); font-size: .92em; }

/* rewards */
.jun-tasks { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.jun-tasks li { display: grid; gap: 8px; }
.jun-tasks .jun-btn { justify-self: start; }
.jun-wheel-stage { position: relative; width: min(320px, 100%); margin: 10px auto 22px; aspect-ratio: 1; }
.jun-wheel { position: absolute; inset: 10px; border-radius: 50%; border: 6px solid var(--brass); box-shadow: 0 0 0 3px var(--brass-lo), 0 0 40px rgba(217, 164, 65, .3), inset 0 0 30px rgba(0, 0, 0, .5); }
.jun-wheel span { position: absolute; left: 50%; top: 50%; width: 50%; transform-origin: 0 50%; text-align: right; padding-right: 14px; font: 700 1.05rem/1 var(--display); color: #ffffff; text-shadow: 0 2px 3px rgba(0, 0, 0, .7); }
.jun-wheel-pointer { position: absolute; left: 50%; top: -4px; width: 0; height: 0; border: 12px solid transparent; border-top: 26px solid var(--ember); transform: translateX(-50%); z-index: 2; filter: drop-shadow(0 3px 2px rgba(0, 0, 0, .5)); }

/* footer: the foot of the drawing sheet */
.jun-notice-bar { background: #1a1109; border-bottom: 1px solid var(--line); font-size: .86rem; line-height: 1.45; color: #eadfca; }
.jun-notice-bar p { margin: 0; padding: 9px 0; }
.jun-notice-bar strong { color: var(--brass-hi); }
.jun-notice-bar a { color: var(--brass-hi); font-weight: 700; white-space: nowrap; }
.jun-site-footer { margin-top: clamp(56px, 9vw, 110px); padding-block: 44px 48px; color: var(--muted); font-size: .94rem; background: linear-gradient(180deg, transparent, #0c0805 40%); border-top: 3px double var(--brass-lo); }
.jun-legal { max-width: 82ch; color: #e6dbc6; }
.jun-legal strong { color: var(--brass-hi); }
.jun-help-grid { list-style: none; margin: 22px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 10px; }
.jun-help-grid li { background: var(--deep); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; display: grid; gap: 2px; }
.jun-help-grid b { color: var(--brass-hi); font: 700 1.1rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .04em; }
.jun-help-grid span { font-size: .86rem; }
.jun-foot-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 14px; }
.jun-foot-links a { color: var(--text); font-weight: 700; }
.jun-toasts { top: 84px; bottom: auto; max-height: 33vh; overflow: hidden; }
.jun-toast { padding: 10px 14px; }

/* icons for the lobby tiles and why cards */
.jun-i-wheel { --i: url("../img/icons/aperture.svg"); } .jun-i-quests { --i: url("../img/icons/list-checks.svg"); } .jun-i-trophy { --i: url("../img/icons/trophy.svg"); }
.jun-i-invite { --i: url("../img/icons/user-plus.svg"); } .jun-i-nobuy { --i: url("../img/icons/prohibit.svg"); } .jun-i-browser { --i: url("../img/icons/browser.svg"); }
.jun-i-daily { --i: url("../img/icons/calendar-check.svg"); } .jun-i-levels { --i: url("../img/icons/chart-line-up.svg"); } .jun-i-gear { --i: url("../img/icons/gear.svg"); }
.jun-invite .jun-btn-row { margin: 0; }

@media (max-width: 1279px) {
  .jun-rail .jun-game-card { flex-basis: calc((100% - 4 * 14px) / 5); }
  .jun-game-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .jun-shops-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .jun-shops-tabs a { border-radius: 8px; }
  .jun-shop-panel { margin-top: 10px; border-radius: 12px; }
  .jun-shop-games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .jun-split { grid-template-columns: 1fr; }
  .jun-ledger { max-width: 460px; }
  .jun-tiles, .jun-why-grid { grid-template-columns: 1fr 1fr; }
  .jun-jackpot-bar { grid-template-columns: 1fr; }
  .jun-rail .jun-game-card { flex-basis: calc((100% - 3 * 14px) / 4); }
  .jun-game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .jun-machine-head { grid-template-columns: 1fr; }
  .jun-machine-actions { grid-auto-flow: column; justify-content: start; }
}
@media (max-width: 760px) {
  .jun-bar { gap: 10px; }
  .jun-brand { font-size: 1.4rem; margin-right: auto; }
  .jun-brand img { width: 34px; height: 34px; }
  .jun-nav-toggle { display: grid; margin-left: 0; }
  .jun-site-nav { display: none; flex-direction: column; flex-basis: 100%; order: 5; padding-bottom: 8px; }
  .jun-site-nav.jun-open { display: flex; }
  .jun-row2 { grid-template-columns: 1fr; }
  .jun-user-area .jun-btn.jun-ghost { display: none; }
  .jun-slides { aspect-ratio: auto; min-height: 440px; }
  .jun-slide::before { background: linear-gradient(0deg, rgba(19, 13, 8, .96) 0%, rgba(19, 13, 8, .82) 52%, rgba(19, 13, 8, .1) 100%); }
  .jun-slide { align-items: flex-end; }
  .jun-slide-copy { padding: 22px 22px 52px; }
  .jun-slide > img:first-child { object-position: 74% 40%; }
  .jun-banner-btn { display: none; }
  .jun-see-all { margin-right: 0; }
  .jun-rail-ctl .jun-rail-btn { display: none; }
  .jun-rail-head { align-items: flex-end; }
  .jun-rail { gap: 10px; }
  .jun-rail .jun-game-card, .jun-rail .jun-coll-card { flex-basis: calc((100% - 2 * 10px) / 2.5); }
  .jun-game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .jun-shops-tabs { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .jun-shops-tabs a { flex: 0 0 136px; scroll-snap-align: start; }
  .jun-spot { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
  .jun-spot::before { inset: 8px; }
  .jun-spot .jun-spot-tip { display: none; }
  .jun-shop-games { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .jun-shop-panel { padding: 22px 12px 14px; }
  .jun-shop-head { padding-inline: 4px; }
  .jun-machine-actions { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .jun-bar { gap: 8px; }
  .jun-brand { font-size: 1.2rem; gap: 7px; }
  .jun-brand img { width: 30px; height: 30px; }
  .jun-pill { padding: 5px 10px 5px 8px; font-size: .9rem; gap: 5px; }
  .jun-pill .jun-coin-word { display: none; }
  .jun-bell, .jun-nav-toggle { width: 38px; height: 38px; }
  .jun-user-area { gap: 8px; }
  .jun-toasts { top: 76px; right: 16px; } .jun-toast p { font-size: .88rem; }
  .jun-tiles, .jun-why-grid { grid-template-columns: 1fr; }
  .jun-game-card-name { font-size: .94rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
