* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: #040405;
  color: #e6d6b8;
  font-family: "IM Fell English", Georgia, serif;
  overflow: hidden;
}

#view {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

kbd {
  font-family: inherit;
  font-size: 0.85em;
  border: 1px solid rgba(230, 210, 170, 0.45);
  border-radius: 3px;
  padding: 0 0.35em;
  margin: 0 0.1em;
}

.screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 16px;
  background: radial-gradient(ellipse at 50% 40%, rgba(10, 10, 12, 0.55), rgba(2, 2, 3, 0.94) 70%);
}

#loading {
  background: #030303;
}

.screen h1 {
  font-family: "Cinzel Decorative", "Palatino Linotype", serif;
  font-size: clamp(2.2rem, 7vw, 4.6rem);
  line-height: 1.12;
  margin: 0.25em 0 0.45em;
  color: #e9d3a6;
  text-shadow: 0 0 40px rgba(160, 40, 10, 0.35), 0 2px 2px #000;
}

.eyebrow {
  letter-spacing: 0.34em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #b98a4e;
  margin: 0;
}

.tagline {
  max-width: 36rem;
  line-height: 1.7;
  font-size: 1.15rem;
  color: #dcc8a6;
  margin: 0 0 1rem;
}

.warning {
  max-width: 30rem;
  margin: 0.4rem 0 1.6rem;
  font-style: italic;
  color: #a99070;
}

.buttons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

button {
  cursor: pointer;
  background: #1e120c;
  color: #f0d6a8;
  border: 1px solid #8a6230;
  padding: 0.85rem 2.2rem;
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: inherit;
  transition: background 0.2s;
}

button:hover {
  background: #3a1e10;
}

button.ghost {
  background: transparent;
  border-color: rgba(138, 98, 48, 0.5);
  color: #b89a70;
}

.hint {
  margin-top: 1.6rem;
  color: #8a7458;
  max-width: 40rem;
  line-height: 1.8;
}

.load-track {
  width: min(320px, 70vw);
  height: 2px;
  background: rgba(200, 170, 120, 0.15);
  margin-top: 1rem;
}

#load-bar {
  height: 100%;
  width: 0;
  background: #c48a3e;
  transition: width 0.3s;
}

.hidden {
  display: none !important;
}

/* ---------------- HUD ---------------- */
#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 8;
}

#hud.hunt::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 180px rgba(90, 0, 0, 0.55);
  animation: pulse 0.75s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    box-shadow: inset 0 0 240px rgba(120, 0, 0, 0.75);
  }
}

.hud-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem 1.3rem;
  text-shadow: 0 1px 6px #000;
}

.place {
  margin: 0;
  font-family: "Cinzel Decorative", serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: rgba(230, 210, 175, 0.7);
}

.tally {
  text-align: right;
}

.counter {
  margin: 0;
  font-family: "Cinzel Decorative", serif;
  color: #d39a4c;
  font-size: 1.15rem;
}

.counter.small {
  font-size: 0.85rem;
  color: rgba(200, 175, 140, 0.7);
  margin-top: 0.2rem;
}

/* the four freebies: dim until found */
.freebie-tally {
  display: flex;
  gap: 0.35rem;
  justify-content: flex-end;
}

.freebie-tally img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: grayscale(1) brightness(0.45);
  opacity: 0.5;
  transition: filter 0.8s, opacity 0.8s, transform 0.8s;
}

.freebie-tally img.found {
  filter: drop-shadow(0 0 5px rgba(230, 170, 80, 0.75));
  opacity: 1;
  animation: freebie-found 1.6s ease-out;
}

@keyframes freebie-found {
  0% { transform: scale(1.9); }
  100% { transform: scale(1); }
}

.ico {
  font-family: Georgia, serif;
  opacity: 0.8;
}

.status {
  position: absolute;
  left: 50%;
  bottom: 15%;
  transform: translateX(-50%);
  width: min(42rem, 90vw);
  margin: 0;
  text-align: center;
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: #ecd6ae;
  text-shadow: 0 2px 10px #000, 0 0 2px #000;
  opacity: 0;
  transition: opacity 1.2s;
}

.status.show {
  opacity: 1;
  transition: opacity 0.4s;
}

.crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: rgba(240, 225, 195, 0.55);
}

