/* REBOUND · detailed player mode */

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.career-start-button {
  width: 230px;
  min-height: 48px;
}

.player-mode-screen {
  width: min(1510px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.pm-hud {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 150px 1.05fr 1.25fr .8fr .9fr auto;
  min-height: 70px;
  overflow: hidden;
  border: 1px solid rgba(241, 236, 223, .16);
  border-radius: 4px;
  background: rgba(6, 14, 12, .94);
  box-shadow: 0 16px 46px rgba(0, 0, 0, .28);
}

.pm-date-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .06), transparent),
    var(--red);
  color: #fff;
}

.pm-date-block > span {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .14em;
}

.pm-date-block > strong {
  font-family: Georgia, var(--font-serif);
  font-size: 13px;
  font-style: italic;
  letter-spacing: .05em;
}

.pm-date-block b {
  font-size: 22px;
}

.pm-hud-fact {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 0 18px;
  border-right: 1px solid rgba(241, 236, 223, .1);
}

.pm-hud-fact > span {
  color: rgba(241, 236, 223, .48);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .17em;
}

.pm-hud-fact > strong {
  overflow: hidden;
  color: var(--paper);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-hud-fact strong b {
  color: var(--mint);
  font-size: 15px;
}

.pm-hud-fact > small {
  overflow: hidden;
  color: rgba(241, 236, 223, .34);
  font-size: 6px;
  font-weight: 800;
  letter-spacing: .05em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-hud-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
}

.pm-utility-button {
  min-width: 48px;
  min-height: 36px;
  border: 1px solid rgba(241, 236, 223, .14);
  background: rgba(255, 255, 255, .025);
  color: rgba(241, 236, 223, .66);
  cursor: pointer;
  font-size: 8px;
  font-weight: 900;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.pm-utility-button:hover {
  border-color: rgba(114, 201, 174, .52);
  background: rgba(114, 201, 174, .08);
  color: var(--mint);
}

.pm-utility-button.is-save {
  border-color: rgba(240, 77, 63, .42);
  color: #ff8d82;
}

.pm-workspace {
  display: grid;
  grid-template-columns: 246px minmax(510px, 1fr) 304px;
  align-items: start;
  gap: 14px;
  margin-top: 14px;
}

.pm-player-column,
.pm-scene-column,
.pm-season-column {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.pm-player-card,
.pm-resource-card,
.pm-memory-card,
.pm-narrative-card,
.pm-season-card,
.pm-schedule-card,
.pm-relationship-card,
.pm-log-card {
  min-width: 0;
  border: 1px solid rgba(241, 236, 223, .13);
  border-radius: 4px;
  background: rgba(12, 25, 21, .92);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .16);
}

.pm-player-card {
  overflow: hidden;
}

.pm-player-card-head {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(241, 236, 223, .1);
  color: rgba(241, 236, 223, .58);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .12em;
}

.pm-player-card-head span:first-child {
  color: var(--red);
}

.pm-player-portrait {
  position: relative;
  display: grid;
  height: 188px;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(241, 236, 223, .1);
  background:
    radial-gradient(circle at 54% 25%, rgba(214, 168, 79, .22), transparent 29%),
    radial-gradient(circle at 47% 58%, rgba(240, 77, 63, .13), transparent 47%),
    linear-gradient(155deg, #172a24, #07100e 76%);
}

.pm-player-portrait::before {
  position: absolute;
  bottom: -79px;
  width: 202px;
  height: 202px;
  border-radius: 48% 52% 12% 12%;
  background:
    linear-gradient(90deg, transparent 47%, rgba(255,255,255,.08) 48%, rgba(255,255,255,.08) 52%, transparent 53%),
    #050b09;
  box-shadow: inset 0 13px rgba(240, 77, 63, .32);
  content: "";
}

.pm-player-portrait::after {
  position: absolute;
  top: 37px;
  width: 82px;
  height: 101px;
  border-radius: 48% 50% 43% 45%;
  background: #050b09;
  box-shadow: -17px -11px 0 -9px #050b09;
  content: "";
}

.pm-player-portrait > span {
  position: relative;
  z-index: 2;
  margin-top: 71px;
  color: rgba(241, 236, 223, .09);
  font-family: Georgia, serif;
  font-size: 74px;
  font-style: italic;
  font-weight: 900;
}

.pm-player-portrait > img {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.pm-player-portrait:has(> img)::before,
.pm-player-portrait:has(> img)::after,
.pm-player-portrait:has(> img) > span,
.pm-player-portrait:has(> img) > i {
  display: none;
}

.pm-player-portrait > i {
  position: absolute;
  z-index: 1;
  inset: 18px;
  border: 1px solid rgba(241, 236, 223, .06);
  border-radius: 50%;
}

.pm-player-name {
  padding: 18px 18px 15px;
  border-bottom: 1px solid rgba(241, 236, 223, .09);
}

.pm-player-name p,
.pm-player-name span {
  margin: 0;
  color: rgba(241, 236, 223, .48);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .04em;
}

.pm-player-name h2 {
  margin: 6px 0 7px;
  font-family: var(--font-serif);
  font-size: 25px;
  letter-spacing: -.05em;
}

.pm-abilities {
  display: grid;
  gap: 9px;
  padding: 15px 17px 18px;
}

.pm-ability {
  display: grid;
  grid-template-columns: 34px 1fr 25px;
  align-items: center;
  gap: 8px;
}

.pm-ability > span {
  color: rgba(241, 236, 223, .62);
  font-size: 8px;
  font-weight: 800;
}

.pm-ability > i {
  position: relative;
  display: block;
  height: 3px;
  overflow: hidden;
  background: rgba(241, 236, 223, .08);
}

.pm-ability > i::after {
  display: block;
  width: var(--ability);
  height: 100%;
  background: var(--mint);
  box-shadow: 0 0 12px rgba(114, 201, 174, .42);
  content: "";
}

.pm-ability > i.is-elite::after {
  background: var(--gold);
  box-shadow: 0 0 12px rgba(214, 168, 79, .42);
}

.pm-ability > i.is-transcendent::after,
.pm-pitch-chip.is-transcendent i::after {
  background: linear-gradient(90deg, var(--gold), #f3f0df, var(--mint));
  box-shadow: 0 0 14px rgba(241, 236, 223, .5);
}

.pm-ability > i.is-low::after {
  background: var(--red);
}

.pm-ability > strong {
  color: var(--paper);
  font-family: Georgia, serif;
  font-size: 11px;
  text-align: right;
}

.pm-pitch-card {
  border-color: rgba(114, 201, 174, .2);
  background:
    linear-gradient(135deg, rgba(114, 201, 174, .055), transparent 52%),
    rgba(12, 25, 21, .92);
}

.pm-pitch-card[hidden] {
  display: none;
}

.pm-pitch-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
  padding-top: 7px;
  border-top: 1px solid rgba(241, 236, 223, .07);
}

.pm-pitch-nav span {
  color: rgba(241, 236, 223, .34);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .08em;
}

.pm-pitch-list {
  display: grid;
  gap: 7px;
}

.pm-pitch-chip {
  display: grid;
  grid-template-columns: 40px 1fr 24px;
  align-items: center;
  gap: 7px;
}

.pm-pitch-chip span {
  overflow: hidden;
  color: rgba(241, 236, 223, .66);
  font-size: 8px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-pitch-chip i {
  display: block;
  height: 3px;
  overflow: hidden;
  background: rgba(241, 236, 223, .08);
}

.pm-pitch-chip i::after {
  display: block;
  width: var(--pitch-rating);
  height: 100%;
  background: var(--blue);
  content: "";
}

.pm-pitch-chip.is-elite i::after {
  background: var(--gold);
}

.pm-pitch-chip strong {
  color: var(--paper);
  font-family: Georgia, serif;
  font-size: 11px;
  text-align: right;
}

.pm-pitch-nav button {
  width: 30px;
  height: 24px;
  border: 1px solid rgba(241, 236, 223, .12);
  background: rgba(255, 255, 255, .025);
  color: var(--mint);
  cursor: pointer;
}

.pm-pitch-nav button:disabled {
  cursor: default;
  opacity: .25;
}

.pm-resource-card,
.pm-season-card,
.pm-schedule-card,
.pm-relationship-card,
.pm-log-card {
  padding: 16px;
}

.pm-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.pm-section-heading h3 {
  overflow: hidden;
  margin: 0;
  color: var(--paper);
  font-family: Georgia, var(--font-serif);
  font-size: 10px;
  font-style: italic;
  letter-spacing: .07em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-section-heading > span {
  flex: 0 0 auto;
  color: rgba(241, 236, 223, .38);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .08em;
}

.pm-resource-list {
  display: grid;
  gap: 13px;
}

.pm-resource > div > span {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
}

.pm-resource strong,
.pm-resource b {
  font-size: 8px;
}

.pm-resource b {
  color: var(--mint);
}

.pm-resource small {
  display: block;
  overflow: hidden;
  margin-bottom: 6px;
  color: rgba(241, 236, 223, .35);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-resource > i {
  display: block;
  height: 3px;
  background: rgba(241, 236, 223, .07);
}

.pm-resource > i::after {
  display: block;
  width: var(--resource);
  height: 100%;
  background: var(--blue);
  content: "";
}

.pm-resource > i.is-high::after {
  background: var(--mint);
}

.pm-resource > i.is-low::after {
  background: var(--red);
}

.pm-memory-card {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  padding: 17px 15px;
  border-color: rgba(214, 168, 79, .3);
  background:
    radial-gradient(circle at 0 50%, rgba(214, 168, 79, .13), transparent 37%),
    rgba(15, 26, 22, .94);
}

.pm-memory-card::after {
  position: absolute;
  right: -21px;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(214, 168, 79, .1);
  border-radius: 50%;
  content: "";
}

.pm-memory-symbol {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 31px;
  font-style: italic;
}

.pm-memory-card div {
  min-width: 0;
}

.pm-memory-card div > span {
  display: block;
  margin-bottom: 3px;
  color: rgba(214, 168, 79, .6);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .14em;
}

.pm-memory-card div > strong {
  display: block;
  font-size: 10px;
}

.pm-memory-card p {
  overflow: hidden;
  margin: 4px 0 0;
  color: rgba(241, 236, 223, .38);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-memory-card > b {
  position: relative;
  z-index: 1;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 12px;
}

.pm-scene-visual {
  position: relative;
  min-height: 330px;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(241, 236, 223, .14);
  border-radius: 4px;
  background: #06100d;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .27);
}

.pm-scene-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: pm-image-in 480ms ease both;
}

.pm-scene-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 9, 8, .83) 0, rgba(4, 9, 8, .22) 45%, transparent 76%),
    linear-gradient(0deg, rgba(4, 9, 8, .82), transparent 40%);
  pointer-events: none;
}

.pm-scene-visual figcaption {
  position: absolute;
  z-index: 2;
  left: 24px;
  bottom: 21px;
  display: grid;
  gap: 5px;
  max-width: 45%;
}

.pm-scene-visual figcaption span {
  color: rgba(241, 236, 223, .66);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .08em;
}

.pm-scene-visual figcaption strong {
  font-family: var(--font-serif);
  font-size: 18px;
}

.pm-scoreboard {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 18px;
  width: min(270px, 45%);
  padding: 12px 13px 11px;
  border: 1px solid rgba(241, 236, 223, .25);
  border-radius: 3px;
  background: rgba(4, 10, 8, .87);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .4);
  backdrop-filter: blur(11px);
}

.pm-score-top {
  display: flex;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(241, 236, 223, .1);
  color: rgba(241, 236, 223, .55);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .09em;
}

.pm-score-top span:first-child {
  color: var(--gold);
}

.pm-score-teams {
  display: grid;
  grid-template-columns: 1fr 12px 1fr;
  align-items: center;
  gap: 5px;
  padding: 8px 0 5px;
}

.pm-score-teams div {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.pm-score-teams span {
  overflow: hidden;
  font-size: 8px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-score-teams b {
  color: #fff;
  font-family: Georgia, serif;
  font-size: 18px;
}

.pm-score-teams > i {
  color: rgba(241, 236, 223, .28);
  font-style: normal;
  text-align: center;
}

.pm-diamond {
  position: absolute;
  top: 48px;
  left: 50%;
  width: 34px;
  height: 26px;
  translate: -50% 0;
  pointer-events: none;
}

.pm-diamond .base {
  position: absolute;
  width: 7px;
  height: 7px;
  rotate: 45deg;
  border: 1px solid rgba(241, 236, 223, .34);
  background: rgba(241, 236, 223, .08);
}

.pm-diamond .base.is-on {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: 0 0 10px rgba(214, 168, 79, .75);
}

.pm-diamond .base-2 {
  top: 0;
  left: 13px;
}

.pm-diamond .base-3 {
  top: 12px;
  left: 2px;
}

.pm-diamond .base-1 {
  top: 12px;
  right: 2px;
}

.pm-scoreboard > p {
  overflow: hidden;
  margin: 3px 0 0;
  padding-top: 6px;
  border-top: 1px solid rgba(241, 236, 223, .08);
  color: rgba(241, 236, 223, .4);
  font-size: 6px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-narrative-card {
  padding: clamp(20px, 2.2vw, 30px);
}

.pm-narrative-title {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 14px;
}

.pm-narrative-title > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(240, 77, 63, .4);
  border-radius: 50%;
  background: rgba(240, 77, 63, .08);
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 900;
}

.pm-narrative-title p {
  margin: 0 0 3px;
  color: rgba(241, 236, 223, .38);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .14em;
}

.pm-narrative-title h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.2vw, 34px);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.15;
}

.pm-event-story {
  margin: 17px 0 20px;
  color: rgba(241, 236, 223, .66);
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.85;
  white-space: pre-line;
}

.pm-result-block {
  margin-bottom: 16px;
  padding: 13px;
  border: 1px solid rgba(114, 201, 174, .22);
  background: rgba(114, 201, 174, .055);
}

.pm-result-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.pm-result-stat {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px;
  border-right: 1px solid rgba(241, 236, 223, .09);
  text-align: center;
}

.pm-result-stat:last-child {
  border-right: 0;
}

.pm-result-stat span {
  color: rgba(241, 236, 223, .42);
  font-size: 7px;
}

.pm-result-stat strong {
  color: var(--mint);
  font-family: Georgia, serif;
  font-size: 16px;
}

.pm-result-stat.is-negative strong {
  color: var(--red);
}

.pm-result-stat.is-neutral strong {
  color: var(--paper-dim);
}

.pm-result-block > p {
  margin: 8px 0 0;
  padding-top: 9px;
  border-top: 1px solid rgba(241, 236, 223, .08);
  color: rgba(241, 236, 223, .5);
  font-size: 8px;
  line-height: 1.5;
  text-align: center;
}

.pm-live-log {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 13px;
  margin-bottom: 16px;
  padding: 11px 12px;
  border: 1px solid rgba(112, 169, 216, .17);
  background: rgba(112, 169, 216, .035);
}

.pm-live-log > span {
  padding-top: 4px;
  color: var(--blue);
  font-family: Georgia, serif;
  font-size: 7px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: .09em;
}

.pm-live-log ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pm-live-log li {
  display: grid;
  grid-template-columns: 27px 1fr;
  gap: 8px;
  min-width: 0;
}

.pm-live-log time {
  color: rgba(241, 236, 223, .3);
  font-family: Georgia, serif;
  font-size: 7px;
}

.pm-live-log li > span {
  display: flex;
  min-width: 0;
  gap: 7px;
}

.pm-live-log strong,
.pm-live-log small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-live-log strong {
  flex: 0 1 auto;
  font-size: 7px;
}

.pm-live-log small {
  flex: 1;
  color: rgba(241, 236, 223, .35);
  font-size: 6px;
}

.pm-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.player-mode-screen[data-view="daily-result"] .pm-options,
.player-mode-screen[data-view="monthly-result"] .pm-options,
.player-mode-screen[data-view="event-result"] .pm-options {
  grid-template-columns: 1fr;
}

.pm-option {
  position: relative;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 76px;
  padding: 12px 11px;
  overflow: hidden;
  border: 1px solid rgba(241, 236, 223, .12);
  border-radius: 2px;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, .022), transparent 50%),
    rgba(5, 13, 11, .54);
  color: var(--paper);
  cursor: pointer;
  text-align: left;
  transition:
    translate 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.pm-option::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background: transparent;
  content: "";
}

.pm-option:hover:not(:disabled) {
  translate: 0 -2px;
  border-color: rgba(240, 77, 63, .42);
  background: rgba(240, 77, 63, .055);
}

.pm-option:hover:not(:disabled)::after {
  background: var(--red);
}

.pm-option:disabled {
  cursor: not-allowed;
  filter: grayscale(.7);
  opacity: .42;
}

.pm-option.is-memory {
  border-color: rgba(214, 168, 79, .25);
}

.pm-option.is-memory:hover:not(:disabled) {
  border-color: rgba(214, 168, 79, .55);
  background: rgba(214, 168, 79, .055);
}

.pm-option.is-memory:hover:not(:disabled)::after {
  background: var(--gold);
}

.pm-option.is-quick {
  border-style: dashed;
  border-color: rgba(112, 169, 216, .28);
}

.pm-option.is-danger {
  border-color: rgba(240, 77, 63, .28);
}

.pm-option-index {
  color: rgba(241, 236, 223, .22);
  font-family: Georgia, serif;
  font-size: 17px;
  font-style: italic;
}

.pm-option-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.pm-option-copy strong {
  font-size: 10px;
}

.pm-option-copy small {
  overflow: visible;
  color: rgba(241, 236, 223, .42);
  font-size: 7px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.pm-narrative-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding-top: 13px;
  border-top: 1px solid rgba(241, 236, 223, .08);
}

.pm-narrative-footer p {
  margin: 0;
  color: rgba(241, 236, 223, .34);
  font-size: 7px;
  line-height: 1.6;
}

.pm-narrative-footer p span {
  margin-right: 6px;
  color: var(--red);
  font-weight: 900;
}

.pm-retire-button {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: rgba(240, 77, 63, .6);
  cursor: pointer;
  font-size: 7px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pm-progress-track {
  height: 3px;
  margin: -3px 0 14px;
  overflow: hidden;
  background: rgba(241, 236, 223, .07);
}

.pm-progress-track i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  transition: width 400ms ease;
}

.pm-season-record {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 9px;
  border: 1px solid rgba(241, 236, 223, .08);
}

.pm-season-record div {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  padding: 8px 4px;
  border-right: 1px solid rgba(241, 236, 223, .08);
}

.pm-season-record div:last-child {
  border: 0;
}

.pm-season-record span {
  color: rgba(241, 236, 223, .34);
  font-size: 6px;
  font-weight: 900;
}

.pm-season-record strong {
  font-family: Georgia, serif;
  font-size: 14px;
}

.pm-season-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
}

