@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Averia+Libre:ital,wght@0,300;0,400;0,700;1,300;1,400;1,700&family=Climate+Crisis:YEAR@1979&family=Dela+Gothic+One&family=Homemade+Apple&family=Libre+Barcode+39&family=Pixelify+Sans:wght@400..700&display=swap');
@import url('https://cdn.jsdelivr.net/gh/fonts-archive/Galmuri7/Galmuri7.css');
@import url('https://cdn.jsdelivr.net/gh/fonts-archive/Galmuri9/Galmuri9.css');
@import url('https://cdn.jsdelivr.net/gh/fonts-archive/Galmuri11/Galmuri11.css');
@import url('https://cdn.jsdelivr.net/gh/fonts-archive/Galmuri14/Galmuri14.css');
@font-face {
    font-family: 'Freesentation';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-5Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Paperlogy';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-4Regular.woff2') format('woff2');
    font-weight: 500;
}
@font-face {
    font-family: 'BBH Sans Bartle';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url(https://cdn.jsdelivr.net/fontsource/fonts/bbh-sans-bartle@latest/latin-400-normal.woff2) format('woff2');
}
@font-face {
    font-family: 'ClimateCrisisHangulVf';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2212@1.0/ClimateCrisisKRVF.woff2') format('woff2');
    font-weight: normal;
    font-display: swap;
}

:root {
    --skin-base-color: #f0f0f0;
    --skin-text-color: #1a1a1a;
    --skin-point-color: #ff3366;
}

.skin-board * { box-sizing: border-box; }

.skin-board {
    position: relative;
    color: var(--skin-text-color);
    font-family: 'Freesentation', 'Gulim', sans-serif;
    font-weight: 500;
    min-height: 100vh;
    padding-bottom: 80px;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 20px;
}
.dash-title-wrap { position: relative; }
.dash-title {
    font-family: 'Dela Gothic One', 'BBH Sans Bartle', 'Freesentation';
    font-size: 48px;
    letter-spacing: -2px;
    margin: 0;
    transform: skewX(-5deg);
    position: relative;
    z-index: 2;
}
.dash-title-sub {
font-family: homemade apple;
    font-size: 72px;
    position: absolute;
    top: 0px;
    left: -10px;
    opacity: 0.15;
    transform: rotate(-3deg);
    white-space: nowrap;
    z-index: 3;
    pointer-events: none;
    color: var(--skin-base-color);
}
.dash-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.dash-subtitle {
    font-size: 12px;
    font-family: 'Gulim', sans-serif;
}

.dark-switch {
    position: relative;
    width: 40px;
    height: 20px;
    cursor: pointer;
}
.dark-switch input { display: none; }
.switch-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--skin-text-color);
    transition: .3s;
}
.switch-slider:before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2px;
    bottom: 2px;
    background: var(--skin-base-color);
    transition: .3s;
}
.dark-switch input:checked + .switch-slider:before {
    transform: translateX(20px);
}

