@font-face {
  font-family: 'Boss UI';
  src: local('Aion2Yoon_EN_B'), url('vendor/fonts/gothic-a1/gothic-a1-latin-ext-bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Boss UI';
  src: local('Aion2Yoon_EN_B'), url('vendor/fonts/gothic-a1/gothic-a1-latin-bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #e9e8e0;
  background: #101210;
  font-synthesis: none;
  --muted: #969a90;
  --gold: #d6b87c;
  --line: #343830;
  --surface: #1a1d19;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; background: radial-gradient(ellipse 75% 500px at 50% -130px, #252b21 0%, #151814 52%, #101210 100%); -webkit-user-select: none; user-select: none; }
button, input, select, textarea { font: inherit; }
input, textarea { -webkit-user-select: text; user-select: text; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, textarea:focus-visible { outline: 2px solid #e0bf7f; outline-offset: 3px; }

.app-shell { max-width: 1352px; margin: 0 auto; padding: 0 56px; }
.topbar { height: 92px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #363a32; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid #665c43; background: #25271f; }
.brand-mark svg { width: 28px; stroke: var(--gold); stroke-width: 1; }
.brand-name, .brand-detail { display: block; }
.brand-name { font-size: 13px; line-height: 1.1; font-weight: 750; letter-spacing: .17em; }
.brand-detail { margin-top: 5px; color: #a4a69a; font-size: 9px; font-weight: 700; letter-spacing: .19em; }
.topbar-note { display: flex; align-items: center; gap: 9px; color: #8e9386; font-size: 9px; letter-spacing: .14em; font-weight: 700; }
.topbar-note span { width: 5px; height: 5px; border-radius: 50%; background: #9caa7f; box-shadow: 0 0 10px #9caa7f; }

main { padding-top: 67px; }
.intro { margin-bottom: 39px; }
.eyebrow, .section-kicker { display: flex; align-items: center; gap: 10px; color: #b6a277; font-size: 10px; font-weight: 750; letter-spacing: .16em; }
.eyebrow span { display: inline-block; width: 24px; height: 1px; background: #b6a277; }
h1, h2, h3, h4, p { margin: 0; }
h1 { margin-top: 16px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 4vw, 54px); line-height: 1.08; font-weight: 400; letter-spacing: -.035em; }
.title-period { color: var(--gold); }
.intro > p { margin-top: 14px; color: #a8aca1; font-size: 14px; line-height: 1.6; }
.intro > .paste-hint { margin-top: 5px; color: #c5b594; font-size: 12px; }

.workspace { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: 18px; align-items: start; }
.panel { min-width: 0; border: 1px solid #393d35; background: linear-gradient(145deg, #1c1f1b, #191b18); box-shadow: 0 16px 45px #0003; padding: 28px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.section-kicker { color: #a9966e; font-size: 9px; letter-spacing: .15em; }
.section-kicker span { width: 16px; height: 1px; background: #71664d; }
h2 { margin-top: 11px; font-family: Georgia, "Times New Roman", serif; font-size: 26px; font-weight: 400; letter-spacing: -.025em; }
.count { display: inline-grid; place-items: center; width: 23px; height: 23px; margin-left: 6px; border: 1px solid #4a4d42; border-radius: 50%; color: #bbbdb2; font-family: "Segoe UI", Arial, sans-serif; font-size: 10px; font-weight: 600; vertical-align: 3px; letter-spacing: 0; }
.heading-icon { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid #484a3d; color: #c7ae7b; }
.heading-icon svg { width: 22px; stroke: currentColor; stroke-width: 1.15; }
.discord-icon { color: #aeb3d0; }

.add-form { margin-top: 32px; }
.boss-add-form { margin-top: 18px; }
.add-form > label, .message-label { color: #a9ab9e; font-size: 9px; font-weight: 750; letter-spacing: .13em; }
.add-controls { display: flex; gap: 8px; margin-top: 9px; }
.add-controls input { flex: 1; min-width: 0; height: 46px; border: 1px solid #44483e; border-radius: 0; padding: 0 14px; color: #eee; background: #151815; font-size: 13px; }
.add-controls select { width: 130px; min-width: 0; height: 46px; border: 1px solid #44483e; border-radius: 0; padding: 0 10px; color: #d5d8cc; background: #151815; font-size: 12px; }
input::placeholder, textarea::placeholder { color: #6f746a; opacity: 1; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; border: 1px solid transparent; font-size: 12px; font-weight: 700; transition: background-color .15s, border-color .15s; }
.button-add { padding: 0 17px; color: #1b1b16; background: #d2b67d; white-space: nowrap; }
.button-add:hover { background: #e3c994; }
.button-add span { font-size: 20px; line-height: 0; font-weight: 400; }
.button-reset { min-height: 35px; padding: 0 11px; border-color: #55594b; color: #cccdbf; background: transparent; white-space: nowrap; }
.button-reset:hover:not(:disabled) { border-color: #aa9970; color: #e3c994; }
.button-reset:disabled { opacity: .45; }
.scan-status { margin-top: 18px; padding: 10px 12px; border: 1px solid #55513f; background: #25271f; color: #ded6bf; font-size: 12px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.scan-indicator { position: fixed; z-index: 10; right: 24px; bottom: 24px; display: flex; align-items: center; gap: 10px; padding: 12px 15px; border: 1px solid #665c43; background: #20231e; box-shadow: 0 8px 24px #0007; color: #e7ddc3; font-size: 12px; font-weight: 650; pointer-events: none; opacity: 0; visibility: hidden; transform: translateY(5px); transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s; }
.scan-indicator[data-active="true"] { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity .15s ease, transform .15s ease, visibility 0s; }
.scan-spinner { width: 14px; height: 14px; border: 2px solid #655e4b; border-top-color: var(--gold); border-radius: 50%; animation: scan-spin .8s linear infinite; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@keyframes scan-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .scan-indicator, .scan-indicator[data-active="true"] { transition: none; transform: none; } .scan-spinner { animation: none; } }

.boss-list { display: grid; gap: 14px; margin-top: 20px; }
.boss-list:empty { margin-top: 0; }
.map-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 30px; }
.map-title { min-width: 0; overflow-wrap: anywhere; color: #d6b87c; font-size: 12px; font-weight: 700; }
.map-bosses { display: grid; gap: 6px; }
.map-empty { padding: 9px 12px; border: 1px dashed #3b3f36; color: #858a7e; font-size: 12px; }
.empty-state { min-height: 215px; display: flex; flex-direction: column; justify-content: center; align-items: center; margin-top: 20px; border: 1px dashed #3b3f36; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border: 1px solid #464a3e; background: #20231d; }
.empty-icon svg { width: 32px; stroke: #9b9b7f; stroke-width: 1.1; }
.empty-title { color: #deded4; font-size: 13px; font-weight: 650; }
.empty-state p:last-child { margin-top: 7px; color: #858a7e; font-size: 12px; line-height: 1.6; }

.boss-card { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 10px 8px 12px; border: 1px solid #3d4138; background: #20231e; }
.boss-identity { display: flex; flex: 1 1 0; align-items: center; min-width: 0; gap: 10px; }
.boss-symbol { flex: none; color: #c5ae7d; font-size: 15px; }
.boss-details { flex: 1; min-width: 0; }
.boss-title-line { display: flex; align-items: center; gap: 7px; min-width: 0; }
.boss-title, .boss-countdown { font-family: 'Boss UI', 'Segoe UI', Arial, sans-serif; font-weight: 700; }
.boss-title { min-width: 0; overflow: hidden; color: #edede5; font-size: 14px; line-height: 17px; text-overflow: ellipsis; white-space: nowrap; }
.image-badge { flex: none; margin-left: auto; padding: 1px 5px; border: 1px solid #72d68a; color: #a2f1b3; background: #1b3825; box-shadow: 0 0 4px #5acb7840; font-size: 10px; line-height: 12px; font-weight: 750; letter-spacing: .04em; white-space: nowrap; }
.image-badge::before { content: 'IMAGE'; }
.boss-countdown { display: block; overflow: hidden; color: #aab5a6; font-size: 12px; line-height: 15px; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.remove-button, .remove-map-button, .move-map-button { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid transparent; color: #868b7f; background: transparent; }
.remove-button:hover, .remove-map-button:hover { border-color: #645549; color: #e1a692; }
.remove-button svg, .remove-map-button svg, .move-map-button svg { width: 18px; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.move-map { position: relative; flex: none; }
.move-map-button { cursor: pointer; list-style: none; }
.move-map-button::-webkit-details-marker { display: none; }
.move-map-button:hover, .move-map[open] .move-map-button { border-color: #5b5c49; color: #d6b87c; }
.move-map-menu { position: absolute; z-index: 2; top: calc(100% + 4px); right: 0; width: 190px; padding: 10px; border: 1px solid #515548; background: #20231e; box-shadow: 0 8px 20px #0008; }
.move-map-menu > span { display: block; padding: 3px 6px 7px; color: #a9ab9e; font-size: 9px; font-weight: 750; letter-spacing: .13em; }
.move-map-options { max-height: 200px; overflow-y: auto; }
.move-map-option { display: block; width: 100%; padding: 7px 6px; border: 0; background: transparent; color: #deded4; font-size: 12px; text-align: left; overflow-wrap: anywhere; }
.move-map-option:hover { background: #353a30; }
.move-map-option[aria-current="true"] { color: #d6b87c; }
.time-fields { display: flex; flex: none; align-items: center; gap: 7px; }
.time-fields label { display: flex; align-items: center; gap: 3px; }
.time-fields label > span { color: #a0a598; font-size: 10px; }
.time-input { width: 40px; height: 32px; border: 1px solid #484d41; border-radius: 0; padding: 0 3px; background: #151815; color: #f0eee5; font-size: 13px; font-variant-numeric: tabular-nums; text-align: center; }

.panel-description { margin-top: 27px; color: #a0a59a; font-size: 12px; line-height: 1.6; }
.message-wrap { margin-top: 15px; padding: 16px 16px 12px; border: 1px solid #41453b; background: #141714; }
.message-label { display: flex; justify-content: space-between; gap: 10px; color: #858b7e; font-size: 9px; }
.message-label span:last-child { color: #b8aa85; }
textarea { display: block; width: 100%; min-height: 174px; margin-top: 16px; padding: 0; border: 0; outline-offset: 5px; resize: vertical; background: transparent; color: #d9dacd; font-family: Consolas, "Courier New", monospace; font-size: 12px; line-height: 1.8; cursor: pointer; }
.message-hint { padding-top: 13px; border-top: 1px solid #30342d; color: #81877a; font-size: 11px; }
.message-hint span { margin-right: 4px; color: #b9a777; }
.button-copy { width: 100%; margin-top: 12px; color: #1a1b16; background: #d2b67d; }
.button-copy:hover:not(:disabled) { background: #e3c994; }
.button-copy:disabled { color: #81837a; background: #383c34; }
.button-copy svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.5; }
.copy-status { min-height: 16px; padding-top: 4px; color: #c8bd9f; font-size: 11px; }
.config-transfer { margin-top: 18px; padding-top: 16px; border-top: 1px solid #393d34; }
.config-transfer summary { color: #d6d8cc; font-size: 12px; font-weight: 650; cursor: pointer; }
.config-transfer > p { margin-top: 10px; color: #a0a59a; font-size: 12px; line-height: 1.6; }
.config-transfer label { display: block; margin-top: 15px; color: #a9ab9e; font-size: 9px; font-weight: 750; letter-spacing: .13em; }
.config-text { min-height: 95px; margin-top: 8px; padding: 10px; border: 1px solid #41453b; background: #141714; line-height: 1.5; cursor: text; }
.config-actions { display: flex; gap: 8px; margin-top: 10px; }
.button-config { flex: 1; min-height: 38px; padding: 0 8px; border-color: #55594b; color: #deded4; background: #242820; }
.button-config:hover { border-color: #aa9970; color: #e3c994; }
.config-transfer .config-note { color: #8f9589; font-size: 11px; }
.config-transfer .config-status { min-height: 16px; color: #c8bd9f; font-size: 11px; }
footer { display: flex; justify-content: space-between; gap: 16px; padding: 27px 0 36px; color: #777d72; font-size: 10px; }
footer span:first-child { letter-spacing: .13em; font-size: 9px; font-weight: 700; }

@media (max-width: 850px) {
  .app-shell { padding: 0 28px; }
  .workspace { grid-template-columns: 1fr; }
  .output-panel { margin-bottom: 0; }
  textarea { min-height: 145px; }
}
@media (max-width: 480px) {
  .app-shell { padding: 0 16px; }
  .scan-indicator { right: 16px; bottom: 16px; }
  .topbar { height: 76px; }
  .topbar-note { font-size: 8px; }
  main { padding-top: 45px; }
  .intro { margin-bottom: 28px; }
  .panel { padding: 20px 16px; }
  .add-controls { flex-wrap: wrap; }
  .add-controls input { flex-basis: 100%; }
  .button-add { width: 100%; }
  .boss-add-form .add-controls select, .boss-add-form .button-add { flex: 1; width: auto; }
  .boss-card { gap: 4px; padding: 7px; }
  .boss-identity { gap: 5px; }
  .boss-symbol { display: none; }
  .boss-title { font-size: 12px; }
  .boss-title-line { gap: 4px; }
  .image-badge { padding: 1px 4px; font-size: 9px; }
  .time-fields { gap: 2px; }
  .time-fields label { gap: 2px; }
  .time-input { width: 26px; font-size: 12px; }
  .remove-button, .move-map-button { width: 22px; }
  .config-actions { flex-wrap: wrap; }
  .button-config { flex-basis: 100%; }
  footer { flex-direction: column; gap: 8px; }
}
