*,
*::before,
*::after {
  box-sizing: border-box;
}

body.hg {
  margin: 0;
  min-height: 100vh;
  background-color: #fff3df;
  background-image: linear-gradient(#fff3df 0 78vh, transparent 78vh), repeating-conic-gradient(#d9f2e8 0 25%, #fffaf0 0 50%);
  background-size: auto, 56px 56px;
  background-attachment: fixed;
  color: #2b2330;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

:where(.hg) :where(h1, h2, h3, p, ul, ol) {
  margin: 0;
}
:where(.hg) :where(ul, ol) {
  padding: 0;
  list-style: none;
}
:where(.hg) :where(a) {
  color: inherit;
}
:where(.hg) :where(button) {
  font: inherit;
  color: inherit;
}
:where(.hg) :where(:focus-visible) {
  outline: 3px solid #3a86ff;
  outline-offset: 3px;
  border-radius: 8px;
}

.hg-c1 {
  --c: #ff4d6d;
  --cd: rgb(250.4, 0, 45.0157303371);
}

.hg-c2 {
  --c: #ff8c1a;
  --cd: rgb(199.4, 99.264628821, 0);
}

.hg-c3 {
  --c: #ffbf1f;
  --cd: rgb(204.4, 146, 0);
}

.hg-c4 {
  --c: #22b8a7;
  --cd: rgb(21.2733944954, 115.1266055046, 104.4899082569);
}

.hg-c5 {
  --c: #3a86ff;
  --cd: rgb(0, 89.2710659898, 231.4);
}

.hg-c6 {
  --c: #7b61ff;
  --cd: rgb(54.8278481013, 15.4, 255);
}

.hg-only-setup,
.hg-only-write,
.hg-only-build,
.hg-only-link,
.hg-only-pass,
.hg-only-play,
.hg-only-final,
.hg-only-broken {
  display: none !important;
}

.is-setup .hg-only-setup,
.is-write .hg-only-write,
.is-build .hg-only-build,
.is-link .hg-only-link,
.is-pass .hg-only-pass,
.is-play .hg-only-play,
.is-final .hg-only-final,
.is-broken .hg-only-broken {
  display: block !important;
}

.is-setup .hg-setup.hg-only-setup,
.is-pass .hg-curtain.hg-only-pass {
  display: grid !important;
}

.hg-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px clamp(18px, 5vw, 80px);
}

.hg-brand {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.hg-bar-right {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.hg-bar-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(43, 35, 48, 0.66);
  text-decoration: none;
}
.hg-bar-link:hover {
  color: #2b2330;
}

.hg-mute {
  padding: 4px 10px;
  border: 2px solid #2b2330;
  border-radius: 99px;
  background: #fff;
  font-size: 0.95rem;
  line-height: 1.3;
  cursor: pointer;
  box-shadow: 0 3px 0 #2b2330;
}

.hg-eyebrow {
  margin-bottom: 12px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #e63e62;
}

.hg-title {
  font-family: "Poppins", sans-serif;
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.hg-title span {
  display: block;
}

.hg-title-1 {
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 6rem);
  color: #3a86ff;
  text-shadow: 1px 1px 0 #1f5fc4, 2px 2px 0 #1f5fc4, 3px 3px 0 #1f5fc4, 4px 4px 0 #1f5fc4, 6px 8px 12px rgba(43, 35, 48, 0.25);
}

.hg-title-2 {
  margin-top: 10px;
  font-weight: 900;
  font-size: clamp(1.9rem, 4.8vw, 3.4rem);
  color: #ff4d6d;
  text-shadow: 1px 1px 0 #c22849, 2px 2px 0 #c22849, 3px 3px 0 #c22849, 5px 7px 10px rgba(43, 35, 48, 0.22);
}

.hg-lede {
  margin-top: 18px;
  max-width: 560px;
  font-size: 1.05rem;
  color: rgba(43, 35, 48, 0.66);
}
.hg-lede b,
.hg-lede i {
  color: #2b2330;
}

.hg-panel-title {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.hg-small {
  margin-top: 14px;
  font-size: 0.86rem;
  color: rgba(43, 35, 48, 0.66);
}

.hg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: 2.5px solid #2b2330;
  border-radius: 16px;
  background: #fff;
  color: #2b2330;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 5px 0 #2b2330;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.hg-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #2b2330;
}
.hg-btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #2b2330;
}
.hg-btn--go {
  background: #ff4d6d;
  color: #fff;
}
.hg-btn--small {
  padding: 10px 16px;
  font-size: 0.88rem;
}
.hg-btn--ghost {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: rgba(43, 35, 48, 0.66);
}
.hg-btn--ghost:hover {
  box-shadow: none;
  color: #2b2330;
}

.hg-text-btn {
  padding: 0;
  border: 0;
  background: none;
  color: #3a86ff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.hg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.hg-actions--center {
  justify-content: center;
}

.hg-form-error {
  min-height: 1.4em;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #c2183f;
}

.hg-setup {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(16px, 4vw, 40px) clamp(18px, 5vw, 80px) clamp(48px, 7vw, 88px);
}

.hg-modes {
  display: grid;
  gap: 16px;
  margin-top: 28px;
  max-width: 600px;
}

.hg-mode {
  padding: 18px;
  border: 2.5px solid #2b2330;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 6px 0 #2b2330;
}

.hg-mode-title {
  margin-bottom: 12px;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
}

.hg-cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.hg-cat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 12px;
  border: 2px solid rgba(43, 35, 48, 0.14);
  border-radius: 14px;
  background: #fffaf0;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.3, 1.6, 0.5, 1), border-color 0.15s ease;
}
.hg-cat:hover {
  border-color: #2b2330;
  transform: translateY(-3px) rotate(-1deg);
}
.hg-cat--memories {
  background: #fff0f3;
}

