body,
html {
  padding: 0;
  margin: 0;
  height: 100%;
  width: 100%;
  background-color: #07182b;
  font-family: Georgia, "Times New Roman", serif;
  overflow: hidden;
}
body{
  height: 100dvh;
}
* {
  -webkit-tap-highlight-color: transparent;
}


canvas {
  pointer-events: auto;
  display: block;
  width: 100%;
  height: 100%;
}
.Reset,.ViewPoint {
  display: grid;
  place-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0;
  position: absolute;
  bottom: 1.15rem;
  top: auto;
  right: 1.15rem;
  font-size: 1.4rem;
  border: 1px solid #c9a961;
  color: #f8efd9;
  cursor: pointer;
  background-color: #07182b;
  transition: all 0.3s ease-in-out;
}
.Reset{
  right: 5.25rem;
}
.Reset:hover,.ViewPoint:hover { background: #a83c35; border-color: #f8efd9; }

.Unmute:active,.Profile:active {
  transform: scale(0.3);
}
#LoadingBox {
  user-select: none;      
  -webkit-user-drag: none;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 10;
  background-color: #07182b;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  box-sizing: border-box;
  gap: 20px;
  flex-direction: column;
  background-image: url("../../01_Photos/ShareImages/Cheesborough%20Carceral%20Chess.png?v=20260831-refresh");
  background-position: center;
  background-size: cover;
}
#LoadingBox > .facts,
#LoadingBox > #fingers {
  display: none;
}
#LoadInnerText {
  align-self: center;
  margin-top: auto;
  padding-bottom: clamp(1.25rem, 4vh, 2.75rem);
}
#LoadInnerText .load-status {
  color: transparent;
  font-size: 0;
  margin: 0;
  padding: 0;
}

.user-main {
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  height: 100%;
  position: absolute;
  display: flex;
  place-content: center;
  transform: scale(0);
  transition: transform .4s ease-in-out;
}
.user-main.open{
  transform: scale(1);
}
.user-details {
  
  max-width: 450px;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(to bottom, #006abc, #00357a); */
  /* overflow: hidden; */
  box-sizing: border-box;
  position: relative;
}
.user-details> button{
  border: none;
  position: absolute;
  top: -10px;
  right: -10px;
  border-radius: 5px;
  background-color: #000000;
  color: white;
  transform: rotate(45deg);
  font-size: 25px;
  width: 40px;
  height: 40px;
  display: grid;
  place-content: center;
  cursor: pointer;
  transition:  transform .3s ease-in-out;
}
.user-details> button:hover{
  transform: scale(1.3);
}
.user-details ion-icon{
  transition:  transform .3s ease-in-out;
  transform: rotate(-45deg);
}
.user-details> button:hover ion-icon{
  transform: rotate(0deg);
}
.user-details> iframe{
  border-radius: 10px;
  border: 3px solid white;
  border-radius: 20px;
  background-color: #c2cede;
}

p {
  font-family: Georgia, "Times New Roman", serif;
  color: #f8efd9;
  font-size: 1.1rem;
  text-shadow: 1px 1px 2px #000000;
  padding: 15px;
  text-align: center;
}
.facts{
  margin: 0;
  text-shadow:1px 1px 2px black !important;
  font-size: 16px;
  max-width: 500px;
  animation: opaoff .3s ease-in-out forwards;
  background-color: rgba(7, 24, 43, 0.82);
    border-radius: 0;
    border: 1px solid rgba(201, 169, 97, 0.55);
    margin: 10px;
}
@keyframes opaoff {
  100%{
    transform: translateY(20px);
    opacity: 0;
  }
}
.facts.active{
  animation: opaOn .3s ease-in-out forwards;
}
.facts.active.none{
  opacity: 0 !important;
}
@keyframes opaOn {
  0%{
    transform: translateY(20px);
    opacity: 0;
  }
  100%{
    transform: translateY(0px);
    opacity: 1;
  }
}
#LoadingBox > div {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}
.loadButton {
  padding: 12px 40px;
  border: 1px solid #c9a961;
  font-family: Georgia, "Times New Roman", serif;
  border-radius: 0;
  background: rgba(7, 24, 43, 0.9);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.45);
  font-size: 1.5rem;
  color: #f8efd9;
}

