@font-face { font-family: "Minecraft Editor"; src: url("font/minecraft.ttf") format("truetype"); font-display: swap; }
:root { color-scheme: dark; --bg: #000; --panel: #000; --line: #ffffff20; --text: #fff; --muted: #aaa; --accent: #fff; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--text); background: var(--bg); font: 14px/1.65 "Minecraft Editor", "Trebuchet MS", sans-serif; }
button, input, select, textarea { font: inherit; }
button, a, summary, input[type="file"], input[type="range"], input[type="color"] { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button, a, input, select, textarea, summary { touch-action: manipulation; }
a { color: inherit; }
button { color: var(--text); }
button:disabled { cursor: wait; opacity: 0.55; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: none; border-color: #ffffffb3; box-shadow: 0 0 0 3px #ffffff14; }
input, textarea, select { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #ffffff26; border-radius: 7px; background: #000; color: var(--text); }
input[type="range"] { min-height: 30px; padding: 0; accent-color: var(--accent); background: transparent; box-shadow: none; }
input[type="color"] { height: 44px; padding: 5px; }
input[type="checkbox"] { flex: 0 0 17px; width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
input[type="file"] { border: 0; background: transparent; padding: 4px 0; font-size: 11px; }
input[type="file"]::file-selector-button { padding: 7px 10px; margin-right: 8px; color: #fff; border: 1px solid #ffffff35; border-radius: 5px; background: #ffffff0b; font: inherit; cursor: pointer; }
textarea { min-height: 110px; resize: vertical; }
select { min-height: 44px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -0.7px; }
h2 { margin-bottom: 22px; font-size: 16px; font-weight: 600; }
h3 { font-size: 13px; font-weight: 600; }
.hidden, [hidden] { display: none !important; }
.muted { color: var(--muted); }
.hint { display: block; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.6; }
.eyebrow { display: block; margin-bottom: 8px; color: var(--muted); font-size: 10px; line-height: 1.7; letter-spacing: 0.05em; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.wide { grid-column: 1 / -1; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 70px; padding: 15px 30px; border-bottom: 1px solid var(--line); background: #000; }
.brand { display: flex; align-items: baseline; color: var(--text); font-size: 21px; font-weight: 700; text-decoration: none; letter-spacing: -1px; }
.brand > span { color: var(--muted); }
.brand > small { margin-left: 18px; color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: 0; }
.account-controls { font-size: 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 9px 14px; border: 1px solid #ffffff35; border-radius: 7px; background: #ffffff06; color: #fff; text-decoration: none; font-size: 12px; font-weight: 600; transition: background 0.15s, border-color 0.15s; }
.button:hover { border-color: #ffffff3b; background: #ffffff10; }
.button.primary { border-color: #fff; background: #fff; color: #000; }
.button.primary:hover { border-color: #ddd; background: #ddd; }
.button.small { min-height: 34px; padding: 6px 12px; font-size: 11px; }
.button.danger { color: #fff; border-color: #ffffff55; background: #000; }
.text-button { display: inline-block; border: 0; padding: 6px 0; color: #d5d5d5; background: none; text-decoration: none; font-size: 11px; white-space: nowrap; }
.text-button:hover { color: var(--accent); }
.workspace { display: grid; grid-template-columns: 185px minmax(340px, 1fr) minmax(310px, 0.8fr); align-items: start; gap: 22px; width: min(1380px, 100%); margin: auto; padding: 30px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.auth-panel { display: none; }
.auth-locked .topbar { position: absolute; inset: 0 0 auto; border: 0; padding: 24px 30px; }
.auth-locked .brand > small { display: none; }
.auth-locked .workspace { grid-template-columns: minmax(0, 340px); justify-content: center; align-content: center; min-height: 100svh; padding: 100px 24px 60px; }
.auth-locked .auth-panel { display: block; padding: 0; border: 0; border-radius: 0; }
.auth-locked .requires-auth { display: none !important; }
.account-load-state { padding: 22px; }
.account-load-state .status { margin-bottom: 16px; }
.account-unavailable .editor-panel .page-address, .account-unavailable .editor-panel .published-banner, .account-unavailable #editorForm, .account-unavailable .editor-panel .settings-section, .account-unavailable #editorActions { display: none !important; }
.account-unavailable .preview-panel { visibility: hidden; }
.auth-intro h1 { margin-bottom: 28px; font-size: 27px; line-height: 1.3; letter-spacing: -1px; text-align: center; }
.auth-intro p { font-size: 12px; line-height: 1.9; margin-bottom: 27px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; margin-bottom: 25px; border: 1px solid #ffffff14; border-radius: 10px; background: #060606; }
.auth-tabs button { min-height: 35px; border: 0; border-radius: 7px; color: #777; background: transparent; font-size: 11px; }
.auth-tabs button.active { color: #000; background: #fff; }
.auth-form { display: flex; flex-direction: column; }
.auth-form .field { color: #aaa; font-size: 11px; gap: 8px; margin-bottom: 18px; }
.auth-form input { min-height: 49px; border-color: #ffffff16; border-radius: 10px; background: #080808; padding: 13px 14px; }
.auth-form .hint { font-size: 9px; color: #686868; }
.auth-form .status { margin: 14px 0 0; font-size: 10px; }
.auth-form .status:empty { display: none; }
.auth-submit { width: 100%; min-height: 46px; margin-top: 5px; border-radius: 10px; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 83px; }
.password-eye { position: absolute; right: 9px; top: 0; bottom: 0; border: 0; color: var(--muted); background: transparent; font-size: 10px; }
.field { display: flex; min-width: 0; flex-direction: column; gap: 7px; margin-bottom: 19px; color: #f5f5f5; font-size: 12px; font-weight: 500; }
.decoration-settings { border: 1px solid #ffffff18; border-radius: 12px; margin: 14px 0 24px; padding: 15px; }
.decoration-settings > summary { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; list-style: none; }
.decoration-settings > summary > span { color: #777; font-size: 10px; }
.decoration-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 17px 0 12px; }
.decoration-option { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 10px 4px; border: 1px solid #ffffff12; border-radius: 10px; background: #050505; font-size: 9px; line-height: 1.4; }
.decoration-option:hover { background: #0c0c0c; border-color: #ffffff40; }
.decoration-option.selected { background: #101010; border-color: #fff; }
.decoration-preview { position: relative; display: block; width: 56px; height: 56px; }
.decoration-preview > img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.decoration-preview > .decoration-art { position: absolute; inset: -10%; width: 120%; height: 120%; border-radius: 0; }
.decoration-mode { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; min-width: 22px; height: 22px; border: 1px solid #ffffff35; border-radius: 6px; background: #111; font-size: 9px; }
.social-editor { display: grid; gap: 8px; margin-bottom: 24px; }
.social-field { min-width: 0; border: 1px solid #ffffff15; border-radius: 10px; background: #030303; }
.social-field[open], .social-field.connected { border-color: #ffffff35; }
.social-field > summary { display: flex; align-items: center; gap: 11px; padding: 14px; list-style: none; font-size: 11px; }
.social-field > summary::-webkit-details-marker, .decoration-settings > summary::-webkit-details-marker { display: none; }
.social-field > summary > img { width: 20px; height: 20px; object-fit: contain; filter: drop-shadow(0 0 5px #ffffff70); }
.social-field > summary > small { margin-left: auto; color: #707070; font-size: 9px; }
.social-field.connected > summary > small { color: #ddd; }
.social-field-body { padding: 2px 14px 12px; }
.social-field-body .field { margin-bottom: 5px; font-size: 10px; }
.social-field-body input { font-size: 11px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.account-summary { display: flex; align-items: center; gap: 10px; padding: 14px 12px; margin-bottom: 20px; overflow: hidden; }
.account-summary > div { min-width: 0; }
.account-summary strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.account-avatar { flex: 0 0 33px; width: 33px; height: 33px; object-fit: cover; border-radius: 50%; clip-path: circle(50%); background: #ffffff08; }
.settings-nav { display: grid; gap: 5px; }
.nav-button { display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 10px 12px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #aaa; font-size: 12px; text-align: left; }
.nav-button > span { color: #888; font-size: 9px; }
.nav-button:hover { color: var(--text); background: #ffffff04; }
.nav-button.active { border-color: #ffffff45; background: #ffffff0c; color: #fff; }
.nav-button.active > span { color: #fff; }
.sidebar-note { margin-top: 30px; padding: 0 12px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.live-dot { display: inline-block; flex: 0 0 auto; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: var(--accent); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 24px 24px 20px; }
.draft-state { color: var(--muted); font-size: 10px; text-align: right; }
.draft-state.unsaved { color: #fff; }
.page-address { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 11px 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #000; }
#pageAddress { margin-right: auto; color: #e0e0e0; font-size: 10px; overflow-wrap: anywhere; }
#pageAddress[href]:hover { color: var(--accent); }
#pageAddress[aria-disabled="true"] { text-decoration: none; }
.published-banner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 12px 24px; border-bottom: 1px solid var(--line); background: #ffffff05; }
.published-banner > strong { color: #fff; font-size: 11px; font-weight: 500; }
.settings-section { padding: 24px 24px 8px; }
.upload-card { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 13px; margin-bottom: 12px; border: 1px dashed #ffffff35; border-radius: 8px; background: #000; }
.upload-details { min-width: 0; flex: 1; }
.upload-details > label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 500; }
.upload-details input { display: block; }
.avatar-thumbnail { flex: 0 0 52px; width: 52px; height: 52px; object-fit: cover; border-radius: 50%; clip-path: circle(50%); }
.cover-thumbnail { flex: 0 0 43px; width: 43px; height: 43px; object-fit: cover; border-radius: 5px; }
.upload-card > .text-button { align-self: flex-start; }
.url-details { margin: 0 0 22px; color: var(--muted); font-size: 11px; }
.url-details summary { margin-bottom: 12px; }
.url-details .field { margin: 12px 0; }
.range-field { position: relative; }
.range-field output { position: absolute; right: 0; color: #ddd; font-size: 11px; }
.section-description { margin: -9px 0 23px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.checkbox-field { display: flex; align-items: center; gap: 10px; margin: 22px 0; color: #eee; font-size: 12px; }
.settings-group { margin: 8px 0 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.settings-group > h3 { margin-bottom: 15px; color: #fff; }
.settings-group > .checkbox-field:first-of-type { margin-top: 12px; }
.font-file-icon { display: grid; place-items: center; flex: 0 0 43px; width: 43px; height: 43px; border: 1px solid #ffffff35; border-radius: 7px; color: #fff; font-size: 18px; }
.badge-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.badge-picker legend { margin-bottom: 8px; padding: 0; font-size: 12px; }
.badge-picker > .hint { margin-bottom: 12px; }
.badge-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 8px; }
.badge-options label { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 7px; color: #ccc; background: #000; font-size: 11px; cursor: pointer; }
.badge-options label:has(input:checked) { border-color: #ffffff90; background: #ffffff0b; color: #fff; }
.badge-options label:focus-within { outline: 2px solid #fff; outline-offset: 2px; }
.badge-options label > span { min-width: 14px; text-align: center; font-size: 16px; }
.discord-join-note { margin-bottom: 22px; padding: 15px; border: 1px solid #ffffff35; border-radius: 8px; background: #ffffff05; }
.discord-join-note p { margin-bottom: 12px; color: #ddd; font-size: 12px; line-height: 1.9; }
.discord-join-note .button { padding-inline: 13px; }
#discordSyncHint { margin: -8px 0 22px; padding-left: 10px; border-left: 2px solid #ffffff60; }
.toggle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 12px; margin: 22px 0; }
.toggle-grid .checkbox-field { margin: 0; align-items: flex-start; }
.toggle-grid input { margin-top: 2px; }
.editor-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 20px 24px; margin-top: 6px; border-top: 1px solid var(--line); }
.status { min-height: 18px; margin: 12px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.status.error { color: #fff; font-weight: 700; }
.status.ok { color: #e5e5e5; }
.editor-actions .status { margin: 0; }
.preview-panel { position: sticky; top: 24px; overflow: hidden; }
.preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.preview-heading h2 { margin: 0; font-size: 12px; }
.preview-badge { display: inline-flex; align-items: center; font-size: 9px; color: var(--muted); }
#previewFrame { display: block; width: 100%; height: 620px; border: 0; background: #000; }
.preview-footer { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 6px; min-height: 58px; padding: 12px 16px; border-top: 1px solid var(--line); }
.preview-footer .hint { font-size: 10px; }
.danger-zone { margin: 30px 0 15px; padding-top: 22px; border-top: 1px solid var(--line); }
.danger-zone p { margin-bottom: 13px; }
.toast { position: fixed; bottom: 24px; left: 50%; z-index: 10; max-width: calc(100vw - 32px); padding: 12px 18px; border: 1px solid #ffffff55; border-radius: 8px; background: #000; color: #fff; font-size: 12px; text-align: center; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1500px) { #previewFrame { height: 690px; } }
@media (max-width: 1120px) { .workspace { grid-template-columns: 155px minmax(300px, 1fr) minmax(270px, 0.8fr); gap: 15px; padding: 22px; } .settings-section, .panel-heading { padding-inline: 18px; } .editor-actions { padding: 18px; grid-template-columns: 1fr; } .page-address { padding-inline: 18px; } .upload-card { flex-wrap: wrap; } .upload-card .upload-details { flex-basis: 150px; } .form-grid { grid-template-columns: 1fr; } }
@media (max-width: 920px) { .workspace { grid-template-columns: minmax(0, 1fr) minmax(270px, 0.8fr); } .sidebar { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; min-width: 0; } .account-summary { margin: 0; min-width: 150px; } .settings-nav { display: flex; flex: 1; flex-wrap: wrap; gap: 3px; } .nav-button { gap: 6px; padding-inline: 9px; } .sidebar-note { display: none; } .nav-button > span { display: none; } }
@media (max-width: 660px) { .topbar { padding: 14px 16px; min-height: 65px; } .brand > small { display: none; } .workspace { grid-template-columns: minmax(0, 1fr); padding: 16px 12px 35px; gap: 15px; } .sidebar { flex-direction: column; align-items: stretch; gap: 14px; } .account-summary { padding: 11px 14px; } .settings-nav { gap: 4px; justify-content: space-between; } .nav-button { flex: 1; justify-content: center; font-size: 10px; padding: 8px 5px; min-height: 42px; } .preview-panel { position: static; } .panel-heading { padding: 20px 18px; } .settings-section { padding: 21px 18px 5px; } .editor-actions { grid-template-columns: 1fr 1fr; } .editor-actions .button { font-size: 10px; padding-inline: 8px; } #previewFrame { height: 600px; } .auth-locked .auth-panel { padding: 0; } .auth-intro h1 { font-size: 30px; } input, select, textarea { font-size: 16px; } .upload-card { padding: 12px; } .account-controls { gap: 8px; font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

@media (max-width: 460px) { .decoration-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.effects-shortcut { display: flex; align-items: center; gap: 12px; width: 100%; margin-bottom: 24px; padding: 16px; border: 1px solid #ffffff40; border-radius: 12px; background: linear-gradient(120deg,#141414,#030303); text-align: left; }
.effects-shortcut-icon { font: 32px/1 sans-serif; filter: drop-shadow(0 0 8px #ffffff90); }
.effects-shortcut > span:nth-child(2) { flex: 1; min-width: 0; }
.effects-shortcut strong, .effects-shortcut small { display: block; font-size: 10px; line-height: 1.6; }
.effects-shortcut small { margin-top: 5px; color: #999; font-size: 9px; }
.effects-heading { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: start; }
.effects-heading h2 { margin-bottom: 8px; }
.effect-demo { display: grid; place-items: center; min-height: 125px; padding: 22px 10px; margin-bottom: 24px; border: 1px solid #ffffff20; border-radius: 12px; background: radial-gradient(ellipse at center,#181818,transparent 70%); overflow: hidden; }
.effect-demo > span { display: inline-block; font-size: 27px; max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.decoration-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.decoration-heading h3 { margin: 0; font-size: 12px; }
.decoration-heading > span { color: #aaa; font-size: 10px; }
.decoration-avatar-placeholder { display: block; width: 100%; height: 100%; border: 1px solid #ffffff25; border-radius: 50%; background: radial-gradient(circle at 50% 35%,#bbb 0 14%,transparent 15%),radial-gradient(ellipse at 50% 100%,#777 0 35%,transparent 36%),#202020; }
@media (max-width: 660px) { .settings-nav .nav-button { flex: 1 0 28%; } .panel-heading { flex-wrap: wrap; } .panel-heading h1 { font-size: 22px; } }
.music-library { padding: 18px; border: 1px solid #ffffff25; border-radius: 12px; margin-bottom: 24px; background: #050505; }
.music-library h3 { margin-bottom: 7px; }
.library-import { display: flex; gap: 8px; margin-top: 14px; }
.library-import input { flex: 1; min-width: 0; font-size: 11px; }
.library-import button { flex: 0 0 auto; font-size: 10px; padding-inline: 10px; }
.music-library .status { font-size: 10px; }
.library-list { padding: 0; margin: 0; list-style: none; display: grid; gap: 7px; max-height: 330px; overflow-y: auto; }
.library-list > li { display: flex; min-width: 0; gap: 6px; }
.library-track { display: block; flex: 1; min-width: 0; padding: 12px; border: 1px solid #ffffff18; border-radius: 8px; background: #080808; text-align: left; }
.library-track.selected { border-color: #fff; }
.library-track strong, .library-track small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; line-height: 1.7; }
.library-track small { color: #888; font-size: 9px; }
.library-remove { flex: 0 0 25px; padding: 0; background: transparent; border: 0; color: #888; font: 20px/1 sans-serif; }
