/*
 * F018 -- application shell, navigation, page compositions, /display.
 *
 * Layout only. Object appearance lives in rpg_components.css; every value
 * here comes from rpg_tokens.css. Supersedes the F013-F017 shell rules,
 * which duplicated their own colours and spacing.
 */

/* ==========================================================================
   1. Shell chrome
   ========================================================================== */

.shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.shell__topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) var(--gutter-phone);
  background: linear-gradient(180deg, var(--rpg-surface-850), var(--rpg-bg-900));
  border-bottom: 1px solid var(--rpg-bronze);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .45);
}

.shell__brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--touch-min);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .04em;
  font-size: var(--type-heading-s);
  color: var(--rpg-parchment);
  text-decoration: none;
}

.shell__brand-mark {
  color: var(--rpg-gold);
}

/* Player chip -- a framed HUD readout, not a circular profile bubble. */
.shell__hud-chip {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--touch-min);
  padding: var(--space-1) var(--space-3) var(--space-1) var(--space-1);
  background: var(--rpg-bg-950);
  border: 1px solid var(--rpg-bronze);
  border-radius: var(--radius-sm);
  color: var(--rpg-text);
  text-decoration: none;
}

.shell__hud-chip:hover {
  border-color: var(--rpg-gold);
  color: var(--rpg-text);
}

.shell__hud-avatar {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--rpg-gold);
  background: var(--rpg-bg-950);
}

.shell__hud-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.shell__hud-level {
  font-family: var(--font-stat);
  font-size: 13px;
  font-weight: 600;
  color: var(--rpg-gold-bright);
}

.shell__hud-points {
  font-family: var(--font-stat);
  font-size: 11px;
  font-weight: 600;
  color: var(--rpg-points);
}

.shell__body {
  flex: 1;
  display: flex;
  min-width: 0;
}

.shell__content {
  flex: 1;
  min-width: 0;
  padding: var(--gutter-phone);
  padding-bottom: calc(var(--space-16) + var(--space-6));
}

/* ==========================================================================
   2. Navigation -- RPG menu rail / game menu bar
   ========================================================================== */

.shell-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.shell-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--touch-min);
  padding: var(--space-2) var(--space-3);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--rpg-text-muted);
  font-family: var(--font-ui);
  font-size: var(--type-compact);
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color var(--motion-hover) var(--ease-out),
    border-color var(--motion-hover) var(--ease-out),
    color var(--motion-hover) var(--ease-out);
}

.shell-nav-link:hover {
  background: var(--rpg-surface-800);
  border-color: var(--rpg-line);
  color: var(--rpg-text);
}

/* Active section: framed + surfaced + rune marker, never colour alone. */
.shell-nav-link.is-active {
  position: relative;
  background: linear-gradient(90deg, rgba(227, 185, 85, .16), transparent);
  border-color: var(--rpg-bronze);
  color: var(--rpg-parchment);
}

.shell-nav-link.is-active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: var(--space-2);
  bottom: var(--space-2);
  width: 3px;
  border-radius: 2px;
  background: var(--rpg-gold);
}

.shell__sidenav {
  display: none;
}

.shell__sidenav-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* Mobile bottom navigation (F013 architecture, restyled as a game menu). */

.shell__tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-tabbar);
  display: flex;
  gap: var(--space-1);
  background: linear-gradient(180deg, var(--rpg-surface-850), var(--rpg-bg-950));
  border-top: 1px solid var(--rpg-bronze);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .5);
  padding:
    var(--space-1)
    max(var(--space-1), env(safe-area-inset-right))
    calc(var(--space-1) + env(safe-area-inset-bottom))
    max(var(--space-1), env(safe-area-inset-left));
}

.shell__tab {
  flex: 1;
  min-height: var(--touch-min);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: var(--space-1) 2px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--rpg-text-muted);
  font-family: var(--font-ui);
  font-size: var(--type-hud-label);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}

.shell__tab:hover {
  color: var(--rpg-text);
}

/* Selected tab: parchment text, framed surface, rune marker on top edge. */
.shell__tab.is-active {
  background: var(--rpg-surface-800);
  border-color: var(--rpg-bronze);
  color: var(--rpg-parchment);
}

.shell__tab.is-active::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--rpg-gold);
}

.shell__tab .icon {
  width: 22px;
  height: 22px;
}

.shell__tab--menu summary {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: var(--touch-min);
  cursor: pointer;
}

.shell__tab--menu summary::-webkit-details-marker {
  display: none;
}

.shell__tab--menu[open] summary {
  color: var(--rpg-gold);
}