.Open {
  animation: openit 2s linear forwards;
  border-radius: 30px;
}
@keyframes openit {
  0% {
    transform: scale(1) translateY(0px);
  }
  25% {
    transform: scale(0.5);
  }
  30% {
    transform: scale(0.5) translateY(-400px) rotate(5deg);
  }
  50% {
    transform: scale(0.5) translateY(2000px);
  }
  100% {
    transform: scale(0.5) translateY(2000px);
    display: none;
  }
}


#celebrate{
  position: absolute;
  width: 100%;
  bottom: 0;
  left: 0;
  padding: 20px 10px;
  justify-content: center;
  box-sizing: border-box;
  transform: translateY(500px);
  /* display: none; */
}
#celebrate.active{
  transition: all .5s ease-in-out;
  transform: translateY(0px);
  display: flex;
}
#celebrate button{
  font-family: Georgia, "Times New Roman", serif;
  outline: 0;
  border: none;
  background-color: #683104b3;
  border: 2px solid white;
  border-radius: 0;
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.578);
  box-sizing: border-box;
  padding: 12px 40px;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 1.2px;
  cursor: pointer;
}
#promosion{
  display: none;
}
.promot{
  user-select: none;      
  -webkit-user-drag: none;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.079);
  backdrop-filter: blur(5px);
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}
.promot button{
  font-family: Georgia, "Times New Roman", serif;
  outline: 0;
  border: none;
  background-color: #1a100194;
  border: 2px solid white;
  border-radius: 0;
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.578);
  box-sizing: border-box;
  padding: 12px 20px;
  color: #fff;
  font-size: 17px;
  font-weight: 100;
  letter-spacing: 1.2px;
  cursor: pointer;
  min-width: 140px;
}
.btn {
  pointer-events: all !important;
  font-family: Georgia, "Times New Roman", serif;
  outline: 0;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border: none;
  background-color: #07182b;
  min-width: 200px;
  border: 1px solid #c9a961;
  border-radius: 0;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  padding: 12px 30px;
  color: #f8efd9;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  overflow: hidden;
  cursor: pointer;
}
.btn.options{
  font-size: 0.95rem;
}

.btn:hover {
  background: #a83c35;
  border-color: #f8efd9;
}

.btn .animation {
  border-radius: 100%;
  animation: ripple 0.6s linear infinite;
}

@keyframes ripple {
  0% {
    box-shadow: 0 0 0 0 rgba(139, 6, 6, 0.1),
      0 0 0 20px rgba(255, 255, 255, 0.1), 0 0 0 40px rgba(255, 255, 255, 0.1),
      0 0 0 60px rgba(255, 255, 255, 0.1);
  }

  100% {
    box-shadow: 0 0 0 20px rgba(255, 255, 255, 0.1),
      0 0 0 40px rgba(255, 255, 255, 0.1), 0 0 0 60px rgba(255, 255, 255, 0.1),
      0 0 0 80px rgba(255, 255, 255, 0);
  }
}
@media (max-width:500px) {
  .facts{
    font-size: 14px;
  }
  #fingers{
    font-size: 18px !important;
  }
}

