:root {
  --grass: #58b947;
  --grass-dark: #257231;
  --dirt: #8b5a35;
  --dirt-dark: #5b3822;
  --wood: #b77736;
  --wood-dark: #704214;
  --sky: #7bd9ff;
  --sun: #ffd15c;
  --stone: #68717c;
  --stone-dark: #3f4852;
  --ink: #231d19;
  --paper: #fff2bf;
  --panel: #fff8dc;
  --emerald: #14b97a;
  --orange: #e78a2f;
  --danger: #c94942;
  --purple: #7757c4;
  --shadow: 8px 8px 0 rgba(39, 32, 22, 0.3);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  background:
    linear-gradient(180deg, rgba(123, 217, 255, 0.92) 0 34%, rgba(95, 183, 75, 0.96) 34% 70%, rgba(116, 73, 42, 0.98) 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.14) 0 18px, transparent 18px 36px),
    repeating-linear-gradient(0deg, rgba(48, 32, 20, 0.18) 0 22px, transparent 22px 44px);
}

button,
input,
select {
  font: inherit;
}

button {
  touch-action: manipulation;
}

.app-shell {
  width: min(1080px, calc(100% - 28px));
  margin: 0 auto;
  padding: 10px 0 24px;
}

.hidden {
  display: none;
}

.login-screen {
  min-height: calc(100vh - 48px);
  display: grid;
  place-items: center;
}

.login-screen.hidden {
  display: none;
}

.app-screen.hidden {
  display: none;
}

.login-card,
.hero,
.xp-panel,
.panel {
  border: 6px solid var(--dirt-dark);
  border-radius: 0;
  background:
    repeating-linear-gradient(90deg, rgba(112, 66, 20, 0.24) 0 12px, transparent 12px 24px),
    linear-gradient(180deg, #d1924b, var(--wood));
  box-shadow: var(--shadow);
}

.login-card {
  width: min(100%, 640px);
  padding: 22px;
}

.login-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}

.login-actions:empty {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
}

.hero-heading h1 {
  margin-bottom: 8px;
}

.eyebrow,
.today-label,
.section-title p,
.xp-panel p {
  display: inline-block;
  margin: 0;
  padding: 4px 8px;
  background: rgba(255, 248, 220, 0.92);
  color: #163f23;
  font-size: 1.08rem;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  display: inline-block;
  padding: 4px 8px;
  background: rgba(255, 242, 191, 0.94);
  border: 4px solid rgba(91, 56, 34, 0.45);
  font-size: clamp(1.55rem, 5vw, 2.35rem);
  line-height: 1.05;
  text-shadow: none;
}

h2 {
  margin-bottom: 4px;
  font-size: clamp(1.45rem, 4vw, 2rem);
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.player-card,
.user-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(98px, 1fr));
  gap: 6px;
}

.player-card > div,
.user-info > div {
  min-height: 92px;
  padding: 8px;
  border: 4px solid var(--stone-dark);
  border-radius: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.14) 0 8px, transparent 8px 16px),
    var(--paper);
  text-align: center;
}

.label {
  display: block;
  margin-bottom: 3px;
  color: #536170;
  font-size: 1rem;
  font-weight: 800;
}

.player-card strong,
.user-info strong {
  display: block;
  font-size: clamp(1rem, 3vw, 1.45rem);
}