.pm-season-stats div {
  display: grid;
  gap: 4px;
  padding: 8px 3px;
  background: rgba(255, 255, 255, .025);
  text-align: center;
}

.pm-season-stats span {
  color: rgba(241, 236, 223, .35);
  font-size: 6px;
  font-weight: 900;
}

.pm-season-stats strong {
  color: var(--mint);
  font-family: Georgia, serif;
  font-size: 12px;
}

.pm-subheading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 15px 0 9px;
}

.pm-subheading::after {
  flex: 1;
  height: 1px;
  background: rgba(241, 236, 223, .08);
  content: "";
}

.pm-subheading span {
  color: rgba(241, 236, 223, .35);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .11em;
}

.pm-goal-list,
.pm-upcoming-list,
.pm-career-history,
.pm-log-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pm-goal-list {
  display: grid;
  gap: 7px;
}

.pm-goal-list li {
  display: grid;
  grid-template-columns: 17px 1fr;
  align-items: center;
  gap: 7px;
}

.pm-goal-list i {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border: 1px solid rgba(241, 236, 223, .14);
  color: rgba(241, 236, 223, .34);
  font-size: 9px;
  font-style: normal;
}

.pm-goal-list li.is-complete i {
  border-color: var(--mint);
  background: rgba(114, 201, 174, .1);
  color: var(--mint);
}

.pm-goal-list span {
  display: grid;
  gap: 2px;
}

.pm-goal-list strong {
  font-size: 8px;
}

