@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Pixelify+Sans:wght@400..700&display=swap');

:root {
  --ink: #ecf3e9;
  --muted: #98a69a;
  --panel: rgba(18, 25, 20, .9);
  --panel-2: rgba(25, 34, 27, .92);
  --line: rgba(211, 237, 204, .14);
  --lime: #9adf46;
  --lime-bright: #c5ff63;
  --green: #4f872e;
  --dirt: #72543a;
  --danger: #ff716b;
  --pixel: 'Pixelify Sans', 'Courier New', monospace;
  --sans: 'Inter', system-ui, sans-serif;
  --brand-logo-height: 5.875rem;
  --brand-header-height: 7rem;
  --brand-logo-shadow: rgba(0, 0, 0, .34);
  --brand-logo-glow: rgba(180, 180, 180, .16);
  --search-gap: .75rem;
  --search-panel-padding: .75rem;
  --search-row-padding: .875rem;
  --search-avatar-size: 2.5rem;
  --search-control-size: 2.75rem;
  --search-icon-size: 1.125rem;
  --search-label-size: .75rem;
  --search-name-size: 1rem;
  --search-radius: .5rem;
  --search-results-height: 24rem;
  --search-surface: var(--panel);
  --search-highlight: var(--panel-2);
  --search-text: var(--ink);
  --search-secondary: var(--muted);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #0d130f;
  font-family: var(--sans);
  min-height: 100vh;
  overflow-x: hidden;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.world-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    linear-gradient(rgba(6, 13, 8, .38), rgba(6, 13, 8, .9)),
    linear-gradient(180deg, #27413c 0%, #243a31 45%, #111a14 75%);
}
.world-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: linear-gradient(to bottom, transparent, #000 40%, #000);
}
.sun { position: absolute; width: 95px; height: 95px; right: 13%; top: 90px; background: #dce5a5; box-shadow: 0 0 70px rgba(220,229,165,.18); opacity: .7; }
.cloud { position: absolute; width: 190px; height: 34px; background: rgba(194,213,199,.14); box-shadow: 40px -22px 0 rgba(194,213,199,.14), 90px 0 0 rgba(194,213,199,.14); }
.cloud-one { left: 8%; top: 170px; }
.cloud-two { right: 28%; top: 280px; transform: scale(.65); opacity: .65; }
.mountain { position: absolute; bottom: 180px; width: 42vw; height: 34vw; background: #1a2b20; clip-path: polygon(0 100%, 0 75%, 13% 75%, 13% 61%, 24% 61%, 24% 51%, 34% 51%, 34% 38%, 47% 38%, 47% 22%, 58% 22%, 58% 38%, 69% 38%, 69% 55%, 80% 55%, 80% 72%, 100% 72%, 100% 100%); }
.mountain-one { left: -5%; opacity: .7; }
.mountain-two { right: -4%; transform: scaleX(-1) scale(.85); transform-origin: bottom; opacity: .48; }
.ground { position: absolute; bottom: 0; width: 100%; height: 185px; background: linear-gradient(#263d24 0 12px, #1d2d1e 12px 20px, #191b17 20px); opacity: .82; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  height: var(--brand-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo {
  display: block;
  width: auto;
  height: var(--brand-logo-height);
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 .5rem 0 var(--brand-logo-shadow)) drop-shadow(0 0 1rem var(--brand-logo-glow));
}
.header-status { color: #a9b6a9; font: 600 11px/1 var(--pixel); letter-spacing: 1px; display: flex; align-items: center; gap: 9px; }
.header-status span { width: 8px; height: 8px; background: var(--lime); box-shadow: 0 0 13px var(--lime); }

main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.hero { padding: 86px 0 66px; text-align: center; max-width: 940px; margin: auto; }
.eyebrow, .section-kicker { color: var(--lime); font: 600 10px/1.2 var(--pixel); letter-spacing: 2.5px; }
.eyebrow span { margin-right: 8px; }
.hero h1 { margin: 25px 0 20px; font: 700 clamp(46px, 8vw, 92px)/.85 var(--pixel); letter-spacing: -3px; text-shadow: 0 7px 0 rgba(0,0,0,.24); }
.hero h1 em { color: var(--lime-bright); font-style: normal; }
.hero > p { max-width: 680px; margin: 0 auto; color: #b1bcb2; font-size: 15px; line-height: 1.75; }

.search-shell { margin: 42px auto 0; max-width: 860px; padding: 12px; background: rgba(12,18,14,.93); border: 1px solid rgba(183,220,157,.2); box-shadow: 0 22px 70px rgba(0,0,0,.36), inset 0 0 0 1px rgba(255,255,255,.02); text-align: left; }
.search-shell > label { position: absolute; clip: rect(0 0 0 0); width: 1px; height: 1px; overflow: hidden; }
.search-row { display: grid; grid-template-columns: 45px 1fr auto; align-items: center; background: #151d17; border: 1px solid #344535; min-height: 68px; }
.search-row:focus-within { border-color: #83b94d; box-shadow: inset 0 0 0 1px #83b94d, 0 0 22px rgba(129,188,70,.1); }
.command-mark { color: var(--lime); font: 700 26px/1 var(--pixel); text-align: right; padding-right: 7px; }
.search-row input { width: 100%; border: 0; outline: 0; padding: 20px 16px 20px 4px; color: #fff; background: transparent; font: 500 21px/1 var(--pixel); }
.search-row input::placeholder { color: #647067; }
.search-row button, .secondary-button { border: 0; cursor: pointer; background: var(--lime); color: #14200f; padding: 20px 27px; min-height: 54px; font: 700 12px/1 var(--pixel); letter-spacing: .6px; box-shadow: inset 0 -5px 0 rgba(48,91,20,.35); transition: .18s ease; }
.search-row button { margin-right: 7px; }
.search-row button:hover, .secondary-button:hover { background: var(--lime-bright); transform: translateY(-1px); }
.search-row button:disabled { cursor: wait; filter: saturate(.3); }
.button-loader { display: none; width: 16px; height: 16px; border: 3px solid rgba(20,32,15,.3); border-top-color: #14200f; border-radius: 50%; animation: spin .7s linear infinite; }
.loading .button-text { display: none; }
.loading .button-loader { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.search-footer { display: flex; justify-content: space-between; padding: 11px 8px 0; color: #6f7d71; font-size: 10px; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--lime); cursor: pointer; font: 600 10px/1.4 var(--pixel); letter-spacing: .7px; }
.text-button:hover { color: var(--lime-bright); }
.recent-searches { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 19px; color: #78847a; font: 600 9px/1 var(--pixel); letter-spacing: 1px; }
.recent-searches button { border: 1px solid #354136; background: rgba(21,29,23,.8); color: #b4beb5; padding: 7px 10px; cursor: pointer; font: 500 10px/1 var(--pixel); }
.recent-searches button:hover { border-color: var(--lime); color: var(--lime); }

.state-panel { padding-bottom: 80px; }
.welcome-state, .error-state { max-width: 780px; min-height: 260px; margin: 0 auto; display: flex; gap: 45px; align-items: center; padding: 38px 54px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 25px 70px rgba(0,0,0,.3); }
.welcome-state h2, .error-state h2 { margin: 8px 0 12px; font: 600 28px/1.05 var(--pixel); }
.welcome-state p, .error-state p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 13px; }
.floating-head { min-width: 190px; height: 180px; display: grid; place-items: center; background: radial-gradient(circle, rgba(154,223,70,.15), transparent 65%); animation: float 3s ease-in-out infinite; }
.floating-head img { width: 170px; image-rendering: pixelated; filter: drop-shadow(13px 18px 0 rgba(0,0,0,.22)); }
@keyframes float { 50% { transform: translateY(-8px); } }
.error-icon { min-width: 82px; height: 82px; display: grid; place-items: center; background: var(--danger); color: #28100e; font: 700 46px/1 var(--pixel); box-shadow: inset 0 -9px 0 rgba(100,20,17,.3); }

.profile-result { animation: reveal .42s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(15px); } }
.profile-banner { display: flex; align-items: center; justify-content: space-between; padding: 24px 26px; background: linear-gradient(90deg, rgba(34,49,37,.97), rgba(18,26,20,.97)); border: 1px solid var(--line); border-bottom: 3px solid var(--lime); }
.player-identity { display: flex; align-items: center; gap: 21px; }
.avatar-frame { position: relative; width: 78px; height: 78px; padding: 5px; background: #0c120e; border: 1px solid #536251; }
.avatar-frame img { width: 100%; height: 100%; image-rendering: pixelated; display: block; }
.online-dot { position: absolute; right: -4px; bottom: -4px; width: 15px; height: 15px; border: 4px solid #1b271d; background: var(--lime); }
.verified-line { color: #92a293; font: 600 8px/1 var(--pixel); letter-spacing: 1.7px; }
.verified-line span { display: inline-block; color: #172411; background: var(--lime); padding: 4px 6px; margin-right: 7px; }
.player-identity h2 { margin: 8px 0 6px; font: 700 33px/1 var(--pixel); }
.uuid-button { border: 0; background: none; padding: 0; color: #7d8c7f; cursor: pointer; font: 500 10px/1 var(--pixel); letter-spacing: .5px; }
.uuid-button:hover { color: var(--lime); }
.profile-actions { display: flex; gap: 9px; }
.secondary-button { display: grid; place-items: center; text-decoration: none; padding: 15px 20px; min-height: 46px; }
.icon-button { width: 46px; height: 46px; border: 1px solid #4b584c; background: #202a22; color: #c2ccc3; cursor: pointer; font-size: 20px; }
.icon-button:hover { border-color: var(--lime); color: var(--lime); }

.profile-grid { display: grid; grid-template-columns: minmax(350px, .85fr) minmax(0, 1.5fr); gap: 18px; margin-top: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); box-shadow: 0 15px 45px rgba(0,0,0,.2); }
.card-heading { display: flex; justify-content: space-between; align-items: flex-start; padding: 23px 24px 18px; border-bottom: 1px solid var(--line); }
.card-heading h3 { margin: 7px 0 0; font: 700 18px/1 var(--pixel); letter-spacing: .5px; }
.card-heading.compact { align-items: center; padding: 20px 22px 16px; }
.card-heading.compact h3 { font-size: 15px; }
.model-badge { color: #aebaaa; background: #263128; border: 1px solid #465648; padding: 6px 8px; font: 600 8px/1 var(--pixel); }
.cube-icon { color: var(--lime); font: 700 25px/1 var(--pixel); }
.character-card { min-height: 590px; }
.character-stage { position: relative; min-height: 450px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(180deg, rgba(48,76,48,.22), rgba(13,20,15,.1)), repeating-linear-gradient(0deg, transparent 0 31px, rgba(255,255,255,.025) 31px 32px), repeating-linear-gradient(90deg, transparent 0 31px, rgba(255,255,255,.025) 31px 32px); }
.character-stage::after { content: ''; position: absolute; bottom: 30px; width: 185px; height: 25px; background: rgba(0,0,0,.45); filter: blur(10px); border-radius: 50%; }
.stage-glow { position: absolute; width: 270px; height: 360px; background: radial-gradient(ellipse, rgba(143,210,73,.18), transparent 68%); }
.character-stage > canvas { position: relative; z-index: 2; display: block; width: 100% !important; height: 450px !important; cursor: grab; touch-action: none; outline: 0; }
.character-stage > canvas:active { cursor: grabbing; }
.character-stage > img { position: relative; z-index: 2; height: 390px; max-width: 94%; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(18px 22px 0 rgba(0,0,0,.2)); transition: opacity .18s, transform .18s; }
.character-stage > img.changing { opacity: .1; transform: scale(.96); }
.block { position: absolute; width: 25px; height: 25px; border: 3px solid rgba(121,166,80,.18); transform: rotate(18deg); }
.block-a { top: 16%; left: 12%; }.block-b { top: 31%; right: 14%; width: 14px; height: 14px; }.block-c { bottom: 17%; left: 17%; width: 18px; height: 18px; }
.drag-hint { position: absolute; z-index: 4; right: 18px; bottom: 13px; color: #667267; font: 600 8px/1 var(--pixel); letter-spacing: 1px; }
.pose-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border-top: 1px solid var(--line); background: var(--line); }
.pose-button { border: 0; background: #172019; color: #758077; padding: 17px 8px; cursor: pointer; font: 600 9px/1 var(--pixel); }
.pose-button:hover, .pose-button.active { background: #243023; color: var(--lime); }
.info-column { display: flex; flex-direction: column; gap: 18px; }
.data-list { margin: 0; padding: 5px 22px 12px; }
.data-list > div { display: grid; grid-template-columns: 130px 1fr; gap: 20px; align-items: center; min-height: 51px; border-bottom: 1px solid rgba(255,255,255,.06); }
.data-list > div:last-child { border-bottom: 0; }
.data-list dt { color: #718074; font: 600 9px/1 var(--pixel); letter-spacing: 1px; }
.data-list dd { min-width: 0; margin: 0; text-align: right; color: #d9e2da; font: 500 11px/1.3 var(--pixel); overflow-wrap: anywhere; }
.data-list code, .technical-content code { color: #9faa9f; font: 500 10px/1.3 var(--pixel); }
.copy-mini { border: 1px solid #465348; padding: 6px 8px; margin-left: 8px; background: #202a22; color: var(--lime); cursor: pointer; font: 600 7px/1 var(--pixel); letter-spacing: .5px; }
.copy-mini:hover { color: var(--lime); }
.asset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px; }
.asset-tile { min-width: 0; min-height: 194px; position: relative; display: grid; grid-template-columns: 1fr; grid-template-rows: auto 154px; align-items: center; gap: 7px; padding: 12px; background: #151d17; border: 1px solid #344136; text-align: center; }
.asset-card-title { color: #cbd7cc; font: 700 10px/1 var(--pixel); letter-spacing: 1px; }
.asset-preview { width: 100%; height: 154px; display: grid; place-items: center; overflow: visible; background: transparent; }
.checkerboard { background: transparent; }
.asset-preview img { width: auto; height: 82%; max-width: 82%; max-height: 82%; padding: 0; object-fit: contain; object-position: center; image-rendering: pixelated; }
.skin-tile .asset-preview img { filter: none; }
.cape-preview img { width: auto; height: 76%; max-width: 76%; max-height: 76%; padding: 0; object-fit: contain; object-position: center; }
.asset-copy { min-width: 0; }
.asset-copy span { display: block; color: #718074; font: 600 8px/1 var(--pixel); }
.asset-copy strong { display: none; }
.asset-copy span { margin-bottom: 8px; }
.asset-copy small { display: block; overflow: hidden; text-overflow: ellipsis; color: #637064; font: 500 8px/1 var(--pixel); white-space: nowrap; }
.download-button { position: absolute; right: 13px; top: 13px; display: grid; place-items: center; width: 32px; height: 32px; text-decoration: none; background: #253126; color: var(--lime); border: 1px solid #445246; }
.download-button:hover { background: var(--lime); color: #14200f; }
.cape-tile.no-cape { opacity: .6; }
.cape-tile.no-cape .download-button { pointer-events: none; color: #637064; }
.square-icon { width: 18px; height: 18px; display: grid; place-items: center; color: var(--lime); border: 2px solid var(--lime); font-size: 0; }
.cosmetic-history { padding: 2px 18px 19px; border-top: 1px solid var(--line); }
.history-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 2px 13px; }
.history-heading h4 { margin: 6px 0 0; font: 700 13px/1 var(--pixel); }
.capes-heading { margin-top: 5px; border-top: 1px solid rgba(255,255,255,.06); }
.history-count { flex: 0 0 auto; padding: 6px 8px; color: var(--lime); border: 1px solid #445246; background: #1d271f; font: 600 8px/1 var(--pixel); }
.history-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.history-card { min-width: 0; position: relative; padding: 8px; background: #141c16; border: 1px solid #344136; }
.history-card.active { border-color: rgba(154,223,70,.65); box-shadow: inset 0 -3px 0 rgba(154,223,70,.55); }
.history-card img { width: 100%; aspect-ratio: 1 / 1.12; display: block; object-fit: contain; image-rendering: pixelated; background: radial-gradient(circle, rgba(129,176,82,.13), transparent 62%), #101712; }
.history-placeholder { width: 100%; aspect-ratio: 1 / 1.12; display: grid; place-items: center; color: var(--lime); background: radial-gradient(circle, rgba(129,176,82,.16), transparent 62%), #101712; font: 700 26px/1 var(--pixel); }
.history-card strong { display: block; margin-top: 8px; overflow: hidden; color: #cbd6cc; font: 600 8px/1.3 var(--pixel); text-overflow: ellipsis; white-space: nowrap; }
.history-card small { display: block; margin-top: 5px; color: #68756a; font: 500 7px/1.4 var(--pixel); }
.history-card .active-tag { position: absolute; left: 13px; top: 13px; padding: 4px 5px; background: var(--lime); color: #17220f; font: 700 6px/1 var(--pixel); }
.history-message { grid-column: 1 / -1; margin: 0; padding: 18px; color: #78857a; background: #141c16; border: 1px dashed #39463b; text-align: center; font: 500 9px/1.7 var(--pixel); }
.history-disclaimer { margin: 14px 2px 0; color: #657267; font-size: 9px; line-height: 1.6; }
.gallery-card, .technical-card { margin-top: 18px; }
.gallery-note { color: #657167; font: 500 8px/1 var(--pixel); letter-spacing: 1px; }
.render-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 18px; }
.render-gallery figure { margin: 0; }
.render-box { height: 230px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 45%, rgba(121,169,77,.13), transparent 55%), #131b15; border: 1px solid #303b31; }
.render-box img { display: block; width: 90%; height: 88%; min-width: 0; min-height: 0; max-width: 90%; max-height: 88%; object-fit: contain; object-position: center; image-rendering: pixelated; transition: transform .2s; }
.render-box:hover img { transform: scale(1.06); }
.render-gallery figcaption { margin-top: 9px; color: #79867b; text-align: center; font: 600 8px/1 var(--pixel); letter-spacing: 1px; }
.head-command-panel { margin: 0 18px 18px; padding: 16px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; background: #131b15; border: 1px solid #344136; }
.head-command-panel h4 { margin: 6px 0 0; white-space: nowrap; font: 700 11px/1 var(--pixel); }
.head-command-panel code { min-width: 0; overflow-x: auto; padding: 13px 14px; color: #b8c9b6; background: #0d140f; border: 1px solid #2f3b31; white-space: nowrap; font: 500 9px/1.4 var(--pixel); }
.head-command-panel button { height: 39px; padding: 0 14px; border: 1px solid #5e7a4d; background: #243023; color: var(--lime); cursor: pointer; font: 700 8px/1 var(--pixel); }
.head-command-panel button:hover { background: var(--lime); color: #14200f; }
.technical-content { padding: 8px 22px 18px; }
.technical-content > div { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 20px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 11px; }
.technical-content > div:last-child { border: 0; }
.technical-content span { color: #718074; font: 600 8px/1.3 var(--pixel); }
.technical-content a { color: #a8c98b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 25px 0 42px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; color: #5f6d61; font-size: 9px; }
footer > div { font: 600 12px/1 var(--pixel); color: #8d9a8f; }
.footer-cube { color: var(--lime); margin-right: 8px; }
footer p { margin: 0; text-align: center; line-height: 1.5; }
footer > span { text-align: right; font: 500 9px/1 var(--pixel); }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 17px; color: #17200f; background: var(--lime-bright); box-shadow: 0 10px 30px rgba(0,0,0,.4); font: 700 10px/1 var(--pixel); transition: .22s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .profile-grid { grid-template-columns: 1fr; }
  .character-card { min-height: 0; }
  .character-stage { min-height: 420px; }
  .render-gallery { grid-template-columns: repeat(2, 1fr); }
  .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 901px) {
  .character-card > .asset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; padding: 14px; gap: 10px; border-top: 1px solid var(--line); }
  .character-card > .asset-grid .asset-tile { grid-template-columns: 1fr; grid-template-rows: auto 142px; min-width: 0; min-height: 198px; padding: 11px; gap: 6px; text-align: center; }
  .character-card > .asset-grid .asset-preview { width: 100%; height: 142px; }
  .character-card > .asset-grid .asset-preview img { height: 80%; max-height: 80%; }
}
@media (max-width: 620px) {
  :root { --brand-logo-height: 4.5rem; --brand-header-height: 5.5rem; }
  .site-header, main, footer { width: min(100% - 24px, 1180px); }
  .site-header { height: var(--brand-header-height); }
  .brand-logo { height: var(--brand-logo-height); }
  .header-status { display: none; }
  .hero { padding: 58px 0 44px; }
  .hero h1 { font-size: clamp(40px, 14vw, 62px); letter-spacing: -2px; }
  .hero > p { font-size: 13px; }
  .search-shell { padding: 8px; }
  .search-row { grid-template-columns: 35px 1fr; }
  .search-row input { font-size: 16px; padding-right: 8px; }
  .search-row button { grid-column: 1 / -1; width: calc(100% - 12px); margin: 0 6px 6px; }
  .search-footer { align-items: flex-start; gap: 12px; line-height: 1.5; }
  .welcome-state, .error-state { padding: 30px 25px; flex-direction: column; text-align: center; gap: 18px; }
  .floating-head { height: 140px; min-width: 140px; }
  .floating-head img { width: 140px; }
  .profile-banner { align-items: flex-start; gap: 18px; }
  .avatar-frame { width: 60px; height: 60px; }
  .player-identity { align-items: flex-start; gap: 13px; }
  .player-identity h2 { font-size: 23px; }
  .profile-actions { flex-direction: column; }
  .secondary-button { min-height: 39px; padding: 11px 13px; font-size: 9px; }
  .icon-button { width: 39px; height: 39px; }
  .character-stage > canvas { height: 420px !important; }
  .character-stage > img { height: 340px; }
  .data-list > div { grid-template-columns: 95px 1fr; gap: 10px; }
  .render-gallery { gap: 8px; padding: 12px; }
  .render-box { height: 180px; }
  .technical-content > div { grid-template-columns: 1fr; gap: 7px; }
  .history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-tile { grid-template-columns: 1fr; grid-template-rows: auto 138px; min-height: 192px; padding: 10px; gap: 6px; text-align: center; }
  .asset-preview { width: 100%; height: 138px; }
  .head-command-panel { grid-template-columns: 1fr auto; gap: 11px; margin: 0 12px 12px; }
  .head-command-panel > div { grid-column: 1 / -1; }
  .head-command-panel code { font-size: 7px; }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer > span { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
