/* ============================================================
   Petalbrook — Harvest Moon style UI
   palette: paper #FDF3DC · wood #B07A45 · wood-dark #7C4F2A
            wood-darker #5B3A1F · ink #4A3222 · rose #E97FA2
            gold #F5C84C · grass #82C46B · sky #BDE8FF
   ============================================================ */

:root {
  --paper: #fdf3dc;
  --paper-shade: #f6e3ba;
  --wood: #b07a45;
  --wood-light: #cf9a5f;
  --wood-dark: #7c4f2a;
  --wood-darker: #53341c;
  --ink: #4a3222;
  --ink-soft: #7a5c40;
  --rose: #e97fa2;
  --rose-deep: #d15e84;
  --gold: #f5c84c;
  --gold-deep: #d9a322;
  --grass: #82c46b;
  --sky: #bde8ff;
  --white: #fffaf0;
  --font-pixel: "Pixelify Sans", "Comic Sans MS", cursive;
  --font-body: "Nunito", "Segoe UI", system-ui, sans-serif;
  --shadow-pop: 0 6px 0 rgba(83, 52, 28, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  overflow: hidden;
  background: #9ad5f0;
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}

.hidden { display: none !important; }

button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* ============ 3D CANVAS ============ */
#world {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

#vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 62%, rgba(83, 52, 28, 0.28) 100%);
  mix-blend-mode: multiply;
}

/* ============ WOOD FRAME (the Harvest Moon border) ============ */
.wood-frame {
  background:
    linear-gradient(180deg, var(--wood-light) 0%, var(--wood) 18%, var(--wood) 82%, #9a6838 100%);
  border: 4px solid var(--wood-darker);
  border-radius: 18px;
  box-shadow:
    inset 0 0 0 3px var(--wood-light),
    inset 0 4px 0 rgba(255, 235, 200, 0.35),
    inset 0 -5px 0 rgba(83, 52, 28, 0.3),
    var(--shadow-pop);
}

.wood-frame > * { position: relative; }

/* inner parchment inset for panels that hold text */
.wood-frame.parchment {
  background: var(--wood);
  padding: 10px;
}
.wood-frame.parchment::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 12px;
  background: var(--paper);
  box-shadow: inset 0 2px 6px rgba(83, 52, 28, 0.25);
  z-index: 0;
}

/* ============ BUTTONS ============ */
.btn {
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  color: var(--ink);
  border: 4px solid var(--wood-darker);
  border-radius: 14px;
  padding: 0.65em 1.4em;
  box-shadow: var(--shadow-pop);
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 rgba(83, 52, 28, 0.35);
}

.btn-gold {
  background: linear-gradient(180deg, #ffe08a 0%, var(--gold) 55%, var(--gold-deep) 100%);
  color: #5b3a10;
}
.btn-rose {
  background: linear-gradient(180deg, #f7a8c0 0%, var(--rose) 55%, var(--rose-deep) 100%);
  color: #5e2233;
}
.btn-plain {
  background: var(--paper);
  color: var(--ink);
}

/* ============ TITLE SCREEN ============ */
#title-screen {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #8fd0f2 0%, #bde8ff 42%, #d8f3e2 72%, #9ed67f 100%);
}

.title-sky, .title-hills { position: absolute; inset: 0; pointer-events: none; }

/* drifting pixel clouds */
.title-sky::before, .title-sky::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  width: 180px; height: 46px;
  top: 14%;
  box-shadow: 38px -14px 0 -6px rgba(255,255,255,0.85), 76px 4px 0 -12px rgba(255,255,255,0.85);
  animation: drift 46s linear infinite;
}
.title-sky::after {
  top: 28%;
  transform: scale(0.6);
  animation-duration: 62s;
  animation-delay: -20s;
}
@keyframes drift {
  from { left: -220px; }
  to { left: 105%; }
}

.title-hills::before {
  content: "";
  position: absolute;
  bottom: -12%;
  left: -10%;
  width: 70%;
  height: 55%;
  background: var(--grass);
  border-radius: 50% 50% 0 0;
}
.title-hills::after {
  content: "";
  position: absolute;
  bottom: -18%;
  right: -12%;
  width: 75%;
  height: 62%;
  background: #6fae59;
  border-radius: 50% 50% 0 0;
}