.pm-goal-list small {
  color: rgba(241, 236, 223, .35);
  font-size: 7px;
}

.pm-upcoming-list {
  display: grid;
}

.pm-upcoming-list li {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 9px 0;
  border-top: 1px solid rgba(241, 236, 223, .07);
}

.pm-upcoming-list li:first-child {
  border-top: 0;
  padding-top: 1px;
}

.pm-upcoming-list li.is-next {
  color: var(--paper);
}

.pm-upcoming-list time {
  color: rgba(241, 236, 223, .38);
  font-family: Georgia, serif;
  font-size: 10px;
}

.pm-upcoming-list li.is-next time {
  color: var(--red);
}

.pm-upcoming-list li > span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.pm-upcoming-list strong,
.pm-upcoming-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-upcoming-list strong {
  font-size: 8px;
}

.pm-upcoming-list small {
  color: rgba(241, 236, 223, .34);
  font-size: 6px;
}

.pm-upcoming-list b {
  color: rgba(241, 236, 223, .27);
  font-family: Georgia, serif;
  font-size: 8px;
}

.pm-upcoming-list .is-empty {
  display: block;
  color: rgba(241, 236, 223, .4);
  font-size: 8px;
}

.pm-history-card {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

.pm-career-history {
  display: grid;
  flex: 1;
  min-height: 0;
  max-height: 184px;
  overflow: auto;
  scrollbar-width: thin;
}

.pm-career-history li {
  display: grid;
  grid-template-columns: minmax(128px, .34fr) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px 0;
  border-top: 1px solid rgba(241, 236, 223, .07);
}

.pm-career-history li:first-child {
  border-top: 0;
  padding-top: 1px;
}

.pm-history-identity {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  gap: 4px;
}

.pm-history-year {
  color: rgba(241, 236, 223, .46);
  font-family: Georgia, serif;
  font-size: 9px;
}

.pm-history-team {
  min-width: 0;
  overflow: hidden;
  color: rgba(241, 236, 223, .36);
  font-size: 6px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-history-level {
  padding: 2px 4px;
  border: 1px solid rgba(111, 216, 190, .24);
  border-radius: 2px;
  color: var(--mint);
  font-size: 6px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.pm-career-history li.is-current .pm-history-year {
  color: var(--red);
}

.pm-history-line {
  overflow: hidden;
  color: rgba(241, 236, 223, .68);
  font-size: 7px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-awards-panel {
  min-width: 0;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid rgba(214, 168, 79, .16);
}

.pm-awards-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .1em;
}

.pm-awards-heading b {
  font-family: Georgia, serif;
  font-size: 8px;
}

.pm-awards-list {
  display: flex;
  gap: 5px;
  margin: 0;
  padding: 0 0 2px;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: thin;
}

.pm-awards-list li {
  flex: 0 0 auto;
  max-width: 150px;
  overflow: hidden;
  padding: 5px 7px;
  border: 1px solid rgba(214, 168, 79, .2);
  background: rgba(214, 168, 79, .05);
  color: rgba(241, 236, 223, .72);
  font-size: 6px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-awards-list li.is-empty {
  border-color: rgba(241, 236, 223, .08);
  background: transparent;
  color: rgba(241, 236, 223, .3);
}

.pm-relationship-list {
  display: grid;
  gap: 10px;
}

.pm-relationship-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pm-relationship-nav button {
  display: grid;
  width: 22px;
  height: 20px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(241, 236, 223, .12);
  border-radius: 2px;
  background: rgba(255, 255, 255, .025);
  color: var(--paper);
  font-size: 9px;
  cursor: pointer;
}

.pm-relationship-nav button:disabled {
  opacity: .25;
  cursor: default;
}

.pm-personality-insight {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
  padding: 8px 9px;
  border: 1px solid rgba(214, 168, 79, .18);
  background: rgba(214, 168, 79, .035);
}

.pm-personality-insight strong {
  color: var(--gold);
  font-size: 8px;
  letter-spacing: .02em;
}

.pm-personality-insight small {
  overflow: visible;
  color: rgba(241, 236, 223, .42);
  font-size: 6px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.pm-relationship {
  display: grid;
  grid-template-columns: 29px 1fr 24px;
  align-items: start;
  gap: 8px;
}

.pm-relationship-avatar {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid rgba(241, 236, 223, .14);
  border-radius: 50%;
  background: rgba(255, 255, 255, .03);
  color: rgba(241, 236, 223, .62);
  font-size: 9px;
  font-weight: 900;
  object-fit: cover;
}

.pm-relationship > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.pm-relationship strong,
.pm-relationship small {
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.pm-relationship strong {
  font-size: 7px;
}

.pm-relationship small {
  color: rgba(241, 236, 223, .34);
  font-size: 6px;
  line-height: 1.45;
}

.pm-relationship i {
  height: 2px;
  overflow: hidden;
  background: rgba(241, 236, 223, .07);
}

.pm-relationship i::after {
  display: block;
  width: var(--affinity);
  height: 100%;
  background: var(--mint);
  content: "";
}

.pm-relationship > b {
  padding-top: 2px;
  color: var(--mint);
  font-family: Georgia, serif;
  font-size: 9px;
  text-align: right;
}

.pm-relationship > b.is-negative {
  color: var(--red);
}

.pm-log-list {
  display: grid;
  gap: 9px;
}

.pm-log-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 8px;
  min-width: 0;
}

.pm-log-list time {
  padding-top: 1px;
  color: rgba(241, 236, 223, .3);
  font-family: Georgia, serif;
  font-size: 8px;
}

.pm-log-list span {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.pm-log-list strong,
.pm-log-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-log-list strong {
  font-size: 7px;
}

.pm-log-list small {
  color: rgba(241, 236, 223, .32);
  font-size: 6px;
}

/* Dedicated game day */

.game-mode-screen {
  position: relative;
  width: min(1580px, calc(100% - 36px));
  margin: 0 auto;
  padding: 18px 0 44px;
}

.game-mode-screen::before {
  position: fixed;
  z-index: -2;
  inset: 82px 0 0;
  background:
    radial-gradient(circle at 50% 22%, rgba(50, 110, 83, .2), transparent 35%),
    linear-gradient(180deg, #07100e 0, #091b15 54%, #050a08 100%);
  content: "";
}

.gm-score-ribbon {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 240px minmax(440px, 1fr) 286px;
  min-height: 84px;
  overflow: hidden;
  border: 1px solid rgba(241, 236, 223, .18);
  border-bottom-color: rgba(114, 201, 174, .3);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .025), transparent 32%),
    rgba(3, 11, 8, .97);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .34);
}

.gm-game-identity {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px 22px;
  border-right: 1px solid rgba(241, 236, 223, .1);
}

.gm-game-identity > span,
.gm-game-identity > small {
  color: rgba(241, 236, 223, .42);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .13em;
}

.gm-game-identity > span {
  color: var(--red);
}

.gm-game-identity > strong {
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gm-score {
  display: grid;
  grid-template-columns: 1fr 90px 1fr;
  align-items: center;
  min-width: 0;
  padding: 8px clamp(18px, 3vw, 48px);
}

.gm-score-team {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 12px;
}

.gm-score-team.is-home {
  grid-template-columns: 46px minmax(0, 1fr) 48px;
  text-align: right;
}

.gm-score-team > span {
  color: rgba(241, 236, 223, .31);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .14em;
}

.gm-score-team > strong {
  overflow: hidden;
  font-size: clamp(11px, 1.2vw, 15px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gm-score-team > b {
  color: #fff;
  font-family: Georgia, serif;
  font-size: clamp(27px, 2.7vw, 40px);
  line-height: 1;
  text-align: center;
}

.gm-score-center {
  display: grid;
  justify-items: center;
  gap: 3px;
}

.gm-score-center > span {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 900;
}

.gm-score-center > i {
  position: absolute;
  color: rgba(241, 236, 223, .2);
  font-family: Georgia, serif;
  font-size: 28px;
  font-style: normal;
}

.gm-score-center > small {
  color: rgba(241, 236, 223, .4);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .08em;
}

.gm-game-state {
  display: grid;
  grid-template-columns: 54px 78px 1fr;
  align-items: center;
  padding: 10px 12px;
  border-left: 1px solid rgba(241, 236, 223, .1);
}

.gm-game-state > div {
  display: grid;
  gap: 4px;
  text-align: center;
}

.gm-game-state > div span {
  color: rgba(241, 236, 223, .35);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .11em;
}

.gm-game-state > div strong {
  color: var(--mint);
  font-family: Georgia, serif;
  font-size: 14px;
}

.gm-game-state nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.gm-game-state button {
  min-height: 32px;
  border: 1px solid rgba(241, 236, 223, .13);
  background: rgba(255, 255, 255, .025);
  color: rgba(241, 236, 223, .55);
  cursor: pointer;
  font-size: 7px;
  font-weight: 900;
}

.gm-game-state button:hover {
  border-color: rgba(114, 201, 174, .48);
  color: var(--mint);
}

.gm-layout {
  display: grid;
  grid-template-columns: minmax(620px, 1.5fr) minmax(390px, .72fr);
  align-items: start;
  gap: 14px;
  margin-top: 14px;
}

.gm-field-zone {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.gm-stadium {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  border: 1px solid rgba(241, 236, 223, .16);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(123, 181, 200, .15), transparent 42%),
    linear-gradient(180deg, #0c2624 0 25%, #06120f 25% 100%);
  box-shadow:
    inset 0 -60px 90px rgba(0, 0, 0, .32),
    0 22px 55px rgba(0, 0, 0, .28);
}

.gm-stadium::before {
  position: absolute;
  z-index: 2;
  top: 12%;
  left: 50%;
  width: 88%;
  height: 25%;
  translate: -50% 0;
  border: 14px solid #07100e;
  border-bottom-width: 24px;
  border-radius: 50% 50% 20% 20% / 80% 80% 18% 18%;
  box-shadow:
    0 12px 0 rgba(45, 68, 59, .9),
    inset 0 -8px 0 rgba(241, 236, 223, .07);
  content: "";
}

.gm-stadium::after {
  position: absolute;
  z-index: 4;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .38), transparent 20% 80%, rgba(0, 0, 0, .38)),
    linear-gradient(0deg, rgba(0, 0, 0, .24), transparent 37%);
  pointer-events: none;
  content: "";
}

.gm-stadium-lights {
  position: absolute;
  z-index: 3;
  top: 4%;
  left: 50%;
  display: flex;
  width: 72%;
  justify-content: space-between;
  translate: -50% 0;
}

.gm-stadium-lights i {
  width: 9%;
  height: 7px;
  border-radius: 50%;
  background: rgba(241, 247, 220, .86);
  box-shadow:
    0 0 14px rgba(241, 247, 220, .72),
    0 18px 35px rgba(197, 231, 205, .25);
}

.gm-crowd {
  position: absolute;
  z-index: 3;
  top: 17%;
  left: 50%;
  width: 82%;
  height: 12%;
  translate: -50% 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(241, 236, 223, .55) 0 1px, transparent 1.5px) 0 0 / 12px 9px,
    radial-gradient(circle, rgba(240, 77, 63, .5) 0 1px, transparent 1.5px) 5px 3px / 17px 11px;
  opacity: .48;
}

.gm-field {
  position: absolute;
  z-index: 3;
  bottom: -8%;
  left: 50%;
  width: 94%;
  height: 83%;
  translate: -50% 0;
  overflow: hidden;
  border: 6px solid #856b42;
  border-bottom: 0;
  border-radius: 48% 48% 4% 4% / 34% 34% 4% 4%;
  background: #176346;
  box-shadow:
    inset 0 0 0 4px rgba(241, 236, 223, .16),
    0 -15px 50px rgba(22, 93, 64, .25);
}

.gm-outfield-stripes {
  position: absolute;
  inset: 0;
  background:
    repeating-conic-gradient(
      from -7deg at 50% 91%,
      rgba(255, 255, 255, .045) 0 8deg,
      rgba(0, 0, 0, .045) 8deg 16deg
    ),
    linear-gradient(180deg, #237856, #12523a 82%);
}

.gm-outfield-stripes::after {
  position: absolute;
  top: 5%;
  left: 50%;
  width: 88%;
  height: 67%;
  translate: -50% 0;
  border: 1px solid rgba(241, 236, 223, .13);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 44% 44% 0 0;
  content: "";
}

.gm-foul-line {
  position: absolute;
  z-index: 3;
  bottom: 8%;
  left: calc(50% - 1px);
  width: 2px;
  height: 91%;
  transform-origin: 50% 100%;
  background: rgba(252, 248, 230, .82);
  box-shadow: 0 0 4px rgba(255, 255, 255, .3);
}

.gm-foul-line.is-left {
  rotate: -38deg;
}

.gm-foul-line.is-right {
  rotate: 38deg;
}

.gm-infield-dirt,
.gm-infield-grass {
  position: absolute;
  z-index: 2;
  bottom: 7%;
  left: 50%;
  width: 38%;
  aspect-ratio: 1;
  translate: -50% 0;
  rotate: 45deg;
  border-radius: 17%;
  background: #a27c4c;
  box-shadow: inset 0 0 28px rgba(65, 39, 20, .25);
}

.gm-infield-grass {
  z-index: 3;
  bottom: 14%;
  width: 27%;
  border: 2px solid rgba(245, 236, 211, .58);
  border-radius: 10%;
  background: #1c694a;
  box-shadow: inset 0 0 18px rgba(3, 25, 17, .2);
}

.gm-mound {
  position: absolute;
  z-index: 5;
  bottom: 28%;
  left: 50%;
  width: 35px;
  height: 16px;
  translate: -50% 0;
  border-radius: 50%;
  background: #aa8351;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
}

.gm-mound::after {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 14px;
  height: 2px;
  translate: -50% 0;
  background: #f1ecdf;
  content: "";
}

.gm-home-plate {
  position: absolute;
  z-index: 6;
  bottom: 7%;
  left: 50%;
  width: 18px;
  height: 14px;
  translate: -50% 0;
  clip-path: polygon(0 0, 100% 0, 84% 65%, 50% 100%, 16% 65%);
  background: #f8f4e8;
  box-shadow: 0 0 7px rgba(255, 255, 255, .35);
}

.gm-base {
  position: absolute;
  z-index: 7;
  width: 15px;
  height: 15px;
  rotate: 45deg;
  border: 2px solid rgba(255, 255, 255, .84);
  background: rgba(241, 236, 223, .82);
  box-shadow: 0 3px 7px rgba(0, 0, 0, .22);
}

.gm-base-1 {
  right: 29%;
  bottom: 32%;
}

.gm-base-2 {
  bottom: 54%;
  left: calc(50% - 7px);
}

.gm-base-3 {
  bottom: 32%;
  left: 29%;
}

.gm-base.is-on {
  border-color: #fff5c4;
  background: var(--gold);
  box-shadow:
    0 0 0 5px rgba(214, 168, 79, .2),
    0 0 18px rgba(255, 211, 104, .95);
  animation: gm-base-pulse 1.15s ease-in-out infinite alternate;
}

.gm-defender {
  position: absolute;
  z-index: 5;
  width: 9px;
  height: 9px;
  border: 2px solid rgba(241, 236, 223, .72);
  border-radius: 50%;
  background: #123d5b;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .4);
}

.gm-defender-lf {
  top: 25%;
  left: 24%;
}

.gm-defender-cf {
  top: 13%;
  left: 50%;
}

.gm-defender-rf {
  top: 25%;
  right: 24%;
}

.gm-defender-ss {
  bottom: 44%;
  left: 39%;
}

.gm-defender-2b {
  right: 39%;
  bottom: 44%;
}

.gm-focus-marker {
  position: absolute;
  z-index: 9;
  bottom: 9%;
  left: 50%;
  display: grid;
  width: 34px;
  height: 34px;
  translate: -50% 50%;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, .92);
  border-radius: 50%;
  background: var(--red);
  box-shadow:
    0 0 0 7px rgba(240, 77, 63, .2),
    0 8px 18px rgba(0, 0, 0, .38);
  transition:
    left 360ms ease,
    bottom 360ms ease;
}

.gm-focus-marker > i {
  position: absolute;
  z-index: -1;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(240, 77, 63, .6);
  border-radius: 50%;
  animation: gm-focus-ring 1.4s ease-out infinite;
}

.gm-focus-marker > b {
  color: #fff;
  font-size: 10px;
}

.gm-field[data-mode="pitching"] .gm-focus-marker,
.gm-field[data-mode="pregame"] .gm-focus-marker,
.gm-field[data-mode="postgame"] .gm-focus-marker {
  bottom: 30%;
}

.gm-field[data-mode="defense"] .gm-focus-marker {
  bottom: 44%;
  left: 39%;
}

.gm-field[data-mode="baserun"] .gm-focus-marker {
  right: 29%;
  bottom: 34%;
  left: auto;
}

.gm-field-caption {
  position: absolute;
  z-index: 6;
  right: 18px;
  bottom: 15px;
  display: flex;
  max-width: calc(100% - 36px);
  align-items: center;
  gap: 13px;
  padding: 9px 12px;
  border: 1px solid rgba(241, 236, 223, .16);
  background: rgba(2, 9, 7, .78);
  backdrop-filter: blur(8px);
}

.gm-field-caption > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--mint);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .12em;
}

.gm-field-caption > span i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
}

.gm-field-caption > strong {
  overflow: hidden;
  color: rgba(241, 236, 223, .7);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gm-live-panel {
  min-height: 130px;
  padding: 15px 18px;
  border: 1px solid rgba(241, 236, 223, .12);
  background: rgba(7, 18, 14, .92);
}

.gm-live-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(241, 236, 223, .08);
}

.gm-live-heading > span {
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 8px;
  font-style: italic;
  font-weight: 900;
  letter-spacing: .12em;
}

.gm-live-heading > strong {
  color: var(--mint);
  font-size: 8px;
}

.gm-live-panel ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gm-live-panel li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  min-width: 0;
}

.gm-live-panel time {
  color: rgba(241, 236, 223, .3);
  font-family: Georgia, serif;
  font-size: 7px;
}

.gm-live-panel li > span {
  display: grid;
  min-width: 0;
  grid-template-columns: auto 1fr;
  gap: 7px;
}

.gm-live-panel strong,
.gm-live-panel small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gm-live-panel strong {
  font-size: 7px;
}

.gm-live-panel small {
  color: rgba(241, 236, 223, .34);
  font-size: 6px;
}

.gm-live-panel > p {
  margin: 20px 0 4px;
  color: rgba(241, 236, 223, .32);
  font-size: 8px;
  text-align: center;
}

.gm-decision-panel {
  position: sticky;
  top: 98px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(241, 236, 223, .15);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .025), transparent 34%),
    rgba(8, 20, 16, .97);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .25);
}