.shell__popover {
  position: absolute;
  bottom: calc(100% + var(--space-2));
  right: 0;
  z-index: var(--z-popover);
  min-width: 232px;
  max-height: 70vh;
  overflow-y: auto;
  background: var(--rpg-surface-850);
  border: 1px solid var(--rpg-bronze);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-panel);
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shell__popover a,
.shell__popover button {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
  min-height: var(--touch-min);
  box-sizing: border-box;
  text-align: left;
  padding: var(--space-2) var(--space-3);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: none;
  box-shadow: none;
  color: var(--rpg-text);
  font: inherit;
  font-size: var(--type-compact);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.shell__popover a:hover,
.shell__popover button:hover {
  background: var(--rpg-surface-800);
  border-color: var(--rpg-line);
}

.shell__popover form {
  margin: 0;
}

.shell__popover .shell-nav-list {
  margin: 0 0 var(--space-2);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--rpg-line);
}

/* ==========================================================================
   3. Page compositions
   ========================================================================== */

.page {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: var(--width-column);
  margin: 0 auto;
}

.page--wide {
  max-width: var(--width-page);
}

.landing {
  max-width: 440px;
  margin: var(--space-10) auto;
  padding: 0 var(--gutter-phone);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.landing__title {
  font-family: var(--font-display);
  font-size: var(--type-display-xl);
  line-height: 1.1;
  text-align: center;
  color: var(--rpg-parchment);
  margin: 0;
}

.landing .game-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Home: PLAYER HUD + ACTIVE QUEST LOG. */

.dashboard {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: var(--width-column);
  margin: 0 auto;
}

.dashboard__side {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* The player HUD is a character status card that spans the dashboard. */
.player-hud {
  padding: var(--space-4);
}

.player-hud .party-card__portrait {
  width: 96px;
  height: 96px;
}

.player-hud__edit {
  align-self: flex-start;
}

.quick-actions__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

/* Schedule (Tasks Today/Week/Month). */

.schedule-page {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  max-width: var(--width-column);
  margin: 0 auto;
}

.schedule-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.schedule-header__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--type-display-l);
  line-height: 1.15;
  color: var(--rpg-parchment);
}

/* Game-menu tabs (Today / Week / Month) -- also used on /display. */
.schedule-modes {
  display: flex;
  gap: var(--space-1);
  padding: var(--space-1);
  background: var(--rpg-bg-950);
  border: 1px solid var(--rpg-line);
  border-radius: var(--radius-sm);
}

.schedule-modes__tab {
  flex: 1;
  min-height: var(--touch-min);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-3);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--rpg-text-muted);
  font-family: var(--font-ui);
  font-size: var(--type-compact);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color var(--motion-hover) var(--ease-out);
}

.schedule-modes__tab:hover {
  background: var(--rpg-surface-800);
  color: var(--rpg-text);
}

.schedule-modes__tab--active {
  background: linear-gradient(180deg, var(--rpg-surface-750), var(--rpg-surface-800));
  border-color: var(--rpg-gold);
  color: var(--rpg-parchment);
}

.schedule-period-nav {
  display: flex;
  gap: var(--space-2);
  margin: var(--space-4) 0;
}

.schedule-period-nav .action-btn {
  flex: 1;
  min-width: 0;
  padding-left: var(--space-2);
  padding-right: var(--space-2);
}

.schedule-range-heading {
  margin: 0 0 var(--space-4);
  font-family: var(--font-display);
  font-size: var(--type-heading-m);
  color: var(--rpg-parchment);
}

.schedule-utility-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.week-days,
.month-days {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* A day is a mission-schedule block, not a spreadsheet cell. */
.week-day,
.month-day {
  padding: var(--space-3);
  background: var(--rpg-bg-950);
  border: 1px solid var(--rpg-line);
  border-radius: var(--radius-sm);
}

.week-day--today {
  border-color: var(--rpg-gold);
  background:
    linear-gradient(180deg, rgba(227, 185, 85, .08), transparent 40%),
    var(--rpg-bg-950);
}

.week-day__header,
.month-day__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--rpg-line);
}

.week-day__weekday,
.month-day__weekday {
  font-family: var(--font-ui);
  font-size: var(--type-hud-label);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rpg-text-muted);
}

.week-day__date,
.month-day__date {
  font-family: var(--font-stat);
  font-size: 13px;
  font-weight: 600;
  color: var(--rpg-text-muted);
}

.week-day--today .week-day__date {
  color: var(--rpg-gold-bright);
}

/* Character sheet (Avatar / Skills). */

.character-sheet {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.character-sheet__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}

