
@font-face {
  font-family: 'Noto Serif SC';
  src: url('assets/fonts/NotoSerifSC-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'Noto Serif SC';
  src: url('assets/fonts/NotoSerifSC-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'Noto Sans SC';
  src: url('assets/fonts/NotoSansSC-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'Noto Sans SC';
  src: url('assets/fonts/NotoSansSC-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'Ma Shan Zheng';
  src: url('assets/fonts/MaShanZheng.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'Alex Brush';
  src: url('assets/fonts/AlexBrush.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'Satisfy';
  src: url('assets/fonts/Satisfy.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'Mr Dafoe';
  src: url('assets/fonts/MrDafoe.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'Kaushan Script';
  src: url('assets/fonts/KaushanScript.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'Yellowtail';
  src: url('assets/fonts/Yellowtail.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: 'Great Vibes';
  src: url('assets/fonts/GreatVibes.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}


:root {
  --ui-bg: #0b0a0f;
  --ui-panel: #14131a;
  --ui-panel-2: #1b1a23;
  --ui-line: #2a2833;
  --ui-text: #e8e4ec;
  --ui-dim: #9b95a6;
  --ui-accent: #cf4d84;
  --ui-accent-rgb: 207, 77, 132;
  --ui-accent-2: #e07aa6;
  --ui-accent-dark: #b53f70;
  --ui-ok: #5cc08a;
  --ui-warn: #e0b45c;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--ui-bg); color: var(--ui-text);
  font-family: 'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 14px; overflow: hidden;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0e0d13; }
::-webkit-scrollbar-thumb { background: #332f3d; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #443e52; }


.appbar {
  height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 18px; background: linear-gradient(180deg, #17151e, #100f16);
  border-bottom: 1px solid var(--ui-line); position: relative; z-index: 20;
}
.brand { flex: 0 0 auto; }
.appbar-actions { flex: 0 0 auto; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 34px; display: block; }
.brand h1 { font-size: 16px; margin: 0; letter-spacing: 2px; font-weight: 700; }
.brand p { margin: 2px 0 0; font-size: 10px; letter-spacing: 2px; color: var(--ui-dim); }
.appbar-actions { display: flex; align-items: center; gap: 10px; }


.share-note {
  display: none; flex: 1 1 auto; min-width: 0; text-align: center;
  font-size: 12px; letter-spacing: 3px; color: var(--ui-dim);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 0 10px; pointer-events: none;
}
body.share-mode .share-note { display: block; }
@media (max-width: 1180px) { body.share-mode .share-note { display: none; } }
.save-state { font-size: 12px; color: var(--ui-dim); margin-right: 6px; }
.save-state.ok { color: var(--ui-ok); }

.btn {
  background: var(--ui-panel-2); border: 1px solid var(--ui-line); color: var(--ui-text);
  padding: 8px 14px; border-radius: 4px; letter-spacing: 1px; transition: .15s;
}
.btn:hover { background: #262432; border-color: #3b3748; }
.btn.primary { background: linear-gradient(100deg, var(--ui-accent), var(--ui-accent-dark)); border-color: transparent; font-weight: 700; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; }
.btn.sm { padding: 4px 9px; font-size: 12px; }
.btn[disabled] { opacity: .45; pointer-events: none; }


.layout { display: flex; height: calc(100% - 62px); }
.sidebar {
  width: 428px; min-width: 428px; background: var(--ui-panel);
  border-right: 1px solid var(--ui-line); display: flex; flex-direction: column;
}
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--ui-line); background: #100f16; }
.tab {
  padding: 6px 12px; border-radius: 4px; border: 1px solid transparent;
  background: transparent; color: var(--ui-dim); letter-spacing: 1px;
}
.tab:hover { color: var(--ui-text); background: rgba(255, 255, 255, .04); }
.tab.on { background: rgba(var(--ui-accent-rgb), .16); color: #fff; border-color: rgba(var(--ui-accent-rgb), .5); }
.panels { flex: 1; overflow-y: auto; padding: 16px 16px 60px; }
.panel { display: none; }
.panel.on { display: block; }


.group { margin-bottom: 22px; }
.group > h3 {
  font-size: 12px; letter-spacing: 3px; color: var(--ui-dim); font-weight: 400;
  margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--ui-line);
  display: flex; align-items: center; justify-content: space-between;
}
.field { margin-bottom: 12px; }
.field > label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--ui-dim); margin-bottom: 6px; letter-spacing: 1px;
}
.field .val { color: var(--ui-accent-2); font-size: 12px; }
.inp, textarea.inp, select.inp {
  width: 100%; background: #0e0d14; border: 1px solid var(--ui-line);
  border-radius: 4px; padding: 8px 10px; outline: none; transition: .15s;
}
.inp:focus { border-color: rgba(var(--ui-accent-rgb), .7); box-shadow: 0 0 0 2px rgba(var(--ui-accent-rgb), .12); }
textarea.inp { resize: vertical; min-height: 74px; line-height: 1.7; }
input[type=range] { width: 100%; accent-color: var(--ui-accent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ui-text); margin-bottom: 10px; cursor: pointer; }
.check input { accent-color: var(--ui-accent); width: 15px; height: 15px; }
.hint { font-size: 11px; color: #77718a; line-height: 1.6; margin: 6px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--ui-line); background: #16151d; padding: 6px 10px;
  border-radius: 999px; font-size: 12px; letter-spacing: 1px; display: flex; align-items: center; gap: 7px;
}
.chip.on { border-color: rgba(var(--ui-accent-rgb), .8); background: rgba(var(--ui-accent-rgb), .15); }
.chip i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.chip:hover { background: #221f2b; }


.imgfield { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.imgthumb {
  width: 96px; height: 96px; flex: 0 0 96px; border: 1px solid var(--ui-line);
  border-radius: 4px; background:
    linear-gradient(45deg, #17161d 25%, transparent 25%, transparent 75%, #17161d 75%) 0 0/16px 16px,
    linear-gradient(45deg, #17161d 25%, transparent 25%, transparent 75%, #17161d 75%) 8px 8px/16px 16px,
    #100f16;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.imgthumb.tall { height: 128px; }
.imgthumb img { width: 100%; height: 100%; object-fit: contain; }
.imgthumb .none { font-size: 11px; color: #6a6478; }
.imgfield .col { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.imgfield .btnrow { display: flex; gap: 8px; flex-wrap: wrap; }


.prof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }


.fg-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: flex-start; }
.fg-label {
  flex: 0 0 30px; font-size: 11px; color: var(--ui-dim);
  letter-spacing: 1px; padding-top: 14px;
}
.fg-chips { display: flex; flex-wrap: wrap; gap: 5px; flex: 1; }
.fchip {
  width: 50px; padding: 4px 2px 3px; display: flex; flex-direction: column;
  align-items: center; gap: 2px; background: #100f16; border: 1px solid var(--ui-line);
  border-radius: 5px; color: var(--ui-dim); transition: .15s;
}
.fchip:hover { background: #191822; color: var(--ui-text); }
.fchip img { width: 32px; height: 32px; object-fit: contain; display: block; }
.fchip b { font-size: 9px; font-weight: 400; letter-spacing: .5px; white-space: nowrap; }
.fchip.on { border-color: rgba(var(--ui-accent-rgb), .9); background: rgba(var(--ui-accent-rgb), .14); color: #fff; }
.prof-chip {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 8px 4px 7px; background: #100f16; border: 1px solid var(--ui-line);
  border-radius: 6px; color: var(--ui-dim); transition: .15s;
}
.prof-chip:hover { background: #191822; color: var(--ui-text); }
.prof-chip.on { border-color: rgba(var(--ui-accent-rgb), .85); background: rgba(var(--ui-accent-rgb), .12); color: #fff; }
.prof-chip .prof-ico {
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  background: #0b0a10; border-radius: 3px; overflow: hidden;
}
.prof-chip .prof-ico img { width: 100%; height: 100%; object-fit: contain; display: block; }
.prof-chip b { font-size: 12px; font-weight: 400; letter-spacing: 1px; }


.about-hero {
  text-align: center; padding: 18px 12px 22px; margin-bottom: 18px;
  border-bottom: 1px solid var(--ui-line);
  background: radial-gradient(160px 90px at 50% 20%, rgba(var(--ui-accent-rgb), .16), transparent 75%);
}
.about-hero img { width: 150px; display: block; margin: 0 auto 12px; }
.about-hero h2 { font-size: 19px; margin: 0; letter-spacing: 3px; font-weight: 700; }
.about-hero p {
  margin: 6px 0 0; font-size: 10px; letter-spacing: 2px; color: var(--ui-dim);
}
.about-author {
  display: inline-flex; align-items: baseline; gap: 10px; margin-top: 16px;
  font-size: 12px; letter-spacing: 3px; color: var(--ui-dim);
  padding: 6px 16px; border: 1px solid rgba(var(--ui-accent-rgb), .45);
  border-radius: 999px; background: rgba(var(--ui-accent-rgb), .10);
}
.about-author strong {
  font-size: 16px; font-weight: 700; letter-spacing: 2px; color: #fff;
  text-shadow: 0 0 18px rgba(var(--ui-accent-rgb), .55);
}


.uis { position: relative; }
.uis-native { display: none; }          
.uis-btn {
  display: flex; align-items: center; gap: 8px; width: 100%;
  background: #0e0d14; border: 1px solid var(--ui-line); border-radius: 4px;
  padding: 8px 10px; color: var(--ui-text); text-align: left; transition: .15s;
}
.uis-btn:hover { border-color: #3b3748; background: #131219; }
.uis-btn:disabled { opacity: .5; pointer-events: none; }
.uis-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uis-caret {
  flex: 0 0 auto; width: 8px; height: 8px; margin-right: 2px;
  border-right: 2px solid var(--ui-dim); border-bottom: 2px solid var(--ui-dim);
  transform: rotate(45deg) translate(-2px, -2px); transition: .15s;
}
.uis-open .uis-btn { border-color: rgba(var(--ui-accent-rgb), .85); box-shadow: 0 0 0 2px rgba(var(--ui-accent-rgb), .12); }
.uis-open .uis-caret { transform: rotate(-135deg) translate(-2px, -2px); border-color: var(--ui-accent-2); }

.uis-pop {
  z-index: 200; padding: 4px; overflow-y: auto;
  overscroll-behavior: contain;   
  background: #16151d; border: 1px solid var(--ui-line); border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
}
.uis-opt {
  display: block; width: 100%; text-align: left; background: transparent; border: 0;
  border-radius: 4px; padding: 8px 10px; color: var(--ui-text); font-size: 13px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.uis-opt:hover { background: rgba(255, 255, 255, .06); }
.uis-opt.is-sel { background: rgba(var(--ui-accent-rgb), .16); color: #fff; box-shadow: inset 2px 0 0 var(--ui-accent); }


.uis-compact { display: inline-block; width: auto; }
.uis-compact .uis-btn { padding: 3px 6px; gap: 6px; font-size: 12px; }
.uis-compact .uis-caret { width: 6px; height: 6px; }


.gedit { border: 1px solid var(--ui-line); border-radius: 6px; padding: 10px; background: #100f16; margin-bottom: 12px; }
.gedit-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.gedit-head select { background: #0e0d14; border: 1px solid var(--ui-line); border-radius: 4px; padding: 3px 6px; }
.gedit-head .seg { display: flex; border: 1px solid var(--ui-line); border-radius: 4px; overflow: hidden; }
.gedit-head .seg button { background: transparent; border: 0; padding: 4px 10px; color: var(--ui-dim); font-size: 12px; }
.gedit-head .seg button.on { background: rgba(var(--ui-accent-rgb), .3); color: #fff; }
.gedit-grid { display: grid; gap: 5px; grid-template-columns: repeat(var(--cols), 34px); }
.gcell {
  width: 34px; height: 34px; background: #17161f; border: 1px solid var(--ui-line);
  border-radius: 3px; display: flex; align-items: center; justify-content: center; padding: 0;
}
.gcell.on { background: linear-gradient(145deg, rgba(var(--ui-accent-rgb), .8), rgba(var(--ui-accent-rgb), .45)); border-color: rgba(var(--ui-accent-rgb), .7); }
.gcell.marker { background: linear-gradient(145deg, var(--ui-accent-2), var(--ui-accent)); border-color: var(--ui-accent-2); }
.gcell svg { width: 60%; height: 60%; }


.skillcard { border: 1px solid var(--ui-line); border-radius: 8px; margin-bottom: 14px; background: #100f16; overflow: hidden; }
.skillcard-head {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  background: linear-gradient(100deg, rgba(var(--ui-accent-rgb), .16), transparent);
  border-bottom: 1px solid var(--ui-line);
}
.skillcard-head .idx { font-size: 12px; color: var(--ui-accent-2); letter-spacing: 1px; }
.skillcard-head .sp { flex: 1; }
.skillcard-body { padding: 12px; }
.tag-datalist-note { font-size: 11px; color: #77718a; }


.preview { flex: 1; display: flex; flex-direction: column; min-width: 0; background: #0a090e; }
.preview-bar {
  height: 46px; display: flex; align-items: center; gap: 14px; padding: 0 16px;
  border-bottom: 1px solid var(--ui-line); background: #100f16; font-size: 12px; color: var(--ui-dim);
}
.preview-bar .sp { flex: 1; }
.preview-bar select { background: #0e0d14; border: 1px solid var(--ui-line); border-radius: 4px; padding: 4px 8px; }
.preview-scroll { flex: 1; overflow: auto; padding: 26px 26px 90px; }
.preview-stage { margin: 0 auto; position: relative; }
#posterWrap { width: 1440px; transform-origin: top left; box-shadow: 0 24px 70px rgba(0, 0, 0, .7); }


.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(20px);
  background: #1c1a24; border: 1px solid var(--ui-line); color: var(--ui-text);
  padding: 12px 20px; border-radius: 6px; opacity: 0; pointer-events: none;
  transition: .25s; z-index: 100; font-size: 13px; letter-spacing: 1px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { border-color: #7a2a3a; color: #ffc9d4; }
.toast.ok { border-color: #2f6b4a; color: #c4f0d8; }


.overlay {
  position: fixed; inset: 0; background: rgba(6, 5, 9, .78); z-index: 90;
  display: none; align-items: center; justify-content: center; flex-direction: column; gap: 18px;
}
.overlay.show { display: flex; }
.spinner {
  width: 46px; height: 46px; border: 3px solid rgba(var(--ui-accent-rgb), .25);
  border-top-color: var(--ui-accent); border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.overlay p { letter-spacing: 2px; color: #cfc9d8; }


body.poster-only .appbar,
body.poster-only .sidebar,
body.poster-only .preview-bar { display: none; }
body.poster-only .layout { height: 100%; }
body.poster-only .preview-scroll { padding: 0; }
body.poster-only #posterWrap { box-shadow: none; }

@media (max-width: 1280px) {
  .sidebar { width: 372px; min-width: 372px; }
}


.cropwrap { margin-bottom: 6px; }
.cropstage {
  position: relative; width: 100%; overflow: hidden; border-radius: 6px;
  border: 1px solid var(--ui-line); background: #0b0a10; user-select: none;
  touch-action: none;
}
.cropstage > img { width: 100%; height: 100%; display: block; opacity: .55; }
.croprect {
  position: absolute; border: 2px solid var(--ui-accent);
  box-shadow: 0 0 0 2000px rgba(5, 4, 8, .55);
  cursor: move;
}
.crop-handle {
  position: absolute; width: 14px; height: 14px; background: #fff;
  border: 2px solid var(--ui-accent); border-radius: 2px;
}
.crop-handle.nw { left: -8px; top: -8px; cursor: nwse-resize; }
.crop-handle.ne { right: -8px; top: -8px; cursor: nesw-resize; }
.crop-handle.sw { left: -8px; bottom: -8px; cursor: nesw-resize; }
.crop-handle.se { right: -8px; bottom: -8px; cursor: nwse-resize; }


.earn { color: var(--ui-accent-2); border-color: rgba(var(--ui-accent-rgb), .45); }
.earn:hover { background: rgba(var(--ui-accent-rgb), .12); }
.donate-mask {
  position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center;
  background: rgba(6, 5, 9, .78); backdrop-filter: blur(3px);
}
.donate-mask[hidden] { display: none; }
.donate-box {
  width: 560px; max-width: calc(100vw - 48px); max-height: calc(100vh - 64px); overflow: auto;
  background: linear-gradient(180deg, #17151e, #100f16);
  border: 1px solid rgba(var(--ui-accent-rgb), .35); border-radius: 10px;
  padding: 28px 30px 24px; text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .6);
}
.donate-box h2 { margin: 0 0 10px; font-size: 20px; letter-spacing: 2px; }
.donate-sub { margin: 0 0 22px; font-size: 13px; line-height: 1.7; color: var(--ui-dim); }
.donate-qrs { display: flex; gap: 22px; justify-content: center; }
.donate-qrs figure { margin: 0; }
.donate-qrs img {
  width: 216px; height: 216px; object-fit: contain; display: block;
  background: #fff; border-radius: 8px; padding: 8px;
}
.donate-qrs figcaption { margin-top: 8px; font-size: 12px; letter-spacing: 2px; color: var(--ui-dim); }
.donate-tip { margin: 20px 0 18px; font-size: 11px; color: #7d7688; }
.donate-inline { display: flex; gap: 12px; margin: 10px 0; }
.donate-inline img {
  width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: 6px; padding: 4px;
  cursor: zoom-in;
}



.poster {
  --accent: #cf4d84;
  --accent-rgb: 207, 77, 132;
  --danger: #d8a848;
  --danger-rgb: 216, 168, 72;
  --hero-h: 1900px;
  --art-x: 0px;
  --art-y: 0px;
  --art-scale: 1;
  --name-size: 150px;
  --name-en-size: 96px;
  --giant-opacity: 0.9;
  --ghost-opacity: 0.5;

  position: relative;
  width: 1440px;
  margin: 0 auto;
  background: #08070b;
  color: #e9e4ea;
  font-family: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  overflow: hidden;
  user-select: none;
}

.poster * { box-sizing: border-box; }


.poster-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(1000px 820px at 72% 4%, rgba(var(--accent-rgb), 0.15), rgba(0, 0, 0, 0) 60%),
    radial-gradient(700px 560px at 10% 13%, rgba(var(--accent-rgb), 0.07), rgba(0, 0, 0, 0) 62%),
    radial-gradient(900px 900px at 84% 44%, rgba(var(--accent-rgb), 0.05), rgba(0, 0, 0, 0) 65%),
    linear-gradient(180deg, #0b0910 0%, #08070c 30%, #09080e 68%, #06050a 100%);
}
.poster-dots {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  opacity: .55;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, rgba(0, 0, 0, 0) 1.15px);
  background-size: 4px 4px;
}
.poster-cross {
  position: absolute; left: 0; right: 0; top: 0; height: var(--hero-h);
  pointer-events: none; z-index: 1; opacity: .55;
  background-image:
    repeating-linear-gradient(58deg, rgba(255, 255, 255, .05) 0 2px, rgba(0, 0, 0, 0) 2px 11px),
    repeating-linear-gradient(-58deg, rgba(255, 255, 255, .035) 0 2px, rgba(0, 0, 0, 0) 2px 11px);
}


.p-hero {
  position: relative;
  height: var(--hero-h);
  overflow: hidden;
  z-index: 2;
}
.p-mirage {
  position: absolute; right: -30px; top: 90px;
  font-family: 'Noto Serif SC', serif; font-weight: 900;
  font-size: 300px; line-height: .84; letter-spacing: 14px;
  color: rgba(var(--accent-rgb), .11);
  text-align: right; white-space: pre-line;
  z-index: 1;
}
.p-ghost, .p-art {
  position: absolute; left: 50%; bottom: -20px;
  transform-origin: bottom center;
  z-index: 2;
}
.p-ghost {
  height: 97%;
  opacity: var(--ghost-opacity);
  transform: translate(calc(-50% + var(--art-x) - 150px), calc(var(--art-y) + 10px)) scale(calc(var(--art-scale) * 1.05));
}
.p-ghost img { height: 100%; width: auto; display: block; }

.p-art {
  height: 94%;
  transform: translate(calc(-50% + var(--art-x)), var(--art-y)) scale(var(--art-scale));
  cursor: grab;
  z-index: 3;
  touch-action: none;
}
.p-art.placeholder { height: 74%; opacity: .5; }
.p-art.placeholder img { }
.p-art.dragging { cursor: grabbing; }
.p-art img { height: 100%; width: auto; display: block; pointer-events: none; }
.p-art-empty {
  position: absolute; left: 50%; top: 420px; transform: translateX(-50%);
  z-index: 4; text-align: center; pointer-events: none;
}
.p-art-empty .ph-box {
  width: 320px; height: 400px; border: 2px dashed rgba(var(--accent-rgb), .45);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; background: rgba(0, 0, 0, .25);
}
.p-art-empty .ph-box b { font-size: 22px; color: rgba(255, 255, 255, .5); font-weight: 400; }
.p-art-empty .ph-box span { font-size: 15px; letter-spacing: 3px; color: rgba(var(--accent-rgb), .8); }
.p-art-empty .ph-svg { width: 120px; opacity: .5; }
.p-hero-fade {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: linear-gradient(180deg,
    rgba(6, 5, 9, .45) 0%, rgba(6, 5, 9, 0) 24%,
    rgba(6, 5, 9, .30) 62%, rgba(7, 6, 10, .82) 92%, #08070b 100%);
}


.p-topbar {
  position: absolute; top: 0; left: 0; right: 0; height: 170px;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 20px 40px 0 58px; z-index: 8;
}
.p-logo { width: 210px; display: block; }
.p-banner {
  padding-top: 40px;
  font-size: 15px; font-weight: 500; letter-spacing: 26px;
  color: #d6d0da; text-indent: 26px;
}
.p-codeblock { text-align: right; padding-top: 6px; }
.p-code {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 30px; line-height: 1; letter-spacing: 7px; color: #f0ecf2; text-indent: 7px;
  border: 1px solid rgba(255, 255, 255, .8);
  padding: 7px 12px 7px 16px; display: inline-block;
  background: rgba(0, 0, 0, .25);
}
.p-barcode {
  height: 20px; margin-top: 8px;
  background-image:
    repeating-linear-gradient(90deg, #cfc9d4 0 1px, transparent 1px 3px, #cfc9d4 3px 5px, transparent 5px 6px, #b8b2be 6px 7px, transparent 7px 11px),
    repeating-linear-gradient(90deg, transparent 0 13px, #e2dce6 13px 15px, transparent 15px 23px, #d8d2dd 23px 26px, transparent 26px 29px),
    repeating-linear-gradient(90deg, transparent 0 37px, #9d97a4 37px 38px, transparent 38px 41px, #cfc9d4 41px 44px, transparent 44px 53px);
  opacity: .9;
}


.p-archive { position: absolute; left: 58px; top: 182px; z-index: 8; }
.p-archive-bars { display: flex; gap: 4px; margin-bottom: 12px; }
.p-archive-bars span { display: block; height: 4px; background: #6b6672; }
.p-archive-bars span:nth-child(1) { width: 92px; background: #8d8694; }
.p-archive-bars span:nth-child(2) { width: 16px; }
.p-archive-bars span:nth-child(3) { width: 8px; }
.p-archive-box {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 26px; letter-spacing: 20px; text-indent: 20px; color: #cfc9d4;
  border: 2px solid rgba(var(--accent-rgb), .42); padding: 2px 6px 2px 16px;
  background: rgba(var(--accent-rgb), .10); display: inline-block;
  text-align: center;
}
.p-archive-hatch {
  height: 20px; margin-top: 6px; width: 158px;
  background-image: repeating-linear-gradient(58deg, rgba(220, 214, 226, .55) 0 3px, rgba(0, 0, 0, 0) 3px 10px);
}


.p-identity { position: absolute; left: 90px; bottom: 100px; z-index: 8; width: 820px; }
.p-faction { width: 106px; height: 106px; margin-bottom: 23px; position: relative; }
.p-faction img { width: 100%; height: 100%; display: block; }
.p-name {
  font-family: 'Noto Serif SC', serif; font-weight: 900;
  font-size: var(--name-size); line-height: 1; letter-spacing: -6px;
  color: #fff; margin: 0; white-space: nowrap;
  
  text-shadow:
    1.7px 0 0 #fff, -1.7px 0 0 #fff, 0 1.7px 0 #fff, 0 -1.7px 0 #fff,
    0 0 45px rgba(0, 0, 0, .75);
}
.p-name-en {
  font-family: var(--sign-font, 'Satisfy'), cursive;
  font-size: var(--name-en-size); line-height: .86;
  color: var(--sign-color, var(--accent));
  margin: -82px 0 0 80px;
  position: relative; top: 33px; left: 0;
  
  transform: rotate(-3.2deg) skewX(-5deg) scaleX(var(--sign-scale-x, 1)) scaleY(.86);
  transform-origin: left center;
  white-space: nowrap;
  
  text-shadow: 0 0 26px rgba(0, 0, 0, .5);
}

.p-name-en.is-img { width: 482px; }
.p-name-en.is-img img { width: 100%; height: auto; display: block; }

.p-cv { display: flex; align-items: baseline; gap: 26px; margin-top: 36px; }
.p-cv-label {
  font-family: 'Noto Serif SC', serif; font-weight: 400;
  font-size: 50px; letter-spacing: 5px; color: #e6e0ea;
}
.p-cv-name {
  font-family: 'Noto Serif SC', serif; font-weight: 900;
  font-size: 50px; letter-spacing: 0; color: #fff;
}
.p-cv-bar { width: 108px; height: 14px; background: var(--accent); margin-top: 16px; }


.p-danger {
  position: absolute; right: 86px; bottom: 110px; width: 190px; height: 175px;
  z-index: 8; text-align: center;
}

.p-danger.official { bottom: 108px; height: 190px; }
.p-db-img { width: 100%; height: 100%; display: block; }
.p-db-corner { position: absolute; width: 28px; height: 28px; border: 3px solid var(--danger); opacity: .9; }
.p-db-corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.p-db-corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.p-db-corner.bl { bottom: 26px; left: 0; border-right: 0; border-top: 0; }
.p-db-corner.br { bottom: 26px; right: 0; border-left: 0; border-top: 0; }
.p-db-corner::after {
  content: ''; position: absolute; width: 9px; height: 9px;
  background: var(--danger); opacity: .95;
}
.p-db-corner.tl::after { top: -6px; left: -6px; }
.p-db-corner.tr::after { top: -6px; right: -6px; }
.p-db-corner.bl::after { bottom: -6px; left: -6px; }
.p-db-corner.br::after { bottom: -6px; right: -6px; }
.p-db-diamond {
  position: absolute; left: 43px; top: 22px; width: 104px; height: 104px;
  border: 2px solid rgba(var(--danger-rgb), .55);
  transform: rotate(45deg);
  background: linear-gradient(135deg, rgba(var(--danger-rgb), .10), rgba(0, 0, 0, 0) 65%);
}
.p-db-diamond::after {
  content: ''; position: absolute; inset: 10px;
  border: 1px dashed rgba(var(--danger-rgb), .45);
}
.p-db-char {
  position: absolute; left: 0; right: 0; top: -6px;
  font-family: 'Ma Shan Zheng', 'Noto Serif SC', serif;
  font-size: 132px; line-height: 1.16; color: var(--danger);
  text-shadow: 0 0 26px rgba(var(--danger-rgb), .75), 0 0 70px rgba(var(--danger-rgb), .35);
}
.p-db-star {
  position: absolute; width: 13px; height: 13px; background: var(--danger);
  transform: rotate(45deg); opacity: .9;
  box-shadow: 0 0 16px rgba(var(--danger-rgb), .85);
}
.p-db-star.s1 { left: 4px; top: 56px; }
.p-db-star.s2 { right: 4px; top: 56px; }
.p-db-star.s3 { left: 60px; top: -2px; width: 9px; height: 9px; }
.p-db-star.s4 { left: 60px; bottom: 44px; width: 9px; height: 9px; }
.p-db-label {
  position: absolute; left: 10px; right: 10px; bottom: 2px;
  font-size: 17px; letter-spacing: 4px; text-indent: 4px;
  color: var(--danger); padding: 3px 12px 4px;
}
.p-db-label::before, .p-db-label::after {
  content: ''; position: absolute; top: 1px; bottom: 1px; width: 4px;
  background: var(--danger); opacity: .95;
}
.p-db-label::before { left: 0; }
.p-db-label::after { right: 0; }

.p-danger::after {
  content: ''; position: absolute; left: 94px; top: 2px; width: 2px; height: 120px;
  background-image: linear-gradient(180deg, rgba(var(--danger-rgb), .75) 0 4px, rgba(0, 0, 0, 0) 4px 9px);
}


.p-hero-bars { position: absolute; left: 0; right: 0; bottom: 0; z-index: 9; }
.p-bar-thick { height: 26px; background: var(--accent); margin: 0 97px 0 87px; }
.p-bar-thin { height: 11px; background: var(--accent); margin: 20px 97px 0 87px; opacity: .92; }


.p-sheet { position: relative; z-index: 3; padding: 0 97px 0 87px; }
.p-sheet-inner {
  position: relative;
  border-left: 3px solid rgba(var(--accent-rgb), .55);
  border-right: 3px solid rgba(var(--accent-rgb), .55);
  border-top: 2px solid rgba(var(--accent-rgb), .35);
  border-bottom: 2px solid rgba(var(--accent-rgb), .45);
  background:
    repeating-linear-gradient(58deg, rgba(255, 255, 255, .022) 0 2px, rgba(0, 0, 0, 0) 2px 12px),
    linear-gradient(180deg, rgba(24, 21, 28, .93), rgba(15, 14, 19, .95));
  padding: 35px 40px 40px 38px;
}

.p-row {
  display: grid; grid-template-columns: 210px 1fr;
  column-gap: 28px; margin-bottom: 48px; align-items: start;
}
.p-row:last-child { margin-bottom: 0; }
.p-row-attack { grid-template-columns: 210px 1fr 355px; align-items: center; margin-bottom: 14px; }

.p-cell-label { padding-top: 2px; }
.p-row-attack .p-cell-label { margin-top: 29px; }
.p-label {
  display: inline-block; white-space: nowrap;
  font-size: 47px; font-weight: 700; letter-spacing: 0; color: #fff;
  padding: 3px 10px 6px; line-height: 1.1;
  background: linear-gradient(100deg, var(--accent) 0%, rgba(var(--accent-rgb), .82) 100%);
}
.p-label-en {
  display: block; margin-top: 7px; white-space: nowrap; width: max-content;
  font-size: 13px; font-weight: 700; letter-spacing: 3px;
  color: #f3e3ec;
}

.term-def { font-style: italic; }

.p-text { font-size: 40px; line-height: 1.3; color: #e6e0e7; }

.p-text .hl {
  background-image: linear-gradient(#e6e0e7, #e6e0e7);
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 2px);
  background-size: 100% 4px;
}
.poster.no-ul .hl { background-image: none !important; }
.p-note {
  color: rgba(var(--accent-rgb), 1); font-size: 37px; line-height: 1.06;
  margin-top: 16px;
}
.p-rule {
  position: relative; height: 5px; margin-top: 58px; margin-bottom: 18px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), .45), rgba(var(--accent-rgb), .75))
    no-repeat left center / calc(100% - 150px) 100%;
}
.p-rule::after {
  content: ''; position: absolute; right: 0; top: -1px; width: 138px; height: 7px;
  background: repeating-linear-gradient(90deg, rgba(var(--accent-rgb), .95) 0 14px, rgba(0, 0, 0, 0) 14px 23px);
}
.p-note .hl {
  background-image: linear-gradient(rgba(var(--accent-rgb), 1), rgba(var(--accent-rgb), 1));
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 2px);
  background-size: 100% 4px;
}
.p-accent-text { color: var(--accent); }

.p-cell-range { display: flex; align-items: center; padding-left: 2px; }
.p-cell-emblem {
  border-left: 2px solid rgba(var(--accent-rgb), .35);
  display: flex; align-items: center; justify-content: center;
  align-self: stretch; min-height: 268px; padding: 4px 0 4px 24px;
}
.p-emblem-img { width: 268px; height: 268px; display: block; }


.rgrid { display: grid; gap: var(--cell-gap, 16px); grid-template-columns: repeat(var(--cols), var(--cell, 64px)); }

.rgrid .rcell {
  width: var(--cell, 64px); height: var(--cell, 64px);
  background: none; border: 0;
  display: flex; align-items: center; justify-content: center;
}
.rgrid .rcell.on { background: rgba(var(--accent-rgb), .44); }
.rgrid .rcell.marker { background: rgba(var(--accent-rgb), .95); }
.rgrid .rcell svg { height: 84%; width: auto; display: block; }
.rgrid.mini .rcell svg { height: 58%; }
.rgrid.mini { --cell: 56px; --cell-gap: 10px; }

.p-skill-range { display: flex; align-items: center; gap: 30px; margin-top: 30px; }
.p-skill-range .rs-label { font-size: 32px; color: var(--accent); letter-spacing: 2px; }
.p-skill-range .rs-arrow {
  font-size: 38px; color: var(--accent); letter-spacing: 4px; line-height: 1;
}


.p-skills { margin-top: 80px; padding-left: 18px; }
.p-skill { display: grid; grid-template-columns: 153px 1fr; column-gap: 55px; margin-bottom: 100px; }
.p-skill:last-child { margin-bottom: 0; }
.p-skill-icon {
  position: relative; width: 153px; height: 153px; padding: 6px;
  border: 3px solid rgba(var(--accent-rgb), .85);
  background: rgba(255, 255, 255, .04);
}
.p-skill-icon img { width: 100%; height: 100%; display: block; }
.p-skill-icon::before, .p-skill-icon::after {
  content: ''; position: absolute; width: 14px; height: 14px; background: var(--accent);
}
.p-skill-icon::before { top: -4px; left: -4px; }
.p-skill-icon::after { bottom: -4px; right: -4px; }
.p-skill-inner { border: 1px solid rgba(255, 255, 255, .22); height: 100%; overflow: hidden; }
.p-skill-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.p-skill-name {
  font-size: 46px; font-weight: 700; letter-spacing: 2px; color: #fff; margin: 0;
}
.p-tag {
  display: inline-block; font-size: 21px; color: #fff; letter-spacing: 2px;
  background: var(--accent); padding: 4px 14px 5px; line-height: 1.15;
}
.p-skill-desc { font-size: 40px; line-height: 1.3; color: #e6e0e7; margin: 16px 0 0; }
.p-skill-desc .hl {
  background-image: linear-gradient(#e6e0e7, #e6e0e7);
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 2px);
  background-size: 100% 4px;
}


.p-path {
  display: flex; align-items: center; gap: 30px;
  margin: 84px 0 83px;
}
.p-path-line-l { flex: 0 0 220px; height: 9px; background: var(--accent); }
.p-path-text {
  font-size: 21px; letter-spacing: 11px; color: var(--accent); white-space: nowrap;
}
.p-path-line-r { flex: 1; height: 3px; background: linear-gradient(90deg, rgba(var(--accent-rgb), .9), rgba(var(--accent-rgb), .12)); }


.p-shackle { display: grid; grid-template-columns: 210px 1fr; column-gap: 38px; align-items: start; }
.p-shackle-av { width: 210px; }
.p-shackle-av img { width: 100%; display: block; }
.p-shackle-title {
  display: inline-block; font-size: 46px; font-weight: 700; letter-spacing: 2px; color: #fff;
  background: var(--accent); padding: 6px 26px 9px; line-height: 1.1;
}
.p-shackle-desc { font-size: 40px; line-height: 1.4; color: #e6e0e7; margin-top: 30px; }
.p-shackle-desc .hl {
  background-image: linear-gradient(#e6e0e7, #e6e0e7);
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 2px);
  background-size: 100% 4px;
}


.p-endline { display: flex; align-items: center; gap: 12px; margin-top: 70px; }
.p-endline-bar { flex: 1; height: 6px; background: linear-gradient(90deg, rgba(var(--accent-rgb), .15), rgba(var(--accent-rgb), .75)); }
.p-endline-dots { display: flex; gap: 12px; }
.p-endline-dots i { display: block; width: 18px; height: 10px; background: rgba(var(--accent-rgb), .62); }


.p-sidetext {
  position: absolute; right: 6px; top: -560px;
  transform: rotate(90deg); transform-origin: right top;
  font-size: 15px; letter-spacing: 11px; color: rgba(var(--accent-rgb), .75);
  white-space: nowrap;
}


.p-bottom { position: relative; z-index: 3; margin-top: 41px; }
.p-bottom-hatch {
  height: 35px;
  background-image: repeating-linear-gradient(58deg, rgba(var(--accent-rgb), .8) 0 2px, rgba(0, 0, 0, 0) 2px 9px);
  opacity: .9;
}
.p-giant { padding: 10px 0 4px; }
.p-giant img { width: 100%; display: block; opacity: var(--giant-opacity); }
.p-footer {
  height: 181px; background: #050407;
  border-top: 1px solid rgba(255, 255, 255, .07);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 58px;
}
.p-footer-left { display: flex; align-items: center; gap: 22px; }
.p-seal { width: 86px; height: 86px; }
.p-foot-meta { font-size: 15px; letter-spacing: 6px; color: #cfc9d4; }
.p-foot-meta small {
  display: block; margin-top: 8px; width: 300px;
  font-size: 5px; line-height: 1.7; letter-spacing: 1px; color: #6d6874;
}
.p-footer-mid { font-size: 22px; letter-spacing: 2px; color: #b9b3bf; }
.p-footer-right { text-align: right; display: flex; align-items: center; gap: 18px; }
.p-confidential { font-size: 8px; letter-spacing: 3px; color: #8d8794; }
.p-confidential b { display: block; font-size: 15px; font-weight: 400; letter-spacing: 2px; color: #cfc9d4; margin-bottom: 6px; }
.p-conf-lines { width: 178px; margin-top: 7px; }
.p-conf-lines i { display: block; height: 3px; background: #3b3743; margin-bottom: 3px; }
.p-conf-lines i:nth-child(2) { width: 92%; }
.p-conf-lines i:nth-child(3) { width: 74%; }
.p-conf-lines i:nth-child(4) { width: 86%; }
.p-tri { width: 64px; height: 64px; }

.p-share-line {
  padding: 16px 0 20px; background: #050407; text-align: center;
  font-size: 15px; letter-spacing: 4px; color: rgba(255, 255, 255, .38);
}