.prompt {
  position: absolute;
  left: 0;
  right: 0;
  top: 56%;
  text-align: center;
  margin: 0;
  color: #f0dcb4;
  font-size: 1.05rem;
  text-shadow: 0 2px 8px #000;
}

.prompt kbd {
  background: rgba(0, 0, 0, 0.4);
}

.paused {
  position: absolute;
  left: 0;
  right: 0;
  top: 44%;
  text-align: center;
  font-size: 1.3rem;
  color: #d8c29c;
  text-shadow: 0 2px 10px #000;
}

#stamina {
  position: absolute;
  left: 50%;
  bottom: 7%;
  width: 120px;
  height: 2px;
  margin-left: -60px;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 0.5s;
}

#stamina div {
  height: 100%;
  background: rgba(220, 200, 160, 0.6);
}

/* ---------------- Reader ---------------- */
#reader {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.72);
  padding: 16px;
}

.paper {
  max-width: 34rem;
  width: 100%;
  max-height: 88vh;
  overflow: auto;
  padding: 2.4rem 2.6rem;
  color: #2a2016;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 250, 230, 0.35), transparent 60%),
    radial-gradient(ellipse at 80% 90%, rgba(120, 80, 30, 0.25), transparent 50%),
    #d9cbad;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), inset 0 0 60px rgba(110, 70, 30, 0.35);
  transform: rotate(-0.6deg);
  font-size: 1.12rem;
  line-height: 1.6;
}

.paper h2 {
  font-weight: normal;
  font-style: italic;
  margin: 0 0 0.3rem;
  font-size: 1.5rem;
}

.paper .date {
  text-align: right;
  font-style: italic;
  margin: 0 0 1rem;
}

.paper.letter p,
.paper.journal p {
  font-family: "La Belle Aurore", cursive;
  font-size: 1.3rem;
  line-height: 1.55;
  color: #241c34;
}

.paper .sig {
  text-align: right;
}

.paper .hand {
  font-family: "La Belle Aurore", cursive;
  font-size: 1.25rem;
  color: #241c34;
  transform: rotate(-1.5deg);
  margin-top: 1.4rem;
}

.paper .torn {
  font-family: "IM Fell English", serif !important;
  font-style: italic;
  font-size: 0.95rem !important;
  opacity: 0.6;
}

.paper.clipping {
  background: #cfc6b0;
  font-size: 1.02rem;
  text-align: justify;
}

.paper.clipping h2 {
  font-style: normal;
  font-weight: bold;
  text-align: center;
  font-size: 2rem;
  letter-spacing: 0.1em;
  border-bottom: 3px double #2a2016;
}

.paper.clipping h3 {
  text-align: center;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
}

.paper.menu {
  text-align: center;
}

.paper .menu {
  font-size: 1.15rem;
  line-height: 1.9;
}

.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.05rem;
}

.ledger th,
.ledger td {
  border-bottom: 1px solid rgba(60, 40, 20, 0.35);
  padding: 0.3rem 0.4rem;
  text-align: left;
}

.paper.photo {
  max-width: 40rem;
  background: #e6dfcf;
  padding: 1.2rem;
}

.paper.photo figure {
  margin: 0;
}

.paper.photo img {
  display: block;
  width: 100%;
  max-height: 56vh;
  object-fit: contain;
  filter: grayscale(1) sepia(0.3) contrast(1.05);
}

.paper.photo figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.paper.photo .back {
  font-size: 1.05rem;
}

.paper.photo .back em {
  font-family: "La Belle Aurore", cursive;
  font-style: normal;
  font-size: 1.25rem;
  color: #241c34;
}

.paper.photo .fact {
  font-size: 0.95rem;
  color: #3a3022;
}

.paper.photo .credit {
  font-size: 0.78rem;
  color: #6a5a44;
  letter-spacing: 0.04em;
}

@media (max-width: 600px) {
  .paper {
    padding: 1.4rem 1.2rem;
  }
}

/* ---------------- quality picker ---------------- */
.quality {
  margin-top: 1rem;
  color: #8a7458;
  font-size: 0.9rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.quality select {
  background: #140c08;
  color: #e6d6b8;
  border: 1px solid rgba(138, 98, 48, 0.6);
  font-family: inherit;
  padding: 0.3rem 0.5rem;
}

.quality .now {
  opacity: 0.7;
  font-style: italic;
}

/* ---------------- touch controls ---------------- */
#view,
#touch {
  touch-action: none;
}