.hg-cat-emoji {
  font-size: 1.5rem;
  line-height: 1;
}

.hg-streak {
  margin-top: 12px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #e0662a;
}

.hg-mode-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hg-mode-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 2.5px solid #2b2330;
  border-radius: 20px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 5px 0 #2b2330;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.hg-mode-btn b {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
}
.hg-mode-btn small {
  font-size: 0.8rem;
  color: rgba(43, 35, 48, 0.66);
}
.hg-mode-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 #2b2330;
}
.hg-mode-btn--star {
  background: #ffe1e8;
}

.hg-hero {
  perspective: 1000px;
}

.hg-hero-fridge {
  position: relative;
  width: min(380px, 100%);
  aspect-ratio: 4/5;
  margin: 0 auto;
  border-radius: 30px;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.55) 0 8%, transparent 18%), linear-gradient(160deg, #cdf0e2, #b8e6d4 55%, #8fd3ba);
  box-shadow: 14px 14px 0 #7cc4a8, 0 40px 60px -20px rgba(43, 35, 48, 0.4);
  transform: rotateY(-14deg) rotateX(6deg);
  transform-style: preserve-3d;
}

.hg-hero-handle,
.hg-handle {
  position: absolute;
  top: 18%;
  right: 16px;
  width: 14px;
  height: 34%;
  border-radius: 99px;
  background: linear-gradient(90deg, #e9edf0, #ffffff 40%, #b8c0c7);
  box-shadow: 4px 4px 0 #8f9aa3, inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.hg-hero-tile {
  position: absolute;
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 7vw, 4.6rem);
  line-height: 1;
  color: var(--c);
  text-shadow: 1px 1px 0 var(--cd), 2px 2px 0 var(--cd), 3px 3px 0 var(--cd), 4px 4px 0 var(--cd), 5px 8px 8px rgba(43, 35, 48, 0.35);
}
.hg-hero-tile:nth-child(2) {
  left: 14%;
  top: 18%;
  transform: rotate(-8deg);
}
.hg-hero-tile:nth-child(3) {
  left: 32%;
  top: 14%;
  transform: rotate(6deg);
}
.hg-hero-tile:nth-child(4) {
  left: 50%;
  top: 19%;
  transform: rotate(-4deg);
}
.hg-hero-tile:nth-child(5) {
  left: 66%;
  top: 15%;
  transform: rotate(9deg);
}
.hg-hero-tile:nth-child(6) {
  left: 26%;
  top: 44%;
  transform: rotate(5deg);
}
.hg-hero-tile:nth-child(7) {
  left: 45%;
  top: 46%;
  transform: rotate(-7deg);
}

.hg-hero-heart {
  position: absolute;
  left: 38%;
  bottom: 12%;
  font-size: 3.6rem;
  filter: drop-shadow(3px 5px 0 rgba(43, 35, 48, 0.25));
}

.hg-panel {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 64px) clamp(18px, 5vw, 80px) 72px;
}
.hg-panel--wide {
  max-width: 760px;
}

