* {
  box-sizing: border-box;

}
html,

body {

  margin: 0;
  width: 100%;

  min-height: 100%;
  font-family:
    Inter,
    
    ui-sans-serif,
    system-ui,
    -apple-system,
    
    BlinkMacSystemFont,
    
    "Segoe UI",
    sans-serif;
  color: #172033;

  background: #f7faff;
}
html {

  height: 100%;
  overflow: hidden;

}
body {
  height: 100%;

  overflow: hidden;

}
button,
input {

  font: inherit;
}
.top-nav {

  position: fixed;

  top: 0;
  left: 0;

  right: 0;
  z-index: 20;
  padding: 12px 16px;

}
.top-nav nav {

  max-width: 1050px;

  margin: auto;

  background: #fff;
  border: 1px solid #dce8f5;
  border-radius: 6px;

}
.top-nav-left {
  list-style: none;

  display: flex;
  align-items: center;
  gap: 2px;

  margin: 0;

  padding: 4px;
}
.nav-element {

  display: block;

  text-decoration: none;
  color: #5a6980;
  padding: 8px 12px;

  border-radius: 4px;
  font-size: 14px;

  font-weight: 600;
  transition:
    background 0.15s,
    color 0.15s;
    
}
.nav-element:hover {

  background: #eef6ff;

  color: #126bb0;
}
.nav-element.active {
  background: #e8f4ff;

  color: #126bb0;

}
.page {
  width: 100%;

  height: 100dvh;
  padding: 82px 20px 20px;
  display: grid;

  place-items: center;

}
.card {
  width: min(920px, 100%);

  margin: auto;
  background: #fff;

  border: 1px solid #dfeaf5;
  border-radius: 8px;

  padding: 30px;
}
.eyebrow {

  display: none;

}
.muted {
  color: #65748a;

}
.button {

  border: 1px solid #cfe1ef;

  background: #fff;
  color: #176da8;
  border-radius: 5px;

  padding: 10px 16px;
  font-weight: 700;

  cursor: pointer;

  line-height: 1.1;
}
.button:hover {
  background: #f1f8ff;

}
.button.primary {

  background: #2389cc;
  border-color: #2389cc;

  color: #fff;

}
.button.primary:hover {

  background: #176fae;
}
.button.danger {
  color: #c43e3e;

  border-color: #efcccc;

}
.button:disabled {
  opacity: 0.55;

  cursor: not-allowed;
}
.hidden {

  display: none !important;

}
.status {
  min-height: 20px;

  margin: 10px 0 0;

  font-size: 14px;

  color: #65748a;
}
.status.error {

  color: #c43e3e;

}
.field {
  display: flex;

  flex-direction: column;
  gap: 6px;

  text-align: left;
}
.field label {

  font-size: 13px;

  font-weight: 700;

  color: #536278;
}
.field input {

  height: 42px;

  border: 1px solid #d5e2ee;
  border-radius: 5px;
  padding: 0 11px;
  outline: 0;

  font: inherit;

  background: #fff;
}
.field input:focus {

  border-color: #4b9bd0;
  box-shadow: 0 0 0 2px #e9f5ff;

}
.actions {
  display: flex;

  gap: 8px;
  flex-wrap: wrap;

}
#toastr {
  position: fixed;

  top: 12px;
  right: 12px;

  z-index: 9999;
  width: 300px;
  pointer-events: none;

}
.toastr-toast {

  position: relative;

  min-height: 50px;
  margin: 0 0 8px;
  padding: 15px 35px 15px 15px;
  border: 0;

  border-radius: 3px;

  background: #fff;

  color: #444;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);

  opacity: 0;
  transform: translateX(24px);

  transition:
    opacity 0.2s,
    transform 0.2s;
    
  pointer-events: auto;

  font-size: 14px;

  line-height: 1.35;

}
.toastr-visible {
  opacity: 1;

  transform: translateX(0);
}
.toastr-success {

  background: #51a351;

  color: #fff;
}
.toastr-info {

  background: #2f96b4;
  color: #fff;

}
.toastr-warning {
  background: #f89406;
  color: #fff;

}
.toastr-error {

  background: #bd362f;
  color: #fff;

}
.toastr-icon {
  display: none;

}
.toastr-content {

  display: block;
  color: inherit;

}
.toastr-content strong {

  display: block;
  color: inherit;

  font-size: 14px;
}
.toastr-close {

  position: absolute;

  top: 7px;
  right: 7px;
  border: 0;

  background: transparent;
  color: inherit;

  opacity: 0.75;
  cursor: pointer;
  padding: 0;
  width: 20px;

  height: 20px;

  font-size: 20px;

  line-height: 20px;

}
.toastr-close:hover {
  opacity: 1;

}

