:root {
  color-scheme: dark;
  font: 100% / 1.5 "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  color: #f1f7fe;
  background: #0a1724;
  --ink: #f1f7fe;
  --muted: #b8cede;
  --base: #0a1724;
  --panel: #13283b;
  --field: #17374e;
  --line: #426079;
  --cyan: #3bd4fa;
  --cyan-light: #a5ecff;
  --mint: #73efd0;
  --rose: #ffb1bb;
  --button-ink: #082130;
  --gutter: clamp(14px, 4.3vw, 30px);
  --page-width: 74rem;
  --chat-width: 48rem;
  --touch-target: 44px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  min-width: 0;
  height: 100%;
  overflow: hidden;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

h1, h2, h3, p, ul, ol { margin-block: 0; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { color: inherit; cursor: pointer; -webkit-tap-highlight-color: rgb(59 212 250 / .19); }
button:disabled, button[aria-disabled="true"] { cursor: default; }
:focus-visible { outline: 2px solid var(--cyan-light); outline-offset: 3px; }
noscript {
  position: fixed;
  inset: calc(var(--safe-top) + 16px) var(--gutter) auto;
  padding: 14px;
  border: 1px solid var(--cyan);
  border-radius: 10px;
  background: var(--panel);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#app.app-shell {
  position: relative;
  top: var(--screen-top, 0px);
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100vh;
  height: var(--screen-height, 100dvh);
  overflow: hidden;
  padding-block-start: var(--safe-top);
  padding-inline: var(--safe-left) var(--safe-right);
  background: radial-gradient(ellipse at 50% 0, #1a3450, var(--base) 74%);
}

.view {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.screen-scroll {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden auto;
  overscroll-behavior-y: contain;
  scroll-padding-block: 16px;
  scrollbar-width: thin;
  scrollbar-color: #365d74 transparent;
  background: linear-gradient(180deg, #142a3e, #0a1724 65%);
}

.screen-bar, .hud {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 8px var(--gutter);
  padding-inline: max(var(--gutter), calc((100% - var(--page-width)) / 2 + var(--gutter)));
  border-bottom: 1px solid #426782;
  background: #192e46 url("./assets/combined/header.png") center / 100% 100% no-repeat;
}

.bar-copy { min-width: 0; }
.bar-copy h1 {
  font-size: clamp(1.15rem, 5vw, 1.48rem);
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.bar-copy small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: .8rem;
  overflow-wrap: anywhere;
}
.bar-copy small:empty { display: none; }

.hud { font-size: 1rem; font-weight: 750; }
.avatar {
  display: block;
  flex: 0 0 auto;
  inline-size: 42px;
  block-size: 42px;
  object-fit: contain;
  border-radius: 9px;
}
.hud .avatar {
  border: 1px solid rgb(122 219 255 / .66);
  box-shadow: 0 0 12px rgb(59 212 250 / .14);
}
.level-progress {
  display: grid;
  gap: 4px;
  margin-inline-start: auto;
  width: clamp(108px, 34vw, 250px);
  color: var(--muted);
  text-align: right;
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
}
.level-progress .meter { width: 100%; }

.hero {
  --scene-height: 200px;
  --art-width: clamp(246px, 81vw, 370px);
  --art-left: 54%;
  --art-top: -13px;
  --scene-dark: 0;
  --scene-saturation: 1;
  --corruption: rgb(129 40 100 / 0);
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: var(--scene-height);
  overflow: hidden;
  background: #15263a;
}
.hero-home {
  --scene-height: clamp(272px, 40vh, 386px);
  --art-width: clamp(305px, 94vw, 430px);
  --art-left: 56%;
  --art-top: -5px;
}
.hero-chat {
  --scene-height: clamp(130px, min(52vw, var(--screen-height, 100dvh) * .29), 240px);
  --art-left: 53%;
}
.hero-compact {
  --scene-height: clamp(112px, 33vw, 148px);
  --art-width: clamp(224px, 64vw, 302px);
  --art-top: -12px;
}
.result-hero {
  --scene-height: clamp(215px, 59vw, 304px);
  --art-width: clamp(260px, 86vw, 390px);
  --art-left: 52%;
}
.hero[data-pollution="1"] { --corruption: rgb(108 42 93 / .05); --scene-saturation: .96; }
.hero[data-pollution="2"] { --corruption: rgb(112 32 83 / .13); --scene-saturation: .86; }
.hero[data-pollution="3"] { --corruption: rgb(102 29 83 / .24); --scene-saturation: .72; --scene-dark: .08; }
.hero[data-pollution="4"] { --corruption: rgb(91 21 74 / .34); --scene-saturation: .59; --scene-dark: .15; }
.hero[data-pollution="5"] { --corruption: rgb(80 17 65 / .45); --scene-saturation: .46; --scene-dark: .23; }

.hero .studio {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  filter: saturate(var(--scene-saturation));
  user-select: none;
  pointer-events: none;
}
.hero .lumina {
  position: absolute;
  top: var(--art-top);
  left: var(--art-left);
  z-index: -2;
  width: var(--art-width);
  height: auto;
  transform: translateX(-50%);
  filter: drop-shadow(1px 2px 5px rgb(4 13 27 / .42));
  user-select: none;
  pointer-events: none;
}
.hero.has-expression .lumina {
  top: 2px;
  width: min(var(--art-width), calc(var(--scene-height) + 52px));
}
.hero::before, .hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
}
.hero::before { background: var(--corruption); }
.hero::after {
  background: linear-gradient(180deg, rgb(10 23 36 / var(--scene-dark)), transparent 52%, #142a3e);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, var(--page-width));
  min-width: 0;
  margin-inline: auto;
  padding: 16px var(--gutter) 22px;
}
.hero-copy :is(h1, h2) {
  color: var(--ink);
  font-size: clamp(1.35rem, 5vw, 1.72rem);
  line-height: 1.25;
  text-shadow: 0 2px 6px #091521;
}
.greeting {
  max-width: min(89%, 32rem);
  padding: 11px 15px;
  border: 1px solid #71c4e7;
  border-radius: 12px;
  color: #132d41;
  background: #e5f5ff;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.55;
  overflow-wrap: anywhere;
  box-shadow: 0 5px 18px rgb(6 18 29 / .25);
}

.content {
  display: grid;
  align-content: start;
  gap: clamp(14px, 3.8vw, 23px);
  width: min(100%, var(--page-width));
  min-width: 0;
  margin-inline: auto;
  padding: 16px var(--gutter) 26px;
}
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(17px, 4vw, 28px);
  align-items: start;
}
.area, .stack {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}
.card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 11px;
  min-width: 0;
}
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  min-width: 0;
  padding-inline-start: 10px;
  border-inline-start: 3px solid var(--cyan);
  font-size: 1.06rem;
  font-weight: 720;
  line-height: 1.3;
}
.section-title :is(h2,h3) { font-size: inherit; }
.section-title small {
  color: var(--muted);
  text-align: right;
  font-size: .8rem;
  font-weight: 500;
}
.panel, .quest-tile, .routine-tile {
  min-width: 0;
  border: 1px solid #359cc1;
  border-radius: 12px;
  color: var(--ink);
  background: linear-gradient(145deg, #182e42, #132536 68%);
}
.panel { padding: clamp(12px,3.5vw,18px); }
.panel :is(h2, h3) { font-size: clamp(1.08rem, 4.5vw, 1.45rem); line-height: 1.35; }
.panel :is(h2, h3, p) { overflow-wrap: anywhere; }
.panel.empty { color: var(--muted); }
.quest-tile, .routine-tile {
  display: grid;
  align-content: start;
  gap: 7px;
  width: 100%;
  min-height: 77px;
  padding: 12px 14px;
  text-align: start;
  box-shadow: inset 0 1px 0 rgb(147 230 255 / .08);
}
.routine-tile { border-color: #337a82; }
.routine-tile:has(> .btn) { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.tile-link {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: var(--touch-target);
  padding: 0;
  border: 0;
  background: transparent;
  text-align: start;
}
.tile-title {
  display: block;
  min-width: 0;
  color: var(--ink);
  font-size: clamp(1.04rem, 4.4vw, 1.34rem);
  font-weight: 750;
  line-height: 1.32;
  overflow-wrap: anywhere;
}
.tile-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3px 12px;
  color: var(--muted);
  font-size: .88rem;
  overflow-wrap: anywhere;
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 10px;
  min-width: 0;
}
.row > * { min-width: 0; }
.line {
  padding-block-start: 10px;
  border-block-start: 1px solid #35536b;
  overflow-wrap: anywhere;
}
.steps { padding-inline-start: 1.35em; overflow-wrap: anywhere; }
.steps li + li { margin-block-start: 4px; }
.steps li::marker { color: var(--cyan-light); }
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
}
.actions > .btn { flex: 1 1 9rem; }
.actions > [data-action="choose-difficulty"] { flex-basis: 6.5rem; }

.muted { color: var(--muted); }
.reward-text { color: var(--mint); font-weight: 750; font-variant-numeric: tabular-nums; }
.danger-text { color: var(--rose); font-weight: 700; }
.meter {
  display: block;
  flex: 1 1 92px;
  min-width: 0;
  height: 7px;
  overflow: hidden;
  border-radius: 6px;
  background: #2c4357;
}
.meter > span {
  display: block;
  height: 100%;
  max-width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #41b6b1, var(--mint));
}
.level-progress .meter > span { background: linear-gradient(90deg, #269cbd, var(--cyan)); }
.meter.pollution > span { background: linear-gradient(90deg, #b16988, var(--rose)); }

.btn, .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: var(--touch-target);
  border: 1px solid #3c6680;
  border-radius: 10px;
  color: var(--ink);
  background-color: #153149;
  text-align: center;
  font-weight: 700;
  line-height: 1.28;
  overflow-wrap: anywhere;
}
.btn { padding: 9px 13px; text-decoration: none; }
.icon-button {
  flex: 0 0 var(--touch-target);
  width: var(--touch-target);
  height: var(--touch-target);
  padding: 0;
}
.btn.primary {
  border-color: #62e1ff;
  color: var(--button-ink);
  background: linear-gradient(180deg, #7ae8ff, #37cdef);
}
.btn.success {
  border-color: #86f5d7;
  color: var(--button-ink);
  background: linear-gradient(180deg, #9cf2da, #61e1be);
}
.btn.danger {
  border-color: #bf7185;
  color: #ffe5e9;
  background: linear-gradient(180deg, #66354b, #4d283e);
}
.btn.ghost { border-color: #53708a; color: var(--muted); background-color: #132a3d; }
.btn[aria-pressed="true"] {
  border-color: #77d9f4;
  color: var(--cyan-light);
  background: #214c66;
  box-shadow: inset 0 1px 0 #73cddf;
}
.btn:disabled, .btn[aria-disabled="true"] {
  border-color: #36546b;
  color: #acc3d5;
  background: #192d40;
}
.icon-button.back {
  color: transparent;
  background: #16445f;
}
.icon-button.back > img { width: 20px; height: 21px; object-fit: contain; }

.action-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 7px 10px;
  border: 1px solid #3c607a;
  border-radius: 8px;
  color: var(--ink);
  background: #142d42;
  text-align: start;
}
.action-row .mark {
  display: grid;
  flex: 0 0 24px;
  place-items: center;
  height: 24px;
  border: 1px solid #62839a;
  border-radius: 5px;
  color: var(--mint);
  background: #102135;
  font-size: .95rem;
}
.action-copy {
  display: grid;
  flex: 1 1 auto;
  gap: 2px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.action-row small { flex: 0 0 auto; color: var(--muted); font-size: .8rem; }
.action-row.is-done { border-color: #376779; background: #153442; }
.action-row.is-done .mark {
  border-color: #6ed9c1;
  color: var(--mint);
  background: #235259;
}

.notice {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #4a788f;
  border-inline-start: 3px solid var(--cyan);
  border-radius: 9px;
  color: var(--ink);
  background: #193349;
  overflow-wrap: anywhere;
}
.notice.row { display: flex; }
.notice.danger, .notice:has(.meter.pollution) {
  border-color: #9b6176;
  border-inline-start-color: var(--rose);
  background: #3b2d44;
}
.notice.success {
  border-color: #3a807f;
  border-inline-start-color: var(--mint);
  background: #193943;
}

.stamp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(5px, 1.8vw, 10px);
  align-items: stretch;
}
.stamp {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  min-height: 62px;
  padding: 6px 3px;
  border: 1px solid #44637b;
  border-radius: 9px;
  color: var(--muted);
  background: #142a3d;
  text-align: center;
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.stamp > :is(strong, b) { font-size: 1.13rem; line-height: 1.2; }
.stamp > span:first-child {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: .95rem;
  line-height: 1;
}
.stamp:not(.is-filled) > span:first-child { font-size: 0; }
.stamp.is-filled { border-color: #478b89; color: var(--mint); background: #183d48; }
.stamp.is-filled > span:first-child { background: #285962; }
.stamp.is-next { border-color: #45bede; color: var(--cyan-light); background: #17394c; }
.weekday-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); gap: 5px; }
.weekday {
  min-width: 0;
  min-height: var(--touch-target);
  padding: 3px;
  border: 1px solid #4c6d86;
  border-radius: 7px;
  color: var(--ink);
  background: #183349;
  text-align: center;
  font-weight: 650;
}
.weekday[aria-pressed="true"] { border-color: var(--cyan-light); color: var(--button-ink); background: #7adcf2; }

.form-field { display: grid; gap: 5px; min-width: 0; }
.form-field label { color: var(--muted); font-size: .88rem; font-weight: 650; }
.check-line {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: var(--touch-target);
  padding: 8px 11px;
  border: 1px solid #4a6982;
  border-radius: 8px;
  background: #182f44;
}
.check-line input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--mint);
}
.input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid #64abc8;
  border-radius: 9px;
  color: var(--ink);
  background: var(--field);
  font-size: 16px;
  line-height: 1.4;
}
.input::placeholder { color: #bad2e2; opacity: 1; }
textarea.input { resize: vertical; }

.chat-log {
  display: grid;
  gap: 12px;
  align-content: start;
  width: min(100%, var(--chat-width));
  min-width: 0;
  margin: 0 auto;
  padding: 15px var(--gutter) 25px;
  list-style: none;
}
.chat-view .chat-log > :is(.actions, .panel) { margin-inline-start: 43px; }
.message {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-width: 0;
}
.message .avatar { width: 35px; height: 35px; margin-block-start: 3px; }
.message .bubble {
  min-width: 0;
  max-width: 100%;
  padding: 10px 13px;
  border: 1px solid #83d1ea;
  border-radius: 12px;
  color: #102b3f;
  background: #e5f5ff;
  font-weight: 625;
  line-height: 1.52;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.message.is-user {
  display: flex;
  justify-content: flex-end;
  padding-inline-start: clamp(38px,15%,104px);
}
.message.is-user .bubble {
  border-color: #356786;
  color: var(--ink);
  background: linear-gradient(130deg, #1c5275, #17394f);
}
.composer {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px var(--gutter) calc(10px + var(--safe-bottom));
  padding-inline: max(var(--gutter), calc((100% - var(--chat-width)) / 2 + var(--gutter)));
  border-top: 1px solid #4e809e;
  background: #143049 url("./assets/combined/input.png") center / 100% 100% no-repeat;
}
.composer .input { flex: 1 1 auto; }
.composer textarea.input { height: 46px; max-height: 8rem; resize: none; }
.composer .send {
  border: 0;
  border-radius: 50%;
  color: transparent;
  background: transparent;
}
.composer .send > img { width: 100%; height: 100%; object-fit: contain; }

.bottom-nav {
  position: relative;
  z-index: 1;
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
  padding: 6px var(--gutter) calc(5px + var(--safe-bottom));
  padding-inline: max(6px, calc((100% - 55rem) / 2 + 6px));
  border-top: 1px solid #3b647d;
  background: linear-gradient(180deg, #142f43, #0d1d2a);
}
.nav-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 53px;
  padding: 4px 2px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  text-align: center;
  font-size: .75rem;
  line-height: 1.22;
  overflow-wrap: anywhere;
}
.nav-button svg { flex: 0 0 auto; width: 19px; height: 19px; display: block; }
.nav-button[aria-current="page"] {
  border-color: #366883;
  color: var(--cyan-light);
  background: linear-gradient(180deg, #20536c, #17354c 85%);
  box-shadow: inset 0 1px 0 #64cde7;
  font-weight: 750;
}

.result-points {
  display: grid;
  gap: 6px;
  padding: 13px 15px;
  border: 1px solid #418b9e;
  border-radius: 10px;
  color: var(--mint);
  background: linear-gradient(150deg, #204151, #142c3d 72%);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.result-points strong { font-size: clamp(1.12rem, 5vw, 1.52rem); }
.notice > .result-points {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  justify-items: center;
  align-items: baseline;
  font-size: 1.2rem;
}
.notice > .result-points > :first-child { color: var(--rose); }

#dialog.sheet {
  width: min(calc(100% - 24px - var(--safe-left) - var(--safe-right)), 34rem);
  max-height: calc(var(--screen-height, 100dvh) - 24px - var(--safe-top) - var(--safe-bottom));
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid #69c6e6;
  border-radius: 14px;
  color: var(--ink);
  background: linear-gradient(145deg, #1a3851, #102336 70%);
  box-shadow: 0 14px 50px rgb(2 11 22 / .65), inset 0 1px 0 rgb(139 230 255 / .24);
  overscroll-behavior: contain;
}
#dialog.sheet::backdrop { background: rgb(3 11 22 / .72); }
.sheet-inner { display: grid; gap: 14px; padding: clamp(14px,4vw,24px); min-width: 0; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sheet-head :is(h2,h3) { font-size: clamp(1.13rem,5vw,1.42rem); line-height: 1.35; overflow-wrap: anywhere; }

#toast.toast {
  position: fixed;
  z-index: 20;
  inset-inline: 0;
  bottom: calc(76px + var(--safe-bottom));
  width: max-content;
  max-width: calc(100% - 28px);
  margin-inline: auto;
  padding: 9px 14px;
  border: 1px solid #5797b1;
  border-radius: 9px;
  color: var(--ink);
  background: #14344a;
  box-shadow: 0 6px 22px rgb(5 14 25 / .55);
  font-size: .9rem;
  overflow-wrap: anywhere;
  pointer-events: none;
}
#toast.toast:empty { display: none; }

@media (hover: hover) {
  :is(button.quest-tile, button.routine-tile, .action-row, .weekday, .btn, .icon-button):not(:disabled):not([aria-disabled="true"]):hover {
    filter: brightness(1.16);
  }
  .nav-button:hover { color: var(--cyan-light); background-color: #19394d; }
}
:is(.btn, .icon-button, .weekday, .action-row, .nav-button):not(:disabled):not([aria-disabled="true"]):active { filter: brightness(.92); }

@media (max-width: 375px) {
  :root { --gutter: 13px; }
  .weekday-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .section-title { font-size: 1rem; }
  .section-title small { font-size: .75rem; }
}

@media (min-width: 850px) {
  .dashboard, .card-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-home {
    --scene-height: clamp(280px, 43vh, 430px);
    --art-width: 460px;
    --art-left: 63%;
  }
  .hero-chat {
    --scene-height: clamp(165px, var(--screen-height, 100dvh) * .31, 285px);
    --art-width: 374px;
  }
  .hero-compact { --scene-height: 148px; --art-width: 289px; }
  .result-hero { --scene-height: clamp(240px, 38vh, 360px); --art-width: 425px; }
  .hero .studio { object-position: 50% 51%; }
  .hero-copy { padding-block-start: 23px; padding-block-end: 25px; }
  .content { padding-block-start: 21px; }
  .stamp { min-height: 72px; }
  .composer { gap: 12px; }
}

@media (max-height: 500px) {
  .screen-bar, .hud { min-height: 54px; padding-block: 4px; }
  .hero-home { --scene-height: 242px; }
  .hero-chat { --scene-height: 136px; --art-width: 232px; }
  .composer { padding-block-start: 5px; padding-block-end: calc(5px + var(--safe-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
