:root {
  color-scheme: light;
  --keppel: #3ab09e;
  --gunmetal: #253237;
  --outer-space: #414a4c;
  --arsenic: #3b444b;
  --rhythm: #777696;
  --ink: var(--gunmetal);
  --muted: color-mix(in srgb, var(--rhythm) 74%, white);
  --paper: #f5f7f6;
  --line: color-mix(in srgb, var(--outer-space) 34%, white);
  --shadow: 0 24px 70px rgb(37 50 55 / 22%);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
  background:
    linear-gradient(145deg, var(--gunmetal), var(--outer-space) 54%, var(--arsenic));
}

body {
  min-height: 100%;
  margin: 0;
  position: relative;
  overflow-x: clip;
  overscroll-behavior-y: none;
  font-family:
    Pretendard, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(145deg, var(--gunmetal), var(--outer-space) 54%, var(--arsenic));
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgb(58 176 158 / 8%) 1px, transparent 1px),
    linear-gradient(0deg, rgb(119 118 150 / 10%) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(180deg, transparent, black 22%, black 78%, transparent);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(115deg, transparent 0 28%, rgb(58 176 158 / 5%) 28% 29%, transparent 29% 100%),
    linear-gradient(65deg, transparent 0 64%, rgb(119 118 150 / 6%) 64% 65%, transparent 65% 100%);
  background-size: 360px 360px, 520px 520px;
  pointer-events: none;
}

button,
input {
  font: inherit;
}

.graph-flow {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.story-nav {
  position: fixed;
  top: 50%;
  right: 34px;
  z-index: 4;
  display: none;
  gap: 12px;
  transform: translateY(-50%);
}

.story-nav:not(:empty) {
  display: grid;
}

.story-nav::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2px;
  background: rgb(255 255 255 / 24%);
}

.story-nav-item {
  position: relative;
  min-width: 0;
  border: 0;
  padding: 0 22px 0 0;
  background: transparent;
  color: rgb(255 255 255 / 42%);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-align: right;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.story-nav-item::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -4px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 34%);
  transform: translateY(-50%);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.story-nav-item.is-active {
  color: white;
  transform: none;
}

.story-nav-item.is-active::after {
  background: white;
  box-shadow: 0 0 18px rgb(58 176 158 / 76%);
  transform: translateY(-50%) scale(1.48);
}

.shell {
  position: relative;
  z-index: 3;
  width: min(1120px, calc(100% - 32px));
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0;
  display: block;
}