.gm-player-strip {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(241, 236, 223, .1);
  background: rgba(0, 0, 0, .16);
}

.gm-player-strip > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(240, 77, 63, .45);
  border-radius: 50%;
  background: rgba(240, 77, 63, .13);
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 17px;
  font-style: italic;
  font-weight: 900;
}

.gm-player-strip .gm-player-face {
  position: relative;
  overflow: hidden;
}

.gm-player-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.gm-player-face b {
  display: none;
}

.gm-player-strip > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.gm-player-strip small {
  color: rgba(241, 236, 223, .32);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .12em;
}

.gm-player-strip strong {
  font-family: var(--font-serif);
  font-size: 14px;
}

.gm-player-strip p {
  overflow: hidden;
  margin: 0;
  color: rgba(241, 236, 223, .43);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gm-player-strip dl {
  display: flex;
  gap: 9px;
  margin: 0;
}

.gm-player-strip dl div {
  display: grid;
  gap: 3px;
  min-width: 30px;
  text-align: center;
}

.gm-player-strip dt {
  color: rgba(241, 236, 223, .33);
  font-size: 6px;
}

.gm-player-strip dd {
  margin: 0;
  color: var(--mint);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 900;
}

.gm-moment-heading {
  padding: 24px 24px 0;
}

.gm-moment-heading p {
  margin: 0 0 12px;
  color: rgba(241, 236, 223, .35);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .1em;
}

.gm-moment-heading > span {
  display: inline-block;
  margin-bottom: 7px;
  padding: 4px 7px;
  border-left: 2px solid var(--red);
  background: rgba(240, 77, 63, .08);
  color: #ff8e85;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .1em;
}

.gm-moment-heading h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(25px, 2.3vw, 37px);
  letter-spacing: -.055em;
  line-height: 1.12;
}