.hinata-avatar-card {
  display: grid;
  grid-template-columns: auto minmax(150px, 1fr);
  gap: 8px;
  align-items: center;
  justify-items: center;
  min-width: 220px;
  padding: 8px;
  border: 5px solid var(--grass-dark);
  background:
    linear-gradient(180deg, #9fe473 0 26px, #6bb84f 26px 52px, #8b5a35 52px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0 10px, transparent 10px 20px);
  box-shadow: 6px 6px 0 rgba(39, 32, 22, 0.26);
}

.avatar-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 8px;
  border: 4px solid var(--dirt-dark);
  background:
    linear-gradient(180deg, #9fe473 0 45%, #6bb84f 45% 62%, #8b5a35 62%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.12) 0 10px, transparent 10px 20px);
}

.avatar-copy {
  display: grid;
  gap: 4px;
  width: 100%;
  min-width: 0;
}

.avatar-copy strong {
  display: block;
  width: 100%;
  padding: 4px 6px;
  background: rgba(255, 242, 191, 0.94);
  border: 3px solid rgba(91, 56, 34, 0.45);
  font-size: 1rem;
  text-align: center;
  overflow-wrap: anywhere;
}

.avatar-copy span {
  display: block;
  width: 100%;
  padding: 3px 6px;
  background: rgba(255, 248, 220, 0.94);
  font-size: 0.85rem;
  font-weight: 900;
  text-align: center;
  overflow-wrap: anywhere;
}

.pixel-avatar {
  position: relative;
  flex: 0 0 auto;
  width: 92px;
  height: 126px;
  transform: scale(0.46);
  transform-origin: center;
  image-rendering: pixelated;
  object-fit: contain;
}

.pixel-avatar span {
  position: absolute;
  display: block;
  border-radius: 0;
}

.avatar-hair {
  left: 22px;
  top: 6px;
  width: 38px;
  height: 18px;
  background: #3c2416;
  box-shadow: -8px 10px 0 #3c2416, 8px 10px 0 #3c2416;
}

.avatar-face {
  left: 18px;
  top: 22px;
  width: 46px;
  height: 34px;
  background: #ffd39a;
  box-shadow:
    12px 12px 0 -6px #231d19,
    30px 12px 0 -6px #231d19,
    20px 24px 0 -7px #b85c5c;
}

.avatar-body {
  left: 22px;
  top: 58px;
  width: 38px;
  height: 34px;
  background: var(--emerald);
  box-shadow: inset 0 -10px 0 #0d8b5c, -8px 28px 0 #415b8f, 24px 28px 0 #415b8f;
}

.avatar-arm.left,
.avatar-arm.right {
  top: 60px;
  width: 12px;
  height: 34px;
  background: #ffd39a;
}

.avatar-arm.left {
  left: 8px;
}

.avatar-arm.right {
  right: 8px;
}

.avatar-tool {
  right: -2px;
  top: 48px;
  width: 10px;
  height: 50px;
  background: #734621;
  transform: rotate(-28deg);
  box-shadow: -10px -2px 0 #cfd5dc, -18px -2px 0 #9aa4ad;
}

.xp-panel {
  margin-top: 8px;
  padding: 8px 10px;
}

.xp-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 6px;
  padding: 5px 8px;
  background: rgba(255, 248, 220, 0.94);
  border: 3px solid rgba(91, 56, 34, 0.4);
  font-weight: 900;
}

.xp-track {
  height: 16px;
  overflow: hidden;
  border: 4px solid var(--stone-dark);
  border-radius: 0;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.08) 0 12px, transparent 12px 24px),
    #e3e8ee;
}

.xp-fill {
  width: 0%;
  height: 100%;
  background:
    radial-gradient(circle at 16px 16px, rgba(255, 255, 255, 0.65) 0 4px, transparent 5px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.28) 0 14px, transparent 14px 28px),
    linear-gradient(90deg, #b6f252, var(--emerald));
  transition: width 180ms ease;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin: 10px 0 8px;
}

.tab-button,
.primary-button,
.secondary-button,
.action-button,
.logout-button {
  min-height: 42px;
  border: 4px solid rgba(35, 29, 25, 0.45);
  border-radius: 0;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.22), 4px 4px 0 rgba(35, 29, 25, 0.22);
}

.tab-button {
  padding: 8px 8px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.08) 0 8px, transparent 8px 16px),
    var(--stone);
  font-size: 1rem;
}

.tab-button.active,
.primary-button {
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0 8px, transparent 8px 16px),
    var(--grass-dark);
}

.secondary-button {
  padding: 12px 16px;
  background: var(--stone);
}

.logout-button {
  width: 100%;
  margin-top: 8px;
  background: var(--purple);
}

.panel {
  padding: 12px;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.section-title > div {
  padding: 6px 8px;
  background: rgba(255, 248, 220, 0.96);
  border: 4px solid rgba(91, 56, 34, 0.45);
}

.section-title span,
.status-badge,
.date-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 3px solid var(--sun);
  border-radius: 0;
  background: #fff7d5;
  color: #231d19;
  font-weight: 900;
  white-space: nowrap;
}

