@font-face{font-family:Bungee;src:url('/fonts/bungee-latin-400-normal.woff2') format('woff2');font-display:swap}@font-face{font-family:Nunito;src:url('/fonts/nunito-latin-600-normal.woff2') format('woff2');font-weight:600;font-display:swap}
:root{font-family:Nunito,sans-serif;color:#f9f3d9;background:#153e36;font-synthesis:none;--ink:#153e36;--yellow:#ffcf65}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:20px}body{margin:0;background:radial-gradient(ellipse at 85% 0,#386a53 0,transparent 38%),#153e36}header{max-width:1080px;margin:auto;display:flex;align-items:center;padding:22px 30px;gap:14px;border-bottom:1px solid #ffffff18}.brand{position:relative;font:36px Bungee;text-decoration:none;background:var(--yellow);color:var(--ink);padding:0 11px;border-radius:14px;box-shadow:0 4px 0 #082920}.brand span{position:absolute;font:13px Bungee;right:-5px;top:-4px;color:#ffecb1}.wordmark{font:17px Bungee}.wordmark strong{color:var(--yellow)}.wordmark small{display:block;font:9px Nunito;letter-spacing:3px;margin-top:3px}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:default}.music{margin-left:auto;background:#ffffff0c;color:#fff3d5;border:1px solid #ffffff25;border-radius:25px;padding:10px 15px;min-height:44px;font-size:12px}main{max-width:1000px;padding:40px 30px 20px;margin:auto}.hero{position:relative}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:bold}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#ffcf65;margin-right:6px}h1{font:clamp(30px,5.7vw,58px)/1.17 Bungee;margin:20px 0;letter-spacing:-1px;text-shadow:0 4px #0b2e29}h1 em{font-style:normal;color:var(--yellow)}p{font-size:15px;line-height:1.65;color:#c5d8ca}h2{font:23px/1.3 Bungee;margin:8px 0}h3{font:12px Bungee}.hero-stats{display:flex;gap:28px;padding:5px 0 24px;font-size:9px;letter-spacing:1px}.hero-stats b{font:23px Bungee;display:block;color:#ffdc87}.campus-card{position:relative;background:#b5d6b5;border:4px solid #082c24;border-radius:24px;overflow:hidden;box-shadow:0 8px #0a2c25;margin:4px 0 35px}.map-badge{position:absolute;top:18px;left:18px;z-index:1;background:#fff1ce;padding:10px 13px;border-radius:8px;font:11px Bungee;color:var(--ink);box-shadow:0 3px #133c3222}.map-badge span{display:block;font:8px Nunito;letter-spacing:2px;margin-top:3px}#campus{height:370px}#campus canvas{display:block;width:100%;height:100%}.map-caption{padding:13px 18px;color:#173e31;background:#fff1ce;display:flex;justify-content:space-between;gap:12px;font-size:11px}.entry-panel{background:#fff3d9;color:var(--ink);border-radius:20px;padding:25px;box-shadow:0 5px #092c26;margin:28px 0}.entry-panel p{color:#496556}.primary,.outline{display:block;min-height:49px;width:100%;padding:13px 16px;border-radius:11px;font:13px Bungee;text-align:center;margin-top:13px}.primary{background:var(--yellow);color:var(--ink);border:2px solid #173e32;box-shadow:0 4px #a98034}.primary span{float:right}.primary:active{transform:translateY(3px);box-shadow:0 1px #a98034}.outline{background:transparent;border:1px solid #799582;color:var(--ink)}.link-button{text-decoration:none}.preview-note{font-size:11px!important;text-align:center;margin:18px 0 0;line-height:1.5}.entry-panel label{font:10px Bungee;display:block;margin:18px 0 7px}input{width:100%;padding:14px;border:1px solid #a6b3a0;background:#fffdf4;border-radius:10px;font-size:16px;color:var(--ink)}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #e77946;outline-offset:4px}#qrPanel{text-align:center}#roomQr{display:block;width:256px;max-width:100%;height:auto;margin:15px auto;border-radius:8px}#qrStatus,#inviteLink{font-size:11px;overflow-wrap:anywhere;color:#355343}.room-strip{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #cad1b7;padding-top:18px;margin-top:20px;font-size:10px}.room-strip b{font:23px Bungee;letter-spacing:3px}#players{display:flex;gap:8px;flex-wrap:wrap;padding:0;list-style:none}#players li{padding:6px 10px;border-radius:20px;background:#dbe8c9;font-size:12px}#message{color:#ffc79e}#journey{padding-top:24px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px}.section-heading h2{font-size:25px}.preview-tag{font:9px Bungee;color:#ffda87;border:1px solid #d4bf7a66;border-radius:6px;padding:8px}.journey-intro{font-size:13px;max-width:580px}#filters{display:flex;gap:8px;overflow-x:auto;padding:10px 0 22px}#filters button{white-space:nowrap;border:1px solid #6b8e7955;border-radius:25px;color:#d6e5d0;background:#ffffff05;padding:10px 15px;min-height:44px;font-size:12px}#filters button[aria-pressed=true]{background:#ffcf65;color:#173d32;border-color:#ffcf65}.chapter{margin-bottom:32px}.chapter-heading{display:flex;align-items:center;gap:12px;padding:8px 0 16px}.chapter-heading .number{font:23px Bungee;color:var(--chapter);border:1px solid #ffffff25;border-radius:12px;padding:10px}.chapter-heading h3{font-size:18px;margin:3px 0}.chapter-heading small{font-size:9px;letter-spacing:2px;color:var(--chapter)}.chapter-heading p{font-size:12px;margin:3px 0}.stage-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.stage{position:relative;display:flex;flex-direction:column;text-align:left;min-height:194px;border:1px solid #ffffff20;border-radius:16px;padding:17px;background:#ffffff09;color:#fff3d9;transition:transform .16s,background .16s}.stage:hover{transform:translateY(-3px);background:#ffffff12}.stage-top{display:flex;align-items:center;justify-content:space-between;width:100%;margin-bottom:14px}.stage-icon{width:54px;height:54px;display:grid;place-items:center;background:var(--chapter);color:#173e32;border-radius:15px;box-shadow:0 4px #0002}.stage-icon svg{width:35px;height:35px}.stage-num{font:15px Bungee;color:#9fbdad}.stage strong{font:13px Bungee;margin-bottom:6px}.stage .place{font-size:11px;color:#b7d1bf}.stage-bottom{margin-top:auto;padding-top:16px;width:100%;display:flex;align-items:center;justify-content:space-between;font-size:9px;letter-spacing:1px;color:var(--chapter)}.stage-bottom b{font-size:18px;line-height:1}.finish{display:flex;gap:20px;align-items:center;border:1px dashed #e3c37477;border-radius:20px;padding:24px;margin:40px 0 20px}.finish-star{font-size:44px;color:#ffcf65}.finish p{font-size:12px;margin:5px 0}.finish h2{font-size:20px}footer{padding:25px;text-align:center;font-size:9px;letter-spacing:2px;color:#b5cdba}footer span{display:block;margin-top:10px;font-size:10px;letter-spacing:0}dialog{width:min(440px,calc(100% - 28px));max-height:90dvh;overflow-y:auto;border:3px solid #173e32;border-radius:24px;background:#fff3da;color:var(--ink);padding:26px;box-shadow:0 12px 0 #08292055}dialog::backdrop{background:#082a25cc;backdrop-filter:blur(5px)}dialog h2{font-size:25px}dialog p{color:#4b6555;font-size:14px}.close{position:absolute;right:12px;top:10px;background:transparent;border:0;font-size:30px;color:#173e32;width:44px;height:44px}#detailIcon{width:76px;height:76px;background:#ffcf65;border-radius:20px;padding:12px;margin:0 0 20px}#detailIcon svg{width:100%;height:100%}.detail-stats{display:flex;gap:12px;flex-wrap:wrap;font-size:11px}.detail-stats span{background:#dce7cf;border-radius:7px;padding:8px}.instruction{background:#fffaf0;border:1px solid #d5d9bb;border-radius:12px;padding:14px;margin-top:20px}.instruction h3{margin:0}.instruction p{margin-bottom:0}.coming{font-size:9px;letter-spacing:1px;text-align:center;background:#eadfc8;border-radius:8px;padding:11px;margin:20px 0 6px}#detailSkill{font-size:12px}[hidden]{display:none!important}@media(min-width:760px){.hero{padding:12px 0 18px}.campus-card{margin-top:-240px;margin-left:52%;width:48%}#campus{height:300px}.hero h1{font-size:42px;max-width:52%}.hero p,.hero-stats{max-width:50%}.entry-panel{max-width:560px;margin:35px auto}.hero-stats{gap:18px}.hero-stats b{font-size:20px}}@media(max-width:560px){header{padding:17px 18px;gap:10px}.wordmark{font-size:14px}.wordmark small{font-size:8px;letter-spacing:1.5px}.music{font-size:10px;padding:8px 10px}main{padding:25px 18px}.hero h1{font-size:clamp(27px,7.8vw,40px)}.hero p{font-size:14px}.hero-stats{gap:20px}#campus{height:275px}.map-badge{top:12px;left:12px;font-size:9px}.map-caption{font-size:9px}.entry-panel{padding:20px}.section-heading h2{font-size:20px}.stage-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stage{padding:13px;min-height:183px}.stage strong{font-size:11px}.stage-icon{width:46px;height:46px}.stage-icon svg{width:31px;height:31px}.stage-num{font-size:12px}.chapter-heading h3{font-size:16px}.chapter-heading p{font-size:11px}.finish{padding:17px;gap:14px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.stage{transition:none}}
#playArea{background:#fff1d5;color:#163e32;border:3px solid #092b24;border-radius:20px;padding:18px;max-width:560px;margin:24px auto;box-shadow:0 7px #0a2e27}.play-heading{display:flex;align-items:center;gap:12px;justify-content:space-between}.play-heading h2{font-size:20px}.exit-play{width:auto;min-height:44px;margin:0;font-size:10px;padding:8px}.play-hud{display:flex;justify-content:space-between;gap:12px;border-block:1px solid #b9c8a6;padding:12px 0;margin:12px 0;font-size:12px}.stage-score{color:#215c3b}.game-instruction{font-size:13px;color:#385845;line-height:1.5;min-height:40px}.game-feedback{font-size:13px;color:#254e36;min-height:40px;line-height:1.5}.stage-intro{text-align:center;padding:24px 12px;background:#fffaf0;border-radius:16px}.stage-intro p{color:#3d624c}.stage-intro small{display:block;margin-top:18px;color:#54684c}.game-world{height:300px;position:relative;overflow:hidden;border-radius:14px;border:2px solid #163e32}.world-canvas,.world-overlay{position:absolute;inset:0}.world-canvas canvas{width:100%;height:100%;display:block}.world-overlay{touch-action:none}.aim-target{position:absolute;transform:translate(-50%,-50%);font-size:54px;line-height:1;color:#fff8b0;text-shadow:0 0 5px #123725;background:#3b724c55;border:2px dashed #fff4b5;border-radius:50%;width:66px;height:66px;display:grid;place-items:center;pointer-events:none}.aim-label{position:absolute;bottom:10px;width:100%;text-align:center;font:9px Bungee;color:white;text-shadow:1px 1px #234}.timing-track{position:relative;height:24px;border-radius:20px;background:#e0c593;border:2px solid #174c32;margin:20px 10px 10px;overflow:hidden}.sweet-zone{position:absolute;left:40%;width:20%;height:100%;background:#71bb67}.timing-marker{position:absolute;top:0;bottom:0;width:6px;background:#24486b;transform:translateX(-50%)}.timing-prompt{font:12px Bungee;color:#284c35;text-align:center}.timing-actions{display:flex;gap:8px}.rhythm-button{flex:1;min-height:58px;background:#ffcf65;border:2px solid #173e32;border-radius:12px;font-size:26px}.lane-buttons{display:flex;gap:8px;margin-top:12px}.lane-buttons button{flex:1;min-height:46px;border:1px solid #628065;background:#e0e6cc;border-radius:10px;font-size:12px;color:#163d32}.lane-buttons button[aria-pressed=true]{background:#ffcf65;border:2px solid #173e32}.food-plate{height:140px;width:200px;max-width:100%;border-radius:50%;border:12px solid #fff;box-shadow:0 4px 0 #c9c7af;background:#e8edda;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;margin:20px auto;color:#365a44}.food-plate small{font-size:11px}.food-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.food-grid button{touch-action:none;position:relative;min-height:80px;background:#fffaf0;border:2px solid #c9d3b4;border-radius:12px;font-size:12px;color:#173d32}.food-grid span{display:block;font-size:27px}.order-card,.question-card{padding:20px;background:#e0e9ce;border:1px solid #b7c69d;border-radius:13px}.order-card span,.question-card span{font-size:10px;letter-spacing:1px}.order-card h3,.question-card h3{font:18px Nunito;line-height:1.4;margin:8px 0}.answer-list{display:grid;gap:10px;margin-top:16px}.answer-list button{min-height:54px;text-align:left;padding:14px;border:1px solid #aaba92;background:#fffdf2;border-radius:10px;color:#173d32;font-size:15px}.city-route{text-align:center;background:#b5d8cb;padding:24px 8px;border-radius:14px;margin-bottom:12px;font-size:22px}.stage-result{text-align:center;padding:28px 18px;background:#deebcf;border-radius:16px}.stage-result>div{font-size:50px;color:#c79426}.stage-result h3{font-size:20px}.stage-result b{font:40px Bungee}.stage-result small{font:14px Nunito}.stage-result p{color:#36553e;font-size:13px}.practice-caption{font-size:11px;text-align:center}#liveBoard{max-width:600px;margin:30px auto;border:1px solid #679071;border-radius:18px;padding:20px}#liveBoard p{font-size:12px}#ranking{list-style:none;padding:0}#ranking li{display:flex;gap:12px;align-items:center;border-top:1px solid #ffffff20;padding:13px 0;font-size:13px}#ranking li span{flex:1;overflow-wrap:anywhere}#ranking small{font-size:10px;color:#c9d8c2}#ranking strong{color:#ffcf65;white-space:nowrap}.is-playing .hero,.is-playing .campus-card{display:none}button:disabled{opacity:.55}@media(max-width:400px){#playArea{padding:12px}.game-world{height:260px}.play-heading h2{font-size:17px}.play-hud{font-size:11px}}
.game-world{max-width:390px;margin-inline:auto}.is-playing #entry,.is-playing #lobby{display:none}

/* ============================================================
   CUMORAH ACADEMY PARTY — MVP STYLES (HOUSES, BOARD, GAMES)
   ============================================================ */

/* --- HOUSES SECTION --- */
.houses-section { margin: 35px 0; }
.houses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 15px;
}
.house-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  background: #ffffff10;
  border: 2px solid #ffffff25;
  cursor: pointer;
  transition: all 0.2s ease;
}
.house-card:hover { transform: translateY(-3px); background: #ffffff18; }
.house-card.selected {
  border-color: #ffd166;
  background: #ffffff22;
  box-shadow: 0 0 15px #ffd16644;
}
.house-moroni { border-left: 6px solid #102a43; }
.house-isaiah { border-left: 6px solid #c92a2a; }
.house-esther { border-left: 6px solid #0096c7; }
.house-nephi  { border-left: 6px solid #2b8a3e; }
.house-ruth   { border-left: 6px solid #f59f00; }
.house-crew   { border-left: 6px solid #36bfbe; }
/* Six teams: three per row on narrow phones */
@media (max-width: 600px) { .shell-dialog .houses-grid, .house-dice-row { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
.house-symbol { font-size: 34px; line-height: 1; }
.house-info h3 { margin: 0 0 4px; font-size: 15px; }
.house-info .motto { margin: 0; font-size: 11px; opacity: 0.8; }
.house-score-badge { font-size: 12px; margin-top: 6px; color: #ffd166; }

/* --- CAMPUS BOARD SECTION --- */
.board-section {
  background: #fff8e8;
  color: #1a2639;
  border-radius: 24px;
  padding: 24px;
  margin: 35px 0;
  box-shadow: 0 8px 0 #0c201a;
}
.board-wrapper { display: flex; flex-direction: column; gap: 20px; }
.board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 2px dashed #d5c8ab;
  padding-bottom: 12px;
}
.board-title h2 { margin: 4px 0 0; color: #173e32; font-size: 22px; }
.board-title .badge { font: 9px Bungee; background: #e76f51; color: #fff; padding: 4px 8px; border-radius: 6px; }
.board-turn-indicator { font-size: 14px; font-weight: bold; }

.board-track-container {
  overflow-x: auto;
  padding: 10px 4px 20px;
}
.board-track {
  display: grid;
  grid-template-columns: repeat(16, 120px);
  gap: 10px;
}
.board-tile {
  background: #ffffff;
  border: 3px solid var(--tile-color, #333);
  border-radius: 14px;
  padding: 10px 8px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  cursor: pointer;
  box-shadow: 0 4px #0001;
  transition: transform 0.15s;
}
.board-tile:hover { transform: scale(1.04); }
.tile-number {
  position: absolute;
  top: 5px;
  left: 6px;
  font: 9px Bungee;
  color: #999;
}
.tile-icon { font-size: 28px; margin: 12px 0 6px; }
.tile-name { font: 11px Bungee; line-height: 1.2; color: #173e32; flex-grow: 1; }
.tile-pawns {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  min-height: 24px;
  margin-top: 6px;
}
.pawn {
  font-size: 18px;
  animation: pawnPop 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
@keyframes pawnPop { from { transform: scale(0); } to { transform: scale(1); } }

/* --- DICE & CONTROLS --- */
.board-bottom-controls {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  background: #f1e4cb;
  border-radius: 16px;
  padding: 16px;
}
.dice-station {
  display: flex;
  align-items: center;
  gap: 16px;
}
.dice-box {
  width: 60px;
  height: 60px;
  background: #fff;
  border: 3px solid #173e32;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 34px;
  box-shadow: 0 4px #173e3233;
}
.dice-box.rolling { animation: diceShake 0.1s infinite; }
@keyframes diceShake {
  0% { transform: rotate(-8deg) scale(1.05); }
  50% { transform: rotate(8deg) scale(0.95); }
  100% { transform: rotate(0deg) scale(1); }
}
.btn-roll {
  width: auto;
  min-height: 48px;
  padding: 10px 22px;
  margin: 0;
  font-size: 13px;
}
.tile-info-panel {
  flex: 1;
  min-width: 200px;
}
.tile-info-panel h3 { margin: 0 0 4px; font-size: 15px; color: #173e32; }
.tile-info-panel p { margin: 0; font-size: 13px; color: #496556; }
.launch-game-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 16px;
  min-height: 38px;
  font-size: 11px;
}

.activity-log-card { margin-top: 14px; }
.activity-log-card h3 { font-size: 13px; color: #173e32; margin-bottom: 8px; }
.activity-log {
  max-height: 90px;
  overflow-y: auto;
  font-size: 12px;
  background: #fffdf5;
  border: 1px solid #d9ccb0;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.log-item { color: #355343; }

/* --- ARCADE SHOWCASE CARDS --- */
.arcade-showcase { margin: 40px 0; }
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.game-launch-card {
  background: #ffffff10;
  border: 2px solid #ffffff25;
  border-radius: 20px;
  padding: 22px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
.game-launch-card:hover {
  transform: translateY(-5px);
  background: #ffffff1a;
  border-color: #ffd166;
}
.card-icon { font-size: 40px; margin-bottom: 8px; }
.card-tag { font: 9px Bungee; color: #ffd166; letter-spacing: 1px; }
.game-launch-card h3 { font-size: 20px; margin: 6px 0; color: #fff; }
.game-launch-card p { font-size: 13px; line-height: 1.5; color: #d1dfd5; flex-grow: 1; }
.btn-play { margin-top: 14px; width: 100%; }

/* --- GAME MODAL VIEWPORT --- */
.game-modal {
  width: min(840px, calc(100vw - 20px));
  height: min(650px, calc(95vh - 20px));
  background: #0f172a;
  color: #fff;
  border: 3px solid #ffd166;
  border-radius: 24px;
  padding: 0;
  box-shadow: 0 16px 40px #000a;
  overflow: hidden;
  position: fixed;
  inset: 0;
  margin: auto;
  z-index: 1000;
}
.game-modal::backdrop { background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(6px); }
.game-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: #1e293b;
  border-bottom: 1px solid #334155;
}
.modal-badge { font: 10px Bungee; color: #ffd166; letter-spacing: 1px; }
.game-modal-header .close { position: static; color: #fff; width: 36px; height: 36px; font-size: 24px; }
.game-modal-viewport {
  width: 100%;
  height: calc(100% - 60px);
  position: relative;
}
/* Fast taps on the game buttons must not trigger the phone's double-tap zoom, which pushes the game off screen */
.game-modal, .game-modal * {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* --- GAME HUD OVERLAYS (HOOPS, RUNNER, GOLF) --- */
.hoops-hud, .runner-hud, .golf-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  font-family: Nunito, sans-serif;
}
.hoops-top, .runner-top, .golf-top {
  display: flex;
  gap: 12px;
  justify-content: center;
  pointer-events: auto;
}
.hoops-score-box, .hoops-streak-box, .hoops-timer-box,
.runner-box, .golf-box {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 6px 14px;
  text-align: center;
  backdrop-filter: blur(4px);
}
.hoops-score-box .label, .runner-box .label, .golf-box .label {
  display: block;
  font-size: 9px;
  color: #ffd166;
  letter-spacing: 1px;
}
.hoops-score-box .val, .runner-box .val, .golf-box .val {
  font: 20px Bungee, sans-serif;
  color: #fff;
}
.hoops-aim-hint, .runner-controls-hint, .golf-hint {
  text-align: center;
  font-size: 13px;
  font-weight: bold;
  color: #ffd166;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  margin-bottom: 8px;
}
.runner-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  pointer-events: auto;
  margin-bottom: 6px;
}
.runner-buttons button {
  min-height: 48px;
  padding: 8px 18px;
  background: #ffd166;
  color: #1a2639;
  border: 2px solid #1a2639;
  border-radius: 12px;
  font: 14px Bungee;
  box-shadow: 0 4px #0004;
}
.hoops-popup, .runner-popup, .golf-popup {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  font: 26px Bungee;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.9);
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
}
.animate-pop {
  animation: popFloat 0.9s cubic-bezier(0.18, 0.89, 0.32, 1.28) forwards;
}
@keyframes popFloat {
  0% { transform: translate(-50%, -30%) scale(0.6); opacity: 0; }
  25% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
  80% { transform: translate(-50%, -55%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -70%) scale(0.9); opacity: 0; }
}

/* --- STANDINGS LEADERBOARD --- */
.standings-section { margin: 35px 0; }
.houses-leaderboard {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.house-rank-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff10;
  border: 1px solid #ffffff20;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 16px;
}
.rank-pos { font: 16px Bungee; color: #ffd166; width: 32px; }
.rank-symbol { font-size: 24px; }
.rank-name { font-weight: bold; flex-grow: 1; }
.rank-score { font: 18px Bungee; color: #ffd166; }

/* --- PLAYER NAME & PLAYER RANKING --- */
.player-name-row { max-width: 420px; margin: 14px 0 6px; }
.player-name-row label { display: block; font: 10px Bungee; letter-spacing: 1px; margin-bottom: 7px; }
.player-tag { font-size: 13px; margin: 8px 0 0; }
.player-tag.warn { color: #ffc79e; font-weight: bold; }
.players-heading { font-size: 14px; margin: 28px 0 10px; }
.players-leaderboard { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.player-rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff0a;
  border: 1px solid #ffffff18;
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 14px;
}
.player-rank-item .player-name { font-weight: bold; overflow-wrap: anywhere; }
.player-rank-item .player-house { flex: 1; font-size: 12px; opacity: 0.85; }
.player-rank-item .rank-score { font-size: 15px; }
.players-empty { font-size: 13px; opacity: 0.75; }
.player-rank-item.is-me { border-color: #ffd166; background: #ffd16618; }
.player-rank-item.is-offline { opacity: 0.6; }
.players-gap { text-align: center; opacity: 0.6; font-size: 12px; }

/* --- CLASS ROOM --- */
.room-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 16px;
  background: #ffffff10;
  border: 2px dashed #ffd16677;
  max-width: 560px;
}
.room-panel h3 { font-size: 15px; margin: 0 0 4px; }
.room-help { font-size: 13px; margin: 0 0 12px; }
.room-join { display: flex; gap: 10px; align-items: stretch; }
.room-join input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: 3px; font-weight: bold; }
.room-join .primary { width: auto; margin: 0; white-space: nowrap; }
.room-secondary {
  margin-top: 12px;
  background: transparent;
  color: #f9f3d9;
  border: 1px solid #ffffff40;
  border-radius: 10px;
  padding: 10px 14px;
  min-height: 44px;
  font-size: 13px;
}
.room-link { font-size: 12px; overflow-wrap: anywhere; margin: 6px 0 0; }
.room-message { font-size: 13px; margin: 10px 0 0; color: #ffc79e; }
.room-message:empty { display: none; }
.standings-note { font-size: 13px; margin: 4px 0 0; }
/* --- CLASS ROUND PANEL (inside the light board section) --- */
.round-panel {
  background: #102a43;
  color: #f9f3d9;
  border-radius: 18px;
  padding: 18px 20px;
  margin-bottom: 18px;
  box-shadow: 0 5px 0 #0a1c2e;
}
.round-panel .round-phase { font: 10px Bungee; letter-spacing: 2px; color: #ffd166; margin: 0; }
.round-panel h3 { font-size: 20px; margin: 6px 0 8px; color: #fff; }
.round-panel p { color: #d6e2ee; font-size: 14px; margin: 6px 0; }
.round-panel .primary { margin-top: 12px; }
.round-panel .room-secondary { margin-right: 8px; }
.round-countdown { font: 54px Bungee; color: #ffd166; text-align: center; margin: 6px 0; }
.round-roll { font: 40px Bungee; color: #ffd166; }
.round-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.round-list li { background: #ffffff12; border-radius: 10px; padding: 8px 12px; font-size: 13px; display: flex; gap: 10px; justify-content: space-between; }
.round-list li b { color: #ffd166; white-space: nowrap; }
.round-list li.is-me { outline: 2px solid #ffd166; }
.round-error { color: #ffc79e !important; font-weight: bold; }
#housesList.is-locked .house-card:not(.selected) { opacity: 0.45; cursor: not-allowed; }
#housesList.is-locked .house-card:hover { transform: none; }
#playerName:disabled { opacity: 0.7; }

/* --- PIXEL ART AVATARS & 5 HOUSES STYLES --- */
.house-pixel-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 4px;
  image-rendering: pixelated;
  flex-shrink: 0;
}
.house-pixel-avatar svg { width: 100%; height: 100%; }

.pawn svg {
  width: 24px;
  height: 24px;
  display: block;
  image-rendering: pixelated;
}
.rank-pixel svg {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