.gm-story {
  margin: 14px 24px 18px;
  color: rgba(241, 236, 223, .62);
  font-family: var(--font-serif);
  font-size: 13px;
  line-height: 1.72;
}

.gm-result-block {
  margin: 0 24px 15px;
  padding: 11px;
  border: 1px solid rgba(114, 201, 174, .2);
  background: rgba(114, 201, 174, .045);
}

.gm-result-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gm-result-stat {
  display: grid;
  gap: 3px;
  padding: 7px 4px;
  border-right: 1px solid rgba(241, 236, 223, .08);
  text-align: center;
}

.gm-result-stat:last-child {
  border-right: 0;
}

.gm-result-stat span {
  color: rgba(241, 236, 223, .35);
  font-size: 6px;
}

.gm-result-stat strong {
  color: var(--mint);
  font-family: Georgia, serif;
  font-size: 15px;
}

.gm-result-stat.is-negative strong {
  color: var(--red);
}

.gm-result-block > p {
  margin: 7px 0 0;
  padding-top: 8px;
  border-top: 1px solid rgba(241, 236, 223, .08);
  color: rgba(241, 236, 223, .43);
  font-size: 7px;
  line-height: 1.45;
  text-align: center;
}

.gm-options {
  display: grid;
  gap: 7px;
  padding: 0 24px 22px;
}

.gm-option {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 64px;
  padding: 10px 11px;
  overflow: hidden;
  border: 1px solid rgba(241, 236, 223, .12);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .025), transparent 55%),
    rgba(3, 11, 8, .52);
  color: var(--paper);
  cursor: pointer;
  text-align: left;
  transition:
    translate 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.gm-option::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background: transparent;
  content: "";
}

.gm-option:hover:not(:disabled) {
  translate: -3px 0;
  border-color: rgba(240, 77, 63, .5);
  background: rgba(240, 77, 63, .06);
}

.gm-option:hover:not(:disabled)::after {
  background: var(--red);
}

.gm-option:disabled {
  cursor: not-allowed;
  filter: grayscale(.75);
  opacity: .4;
}

.gm-option.is-memory {
  border-color: rgba(214, 168, 79, .3);
}

.gm-option.is-memory:hover:not(:disabled) {
  border-color: rgba(214, 168, 79, .62);
  background: rgba(214, 168, 79, .055);
}

.gm-option.is-memory:hover:not(:disabled)::after {
  background: var(--gold);
}

.gm-option.is-quick {
  border-style: dashed;
  border-color: rgba(112, 169, 216, .3);
}

.gm-option-index {
  color: rgba(241, 236, 223, .22);
  font-family: Georgia, serif;
  font-size: 15px;
  font-style: italic;
}

.gm-option-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.gm-option-copy strong {
  font-size: 9px;
}

.gm-option-copy small {
  overflow: visible;
  color: rgba(241, 236, 223, .4);
  font-size: 7px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

.gm-decision-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 24px;
  border-top: 1px solid rgba(241, 236, 223, .08);
  background: rgba(0, 0, 0, .13);
}

.gm-decision-footer span,
.gm-decision-footer p {
  margin: 0;
  color: rgba(241, 236, 223, .31);
  font-size: 6px;
}

.gm-decision-footer span {
  color: var(--red);
  font-weight: 900;
}

@keyframes gm-base-pulse {
  to {
    box-shadow:
      0 0 0 8px rgba(214, 168, 79, .06),
      0 0 22px rgba(255, 211, 104, 1);
  }
}

@keyframes gm-focus-ring {
  from {
    opacity: .9;
    scale: .65;
  }
  to {
    opacity: 0;
    scale: 1.2;
  }
}

/* Ending */

.ending-screen {
  position: relative;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 72px;
}

.ending-screen::before {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 430px;
  translate: -50% 0;
  background:
    radial-gradient(circle at 50% 10%, rgba(214, 168, 79, .18), transparent 48%),
    linear-gradient(0deg, var(--ink) 0, rgba(7, 16, 14, .35) 67%, rgba(7, 16, 14, .7));
  opacity: .72;
  content: "";
}

.ending-hero {
  position: relative;
  display: grid;
  min-height: 305px;
  overflow: hidden;
  align-content: center;
  justify-items: center;
  padding: 42px;
  border: 1px solid rgba(241, 236, 223, .13);
  text-align: center;
}

.ending-hero::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 13, 11, .72), rgba(5, 13, 11, .28) 50%, rgba(5, 13, 11, .72)),
    linear-gradient(0deg, rgba(5, 13, 11, .86), transparent 58%, rgba(5, 13, 11, .36));
  content: "";
}

.ending-chapter-image {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity .28s ease;
}

.ending-hero > :not(.ending-chapter-image) {
  position: relative;
  z-index: 2;
}

.ending-code {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .2em;
}

.ending-seal {
  display: grid;
  width: 57px;
  height: 57px;
  margin-bottom: 17px;
  place-items: center;
  border: 1px solid rgba(240, 77, 63, .55);
  border-radius: 50%;
  background: rgba(240, 77, 63, .18);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 28px;
  font-style: italic;
}

.ending-hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 67px);
  letter-spacing: -.07em;
  line-height: 1.07;
  text-shadow: 0 4px 28px #000;
}

.ending-hero > #endingSubtitle {
  margin: 14px 0 0;
  color: rgba(241, 236, 223, .65);
  font-family: var(--font-serif);
  font-size: 14px;
}

.ending-chapter-progress {
  display: grid;
  min-width: 58px;
  min-height: 24px;
  margin: 18px 0 0;
  place-items: center;
  border: 1px solid rgba(241, 236, 223, .28);
  background: rgba(5, 13, 11, .62);
  color: rgba(255, 255, 255, .82);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .14em;
}

.ending-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 14px;
}

.ending-grid.is-story-only {
  grid-template-columns: 1fr;
}

.ending-story-card,
.ending-record-card {
  border: 1px solid rgba(241, 236, 223, .13);
  background: rgba(11, 23, 19, .95);
}

.ending-story-card {
  padding: 34px;
}

.ending-narrative {
  display: grid;
  gap: 13px;
}

.ending-narrative p {
  margin: 0;
  color: rgba(241, 236, 223, .68);
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.8;
}

.ending-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
}

.ending-tags span {
  padding: 7px 10px;
  border: 1px solid rgba(214, 168, 79, .25);
  color: var(--gold);
  font-size: 7px;
  font-weight: 900;
}

.ending-record-card {
  padding: 23px;
}

.ending-records {
  display: grid;
  margin-top: 18px;
}

.ending-record {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid rgba(241, 236, 223, .08);
}

.ending-record span {
  color: rgba(241, 236, 223, .42);
  font-size: 8px;
}

.ending-record strong {
  font-family: Georgia, serif;
  font-size: 11px;
}

.ending-wealth {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  padding: 16px;
  background: rgba(214, 168, 79, .07);
}

.ending-wealth span {
  color: rgba(241, 236, 223, .4);
  font-size: 7px;
}

.ending-wealth strong {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 17px;
}

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

.secondary-button {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(241, 236, 223, .16);
  background: rgba(255, 255, 255, .03);
  color: rgba(241, 236, 223, .7);
  cursor: pointer;
  font-size: 9px;
  font-weight: 900;
}

/* Timeline dialog */

.career-history-dialog {
  width: min(760px, calc(100% - 32px));
  max-height: min(780px, calc(100vh - 50px));
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(241, 236, 223, .16);
  border-radius: 4px;
  background: #0b1713;
  color: var(--paper);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .58);
}

.career-history-dialog::backdrop {
  background: rgba(2, 6, 5, .78);
  backdrop-filter: blur(7px);
}

.career-history-list {
  display: grid;
  max-height: calc(100vh - 185px);
  gap: 0;
  margin: 0;
  padding: 22px 26px 30px;
  overflow-y: auto;
  list-style: none;
}

.career-history-list li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid rgba(241, 236, 223, .08);
}

.career-history-list time {
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 10px;
}

.career-history-list li > span {
  display: grid;
  gap: 5px;
}

.career-history-list b {
  font-size: 10px;
}

.career-history-list small {
  color: rgba(241, 236, 223, .45);
  font-size: 8px;
  line-height: 1.55;
}

@keyframes pm-image-in {
  from {
    opacity: .45;
    scale: 1.025;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

/* Readable, compact desktop density for a one-screen player-mode workspace. */
.pm-condition-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(80px, 1fr)) minmax(150px, 1.4fr) minmax(140px, 1.2fr);
  gap: 1px;
  margin-top: 7px;
  overflow: hidden;
  border: 1px solid rgba(241, 236, 223, .14);
  border-radius: 4px;
  background: rgba(241, 236, 223, .1);
}

.pm-condition-strip > div {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-width: 0;
  gap: 3px 8px;
  min-height: 48px;
  padding: 7px 12px 9px;
  background: rgba(7, 17, 14, .97);
}

.pm-condition-strip span {
  color: rgba(241, 236, 223, .56);
  font-size: 10px;
  font-weight: 800;
}

.pm-condition-strip strong {
  overflow: hidden;
  color: var(--paper);
  font-family: Georgia, var(--font-serif);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-condition-strip strong.is-high {
  color: var(--mint);
}

.pm-condition-strip strong.is-low {
  color: var(--red);
}

.pm-condition-strip > div.is-injury-zone {
  background:
    linear-gradient(120deg, rgba(240, 77, 63, .2), transparent 72%),
    rgba(24, 10, 9, .98);
  box-shadow: inset 0 0 0 1px rgba(240, 77, 63, .38);
}

.pm-condition-strip > div.is-injury-zone span::after {
  margin-left: 5px;
  color: var(--red);
  content: "부상주의";
  font-size: 8px;
}

.pm-condition-strip i {
  grid-column: 1 / -1;
  height: 3px;
  overflow: hidden;
  background: rgba(241, 236, 223, .08);
}

.pm-condition-strip i::after {
  display: block;
  width: var(--condition);
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--mint));
  content: "";
}