#touch {
  position: fixed;
  inset: 0;
  z-index: 9;
  -webkit-user-select: none;
  user-select: none;
}

#stick {
  position: absolute;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  border-radius: 50%;
  border: 1px solid rgba(230, 210, 170, 0.25);
  background: rgba(0, 0, 0, 0.15);
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}

#stick.on {
  opacity: 1;
}

#knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(230, 210, 170, 0.3);
  transform: translate(-50%, -50%);
}

.tbtns {
  position: absolute;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.tbtns button {
  width: 62px;
  height: 62px;
  padding: 0;
  border-radius: 50%;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  background: rgba(20, 12, 8, 0.45);
  border: 1px solid rgba(200, 160, 100, 0.45);
  color: #e6d6b8;
}

.tbtns #t-use {
  width: 78px;
  height: 78px;
  font-size: 1.6rem;
}

.tbtns button.active {
  background: rgba(150, 90, 30, 0.6);
}

.tbtns button.off {
  opacity: 0.45;
}

@media (pointer: coarse) {
  .hud-top {
    padding-top: max(0.8rem, env(safe-area-inset-top));
  }
  .status {
    bottom: 30%;
    font-size: 1rem;
  }
  .prompt {
    top: 60%;
  }
}

/* caught: the world goes black, then red */
#death {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 18;
  opacity: 0;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 30%, #000 75%);
  transition: opacity 0.25s ease-out, background-size 2.2s ease-in;
  background-size: 180% 180%;
  background-position: center;
}
#death canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateY(-4%);
  transition: opacity 0.5s ease-out 0.35s, transform 2.4s ease-in 0.35s;
}
#death.on {
  opacity: 1;
  background-size: 100% 100%;
}
#death.on canvas {
  opacity: 0.92;
  transform: translateY(2%);
}

/* briefing between the title and the game */
#briefing h2 {
  font-family: "Cinzel Decorative", Georgia, serif;
  font-weight: 700;
  font-size: clamp(26px, 4vw, 42px);
  margin: 6px 0 18px;
  color: #ead6ad;
}
#briefing .brief {
  max-width: 640px;
  text-align: left;
  margin: 0 auto 26px;
  padding-left: 1.4em;
  line-height: 1.55;
  font-size: clamp(15px, 1.7vw, 18px);
  color: #d9cfb8;
}
#briefing .brief li {
  margin-bottom: 12px;
  padding-left: 4px;
}
#briefing .brief li::marker {
  color: #c99a5b;
  font-weight: 700;
}
#briefing .brief b {
  color: #f0dfbb;
}
#briefing { overflow-y: auto; justify-content: safe center; }

/* the four freebies on the briefing */
#briefing .freebies {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(760px, 100%);
  margin: 0 auto 20px;
}
#briefing .freebies figure {
  margin: 0;
}
#briefing .fb-img {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: radial-gradient(ellipse at 50% 45%, rgba(190, 140, 70, 0.22), rgba(20, 12, 8, 0.6) 70%);
  border: 1px solid rgba(138, 98, 48, 0.4);
  padding: 6px;
}
#briefing .fb-img img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}
/* the newspaper photo lies on its side: turn it 90° clockwise so the masthead reads */
#briefing .fb-img img.rot {
  transform: rotate(90deg);
}
#briefing figcaption {
  margin-top: 6px;
  font-size: clamp(12px, 1.4vw, 15px);
  line-height: 1.3;
  color: #bfa985;
}
#briefing figcaption b {
  display: block;
  color: #f0dfbb;
  font-size: 1.08em;
}
#briefing .brief-warn {
  max-width: 640px;
  margin: 0 auto 10px;
  padding: 10px 14px;
  border-left: 2px solid #8a2a1a;
  background: rgba(70, 10, 6, 0.28);
  text-align: left;
  font-style: italic;
  line-height: 1.5;
  font-size: clamp(15px, 1.7vw, 18px);
  color: #e3c2a8;
}
#briefing .brief-pen {
  margin: 0 0 18px;
  color: #a99070;
  font-style: italic;
}
@media (max-width: 640px) {
  #briefing .freebies {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  #briefing {
    padding-top: 1.2rem;
    padding-bottom: 1.6rem;
  }
}