.title-card {
  position: relative;
  text-align: center;
  padding: 2.2rem 2.6rem 2rem;
  max-width: min(92vw, 560px);
  animation: card-in 0.7s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes card-in {
  from { transform: translateY(30px) scale(0.96); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.title-eyebrow {
  font-family: var(--font-pixel);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3e5f31;
  text-shadow: 0 2px 0 rgba(255,255,255,0.5);
}

.title-names {
  font-family: var(--font-pixel);
  font-weight: 700;
  color: var(--wood-darker);
  font-size: clamp(2.6rem, 9vw, 4.6rem);
  line-height: 1.05;
  margin: 0.35em 0 0.25em;
  text-shadow:
    0 4px 0 #fffaf0,
    0 8px 0 rgba(83, 52, 28, 0.25);
}
.title-amp {
  color: var(--rose-deep);
  font-size: 0.62em;
  vertical-align: middle;
  padding: 0 0.18em;
}

.title-date {
  font-family: var(--font-pixel);
  font-size: 1.1rem;
  color: #3e5f31;
  margin-bottom: 1.6em;
  text-shadow: 0 2px 0 rgba(255,255,255,0.5);
}

.title-hint {
  margin-top: 1.2em;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #4a6b3c;
}

/* ============ HUD ============ */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 30; }
#hud > * { pointer-events: auto; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.45em 0.9em;
  font-family: var(--font-pixel);
  font-weight: 700;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}

#hud-date {
  position: absolute;
  top: 14px; left: 14px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1.15;
  padding: 0.5em 1em;
}
.chip-season { font-size: 0.95rem; color: var(--wood-darker); }
.chip-day { font-size: 1.3rem; color: var(--ink); }
.chip-clock { font-size: 0.9rem; color: var(--ink-soft); }
.chip-count {
  font-size: 0.8rem;
  color: var(--rose-deep);
  margin-top: 2px;
}

#hud-title {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.4em 1.1em;
  font-size: 1rem;
  white-space: nowrap;
}
.hud-couple { display: inline-flex; align-items: center; gap: 0.45em; }
.heart {
  width: 0.85em;
  height: 0.85em;
  color: var(--rose);
  filter: drop-shadow(0 1px 0 rgba(83, 52, 28, 0.35));
}

#hud-buttons {
  position: absolute;
  top: 14px; right: 14px;
  display: flex;
  gap: 8px;
}
.icon-btn {
  width: 46px; height: 46px;
  border: 3px solid var(--wood-darker);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffe9bd, var(--paper) 60%, var(--paper-shade));
  color: var(--wood-dark);
  box-shadow: var(--shadow-pop);
  display: grid;
  place-items: center;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(83,52,28,0.35); }
.icon-btn[aria-pressed="false"] { color: #b3a48d; }
.icon-btn[aria-pressed="true"] { color: var(--rose-deep); }

/* --- hotbar --- */
#hotbar {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 16px;
}
.hot-slot {
  width: 52px; height: 52px;
  border-radius: 10px;
  border: 3px solid var(--wood-darker);
  background: linear-gradient(180deg, #fff3d6, var(--paper) 70%);
  display: grid;
  place-items: center;
  color: var(--wood-dark);
  transition: transform 0.1s ease, filter 0.15s ease;
  position: relative;
}
.hot-slot svg { width: 28px; height: 28px; }
.hot-slot:hover { transform: translateY(-4px); filter: brightness(1.05); }
.hot-slot .slot-tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: var(--wood-darker);
  color: var(--paper);
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  padding: 3px 9px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.hot-slot:hover .slot-tip, .hot-slot:focus-visible .slot-tip {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
.hot-slot.seen::after {
  content: "✓";
  position: absolute;
  top: -9px;
  right: -9px;
  width: 18px;
  height: 18px;
  background: var(--gold);
  color: #5b3a10;
  border: 2px solid var(--wood-darker);
  border-radius: 50%;
  font-family: var(--font-pixel);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
}
.hot-slot.is-new::after {
  animation: badge-pop 0.4s cubic-bezier(0.2, 1.6, 0.4, 1);
}
@keyframes badge-pop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

/* --- action hint --- */
#action-hint {
  position: absolute;
  bottom: 92px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.45em 0.9em;
  display: flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 1rem;
  animation: hint-float 1.6s ease-in-out infinite;
}
@keyframes hint-float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -5px); }
}
.key-cap {
  background: var(--paper);
  border: 3px solid var(--wood-darker);
  border-bottom-width: 5px;
  border-radius: 8px;
  padding: 1px 9px;
  font-size: 0.8rem;
  color: var(--wood-darker);
}

/* --- toast --- */
#toast {
  position: absolute;
  top: 74px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.55em 1.2em;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  animation: toast-pop 2.8s ease both;
  white-space: nowrap;
}
@keyframes toast-pop {
  0% { opacity: 0; transform: translate(-50%, -12px); }
  10%, 80% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -8px); }
}

/* ============ DIALOGUE ============ */
#dialogue {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: min(92vw, 640px);
  z-index: 40;
  cursor: pointer;
}

.dlg-portrait {
  position: absolute;
  top: -44px;
  left: -8px;
  width: 96px;
  height: 96px;
  border: 4px solid var(--wood-darker);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  z-index: 2;
}
.dlg-portrait svg { width: 100%; height: 100%; display: block; }

