/* Lobby: gentle motion only. Entrance animations run once per visit (the .intro class); ambient loops are slow and small. */
.hero{isolation:isolate}
.lobby-float{position:absolute;inset:-20px 0 0;overflow:hidden;pointer-events:none;z-index:-1}
.lobby-float i{position:absolute;font-style:normal;font-size:var(--s,34px);color:#594bed;opacity:.07;animation:lobby-drift var(--t,22s) ease-in-out infinite alternate;animation-delay:var(--d,0s)}
.lobby-float i:nth-child(1){left:6%;top:12%;--s:46px;--t:24s}
.lobby-float i:nth-child(2){left:18%;top:62%;--s:30px;--t:19s;--d:-6s;color:#e8435f}
.lobby-float i:nth-child(3){left:84%;top:18%;--s:38px;--t:21s;--d:-3s;color:#e8435f}
.lobby-float i:nth-child(4){left:92%;top:58%;--s:28px;--t:26s;--d:-9s}
.lobby-float i:nth-child(5){left:30%;top:4%;--s:22px;--t:18s;--d:-12s}
.lobby-float i:nth-child(6){left:70%;top:72%;--s:26px;--t:23s;--d:-4s;color:#e8435f}
.lobby-float i:nth-child(7){left:58%;top:8%;--s:20px;--t:20s;--d:-8s;color:#e8b82d;opacity:.12}
.lobby-float i:nth-child(8){left:4%;top:80%;--s:24px;--t:25s;--d:-15s;color:#178452}
.hero h1 .shine{background:linear-gradient(100deg,#594bed 20%,#b06cff 40%,#ff6b8b 50%,#594bed 70%);background-size:250% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:lobby-shine 6s ease-in-out infinite;text-shadow:none;padding:0 .04em}
.lobby-stats{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:14px}
.lobby-stats span{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:#5f5377;background:#ffffffcc;border:1px solid var(--line);border-radius:20px;padding:6px 14px}
.lobby-stats .dot,.room-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#19b26b;box-shadow:0 0 0 0 #19b26b88;animation:lobby-ping 2s ease-out infinite}
/* Hero cards float on their own rhythm and fan out on hover. */
.hero .hero-art .playing-card{animation:lobby-bob 4.2s ease-in-out infinite;transition:rotate .45s cubic-bezier(.3,1.4,.5,1),translate .45s cubic-bezier(.3,1.4,.5,1)}
.hero .hero-art .playing-card:nth-child(2){animation-delay:-1.4s;animation-duration:4.8s}
.hero .hero-art .playing-card:nth-child(3){animation-delay:-2.6s;animation-duration:4.4s}
.hero .hero-art:hover .playing-card:nth-child(1){rotate:-8deg}.hero .hero-art:hover .playing-card:nth-child(3){rotate:8deg}.hero .hero-art:hover .playing-card:nth-child(2){scale:1.05}
.hero .hero-art:after{animation:lobby-twinkle 3.2s ease-in-out infinite}
.hero .pixel-token{animation:lobby-bob 5s ease-in-out -2s infinite}
.hero .pixel-heart{animation:lobby-beat 2.4s ease-in-out infinite}
.hero.intro>div:not(.lobby-float){animation:lobby-up .7s cubic-bezier(.2,1,.3,1) both}
.hero.intro .hero-art{animation-delay:.15s}
.hero.intro .hero-art .playing-card{animation:lobby-deal .8s cubic-bezier(.2,1.3,.4,1) backwards,lobby-bob 4.2s ease-in-out .8s infinite}
.hero.intro .hero-art .playing-card:nth-child(2){animation-delay:.12s,.92s}.hero.intro .hero-art .playing-card:nth-child(3){animation-delay:.24s,1.04s}
/* Brand: vector mark beside the wordmark, no spaced-out English subtitle. */
.brand{display:inline-flex;align-items:center;gap:10px;font-size:26px}
.brand .brand-mark{width:40px;height:40px;flex:none;filter:drop-shadow(0 3px 0 #d9d1e9)}
.brand .brand-name{display:inline;margin:0;font-size:inherit;letter-spacing:-1px;color:#242431}
/* Hero: text on the left, the table on the right. Plain type, no gradient shine. */
.hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);align-items:center;gap:20px 32px;text-align:left;margin:18px 0 36px}
.hero-copy{z-index:1}
.hero-hi{margin:0;font-weight:700;color:#776f8b}
.hero h1{margin:8px 0 14px;font-size:clamp(38px,5.2vw,64px);letter-spacing:-1.5px;line-height:1.18;text-shadow:none}
.hero-copy>p{margin:0 0 10px;font-size:17px}
.hero-meta{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:18px!important;font-size:14px;color:#776f8b}
.hero-meta span{display:inline-flex;align-items:center;gap:8px}
.hero-art{margin:0 0 0 auto;width:min(480px,100%);height:300px}
.hero-art:after{content:none}
/* Board-game props beside the hero cards: dice, a title deed and a poker chip. */
.hero-dice{position:absolute;left:3%;bottom:44px;display:flex;gap:8px;z-index:4;transform:rotate(-10deg)}
.hero-dice .mn-die{width:46px;height:46px;box-shadow:0 6px 0 #cfc8e3,0 12px 18px #28214c22;animation:lobby-bob 5.2s ease-in-out -1s infinite}
.hero-dice .mn-die:nth-child(2){transform:rotate(24deg) translateY(-8px);animation-delay:-3s}
.hero-deed{position:absolute;right:3%;bottom:40px;width:92px;height:120px;display:flex;flex-direction:column;align-items:center;gap:4px;padding:6px;background:#fffbe9;border:4px solid #fff;border-radius:10px;box-shadow:0 8px 0 #d9d1b8,0 16px 20px #28214c20;transform:rotate(12deg);z-index:4;color:#2d2a3e;animation:lobby-bob 4.6s ease-in-out -2.2s infinite}
.hero-deed b{display:block;width:100%;height:26px;border-radius:5px;background:var(--g);color:#fff;font-size:11px;line-height:26px;text-align:center;letter-spacing:1px}
.hero-deed strong{font-size:17px;margin-top:6px}.hero-deed small{font-size:12px;color:#776f8b;font-weight:700}
.hero-chip{position:absolute;right:7%;top:3%;width:46px;height:46px;border-radius:50%;background:radial-gradient(circle,#fff 0 24%,transparent 26%),repeating-conic-gradient(#d52b49 0 30deg,#fff 30deg 45deg);box-shadow:0 5px 0 #a81d37,0 10px 14px #28214c22;transform:rotate(10deg);animation:lobby-spin 14s linear infinite}
.hero.intro .hero-dice,.hero.intro .hero-deed,.hero.intro .hero-chip{animation:lobby-deal .8s cubic-bezier(.2,1.3,.4,1) .35s backwards}
.games-head{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin:34px 0 0}
.games-head h2{margin:0;font-size:22px;letter-spacing:-.3px}
.games-head span{font-size:13px;color:#776f8b;font-weight:600}
.games-head+.games{margin-top:14px}
@keyframes lobby-spin{to{transform:rotate(370deg)}}
@media(max-width:700px){.hero{grid-template-columns:1fr;text-align:center;gap:8px}.hero-copy{order:0}.hero-art{order:1;margin:10px auto 0;height:240px}.hero-meta{justify-content:center}.hero h1{font-size:34px}.brand{font-size:22px}.brand .brand-mark{width:32px;height:32px}.hero-dice{left:2%;bottom:34px}.hero-dice .mn-die{width:32px;height:32px}.hero-deed{right:2%;bottom:30px;width:66px;height:88px;padding:4px;border-width:3px}.hero-deed b{height:18px;line-height:18px;font-size:9px}.hero-deed strong{font-size:13px;margin-top:2px}.hero-deed small{font-size:10px}.hero-house{font-size:28px;left:18%;top:6%}.hero-chip{width:32px;height:32px;right:24%;top:4%}.games-head h2{font-size:20px}}
/* Game tiles */
.game-tile{position:relative;transition:transform .35s cubic-bezier(.3,1.4,.5,1),box-shadow .35s}
.game-tile:hover{transform:translateY(-6px)}
.game-tile:hover .symbol{animation:lobby-wiggle .7s ease}
.game-tile:nth-child(1):hover{box-shadow:0 12px 0 #e9e4f4,0 22px 40px #594bed22}
.game-tile:nth-child(2):hover{box-shadow:0 12px 0 #f3e2e7,0 22px 40px #cb406922}
.game-tile:nth-child(3):hover{box-shadow:0 12px 0 #f0ebda,0 22px 40px #97700922}
.game-tile:nth-child(4):hover{box-shadow:0 12px 0 #3b2618,0 26px 50px #06301f55}
.games.intro .game-tile{animation:lobby-up .6s cubic-bezier(.2,1,.3,1) backwards}
.games.intro .game-tile:nth-child(2){animation-delay:.08s}.games.intro .game-tile:nth-child(3){animation-delay:.16s}.games.intro .game-tile:nth-child(4){animation-delay:.24s}
.tile-tags{display:flex;gap:6px;flex-wrap:wrap;margin:-4px 0 6px}
.tile-tags span{font-size:12px;font-weight:600;color:#6b6380;background:#f4f2fa;border-radius:10px;padding:3px 10px}
.game-tile:nth-child(4) .tile-tags span{background:#ffffff1a;color:#e7c46a}
.game-tile>button{position:relative;overflow:hidden}
.game-tile>button:after{content:'';position:absolute;top:0;bottom:0;left:-60%;width:40%;background:linear-gradient(100deg,transparent,#ffffff55,transparent);transform:skewX(-20deg);transition:left .6s}
.game-tile>button:hover:after{left:120%}
/* Room list */
.room-dot{margin-right:8px;vertical-align:middle}
.room-dot.playing{background:#e8b82d;box-shadow:none;animation:lobby-blink 1.6s ease-in-out infinite}
.room-dot.finished{background:#b8b2c8;animation:none;box-shadow:none}
.room{transition:background .2s;border-radius:12px;padding-left:8px;padding-right:8px}
.room:hover{background:#f6f4ff}
.room.intro{animation:lobby-up .5s cubic-bezier(.2,1,.3,1) .3s backwards}
@keyframes lobby-drift{from{translate:0 0;rotate:-10deg}to{translate:30px -40px;rotate:12deg}}
@keyframes lobby-shine{0%,100%{background-position:100% 0}50%{background-position:0 0}}
@keyframes lobby-ping{0%{box-shadow:0 0 0 0 #19b26b88}80%,100%{box-shadow:0 0 0 8px #19b26b00}}
@keyframes lobby-blink{50%{opacity:.4}}
@keyframes lobby-bob{0%,100%{translate:0 0}50%{translate:0 -10px}}
@keyframes lobby-beat{0%,100%{scale:1}15%{scale:1.15}30%{scale:1}45%{scale:1.1}}
@keyframes lobby-twinkle{0%,100%{opacity:1;scale:1}50%{opacity:.7;scale:.85}}
@keyframes lobby-up{from{opacity:0;translate:0 24px}}
@keyframes lobby-deal{from{opacity:0;translate:0 -120px;scale:.6}}
@keyframes lobby-wiggle{0%,100%{rotate:0deg}25%{rotate:-10deg;scale:1.08}50%{rotate:8deg}75%{rotate:-4deg}}
@media(prefers-reduced-motion:reduce){.lobby-float,.hero *,.games *,.room,.room *,.games .game-tile{animation:none!important;transition:none!important}}

.symbol.symbol-die{background:#fff5c8;box-shadow:inset 0 -5px 0 #f0e3a6}
.symbol.symbol-die .mn-die{width:40px;height:40px;box-shadow:0 3px 0 #cfc8e3}