.hg-form {
  margin-top: 24px;
}

.hg-field {
  position: relative;
  display: block;
  margin-bottom: 14px;
}
.hg-field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: rgba(43, 35, 48, 0.66);
}
.hg-field small {
  font-weight: 500;
}
.hg-field input {
  width: 100%;
  padding: 13px 16px;
  border: 2.5px solid #2b2330;
  border-radius: 14px;
  background: #fff;
  color: #2b2330;
  font: inherit;
  font-weight: 600;
}
.hg-field input::placeholder {
  color: rgba(43, 35, 48, 0.35);
}
.hg-field input:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(58, 134, 255, 0.25);
}
.hg-field--name {
  max-width: 280px;
}

.hg-peek {
  position: absolute;
  right: 10px;
  bottom: 9px;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  background: #f3eee4;
  cursor: pointer;
}

.hg-qs {
  display: grid;
  gap: 10px;
  margin: 6px 0 12px;
}

.hg-q {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 2px solid rgba(43, 35, 48, 0.14);
  border-radius: 16px;
  background: #fff;
}
.hg-q input {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 2px solid rgba(43, 35, 48, 0.14);
  border-radius: 10px;
  background: #fffaf0;
  color: #2b2330;
  font: inherit;
  font-size: 0.92rem;
}
.hg-q input:focus {
  outline: none;
  border-color: #2b2330;
}
.hg-q .hg-q-a {
  font-weight: 700;
  text-transform: uppercase;
}
.hg-q .hg-q-a::placeholder {
  font-weight: 500;
  text-transform: none;
}

.hg-q-rm {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f3eee4;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.hg-q-rm[hidden] {
  display: none;
}

.hg-link-box {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.hg-link-box input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 2.5px solid #2b2330;
  border-radius: 14px;
  background: #fff;
  color: #2b2330;
  font: inherit;
  font-size: 0.86rem;
}

.hg-curtain {
  min-height: 70vh;
  place-items: center;
  padding: 24px clamp(18px, 5vw, 80px) 64px;
  perspective: 900px;
}

.hg-curtain-card {
  width: min(520px, 100%);
  padding: clamp(28px, 5vw, 48px);
  border: 3px solid #2b2330;
  border-radius: 30px;
  background: #fff;
  text-align: center;
  box-shadow: 0 8px 0 #2b2330;
}
.hg-curtain-card .hg-lede {
  margin: 12px auto 24px;
}

.hg-curtain-icon {
  margin-bottom: 10px;
  font-size: 3.4rem;
  line-height: 1;
}

.hg-play {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 80px) 56px;
}

.hg-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 2.5px solid #2b2330;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 0 #2b2330;
  font-weight: 700;
  font-size: 0.9rem;
}

.hg-hud-mode,
.hg-hud-score {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hg-lives {
  display: inline-flex;
  gap: 5px;
  flex: 0 0 auto;
}

.hg-life {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff9db0, #ff4d6d 60%);
  box-shadow: 1px 2px 0 #c22849;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hg-life.is-used {
  opacity: 0.18;
  transform: scale(0.7);
  box-shadow: none;
}

.hg-clue {
  min-height: 1.6em;
  margin: 16px 0 14px;
  font-weight: 700;
  text-align: center;
}

.hg-stage {
  perspective: 1100px;
}

.hg-fridge {
  position: relative;
  width: min(440px, 100%);
  margin: 0 auto;
}

.hg-door {
  position: relative;
  padding: 16px 40px 18px 18px;
  border-radius: 28px;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.55) 0 7%, transparent 16%), linear-gradient(160deg, #cdf0e2, #b8e6d4 55%, #8fd3ba);
  box-shadow: 10px 10px 0 #7cc4a8, 12px 12px 0 #6bb397, 0 40px 60px -24px rgba(43, 35, 48, 0.45);
  transform: rotateY(-8deg) rotateX(4deg);
  transform-style: preserve-3d;
}

.hg-figure {
  display: block;
  width: 74%;
  margin: 0 auto;
  overflow: visible;
}

.hg-post rect {
  fill: #c9894f;
  stroke: #7a4b22;
  stroke-width: 2;
}

.hg-brace {
  stroke: #7a4b22;
  stroke-width: 6;
  stroke-linecap: round;
}

.hg-ribbon,
.hg-string {
  fill: none;
  stroke: #e63e62;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.hg-string {
  stroke: #2b2330;
  stroke-width: 1.2;
}