.game-masthead { align-items: flex-start; display: flex; justify-content: space-between; left: clamp(1rem, 2.5vw, 2rem); max-width: calc(100% - 2rem); position: absolute; top: clamp(1rem, 2.5vw, 2rem); z-index: 4; }
.game-wordmark { color: #f8efd9; display: grid; line-height: 1; text-decoration: none; }
.game-kicker { color: #c9a961; font-family: Georgia, "Times New Roman", serif; font-size: 0.61rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.game-title { font-size: clamp(1.15rem, 2.3vw, 1.7rem); letter-spacing: -0.04em; margin-top: 0.26rem; }
.game-edition { border-left: 1px solid #a83c35; color: #f8efd9; font-family: Georgia, "Times New Roman", serif; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; margin: 0 0 0 1.25rem; padding: 0.25rem 0 0.25rem 0.75rem; text-align: left; text-shadow: none; text-transform: uppercase; }
.game-edition span { color: #c9a961; }
.game-utility { display: flex; gap: 0.45rem; position: absolute; right: clamp(1rem, 2.5vw, 2rem); top: clamp(4.7rem, 9vw, 5.5rem); z-index: 4; }
.game-utility a,.game-utility button { background: rgba(7, 24, 43, 0.91); border: 1px solid rgba(201, 169, 97, 0.72); border-radius: 0; color: #f8efd9; cursor: pointer; font-family: Georgia, "Times New Roman", serif; font-size: 0.67rem; font-weight: 700; letter-spacing: 0.08em; padding: 0.58rem 0.7rem; text-decoration: none; text-transform: uppercase; }
.game-utility a:hover,.game-utility button:hover,.game-utility a:focus-visible,.game-utility button:focus-visible { background: #a83c35; outline: 2px solid #f8efd9; outline-offset: 2px; }
.voice-panel { align-items: center; background: rgba(7, 24, 43, 0.91); border: 1px solid rgba(201, 169, 97, 0.72); box-shadow: 3px 3px 0 rgba(0,0,0,.32); color: #f8efd9; display: flex; gap: .45rem; padding: .45rem .55rem; position: absolute; right: clamp(1rem, 2.5vw, 2rem); top: clamp(7.8rem, 15vw, 9rem); z-index: 4; }
.voice-panel-label { color: #c9a961; font-size: .58rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.voice-switch { align-items: center; cursor: pointer; display: flex; font-size: .67rem; gap: .24rem; }
.voice-switch input { accent-color: #c9a961; }
.voice-volume { display: flex; width: 4.25rem; }
.voice-volume input { accent-color: #c9a961; cursor: pointer; width: 100%; }
.voice-status { color: #d7c7a8; font-size: .57rem; letter-spacing: .04em; white-space: nowrap; }
.voice-panel input:focus-visible { outline: 2px solid #f8efd9; outline-offset: 2px; }
.voice-panel input:disabled { cursor: not-allowed; opacity: .5; }
.selection-voice-panel { border-color: rgba(201,169,97,.45); box-shadow: none; justify-self: start; padding: .35rem .5rem; position: relative; right: auto; top: auto; z-index: 1; }
.game-about { background: #f8efd9; border: 1px solid #c9a961; box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.48); color: #07182b; max-width: 24rem; padding: 1.35rem 1.45rem 1.45rem; position: absolute; right: clamp(1rem, 2.5vw, 2rem); top: clamp(7.8rem, 15vw, 9rem); z-index: 5; }
.game-about::before { border: 1px solid rgba(7, 24, 43, 0.25); content: ""; inset: 0.4rem; pointer-events: none; position: absolute; }
.game-about > * { position: relative; }
.game-about h1 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.05; margin: 0.3rem 0 0.8rem; }
.game-about p { color: #07182b; font-size: 0.92rem; line-height: 1.5; margin: 0.55rem 0; padding: 0; text-align: left; text-shadow: none; }
.game-about .about-eyebrow { color: #a83c35; font-size: 0.63rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.game-about .about-credit { border-top: 1px solid rgba(7, 24, 43, 0.25); font-size: 0.78rem; margin-top: 1rem; padding-top: 0.75rem; }
.game-about a { color: #07182b; font-size: 0.75rem; font-weight: 700; text-decoration-color: #a83c35; text-underline-offset: 3px; }
.about-close { background: #07182b; border: 0; color: #f8efd9; cursor: pointer; font-size: 1.3rem; height: 2rem; line-height: 1; position: absolute; right: 0.7rem; top: 0.7rem; width: 2rem; }
.about-close:focus-visible { outline: 3px solid #a83c35; outline-offset: 2px; }
.start-label,.mode-heading { color: #c9a961; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; margin: 0 0 1rem; text-transform: uppercase; }
.sr-only { clip: rect(0,0,0,0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
#player-identity-strip { background: rgba(7, 24, 43, 0.91); border: 1px solid rgba(201, 169, 97, 0.75); bottom: 1.2rem; box-shadow: 4px 4px 0 rgba(0,0,0,.36); color: #f8efd9; font-family: Georgia, "Times New Roman", serif; font-size: .72rem; left: 50%; letter-spacing: .06em; max-width: calc(100% - 10rem); padding: .65rem .8rem; position: absolute; text-align: center; transform: translateX(-50%); z-index: 4; }

/* Player selection uses local CSS profile markers until seated GLB models are licensed and installed. */
.player-select { align-items: stretch; background: linear-gradient(115deg, rgba(8,12,14,.96), rgba(24,22,17,.92)); border: 1px solid rgba(201,169,97,.72); box-shadow: 14px 14px 0 rgba(0,0,0,.35); box-sizing: border-box; color: #f8efd9; display: grid; gap: .8rem; height: min(49rem, calc(100dvh - 2rem)); max-width: 70rem; overflow: hidden; padding: clamp(1rem, 2vw, 1.6rem); position: relative; width: min(94vw, 70rem); }
.player-select::after { border: 1px solid rgba(248,239,217,.14); content: ""; inset: .42rem; pointer-events: none; position: absolute; }
.player-select > * { position: relative; z-index: 1; }
.player-select-heading { display: grid; gap: .26rem; }
.player-select-heading .mode-heading { margin: 0; }
.player-select-heading h1 { color: #f8efd9; font-size: clamp(1.45rem, 3vw, 2.25rem); letter-spacing: -.035em; line-height: 1; margin: 0; }
.player-select-heading > p:last-child { color: #d8d0bd; font-size: .82rem; line-height: 1.35; margin: 0; max-width: 52rem; padding: 0; text-align: left; text-shadow: none; }
.selection-slots { display: grid; gap: .6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.selection-slot { background: rgba(3,8,9,.62); border: 1px solid rgba(248,239,217,.22); display: flex; min-height: 4.25rem; }
.selection-slot.active { border-color: #c9a961; box-shadow: inset 3px 0 0 #a83c35; }
.slot-activate { align-items: center; background: transparent; border: 0; color: inherit; cursor: pointer; display: flex; flex: 1; font: inherit; gap: .7rem; min-width: 0; padding: .65rem .7rem; text-align: left; }
.slot-activate:focus-visible,.avatar-card:focus-visible,.roster-tabs button:focus-visible { outline: 2px solid #f8efd9; outline-offset: -3px; }
.slot-number { color: #c9a961; font-size: .72rem; font-weight: 700; letter-spacing: .12em; }
.slot-copy { display: grid; gap: .18rem; min-width: 0; }
.slot-copy strong { color: #f8efd9; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.slot-copy em { color: #d7c7a8; font-size: .8rem; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tier-label { border-left: 1px solid rgba(248,239,217,.16); color: #c9a961; display: grid; font-size: .62rem; gap: .16rem; letter-spacing: .09em; padding: .55rem .65rem; text-transform: uppercase; }
.tier-label select { background: #151b1c; border: 1px solid #c9a961; color: #f8efd9; font: inherit; letter-spacing: .04em; max-width: 8rem; padding: .22rem; }
.tier-label span { color: #d7c7a8; font-size: .56rem; letter-spacing: .03em; text-transform: none; white-space: nowrap; }
.side-control { align-items: center; border: 0; border-top: 1px solid rgba(248,239,217,.2); display: flex; gap: .9rem; margin: 0; padding: .55rem 0 0; }
.side-control legend { color: #c9a961; float: left; font-size: .66rem; font-weight: 700; letter-spacing: .1em; margin-right: .8rem; padding: 0; text-transform: uppercase; }
.side-control label { color: #f8efd9; font-size: .78rem; }
.side-control input { accent-color: #c9a961; }
.roster-tools { align-items: center; border-top: 1px solid rgba(248,239,217,.2); display: flex; gap: .8rem; justify-content: space-between; padding-top: .65rem; }
.roster-tabs { display: flex; gap: .25rem; }
.roster-tabs button { background: transparent; border: 1px solid transparent; color: #d7c7a8; cursor: pointer; font-family: Georgia, "Times New Roman", serif; font-size: .72rem; font-weight: 700; letter-spacing: .08em; padding: .32rem .44rem; text-transform: uppercase; }
.roster-tabs button.active { border-color: #c9a961; color: #f8efd9; }
.roster-tabs span { color: #c9a961; font-size: .63rem; }
.roster-search input { background: rgba(0,0,0,.25); border: 1px solid rgba(248,239,217,.3); color: #f8efd9; font-family: inherit; font-size: .78rem; padding: .42rem .58rem; width: 12rem; }
.roster-search input::placeholder { color: #b7ab96; }
.avatar-grid { display: grid; gap: .45rem; grid-template-columns: repeat(5, minmax(0, 1fr)); min-height: 0; overflow: auto; padding-right: .3rem; scrollbar-color: #c9a961 transparent; }
.avatar-card { background: linear-gradient(160deg, rgba(101,104,97,.14), rgba(2,6,7,.66)); border: 1px solid rgba(248,239,217,.18); color: #f8efd9; cursor: pointer; display: grid; font-family: Georgia, "Times New Roman", serif; gap: .28rem; min-height: 9.5rem; padding: .55rem; position: relative; text-align: left; }
.avatar-card:hover,.avatar-card.selected { border-color: #c9a961; background: linear-gradient(160deg, rgba(167,60,53,.25), rgba(2,6,7,.76)); }
.avatar-card.selected::after { background: #c9a961; color: #07182b; content: "SELECTED"; font-size: .52rem; font-weight: 700; letter-spacing: .1em; padding: .2rem .28rem; position: absolute; right: .35rem; top: .35rem; }
.avatar-portrait { border-bottom: 1px solid rgba(201,169,97,.5); display: block; height: 4.45rem; width: 100%; }
.avatar-card strong { font-size: .77rem; line-height: 1.1; }
.avatar-card small { color: #cfc5b3; font-size: .6rem; }
.selection-footer { align-items: center; border-top: 1px solid rgba(248,239,217,.2); display: flex; gap: .8rem; justify-content: space-between; padding-top: .7rem; }
.selection-footer p { color: #d7c7a8; font-size: .72rem; margin: 0; padding: 0; text-align: left; text-shadow: none; }
.confirm-players { font-size: .75rem; min-width: 13rem; padding: .7rem 1rem; }
.confirm-players:disabled { cursor: not-allowed; opacity: .45; }
@media (max-width: 600px) { .game-edition { display: none; } .game-utility { top: 4.4rem; } .game-utility a,.game-utility button { font-size: 0.58rem; padding: 0.48rem 0.52rem; } .game-about { left: 1rem; max-width: none; right: 1rem; top: 7rem; } .voice-panel { right: 1rem; top: 7.25rem; } .selection-voice-panel { right: auto; top: auto; } .Reset,.ViewPoint { bottom: 0.75rem; } .Reset { right: 4.85rem; } .ViewPoint { right: 0.75rem; } }
@media (max-width: 720px) { .player-select { height: min(52rem, calc(100dvh - 1rem)); padding: .85rem; width: calc(100vw - 1rem); } .avatar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .avatar-card { min-height: 7.8rem; } .selection-footer { align-items: stretch; flex-direction: column; } .confirm-players { width: 100%; } .roster-search input { width: 9rem; } #player-identity-strip { bottom: 5rem; max-width: calc(100% - 2rem); } }
@media (max-width: 430px) { .player-select-heading > p:last-child { font-size: .72rem; } .selection-slots { grid-template-columns: 1fr; } .avatar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .roster-tools { align-items: flex-start; flex-direction: column; gap: .45rem; } .roster-search,.roster-search input { box-sizing: border-box; width: 100%; } .side-control { flex-wrap: wrap; } .tier-label { min-width: 6.7rem; } }
