@import url('tokens.css?v=20260906-contacts-3');

body { min-height: 100svh; }
body.modal-open { overflow: hidden; }
.site-header, .main-wrapper, .site-footer { width: min(1100px, calc(100% - 80px)); margin-inline: auto; }
.site-header { min-height: 96px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--card-border); }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 650; color: var(--text-main); text-decoration: none; }
.wordmark .icon { color: var(--accent); width: 22px; height: 22px; }
.header-caption { font-size: 13px; color: var(--text-muted); }
.main-wrapper { padding-block: 48px 64px; }
.content-layout { display: grid; grid-template-columns: 288px minmax(0, 1fr); gap: 72px; align-items: start; }
.glass-card { min-width: 0; }
#main-card { position: sticky; top: 28px; align-self: start; max-height: calc(100dvh - 56px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--card-border) transparent; padding: 0 4px 4px; }
.profile-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; margin-bottom: 16px; }
.profile-handle { color: var(--text-muted); font-size: 12px; }
.music-wrapper { display: flex; align-items: center; gap: 8px; }
.music-btn, .modal-close, .gallery-collapse-btn { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; background: transparent; border: 1px solid var(--card-border); border-radius: 8px; color: var(--text-sub); transition: background .18s, color .18s; }
.music-btn:hover, .modal-close:hover, .gallery-collapse-btn:hover { color: var(--text-main); background: var(--btn-hover); }
.music-active { color: var(--accent); background: var(--accent-soft); border-color: #7b6240; }
.volume-slider { display: none; width: 64px; height: 32px; accent-color: var(--accent); }
.music-wrapper.active .volume-slider { display: block; }
.avatar { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; border-radius: 8px; cursor: pointer; -webkit-user-drag: none; transition: filter .15s; }
.avatar:active { filter: brightness(1.15); }
.profile-identity { margin-block: 20px 22px; }
h1 { margin: 0; font-size: 32px; font-weight: 650; line-height: 1.2; overflow-wrap: anywhere; }
.subtitle { margin: 8px 0 4px; color: var(--text-sub); font-size: 15px; overflow-wrap: anywhere; }
.typewriter { color: var(--accent); font-size: 13px; min-height: 42px; line-height: 21px; overflow-wrap: anywhere; }
.links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-width: 0; min-height: 44px; padding: 10px 14px; border: 1px solid var(--card-border); border-radius: 6px; background: var(--btn-bg); color: var(--text-main); text-decoration: none; font-size: 14px; font-weight: 500; line-height: 1.45; text-align: center; overflow-wrap: anywhere; transition: background .18s, border-color .18s; }
.btn:hover { background: var(--btn-hover); border-color: #555651; }
.btn > span { min-width: 0; }
.links .btn { grid-column: 1 / -1; justify-content: flex-start; border-color: transparent; background: transparent; padding-inline: 10px; }
.links .btn:hover { background: var(--btn-bg); }
.links .btn > .icon:first-child { color: var(--text-muted); }
.links .btn > .nav-arrow { margin-left: auto; width: 15px; height: 15px; flex-basis: 15px; color: var(--text-muted); }
.links .resource-btn { border: 1px solid var(--card-border); margin-top: 8px; }
.links .resource-btn.nav-size-normal { grid-column: span 1; flex-wrap: wrap; }
.links .resource-btn.nav-size-wide { grid-column: span 2; }
.links .resource-btn.nav-size-full { grid-column: 1 / -1; }
.feed-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; margin-bottom: 30px; border-bottom: 1px solid var(--card-border); }
.feed-header h2 { margin: 0; font-weight: 550; font-size: 24px; line-height: 1.4; }
.feed-count { color: var(--text-muted); font-size: 12px; }
.posts-list { display: grid; gap: 24px; }
.empty-feed { margin: 0; padding-block: 24px; color: var(--text-muted); font-size: 15px; }
.post-item { min-width: 0; padding: 28px; border: 1px solid var(--card-border); border-radius: 8px; background: var(--surface); }
.post-item.is-pinned { border-color: #665135; }
.post-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.post-item h3 { margin: 0; color: var(--text-main); font-size: 24px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.post-pin { order: -1; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; color: var(--accent); }
.post-pin .icon { width: 13px; height: 13px; flex-basis: 13px; }
.post-date { display: block; margin: 10px 0 22px; color: var(--text-muted); font-size: 12px; }
.post-body { font-size: 16px; line-height: 1.85; color: var(--text-sub); overflow-wrap: anywhere; }
.post-body > :first-child { margin-top: 0; }
.post-body > :last-child { margin-bottom: 0; }
.post-body p { margin: 0 0 1.1em; }
.post-body strong { font-weight: 600; color: var(--text-main); }
.post-body h2, .post-body h3, .post-body h4 { color: var(--text-main); line-height: 1.4; margin: 1.2em 0 .5em; }
.post-body h2 { font-size: 22px; }
.post-body h3 { font-size: 20px; }
.post-body h4 { font-size: 18px; }
.post-body ul, .post-body ol { margin: 0 0 1em; padding-left: 1.4em; }
.post-body li + li { margin-top: .3em; }
.post-body blockquote { margin: 0 0 1em; padding: 4px 0 4px 18px; border-left: 2px solid var(--accent); }
.post-body code { padding: .15em .35em; border-radius: 4px; background: var(--surface-raised); color: var(--text-main); font-size: .9em; }
.post-body a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.post-body a:hover { color: #f4d6a8; }
.post-inline-emoji { display: inline-block; width: 1.4em; height: 1.4em; margin: 0 .08em; border: 0; border-radius: 0; background: transparent; box-shadow: none; object-fit: contain; vertical-align: -.3em; cursor: pointer; }
.post-media { display: grid; gap: 16px; margin-top: 20px; }
.post-media-figure { max-width: 100%; margin-top: 20px; margin-bottom: 20px; }
.post-media-figure.media-align-left { margin-left: 0; margin-right: auto; }
.post-media-figure.media-align-center { margin-inline: auto; }
.post-media-figure.media-align-right { margin-left: auto; margin-right: 0; }
.post-media-figure.media-size-emoji { width: min(56px, 100%); }
.post-media-figure.media-size-small { width: min(150px, 100%); }
.post-media-figure.media-size-medium { width: min(320px, 100%); }
.post-media-figure.media-size-large { width: min(520px, 100%); }
.post-media-figure.media-size-full { width: 100%; }
.post-media-figure img, .post-media-figure video, .post-media-figure iframe { display: block; width: 100%; max-height: 520px; border: 0; border-radius: 8px; background: var(--surface); }
.post-media-figure img { height: auto; object-fit: contain; cursor: pointer; }
.post-media-figure video { object-fit: contain; }
.post-media-figure iframe { aspect-ratio: 16 / 9; height: auto; }
.post-media-figure figcaption { margin-top: 8px; color: var(--text-muted); font-size: 12px; }
.post-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.post-action, .modal-download-btn, .back-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; max-width: 100%; min-height: 44px; padding: 10px 16px; border: 1px solid #665135; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 550; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; text-align: center; transition: background .18s; }
.post-action:hover, .modal-download-btn:hover, .back-btn:hover { background: #443622; }
.post-action > span:not(.icon) { min-width: 0; }
.post-engagement { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--card-border); }
.post-engagement-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.reaction-list { display: flex; flex-wrap: wrap; gap: 8px; }
.reaction-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 40px; padding: 7px 10px; border: 1px solid var(--card-border); border-radius: 6px; background: transparent; color: var(--text-sub); font-size: 14px; font-variant-numeric: tabular-nums; }
.reaction-btn:hover { background: var(--btn-hover); }
.reaction-btn.is-selected { border-color: #7b6240; background: var(--accent-soft); color: var(--accent); }
.comments-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; max-width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--text-sub); font-size: 13px; font-weight: 500; line-height: 1.5; }
.comments-toggle > span:not(.icon) { min-width: 0; overflow-wrap: anywhere; }
.comments-toggle:hover { background: var(--btn-hover); color: var(--text-main); }
.comments-toggle[aria-expanded="true"] { background: var(--accent-soft); color: var(--accent); }
.comments-chevron { width: 14px; height: 14px; flex-basis: 14px; transition: transform .18s; }
.comments-toggle[aria-expanded="true"] .comments-chevron { transform: rotate(180deg); }
.comments-block { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--card-border); }
.comment-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.comment-form input, .comment-form textarea { width: 100%; min-width: 0; border: 1px solid var(--card-border); border-radius: 6px; background: var(--bg); color: var(--text-main); padding: 10px 12px; font-size: 16px; line-height: 1.5; }
.comment-form input { grid-column: 1 / -1; min-height: 44px; }
.comment-form textarea { min-height: 72px; max-height: 300px; resize: vertical; }
.comment-submit { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--card-border); border-radius: 6px; background: var(--btn-bg); color: var(--text-main); font-size: 13px; font-weight: 550; }
.comment-submit:hover { background: var(--btn-hover); }
.comment-status { margin: 8px 0 0; color: var(--accent); font-size: 12px; }
.comment-status:empty { display: none; }
.comment-list { display: grid; margin-top: 16px; }
.comment-item { padding: 14px 0; border-top: 1px solid var(--card-border); }
.comment-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; color: var(--text-muted); font-size: 11px; overflow-wrap: anywhere; }
.comment-meta strong { color: var(--text-sub); font-weight: 550; }
.comment-text { margin: 6px 0 0; color: var(--text-sub); font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.gallery-preview-section.is-empty { display: none !important; }
.gallery-preview-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.gallery-title { margin: 0; font-size: 16px; font-weight: 550; }
.gallery-collapse-btn { border: 0; }
.gallery-preview-section.is-collapsed .gallery-preview-body { display: none; }
.profile-gallery { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--card-border); }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gallery-preview-actions { margin-top: 12px; }
.gallery-preview-actions .btn { width: 100%; }
.gallery-item { display: block; width: 100%; padding: 0; aspect-ratio: 1; border: 0; border-radius: 6px; overflow: hidden; background: var(--surface-raised); cursor: pointer; }
.gallery-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.gallery-item:hover .gallery-img { opacity: .8; }
#gallery-card { display: none; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 80px; border-top: 1px solid var(--card-border); color: var(--text-muted); font-size: 12px; }
.admin-link { display: inline-flex; align-items: center; justify-content: center; color: var(--text-muted); width: 44px; height: 44px; border-radius: 6px; }
.admin-link:hover { background: var(--btn-bg); color: var(--text-main); }
.corner-gif { width: 40px; height: auto; margin-left: auto; pointer-events: none; }
.modal { display: none; position: fixed; inset: 0; z-index: 20000; padding: 32px; background: var(--modal-backdrop); align-items: center; justify-content: center; }
.modal.is-active { display: flex; }
.modal-panel { position: relative; width: min(700px, 100%); max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; border: 1px solid #454644; border-radius: 8px; padding: 32px; background: var(--modal-panel-bg); box-shadow: 0 24px 80px rgb(0 0 0 / 40%); }
.modal-panel.wide { width: min(1000px, 100%); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.modal-kicker { margin: 0 0 6px; color: var(--accent); font-size: 11px; }
.modal-title { margin: 0; font-size: 28px; line-height: 1.3; font-weight: 600; }
.modal-copy { margin: 0; color: var(--text-sub); line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.about-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--card-border); }
.about-chip strong { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 550; }
.about-chip span { color: var(--text-sub); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.contact-list { display: grid; }
.contact-link { border: 0; border-bottom: 1px solid var(--card-border); border-radius: 0; padding: 16px 4px; background: transparent; justify-content: flex-start; text-align: left; }
.contact-link > div { flex: 1; min-width: 0; }
.contact-link strong { display: block; font-weight: 550; }
.contact-link > div > span { display: block; margin-top: 4px; color: var(--text-muted); font-size: 12px; }
.contact-link > .icon { color: var(--text-muted); }
.contact-email-row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: center; gap: 10px; margin-bottom: 12px; }
.contact-link.contact-email-link { gap: 14px; padding: 18px; border: 1px solid #665135; border-radius: 8px; background: var(--accent-soft); }
.contact-email-link:hover { background: #403323; border-color: var(--accent); }
.contact-email-link strong { font-size: 16px; line-height: 1.5; }
.contact-email-link > div > span { color: var(--text-sub); font-size: 13px; overflow-wrap: anywhere; }
.contact-email-link > .icon { color: var(--accent); }
.contact-email-mark { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 6px; background: rgb(234 185 107 / 10%); color: var(--accent); }
.contact-email-mark .icon { width: 22px; height: 22px; }
.contact-copy-control { position: relative; }
.contact-copy-button { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid #665135; border-radius: 6px; background: transparent; color: var(--accent); }
.contact-copy-button:hover { background: var(--accent-soft); border-color: var(--accent); }
.contact-copy-status { position: absolute; bottom: calc(100% + 10px); right: 0; z-index: 1; width: max-content; max-width: 210px; padding: 8px 10px; border: 1px solid #665135; border-radius: 6px; background: var(--surface-raised); color: var(--text-main); box-shadow: 0 4px 16px rgb(0 0 0 / 20%); font-size: 12px; line-height: 1.5; pointer-events: none; }
.contact-copy-status:empty { padding: 0; border: 0; }
.clipboard-buffer { position: fixed; top: 0; left: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; font-size: 16px; }
.modal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.image-viewer-panel { width: min(1120px, 100%); text-align: center; }
.image-viewer-panel > .modal-close { display: flex; margin: 0 0 16px auto; }
.image-viewer-img { display: block; max-width: 100%; max-height: calc(100dvh - 250px); object-fit: contain; margin: 0 auto; border-radius: 4px; }
.modal-download-btn { margin-top: 20px; }
.reward-panel { text-align: center; }
.reward-title { font-size: 28px; margin: 0 0 28px; }
.giant-chest-btn { display: inline-block; margin-bottom: 24px; padding: 16px 28px; border: 0; border-radius: 8px; font-size: 24px; font-weight: 700; text-decoration: none; cursor: pointer; }
.gold-chest { background: var(--accent); color: #231d15; }
.diamond-chest { background: #ade0dd; color: #193c3c; }
#secret-gif-el { display: none; max-width: min(300px, 100%); margin: 0 auto 20px; border-radius: 8px; }
.boss-bar-container { height: 3px; position: absolute; top: 0; left: 4px; right: 4px; opacity: 0; overflow: hidden; border-radius: 3px; background: var(--card-border); pointer-events: none; }
.boss-hp { width: 100%; height: 100%; background: #e27878; transition: width .1s; }
#battle-effects { position: fixed; inset: 0; z-index: 50000; pointer-events: none; overflow: hidden; }
#combo-counter { position: absolute; opacity: 0; color: #ffd462; font-size: 28px; font-weight: 850; text-shadow: 0 2px 6px #000; transform-origin: center; }
#finish-text { position: absolute; opacity: 0; color: #ff6868; font-size: 30px; font-weight: 850; text-align: center; transform: translate(-50%, -50%); text-shadow: 0 2px 8px #000; }
.float-dmg { position: fixed; font-size: 24px; font-weight: 750; pointer-events: none; animation: floatUp .6s ease-out forwards; z-index: 50001; text-shadow: 0 2px 4px #000; }
.crit { color: #ff7878; font-size: 30px; }
.miss { color: #ccc; font-size: 18px; }
.normal { color: #ffd462; }
.avatar.hit { filter: brightness(1.5) sepia(.5); }
.rage-mode { animation: shake .25s ease infinite; }
.blink { animation: blinker .3s linear infinite; }
@keyframes shake { 25%, 75% { transform: translateX(-2px); } 50% { transform: translateX(2px); } }
@keyframes blinker { 50% { opacity: 0; } }
@keyframes floatUp { to { opacity: 0; transform: translateY(-70px); } }
.skip-link { position: fixed; left: 16px; top: -80px; padding: 10px 18px; z-index: 60000; background: var(--accent); color: #151617; border-radius: 6px; }
.skip-link:focus { top: 16px; }
@media (max-width: 1100px) {
    .content-layout { grid-template-columns: 248px minmax(0, 1fr); gap: 40px; }
    .site-header, .main-wrapper, .site-footer { width: calc(100% - 48px); }
}
@media (max-width: 800px) {
    .site-header, .main-wrapper, .site-footer { width: min(680px, calc(100% - 40px)); }
    .site-header { min-height: 72px; }
    .main-wrapper { padding-block: 28px 40px; }
    .content-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    #main-card { position: relative; top: auto; max-height: none; overflow: visible; padding: 0; }
    .profile-toolbar { margin-bottom: 16px; }
    .profile-overview { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 20px; }
    .profile-identity { margin: 0; }
    h1 { font-size: 28px; }
    .typewriter { min-height: 42px; }
    .links { margin-top: 18px; }
    .links.gallery-disabled { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .links .btn { grid-column: span 1; justify-content: center; border: 1px solid var(--card-border); padding: 10px; }
    .links .btn > .nav-arrow { display: none; }
    .links .resource-btn { margin-top: 4px; }
    .links .resource-btn > .nav-arrow { display: inline-block; margin-left: 0; }
    .profile-gallery { display: none; }
    #gallery-card { display: block; margin-top: 36px; }
    .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .feed-header { padding-bottom: 16px; margin-bottom: 24px; }
    .feed-header h2 { font-size: 22px; }
    .post-item h3 { font-size: 22px; }
}
@media (max-width: 480px) {
    .contact-link.contact-email-link { display: grid; grid-template-columns: 24px minmax(0, 1fr); padding: 12px 10px; gap: 6px; }
    .contact-email-link > div { display: contents; }
    .contact-email-link > div > span { grid-column: 1 / -1; margin-top: 0; }
    .contact-email-link strong { font-size: 14px; }
    .contact-email-link .contact-email-mark { width: 24px; height: 24px; }
    .contact-email-mark .icon { width: 18px; height: 18px; }
    .post-item { padding: 18px 14px; }
    .posts-list { gap: 18px; }
    .header-caption { display: none; }
    .site-header, .main-wrapper, .site-footer { width: calc(100% - 32px); }
    .profile-overview { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; }
    h1 { font-size: 26px; }
    .subtitle { font-size: 14px; }
    .links .btn { gap: 6px; padding: 10px 6px; font-size: 12px; }
    .links .btn > .icon:first-child { width: 15px; height: 15px; flex-basis: 15px; }
    .links .resource-btn { font-size: 13px; }
    .post-item h3 { font-size: 21px; }
    .post-body { line-height: 1.8; }
    .post-actions > * { width: 100%; }
    .comment-form { grid-template-columns: minmax(0, 1fr); }
    .comment-submit { justify-self: end; }
    .reaction-list { gap: 6px; }
    .reaction-btn { min-width: 46px; min-height: 44px; padding: 7px 8px; }
    .gallery-grid, .modal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .modal { padding: 12px; }
    .modal-panel { padding: 20px; max-height: calc(100dvh - 24px); }
    .modal-header { margin-bottom: 22px; }
    .modal-title { font-size: 24px; }
    .about-list { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
