/* Inkcase nav teaser — desk/ink, sits by Login, does not steal the header */
.nav-inkcase {
  position: relative;
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
a.nav-inkcase__btn {
  text-decoration: none !important;
}
.nav-inkcase__btn[aria-current="page"] {
  background: rgba(228, 174, 57, 0.22);
  color: #f4e9d4;
}
.nav-inkcase__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.7rem 0.32rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(228, 174, 57, 0.35);
  background: rgba(228, 174, 57, 0.1);
  color: #e8d5a3;
  font: 650 0.78rem/1 "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
.nav-inkcase__btn:hover,
.nav-inkcase__btn[aria-expanded="true"] {
  background: rgba(228, 174, 57, 0.18);
  color: #f4e9d4;
  border-color: rgba(228, 174, 57, 0.55);
}
.nav-inkcase__mark {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 5px;
  background: #1a1612;
  color: #e4ae39;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
}
.nav-inkcase__panel[hidden] {
  display: none !important;
}
.nav-inkcase__panel {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 80;
  width: min(20.5rem, calc(100vw - 1.5rem));
  padding: 0.85rem 0.9rem 0.75rem;
  border-radius: 14px;
  border: 1px solid #3d362e;
  background: #1a1612;
  color: #f3ede3;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.nav-inkcase__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}
.nav-inkcase__title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e4ae39;
}
.nav-inkcase__sub {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #b5a99a;
}
.nav-inkcase__tabs {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.65rem;
}
.nav-inkcase__tab {
  flex: 1;
  border: 1px solid #3d362e;
  background: #241f1a;
  color: #b5a99a;
  border-radius: 8px;
  padding: 0.28rem 0.4rem;
  font: 700 0.72rem/1.2 "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
}
.nav-inkcase__tab.is-on {
  color: #f4e9d4;
  border-color: rgba(228, 174, 57, 0.45);
  background: rgba(228, 174, 57, 0.12);
}
.ink-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  width: 100%;
  aspect-ratio: 1;
  background: #f4e9d4;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #1c1410;
}
.ink-cell {
  border: 1px solid #c9b89a;
  background: transparent;
  color: #1c1410;
  font: 750 clamp(0.95rem, 3.6vw, 1.15rem)/1 "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
  padding: 0;
}
.ink-cell:nth-child(4n + 2) {
  border-right: 2px solid #1c1410;
}
.ink-cell:nth-child(n + 5):nth-child(-n + 8) {
  border-bottom: 2px solid #1c1410;
}
.ink-cell.is-given {
  font-weight: 800;
  cursor: default;
  color: #1c1410;
}
.ink-cell.is-entry {
  color: #2a4a6b;
}
.ink-cell.is-on {
  background: rgba(196, 163, 106, 0.28);
}
.ink-cell.is-bad {
  color: #b42318;
}
.ink-pad {
  display: flex;
  gap: 0.28rem;
  margin-top: 0.55rem;
}
.ink-pad button {
  flex: 1;
  border: 1px solid #3d362e;
  background: #241f1a;
  color: #f3ede3;
  border-radius: 7px;
  padding: 0.35rem 0;
  font: 750 0.85rem/1 "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
}
.ink-pad button:hover {
  border-color: #e4ae39;
}
.ink-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.ink-actions button,
.ink-open-btn {
  flex: 1;
  border: 0;
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  font: 750 0.75rem/1 "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
}
.ink-actions .ink-ghost {
  background: #241f1a;
  color: #b5a99a;
  border: 1px solid #3d362e;
}
.ink-actions .ink-ok,
.ink-open-btn {
  background: #e4ae39;
  color: #1a1204;
}
.ink-msg {
  min-height: 1.1rem;
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  color: #e4ae39;
}
.ink-reel-clip {
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid #3d362e;
  background: #0e0c0a;
  position: relative;
  height: 4.4rem;
}
.ink-reel-clip::before,
.ink-reel-clip::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28%;
  z-index: 1;
  pointer-events: none;
}
.ink-reel-clip::before {
  left: 0;
  background: linear-gradient(90deg, #0e0c0a, transparent);
}
.ink-reel-clip::after {
  right: 0;
  background: linear-gradient(270deg, #0e0c0a, transparent);
}
.ink-reel-mark {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e4ae39;
  z-index: 2;
  transform: translateX(-50%);
}
.ink-reel {
  display: flex;
  height: 100%;
  will-change: transform;
}
.ink-reel-item {
  flex: 0 0 3.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #2e2822;
  font-weight: 800;
  font-size: 1.35rem;
}
.ink-hit {
  margin: 0.55rem 0 0;
  padding: 0.5rem 0.55rem;
  border-radius: 8px;
  background: #241f1a;
  border: 1px solid #3d362e;
  font-size: 0.78rem;
  line-height: 1.35;
}
.ink-hit strong {
  display: block;
  font-size: 0.95rem;
}
.nav-inkcase__more {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.68rem;
  color: #7a7066;
  text-align: right;
  text-decoration: none;
}
.nav-inkcase__more:hover {
  color: #e4ae39;
}

/* —— Full Inkcase app page —— */
.ink-body {
  background: #0e0c0a;
}
.ink-app {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 3.5rem;
  color: #f3ede3;
  min-height: 70vh;
}
.ink-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.ink-back {
  border: 0;
  background: none;
  color: #e4ae39;
  font: 800 0.85rem/1 "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.12em;
  cursor: pointer;
  padding: 0;
}
.ink-frag {
  font-size: 0.8rem;
  font-weight: 700;
  color: #e4ae39;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(228, 174, 57, 0.35);
}
.ink-home {
  text-align: center;
}
.ink-home h1,
.ink-play h2,
.ink-open h2,
.ink-bag h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  letter-spacing: 0.12em;
  font-weight: 800;
  color: #f4e9d4;
}
.ink-tag {
  margin: 0 0 0.75rem;
  color: #b5a99a;
  letter-spacing: 0.04em;
}
.ink-lead,
.ink-hint {
  margin: 0 auto 1.25rem;
  max-width: 28rem;
  color: #b5a99a;
  font-size: 0.92rem;
  line-height: 1.45;
}
.ink-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.ink-btn {
  width: 200px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #3d362e;
  background: transparent;
  color: #f3ede3;
  font: 750 0.95rem/1 "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
}
.ink-btn--gold,
.ink-open-wide {
  background: #e4ae39;
  color: #1a1204;
  border-color: #e4ae39;
}
.ink-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.ink-open-wide {
  width: 100%;
  max-width: 28rem;
  margin: 0.85rem auto 0;
  display: block;
}
.ink-open-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 28rem;
  margin: 0.85rem auto 0;
}
.ink-open-row .ink-btn {
  width: auto;
  min-width: 8.5rem;
  flex: 1 1 8.5rem;
}
.ink-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin: 1.25rem 0 0.75rem;
}
.ink-text {
  border: 0;
  background: none;
  color: #e4ae39;
  font: 650 0.9rem/1 "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ink-meta {
  color: #7a7066;
  font-size: 0.78rem;
}
.ink-meta a {
  color: #e4ae39;
}
.ink-rarity-strip {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1.5rem;
}
.ink-rarity-strip span {
  width: 1.6rem;
  height: 0.35rem;
  border-radius: 99px;
}
.ink-rarity-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 0.9rem;
  margin-top: 1.4rem;
  font-size: 0.68rem;
  color: #7a7066;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.ink-rarity-legend i {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 99px;
  margin-right: 0.3rem;
  vertical-align: -0.05rem;
}
.ink-code[hidden] {
  display: none !important;
}
.ink-code {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  max-width: 22rem;
  margin: 1rem auto 0;
}
.ink-code input {
  flex: 1 1 12rem;
  border: 1px solid #3d362e;
  border-radius: 8px;
  background: #1a1612;
  color: #f3ede3;
  padding: 0.5rem 0.65rem;
  font: 650 0.85rem/1.2 ui-monospace, Consolas, monospace;
  letter-spacing: 0.04em;
}
.ink-code .ink-btn {
  width: auto;
  height: 2.4rem;
  padding: 0 1rem;
}
.ink-code-msg {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.8rem;
  color: #e4ae39;
}
.ink-play-stage {
  --digit-scale: 1;
  --note-scale: 1;
  --board-px: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin: 0 auto;
}
.ink9 {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  width: min(var(--board-px), calc(100% - 3.1rem));
  margin: 0;
  aspect-ratio: 1;
  background: #f4e9d4;
  border: 3px solid #1c1410;
  border-radius: 6px;
  overflow: hidden;
  flex: 0 1 auto;
}
.ink9-cell {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid #c9b89a;
  background: #f4e9d4;
  color: #1c1410;
  font-weight: 750;
  font-size: calc(clamp(1.05rem, 3.6vw, 1.4rem) * var(--digit-scale, 1));
  line-height: 1;
  font-family: "Segoe UI", Georgia, serif;
  padding: 0;
  cursor: pointer;
  min-width: 0;
  min-height: 0;
}
.ink9-cell.box-r {
  border-right: 2px solid #1c1410;
}
.ink9-cell.box-b {
  border-bottom: 2px solid #1c1410;
}
.ink9-cell.is-given {
  font-weight: 800;
  cursor: pointer;
}
.ink9-cell.is-entry {
  color: #2a4a6b;
}
.ink9-cell.is-peer {
  background: #ead9b8;
}
.ink9-cell.is-same {
  background: #cfe0f0;
}
.ink9-cell.is-on {
  background: #e8d4a8;
  box-shadow: inset 0 0 0 2px #1c1410;
}
.ink9-cell.is-bad {
  color: #b42318;
}
.ink-notes {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: 100%;
  height: 100%;
  padding: 1px;
  z-index: 2;
  pointer-events: none;
}
.ink-notes span {
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: calc(clamp(0.42rem, 1.7vw, 0.62rem) * var(--note-scale, 1));
  line-height: 1;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #4a4036;
}
.ink-notes span:empty {
  visibility: hidden;
}
.ink-notes span.is-on {
  visibility: visible;
}
.ink-inked {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  z-index: 1;
  line-height: 1;
  font-size: 1em;
}
.ink9-cell.has-notes .ink-inked {
  opacity: 0.22;
}
.ink-board-scale {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  flex: 0 0 2.65rem;
  width: 2.65rem;
  padding: 0.5rem 0.2rem;
  border: 1px solid #3d362e;
  border-radius: 10px;
  background: #16120e;
}
.ink-board-scale label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a7066;
}
.ink-board-scale__rail {
  -webkit-appearance: slider-vertical;
  appearance: slider-vertical;
  writing-mode: vertical-lr;
  direction: rtl;
  width: 1.25rem;
  height: 6.6rem;
  margin: 0;
  padding: 0;
  background: transparent;
  accent-color: #e4ae39;
  cursor: pointer;
}
.ink-digits {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
  max-width: 460px;
  margin: 0.85rem auto 0;
}
.ink-digit {
  position: relative;
  height: 2.55rem;
  border: 1px solid #3d362e;
  border-radius: 8px;
  background: #241f1a;
  color: #f3ede3;
  font: 750 1rem/1 "Segoe UI", system-ui, sans-serif;
  cursor: pointer;
}
.ink-digit__left {
  position: absolute;
  right: 0.28rem;
  bottom: 0.16rem;
  font-size: 0.58rem;
  font-weight: 700;
  color: #7a7066;
}
.ink-digit.is-arm {
  border-color: #e4ae39;
  box-shadow: 0 0 0 1px #e4ae39;
}
.ink-digit.is-noted {
  background: #3a2e18;
}
.ink-digit.is-done {
  opacity: 0.38;
}
.ink-digits.is-notes .ink-digit {
  background: #1c241c;
  border-color: #3d4a3d;
}
.ink-play-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
}
.ink-play-actions .ink-btn {
  width: auto;
  min-width: 5.6rem;
  padding: 0 0.75rem;
}
.ink-win {
  color: #e4ae39;
  font-weight: 750;
  text-align: center;
}
.ink-reel-clip--lg {
  height: 8.4rem;
  max-width: 42rem;
  margin: 0 auto;
}
.ink-reel-clip--lg.is-landed {
  border-color: var(--land, #e4ae39);
  box-shadow: 0 0 28px color-mix(in srgb, var(--land, #e4ae39) 45%, transparent);
}
.ink-reel-skin,
.ink-reel-cell {
  flex: 0 0 6.1rem;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  font-weight: 800;
  border-right: 1px solid #2e2822;
}
.ink-reel-cell {
  background: linear-gradient(180deg, color-mix(in srgb, var(--rare, #4b69ff) 28%, #16120e), #0e0c0a);
  border-bottom: 4px solid var(--rare, #4b69ff);
}
.ink-reel-cell.is-pass {
  filter: brightness(1.18);
}
.ink-reel-cell.is-win {
  transform: scale(1.08);
  z-index: 2;
  box-shadow: inset 0 0 0 2px var(--rare, #e4ae39);
}
.ink-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 0.75rem;
  margin: 0.35rem 0 1.1rem;
}
.ink-filters label {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a7066;
  text-align: left;
}
.ink-filters select {
  min-width: 7.2rem;
  border: 1px solid #3d362e;
  border-radius: 8px;
  background: #1a1612;
  color: #f3ede3;
  padding: 0.38rem 0.45rem;
  font: 650 0.82rem/1.2 "Segoe UI", system-ui, sans-serif;
  text-transform: none;
  letter-spacing: 0;
}

.ink-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.75rem;
}
.ink-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 9.6rem;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  padding: 0.6rem;
  background: #16120e;
  box-shadow: inset 0 -4px 0 var(--rare, #4b69ff);
}
.ink-card__n {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.ink-card__r,
.ink-card__s {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}
.ink-card.is-eq {
  outline: 2px solid #e4ae39;
}
.ink-empty {
  color: #7a7066;
  text-align: center;
}

/* Standalone app chrome — no PlayWorth wrap nav */
.ink-standalone {
  margin: 0;
  min-height: 100vh;
  background: #0e0c0a;
}
.ink-chrome {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid #2e2822;
  background: #14110e;
}
.ink-chrome__brand {
  color: #e4ae39;
  font: 800 0.92rem/1 "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-decoration: none;
}
.ink-chrome__tag {
  color: #7a7066;
  font-size: 0.78rem;
}
.ink-chrome__exit {
  margin-left: auto;
  color: #b5a99a;
  font-size: 0.8rem;
  text-decoration: none;
}
.ink-chrome__exit:hover {
  color: #e4ae39;
}

.ink-auth {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 18rem;
  margin: 1.25rem auto 0;
  text-align: left;
}
.ink-auth-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.25rem;
}
.ink-auth-tabs .ink-text.is-on {
  color: #f4e9d4;
  text-decoration: none;
  font-weight: 800;
}
.ink-auth label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: #b5a99a;
}
.ink-auth input {
  border: 1px solid #3d362e;
  border-radius: 8px;
  background: #1a1612;
  color: #f3ede3;
  padding: 0.55rem 0.65rem;
  font: 650 0.95rem/1.2 "Segoe UI", system-ui, sans-serif;
}
.ink-auth input:focus {
  outline: 2px solid rgba(228, 174, 57, 0.45);
  border-color: #e4ae39;
}
.ink-auth-err {
  margin: 0;
  color: #eb4b4b;
  font-size: 0.82rem;
}
.ink-auth .ink-btn {
  width: 100%;
  margin-top: 0.25rem;
}

.ink-top {
  justify-content: flex-start;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.ink-top .ink-back {
  margin-right: auto;
}
.ink-user {
  font-size: 0.78rem;
  font-weight: 700;
  color: #d8cfc3;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.ink-user__steam {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e4ae39;
  border: 1px solid rgba(228, 174, 57, 0.35);
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
}
.ink-out {
  font-size: 0.75rem;
}

/* Texture is painted inside the glyph via SVG pattern fill */
.ink-glyph {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1em;
  height: 1em;
  line-height: 1;
  pointer-events: none;
}
.ink-glyph__svg {
  width: 1.28em;
  height: 1.28em;
  display: block;
  overflow: visible;
}
.ink-glyph.wear-worn .ink-glyph__svg {
  filter: contrast(0.96) saturate(0.96);
}
.ink-glyph.wear-rough .ink-glyph__svg {
  filter: contrast(0.92) saturate(0.9);
}
.ink-glyph.wear-beat .ink-glyph__svg {
  filter: contrast(0.88) saturate(0.84);
}
.ink-glyph.is-trak::after {
  content: "T";
  position: absolute;
  right: -0.28em;
  top: -0.12em;
  font: 800 0.22em/1 "Segoe UI", system-ui, sans-serif;
  color: #e4ae39;
  letter-spacing: 0.04em;
}
.ink-glyph.is-gem::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  box-shadow: 0 0 12px #4b69ff88;
  pointer-events: none;
}
.ink-glyph--cell {
  font-size: 1em;
  width: 1em;
  height: 1em;
}
.ink9-cell .ink-glyph,
.ink9-cell .ink-glyph--cell {
  font-size: 1em;
  width: 1em;
  height: 1em;
}
.ink9-cell .ink-glyph__svg {
  width: 1em;
  height: 1em;
}
.ink-glyph--pad {
  font-size: 1.7rem;
}
.ink-glyph--reel {
  font-size: 2.9rem;
}
.ink-glyph--card {
  font-size: 3.3rem;
}
.ink-glyph--hit {
  font-size: 4rem;
}
.ink-glyph--hero {
  font-size: 7.4rem;
}

.ink9-cell.has-skin {
  background: #f4e9d4;
  background-image: none;
}
.ink-digit.has-skin {
  background: #241f1a;
  background-image: none;
  color: inherit;
}

.ink-reveal {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-align: left;
}
.ink-reveal p {
  margin: 0.2rem 0 0.35rem;
  color: #b5a99a;
  font-size: 0.82rem;
}

.ink-inspect {
  text-align: center;
}
.ink-inspect__hero {
  width: min(16rem, 80vw);
  aspect-ratio: 1;
  margin: 1rem auto;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid #3d362e;
  background: #14110e;
  background-image: none;
}
.ink-inspect__hero--3d {
  width: min(22rem, 92vw);
  height: min(22rem, 70vw);
  aspect-ratio: auto;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  background:
    radial-gradient(ellipse at 50% 40%, #2a2218 0%, #0c0a08 72%);
}
.ink-inspect__hero--3d:active {
  cursor: grabbing;
}
.ink3d {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  position: relative;
}
.ink3d__aura {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--rare) 62%, transparent) 0%, transparent 68%);
  filter: blur(22px);
  opacity: 0.28;
}
.ink3d__canvas {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.ink3d--rank1 .ink3d__aura {
  opacity: 0.2;
  filter: blur(24px);
}
.ink3d--rank2 .ink3d__aura {
  opacity: 0.38;
}
.ink3d--rank3 .ink3d__aura {
  opacity: 0.52;
  filter: blur(16px) saturate(1.15);
}
.ink3d--rank4 .ink3d__aura {
  opacity: 0.78;
  filter: blur(13px) saturate(1.3);
  animation: ink-aura-pulse 2.4s ease-in-out infinite;
}
.ink3d--rank5 .ink3d__aura {
  opacity: 0.95;
  filter: blur(11px) saturate(1.45);
  animation: ink-aura-pulse 1.7s ease-in-out infinite;
  box-shadow:
    0 0 36px color-mix(in srgb, var(--rare) 55%, transparent),
    0 0 72px color-mix(in srgb, var(--rare) 28%, transparent);
}
@keyframes ink-aura-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.68;
  }
  50% {
    transform: scale(1.07);
    opacity: 0.96;
  }
}
.ink3d__hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.55rem;
  margin: 0;
  font-size: 0.72rem;
  color: #7a7066;
  letter-spacing: 0.04em;
  z-index: 3;
}
.ink-inspect__rare {
  margin: 0 0 1rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.78rem;
}
.ink-inspect__dl {
  max-width: 22rem;
  margin: 0 auto 1.25rem;
  text-align: left;
}
.ink-inspect__dl div {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #2e2822;
}
.ink-trade__bar {
  margin: 0.75rem auto 1rem;
  max-width: 28rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #3d362e;
  border-radius: 12px;
  background: #16120e;
  text-align: left;
}
.ink-trade__bar p {
  margin: 0 0 0.65rem;
  color: #d8cfc3;
  font-size: 0.85rem;
}
.ink-trade__actions {
  display: flex;
  gap: 0.45rem;
}
.ink-trade__actions .ink-btn {
  width: auto;
  min-width: 6.5rem;
  padding: 0 0.8rem;
}

.ink-inspect__dl dt {
  color: #7a7066;
  font-size: 0.78rem;
}
.ink-inspect__dl dd {
  margin: 0;
  color: #f3ede3;
  font-size: 0.9rem;
}