.dlg-frame {
  padding: 1.1em 1.3em 1.2em;
  position: relative;
  min-height: 112px;
}

.dlg-name {
  position: absolute;
  top: -16px;
  left: 100px;
  display: inline-block;
  background: linear-gradient(180deg, var(--rose) 0%, var(--rose-deep) 100%);
  border: 3px solid var(--wood-darker);
  border-radius: 10px;
  padding: 2px 14px;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  text-shadow: 0 2px 0 rgba(83, 52, 28, 0.4);
  box-shadow: var(--shadow-pop);
}

.dlg-text {
  background: var(--paper);
  border-radius: 10px;
  box-shadow: inset 0 2px 5px rgba(83, 52, 28, 0.22);
  padding: 0.85em 1em;
  font-size: 1.02rem;
  line-height: 1.55;
  min-height: 3.1em;
}
.dlg-text .caret {
  display: inline-block;
  width: 0.55em;
  animation: caret-blink 0.9s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }

.dlg-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.dlg-choices:empty { margin: 0; }

.dlg-next {
  position: absolute;
  right: 18px;
  bottom: 10px;
  color: var(--wood-darker);
  font-size: 0.9rem;
  animation: next-bob 0.8s ease-in-out infinite;
}
@keyframes next-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* ============ MODALS ============ */
#modal-root {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
}
#modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(58, 38, 20, 0.45);
  backdrop-filter: blur(2px);
}
#modal-panel {
  position: relative;
  padding: 10px;
  width: min(94vw, 620px);
  max-height: 86vh;
  animation: modal-in 0.28s cubic-bezier(0.2, 1.4, 0.4, 1) both;
}
@keyframes modal-in {
  from { transform: translateY(26px) scale(0.96); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.modal-paper {
  position: relative;
  z-index: 1;
  background: var(--paper);
  border-radius: 12px;
  box-shadow: inset 0 2px 6px rgba(83, 52, 28, 0.22);
  padding: 1.6rem 1.4rem 1.3rem;
  max-height: calc(86vh - 20px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--wood) var(--paper-shade);
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0.8rem;
}
.modal-title {
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--wood-darker);
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.modal-title svg { width: 1.1em; height: 1.1em; color: var(--rose-deep); }
.modal-close {
  width: 38px; height: 38px;
  flex: 0 0 auto;
  border: 3px solid var(--wood-darker);
  border-radius: 10px;
  background: var(--rose);
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 1rem;
  box-shadow: var(--shadow-pop);
}
.modal-close:active { transform: translateY(3px); box-shadow: none; }

.modal-body { font-size: 0.98rem; line-height: 1.6; }
.modal-body p + p { margin-top: 0.7em; }

.modal-body .lead {
  font-family: var(--font-pixel);
  font-size: 1.05rem;
  color: var(--wood-dark);
  margin-bottom: 0.9em;
}

/* story timeline */
.timeline { list-style: none; }
.timeline li {
  position: relative;
  padding: 0 0 1.2em 2.1em;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: -2px;
  width: 3px;
  background: var(--wood);
  border-radius: 3px;
}
.timeline li:last-child { padding-bottom: 0.2em; }
.timeline li:last-child::before { bottom: auto; height: 14px; }
.timeline .tl-dot {
  position: absolute;
  left: 0;
  top: 2px;
  width: 15px; height: 15px;
  background: var(--rose);
  border: 3px solid var(--wood-darker);
  border-radius: 50%;
}
.timeline .tl-when {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  color: var(--rose-deep);
  letter-spacing: 0.05em;
}
.timeline .tl-what { font-weight: 700; }
.timeline .tl-note { color: var(--ink-soft); font-size: 0.92em; }

/* info sheet */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.info-row {
  background: var(--white);
  border: 2px solid var(--paper-shade);
  border-radius: 10px;
  padding: 0.7em 0.9em;
  display: flex;
  gap: 0.8em;
  align-items: baseline;
}
.info-row .info-label {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  color: var(--wood-dark);
  min-width: 5.5em;
}
.info-row .info-value { font-weight: 700; }
.info-row .info-sub { display: block; font-weight: 400; font-size: 0.88em; color: var(--ink-soft); }

/* gallery polaroids */
.polaroid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.polaroid {
  background: #fff;
  border: 2px solid #e8dcc0;
  box-shadow: 0 4px 10px rgba(83, 52, 28, 0.18);
  padding: 8px 8px 6px;
  transform: rotate(-1.5deg);
  transition: transform 0.15s ease;
}
.polaroid:nth-child(2n) { transform: rotate(1.6deg); }
.polaroid:nth-child(3n) { transform: rotate(-0.6deg); }
.polaroid:hover { transform: rotate(0) scale(1.04); z-index: 1; }
.polaroid canvas, .polaroid img {
  width: 100%;
  display: block;
  aspect-ratio: 1;
  background: #eee;
}
.polaroid figcaption {
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  color: var(--ink-soft);
  text-align: center;
  padding-top: 5px;
}

/* forms */
.form-field { margin-bottom: 0.95rem; }
.form-field label {
  display: block;
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: var(--wood-dark);
  margin-bottom: 0.3em;
}
.form-field input[type="text"],
.form-field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--paper-shade);
  border-radius: 10px;
  padding: 0.55em 0.8em;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
  background: #fffef8;
}
.form-field textarea { resize: vertical; min-height: 70px; }

