.guess-main [hidden], #guess-exit-dialog [hidden] { display: none; }
.guess-nav .brand-icon img { width: 72%; height: 72%; transform: rotate(6deg); }
#guess-home {
  display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 7px 14px;
  border: 1px solid #496374; border-radius: 999px; color: var(--night-text); font-size: .9rem;
}
#guess-home:hover { background: #1d303c; }
.guess-main { max-width: 1090px; padding-block: clamp(26px, 4vw, 56px); }
.guess-heading { margin-bottom: clamp(16px, 2.2vw, 28px); }
.guess-heading p { color: var(--night-link); font: 500 .85rem var(--heading-font); }
.guess-heading h1 { margin-top: 3px; font-size: clamp(38px, 5vw, 64px); }
.guess-layout { display: grid; grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); gap: clamp(16px, 3vw, 40px); align-items: start; }
.guess-figure { margin: 0; min-width: 0; border: 1px solid #3c5462; border-radius: 13px; overflow: hidden; background: #0e1921; }
#guess-art {
  position: relative; display: grid; place-items: center; isolation: isolate; overflow: hidden;
  height: clamp(310px, 32vw, 435px);
  background: radial-gradient(ellipse at 48% 42%, #cde7f0, #78afca 66%, #427999);
}
#guess-art::before {
  content: ""; position: absolute; z-index: -1; width: 110%; aspect-ratio: 1; border: 1px solid #e5f6ff77;
  border-radius: 50%; box-shadow: 0 0 0 9px #9ac6d858, 0 0 0 10px #e8f8ff47;
}
#guess-art:empty { background: #101c24; }
#guess-art:empty::before { display: none; }
#guess-art > img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
#guess-art > .guess-illustration { filter: drop-shadow(2px 1px #d9eff8); }
#guess-art > .album-card { width: 100%; height: 100%; border: none; border-radius: 0; }
#guess-art .album-card-photo { background: #0b1115; }
.guess-figure figcaption { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; padding: 12px 16px 15px; }
.guess-figure label, .guess-range-box > span, #guess-wallet dt { color: var(--night-muted); font-size: .8rem; }
#guess-art-select, #guess-number {
  min-width: 0; width: 100%; border: 1px solid #536d7c; border-radius: 7px;
  background: #13232d; color: var(--night-text); font: inherit;
}
#guess-art-select { min-height: 39px; padding: 5px 8px; font-size: .9rem; }
#guess-art-message { font-size: .78rem; color: var(--night-muted); }
#guess-art-message:empty { display: none; }
.guess-slides { display: grid; gap: 2px; padding-top: 9px; margin-top: 3px; border-top: 1px solid var(--night-border); }
.guess-slide-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 5px 8px; font-size: .78rem; color: var(--night-muted); }
#guess-slide-speed { display: block; width: 100%; min-width: 0; height: 29px; margin: 0; accent-color: var(--blue); cursor: pointer; }
#guess-slide-speed:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-radius: 6px; }
#guess-slide-interval, #guess-slide-position { color: var(--night-text); font-variant-numeric: tabular-nums; white-space: nowrap; }
#guess-slide-toggle { min-height: 36px; padding: 5px 9px; font-size: .8rem; }
.guess-board { min-width: 0; padding: clamp(18px, 2.7vw, 34px); border: 1px solid #405865; border-radius: 13px; background: #0f1920; }
.guess-board-top, .guess-form-row, .guess-tools, .guess-dialog-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 12px; }
.guess-board-top { justify-content: space-between; color: var(--night-muted); font-size: .83rem; }
.guess-board-top:has(#guess-mode[hidden]) { display: none; }
#guess-mode { border: 1px solid #46728b; border-radius: 4px; padding: 3px 8px; font-weight: 700; color: #b8e6ff; }
#guess-status { margin: 13px 0 5px; font-size: clamp(24px, 2.7vw, 36px); }
#guess-dialogue { margin: 10px 0; padding-left: 12px; border-left: 2px solid var(--blue); color: #d6efff; font-size: 1.02rem; line-height: 1.65; overflow-wrap: anywhere; }
#guess-dialogue:empty { display: none; }
#guess-hint, #guess-message { color: var(--night-link); font-size: .94rem; line-height: 1.6; overflow-wrap: anywhere; }
#guess-hint:empty, #guess-message:empty, #guess-lie-rule:empty { display: none; }
.guess-range-box {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 13px; margin-top: 15px;
  padding: 12px 16px; background: #132b39; border-left: 3px solid var(--blue); border-radius: 2px 7px 7px 2px;
}
#guess-range { font: 700 clamp(25px, 3vw, 40px)/1.2 var(--heading-font); color: #d8f2ff; }
#guess-wallet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 17px 0; }
#guess-wallet div { padding: 0 10px; border-left: 1px solid #354a56; }
#guess-wallet div:first-child { border: 0; padding-left: 0; }
#guess-wallet dd { margin: 4px 0 0; color: var(--night-muted); font-size: .75rem; overflow-wrap: anywhere; }
#guess-wallet b { color: var(--night-text); font: 700 clamp(18px, 1.8vw, 25px)/1.1 var(--heading-font); }
#guess-form label { display: block; font-size: .88rem; font-weight: 700; margin: 9px 0 5px; }
.guess-form-row { display: grid; grid-template-columns: minmax(55px, 1fr) auto; align-items: stretch; }
#guess-number { padding: 6px 11px; min-height: 44px; font: 700 1.1rem var(--body-font); }
#guess-number[aria-invalid=true] { border-color: #ff9d8c; }
.guess-primary, .guess-button {
  display: inline-flex; justify-content: center; align-items: center; padding: 8px 15px; min-height: 40px;
  border: 1px solid var(--blue); border-radius: 8px; background: var(--blue); color: #08151b;
  font-size: .92rem; font-weight: 700;
}
.guess-primary:enabled:hover, a.guess-primary:hover { background: #b2e6ff; }
.guess-button { border-color: #526b79; background: #182933; color: var(--night-text); }
.guess-button:enabled:hover { border-color: var(--blue); background: #233c4b; }
.guess-text-button { justify-self: start; padding: 6px 0; background: transparent; color: var(--night-link); text-decoration: underline; text-underline-offset: 3px; font-size: .85rem; }
.guess-text-button:enabled:hover { color: white; }
.guess-main button:disabled, #guess-exit-dialog button:disabled { opacity: .6; cursor: default; }
#guess-cost, #guess-lie-rule, #guess-empty, #guess-exit-note { color: var(--night-muted); font-size: .85rem; line-height: 1.65; }
#guess-cost, #guess-lie-rule, #guess-message { margin-top: 7px; }
#guess-message[data-error] { color: #ffa99a; }
.guess-tools { margin-top: 12px; }
.guess-tools:not(:has(:not([hidden]))) { display: none; }
#guess-records { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--night-border); }
#guess-records h2 { font-size: 1.35rem; }
#guess-empty { margin-top: 7px; }
#guess-history { display: flex; gap: 7px; flex-wrap: wrap; list-style: none; padding: 0; margin: 11px 0 0; }
#guess-history li { padding: 5px 10px; border-radius: 6px; background: #13232d; color: var(--night-text); font-size: .81rem; }
#guess-history li[data-hint=correct] { background: #174252; color: #c9eeff; }
#guess-exit-dialog { width: 375px; padding: 23px; }
#guess-exit-note { margin: 12px 0 18px; }
.guess-dialog-actions { justify-content: flex-end; }
@media (max-width: 700px) {
  .guess-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .guess-figure { display: grid; grid-template-columns: minmax(96px, 32%) minmax(0, 1fr); align-items: center; }
  #guess-art { height: clamp(128px, 27vw, 175px); }
  .guess-figure:has(.guess-slides:not([hidden])) #guess-art { align-self: stretch; height: auto; min-height: 155px; }
  .guess-figure figcaption { padding: 10px; }
}
@media (max-width: 470px) {
  .guess-nav { gap: 5px; }
  .guess-nav .brand { gap: 4px; }
  #guess-home { min-height: 34px; padding: 4px 8px; gap: 2px; font-size: .8rem; }
  .guess-main { padding-top: 20px; }
}
@media (max-width: 350px) {
  .guess-nav .brand span:last-child { display: none; }
  .guess-board { padding: 14px; }
  .guess-form-row { gap: 6px; }
}
