@font-face {
  font-family: system;
  src: local("Trebuchet MS");
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background-color: #086c89;
  background-image:
    repeating-linear-gradient(
      135deg,
      transparent 0 13px,
      #ffffff08 13px 16px,
      transparent 16px 27px
    ),
    radial-gradient(#032f5355 1.5px, transparent 1.5px);
  background-size:
    auto,
    18px 18px;
  color: #111927;
  font-family: system, "Segoe UI", sans-serif;
  font-size: 17px;
}
.shell {
  max-width: 1450px;
  margin: 32px auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 26px;
}
aside {
  padding-top: 10px;
}
.logo {
  display: block;
  color: #ffd54b;
  text-decoration: none;
  font-size: 49px;
  font-weight: 1000;
  letter-spacing: -3px;
  text-shadow:
    3px 3px #141c25,
    5px 6px #db4b22;
  -webkit-text-stroke: 1.5px #111927;
  margin: 0 0 30px;
}
.logo span {
  display: block;
  letter-spacing: 2.5px;
  font-size: 12px;
  -webkit-text-stroke: 0;
  text-shadow: none;
  color: #fff;
  margin: 8px 0;
  text-align: center;
}
.blue,
.cream {
  border: 2px solid #142133;
  border-radius: 14px;
  box-shadow:
    inset 0 0 0 3px #ffffff4a,
    0 3px 0 #052f46;
}
.blue {
  background: #0e4f6a;
  color: #ecf9ff;
  padding: 17px;
  margin-bottom: 18px;
}
.intro {
  text-align: center;
  padding: 25px 15px;
}
.intro strong {
  font-size: 23px;
  line-height: 1.3;
}
.intro p {
  font-size: 16px;
  color: #b4d6e5;
  line-height: 1.5;
  margin-bottom: 0;
}
nav {
  display: grid;
  gap: 8px;
}
nav a {
  color: #fff;
  border: 1px solid #7dbbd0;
  border-radius: 7px;
  text-decoration: none;
  padding: 11px;
  font-weight: 800;
}
nav a:hover,
nav a:focus-visible {
  background: #177797;
}
nav a.active {
  background: #ffd047;
  color: #111927;
  border-color: #111927;
}
.cream {
  background: #fff8df;
  padding: 19px;
}
h3 {
  margin: 0 0 15px;
  font-size: 19px;
}
.cream h3 {
  padding-bottom: 10px;
  border-bottom: 2px solid #ddc89f;
}
ol {
  padding-left: 29px;
  margin-bottom: 0;
}
li {
  padding: 0 0 20px 5px;
  line-height: 1.4;
}
li::marker {
  font-size: 24px;
  color: #d86c15;
  font-weight: 900;
}
footer {
  font-size: 13px;
  text-align: center;
  margin: 25px 0;
  color: #b1d7e6;
}
footer a {
  color: inherit;
}
small {
  display: block;
  margin-top: 14px;
}
.topnote {
  height: 76px;
  border: 2px solid #123142;
  background: #0d526e;
  color: #b7dbe9;
  border-radius: 13px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  padding: 24px;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 1.5px;
  font-weight: 800;
  box-shadow: inset 0 0 0 3px #70adc34a;
}
.topnote > span:last-child {
  margin-left: auto;
  font-weight: 500;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #61d48d;
  box-shadow: 0 0 0 4px #61d48d20;
}
.board {
  background: #ffb824;
  border: 2px solid #132334;
  border-radius: 19px;
  box-shadow:
    inset 0 0 0 4px #ffe08a,
    0 5px 0 #09445c;
  padding: 18px;
  background-image: linear-gradient(120deg, #ffd14c, #ef9b17);
}
.scene {
  height: 190px;
  border: 2px solid #132334;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #17314b;
}
.scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}
.scene-tag {
  position: absolute;
  top: 18px;
  left: 22px;
  background: #fff2c8;
  color: #152b41;
  transform: rotate(-5deg);
  font-size: 13px;
  font-weight: 900;
  padding: 10px;
  border: 2px solid #132334;
  line-height: 1.2;
}
#app {
  padding: 24px 8px 6px;
}
h1 {
  font-size: clamp(28px, 3.1vw, 47px);
  line-height: 1.13;
  margin: 0 0 13px;
  font-weight: 1000;
  letter-spacing: -1.4px;
}
h2 {
  font-size: 25px;
  margin: 0 0 13px;
}
p {
  line-height: 1.5;
}
.hero {
  text-align: center;
}
.hero p {
  margin: 0 0 22px;
  font-size: 19px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 900;
  margin-bottom: 12px;
  color: #5d390e;
}
.actions {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.actions > * {
  flex: 1;
}
.btn,
button {
  font: inherit;
  cursor: pointer;
  border: 2px solid #172231;
  border-radius: 8px;
  min-height: 46px;
  background: #fff9e4;
  color: #172231;
  font-weight: 850;
  padding: 11px 18px;
  box-shadow: 0 3px 0 #172231;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}
.primary {
  background: #10a752;
  color: #fff;
  box-shadow:
    inset 0 0 0 3px #72dc95,
    0 4px 0 #143125;
}
.primary:hover {
  background: #088d43;
}
button:hover,
.btn:hover {
  filter: brightness(0.97);
}
button:disabled {
  opacity: 0.6;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #255dff;
  outline-offset: 4px;
}
.large {
  font-size: 24px;
  padding: 17px 25px;
}
.joinline {
  padding: 12px 17px;
  max-width: 490px;
  text-align: left;
}
.joinline label {
  font-weight: 850;
  display: block;
  margin-bottom: 6px;
}
.joinline div {
  display: flex;
  gap: 8px;
}
input,
textarea,
select {
  font: inherit;
  border: 2px solid #3a4650;
  border-radius: 7px;
  background: #fffcf0;
  color: #172231;
  padding: 12px;
  max-width: 100%;
  width: 100%;
}
input {
  text-transform: none;
}
textarea {
  resize: vertical;
  min-height: 115px;
}
label {
  display: block;
  font-weight: 800;
  margin: 13px 0 6px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 27px;
  border-top: 1px solid #986923;
  padding-top: 20px;
}
.gamecard {
  padding: 13px;
  text-align: center;
}
.gameart {
  height: 93px;
  background: #c3a6f6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  border: 1px solid #6e5198;
}
.gameart.red {
  background: #ff9690;
}
.gameart.blueart {
  background: #87c8ed;
}
.gamecard h2 {
  font-size: 20px;
  margin: 15px 0 8px;
}
.gamecard p {
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 13px;
}
.badge {
  display: inline-block;
  border-radius: 5px;
  background: #e9dec2;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 800;
}
.split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
}
.soft {
  background: #ffdd7799;
  border-radius: 10px;
  padding: 18px;
}
.avatars,
.players {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.avatarbtn {
  padding: 5px;
  box-shadow: none;
  background: #fff7db;
}
.avatarbtn.selected {
  border: 3px solid #266cff;
  background: #e8f0ff;
}
.avatar {
  width: 75px;
  height: 106px;
  image-rendering: pixelated;
}
.avatarbtn .avatar {
  width: 60px;
  height: 85px;
}
.player {
  text-align: center;
  padding: 10px 5px;
}
.player b {
  display: block;
}
.status {
  font-size: 12px;
  display: inline-block;
  background: #dcf0ce;
  color: #256138;
  border-radius: 4px;
  padding: 4px 8px;
  margin-top: 7px;
}
.status.off {
  background: #e6dfcd;
  color: #5d5a55;
}
.roomcode {
  letter-spacing: 3px;
  font-size: 25px;
  font-weight: 950;
  background: #f6e9c0;
  border: 1px solid #c6ac73;
  padding: 13px;
  border-radius: 7px;
  margin: 10px 0;
}
.roomhead {
  display: flex;
  align-items: center;
  gap: 15px;
  justify-content: space-between;
  margin-bottom: 15px;
}
.roomhead h1 {
  font-size: 37px;
  margin: 0;
}
.timer {
  white-space: nowrap;
  font-weight: 900;
  background: #fff6d6;
  border: 2px solid #132334;
  padding: 12px;
  border-radius: 9px;
}
.muted {
  font-size: 14px;
  color: #4b4e50;
}
.prompt {
  padding: 22px;
  margin: 15px 0;
}
.prompt h2 {
  font-size: 26px;
  margin-bottom: 0;
}
.question {
  font-size: 27px;
  font-weight: 900;
  text-align: center;
  line-height: 1.4;
  padding: 28px;
}
.guesscards {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.guesscards button {
  min-width: 130px;
  flex: 1;
  max-width: 190px;
}
.guesscards b {
  display: block;
}
.scoreline {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #d8c8a1;
  padding: 8px 0;
}
.scoreline .avatar {
  width: 35px;
  height: 48px;
}
.scoreline strong {
  margin-left: auto;
}
.bottomnote {
  text-align: center;
  font-size: 12px;
  color: #b9dce9;
  margin-top: 22px;
}
.error {
  background: #fff0eb;
  border: 2px solid #ad3e27;
  color: #7a291a;
  padding: 12px;
  border-radius: 7px;
  margin-top: 12px;
}
#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #142e3d;
  color: #fff;
  padding: 12px 22px;
  border-radius: 9px;
  max-width: 90%;
  display: none;
  z-index: 5;
}
.copyfallback {
  width: 100%;
  margin-top: 10px;
}
.support p,
.support li {
  line-height: 1.65;
}
.support {
  max-width: 730px;
}
.toplinks {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.ad-slot {
  min-height: 90px;
}
.ad-slot[hidden] {
  display: none;
}
@media (max-width: 1050px) {
  .shell {
    grid-template-columns: 220px 1fr;
    padding: 0 18px;
    gap: 18px;
  }
  .logo {
    font-size: 39px;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .scene {
    height: 160px;
  }
  .cards {
    gap: 8px;
  }
  .gamecard h2 {
    font-size: 17px;
  }
}
@media (max-width: 720px) {
  .shell {
    display: block;
    margin: 14px auto;
    padding: 0 12px;
  }
  aside {
    padding: 0;
  }
  .logo {
    font-size: 37px;
    margin: 0 0 14px;
    width: 230px;
  }
  .logo span {
    text-align: left;
    padding-left: 8px;
    font-size: 10px;
  }
  .intro,
  #side {
    display: none;
  }
  nav.blue {
    display: flex;
    padding: 6px;
    gap: 5px;
    border-radius: 9px;
    margin-bottom: 13px;
  }
  nav a {
    font-size: 13px;
    text-align: center;
    flex: 1;
    padding: 11px 4px;
  }
  footer {
    margin: 18px 0;
    position: static;
  }
  aside footer {
    display: none;
  }
  .topnote {
    height: 45px;
    padding: 13px;
    font-size: 10px;
    margin-bottom: 12px;
    letter-spacing: 1px;
  }
  .topnote > span:last-child {
    font-size: 9px;
  }
  .board {
    padding: 10px;
    border-radius: 13px;
  }
  .scene {
    height: 120px;
  }
  .scene-tag {
    font-size: 9px;
    left: 10px;
    top: 10px;
    padding: 6px;
  }
  #app {
    padding: 19px 4px 5px;
  }
  h1 {
    font-size: 32px;
  }
  .hero p {
    font-size: 16px;
  }
  .actions {
    display: block;
  }
  .actions > * {
    width: 100%;
    margin-bottom: 12px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .gamecard {
    display: grid;
    grid-template-columns: 75px 1fr;
    gap: 5px 14px;
    text-align: left;
  }
  .gameart {
    grid-row: span 3;
    height: 85px;
    font-size: 29px;
  }
  .gamecard h2 {
    margin: 0;
    font-size: 20px;
  }
  .gamecard p {
    margin: 0;
  }
  .gamecard .btn,
  .gamecard .badge {
    justify-self: start;
  }
  .gamecard .btn {
    padding: 6px 13px;
    min-height: 36px;
  }
  .roomhead {
    align-items: start;
  }
  .roomhead h1 {
    font-size: 29px;
  }
  .timer {
    font-size: 13px;
    padding: 9px;
  }
  .question {
    font-size: 21px;
    padding: 20px;
  }
  .guesscards button {
    min-width: 100px;
    padding: 8px;
  }
  .guesscards .avatar {
    width: 60px;
    height: 85px;
  }
  .cream {
    padding: 15px;
  }
  .split {
    gap: 12px;
  }
  .toplinks {
    flex-wrap: wrap;
  }
  .bottomnote {
    margin-bottom: 22px;
  }
  .avatars {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