.text-panel,
.quest-title-panel,
.child-switcher {
  padding: 12px;
  border: 4px solid rgba(91, 56, 34, 0.45);
  background: rgba(255, 248, 220, 0.96);
  color: var(--ink);
}

.child-switcher {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  font-size: 1.05rem;
  font-weight: 900;
}

.child-switcher.hidden {
  display: none;
}

.child-switcher select {
  min-height: 52px;
  padding: 8px 12px;
  border: 4px solid var(--stone-dark);
  background: #fff;
  color: var(--ink);
}

.quest-list,
.history-list,
.template-list {
  display: grid;
  gap: 8px;
}

.quest-item,
.history-day,
.template-item,
.empty-state {
  padding: 16px;
  border: 5px solid var(--stone-dark);
  border-radius: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.13) 0 10px, transparent 10px 20px),
    #a7b0b8;
  box-shadow: 5px 5px 0 rgba(35, 29, 25, 0.18);
}

.quest-item,
.template-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 48px;
}

.quest-item.approved {
  border-color: var(--grass);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.16) 0 10px, transparent 10px 20px),
    #87d66c;
}

.template-item.approved {
  border-color: var(--grass);
  background: #eefbe8;
}

.quest-item.reported {
  border-color: var(--sun);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.16) 0 10px, transparent 10px 20px),
    #f3d46a;
  animation: questPulse 900ms ease;
}

.template-item.reported {
  border-color: var(--sun);
  background: #fff7d5;
}

.quest-item.rejected {
  border-color: #f3a9a7;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.14) 0 10px, transparent 10px 20px),
    #df7872;
}

.template-item.rejected {
  border-color: #f3a9a7;
  background: #ffe5e5;
}

.quest-item.skipped {
  border-color: #8a95a3;
  background: #eef1f5;
}

.skipped-section {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.quest-item.quest-pop {
  animation: questPop 560ms cubic-bezier(0.2, 1.4, 0.35, 1);
}

.quest-title {
  display: block;
  min-width: 0;
  margin-bottom: 0;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 900;
  text-shadow: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quest-item .quest-title-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
}

#approvalList .quest-title-panel {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
}

#approvalList .quest-item {
  min-height: 48px;
}

.quest-meta,
.template-meta,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.quest-xp {
  color: #123d23;
  font-size: 1.05rem;
  font-weight: 900;
}

.status-badge {
  min-height: 26px;
  padding: 4px 8px;
  border-width: 2px;
  font-size: 0.88rem;
}

.status-not-started {
  border-color: #d8e3c7;
  background: #eef1f5;
}

.status-reported {
  border-color: var(--sun);
  background: #fff7d5;
}

.status-approved {
  border-color: var(--grass);
  background: #cbff9d;
}

.status-rejected {
  border-color: #f3a9a7;
  background: #ffe5e5;
}

.status-skipped {
  border-color: #8a95a3;
  background: #f1f3f6;
}

.status-planned {
  border-color: #b8c6ff;
  background: #eef2ff;
}

.status-inactive,
.status-off {
  border-color: #c5cbd3;
  background: #eef1f5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.action-button {
  min-width: 86px;
  min-height: 36px;
  padding: 5px 10px;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.12) 0 8px, transparent 8px 16px),
    var(--orange);
  font-size: 1.08rem;
}

.action-button.approve {
  background: var(--grass-dark);
}

.action-button.reject,
.action-button.disable {
  background: var(--danger);
}

.action-button.retry {
  background: var(--purple);
}

.action-button.skip {
  background: var(--stone);
}

.state-text {
  min-width: 72px;
  font-size: 0.95rem;
  font-weight: 900;
  text-align: right;
}

.quest-form,
.pin-form {
  display: grid;
  gap: 16px;
}

.quest-form {
  margin-bottom: 12px;
  padding: 10px;
  border: 4px solid #d8e3c7;
  border-radius: 0;
  background:
    repeating-linear-gradient(90deg, rgba(112, 66, 20, 0.16) 0 14px, transparent 14px 28px),
    #f5d39b;
}