.choice-row { display: flex; gap: 8px; flex-wrap: wrap; }
.choice-pill {
  flex: 1 1 auto;
  text-align: center;
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5em 1em;
  border: 3px solid var(--wood-darker);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink-soft);
  transition: background 0.12s ease, color 0.12s ease, transform 0.08s ease;
}
.choice-pill:hover { transform: translateY(-2px); }
.choice-pill[aria-pressed="true"] {
  background: var(--rose);
  color: #fff;
  text-shadow: 0 1px 0 rgba(83,52,28,0.4);
}

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 2px solid var(--paper-shade);
  border-radius: 12px;
  padding: 4px;
}
.stepper button {
  width: 34px; height: 34px;
  border: 3px solid var(--wood-darker);
  border-radius: 9px;
  background: var(--paper);
  font-family: var(--font-pixel);
  font-size: 1rem;
  color: var(--wood-darker);
}
.stepper button:active { transform: translateY(2px); }
.stepper output {
  font-family: var(--font-pixel);
  font-weight: 700;
  font-size: 1.1rem;
  min-width: 1.6em;
  text-align: center;
}

.form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}
.form-note { font-size: 0.82rem; color: var(--ink-soft); }

/* wishes */
.wish-list { list-style: none; margin-top: 0.6rem; }
.wish-list li {
  background: var(--white);
  border: 2px solid var(--paper-shade);
  border-radius: 10px;
  padding: 0.6em 0.9em;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}
.wish-list .wish-who {
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  color: var(--rose-deep);
  white-space: nowrap;
}
.wish-empty {
  color: var(--ink-soft);
  font-style: italic;
  background: var(--white);
  border: 2px dashed var(--paper-shade);
  border-radius: 10px;
  padding: 0.9em;
  text-align: center;
}

/* countdown banner in modal */
.count-banner {
  font-family: var(--font-pixel);
  text-align: center;
  background: linear-gradient(180deg, #fff3d6, var(--paper-shade));
  border: 2px solid var(--paper-shade);
  border-radius: 12px;
  padding: 0.7em;
  margin-bottom: 1em;
}
.count-banner .count-big { font-size: 1.7rem; color: var(--rose-deep); }
.count-banner .count-sub { font-size: 0.8rem; color: var(--wood-dark); }

/* ============ TOUCH ============ */
#touch-ui { position: fixed; inset: 0; pointer-events: none; z-index: 35; }
#touch-ui.active { pointer-events: auto; }

#joystick {
  position: absolute;
  left: 26px;
  bottom: 90px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: rgba(253, 243, 220, 0.35);
  border: 3px solid rgba(124, 79, 42, 0.55);
  pointer-events: auto;
  touch-action: none;
}
#joy-knob {
  position: absolute;
  left: 50%; top: 50%;
  width: 52px; height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9bd, var(--wood) 80%);
  border: 3px solid var(--wood-darker);
  box-shadow: var(--shadow-pop);
}

#btn-act {
  position: absolute;
  right: 26px;
  bottom: 104px;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  font-size: 1.7rem;
  display: grid;
  place-items: center;
  pointer-events: auto;
}
#btn-act.pulse { animation: act-pulse 1.4s ease-in-out infinite; }
@keyframes act-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.09); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
  #hud-title { display: none; }
  #hud-date { top: 10px; left: 10px; padding: 0.4em 0.8em; }
  .chip-day { font-size: 1.1rem; }
  .dlg-portrait { width: 76px; height: 76px; top: -36px; left: -6px; }
  .dlg-name { left: 82px; }
  #dialogue { bottom: 14px; }
  .dlg-text { font-size: 0.94rem; }
  #hotbar { bottom: 10px; gap: 6px; padding: 6px; }
  .hot-slot { width: 44px; height: 44px; }
  .hot-slot svg { width: 24px; height: 24px; }
  #action-hint { display: none; }
  #joystick { bottom: 78px; left: 18px; width: 104px; height: 104px; }
  #btn-act { right: 20px; bottom: 92px; width: 68px; height: 68px; }
  .title-card { padding: 1.6rem 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
