@font-face {
  font-family: "Chronicle";
  src: url("assets/fonts/chronicle.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --paper: #f7f3e9;
  --ink: #273d31;
  --muted: #686d5f;
  --gold: #b38337;
  --rust: #994f38;
  --line: #dcdacc;
  --serif: "Chronicle", Georgia, serif;
  --sans: "Chronicle", Georgia, serif;
  --reading-size: 24px;
}
* {
  box-sizing: border-box;
}
*,
*::before,
*::after {
  line-height: 1.5;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
img {
  max-width: 100%;
  display: block;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 5px;
}
::selection {
  background: #e3c687;
  color: #172d23;
}
.wrap {
  width: min(1200px, calc(100% - 96px));
  margin-inline: auto;
}
.header {
  height: 96px;
  background: var(--paper);
  position: relative;
  z-index: 5;
  border-bottom: 1px solid #e4dfd2;
}
.header-inner {
  height: 100%;
  width: min(1392px, calc(100% - 96px));
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font: 700 30px/1.5 var(--serif);
  letter-spacing: 2px;
}
.brand-caption {
  display: block;
  font: 700 8px/1.5 var(--sans);
  letter-spacing: 2px;
  margin-top: 7px;
}
nav {
  display: flex;
  gap: 34px;
  font-size: 13px;
  font-weight: 600;
}
nav a:hover,
.text-button:hover {
  color: var(--rust);
}
.header-actions {
  display: flex;
  gap: 25px;
  align-items: center;
}
.language {
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  padding: 10px 2px;
}
.language span {
  font-size: 15px;
  margin-left: 5px;
}
.button {
  background: var(--ink);
  color: #fffdf4;
  border: 1px solid var(--ink);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 48px;
  padding: 12px 23px;
  font-weight: 700;
  font-size: 12px;
  transition:
    background 0.18s,
    transform 0.18s;
}
.button:hover {
  background: #3c5947;
  transform: translateY(-2px);
}
.button.small {
  min-height: 42px;
  padding: 9px 21px;
  gap: 27px;
}
.button > span[aria-hidden="true"]:last-child {
  font-size: 19px;
  line-height: 1.5;
}
.hero {
  height: 610px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("assets/village-panorama.webp") 55% 56% / cover;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      90deg,
      #f7f3e9fa 0%,
      #f7f3e9e8 24%,
      #f7f3e980 43%,
      #f7f3e900 68%
    ),
    linear-gradient(0deg, #2a382231, transparent 35%);
}
.hero-content {
  padding-top: 80px;
}
.eyebrow {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.5;
  margin: 0;
}
.tiny-flower {
  color: var(--rust);
  font-size: 20px;
  vertical-align: middle;
  margin-right: 8px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font: 500 clamp(44px, 4.3vw, 68px)/1.5 var(--serif);
  letter-spacing: -2.4px;
  margin-bottom: 24px;
  max-width: 710px;
}
h1 em,
h2 em {
  font-weight: 500;
  color: #7d5735;
}
.hero-copy {
  max-width: 520px;
  font-size: 27px;
  line-height: 1.5;
  /* color: #4e5949; */
  margin-bottom: 27px;
}
.hero-button {
  min-height: 52px;
  padding: 13px 23px;
  gap: 17px;
}
.hero-note {
  font-size: 19.5px;
  /* color: #55604f; */
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}
.status-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  flex: none;
  border-radius: 50%;
  background: #729358;
}
.hero-caption {
  position: absolute;
  bottom: 25px;
  right: 48px;
  display: flex;
  gap: 8px;
  color: #fffbe9;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 6px #152b12;
}
.embroidery {
  height: 15px;
  background-color: #f1e5ce;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='15'%3E%3Cpath d='M0 7.5 7.5 0 15 7.5 7.5 15ZM24 7.5 31.5 0 39 7.5 31.5 15Z' fill='none' stroke='%23994f38' stroke-width='2'/%3E%3Cpath d='m18 5 5 5m-5 0 5-5m19 0 5 5m-5 0 5-5' stroke='%23994f38' stroke-width='1.5'/%3E%3C/svg%3E");
}
.promise-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  border-bottom: 1px solid var(--line);
  min-height: 66px;
  padding: 16px 20px;
  flex-wrap: wrap;
  font-size: var(--reading-size);
  font-weight: 700;
  letter-spacing: 1.5px;
}
.promise-strip i {
  font-style: normal;
  color: var(--rust);
  font-size: var(--reading-size);
}
.section {
  padding-top: 85px;
  padding-bottom: 88px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 32px;
}
.section-heading .eyebrow {
  color: var(--rust);
  margin-bottom: 0;
}
h2 {
  font: 500 36px/1.5 var(--serif);
  letter-spacing: -1px;
  margin-bottom: 0;
}
.section-intro {
  /* color: var(--muted); */
  font-size: 24px;
  white-space: pre-line;
  line-height: 1.5;
  margin: 0 0 3px;
}
.game-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.game-card {
  border: 1px solid #d7d7c7;
  border-radius: 5px;
  overflow: hidden;
  background: #fcfaf4;
  box-shadow: 0 5px 16px #25372a04;
}
.game-image {
  display: block;
  position: relative;
  height: 280px;
  overflow: hidden;
  background: #354735;
}
.game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.game-image:hover img {
  transform: scale(1.04);
}
.game-image:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #132b3655, transparent 50%);
  pointer-events: none;
}
.image-tag {
  position: absolute;
  z-index: 1;
  top: 18px;
  left: 18px;
  background: #fbf7eaf2;
  border: 1px solid #ffffff70;
  border-radius: 2px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  max-width: calc(100% - 36px);
  font-size: var(--reading-size);
  font-weight: 800;
  letter-spacing: 1px;
}
.image-number {
  position: absolute;
  z-index: 1;
  bottom: 9px;
  right: 19px;
  font: 500 36px/1.5 var(--sans);
  color: #fff8dfb0;
}
.game-body {
  padding: 28px 29px 19px;
}
.game-genre {
  font-size: 16.5px;
  letter-spacing: 1.7px;
  color: var(--rust);
  font-weight: 800;
  margin-bottom: 10px;
}
.game-body h3 {
  font: 500 clamp(26px, 2.5vw, 34px)/1.5 var(--serif);
  letter-spacing: -0.7px;
  margin-bottom: 4px;
}
.game-subtitle {
  font-size: 24px;
  color: #6c705f;
  margin-bottom: 18px;
}
.game-description {
  font-size: 24px;
  line-height: 1.5;
  /* color: #5c6459; */
  min-height: 70px;
  margin-bottom: 20px;
}
.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 26px;
}
.game-tags span {
  padding: 3px 9px;
  background: #eeeee3;
  color: #5c6655;
  border-radius: 2px;
  max-width: 100%;
  font-size: var(--reading-size);
}
.game-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #e3e2d6;
  padding-top: 20px;
}
.game-actions .button {
  flex: 1;
  max-width: 220px;
}
.text-button {
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  padding: 10px 0 10px 12px;
  white-space: nowrap;
}
.desktop-note {
  font-size: 18px;
  color: #747968;
  margin: 12px 0 0;
}
.world {
  background: #eaece0;
  border-top: 1px solid #dce0d0;
  border-bottom: 1px solid #dce0d0;
  padding: 70px 0;
}
.world-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 88px;
  align-items: center;
}
.world-picture {
  position: relative;
  padding: 10px;
  border: 1px solid #c0c6b0;
  background: #f2f1e5;
  transform: rotate(-2deg);
}
.world-picture img {
  width: 100%;
  height: 375px;
  object-fit: cover;
  object-position: 85% 50%;
}
.picture-caption {
  display: block;
  text-align: center;
  font: italic 13px/1.5 var(--sans);
  padding: 14px 5px 6px;
  color: #69705e;
}
.world-copy .eyebrow {
  color: #6b7357;
  font-size: 16.5px;
}
.world-copy h2 {
  font-size: 43px;
  margin-bottom: 24px;
}
.world-copy p:not(.eyebrow) {
  font-size: 24px;
  line-height: 1.5;
  /* color: #626b59; */
  max-width: 390px;
}
.world-signature {
  display: flex;
  align-items: center;
  gap: 13px;
  font: italic 17px/1.5 var(--sans);
  margin-top: 26px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  margin-top: 40px;
  margin-bottom: 48px;
}
.steps article + article {
  border-left: 1px solid var(--line);
  padding-left: 40px;
}
.step-number {
  color: var(--gold);
  font: 500 28px/1.5 var(--sans);
  display: block;
  margin-bottom: 17px;
}
.steps h3 {
  font: 500 22px/1.5 var(--serif);
  margin-bottom: 12px;
}
.steps p {
  /* color: #68705e; */
  font-size: 24px;
  line-height: 1.5;
  margin: 0;
  max-width: 285px;
}
.faq {
  border-top: 1px solid var(--line);
}
details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
summary {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
summary::-webkit-details-marker {
  display: none;
}
summary:after {
  content: "+";
  font-size: 21px;
  line-height: 1.5;
}
details[open] summary:after {
  content: "−";
}
details p {
  font-size: 24px;
  /* color: var(--muted); */
  max-width: 800px;
  margin: 14px 0 0;
}
.closing {
  background: #273e31;
  color: #faf4e5;
  text-align: center;
  padding: 48px 0 54px;
  position: relative;
  overflow: hidden;
}
.closing:after,
.closing:before {
  content: "✳";
  position: absolute;
  font: 220px/1.5 var(--sans);
  color: #ffffff04;
  top: -30px;
  left: 5%;
}
.closing:after {
  left: auto;
  right: 5%;
  top: 50px;
}
.closing-flower {
  font-size: 35px;
  line-height: 1.5;
  color: #d5af62;
  display: block;
  margin-bottom: 17px;
}
.closing .eyebrow {
  font-size: 15px;
  letter-spacing: 2px;
  color: #c7cfba;
  margin-bottom: 0;
}
.closing h2 {
  font-size: 44px;
  margin-bottom: 24px;
}
.button.gold {
  background: #e3c386;
  color: #293b2e;
  border-color: #e3c386;
  min-width: 170px;
}
.button.gold:hover {
  background: #f0d59f;
}
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 32px;
  padding-bottom: 32px;
  font-size: 24px;
  color: #717867;
}
.footer-brand {
  font: 700 22px/1.5 var(--serif);
  color: var(--ink);
  letter-spacing: 1px;
}
.footer-brand span {
  font: 24px/1.5 var(--sans);
  letter-spacing: 0;
  margin-left: 15px;
}
.footer > a:last-child {
  font-weight: 700;
}
.skip {
  position: absolute;
  left: 20px;
  top: -70px;
  padding: 10px 20px;
  background: var(--ink);
  color: white;
  z-index: 99;
}
.skip:focus {
  top: 10px;
}
dialog {
  width: min(540px, calc(100% - 32px));
  padding: 36px;
  border: 1px solid #c5c8b3;
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 25px 100px #14271960;
  max-height: calc(100dvh - 40px);
  overflow: auto;
}
dialog::backdrop {
  background: #172d23aa;
  backdrop-filter: blur(4px);
}
dialog .eyebrow {
  font-size: 16.5px;
  color: var(--rust);
  padding-right: 20px;
}
dialog h2 {
  font-size: 29px;
}
.guide-intro {
  color: var(--muted);
  font-size: 24px;
  margin-top: 15px;
}
dialog dl {
  margin: 20px 0 27px;
}
dialog dl div {
  display: grid;
  grid-template-columns: 160px 1fr;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  gap: 15px;
}
dt {
  font-size: 11px;
  font-weight: 800;
}
dd {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
.close-button {
  position: absolute;
  right: 12px;
  top: 10px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--ink);
  width: 34px;
  height: 34px;
}
body:has(dialog[open]) {
  overflow: hidden;
}
[hidden] {
  display: none !important;
}
.button:disabled {
  background: #d6d8d0;
  border-color: #c7cbc0;
  color: #757c70;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.in-progress .game-image img {
  filter: grayscale(0.65);
}
.in-progress .game-image:hover img {
  transform: none;
}
.progress-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(104, 111, 110, 0.64);
  color: #fffdf5;
  text-align: center;
  padding: 20px;
}
.progress-overlay span {
  font: 600 clamp(28px, 3vw, 40px)/1.5 var(--serif);
  text-shadow: 0 2px 10px #17251e80;
  letter-spacing: 0.3px;
}
@media (min-width: 1600px) {
  .hero-art {
    background-position: 55% 58%;
  }
  .hero {
    height: 660px;
  }
  .hero-content {
    padding-top: 108px;
  }
}
@media (max-width: 1000px) {
  .wrap,
  .header-inner {
    width: calc(100% - 64px);
  }
  nav {
    gap: 22px;
  }
  .hero {
    height: 570px;
  }
  .hero-content {
    padding-top: 80px;
  }
  h1 {
    font-size: 55px;
  }
  .hero:after {
    background: linear-gradient(
      90deg,
      #f7f3e9f8 0%,
      #f7f3e9d9 35%,
      #f7f3e935 75%
    );
  }
  .game-image {
    height: 230px;
  }
  .game-body {
    padding: 23px;
  }
  .world-layout {
    gap: 45px;
  }
  .world-copy h2 {
    font-size: 36px;
  }
  .world-picture img {
    height: 350px;
  }
  .steps {
    gap: 25px;
  }
  .steps article + article {
    padding-left: 25px;
  }
  .promise-strip {
    gap: 24px;
  }
}
@media (max-width: 700px) {
  html {
    scroll-padding-top: 20px;
  }
  .wrap,
  .header-inner {
    width: calc(100% - 40px);
  }
  .header {
    height: 78px;
  }
  .brand {
    font-size: 25px;
    gap: 8px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .brand-caption {
    font-size: 6px;
    letter-spacing: 1.5px;
  }
  .header-inner {
    gap: 10px;
  }
  nav {
    display: none;
  }
  .header-actions {
    gap: 16px;
  }
  .header-actions .button {
    padding: 8px 13px;
    min-height: 38px;
    gap: 16px;
  }
  .hero {
    height: 645px;
  }
  .hero-art {
    background-position: 64% 50%;
  }
  .hero:after {
    background: linear-gradient(
      180deg,
      #f7f3e9f5 0%,
      #f7f3e9e6 64%,
      #f7f3e9a0 80%,
      #20351a33 100%
    );
  }
  .hero-content {
    padding-top: 47px;
  }
  .hero .eyebrow {
    font-size: 15px;
    letter-spacing: 1.6px;
  }
  h1 {
    font-size: 44px;
    letter-spacing: -1.8px;
    line-height: 1.5;
    margin-bottom: 20px;
  }
  .hero-copy {
    font-size: 24px;
    line-height: 1.5;
    max-width: 330px;
  }
  .hero-button {
    min-height: 48px;
  }
  .hero-caption {
    bottom: 20px;
    right: 20px;
    font-size: 8px;
  }
  .promise-strip {
    height: auto;
    min-height: 67px;
    padding: 15px 20px;
    gap: 14px;
    flex-wrap: wrap;
    letter-spacing: 0.7px;
  }
  .promise-strip span {
    max-width: 100%;
    text-align: center;
  }
  .section {
    padding-top: 51px;
    padding-bottom: 52px;
  }
  .section-heading {
    display: block;
    margin-bottom: 25px;
  }
  h2 {
    font-size: 30px;
    letter-spacing: -0.8px;
  }
  .section-heading .eyebrow {
    font-size: 15px;
  }
  .section-intro {
    margin-top: 14px;
    font-size: 22.5px;
  }
  .game-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .game-image {
    height: 230px;
  }
  .game-body {
    padding: 23px;
  }
  .game-body h3 {
    font-size: 29px;
  }
  .game-description {
    min-height: 0;
    font-size: 24px;
  }
  .world {
    padding: 48px 0;
  }
  .world-layout {
    grid-template-columns: 1fr;
    gap: 38px;
  }
  .world-picture {
    max-width: 460px;
    margin: auto;
    width: 94%;
  }
  .world-picture img {
    height: 300px;
  }
  .world-copy h2 {
    font-size: 36px;
  }
  .world-copy p:not(.eyebrow) {
    max-width: none;
  }
  .world-signature {
    margin-top: 22px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 25px;
    margin-bottom: 32px;
  }
  .steps article {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 0 18px;
  }
  .steps article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0 0;
  }
  .step-number {
    grid-row: 1/3;
    font-size: 25px;
    margin: 0;
  }
  .steps h3 {
    font-size: 22px;
    margin-bottom: 8px;
  }
  .steps p {
    max-width: none;
  }
  .faq summary {
    font-size: 11px;
  }
  .closing {
    padding: 44px 0;
  }
  .closing h2 {
    font-size: 36px;
  }
  .closing .eyebrow {
    font-size: 13.5px;
  }
  .footer {
    flex-wrap: wrap;
    gap: 18px;
  }
  .footer > span {
    order: 3;
    width: 100%;
    font-size: 24px;
  }
  .footer-brand span {
    font-size: 24px;
    margin-left: 8px;
  }
  .footer-brand {
    font-size: 20px;
  }
  dialog {
    padding: 28px 22px;
  }
  dialog dl div {
    grid-template-columns: 125px 1fr;
  }
  .game-actions .button {
    max-width: none;
  }
  .text-button {
    font-size: 9px;
  }
  .hero-note {
    font-size: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
  }
}