.quest-form label,
.date-picker,
.pin-form label {
  display: grid;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 900;
}

.quest-form input,
.quest-form select,
.date-picker input,
.pin-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 4px solid #d8e3c7;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font-size: 1.2rem;
}

.date-picker {
  margin-bottom: 10px;
}

.history-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.history-title-row h2 {
  margin-bottom: 0;
}

.compact-date {
  display: flex;
  grid-template-columns: none;
  gap: 6px;
  align-items: center;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.compact-date input {
  min-height: 38px;
  width: auto;
  max-width: 170px;
  padding: 5px 8px;
  font-size: 0.95rem;
}

.primary-button {
  width: min(100%, 260px);
  padding: 12px 20px;
  font-size: 1.15rem;
}

.empty-state {
  border-style: dashed;
  background: #fffbea;
  font-size: 1.15rem;
  font-weight: 800;
  text-align: center;
}

.pin-error {
  min-height: 24px;
  margin: 0;
  color: var(--danger);
  font-weight: 900;
}

.history-day {
  display: grid;
  gap: 10px;
}

.history-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.history-header.text-panel {
  background: rgba(255, 248, 220, 0.96);
}

.history-quests {
  display: grid;
  gap: 8px;
}

.history-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 0;
  background: #f6f8fb;
}

.weekday-field {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 4px solid #d8e3c7;
  border-radius: 0;
  background: #fff;
}

.weekday-field legend {
  padding: 0 6px;
  font-weight: 900;
}

.weekday-field label,
.quest-form .checkbox-line {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 0;
  background: #fff7d5;
  font-weight: 900;
}

.weekday-field input,
.quest-form .checkbox-line input {
  width: 20px;
  height: 20px;
}

.template-item.inactive {
  opacity: 0.68;
}

.tracker-wrap {
  overflow-x: auto;
  padding-bottom: 8px;
}

.tracker-grid {
  display: grid;
  gap: 6px;
  min-width: max-content;
}

.tracker-row {
  display: grid;
  grid-template-columns: 180px repeat(var(--days-in-month), 42px);
  gap: 4px;
  align-items: center;
}

.tracker-head,
.tracker-name,
.tracker-cell {
  min-height: 42px;
  border-radius: 0;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #1f252b;
  text-shadow: none;
}

.tracker-head {
  border: 2px solid #3f4852;
  background: #f8fbff;
  color: #1f252b;
  font-size: 0.9rem;
}

.tracker-name {
  position: sticky;
  left: 0;
  z-index: 2;
  justify-items: start;
  padding: 8px;
  border: 4px solid var(--dirt-dark);
  background: #fff8dc;
  background-image: none;
  color: #231d19;
  text-align: left;
  box-shadow: 4px 0 0 rgba(35, 29, 25, 0.12);
}

.tracker-name small {
  display: block;
  margin-top: 2px;
  color: #174f28;
  line-height: 1.25;
}

.tracker-cell {
  border: 2px solid #aeb7c1;
  background: #f8fbff;
  background-image: none;
  font-size: 0.82rem;
}

.tracker-cell.approved {
  border-color: #2f7d32;
  background: #d8ffc4;
  color: #123d23;
}

.tracker-cell.reported {
  border-color: #b37a00;
  background: #fff1a8;
  color: #4c3600;
}

.tracker-cell.rejected {
  border-color: #b93c36;
  background: #ffdede;
  color: #5b1612;
}

.tracker-cell.skipped {
  border-color: #8a95a3;
  background: #f1f3f6;
  color: #333942;
}

.tracker-cell.not_started {
  background: #ffffff;
  color: #333942;
}

.tracker-cell.planned {
  border-color: #6074c8;
  background: #eef2ff;
  color: #25346f;
}

.tracker-cell.off {
  border-color: transparent;
  background: transparent;
  color: transparent;
}