.intro {
  min-height: 100dvh;
  padding: 48px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-content {
  width: min(100%, 620px);
  display: grid;
  gap: 22px;
  justify-items: center;
}

.search-title {
  margin: 0;
  color: white;
  font-size: 4.8rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.95;
  text-align: center;
  text-transform: uppercase;
}

.search {
  width: min(100%, 520px);
  display: grid;
  gap: 12px;
}

.search label {
  color: white;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.search input {
  min-width: 0;
  height: 58px;
  border: 2px solid var(--keppel);
  border-radius: 8px;
  padding: 0 16px;
  background: rgb(255 255 255 / 94%);
  color: var(--gunmetal);
  outline: none;
  font-weight: 800;
}

.search input:focus {
  border-color: white;
  box-shadow: 0 0 0 4px rgb(58 176 158 / 34%);
}

.search button {
  height: 58px;
  border: 2px solid var(--keppel);
  border-radius: 8px;
  padding: 0 20px;
  background: var(--keppel);
  color: white;
  font-weight: 900;
  cursor: pointer;
  text-transform: uppercase;
}

.search button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.form-message {
  min-height: 1.4em;
  margin: 0;
  color: rgb(255 255 255 / 78%);
  font-size: 0.92rem;
}

.search-note {
  margin: -4px 0 0;
  color: rgb(255 255 255 / 58%);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.45;
}

.memory {
  grid-row: 3;
  min-height: 0;
  margin-top: 18svh;
}

.story {
  display: grid;
  row-gap: 0;
}

.story-panel {
  min-height: 100svh;
  display: grid;
  align-items: center;
  justify-items: start;
  padding: 96px 0;
  opacity: 0;
  transform: translateY(42px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.story-panel.is-visible {
  opacity: 1;
  transform: none;
}

.story-panel-inner {
  width: min(100%, 900px);
  display: grid;
  justify-items: start;
  gap: 18px;
  padding: 0;
}

.story-label {
  margin: 0;
  color: rgb(255 255 255 / 66%);
  font-size: 0.9rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.story-title,
.story-value {
  margin: 0;
  color: white;
  font-size: 5.4rem;
  line-height: 1;
  font-weight: 950;
  text-align: left;
  overflow-wrap: anywhere;
}

.story-detail {
  max-width: 680px;
  margin: 0;
  color: rgb(255 255 255 / 72%);
  font-size: 1.15rem;
  line-height: 1.55;
  text-align: left;
  overflow-wrap: anywhere;
}

.story-avatar {
  width: 132px;
  height: 132px;
  border: 2px solid var(--keppel);
  border-radius: 8px;
  object-fit: cover;
  background: white;
}

.user-story-panel .story-panel-inner {
  position: relative;
  z-index: 2;
  width: min(100%, 980px);
  pointer-events: none;
}

.user-story-panel {
  position: relative;
  overflow: visible;
}

.user-media-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.user-badge,
.user-background {
  margin: 0;
  position: relative;
}

.user-badge-image {
  width: 52px;
  aspect-ratio: 1;
  border: 2px solid var(--keppel);
  border-radius: 8px;
  object-fit: contain;
  padding: 7px;
  background: rgb(245 247 246 / 94%);
  box-shadow: 0 12px 34px rgb(0 0 0 / 24%);
}

.user-badge {
  transform: translateY(6px);
}

.user-summary-stats {
  width: min(100%, 820px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 4px;
}

.user-summary-item {
  display: grid;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid rgb(255 255 255 / 22%);
}

.user-summary-value {
  color: white;
  font-size: 1.9rem;
  font-weight: 950;
  line-height: 1;
}

.user-summary-label {
  color: rgb(255 255 255 / 64%);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.25;
}

.user-ranking-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.user-ranking-text {
  color: rgb(255 255 255 / 74%);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
}

.user-meta-list {
  display: grid;
  gap: 4px;
  margin-top: 2px;
}

.user-meta-text {
  margin: 0;
  color: rgb(255 255 255 / 68%);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.user-background {
  position: absolute;
  top: -10svh;
  bottom: -10svh;
  left: 50%;
  z-index: 1;
  width: 118vw;
  height: auto;
  overflow: hidden;
  pointer-events: none;
  transform: translateX(-50%);
}

.user-background::before {
  content: "";
  position: absolute;
  inset: -14%;
  background-image: var(--user-background-url);
  background-position: center;
  background-size: cover;
  opacity: 0.18;
  filter: blur(18px) saturate(0.9) contrast(0.94);
  transform: scale(1.04);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 18%, black 82%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, black 18%, black 82%, transparent 100%);
}

.user-background-image {
  position: relative;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center;
  opacity: 0.32;
  filter: saturate(0.9) contrast(0.94);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%),
    linear-gradient(180deg, transparent 0%, black 18%, black 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%),
    linear-gradient(180deg, transparent 0%, black 18%, black 82%, transparent 100%);
  mask-composite: intersect;
}

.class-progress-list {
  width: min(100%, 820px);
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.class-progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 18px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgb(255 255 255 / 18%);
}

.class-progress-head {
  display: flex;
  gap: 10px;
  align-items: baseline;
  min-width: 0;
}

.class-progress-title {
  color: white;
  font-size: 0.95rem;
  font-weight: 950;
}

.class-progress-decoration,
.class-progress-count,
.class-progress-essential {
  color: rgb(255 255 255 / 58%);
  font-size: 0.84rem;
  font-weight: 850;
}

.class-progress-count {
  justify-self: end;
}

.class-progress-bar,
.class-essential-bar {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 8px;
  background: rgb(255 255 255 / 12%);
}

.class-essential-bar {
  height: 3px;
}

.class-progress-fill,
.class-essential-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 900ms cubic-bezier(0.16, 1, 0.3, 1);
}

.class-progress-fill {
  background: var(--keppel);
}

.class-essential-fill {
  background: rgb(255 255 255 / 68%);
}

.story-panel.is-visible .class-progress-fill {
  transform: scaleX(var(--progress));
}

.story-panel.is-visible .class-essential-fill {
  transform: scaleX(var(--essential-progress));
}

.decoration-silver .class-progress-decoration {
  color: #cbd5dc;
}

.decoration-silver .class-progress-fill {
  background: #cbd5dc;
}

.decoration-gold .class-progress-decoration {
  color: #f3c94f;
}

.decoration-gold .class-progress-fill {
  background: #f3c94f;
}

.decoration-locked {
  opacity: 0.58;
}

.class-story-panel .story-value {
  font-size: 4.2rem;
}

.user-story-panel + .class-story-panel {
  margin-top: 16svh;
}

.tier-unrated {
  color: #c7ced0;
}

.tier-bronze {
  color: #c47b54;
}

.tier-silver {
  color: #cbd5dc;
}

.tier-gold {
  color: #f3c94f;
}

.tier-platinum {
  color: #64d8c1;
}

.tier-diamond {
  color: #70b7ff;
}

.tier-ruby {
  color: #ff5b7d;
}

.tier-master {
  color: #b990ff;
}

.rating-story-panel .story-panel-inner {
  width: min(100%, 980px);
}

.rating-story-panel .story-value {
  font-size: 4.8rem;
}

.rating-headline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 20px;
}

.over-rating-chip {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 0 0 10px;
}

.over-rating-label {
  color: rgb(255 255 255 / 56%);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.over-rating-value {
  color: rgb(255 255 255 / 86%);
  font-size: 1.45rem;
  font-weight: 950;
  line-height: 1;
}

.over-rating-chip.has-over-rating-gradient .over-rating-value {
  background: var(--over-rating-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.rating-details {
  width: min(100%, 920px);
  display: grid;
  gap: 20px;
  margin-top: 10px;
}

.rating-rank {
  margin: 0;
  color: white;
  font-size: 2.2rem;
  font-weight: 950;
  line-height: 1;
}

.rating-rank span {
  color: rgb(255 255 255 / 54%);
  font-size: 0.95rem;
  font-weight: 850;
  text-transform: uppercase;
}

.rating-bonuses {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.rating-bonus-item {
  display: grid;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid rgb(255 255 255 / 18%);
  border-bottom: 1px solid rgb(255 255 255 / 18%);
}

.rating-bonus-label {
  color: rgb(255 255 255 / 58%);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.rating-bonus-value {
  color: white;
  font-size: 1.55rem;
  line-height: 1;
}

.rating-top-tiers {
  display: grid;
  gap: 10px;
}

.rating-subtitle {
  margin: 0;
  color: rgb(255 255 255 / 66%);
  font-size: 0.86rem;
  font-weight: 950;
  text-transform: uppercase;
}

.rating-tier-grid {
  width: min(100%, 760px);
  display: grid;
  grid-template-columns: repeat(25, minmax(0, 1fr));
  gap: 5px;
}

.rating-tier-dot {
  display: block;
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--tier-color, rgb(255 255 255 / 18%));
  box-shadow: 0 0 0 1px rgb(255 255 255 / 10%) inset;
  opacity: 0;
  transform: translate3d(-10px, -16px, 0) scale(0.22);
  will-change: opacity, transform;
}

.rating-story-panel.is-current .rating-tier-dot,
.rating-story-panel.is-leaving .rating-tier-dot,
.rating-story-panel.has-tier-animation-played .rating-tier-dot {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.rating-story-panel.is-current:not(.has-tier-animation-played) .rating-tier-dot {
  animation: tier-dot-spread 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--dot-delay, 0ms);
}

.rating-tier-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rating-tier-count {
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.rating-tier-dot[class*="tier-bg-"] {
  background: var(--tier-color, rgb(255 255 255 / 18%));
}

@keyframes tier-dot-spread {
  0% {
    opacity: 0;
    transform: translate3d(-10px, -16px, 0) scale(0.22);
  }

  62% {
    opacity: 1;
    transform: translate3d(4px, 2px, 0) scale(1.12);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.boj-stats-story-panel .story-panel-inner {
  width: min(100%, 980px);
}

.boj-stat-priority {
  width: min(100%, 920px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.boj-stat-grid {
  width: min(100%, 920px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 16px;
  margin-top: 8px;
}

.boj-stat-item {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 13px 0;
  border-top: 1px solid rgb(255 255 255 / 18%);
  border-bottom: 1px solid rgb(255 255 255 / 12%);
}

.boj-stat-item.is-highlight {
  padding: 16px 0;
  border-top-color: rgb(58 176 158 / 72%);
}

.boj-stat-value {
  color: white;
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
}

.boj-stat-item.is-highlight .boj-stat-value {
  color: var(--keppel);
  font-size: 2.65rem;
}

.boj-stat-label {
  color: rgb(255 255 255 / 64%);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.32;
  word-break: keep-all;
}

.boj-stat-label.result-ac {
  color: #009874;
  font-weight: 950;
}

.boj-stat-label.result-pe,
.boj-stat-label.result-tle,
.boj-stat-label.result-mle,
.boj-stat-label.result-ole {
  color: #fa7268;
}

.boj-stat-label.result-wa {
  color: #dd4124;
}

.boj-stat-label.result-rte {
  color: #5f4b8b;
}

.boj-stat-label.result-ce {
  color: #0f4c81;
}

.language-stats-story-panel .story-panel-inner {
  width: min(100%, 1040px);
}

.language-stat-grid {
  width: min(100%, 1040px);
  max-height: min(66svh, 680px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  overflow-y: auto;
  padding-right: 8px;
  scrollbar-color: rgb(58 176 158 / 72%) rgb(255 255 255 / 10%);
}

.language-stat-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 14px 18px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid rgb(255 255 255 / 18%);
  border-bottom: 1px solid rgb(255 255 255 / 10%);
}

.language-pie {
  width: 116px;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 16%) inset,
    0 14px 36px rgb(0 0 0 / 18%);
}

.language-stat-head {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.language-name {
  margin: 0;
  color: white;
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.language-summary {
  margin: 0;
  color: rgb(255 255 255 / 62%);
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.35;
}

.language-status-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 12px;
}

.language-status-row {
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid rgb(255 255 255 / 10%);
  padding-top: 7px;
}

.language-status-label {
  min-width: 0;
  color: rgb(255 255 255 / 62%);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.language-status-count {
  color: white;
  font-size: 0.88rem;
  font-weight: 950;
  line-height: 1.2;
}

.language-status-label.result-ac {
  color: #009874;
}

.language-status-label.result-pe,
.language-status-label.result-tle,
.language-status-label.result-mle,
.language-status-label.result-ole {
  color: #fa7268;
}

.language-status-label.result-wa {
  color: #dd4124;
}

.language-status-label.result-rte {
  color: #5f4b8b;
}

.language-status-label.result-ce {
  color: #0f4c81;
}

.language-status-label.result-del {
  color: #838b8d;
  text-decoration: line-through;
}

.overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.overview-layout-toggle {
  width: min(100%, 420px);
  display: grid;
  gap: 9px;
  margin-top: 2px;
}

.overview-layout-label {
  color: rgb(255 255 255 / 62%);
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.overview-layout-options {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: min(100%, 320px);
  padding: 4px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 8px;
  background: rgb(255 255 255 / 8%);
}

.overview-layout-options input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.overview-layout-option {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: rgb(255 255 255 / 62%);
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.overview-layout-options input:checked + .overview-layout-option {
  background: var(--keppel);
  color: white;
  box-shadow: 0 10px 28px rgb(58 176 158 / 28%);
}

.overview-layout-options input:focus-visible + .overview-layout-option {
  outline: 2px solid white;
  outline-offset: 2px;
}

.overview-button {
  min-height: 54px;
  border: 2px solid rgb(255 255 255 / 28%);
  border-radius: 8px;
  padding: 0 18px;
  background: transparent;
  color: white;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.overview-button.primary {
  border-color: var(--keppel);
  background: var(--keppel);
}

.overview-button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 24px, 560px);
    padding: 0;
  }

  .intro {
    padding: 24px 0;
  }

  .memory {
    margin-top: 10svh;
  }

  .story-nav {
    top: auto;
    right: 12px;
    bottom: 12px;
    left: 12px;
    grid-template-columns: repeat(var(--story-count, 8), minmax(0, 1fr));
    gap: 4px;
    transform: none;
  }

  .story-nav::before {
    top: 50%;
    right: 0;
    left: 0;
    bottom: auto;
    width: auto;
    height: 2px;
    transform: translateY(-50%);
  }

  .story-nav-item {
    height: 34px;
    padding: 0;
    overflow: hidden;
    color: transparent;
    text-align: center;
  }

  .story-nav-item::after {
    top: 50%;
    right: auto;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .story-nav-item.is-active {
    color: transparent;
    transform: none;
  }

  .story-nav-item.is-active::after {
    transform: translate(-50%, -50%) scale(1.18);
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .search-title {
    font-size: 3.6rem;
  }

  .search button {
    width: 100%;
  }

  .story-panel {
    min-height: 100svh;
    padding: 56px 0;
  }

  .story-panel-inner {
    padding: 24px;
  }

  .story-title,
  .story-value {
    font-size: 3.3rem;
  }

  .rating-story-panel .story-value {
    font-size: 3.3rem;
  }

  .over-rating-value {
    font-size: 1.1rem;
  }

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

  .rating-tier-grid {
    grid-template-columns: repeat(20, minmax(0, 1fr));
  }

  .boj-stat-priority,
  .boj-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .language-stat-grid {
    grid-template-columns: 1fr;
    max-height: min(64svh, 620px);
  }

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

  .story-avatar {
    width: 108px;
    height: 108px;
  }

  .user-badge-image {
    width: 46px;
    padding: 6px;
  }

  .user-background {
    width: 146vw;
  }

  .user-summary-stats {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .user-summary-value {
    font-size: 1.55rem;
  }

  .class-progress-row {
    grid-template-columns: 1fr;
  }

  .class-progress-count {
    justify-self: start;
  }
}

@media (max-width: 430px) {
  .story-title,
  .story-value {
    font-size: 2.45rem;
  }

  .story-panel-inner {
    padding: 20px 16px;
  }

  .story-detail {
    font-size: 1rem;
  }

  .boj-stat-grid {
    grid-template-columns: 1fr;
  }

  .boj-stat-priority {
    grid-template-columns: 1fr;
  }

  .language-stat-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .language-pie {
    width: 86px;
  }

  .language-status-list {
    grid-template-columns: 1fr;
  }

  .boj-stat-value,
  .boj-stat-item.is-highlight .boj-stat-value {
    font-size: 2rem;
  }
}