/* Larger reading text and a donation link that fits on narrow screens. */
p {
  font-size: 24px;
  color: black;
}
.hero {
  height: auto;
  min-height: 660px;
}
.hero-content {
  padding-bottom: 88px;
}
.donate-button {
  background: #e3c386;
  border-color: #c4a568;
  color: var(--ink);
}
.donate-button:hover {
  background: #f0d59f;
}
@media (max-width: 1000px) {
  .header-inner {
    gap: 18px;
  }
  nav {
    gap: 18px;
  }
  .header-actions {
    gap: 14px;
  }
}
@media (max-width: 700px) {
  .header-actions {
    gap: 12px;
  }
  .header-actions a[href="#games"] {
    display: none;
  }
  .header-actions .donate-button {
    padding: 9px 12px;
    gap: 10px;
  }
  .hero {
    min-height: 740px;
  }
  .hero-content {
    padding-bottom: 100px;
  }
  .hero-copy {
    line-height: 1.5;
  }
}
@media (max-width: 900px) {
  nav {
    display: none;
  }
  .brand,
  .header-actions {
    flex-shrink: 0;
  }
  .language {
    white-space: nowrap;
  }
}
@media (max-width: 700px) {
  .hero-note {
    width: fit-content;
    max-width: 100%;
    background: #f7f3e9d9;
    padding: 4px 8px;
    border-radius: 2px;
  }
}
@media (max-width: 360px) {
  h1 {
    font-size: 40px;
  }
  .header-inner {
    width: calc(100% - 28px);
    gap: 8px;
  }
  .brand {
    font-size: 22px;
  }
  .header-actions {
    gap: 8px;
  }
  .header-actions .donate-button {
    padding-inline: 9px;
    gap: 7px;
  }
}
.language {
  appearance: none;
  -webkit-appearance: none;
  width: 62px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 8px 23px 8px 9px;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='m1 1 4 4 4-4' fill='none' stroke='%23273d31' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  color: var(--ink);
  font: 800 12px/1.5 var(--sans);
  cursor: pointer;
}
.language option {
  background: var(--paper);
  color: var(--ink);
}
.language:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 4px;
}
.header-actions .button > span:last-child {
  font-size: inherit;
  line-height: 1.5;
}
.feedback-button {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid #bda26a;
  border-radius: 50%;
  background: var(--ink);
  color: #fffdf4;
  box-shadow: 0 4px 18px #14271938;
  transition:
    background 0.18s,
    transform 0.18s;
}
.feedback-button:hover {
  background: #3c5947;
  transform: translateY(-2px);
}
.feedback-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  padding: 7px 12px;
  border-radius: 3px;
  background: var(--ink);
  color: #fffdf4;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 3px 10px #14271926;
  pointer-events: none;
  opacity: 0;
  transform: translateX(4px);
  transition:
    opacity 0.18s,
    transform 0.18s;
}
.feedback-button:hover .feedback-tooltip,
.feedback-button:focus-visible .feedback-tooltip {
  opacity: 1;
  transform: translateX(0);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.footer {
  padding-bottom: 100px;
}
@media (max-width: 700px) {
  .feedback-button {
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
  }
}
/* The opaque header and hero keep the wall texture below the embroidery strip. */
body {
  background-color: #f5f3ed;
  background-image:
    linear-gradient(#fffdf72e, #fffdf72e), url("assets/mazanka-wall.webp");
  background-size:
    auto,
    768px 768px;
  background-repeat: repeat;
}
.world {
  background: #fffef929;
  border-color: #d7d4c7;
}

h1,
h2,
h3,
h1 em,
h2 em,
.brand,
.footer-brand,
.progress-overlay span,
summary {
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0;
}

/* Shared typography for readable navigation and actions. */
nav,
.button,
.text-button,
.language,
.brand-caption,
.feedback-tooltip,
.faq summary {
  font-size: var(--reading-size);
}
.brand-caption {
  letter-spacing: 0;
  font-weight: 400;
}
.language {
  width: 88px;
  min-height: 48px;
}
.button,
.text-button {
  line-height: 1.5;
}
.header-inner,
.header-actions {
  gap: 24px;
}
nav {
  gap: 24px;
}
.feedback-tooltip {
  max-width: calc(100vw - 104px);
  white-space: normal;
  width: max-content;
}
@media (min-width: 701px) and (max-width: 1250px) {
  .header {
    height: auto;
  }
  .header-inner {
    flex-wrap: wrap;
    padding-block: 20px;
  }
  nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}
@media (max-width: 700px) {
  .header {
    height: auto;
  }
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    padding-block: 18px;
    gap: 18px;
  }
  .brand {
    width: 100%;
    justify-content: center;
    flex-shrink: 1;
  }
  .brand > span {
    min-width: 0;
  }
  .brand-caption {
    overflow-wrap: anywhere;
  }
  .header-actions {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }
  .game-actions {
    flex-wrap: wrap;
  }
  .game-actions .button {
    flex: 1 1 100%;
  }
  .text-button {
    padding: 10px 0;
  }
}

.music-toggle {
  position: fixed;
  left: max(24px, env(safe-area-inset-left));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid #bda26a;
  border-radius: 50%;
  background: var(--ink);
  color: #fffdf4;
  box-shadow: 0 4px 18px #14271938;
}
.music-toggle:hover { background: #3c5947; }
.music-toggle:disabled { opacity: 0.6; cursor: default; }
.music-tooltip {
  position: absolute;
  left: calc(100% + 12px);
  width: max-content;
  max-width: calc(100vw - 170px);
  padding: 7px 12px;
  border-radius: 3px;
  background: var(--ink);
  color: #fffdf4;
  font-size: var(--reading-size);
  pointer-events: none;
  opacity: 0;
}
.music-toggle:hover .music-tooltip,
.music-toggle:focus-visible .music-tooltip { opacity: 1; }
@media (max-width: 700px) {
  .music-toggle {
    left: max(16px, env(safe-area-inset-left));
    bottom: max(16px, env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
  }
}

#hero-title,
#hero-title * {
  line-height: 1;
}