.hg-balloon-heart {
  fill: #ff4d6d;
  stroke: #c22849;
  stroke-width: 0.8;
}

.hg-piece {
  opacity: 0;
  filter: drop-shadow(1.5px 2.5px 0 rgba(43, 35, 48, 0.3)) drop-shadow(0 4px 4px rgba(43, 35, 48, 0.18));
}
.hg-piece.is-on {
  opacity: 1;
}
.hg-piece.is-flying {
  filter: drop-shadow(6px 12px 0 rgba(43, 35, 48, 0.18)) drop-shadow(0 18px 14px rgba(43, 35, 48, 0.25));
}

.hg-skin {
  fill: #ffd6b8;
  stroke: #2b2330;
  stroke-width: 2;
}

.hg-ink {
  fill: #2b2330;
}

.hg-blush {
  fill: #ff9db0;
}

.hg-mouth {
  fill: none;
  stroke: #2b2330;
  stroke-width: 2;
  stroke-linecap: round;
}

.hg-hair {
  fill: none;
  stroke: #5a3a22;
  stroke-width: 5;
  stroke-linecap: round;
}

.hg-shirt {
  fill: #3a86ff;
  stroke: #2b2330;
  stroke-width: 2;
}

.hg-shirt-heart {
  fill: #fff;
}

.hg-limb {
  stroke: #3a86ff;
  stroke-width: 9;
  stroke-linecap: round;
}

.hg-limb--leg {
  stroke: #2b2330;
}

.hg-shoe {
  fill: #ff4d6d;
  stroke: #2b2330;
  stroke-width: 2;
}

.hg-word {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  margin-top: 10px;
  padding: 12px 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, #6c757d, #495057);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.25), 0 4px 0 #343a40;
  --slot: 34px;
}

.hg-wordgroup {
  display: inline-flex;
  gap: 4px;
}

.hg-slot {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--slot);
  height: calc(var(--slot) * 1.2);
  border-bottom: 3px solid rgba(255, 255, 255, 0.75);
}
.hg-slot.is-punct {
  width: calc(var(--slot) * 0.45);
  border-bottom: 0;
}

