@import url("/styles/tokens.css");
@import url("/styles/effects.css");
* {
  box-sizing: border-box;
}
@keyframes opening-panel-in {
  from {
    opacity: 0;
    filter: blur(5px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}
@keyframes notice-in {
  from {
    opacity: 0;
    transform: translate(-50%, 12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
html {
  background: var(--color-bg);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--color-text);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: pointer;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #e8e5e1;
  outline-offset: 5px;
}
button:active:enabled {
  transform: translateY(1px);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 400;
}
.hidden {
  display: none !important;
}
.muted {
  color: var(--color-muted);
}
.technical-label,
.text-button,
.navigation,
.specimen-label,
.action-meta,
.rail-copy,
.viewer-toolbar,
.scene-footer,
.board-labels,
.drawer-heading,
.inventory-summary,
.item-meta,
.button,
.small-note {
  font-family: var(--font-mono);
}
.technical-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--color-muted);
}
.text-button {
  border: 0;
  background: none;
  padding: 8px 0;
  color: #b8b2b2;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.text-button:hover {
  color: white;
}
.small-note {
  font-size: 11px;
  color: var(--color-muted);
  line-height: 1.7;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 24px;
  z-index: 20;
  background: #171717;
  padding: 12px;
}
.skip-link:focus {
  top: 15px;
}
.navigation {
  height: 104px;
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0 3%;
  font-size: 11px;
  letter-spacing: 0.12em;
}
.home-link {
  display: flex;
  align-items: center;
  gap: 18px;
}
.wordmark {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #a39d9d;
}
.navigation nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.navigation nav a {
  color: #969191;
  padding: 12px 0;
}
.navigation a:hover,
.navigation a[aria-current="page"] {
  color: var(--color-text);
}
#nav-count {
  font-size: 9px;
  color: #a09292;
  margin-left: 5px;
}
.account-link {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 235px;
  font-size: 11px;
}
.account-link #nickname {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status-dot {
  width: 4px;
  height: 4px;
  background: var(--color-accent);
  display: block;
}
.crosshair {
  display: inline-block;
  width: 29px;
  height: 29px;
  position: relative;
  flex-shrink: 0;
}
.crosshair:before,
.crosshair:after {
  content: "";
  position: absolute;
  background: linear-gradient(90deg, transparent, #aaa, transparent);
}
.crosshair:before {
  width: 29px;
  height: 1px;
  top: 14px;
  left: 0;
}
.crosshair:after {
  height: 29px;
  width: 1px;
  left: 14px;
  top: 0;
  background: linear-gradient(transparent, #aaa, transparent);
}
.home-view {
  height: 100svh;
  min-height: 700px;
  position: relative;
  overflow: hidden;
}
.hero-stage {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 13%;
  bottom: 19%;
  z-index: 2;
  transition: translate var(--motion-panel) var(--ease-industrial);
}
.case-viewer {
  height: 100%;
  width: 100%;
  position: relative;
  cursor: grab;
  touch-action: pan-y;
  outline-offset: -30px !important;
}
.case-viewer.dragging {
  cursor: grabbing;
}
.case-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.case-fallback {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4%;
  display: block;
}
.webgl-ready .case-fallback {
  visibility: hidden;
}
.viewer-toolbar {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #8e8585;
}
.viewer-toolbar .text-button {
  font-size: 9px;
}
.editorial-rail {
  position: absolute;
  top: 18%;
  bottom: 23%;
  left: 3%;
  width: 170px;
  z-index: 3;
}
.distressed-type {
  font-family: var(--font-display);
  font-size: 142px;
  line-height: 0.72;
  color: #920012;
  letter-spacing: -11px;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 130px;
}
.distressed-type span {
  font-size: 94px;
  letter-spacing: -5px;
  margin-top: 14px;
}
.distressed-type:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 7px,
      #050505 7px 8px,
      transparent 8px 17px
    ),
    repeating-linear-gradient(
      113deg,
      transparent 0 18px,
      #05050599 19px 20px,
      transparent 20px 25px
    );
  opacity: 0.65;
  pointer-events: none;
}
.rail-copy {
  font-size: 10px;
  line-height: 1.95;
  color: #a59b9b;
  letter-spacing: 0.16em;
  margin-top: 70px;
}
.text-arrow {
  display: block;
  font-size: 24px;
  margin-top: 12px;
  color: #bdb6b6;
  width: 40px;
}
.rail-line {
  display: block;
  height: 90px;
  width: 1px;
  background: linear-gradient(#850013, transparent);
  margin-top: 30px;
  position: relative;
}
.rail-line:before {
  content: "";
  position: absolute;
  left: -3px;
  top: 25px;
  background: #bd001a;
  width: 5px;
  height: 35px;
}
.case-action {
  position: absolute;
  bottom: 5.7%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  text-align: center;
  width: min(470px, 70%);
}
.specimen-label {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #aaa1a1;
}
.specimen-label h1 {
  font-size: 11px;
  letter-spacing: 0.16em;
}
.specimen-label > span:last-child {
  color: #817979;
  font-size: 9px;
}
.red-diamond {
  width: 8px;
  height: 8px;
  display: inline-block;
  transform: rotate(45deg);
  border: 2px solid var(--color-accent);
  flex-shrink: 0;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-ui);
  font-size: 11px;
  letter-spacing: 0.12em;
  transition:
    background var(--motion-fast),
    border-color var(--motion-fast),
    color var(--motion-fast),
    box-shadow var(--motion-fast),
    transform var(--motion-fast);
}
.button.primary {
  background: #b70016;
  border-color: #d5122b;
  color: #fff;
}
.button.primary:hover:enabled {
  background: #d20822;
  border-color: #ff3045;
  box-shadow: 0 0 24px rgba(217, 0, 24, 0.25);
  transform: translateY(-1px);
}
.button.secondary {
  background: #0b0b0b;
  color: #d8d2d2;
}
.button.secondary:hover {
  border-color: #7d7373;
  background: #121010;
  box-shadow: inset 3px 0 #a90019;
}
.open-button {
  min-width: 245px;
}
.action-meta {
  font-size: 9px;
  letter-spacing: 0.13em;
  color: #a09797;
  margin-top: 13px;
}
.action-meta span {
  margin: 0 12px;
  color: #5f5353;
}
.result-status {
  font-size: 11px;
  color: #b1a9a9;
  line-height: 1.4;
  margin: 8px 0;
  min-height: 16px;
}
.leaderboard-trigger {
  position: absolute;
  right: 3%;
  top: 18%;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 19px 20px;
  width: 245px;
  background: transparent;
  border: 1px solid #292525;
  border-right: 2px solid var(--color-accent);
  color: #bdb4b4;
  font: 11px var(--font-mono);
  letter-spacing: 0.15em;
  z-index: 4;
}
.leaderboard-trigger:hover {
  background: #101010;
  border-top-color: #514444;
  box-shadow: 0 0 26px rgba(180, 0, 24, 0.1);
  transform: translateX(-3px);
  transition: background var(--motion-fast), border-color var(--motion-fast),
    box-shadow var(--motion-fast), transform var(--motion-fast);
}
.trigger-plus {
  margin-left: auto;
  font-size: 17px;
  color: #e1d7d7;
}
.scene-footer {
  position: absolute;
  inset: auto 3% 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #8e8282;
  font-size: 9px;
  letter-spacing: 0.12em;
}
.scene-footer > .crosshair {
  opacity: 0.5;
}
.edition {
  margin-left: auto;
  display: flex;
  gap: 28px;
  align-items: center;
}
.edition i {
  width: 18px;
  height: 9px;
  border: 2px solid #bf001b;
  transform: rotate(-20deg);
}
.content-view {
  max-width: 1400px;
  margin: auto;
  padding: 155px 5% 72px;
  min-height: 100svh;
}
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid #2a2424;
  margin-bottom: 34px;
}
.page-heading h1 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -1.5px;
  line-height: 1.2;
  margin-top: 14px;
}
.page-heading h1:focus {
  outline: 0;
}
.panel {
  background: #090909;
  border: 1px solid var(--color-border);
  position: relative;
}
.panel:before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 22px;
  height: 1px;
  background: #b60019;
}
.catalog-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
}
.catalog-case {
  padding: 26px;
  align-self: start;
}
.catalog-case > img {
  width: 100%;
  height: auto;
  display: block;
  margin: 20px 0;
}
.catalog-case h2 {
  font-size: 23px;
  margin: 0 0 12px;
}
.catalog-case p {
  font-size: 14px;
}
.catalog-case .button {
  margin-top: 28px;
  width: 100%;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-heading h2 {
  font-size: 18px;
}
.contents > p {
  font-size: 14px;
  max-width: 420px;
  margin-bottom: 28px;
}
.item-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.item-card {
  --item-color: #a6a6a6;
  display: flex;
  flex-direction: column;
  background: #0c0c0c;
  border: 1px solid #2b2727;
  border-radius: 0;
  padding: 20px;
  min-width: 0;
  text-align: left;
  position: relative;
  color: var(--color-text);
  transition:
    border-color 0.16s,
    background 0.16s,
    transform 0.22s var(--ease-industrial),
    box-shadow 0.22s var(--ease-industrial);
}
.item-card:after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: -1px;
  width: 28px;
  height: 2px;
  background: var(--item-color);
}
button.item-card:hover {
  border-color: #605454;
  background: #111;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}
.uncommon {
  --item-color: #86ae94;
}
.rare {
  --item-color: #9f97c7;
}
.legendary {
  --item-color: #cbb17b;
}
.gem {
  font-family: Arial, sans-serif;
  display: block;
  font-size: 65px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  color: var(--item-color);
  margin: 16px 0 28px;
  opacity: 0.85;
}
.item-name {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 14px;
  font-family: var(--font-ui);
}
.item-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--item-color);
}
.item-value {
  color: #b0a6a6;
  white-space: nowrap;
}
.compact-grid .item-card {
  padding: 14px;
}
.compact-grid .gem {
  font-size: 43px;
  margin: 8px 0 16px;
}
.compact-grid .item-name {
  font-size: 12px;
  min-height: 36px;
}
.compact-grid .item-meta {
  font-size: 9px;
}
.count {
  font: 12px var(--font-mono);
  margin-left: 18px;
  color: #a99a9a;
  vertical-align: middle;
}
.inventory-tools {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 30px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #403636;
  flex: 1;
  min-width: 0;
  padding: 0 12px;
}
.search-field > span {
  color: #9f9090;
  font-size: 25px;
}
.search-field input {
  border: 0;
  background: transparent;
  height: 46px;
  width: 100%;
  color: white;
  outline-offset: 0;
}
.select-field {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 9px var(--font-mono);
  letter-spacing: 0.1em;
  color: #8e8585;
}
.select-field select {
  background: #0b0b0b;
  border: 1px solid #343030;
  color: #c9bfbf;
  font: 12px var(--font-ui);
  min-height: 44px;
  padding: 0 12px;
}
.inventory-summary {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 10px;
  letter-spacing: 0.09em;
  color: #9c8f8f;
}
.inventory-summary b {
  font-weight: 400;
  color: #d7cdcd;
  margin-left: 12px;
}
.empty {
  grid-column: 1/-1;
  border: 1px solid #2c2626;
  padding: 70px 20px;
  text-align: center;
}
.empty-symbol {
  font-size: 50px;
  color: #564848;
  display: block;
  margin-bottom: 15px;
}
.empty h2 {
  font-size: 20px;
}
.empty p {
  color: #9a9090;
  font-size: 14px;
  margin: 10px 0 25px;
}
.more-button {
  display: flex;
  margin: 28px auto 0;
}
.profile-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 60px;
}
.identity-panel {
  padding: 32px;
}
.profile-symbol {
  display: block;
  color: #b6001b;
  font-size: 48px;
  margin-bottom: 20px;
}
.identity-panel h2 {
  font-size: 26px;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.identity-panel .muted {
  font-size: 14px;
}
.identity-panel > .button {
  margin-top: 24px;
}
.profile-stats {
  margin: 32px 0;
}
.profile-stats > div {
  padding: 18px 0;
  border-top: 1px solid #302828;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}
.profile-stats dt {
  color: #9d9292;
}
.profile-stats dd {
  margin: 0;
  text-align: right;
  max-width: 55%;
}
.history-list {
  padding: 0;
  margin: 0;
  list-style: none;
}
.history-list li {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #282222;
}
.history-number {
  font: 11px var(--font-mono);
  color: #948585;
  width: 32px;
}
.history-info {
  flex: 1;
}
.history-info strong {
  display: block;
  font-size: 14px;
  font-weight: 400;
}
.history-info time {
  font: 10px var(--font-mono);
  color: #9b8d8d;
}
.history-value {
  font: 12px var(--font-mono);
  color: #c7bbbb;
}
.notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  background: #1b1010;
  color: #f0cece;
  font-size: 13px;
  max-width: calc(100% - 32px);
  width: max-content;
  padding: 12px 20px;
  border-left: 2px solid #cc1230;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.38);
  animation: notice-in 0.25s var(--ease-industrial);
}
.notice:empty {
  display: none;
}
dialog {
  color: var(--color-text);
  background: #090909;
  border: 1px solid #453636;
  max-width: calc(100% - 32px);
  padding: 0;
  border-radius: 0;
}
dialog::backdrop {
  background: var(--color-overlay);
  backdrop-filter: blur(2px);
}
.modal {
  width: 450px;
  padding: 40px;
}
.modal h2 {
  font-size: 29px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 24px 0 18px;
}
.modal .muted {
  font-size: 14px;
}
.modal label {
  display: block;
  font: 11px var(--font-mono);
  letter-spacing: 0.1em;
  margin: 28px 0 10px;
}
.modal input {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid #544343;
  color: white;
  padding: 13px 14px;
  font-size: 15px;
}
.modal .button {
  width: 100%;
}
.modal .small-note {
  margin-top: 26px;
}
.form-error {
  font-size: 13px;
  color: #efbcbc;
  margin: 10px 0;
  min-height: 20px;
}
.close-button {
  border: 0;
  background: transparent;
  color: #c6baba;
  font-size: 25px;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  transition: transform var(--motion-fast), background var(--motion-fast),
    color var(--motion-fast);
}
.modal > .close-button {
  position: absolute;
  top: 6px;
  right: 6px;
}
.close-button:hover {
  color: white;
  background: #181212;
  transform: scale(1.06);
}
.drawer {
  position: fixed;
  inset: 115px 2.5% auto auto;
  margin: 0;
  width: 330px;
  max-height: calc(100svh - 155px);
  padding: 0 22px 22px;
  border-color: #302727;
  border-right: 2px solid #b9001a;
  overflow-y: auto;
}
.drawer[open] {
  animation: drawer-in var(--motion-panel) var(--ease-industrial);
}
.drawer::backdrop {
  background: #0003;
}
.drawer-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 70px;
  border-bottom: 1px solid #2a2323;
}
.drawer-heading h2 {
  font-size: 11px;
  letter-spacing: 0.15em;
}
.drawer-heading .close-button {
  margin-left: auto;
}
.drawer-description {
  font-size: 13px;
  color: #a69a9a;
  margin: 22px 0;
  line-height: 1.7;
}
.board-labels {
  display: flex;
  justify-content: space-between;
  color: #9b8d8d;
  font-size: 9px;
  letter-spacing: 0.06em;
  padding-bottom: 12px;
  border-bottom: 1px solid #282222;
}
.leaderboard {
  list-style: none;
  padding: 0;
  margin: 0;
}
.leaderboard li {
  display: flex;
  align-items: center;
  gap: 14px;
  font: 11px var(--font-mono);
  border-bottom: 1px solid #1c1717;
  min-height: 55px;
}
.rank {
  color: #a19595;
  width: 18px;
  flex-shrink: 0;
}
.player-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #c1b6b6;
}
.player-score {
  font-size: 11px;
  color: #a99d9d;
}
.leaderboard .self .player-name {
  color: #f1e9e9;
}
.leaderboard .self .rank {
  color: #ff5268;
}
.leaderboard .board-empty {
  font: 13px var(--font-ui);
  line-height: 1.7;
  padding: 22px 0;
  color: #a89a9a;
}
.refresh-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 16px 0;
}
.opening-modal {
  width: 760px;
  text-align: center;
  padding: 30px 0;
}
.opening-modal > .technical-label {
  font-size: 9px;
}
.opening-modal h2 {
  font-size: 22px;
  margin: 16px 16px 28px;
}
.roulette {
  height: 215px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-block: 1px solid #322727;
  background: #080808;
}
.reel {
  display: flex;
  gap: 12px;
  will-change: transform;
}
.reel .item-card {
  width: 136px;
  flex: 0 0 136px;
  height: 180px;
  padding: 12px;
}
.reel .item-card .gem {
  font-size: 40px;
  margin: 0 0 14px;
}
.reel .item-name {
  font-size: 12px;
}
.reel .item-meta {
  font-size: 9px;
}
.roulette:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #050505e8,
    transparent 25%,
    transparent 75%,
    #050505e8
  );
}
.roulette-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #d90018;
  z-index: 2;
}
.roulette-marker:before {
  content: "";
  position: absolute;
  top: 0;
  left: -5px;
  border-inline: 5px solid transparent;
  border-top: 8px solid #ec1632;
}
.opening-status {
  font-size: 14px;
  margin: 24px 20px;
  color: #d7c8c8;
  min-height: 22px;
}
.inspected-art {
  font-size: 100px;
  line-height: 1;
  text-align: center;
  margin-top: 35px;
  color: var(--item-color, #b8b3b3);
}
.inspector dl > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-top: 1px solid #302626;
  font-size: 13px;
}
.inspector dt {
  color: #a69797;
}
.inspector dd {
  margin: 0;
  text-align: right;
}
.noscript-message {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 10;
  background: #111;
  padding: 20px;
}
@keyframes drawer-in {
  from {
    opacity: 0;
    translate: 32px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (min-width: 1600px) {
  .hero-stage {
    left: 20%;
    right: 22%;
    top: 13%;
    bottom: 18%;
  }
  .case-action {
    bottom: 7%;
  }
  .editorial-rail {
    top: 17%;
  }
  .rail-copy {
    margin-top: 90px;
  }
}
@media (max-width: 1100px) {
  .navigation {
    gap: 24px;
  }
  .hero-stage {
    left: 12%;
    right: 11%;
    top: 19%;
    bottom: 22%;
  }
  .editorial-rail {
    width: 130px;
    top: 22%;
  }
  .distressed-type {
    font-size: 110px;
  }
  .distressed-type span {
    font-size: 76px;
  }
  .rail-copy {
    font-size: 8px;
    margin-top: 55px;
    letter-spacing: 0.1em;
  }
  .leaderboard-trigger {
    width: 185px;
    font-size: 9px;
    padding: 16px 12px;
    gap: 10px;
    top: 16%;
  }
  .viewer-toolbar {
    bottom: 0;
  }
  .item-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .catalog-layout {
    gap: 28px;
    grid-template-columns: 1fr 1.2fr;
  }
  .inventory-tools {
    flex-wrap: wrap;
  }
  .search-field {
    flex-basis: 100%;
  }
  .profile-layout {
    gap: 30px;
  }
  .wordmark {
    display: none;
  }
  .case-action {
    bottom: 8%;
  }
  .scene-footer {
    font-size: 8px;
  }
  .drawer {
    right: 3%;
    top: 104px;
  }
}
@media (max-width: 700px) {
  .navigation {
    height: 80px;
    padding: 0 20px;
    gap: 20px;
    font-size: 9px;
  }
  .navigation nav {
    gap: 20px;
  }
  .navigation .crosshair {
    width: 23px;
  }
  .account-link {
    gap: 8px;
    font-size: 9px;
    max-width: 110px;
  }
  .account-link > span:last-child {
    display: none;
  }
  .navigation .home-link .crosshair:before {
    width: 23px;
  }
  .navigation .home-link .crosshair:after {
    left: 11px;
  }
  .home-view {
    min-height: 700px;
    height: 100svh;
  }
  .editorial-rail {
    left: 22px;
    top: 125px;
    width: 120px;
    bottom: auto;
  }
  .distressed-type {
    font-size: 56px;
    letter-spacing: -3px;
    flex-direction: row;
    align-items: baseline;
    gap: 4px;
  }
  .distressed-type span {
    font-size: 40px;
    letter-spacing: -1px;
    margin: 0;
  }
  .rail-copy {
    font-size: 8px;
    line-height: 1.8;
    margin-top: 20px;
  }
  .rail-line,
  .text-arrow {
    display: none;
  }
  .hero-stage {
    left: 0;
    right: 0;
    top: 25%;
    bottom: 25%;
  }
  .viewer-toolbar {
    bottom: -5px;
    font-size: 8px;
    gap: 20px;
  }
  .viewer-toolbar .text-button {
    font-size: 8px;
  }
  .case-action {
    bottom: 8.5%;
    width: 90%;
  }
  .specimen-label {
    margin-bottom: 16px;
    gap: 12px;
  }
  .specimen-label h1 {
    font-size: 10px;
  }
  .open-button {
    min-width: 230px;
  }
  .leaderboard-trigger {
    right: 20px;
    top: 114px;
    width: 158px;
    padding: 13px 12px;
    font-size: 8px;
    gap: 10px;
  }
  .trigger-plus {
    font-size: 15px;
  }
  .scene-footer {
    bottom: 18px;
    inset-inline: 20px;
    gap: 12px;
    font-size: 7px;
    letter-spacing: 0.03em;
  }
  .scene-footer .crosshair {
    width: 22px;
    height: 22px;
  }
  .scene-footer .crosshair:before {
    width: 22px;
    top: 11px;
  }
  .scene-footer .crosshair:after {
    height: 22px;
    left: 11px;
  }
  .edition {
    gap: 13px;
  }
  .edition i {
    width: 14px;
    height: 7px;
  }
  .content-view {
    padding: 115px 20px 40px;
  }
  .page-heading {
    padding-bottom: 26px;
    margin-bottom: 26px;
    align-items: start;
  }
  .page-heading > .text-button {
    font-size: 9px;
    max-width: 85px;
    text-align: right;
  }
  .page-heading h1 {
    font-size: 28px;
  }
  .page-heading .technical-label {
    font-size: 9px;
  }
  .catalog-layout,
  .profile-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .catalog-case {
    padding: 22px;
  }
  .catalog-case img {
    max-height: 240px;
    margin: 10px 0;
  }
  .compact-grid,
  .item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .item-card {
    padding: 14px;
  }
  .gem {
    font-size: 52px;
    margin: 10px 0 20px;
  }
  .item-name {
    font-size: 13px;
  }
  .item-meta {
    font-size: 9px;
  }
  .inventory-tools {
    gap: 16px;
  }
  .select-field {
    font-size: 8px;
    gap: 8px;
  }
  .select-field select {
    font-size: 11px;
    padding: 0 8px;
  }
  .inventory-tools .select-field:last-child {
    margin-left: auto;
  }
  .inventory-summary {
    font-size: 8px;
  }
  .drawer {
    inset: 0;
    margin: 0;
    max-width: 100%;
    width: 100%;
    height: 100svh;
    max-height: none;
    padding: 0 24px 24px;
    border: 0;
    border-top: 2px solid #bf001b;
  }
  .drawer::backdrop {
    background: var(--color-overlay);
  }
  .modal {
    padding: 30px 24px;
  }
  .modal h2 {
    font-size: 27px;
  }
  .opening-modal {
    padding: 24px 0;
  }
  .opening-modal .button {
    font-size: 9px;
    padding: 14px 18px;
  }
  .drawer-description {
    font-size: 14px;
  }
  .leaderboard li {
    font-size: 12px;
  }
  .player-score {
    font-size: 12px;
  }
  .profile-stats > div {
    font-size: 14px;
  }
  .notice {
    font-size: 12px;
    bottom: 12px;
  }
  .identity-panel {
    padding: 25px;
  }
  .page-heading > .technical-label {
    display: none;
  }
}
@media (max-height: 740px) and (min-width: 701px) {
  .home-view {
    min-height: 650px;
  }
  .hero-stage {
    top: 12%;
    bottom: 22%;
  }
  .case-action {
    bottom: 5%;
  }
  .distressed-type {
    font-size: 100px;
  }
  .distressed-type span {
    font-size: 65px;
  }
  .rail-copy {
    margin-top: 38px;
  }
  .rail-line {
    height: 60px;
  }
  .scene-footer {
    bottom: 25px;
  }
  .viewer-toolbar {
    bottom: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
/* Keep inspection controls clear of the action at every aspect ratio. */
body.modal-open {
  overflow: hidden;
}
.hero-stage {
  bottom: 27%;
}
@media (min-width: 1600px) {
  .hero-stage {
    bottom: 26%;
  }
}
@media (max-width: 1100px) {
  .hero-stage {
    bottom: 30%;
  }
}
@media (max-height: 740px) and (min-width: 701px) {
  .hero-stage {
    bottom: 29%;
  }
}
@media (max-width: 700px) {
  .hero-stage {
    bottom: 38%;
  }
}
/* 禁域: “restricted zone”. Decorative typography requested in the reference. */
.japanese-type {
  font-family: "Yu Mincho", "MS Mincho", "Noto Serif CJK JP", serif;
  font-weight: 700;
  font-size: 118px;
  line-height: 0.98;
  letter-spacing: -0.08em;
  background: linear-gradient(165deg, #d00022 8%, #870015 50%, #320008 90%);
  background-size: 100% 180%;
  color: transparent;
  background-clip: text;
  animation: ink-drift 20s ease-in-out infinite alternate;
}
.japanese-type span {
  font: inherit;
  margin-top: -10px;
}
@keyframes ink-drift {
  from {
    background-position: 0 15%;
    opacity: 0.8;
  }
  to {
    background-position: 0 70%;
    opacity: 1;
  }
}
@media (max-width: 1100px) {
  .japanese-type {
    font-size: 91px;
  }
}
@media (max-width: 700px) {
  .japanese-type {
    font-size: 46px;
    gap: 2px;
  }
  .japanese-type span {
    font: inherit;
    margin: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .japanese-type {
    animation: none;
  }
  .atmosphere:after,
  .red-bit,
  .vertical-fragment,
  .orbit-track:after,
  .hero-stage:before {
    animation: none;
  }
}
.small-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* The model itself is the opening control. */
.hero-stage {
  top: 17%;
  bottom: 20%;
}
.case-action {
  bottom: 9%;
  pointer-events: none;
}
.case-viewer {
  touch-action: pan-y;
}
.case-viewer[aria-disabled="true"] {
  cursor: default !important;
}
.case-glow {
  position: absolute;
  inset: 5% -10%;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(217, 0, 24, 0.14), transparent 70%);
  opacity: 0.65;
  transition:
    opacity 0.55s,
    transform 0.55s;
}
.case-glow.active {
  opacity: 1;
  transform: scale(1.18);
}
@media (max-width: 700px) {
  .hero-stage {
    top: 26%;
    bottom: 24%;
  }
  .case-action {
    bottom: 10%;
  }
  .viewer-toolbar {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .case-glow {
    transition: none;
  }
}
/* Black procedural atmosphere and hover response. */
html,
body,
.home-view {
  background-color: #000;
}
.atmosphere canvas {
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
  opacity: 1;
  mask-image: none;
}
.orbit-track {
  display: none;
}
.case-glow {
  inset: 5% -4%;
  background: radial-gradient(
    ellipse,
    rgba(222, 0, 29, 0.2) 0%,
    rgba(164, 0, 20, 0.08) 40%,
    transparent 69%
  );
  opacity: 0.13;
  transition:
    opacity 0.45s ease,
    transform 0.55s ease;
}
.case-glow.active {
  opacity: 1;
  transform: scale(1.16);
}
.case-glow.impact {
  animation: case-impact 0.9s var(--ease-industrial) both;
}
@keyframes case-impact {
  0% {
    opacity: 0.4;
    transform: scale(0.88);
    filter: blur(2px);
  }
  48% {
    opacity: 1;
    transform: scale(1.28);
    filter: blur(0);
  }
  100% {
    opacity: 0.7;
    transform: scale(1.08);
    filter: blur(1px);
  }
}
.case-canvas {
  filter: drop-shadow(0 0 0 transparent);
  transition: filter 0.4s ease;
}
.is-hovered .case-canvas {
  filter: drop-shadow(0 0 16px rgba(232, 0, 30, 0.28));
}
.viewer-toolbar {
  bottom: -24px;
}
.case-action {
  bottom: 5%;
}
@media (max-width: 700px) {
  .viewer-toolbar {
    bottom: -28px;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 10px;
  }
  .case-action {
    bottom: 6%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .case-glow,
  .case-canvas {
    transition: none;
  }
  .case-glow.impact {
    animation: none;
  }
}
/* Upper canvas space is reserved for the fully raised lid. */
.hero-stage {
  top: 8%;
  bottom: 20%;
}
@media (max-width: 700px) {
  .hero-stage {
    top: 19%;
    bottom: 24%;
  }
}
#toggle-sound {
  white-space: nowrap;
  font-size: 10px;
}
@media (max-width: 700px) {
  .navigation nav {
    gap: 12px;
  }
  #toggle-sound {
    font-size: 8px;
    letter-spacing: 0.04em;
  }
}
/* Large case, with a taller canvas for the raised lid rather than a smaller object. */
.hero-stage {
  top: 0;
  bottom: 14%;
}
.viewer-toolbar {
  bottom: 10px;
}
@media (max-width: 700px) {
  .hero-stage {
    top: 8%;
    bottom: 21%;
  }
  .viewer-toolbar {
    bottom: -20px;
  }
}
.roulette.finished .item-card {
  opacity: 0.38;
  transition: opacity 0.3s;
}
.roulette.finished .winning-item {
  opacity: 1;
  border-color: var(--item-color, #d90018);
  box-shadow: inset 0 -3px 0 var(--item-color, #d90018);
}
.roulette.finished .roulette-marker {
  background: #e8e5e1;
}
/* The reel emerges from the physical opening rather than appearing abruptly. */
.opening-modal {
  transform-origin: center;
  box-shadow:
    0 0 70px rgba(180, 22, 20, 0.13),
    inset 0 1px rgba(255, 188, 156, 0.15);
  backface-visibility: hidden;
  animation: opening-panel-in 0.55s var(--ease-industrial);
}
.opening-modal::backdrop {
  background: rgba(0, 0, 0, 0.4);
  animation: opening-dim 950ms ease both;
}
@keyframes opening-dim {
  from {
    background: rgba(0, 0, 0, 0);
  }
  to {
    background: rgba(0, 0, 0, 0.4);
  }
}