.pm-condition-strip .is-lineup,
.pm-condition-strip .is-position {
  grid-template-columns: 1fr auto;
  background:
    linear-gradient(120deg, rgba(114, 201, 174, .08), transparent 62%),
    rgba(7, 17, 14, .97);
}

.pm-condition-strip .is-lineup strong,
.pm-condition-strip .is-position strong {
  grid-column: 1 / -1;
  font-family: var(--font-sans);
  font-size: 12px;
}

.pm-condition-strip small {
  position: absolute;
  top: 8px;
  right: 11px;
  color: var(--mint);
  font-size: 9px;
  font-weight: 900;
}

.pm-mobile-tabs {
  display: none;
}

.pm-position-xp {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
}

.pm-position-xp > span {
  color: var(--mint);
  font-size: 8px;
  letter-spacing: .08em;
}

.pm-position-xp > i {
  height: 3px;
  overflow: hidden;
  background: rgba(241, 236, 223, .08);
}

.pm-position-xp > i::after {
  display: block;
  width: var(--position-xp);
  height: 100%;
  background: var(--mint);
  content: "";
}

.pm-position-xp > b {
  color: var(--mint);
  font-family: Georgia, serif;
  font-size: 11px;
}

.player-mode-screen,
.game-mode-screen {
  padding-top: 10px;
  padding-bottom: 24px;
}

.pm-hud {
  min-height: 60px;
}

.pm-date-block,
.pm-hud-fact {
  padding-inline: 13px;
}

.pm-date-block > span,
.pm-hud-fact > span {
  font-size: 9px;
}

.pm-date-block > strong {
  font-size: 15px;
}

.pm-hud-fact {
  gap: 4px;
}

.pm-hud-fact > strong {
  font-size: 12px;
}

.pm-utility-button {
  min-height: 32px;
  font-size: 10px;
}

.pm-workspace {
  grid-template-columns: 220px minmax(500px, 1fr) 286px;
  gap: 8px;
  margin-top: 8px;
}

.pm-player-column,
.pm-scene-column,
.pm-season-column {
  gap: 8px;
}

.pm-player-card-head {
  padding: 10px 14px;
  font-size: 9px;
}

.pm-player-portrait {
  height: 126px;
}

.pm-player-name {
  padding: 10px 14px;
}

.pm-player-name p,
.pm-player-name span {
  font-size: 10px;
}

.pm-player-name h2 {
  margin-block: 3px;
  font-size: 23px;
}

.pm-abilities {
  gap: 6px;
  padding: 10px 14px;
}

.pm-ability > span {
  font-size: 10px;
}

.pm-ability > strong {
  font-size: 12px;
}

.pm-resource-card,
.pm-memory-card,
.pm-season-card,
.pm-schedule-card,
.pm-relationship-card,
.pm-log-card {
  padding: 10px 12px;
}

.pm-section-heading {
  margin-bottom: 9px;
}

.pm-section-heading h3 {
  font-size: 12px;
}

.pm-section-heading > span,
.pm-resource small {
  font-size: 9px;
}

.pm-resource-list {
  gap: 8px;
}

.pm-resource strong,
.pm-resource b {
  font-size: 10px;
}

.pm-scene-visual {
  min-height: 230px;
  aspect-ratio: 16 / 7;
}

.pm-scene-visual figcaption span {
  font-size: 9px;
}

.pm-scene-visual figcaption strong {
  font-size: 20px;
}

.pm-narrative-card {
  padding: 15px 17px;
}

.pm-narrative-title h1 {
  font-size: 27px;
}

.pm-narrative-title p,
.pm-event-kicker,
.pm-result-note {
  font-size: 10px;
}

.pm-event-story {
  margin-block: 10px;
  font-size: 15px;
  line-height: 1.55;
}

.pm-result-block {
  margin-bottom: 10px;
  padding: 9px;
}

.pm-options {
  gap: 6px;
}

.pm-option {
  min-height: 58px;
  padding: 8px 10px;
}

.pm-option-index {
  font-size: 16px;
}

.pm-option-copy strong {
  font-size: 11px;
}

.pm-option-copy small {
  font-size: 9px;
  line-height: 1.4;
}

.pm-season-row,
.pm-schedule-item,
.pm-relationship,
.pm-log-item {
  font-size: 10px;
}

.pm-season-record span,
.pm-season-stats span,
.pm-subheading span {
  font-size: 8px;
}

.pm-season-record strong {
  font-size: 15px;
}

.pm-season-stats strong {
  font-size: 13px;
}

.pm-goal-list strong,
.pm-upcoming-list strong,
.pm-relationship strong,
.pm-log-list strong {
  font-size: 10px;
}

.pm-goal-list small,
.pm-upcoming-list small,
.pm-relationship small,
.pm-log-list small {
  font-size: 8px;
}

.pm-upcoming-list b,
.pm-log-list time,
.pm-relationship > b {
  font-size: 10px;
}

.pm-narrative-footer p,
.pm-retire-button {
  font-size: 9px;
}

.gm-score-ribbon {
  min-height: 70px;
}

.gm-layout {
  gap: 8px;
  margin-top: 8px;
}

.gm-stadium {
  min-height: 450px;
}

.gm-live-panel {
  min-height: 105px;
  padding: 10px 14px;
}

.gm-player-strip {
  padding: 10px 12px;
}

.gm-player-strip small,
.gm-player-strip p,
.gm-player-strip dt {
  font-size: 9px;
}

.gm-player-strip strong {
  font-size: 15px;
}

.gm-player-strip dd {
  font-size: 13px;
}

.gm-moment-heading {
  padding: 16px 18px 0;
}