.hg-tile,
.hg-fly {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  line-height: 1;
  color: var(--c, #fff);
  text-shadow: 1px 1px 0 var(--cd, #999), 2px 2px 0 var(--cd, #999), 3px 3px 0 var(--cd, #999), 4px 6px 6px rgba(0, 0, 0, 0.3);
}

.hg-tile {
  visibility: hidden;
  font-size: calc(var(--slot) * 0.95);
}
.is-shown > .hg-tile {
  visibility: visible;
}
.is-missed > .hg-tile {
  color: #ffd0d8;
  text-shadow: 1px 1px 0 #c22849, 2px 2px 0 #c22849, 3px 3px 0 #c22849;
}
.hg-tile.hg-punct {
  color: #fff;
  text-shadow: none;
}

.hg-fly-layer {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  perspective: 900px;
}

.hg-fly {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  will-change: transform;
}

.hg-tray {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 82%;
  margin: 22px auto 0;
  padding: 6px 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, #e9edf0, #c5ccd2);
  box-shadow: 0 4px 0 #8f9aa3;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5c6670;
}
.hg-tray i {
  font-style: normal;
}

.hg-keys {
  display: grid;
  gap: 7px;
  margin-top: 22px;
}

.hg-keyrow {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.hg-key {
  flex: 0 1 52px;
  min-width: 0;
  height: 54px;
  padding: 0;
  border: 2px solid rgba(43, 35, 48, 0.14);
  border-radius: 12px;
  background: #fffaf0;
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-size: 1.55rem;
  line-height: 1;
  color: var(--c);
  text-shadow: 1px 1px 0 var(--cd), 2px 2px 0 var(--cd), 3px 3px 0 var(--cd);
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(43, 35, 48, 0.18);
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.3s ease;
}
.hg-key:hover:not(:disabled) {
  transform: translateY(-3px) rotate(-3deg);
  box-shadow: 0 7px 0 rgba(43, 35, 48, 0.18);
}
.hg-key:disabled {
  cursor: default;
}
.hg-key.is-hit {
  color: transparent;
  text-shadow: none;
  background: #f1ebdf;
  box-shadow: inset 0 3px 6px rgba(43, 35, 48, 0.15);
}
.hg-key.is-miss {
  opacity: 0.3;
  filter: grayscale(1);
}

.hg-keyhint {
  margin-top: 12px;
  font-size: 0.8rem;
  color: rgba(43, 35, 48, 0.66);
  text-align: center;
}

.hg-end {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(43, 35, 48, 0.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  perspective: 900px;
}
.hg-end[hidden] {
  display: none;
}

.hg-end-card {
  width: min(420px, 100%);
  padding: 28px 24px;
  border: 3px solid #2b2330;
  border-radius: 28px;
  background: #fff;
  text-align: center;
  box-shadow: 0 8px 0 #2b2330;
}

.hg-end-emoji {
  font-size: 3rem;
  line-height: 1;
}

.hg-end-title {
  margin-top: 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-size: 1.9rem;
}

.hg-end-word {
  margin-top: 6px;
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  color: #3a86ff;
}

.hg-end-line {
  margin-top: 8px;
  color: rgba(43, 35, 48, 0.66);
}

.hg-final {
  padding: clamp(24px, 5vw, 40px);
  border: 3px solid #2b2330;
  border-radius: 30px;
  background: #fff;
  text-align: center;
  box-shadow: 0 8px 0 #2b2330;
}
.hg-final .hg-lede {
  margin: 8px auto 0;
}

.hg-final-score {
  margin: 4px 0 6px;
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-size: clamp(4.5rem, 16vw, 7rem);
  line-height: 1;
  color: #ff4d6d;
  text-shadow: 2px 2px 0 #c22849, 4px 4px 0 #c22849, 6px 6px 0 #c22849, 8px 12px 14px rgba(43, 35, 48, 0.25);
}
.hg-final-score small {
  font-size: 0.45em;
}

.hg-final-list {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  text-align: left;
}
.hg-final-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f6fbf9;
  font-size: 0.9rem;
}
.hg-final-list .is-wrong {
  background: #fff1f4;
}
.hg-final-list b {
  flex: 0 0 auto;
  font-family: "Poppins", sans-serif;
}
.hg-final-list .is-right b {
  color: #12866d;
}
.hg-final-list .is-wrong b {
  color: #c2183f;
}

.hg-guide {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(18px, 5vw, 80px) 40px;
}

.hg-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: clamp(16px, 4vw, 56px);
  padding: clamp(32px, 5vw, 56px) 0;
  border-top: 2px dashed rgba(43, 35, 48, 0.14);
}
.hg-row h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hg-row p {
  color: rgba(43, 35, 48, 0.66);
}
.hg-row p + p {
  margin-top: 14px;
}
.hg-row strong {
  color: #2b2330;
}

.hg-faq details {
  border-bottom: 2px dashed rgba(43, 35, 48, 0.14);
}
.hg-faq summary {
  padding: 16px 0;
  font-weight: 700;
  cursor: pointer;
}
.hg-faq p {
  padding-bottom: 16px;
}

.hg-foot {
  padding: 28px clamp(18px, 5vw, 80px) 40px;
  border-top: 2px dashed rgba(43, 35, 48, 0.14);
  font-size: 0.88rem;
  color: rgba(43, 35, 48, 0.66);
  text-align: center;
  background: rgba(255, 250, 240, 0.85);
}
.hg-foot a {
  color: #2b2330;
}

.hg-foot-meta {
  margin-top: 8px !important;
  font-size: 0.8rem;
}

.hg-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  max-width: calc(100vw - 32px);
  padding: 12px 20px;
  border: 2.5px solid #2b2330;
  border-radius: 99px;
  background: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 4px 0 #2b2330;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.hg-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 860px) {
  .hg-setup.hg-only-setup {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .hg-hero {
    order: -1;
  }
  .hg-hero-fridge {
    width: min(260px, 70%);
  }
  .hg-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .hg-cats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hg-mode-row {
    grid-template-columns: 1fr;
  }
  .hg-q {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .hg-q .hg-q-q {
    grid-column: 1/-1;
  }
  .hg-door {
    padding: 12px 32px 14px 12px;
  }
  .hg-handle {
    right: 10px;
    width: 10px;
  }
  .hg-keyrow {
    gap: 4px;
  }
  .hg-key {
    height: 48px;
    font-size: 1.25rem;
    border-radius: 10px;
  }
  .hg-keys {
    gap: 6px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hg-key,
  .hg-btn,
  .hg-cat,
  .hg-toast {
    transition: none;
  }
}