.dash-write-area { padding: 30px 20px; }
.bubble-wrap {
    display: flex;
    align-items: flex-end;
    gap: 0;
}
.bubble-box {
    flex: 1;
    position: relative;
}
.bubble-content {
    background: var(--skin-text-color);
    color: var(--skin-base-color);
    padding: 15px;
}
.bubble-content textarea {
    width: 100%;
    height: 100px;
    border: none;
    background: transparent;
    color: var(--skin-base-color);
    font-family: 'Freesentation', sans-serif;
    font-size: 14px;
    resize: none;
    outline: none;
}
.bubble-content textarea::placeholder {
    color: var(--skin-base-color);
    opacity: 0.5;
}
.bubble-tail {
    position: absolute;
    right: -20px;
    bottom: 30px;
    width: 0;
    height: 0;
    border-left: 20px solid var(--skin-text-color);
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    z-index: 1;
}
.bubble-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--skin-base-color);
    opacity: 0.7;
}
.bubble-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-upload {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-upload img {
    width: 24px;
    height: 24px;
    filter: invert(1);
}
.btn-upload.has-image {
    background: var(--skin-point-color);
    border-radius: 4px;
}
.face-select, .guest-input {
    height: 30px;
    border: 1px solid var(--skin-base-color);
    background: transparent;
    color: var(--skin-base-color);
    font-family: 'Gulim', sans-serif;
    font-size: 12px;
    padding: 0 5px;
}
.guest-input { width: 80px; }
.face-select option {
    background: var(--skin-text-color);
    color: var(--skin-base-color);
}
.bubble-info {
    font-family: 'Gulim', sans-serif;
    font-size: 12px;
}
.char-count em {
    font-style: normal;
    color: var(--skin-point-color);
}

.character-wrap {
    position: relative;
    width: 150px;
    height: 160px;
    margin-left: 15px;
    flex-shrink: 0;
}
.character-body, .character-face { position: absolute; width: 100%; }
.character-body { bottom: 0; }
.character-face { top: 0; }
.character-body img, .character-face img {
    max-width: 100%;
    object-fit: contain;
}

.submit-area {
    margin-top: 20px;
    text-align: center;
}
.btn-submit {
    position: relative;
    width: 200px;
    height: 100px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
}
.btn-submit .submit-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.btn-submit span {
    position: relative;
    z-index: 2;
    font-family: 'Gulim', sans-serif;
    font-size: 12px;
    color: var(--skin-base-color);
}
.btn-submit:hover {
    transform: scale(1.05);
    transition: .2s;
}

.upload-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-content {
    width: 90%;
    max-width: 400px;
    background: var(--skin-base-color);
    border: 3px solid var(--skin-text-color);
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 2px solid var(--skin-text-color);
    font-family: 'Gulim', sans-serif;
    font-size: 12px;
}
.modal-close {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: var(--skin-text-color);
    font-size: 20px;
    cursor: pointer;
}
.modal-body { padding: 15px; }
.preview-area {
    height: 150px;
    border: 2px dashed var(--skin-text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    font-family: 'Gulim', sans-serif;
    font-size: 12px;
    opacity: 0.5;
    overflow: hidden;
}
.preview-area img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.upload-drop {
    border: 2px dashed var(--skin-text-color);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    margin-bottom: 15px;
    font-family: 'Gulim', sans-serif;
    font-size: 12px;
    transition: .2s;
}
.upload-drop:hover, .upload-drop.dragover {
    background: var(--skin-text-color);
    color: var(--skin-base-color);
}
.upload-drop:hover .upload-icon, .upload-drop.dragover .upload-icon {
    filter: invert(1);
}
.upload-drop input { display: none; }
.upload-drop .upload-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}
.url-input-wrap {
    display: flex;
    gap: 5px;
}
.url-input-wrap input {
    flex: 1;
    height: 35px;
    border: 2px solid var(--skin-text-color);
    background: transparent;
    padding: 0 10px;
    font-family: 'Gulim', sans-serif;
    font-size: 12px;
}
.url-input-wrap button {
    width: 60px;
    height: 35px;
    border: 2px solid var(--skin-text-color);
    background: var(--skin-text-color);
    color: var(--skin-base-color);
    font-family: 'Gulim', sans-serif;
    font-size: 12px;
    cursor: pointer;
}
.modal-footer {
    padding: 15px;
    border-top: 2px solid var(--skin-text-color);
}
.btn-apply {
    width: 100%;
    height: 40px;
    border: 2px solid var(--skin-text-color);
    background: var(--skin-point-color);
    color: #fff;
    font-family: 'Gulim', sans-serif;
    font-size: 12px;
    cursor: pointer;
}

.dash-list-wrap {
    position: relative;
    padding-bottom: 80px;
}
.dash-list {
    padding: 20px;
}
#dashListInner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.loading-indicator {
    text-align: center;
    padding: 30px 0;
    font-family: 'Gulim', sans-serif;
    font-size: 12px;
    opacity: 0.5;
}
.empty-list {
    text-align: center;
    padding: 100px 0;
    font-family: 'Gulim', sans-serif;
    font-size: 12px;
    opacity: 0.5;
}

.floating-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--skin-base-color);
    border-top: 3px solid var(--skin-text-color);
    padding: 10px 20px;
    z-index: 100;
}
.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.nav-paging {
    font-family: 'Gulim', sans-serif;
    font-size: 12px;
}
.nav-search {
    display: flex;
    gap: 5px;
}
.search-field, .search-input {
    height: 30px;
    border: 2px solid var(--skin-text-color);
    background: transparent;
    color: var(--skin-text-color);
    font-family: 'Gulim', sans-serif;
    font-size: 11px;
    padding: 0 5px;
}
.search-input { width: 120px; padding: 0 8px; }
.search-btn {
    height: 30px;
    padding: 0 12px;
    border: 2px solid var(--skin-text-color);
    background: var(--skin-text-color);
    color: var(--skin-base-color);
    font-family: 'Gulim', sans-serif;
    font-size: 11px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .dash-header { flex-direction: column; gap: 15px; text-align: center; }
    .dash-title { font-size: 36px; }
    .dash-title-grunge { font-size: 54px; }
    .bubble-wrap { flex-direction: column; align-items: stretch; }
    .character-wrap { margin: 15px auto 0; order: 1; }
    .bubble-box { order: 2; }
    .bubble-tail { display: none; }
    .nav-center { flex-direction: column; gap: 10px; }
    .nav-search { width: 100%; }
    .search-input { flex: 1; }
}