.gm-moment-story {
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 1240px) {
  .player-mode-screen {
    width: min(1120px, calc(100% - 32px));
  }

  .pm-hud {
    grid-template-columns: 140px 1fr 1fr .75fr auto;
  }

  .pm-hud-fact:nth-of-type(5) {
    display: none;
  }

  .pm-workspace {
    grid-template-columns: 228px minmax(480px, 1fr);
  }

  .pm-season-column {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pm-relationship-card,
  .pm-log-card {
    min-height: 210px;
  }

  .pm-relationship-card {
    grid-column: 1 / -1;
  }

  .pm-relationship-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-mode-screen {
    width: min(1120px, calc(100% - 28px));
  }

  .gm-score-ribbon {
    grid-template-columns: 190px minmax(400px, 1fr) 230px;
  }

  .gm-score {
    padding-inline: 18px;
  }

  .gm-game-state {
    grid-template-columns: 45px 65px 1fr;
  }

  .gm-layout {
    grid-template-columns: minmax(560px, 1.35fr) minmax(350px, .75fr);
  }

  .gm-stadium {
    min-height: 520px;
  }
}

@media (max-width: 1040px) {
  .gm-score-ribbon {
    grid-template-columns: 170px minmax(0, 1fr) 170px;
  }

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

  .gm-game-state nav {
    grid-column: 1 / -1;
  }

  .gm-layout {
    grid-template-columns: 1fr;
  }

  .gm-decision-panel {
    position: static;
  }

  .gm-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .dashboard-actions {
    width: 100%;
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .career-start-button {
    width: 100%;
  }

  .player-mode-screen {
    width: min(700px, calc(100% - 24px));
    padding-top: 12px;
  }

  .pm-hud {
    grid-template-columns: 120px 1fr auto;
  }

  .pm-hud-fact {
    display: none;
  }

  .pm-hud-fact:nth-of-type(2) {
    display: flex;
  }

  .pm-workspace {
    grid-template-columns: 1fr;
  }

  .pm-player-column {
    grid-template-columns: 190px 1fr;
  }

  .pm-player-card {
    grid-row: span 2;
  }

  .pm-player-portrait {
    height: 148px;
  }

  .pm-player-portrait::before {
    bottom: -102px;
  }

  .pm-player-portrait::after {
    top: 26px;
    scale: .82;
  }

  .pm-player-portrait > span {
    margin-top: 45px;
    font-size: 53px;
  }

  .pm-scene-column {
    grid-row: 1;
  }

  .pm-player-column {
    grid-row: 2;
  }

  .pm-season-column {
    grid-column: 1;
    grid-row: 3;
    grid-template-columns: 1fr;
  }

  .pm-scene-visual {
    min-height: auto;
  }

  .ending-grid {
    grid-template-columns: 1fr;
  }

  .game-mode-screen {
    width: min(720px, calc(100% - 18px));
    padding-top: 10px;
  }

  .game-mode-screen::before {
    inset: 68px 0 0;
  }

  .gm-score-ribbon {
    grid-template-columns: 1fr;
  }

  .gm-game-identity {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(241, 236, 223, .08);
  }

  .gm-game-identity > strong {
    flex: 1;
    text-align: center;
  }

  .gm-score {
    min-height: 72px;
  }

  .gm-game-state {
    grid-template-columns: 55px 76px 1fr;
    border-top: 1px solid rgba(241, 236, 223, .08);
    border-left: 0;
  }

  .gm-game-state nav {
    grid-column: auto;
  }

  .gm-stadium {
    min-height: auto;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 590px) {
  .player-mode-screen {
    width: calc(100% - 16px);
  }

  .pm-hud {
    grid-template-columns: 112px 1fr;
  }

  .pm-hud-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
    padding: 7px;
    border-top: 1px solid rgba(241, 236, 223, .1);
  }

  .pm-utility-button {
    flex: 1;
  }

  .pm-player-column {
    grid-template-columns: 1fr;
  }

  .pm-player-card {
    grid-row: auto;
  }

  .pm-player-portrait {
    display: none;
  }

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

  .pm-scene-visual figcaption {
    left: 14px;
    bottom: 14px;
    max-width: 52%;
  }

  .pm-scene-visual figcaption span {
    display: none;
  }

  .pm-scoreboard {
    right: 8px;
    bottom: 8px;
    width: 55%;
    padding: 8px;
  }

  .pm-score-top {
    font-size: 5px;
  }

  .pm-score-teams span {
    font-size: 6px;
  }

  .pm-score-teams b {
    font-size: 14px;
  }

  .pm-diamond {
    display: none;
  }

  .pm-narrative-card {
    padding: 18px 14px;
  }

  .pm-narrative-title {
    grid-template-columns: 35px 1fr;
    gap: 10px;
  }

  .pm-narrative-title > span {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .pm-narrative-title h1 {
    font-size: 23px;
  }

  .pm-event-story {
    font-size: 13px;
  }

  .pm-options {
    grid-template-columns: 1fr;
  }

  .pm-option {
    min-height: 70px;
  }

  .pm-option-copy small {
    white-space: normal;
  }

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

  .pm-live-log {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .pm-narrative-footer {
    align-items: flex-start;
  }

  .ending-screen {
    width: calc(100% - 24px);
    padding-top: 35px;
  }

  .ending-hero {
    min-height: 280px;
    padding: 22px 8px;
  }

  .ending-story-card,
  .ending-record-card {
    padding: 22px 18px;
  }

  .ending-actions {
    flex-direction: column-reverse;
  }

  .ending-actions > * {
    width: 100%;
  }

  .game-mode-screen {
    width: calc(100% - 10px);
  }

  .gm-game-identity > span {
    display: none;
  }

  .gm-game-identity > strong {
    text-align: left;
  }

  .gm-score {
    grid-template-columns: 1fr 54px 1fr;
    padding: 7px 10px;
  }

  .gm-score-team,
  .gm-score-team.is-home {
    grid-template-columns: minmax(0, 1fr) 32px;
    gap: 5px;
  }

  .gm-score-team.is-home {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .gm-score-team > span {
    display: none;
  }

  .gm-score-team > strong {
    font-size: 9px;
  }

  .gm-score-team > b {
    font-size: 26px;
  }

  .gm-game-state {
    grid-template-columns: 44px 65px 1fr;
  }

  .gm-stadium {
    aspect-ratio: 10 / 9;
  }

  .gm-field {
    bottom: -4%;
    width: 112%;
    height: 80%;
  }

  .gm-stadium::before {
    width: 104%;
  }

  .gm-crowd {
    width: 98%;
  }

  .gm-field-caption {
    right: 8px;
    bottom: 8px;
    max-width: calc(100% - 16px);
  }

  .gm-field-caption > span {
    display: none;
  }

  .gm-live-panel {
    padding: 13px;
  }

  .gm-live-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .gm-live-panel ol {
    grid-template-columns: 1fr;
  }

  .gm-player-strip {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .gm-player-strip > span {
    width: 38px;
    height: 38px;
  }

  .gm-player-strip dl {
    grid-column: 1 / -1;
    justify-content: space-around;
    padding-top: 9px;
    border-top: 1px solid rgba(241, 236, 223, .07);
  }

  .gm-moment-heading {
    padding: 20px 16px 0;
  }

  .gm-story {
    margin-inline: 16px;
  }

  .gm-result-block {
    margin-inline: 16px;
  }

  .gm-options {
    grid-template-columns: 1fr;
    padding: 0 16px 18px;
  }

  .gm-option-copy small {
    white-space: normal;
  }

  .gm-decision-footer {
    padding-inline: 16px;
  }

  .gm-decision-footer p {
    display: none;
  }
}

@media (max-width: 590px) {
  body:has(.player-mode-screen:not([hidden])),
  body:has(.game-mode-screen:not([hidden])),
  body:has(.ending-screen:not([hidden])) {
    height: 100dvh;
    overflow: hidden;
  }

  .ending-screen {
    display: grid;
    width: 100%;
    height: calc(100dvh - 68px);
    min-height: 0;
    grid-template-rows: minmax(180px, 42%) minmax(0, 1fr) 46px;
    gap: 5px;
    margin: 0;
    padding: 5px 6px;
    overflow: hidden;
  }

  .ending-screen::before {
    height: 100%;
  }

  .ending-hero {
    min-height: 0;
    padding: 9px 7px;
  }

  .ending-code {
    max-width: 94%;
    margin-bottom: 5px;
    font-size: 7px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .ending-seal {
    width: 39px;
    height: 39px;
    margin-bottom: 6px;
    font-size: 20px;
  }

  .ending-hero h1 {
    max-width: 94%;
    font-size: clamp(25px, 8vw, 37px);
    line-height: 1.08;
  }

  .ending-hero > #endingSubtitle {
    margin-top: 6px;
    font-size: 11px;
  }

  .ending-chapter-progress {
    min-height: 21px;
    margin-top: 7px;
  }

  .ending-grid,
  .ending-grid.is-story-only {
    display: block;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  .ending-story-card,
  .ending-record-card {
    padding: 12px 13px;
  }

  .ending-narrative {
    gap: 8px;
  }

  .ending-narrative p {
    font-size: clamp(11px, 3.2vw, 13px);
    line-height: 1.55;
  }

  .ending-tags {
    margin-top: 10px;
  }

  .ending-actions {
    display: flex;
    min-height: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 4px;
    margin: 0;
  }

  .ending-actions > * {
    width: auto;
    min-width: 0;
    min-height: 42px;
    flex: 1 1 0;
    padding: 4px 6px;
    font-size: 9px;
    line-height: 1.2;
  }

  .ending-actions > [hidden] {
    display: none;
  }

  .player-mode-screen {
    display: flex;
    width: 100%;
    height: calc(100dvh - 68px);
    min-height: 0;
    flex-direction: column;
    padding: 4px 6px 5px;
    overflow: hidden;
  }

  .pm-hud {
    display: none;
  }

  .pm-condition-strip {
    flex: 0 0 82px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
  }

  .pm-condition-strip > div {
    min-height: 40px;
    padding: 4px 8px 6px;
  }

  .pm-condition-strip span {
    font-size: 10px;
  }

  .pm-condition-strip strong {
    font-size: 15px;
  }

  .pm-condition-strip .is-lineup strong,
  .pm-condition-strip .is-position strong {
    font-size: 11px;
  }

  .pm-condition-strip small {
    top: 5px;
    right: 7px;
    font-size: 8px;
  }

  .pm-mobile-tabs {
    display: grid;
    flex: 0 0 36px;
    grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(62px, auto);
    gap: 3px;
    padding: 4px 0 0;
  }

  .pm-mobile-tabs button {
    border: 1px solid rgba(241, 236, 223, .12);
    background: rgba(7, 17, 14, .94);
    color: rgba(241, 236, 223, .58);
    font-size: 11px;
    font-weight: 900;
  }

  .pm-mobile-tabs button.is-active {
    border-color: rgba(240, 77, 63, .55);
    background: rgba(240, 77, 63, .12);
    color: var(--paper);
  }

  .pm-mobile-wallet {
    display: grid;
    align-content: center;
    justify-items: end;
    min-width: 62px;
    padding: 2px 6px;
    border: 1px solid rgba(214, 168, 79, .24);
    background: rgba(214, 168, 79, .07);
  }

  .pm-mobile-wallet small {
    overflow: hidden;
    max-width: 82px;
    color: rgba(241, 236, 223, .4);
    font-size: 7px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pm-mobile-wallet strong {
    overflow: hidden;
    max-width: 76px;
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pm-workspace {
    display: block;
    min-height: 0;
    flex: 1;
    margin-top: 4px;
    overflow: hidden;
  }

  .pm-player-column,
  .pm-scene-column,
  .pm-season-column {
    display: none;
    height: 100%;
    min-height: 0;
    gap: 4px;
    overflow: hidden;
  }

  .player-mode-screen[data-mobile-panel="action"] .pm-scene-column {
    display: grid;
    grid-template-rows: minmax(108px, 27%) minmax(0, 1fr);
  }

  .player-mode-screen[data-mobile-panel="player"] .pm-player-column {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
  }

  .player-mode-screen[data-mobile-panel="season"] .pm-season-column,
  .player-mode-screen[data-mobile-panel="relations"] .pm-season-column {
    display: grid;
  }

  .player-mode-screen[data-mobile-panel="season"] .pm-season-column {
    grid-template-rows: minmax(0, 1.15fr) minmax(0, .85fr);
  }

  .player-mode-screen[data-mobile-panel="relations"] .pm-season-column {
    grid-template-rows: minmax(0, 1fr);
  }

  .player-mode-screen[data-mobile-panel="season"] .pm-relationship-card,
  .player-mode-screen[data-mobile-panel="season"] .pm-log-card,
  .player-mode-screen[data-mobile-panel="relations"] .pm-season-card,
  .player-mode-screen[data-mobile-panel="relations"] .pm-schedule-card {
    display: none;
  }

  .pm-player-card,
  .pm-resource-card,
  .pm-memory-card,
  .pm-season-card,
  .pm-schedule-card,
  .pm-relationship-card,
  .pm-log-card,
  .pm-narrative-card {
    min-height: 0;
    overflow: hidden;
  }

  .pm-player-portrait {
    display: none;
  }

  .pm-player-card-head {
    padding: 7px 11px;
  }

  .pm-player-name {
    padding: 8px 12px;
  }

  .pm-player-name h2 {
    font-size: 21px;
  }

  .pm-abilities {
    grid-template-columns: repeat(2, 1fr);
    gap: 7px 14px;
    padding: 9px 12px;
  }

  .pm-ability {
    grid-template-columns: 36px 1fr 24px;
  }

  .pm-pitch-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .pm-pitch-chip {
    grid-template-columns: minmax(0, 1fr) 22px;
    gap: 3px;
    padding: 5px 6px;
    border: 1px solid rgba(241, 236, 223, .08);
    background: rgba(255, 255, 255, .018);
  }

  .pm-pitch-chip i {
    grid-column: 1 / -1;
  }

  .pm-pitch-nav {
    margin-top: 6px;
    padding-top: 5px;
  }

  .pm-pitch-nav button {
    width: 34px;
    height: 22px;
  }

  .pm-resource-card,
  .pm-memory-card,
  .pm-season-card,
  .pm-schedule-card,
  .pm-relationship-card,
  .pm-log-card {
    padding: 9px 11px;
  }

  .pm-scene-visual {
    min-height: 0;
    height: 100%;
    aspect-ratio: auto;
  }

  .pm-scene-visual figcaption strong {
    font-size: 18px;
  }

  .pm-narrative-card {
    display: flex;
    min-height: 0;
    flex-direction: column;
    padding: 10px 11px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .pm-narrative-title {
    flex: 0 0 auto;
    grid-template-columns: 32px 1fr;
    gap: 8px;
  }

  .pm-narrative-title > span {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .pm-narrative-title h1 {
    overflow: visible;
    font-size: 20px;
    line-height: 1.15;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
  }

  .pm-event-story {
    flex: 0 0 auto;
    margin: 7px 0 8px;
    overflow: visible;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .pm-result-block {
    flex: 0 0 auto;
    margin-bottom: 6px;
    padding: 6px;
  }

  .pm-result-block > p {
    margin-top: 5px;
    padding-top: 5px;
    overflow: visible;
    overflow-wrap: anywhere;
  }

  .pm-live-log {
    display: none;
  }

  .pm-options {
    flex: 0 0 auto;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    align-content: start;
    gap: 5px;
    overflow: visible;
  }

  .pm-option {
    min-height: 58px;
    grid-template-columns: 18px 1fr;
    gap: 5px;
    padding: 6px 7px;
  }

  .pm-option-index {
    font-size: 13px;
  }

  .pm-option-copy {
    gap: 2px;
  }

  .pm-option-copy strong {
    font-size: 11px;
  }

  .pm-option-copy small {
    display: block;
    overflow: visible;
    font-size: 9px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .player-mode-screen[data-view="game-day-training"][data-mobile-panel="action"]
    .pm-scene-column {
    grid-template-rows: minmax(82px, 20%) minmax(0, 1fr);
  }

  .player-mode-screen[data-view="game-day-training"] .pm-narrative-card {
    padding: 8px 9px;
  }

  .player-mode-screen[data-view="game-day-training"] .pm-event-story {
    margin-block: 4px 5px;
    font-size: 11px;
    line-height: 1.3;
  }

  .player-mode-screen[data-view="game-day-training"] .pm-options {
    gap: 4px;
  }

  .player-mode-screen[data-view="game-day-training"] .pm-option {
    min-height: 48px;
    padding: 5px 6px;
  }

  .player-mode-screen[data-view="game-day-training"] .pm-option.is-quick {
    grid-column: 1 / -1;
    min-height: 46px;
  }

  .player-mode-screen[data-view="daily-result"] .pm-event-story,
  .player-mode-screen[data-view="monthly-result"] .pm-event-story,
  .player-mode-screen[data-view="event-result"] .pm-event-story {
    margin-block: 5px 6px;
  }

  .player-mode-screen[data-view="daily-result"] .pm-result-stats,
  .player-mode-screen[data-view="monthly-result"] .pm-result-stats,
  .player-mode-screen[data-view="event-result"] .pm-result-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .player-mode-screen[data-view="daily-result"] .pm-options,
  .player-mode-screen[data-view="monthly-result"] .pm-options,
  .player-mode-screen[data-view="event-result"] .pm-options {
    flex: 0 0 52px;
    grid-template-columns: 1fr;
    grid-template-rows: 52px;
    overflow: visible;
  }

  .player-mode-screen[data-view="daily-result"] .pm-option,
  .player-mode-screen[data-view="monthly-result"] .pm-option,
  .player-mode-screen[data-view="event-result"] .pm-option {
    border-color: rgba(240, 77, 63, .55);
    background: rgba(240, 77, 63, .1);
  }

  .player-mode-screen[data-view="pitch-lab"] .pm-event-story {
    margin-block: 5px 6px;
  }

  .player-mode-screen[data-view="pitch-lab"] .pm-result-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .player-mode-screen[data-view="pitch-lab"] .pm-result-stat {
    padding: 5px 3px;
  }

  .player-mode-screen[data-view="pitch-lab"] .pm-options {
    grid-template-rows: none;
    grid-auto-rows: auto;
  }

  .player-mode-screen[data-view="pitch-lab"] .pm-option-copy strong {
    display: block;
    overflow: visible;
    font-size: 12px;
    line-height: 1.25;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .player-mode-screen[data-view="pitch-lab"] .pm-option-copy small {
    display: block;
  }

  .pm-narrative-footer {
    display: none;
  }

  .pm-relationship-list,
  .pm-upcoming-list,
  .pm-career-history {
    overflow: hidden;
  }

  .player-mode-screen[data-mobile-panel="season"] .pm-career-history {
    flex: 1;
    max-height: none;
    overflow-y: auto;
  }

  .player-mode-screen[data-mobile-panel="season"] .pm-career-history li {
    grid-template-columns: minmax(112px, .42fr) minmax(0, 1fr);
    gap: 6px;
    padding: 7px 0;
  }

  .player-mode-screen[data-mobile-panel="season"] .pm-history-identity {
    gap: 3px;
  }

  .player-mode-screen[data-mobile-panel="season"] .pm-history-team,
  .player-mode-screen[data-mobile-panel="season"] .pm-history-level {
    font-size: 6px;
  }

  .player-mode-screen[data-mobile-panel="season"] .pm-history-line {
    font-size: 6.5px;
  }

  .player-mode-screen[data-mobile-panel="season"] .pm-awards-panel {
    flex: 0 0 auto;
  }

  .player-mode-screen[data-mobile-panel="relations"] .pm-relationship-card {
    display: flex;
    flex-direction: column;
  }

  .player-mode-screen[data-mobile-panel="relations"] .pm-relationship-list {
    min-height: 0;
    flex: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
    align-content: start;
    gap: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .player-mode-screen[data-mobile-panel="relations"] .pm-personality-insight {
    flex: 0 0 auto;
    margin-bottom: 6px;
    padding: 6px 8px;
  }

  .player-mode-screen[data-mobile-panel="relations"] .pm-relationship {
    min-height: 64px;
    padding: 7px;
    border: 1px solid rgba(241, 236, 223, .08);
    border-radius: 3px;
    background: rgba(255, 255, 255, .018);
  }

  .pm-relationship {
    min-height: 48px;
  }

  .pm-relationship small {
    font-size: 9px;
    line-height: 1.4;
  }

  .game-mode-screen {
    display: flex;
    width: 100%;
    height: calc(100dvh - 68px);
    min-height: 0;
    flex-direction: column;
    padding: 4px 5px 5px;
    overflow: hidden;
  }

  .gm-score-ribbon {
    flex: 0 0 84px;
    grid-template-columns: 1fr auto;
    min-height: 0;
  }

  .gm-game-identity {
    display: none;
  }

  .gm-score {
    grid-template-columns: 1fr 42px 1fr;
    min-height: 48px;
    padding: 4px 7px;
  }

  .gm-score-team > strong {
    font-size: 10px;
  }

  .gm-score-team > b {
    font-size: 23px;
  }

  .gm-score-center > small {
    display: none;
  }

  .gm-game-state {
    grid-template-columns: 36px 44px;
    padding: 4px;
  }

  .gm-game-state nav {
    grid-column: 1 / -1;
  }

  .gm-game-state button {
    min-height: 24px;
    font-size: 9px;
  }

  .gm-layout {
    display: grid;
    min-height: 0;
    flex: 1;
    grid-template-rows: 31% minmax(0, 69%);
    gap: 4px;
    margin-top: 4px;
    overflow: hidden;
  }

  .gm-field-zone {
    display: block;
    min-height: 0;
    overflow: hidden;
  }

  .gm-stadium {
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }

  .gm-live-panel {
    display: none;
  }

  .gm-decision-panel {
    display: flex;
    position: static;
    min-height: 0;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .gm-player-strip {
    flex: 0 0 68px;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 7px;
    padding: 6px 9px;
  }

  .gm-player-strip > span {
    width: 34px;
    height: 34px;
  }

  .gm-player-strip dl {
    grid-column: 1 / -1;
    justify-content: space-between;
    padding-top: 4px;
  }

  .gm-player-strip dl div {
    min-width: 27px;
  }

  .gm-player-strip dt {
    font-size: 8px;
  }

  .gm-player-strip dd {
    font-size: 11px;
  }

  .gm-moment-heading {
    flex: 0 0 auto;
    padding: 9px 11px 0;
  }

  .gm-moment-heading p {
    display: none;
  }

  .gm-moment-heading > span {
    margin-bottom: 4px;
  }

  .gm-moment-heading h1 {
    overflow: visible;
    font-size: 20px;
    line-height: 1.15;
    overflow-wrap: anywhere;
    text-overflow: clip;
    white-space: normal;
  }

  .gm-story {
    flex: 0 0 auto;
    margin: 6px 11px 7px;
    overflow: visible;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .gm-result-block {
    flex: 0 0 auto;
    margin: 0 11px 6px;
    padding: 6px;
  }

  .gm-result-block > p {
    display: none;
  }

  .game-mode-screen[data-view="postgame"] .gm-layout {
    grid-template-rows: 22% minmax(0, 78%);
  }

  .game-mode-screen[data-view="postgame"] .gm-result-stat {
    padding: 5px 3px;
  }

  .game-mode-screen[data-view="postgame"] .gm-result-stat strong {
    font-size: 13px;
  }

  .game-mode-screen[data-view="postgame"] .gm-result-block > p {
    display: block;
    overflow: visible;
    margin-top: 5px;
    padding-top: 5px;
    font-size: 8px;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .gm-options {
    flex: 0 0 auto;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    align-content: start;
    gap: 5px;
    padding: 0 11px 8px;
    overflow: visible;
  }

  .gm-option {
    min-height: 58px;
    grid-template-columns: 18px 1fr;
    gap: 5px;
    padding: 6px 7px;
  }

  .gm-option-copy strong {
    font-size: 11px;
  }

  .gm-option-copy small {
    display: block;
    overflow: visible;
    font-size: 9px;
    line-height: 1.2;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .gm-decision-footer {
    display: none;
  }
}

/* Narrative copy must remain readable instead of ending in an ellipsis. */
.pm-memory-card p,
.pm-scoreboard > p,
.pm-event-story,
.pm-result-block > p,
.pm-live-log small,
.pm-option-copy small,
.pm-upcoming-list small,
.pm-personality-insight small,
.pm-relationship small,
.gm-field-caption > strong,
.gm-live-panel small,
.gm-player-strip p,
.gm-story,
.gm-result-block > p,
.gm-option-copy small {
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
}

@media (prefers-reduced-motion: reduce) {
  .pm-scene-visual > img,
  .pm-option,
  .gm-option,
  .gm-base,
  .gm-focus-marker > i {
    animation: none;
    transition: none;
  }
}