.play-card {

  max-width: 900px;

}
.play-card h1 {
  font-size: clamp(23px, 2.3vw, 32px);

  margin: 0 0 7px;
}
.play-card > p.muted {

  margin: 0;

  color: #65748a;
}
.name-row {
  max-width: 380px;

  margin: 20px auto 0;

}
.play-grid {

  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 12px;
  margin-top: 12px;
}
.option {

  border: 1px solid #dce8f5;
  border-radius: 7px;

  background: #fbfdff;
  padding: 14px;

  text-align: left;
  transition: border-color 0.15s, background 0.15s;

}
.option:focus-within, .option:hover {
  border-color: #a9d0ed;

  background: #f6fbff;
}
.option h2 {

  margin: 0 0 7px;
  font-size: 18px;

}
.option p {

  color: #65748a;
  line-height: 1.4;

  min-height: 36px;
  margin: 0;
  font-size: 14px;

}
.option .button {

  margin-top: 10px;

}
.code-inputs {
  display: flex;

}
.code-input {

  width: 42px;

  height: 46px;

  text-align: center;
  font-size: 21px;
  font-weight: 800;

  text-transform: uppercase;

  border: 1px solid #ccdce9;

  border-radius: 4px;

  margin: 10px 4px 0 0;

  outline: 0;
}
.code-input:focus {
  border-color: #4b9bd0;

  box-shadow: 0 0 0 2px #e9f5ff;

}
.option .code-input {
  display: inline-block;

}
@media (max-width: 760px) {

  .page {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    
    align-content: center;
    
    gap: 8px;
    overflow: hidden;
    height: 100dvh;
    
    padding: 68px 8px 8px;
    
  }
  .play-card { width: 100%; padding: 10px; }
  .play-card h1 { font-size: clamp(16px, 3vw, 23px); }

  .play-grid { grid-template-columns: 1fr; gap: 7px; margin-top: 7px; }

  .option { padding: 8px; }
  .option h2 { font-size: 14px; }
  .option p { min-height: 0; font-size: 11px; }

  .name-row { margin-top: 8px; }
  .field label { font-size: 11px; }

  .field input { height: 32px; padding: 0 7px; }
  .code-input { width: min(26px, calc((100% - 18px) / 6)); height: 32px; font-size: 13px; margin-right: 2px; }
  .button { padding: 7px 9px; font-size: 12px; }

  #difficulty-list { grid-template-columns: 1fr; gap: 3px; }
  #difficulty-list label { padding: 5px 6px; font-size: 11px; }
  #difficulty-list li { margin: 0; }

  #status { font-size: 11px; }

}
@media (max-height: 620px) and (min-width: 761px) {
  .page { padding-top: 68px; gap: 8px; }

  .play-card { padding: 12px 16px; }
  .play-card h1 { font-size: 23px; }

  .name-row { margin-top: 8px; }
  .play-grid { margin-top: 8px; gap: 8px; }

  .option { padding: 9px; }
  #difficulty-list li { margin: 4px 0; }

}
@media (max-height: 650px) and (min-width: 701px) {
  .play-card {
    padding: 22px;
    
  }
  .play-grid {

    margin-top: 12px;
    
  }
  .name-row {
    margin-top: 12px;
    
  }
}
@media (max-width: 480px) {

  .code-input {

    width: 38px;
    margin-right: 3px;
  }
  .play-card {

    padding: 22px 18px;
    
  }
  .play-card h1 {
    font-size: 30px;
    
  }
}

html, body, button, input, select, textarea {
  font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Comic Neue", cursive, sans-serif;

}

.page {

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

  align-content: center;
  align-items: stretch;
  gap: clamp(10px, 2vh, 18px);
  overflow: hidden;

  height: 100dvh;

  padding: 76px clamp(12px, 2vw, 24px) 12px;
}
.play-card {

  min-width: 0;

  padding: clamp(16px, 2vw, 26px);
  height: fit-content;

}
#difficulty-list {

  display: grid;

  grid-template-columns: 1fr 1fr;
  gap: 7px;
  list-style: none;
  padding: 0;

  margin: 10px 0 0;

}
#difficulty-list li { margin: 0; }

#difficulty-list label {

  display: flex;
  align-items: center;
  gap: 7px;

  padding: 9px 10px;

  border: 1px solid #dce8f5;
  border-radius: 5px;

  background: #fff;
  color: #536278;
  cursor: pointer;
  font-size: 13px;

  transition: border-color 0.15s, background 0.15s, color 0.15s;

}
#difficulty-list label:has(input:checked) {

  border-color: #2389cc;

  background: #eaf6ff;
  color: #176da8;

  font-weight: 700;
}
#difficulty-list input { accent-color: #2389cc; }

#play-bot-button {
  margin-top: 10px;

}

html, body, button, input, select, textarea, label, a { font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", "Comic Neue", cursive, sans-serif; }
/* .game-mode-card { align-items: stretch; } */
/* #difficulty-list { list-style: none; padding-left: 0; } */
/* .button:focus-visible { outline-offset: 4px; } */