.character-sheet__portrait {
  width: 200px;
  height: 200px;
  max-width: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 3px solid var(--rpg-gold);
  box-shadow:
    0 0 0 1px var(--rpg-bg-950),
    0 0 0 6px var(--rpg-bronze),
    0 12px 32px rgba(0, 0, 0, .5);
  background: var(--rpg-bg-950);
}

.character-sheet__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--type-display-l);
  line-height: 1.15;
  color: var(--rpg-parchment);
  overflow-wrap: anywhere;
}

.character-sheet__meters {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.character-sheet__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-3);
  width: 100%;
}

.character-sheet__stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3);
  background: var(--rpg-bg-950);
  border: 1px solid var(--rpg-line);
  border-radius: var(--radius-sm);
  text-align: left;
}

@media (min-width: 700px) {
  .character-sheet__hero {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }

  .character-sheet__hero-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }
}

/* ==========================================================================
   4. Laptop / desktop -- recomposed, not stretched
   ========================================================================== */

@media (min-width: 900px) {
  .shell__topbar {
    padding: var(--space-2) var(--gutter-desktop);
  }

  .shell__tabbar {
    display: none;
  }

  .shell__content {
    padding: var(--gutter-desktop);
    padding-bottom: var(--gutter-desktop);
  }

  .shell__sidenav {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    width: 248px;
    flex-shrink: 0;
    padding: var(--space-4);
    background: linear-gradient(180deg, var(--rpg-surface-850), var(--rpg-bg-900));
    border-right: 1px solid var(--rpg-bronze);
    position: sticky;
    top: 61px;
    align-self: flex-start;
    height: calc(100vh - 61px);
    overflow-y: auto;
  }

  .shell__sidenav .shell-nav-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
  }

  .shell__logout {
    margin-top: auto;
  }

  .page,
  .dashboard,
  .schedule-page {
    max-width: var(--width-page);
  }

  .dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: start;
    gap: var(--space-6);
  }

  .dashboard .player-hud {
    grid-column: 1 / -1;
  }

  .schedule-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .schedule-modes {
    width: auto;
  }

  .schedule-modes__tab {
    flex: 0 0 auto;
    min-width: 110px;
  }

  .week-days {
    flex-direction: row;
    align-items: flex-start;
  }

  .week-day {
    flex: 1 1 0;
    min-width: 0;
  }

  .month-days {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
  }

  .character-sheet {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: var(--space-6);
  }

  .character-sheet__hero-panel {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   5. /display -- PARTY STATUS BOARD
   ========================================================================== */

.display-mode {
  padding: var(--space-6);
  background:
    radial-gradient(1400px 700px at 50% 0%, rgba(227, 185, 85, .07), transparent 65%),
    var(--rpg-bg-950);
}

.display {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  max-width: var(--width-display);
  margin: 0 auto;
}

.display-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  border-color: var(--rpg-bronze);
}

.display-header__household {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--type-display-l);
  line-height: 1.1;
  color: var(--rpg-parchment);
  min-width: 0;
  overflow-wrap: anywhere;
}

.display-header__status {
  margin: var(--space-1) 0 0;
  font-family: var(--font-ui);
  font-size: var(--type-hud-label);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rpg-text-muted);
}

.display-header__date {
  margin: 0;
  font-family: var(--font-stat);
  font-size: var(--type-heading-s);
  font-weight: 600;
  color: var(--rpg-gold-bright);
}

/* Display controls are large game-menu tabs, not admin chrome. */
.display .schedule-modes__tab {
  min-height: var(--touch-display);
  min-width: 132px;
  font-size: var(--type-heading-s);
}

.display .section-heading {
  font-size: var(--type-compact);
}

/* Party roster is the hero: avatar art outweighs text metrics. Portrait /
   name / level-badge scale up only from 700px so a narrow phone hitting
   /display keeps the compact card sizing -- at TV widths the fixed-size
   portrait + badge otherwise crowd the name column into single-letter
   wrapping. */
.display .member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-5);
}

@media (min-width: 700px) {
  .display .party-card {
    padding: var(--space-5);
    gap: var(--space-5);
  }

  .display .party-card__portrait {
    width: 144px;
    height: 144px;
  }

  .display .party-card__name {
    font-size: 26px;
  }

  .display .level-badge {
    min-width: 62px;
  }

  .display .level-badge__value {
    font-size: 24px;
  }
}

.display .stat-meter__track {
  height: 18px;
}

.display .stat-meter__value {
  font-size: var(--type-body);
}

.display .task-entry__name {
  font-size: 20px;
}

.display .task-entry__meta {
  font-size: var(--type-body);
}

.display .status-badge {
  font-size: 13px;
  padding: var(--space-1) var(--space-3);
}

.display .action-btn {
  min-height: var(--touch-display);
  font-size: var(--type-body);
}