/* a code: 10 seconds to write it down; the game goes on behind it */
#code-pop {
  position: fixed;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  display: grid;
  place-items: center;
  padding: 16px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.38) 45%, rgba(0, 0, 0, 0) 80%);
  opacity: 0;
  transition: opacity 0.35s ease-out;
}
#code-pop.in {
  opacity: 1;
}
#code-pop.out {
  opacity: 0;
  transition: opacity 0.8s ease-in;
}
#code-pop .cp-card {
  text-align: center;
  text-shadow: 0 2px 10px #000;
  max-width: 34rem;
}
#code-pop .cp-got {
  margin: 0 0 6px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: #c49a5c;
}
/* the freebie itself, so you see what you have won */
#code-pop .cp-img {
  width: clamp(110px, 18vw, 170px);
  aspect-ratio: 1;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  padding: 8px;
  background: radial-gradient(ellipse at 50% 45%, rgba(220, 160, 80, 0.35), rgba(20, 12, 8, 0.75) 72%);
  border: 1px solid rgba(190, 140, 70, 0.5);
  box-shadow: 0 0 40px rgba(220, 150, 60, 0.25);
}
#code-pop .cp-img img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}
#code-pop .cp-img img.rot {
  transform: rotate(90deg);
}
@media (max-height: 520px) {
  #code-pop .cp-img {
    width: 84px;
    margin-bottom: 4px;
  }
}
#code-pop .cp-what {
  margin: 0;
  font-family: "Cinzel Decorative", Georgia, serif;
  font-size: clamp(16px, 2.4vw, 22px);
  color: #e9cf9a;
}
#code-pop .cp-ask {
  margin: 4px 0 6px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #c49a5c;
}
#code-pop .cp-code {
  margin: 0;
  font-family: "Courier New", ui-monospace, Menlo, monospace;
  font-weight: 700;
  font-size: clamp(44px, 9vw, 88px);
  letter-spacing: 0.22em;
  padding-left: 0.22em;
  color: #fff3dc;
  text-shadow: 0 0 22px rgba(230, 160, 70, 0.55), 0 3px 12px #000;
  -webkit-user-select: text;
  user-select: text;
}
#code-pop .cp-timer {
  position: relative;
  width: 54px;
  height: 54px;
  margin: 8px auto 6px;
}
#code-pop .cp-timer svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
#code-pop .cp-timer circle {
  fill: none;
  stroke-width: 2.5;
}
#code-pop .cp-track {
  stroke: rgba(230, 200, 150, 0.18);
}
#code-pop #cp-ring {
  stroke: #e0a050;
  stroke-linecap: round;
}
#code-pop.hurry #cp-ring {
  stroke: #d0402a;
}
#code-pop #cp-sec {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: #f0dcb4;
}
#code-pop .cp-use {
  margin: 0;
  font-size: 0.95rem;
  font-style: italic;
  color: #c8b08a;
}

/* the notebook quiz: four answers against the clock, the house keeps moving behind it */
#quiz {
  position: fixed;
  inset: 0;
  z-index: 13;
  display: grid;
  place-items: center;
  padding: 16px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.35) 75%);
}
#quiz .qz-card {
  width: min(640px, 100%);
  max-height: 100%;
  overflow: auto;
  padding: 20px 22px 16px;
  background: linear-gradient(170deg, #e2d3ad, #cdb98c);
  color: #2a1c10;
  border-radius: 3px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.8), inset 0 0 60px rgba(110, 70, 20, 0.35);
  font-family: "IM Fell English", Georgia, serif;
  transform: rotate(-0.6deg);
}
#quiz .qz-head {
  margin: 0 0 8px;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b4a26;
}
#quiz .qz-q {
  margin: 0 0 14px;
  font-size: clamp(19px, 2.6vw, 25px);
  line-height: 1.3;
}
#quiz .qz-answers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
#quiz .qz-answers button {
  font-family: "IM Fell English", Georgia, serif !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  font: inherit;
  font-size: clamp(15px, 1.9vw, 18px);
  color: #2a1c10;
  background: rgba(255, 248, 225, 0.45);
  border: 1px solid rgba(90, 60, 30, 0.45);
  border-radius: 3px;
  padding: 10px 12px;
  cursor: pointer;
  min-height: 48px;
}
#quiz .qz-answers button:hover:not(:disabled) {
  background: rgba(255, 248, 225, 0.8);
}
#quiz .qz-l {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(90, 60, 30, 0.6);
  font-weight: 700;
  font-size: 14px;
}
#quiz button.right {
  background: #4f7a3a !important;
  color: #fff6e0 !important;
  border-color: #3a5c2a !important;
}
#quiz button.wrong {
  background: #8a2a1a !important;
  color: #fff6e0 !important;
}
#quiz .qz-timer {
  position: relative;
  height: 8px;
  margin: 14px 0 6px;
  background: rgba(90, 60, 30, 0.2);
  border-radius: 4px;
  overflow: hidden;
}
#quiz #qz-bar {
  position: absolute;
  inset: 0;
  background: #7a4f22;
  transform-origin: left;
}
#quiz.hurry #qz-bar {
  background: #a3281a;
}
#quiz #qz-sec {
  display: none;
}
#quiz.done .qz-timer {
  opacity: 0.3;
}
#quiz .qz-fact {
  min-height: 1.3em;
  margin: 6px 0 4px;
  font-style: italic;
  font-size: 16px;
}
#quiz.ok .qz-fact {
  color: #2f5a20;
}
#quiz.bad .qz-fact {
  color: #8a2a1a;
}
#quiz .qz-hint {
  margin: 4px 0 0;
  font-size: 13px;
  color: #6b4a26;
}
#quiz kbd {
  font-family: inherit;
  border: 1px solid rgba(90, 60, 30, 0.5);
  border-radius: 3px;
  padding: 0 4px;
}
@media (max-width: 560px) {
  #quiz .qz-answers {
    grid-template-columns: 1fr;
  }
  #quiz .qz-hint {
    display: none;
  }
}