.item-content.editing {
    padding: 0 !important;
}
.inline-edit-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.inline-edit-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 2px solid var(--skin-point-color);
    background: var(--skin-base-color);
    color: var(--skin-text-color);
    font-family: inherit;
    font-size: 13px;
    line-height: 1.6;
    resize: vertical;
    outline: none;
}
.inline-edit-info {
    font-size: 12px;
    opacity: 0.7;
}
.inline-edit-btns {
    display: flex;
    gap: 8px;
}
.inline-edit-btns button {
    padding: 6px 16px;
    border: none;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
}
.btn-edit-save {
    background: var(--skin-point-color);
    color: #fff;
}
.btn-edit-save:hover {
    filter: brightness(1.1);
}
.btn-edit-cancel {
    background: var(--skin-text-color);
    color: var(--skin-base-color);
}
.btn-edit-cancel:hover {
    opacity: 0.8;
}
.halftone-img-wrap {
position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    filter: contrast(1.5);
    overflow: hidden;
    cursor: zoom-in;
}
.halftone-img-wrap::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    bottom: -50%;
    right: -50%;
    background: radial-gradient(circle at center, #000000, #ffffff);
    background-size: 5px 5px;
    pointer-events: none;
    transition: opacity 0.3s;
    filter: contrast(5.5);
    transform: rotate(8deg);
}
.halftone-img-wrap .halftone-img {
position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    mix-blend-mode: hard-light;
    filter: grayscale(1) brightness(1) contrast(0.8) blur(0px);
}
.halftone-img-wrap .original-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    z-index: 5;
    transition: opacity 0.3s;
}
.halftone-img-wrap:hover {
    filter: none;
}
.halftone-img-wrap:hover::before {
    opacity: 0;
}
.halftone-img-wrap:hover .original-img {
    opacity: 1;
}
.halftone-img-overlay {
    background: var(--skin-point-color);
    width: 100%;
    height: 100%;
    position: absolute;
    mix-blend-mode: screen;
    pointer-events: none;
}
.btn-settings {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin-left: 10px;
    color: var(--skin-text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}
.btn-settings:hover {
    transform: rotate(45deg);
}

.settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}
.settings-modal .modal-content {
    background: var(--skin-base-color);
    border: 3px solid var(--skin-text-color);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}
.settings-modal .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 2px solid var(--skin-text-color);
    font-family: 'Dela Gothic One', sans-serif;
}
.settings-modal .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--skin-text-color);
}
.settings-modal .modal-body {
    padding: 20px;
}
.settings-modal .modal-footer {
    padding: 15px;
    border-top: 2px solid var(--skin-text-color);
    text-align: right;
}
.settings-section {
    margin-bottom: 20px;
}
.settings-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.settings-toggle input {
    width: 18px;
    height: 18px;
}
.settings-label {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 14px;
}
.api-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 10px;
}
.api-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: var(--skin-text-color);
    color: var(--skin-base-color);
    margin-bottom: 5px;
    font-size: 12px;
    gap: 10px;
}
.api-name {
    flex-shrink: 0;
    font-weight: bold;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.api-url {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}
.api-pass {
    flex-shrink: 0;
    font-family: monospace;
    font-size: 11px;
    opacity: 0.7;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.btn-edit-api {
    background: transparent;
    color: var(--skin-base-color);
    border: 1px solid var(--skin-base-color);
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    flex-shrink: 0;
}
.btn-edit-api:hover {
    background: var(--skin-base-color);
    color: var(--skin-text-color);
}
.btn-remove-api {
    background: var(--skin-point-color);
    color: #fff;
    border: none;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
}
.api-add-wrap {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
.api-add-wrap input {
    padding: 8px;
    border: 2px solid var(--skin-text-color);
    font-size: 12px;
}
.api-add-wrap input#newApiName {
    width: 80px;
}
.api-add-wrap input#newApiUrl {
    flex: 1;
    min-width: 150px;
}
.api-add-wrap input#newApiPass {
    width: 80px;
}
.api-add-wrap button {
    padding: 8px 15px;
    background: var(--skin-text-color);
    color: var(--skin-base-color);
    border: none;
    cursor: pointer;
}
.settings-hint {
    font-size: 11px;
    color: #888;
    margin-top: 10px;
}

.external-item {
    position: relative;
}
.external-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: var(--skin-point-color);
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: help;
}