.display .empty-state {
  font-size: var(--type-body);
}

.display-columns {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.display-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.display-nav {
  text-align: center;
  margin: 0;
}

/* Detail drill-down panel. */

.display-detail {
  border-color: var(--rpg-gold);
}

.display-detail__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.display-detail__close {
  min-height: var(--touch-display);
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.member-detail__profile {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
}

.member-detail__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.task-detail__name {
  margin: 0 0 var(--space-2);
  font-family: var(--font-display);
  font-size: var(--type-heading-m);
  color: var(--rpg-parchment);
}

.task-detail__description {
  margin: 0 0 var(--space-4);
  color: var(--rpg-text-muted);
}

.task-detail__facts {
  margin: 0 0 var(--space-4);
  display: flex;
  flex-direction: column;
}

.task-detail__fact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--rpg-line);
}

.task-detail__fact dt {
  font-family: var(--font-ui);
  font-size: var(--type-hud-label);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--rpg-text-muted);
}

.task-detail__fact dd {
  margin: 0;
  text-align: right;
}

/* Recent activity -- a quiet log, deliberately a supporting region. */

.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.activity-list__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--rpg-line);
}

.activity-list__item:last-child {
  border-bottom: none;
}

.activity-list__text {
  font-size: var(--type-compact);
}

.activity-list__time {
  font-family: var(--font-stat);
  font-size: 12px;
  color: var(--rpg-text-muted);
}

/* Tappable surfaces on the touch display. */

.party-card--tappable,
.quest-panel--tappable {
  cursor: pointer;
  transition: border-color var(--motion-hover) var(--ease-out);
}

.party-card--tappable:hover,
.quest-panel--tappable:hover {
  border-color: var(--rpg-gold-bright);
}

.task-row--tappable {
  cursor: pointer;
}

.task-row--tappable:hover {
  border-color: var(--rpg-gold);
}

.task-row__stretched-link {
  position: absolute;
  inset: 0;
  z-index: var(--z-content);
}

.task-row__stretched-link:focus-visible {
  box-shadow: inset 0 0 0 2px var(--rpg-gold-bright);
}

@media (min-width: 1100px) {
  .display-mode {
    padding: var(--space-10);
  }

  .display-header__household {
    font-size: var(--type-display-xl);
  }

  .display-columns {
    flex-direction: row;
    align-items: flex-start;
  }

  .display-schedule {
    flex: 1.7 1 0;
    min-width: 0;
  }

  .display-side {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* Real TV panels (1080p and up, viewed from several feet away): the layout
   was previously capped at --width-display (1680px) with no further growth,
   so a 1920px+ screen just left a large dead margin around a laptop-sized
   card instead of reading as a 10-foot game HUD. These steps scale the
   roster, meters and type up so content actually fills the panel. */
@media (min-width: 1600px) {
  .display-mode {
    padding: var(--space-16);
  }

  .display {
    max-width: 2200px;
    gap: var(--space-8);
  }

  .display-header__household {
    font-size: 44px;
  }

  .display .section-heading {
    font-size: var(--type-body);
  }

  .display .member-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-6);
  }

  .display .party-card {
    padding: var(--space-6);
    gap: var(--space-6);
  }

  .display .party-card__portrait {
    width: 180px;
    height: 180px;
  }

  .display .party-card__name {
    font-size: 32px;
  }

  .display .level-badge {
    min-width: 76px;
  }

  .display .level-badge__value {
    font-size: 30px;
  }

  .display .icon {
    width: 32px;
    height: 32px;
  }

  .display .stat-meter__track {
    height: 22px;
  }

  .display .stat-meter__value {
    font-size: var(--type-heading-s);
  }

  .display .task-entry__name {
    font-size: 24px;
  }

  .display .task-entry__meta {
    font-size: var(--type-body);
  }

  .display .status-badge {
    font-size: var(--type-compact);
    padding: var(--space-2) var(--space-4);
  }

  .display .action-btn {
    font-size: var(--type-heading-s);
  }
}

/* 4K panels. */
@media (min-width: 2600px) {
  .display {
    max-width: 3200px;
  }

  .display-header__household {
    font-size: 60px;
  }

  .display .member-grid {
    grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  }

  .display .party-card__portrait {
    width: 240px;
    height: 240px;
  }

  .display .party-card__name {
    font-size: 42px;
  }

  .display .level-badge {
    min-width: 96px;
  }

  .display .level-badge__value {
    font-size: 38px;
  }

  .display .icon {
    width: 40px;
    height: 40px;
  }

  .display .task-entry__name {
    font-size: 30px;
  }

  .display .task-entry__meta {
    font-size: 20px;
  }
}