#title-screen .credit {
  margin: 10px 0 0;
  font-size: 11px;
  color: rgba(200, 180, 150, 0.45);
}
#title-screen .credit a {
  color: inherit;
}

/* ---- high scores ---- */
#scores-screen,
#end-screen {
  overflow-y: auto;
  justify-content: safe center;
}
#scores-screen h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
}
.scores {
  width: min(560px, 100%);
  margin: 0 auto 14px;
}
.scores table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(15px, 1.8vw, 18px);
  color: #e6d2ac;
}
.scores td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(160, 120, 70, 0.22);
  text-align: left;
  vertical-align: middle;
}
.scores td.rk {
  width: 2.6em;
  text-align: right;
  color: #a98c62;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.scores td.pts {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #f3e2bd;
  font-weight: 700;
}
.scores td.nm small {
  display: block;
  color: #9c8460;
  font-size: 0.78em;
}
.scores tr.first td {
  color: #ffe6a8;
}
.scores tr.first td.nm {
  font-size: 1.08em;
}
.scores tr.me td {
  background: rgba(200, 140, 60, 0.18);
}
.crown {
  width: 1.2em;
  height: 0.9em;
  vertical-align: -0.05em;
  margin-right: 0.35em;
  filter: drop-shadow(0 0 6px rgba(240, 190, 80, 0.6));
}
.scores .note,
.score-rule {
  color: #a99070;
  font-style: italic;
  font-size: 15px;
  margin: 8px 0;
}
.end-score {
  width: min(560px, 100%);
  margin: 0 auto 14px;
  font-size: clamp(15px, 1.8vw, 18px);
  color: #d9c39a;
}
.end-score .total {
  font-family: "Cinzel Decorative", Georgia, serif;
  font-size: clamp(30px, 5vw, 46px);
  color: #f6e3b8;
  margin: 2px 0 6px;
  text-shadow: 0 0 24px rgba(230, 160, 70, 0.45);
}
.end-score .parts {
  color: #a99070;
}
.end-score .rank {
  color: #f0d79e;
  margin-top: 6px;
}
.brief-name {
  width: min(520px, 100%);
  margin: 0 auto 16px;
}
.brief-name label {
  display: block;
  color: #e3c9a0;
  margin-bottom: 6px;
}
.brief-name input {
  width: 100%;
  font: inherit;
  font-size: 18px;
  text-align: center;
  padding: 9px 12px;
  color: #f6e6c4;
  background: rgba(20, 12, 8, 0.7);
  border: 1px solid rgba(190, 140, 70, 0.55);
  border-radius: 4px;
  outline: none;
}
.brief-name input:focus {
  border-color: #e0a050;
  box-shadow: 0 0 0 2px rgba(224, 160, 80, 0.2);
}
.brief-score {
  margin: 8px 0 0;
  font-size: 14px;
  color: #a99070;
  font-style: italic;
  line-height: 1.45;
}