.toast-zone {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.xp-toast {
  position: relative;
  min-width: 180px;
  padding: 12px 16px;
  border: 4px solid var(--grass-dark);
  background: #fff7b7;
  color: var(--ink);
  font-weight: 900;
  box-shadow: 5px 5px 0 rgba(35, 29, 25, 0.25);
  animation: toastFloat 1800ms ease forwards;
}

.xp-toast::after {
  content: "";
  position: absolute;
  right: 12px;
  top: -10px;
  width: 18px;
  height: 18px;
  background: var(--emerald);
  box-shadow: -24px 18px 0 #b6f252, -46px 2px 0 #fff15c;
  animation: orbFloat 1200ms ease forwards;
}

.level-up-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(21, 28, 35, 0.48);
  overflow: hidden;
}

.level-up-modal.hidden {
  display: none;
}

.level-up-card {
  position: relative;
  z-index: 2;
  width: min(92vw, 420px);
  padding: 28px;
  border: 7px solid var(--sun);
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.13) 0 12px, transparent 12px 24px),
    linear-gradient(180deg, #47d98b, #158f65);
  color: #fff;
  text-align: center;
  box-shadow: 9px 9px 0 rgba(0, 0, 0, 0.32);
  animation: levelCard 600ms cubic-bezier(0.2, 1.35, 0.35, 1);
}

.level-up-card p {
  margin-bottom: 8px;
  color: #fff15c;
  font-size: clamp(2.3rem, 10vw, 4.2rem);
  font-weight: 900;
  text-shadow: 4px 4px 0 #24583f;
}

.level-up-card strong {
  display: block;
  font-size: clamp(2rem, 8vw, 3.5rem);
}

.level-up-card span {
  display: block;
  margin-top: 8px;
  font-size: 1.3rem;
  font-weight: 900;
}

.fireworks span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  background: #fff15c;
  box-shadow: 28px 0 0 #b6f252, -28px 0 0 #47d98b, 0 28px 0 #7bd9ff, 0 -28px 0 #ff7d7d;
  animation: firework 1200ms ease-out infinite;
}

.fireworks span:nth-child(2) { left: 22%; top: 32%; animation-delay: 140ms; }
.fireworks span:nth-child(3) { left: 78%; top: 34%; animation-delay: 260ms; }
.fireworks span:nth-child(4) { left: 28%; top: 74%; animation-delay: 380ms; }
.fireworks span:nth-child(5) { left: 72%; top: 72%; animation-delay: 500ms; }
.fireworks span:nth-child(6) { left: 50%; top: 18%; animation-delay: 620ms; }

@keyframes questPop {
  0% { transform: translateY(0) scale(1); }
  38% { transform: translateY(-10px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes questPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 209, 92, 0.85), 5px 5px 0 rgba(35, 29, 25, 0.18); }
  100% { box-shadow: 0 0 0 14px rgba(255, 209, 92, 0), 5px 5px 0 rgba(35, 29, 25, 0.18); }
}

@keyframes toastFloat {
  0% { opacity: 0; transform: translateY(18px); }
  15% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; transform: translateY(-8px); }
  100% { opacity: 0; transform: translateY(-22px); }
}

@keyframes orbFloat {
  0% { opacity: 0; transform: translateY(12px) scale(0.7); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-36px) scale(1.15); }
}

@keyframes levelCard {
  0% { transform: translateY(28px) scale(0.8); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes firework {
  0% { transform: scale(0.2); opacity: 0; }
  35% { opacity: 1; }
  100% { transform: scale(2.6); opacity: 0; }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 18px, 1080px);
    padding-top: 12px;
  }

  .login-actions,
  .hero,
  .quest-item,
  .template-item,
  .section-title,
  .history-row {
    grid-template-columns: 1fr;
  }

  .login-card,
  .hero,
  .panel,
  .xp-panel {
    padding: 10px;
  }

  .section-title,
  .history-header {
    align-items: stretch;
  }

  .hinata-avatar-card {
    width: 100%;
    grid-template-columns: auto 1fr;
  }

  .avatar-frame {
    width: 70px;
  }

  .quest-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .quest-item .quest-title-panel {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
  }

  .player-card,
  .user-info {
    grid-template-columns: 1fr;
  }

  .tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .tab-button {
    min-height: 48px;
  }

  .actions,
  .state-text {
    justify-content: stretch;
    text-align: left;
  }

  .action-button,
  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .tracker-row {
    grid-template-columns: 150px repeat(var(--days-in-month), 38px);
  }
}
