
:root{
  --p1:#fff0f7; --p2:#ffc3de; --p3:#f884b3; --p4:#e14f8c; --p5:#b02b64; --p6:#7a1c46;
  --ink:#4a1830; --page-bg:#f3c9dd; --panel:#fffafc;
  --green:#9ACB11; --green-ink:#5c7a0a;
  --pixel:'Press Start 2P', cursive; --cute:'Baloo 2', sans-serif;
}
*{box-sizing:border-box;}
body{
  margin:0; font-family:Verdana, Tahoma, sans-serif; font-size:12.5px; color:var(--ink);
  background-color:var(--page-bg);
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,.35) 0 2px, transparent 2px 14px),
    radial-gradient(circle at 50% 0%, #ffe3f0 0%, var(--page-bg) 60%);
  -webkit-user-select:none; -moz-user-select:none; -ms-user-select:none; user-select:none;
}

input, textarea, select, .cmt-body{ -webkit-user-select:text; -moz-user-select:text; user-select:text; }
a{color:#a3195b;}
a:hover{color:var(--green-ink);}
[hidden]{display:none !important;}

.metal-dark{
  background:linear-gradient(180deg, var(--p3) 0%, var(--p4) 45%, var(--p5) 55%, var(--p4) 100%);
  border:1px solid var(--p6);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5), 0 2px 5px rgba(0,0,0,.25);
}

.marquee-wrap{
  background:var(--p6); color:#ffd9ec; font-family:var(--pixel); font-size:9px;
  padding:4px 0; overflow:hidden; white-space:nowrap; border-bottom:2px solid var(--p4);
}
.marquee{ display:inline-block; padding-left:100%; animation:scrollmq 22s linear infinite; }
@keyframes scrollmq{ 0%{transform:translateX(0);} 100%{transform:translateX(-100%);} }

header{ max-width:1000px; margin:14px auto 0; padding:0 14px; }
.banner{
  border-radius:8px; padding:14px 18px; display:flex; flex-direction:column; align-items:center;
  text-align:center; gap:6px; position:relative; overflow:hidden;
}
.banner .logo-link{ display:inline-block; line-height:0; }
.banner .logo-img{ width:620px; max-width:100%; height:auto; aspect-ratio:956/112; border-radius:6px; }
.banner .tagline{ color:#ffe6f3; font-size:11.5px; margin-top:3px; }

.banner-deco{
  position:absolute; right:16px; top:6px; color:rgba(255,255,255,.55); font-size:14px; letter-spacing:4px;
  text-decoration:none; cursor:default; outline:none;
}
.banner-deco:hover{ color:rgba(255,255,255,.55); }
.banner-deco:focus-visible{ color:#fff; }

nav.topmenu{
  max-width:1000px; margin:8px auto 0; padding:0 14px; position:relative; z-index:20;
  display:flex; flex-direction:column; gap:8px;
}
.nav-links{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:6px; align-items:center; }
.topmenu a{
  display:block; padding:6px 13px; border-radius:5px; font-weight:bold; font-size:12px;
  color:#fff; text-decoration:none; text-shadow:0 1px 1px rgba(0,0,0,.25); cursor:pointer;
}
.topmenu a:hover{filter:brightness(1.08); color:#fff;}
.topmenu a.active{ box-shadow:inset 0 0 0 2px var(--green), inset 0 1px 0 rgba(255,255,255,.5), 0 2px 5px rgba(0,0,0,.25); }

/* поиск и юзер-блок всегда идут вместе, одной строкой, шириной как остальная шапка */
.nav-utility{ display:flex; gap:10px; align-items:center; width:100%; }
.nav-search{ display:flex; gap:0; flex:1 1 auto; min-width:0; }
.nav-search input{
  width:100%; min-width:0; padding:6px 10px; border-radius:5px 0 0 5px; border:1px solid var(--p6);
  border-right:none; font-family:inherit; font-size:11.5px; background:#fff8fc;
}
.nav-search input:focus{ outline:none; background:#fff; }
.nav-search button{
  border-radius:0 5px 5px 0; border:1px solid var(--p6); background:var(--p6); color:#fff;
  padding:0 12px; cursor:pointer; font-size:15px; line-height:1; flex:none;
}
.nav-auth{ flex:none; display:flex; align-items:center; }
@media (max-width:600px){ .nav-utility{ flex-wrap:wrap; } .nav-search{ order:2; flex-basis:100%; } .nav-auth{ order:1; margin-left:auto; } }

.nav-user-wrap{ position:relative; flex:none; }
.nav-user-trigger{
  display:flex; align-items:center; gap:8px; background:none; border:none;
  padding:0; cursor:pointer; font-family:inherit;
}
.nav-user-trigger:hover .nav-user-name{ text-decoration:underline; }
.nav-user-name{ color:var(--ink); font-weight:bold; font-size:11.5px; display:flex; flex-direction:column; line-height:1.2; text-align:right; }
.nav-user-name small{ opacity:.8; font-weight:normal; font-size:9px; }
.nav-user-caret{ color:#fff; font-size:9px; opacity:.85; transition:transform .15s ease; }
.nav-user-wrap.open .nav-user-caret{ transform:rotate(180deg); }

.nav-dropdown{
  position:absolute; right:0; top:calc(100% + 10px); min-width:230px; display:none; flex-direction:column;
  background:#eef9d4 repeating-linear-gradient(135deg, rgba(255,255,255,.4) 0 2px, transparent 2px 12px);
  border:3px double var(--green-ink); border-radius:4px; padding:8px; gap:3px;
  box-shadow:0 8px 20px rgba(0,0,0,.3); z-index:30;
}
.nav-user-wrap.open .nav-dropdown{ display:flex; }
.nav-dropdown-head{
  display:flex; align-items:center; gap:8px; padding:4px 8px 9px; margin-bottom:4px;
  border-bottom:2px dashed var(--green-ink); font-family:var(--cute); font-weight:800;
  color:var(--green-ink); font-size:13px; line-height:1.25;
}
.nav-dropdown-head small{ display:block; font-weight:normal; opacity:.75; font-size:10px; }
.nav-dropdown a{
  display:block; padding:9px 10px; border-radius:4px; color:var(--green-ink); font-weight:bold;
  font-size:12.5px; text-decoration:none; border:1px solid transparent;
}
.nav-dropdown a:hover{ background:var(--green); border-color:var(--green-ink); color:#2c3c05; }

.avatar-img{
  box-sizing:border-box; border-radius:50%; object-fit:cover; flex:none; border:1px solid var(--p4); background:var(--p2);
  display:inline-flex; align-items:center; justify-content:center; vertical-align:middle;
}
.avatar-fallback{ font-family:var(--cute); font-weight:800; color:var(--p6); font-size:.6em; }
.cmt-head .avatar-img{ margin-right:1px; }
a.cmt-name{ color:var(--p5); text-decoration:none; }
a.cmt-name:hover{ text-decoration:underline; }
a.user-link{ font-weight:bold; text-decoration:none; }
a.user-link:hover{ text-decoration:underline; }

.poll-box{ font-size:11.5px; }
.poll-q{ font-family:var(--cute); font-weight:700; color:var(--p5); margin-bottom:8px; }
.poll-opts{ display:flex; flex-direction:column; gap:7px; }
.poll-opt{
  position:relative; overflow:hidden; text-align:left; padding:8px 10px; border-radius:6px;
  border:1px solid var(--p3); background:#fff; font-family:inherit; font-weight:bold; color:var(--p5);
  cursor:pointer; font-size:11.5px;
}
.poll-opt:not(:disabled):hover{ background:#fff5f9; }
.poll-opt:disabled{ cursor:default; }
.poll-opt-fill{ position:absolute; inset:0; background:linear-gradient(90deg, var(--p2), #ffd8ea); transition:width .35s ease; z-index:0; }
.poll-opt-label, .poll-opt-pct{ position:relative; z-index:1; }
.poll-opt-pct{ float:right; opacity:.75; }
.poll-opt.voted{ border-color:var(--green-ink); }
.poll-opt.voted .poll-opt-fill{ background:linear-gradient(90deg, #d8f2a8, var(--green)); }
.poll-total{ margin-top:8px; font-size:10.5px; opacity:.7; text-align:center; }

.layout{
  max-width:1000px; margin:14px auto 40px; padding:0 14px;
  display:grid; grid-template-columns:200px 1fr 220px; gap:14px; align-items:start;
}
.layout.narrow{ display:block; max-width:900px; }
.layout > main{ min-width:0; }
@media (max-width:840px){ .layout{grid-template-columns:1fr;} }

.panel{ border-radius:7px; overflow:hidden; }
.panel-head{ padding:6px 10px; font-family:var(--cute); font-weight:700; font-size:13px; color:#fff0f7; }
.panel-body{ background:var(--panel); border:1px solid var(--p4); border-top:none; padding:10px; }
.sidebar-left .panel + .panel, .sidebar-right .panel + .panel{margin-top:14px;}

.card{ border-radius:8px; overflow:hidden; background:var(--panel); border:1px solid var(--p4); box-shadow:0 2px 6px rgba(176,43,100,.14); }
.card-body{ padding:20px 22px; }
@media (max-width:600px){ .card-body{ padding:14px; } }

.img-slot{
  border:2px dashed var(--p3); border-radius:6px; background:#fff5f9;
  display:flex; align-items:center; justify-content:center; color:var(--p5);
  font-size:10.5px; text-align:center; line-height:1.3;
}
.affiliates{display:flex; flex-wrap:wrap; gap:6px; justify-content:center;}
.mascot-box{text-align:center;}
.speech{
  position:relative; background:#fff; border:2px solid var(--p4); border-radius:10px;
  padding:8px 10px; font-size:11px; margin-top:8px;
}
.speech::after{
  content:""; position:absolute; top:-9px; left:50%; transform:translateX(-50%);
  border-width:0 8px 9px 8px; border-style:solid; border-color:transparent transparent var(--p4) transparent;
}
.poll-shell{
  border:1px dashed var(--p4); border-radius:5px; padding:14px 8px; text-align:center;
  font-size:11.5px; color:var(--p5); background:repeating-linear-gradient(45deg, #fff 0 8px, #fff5f9 8px 16px);
}

.section-title{ font-family:var(--cute); font-size:19px; color:var(--p5); display:flex; align-items:center; gap:8px; margin:0 0 10px; }
.blink{animation:blinker 1.1s step-start infinite;}
@keyframes blinker{50%{opacity:0;}}
.badge-new{
  font-family:var(--pixel); font-size:8px; background:var(--green); color:#20492f;
  padding:3px 5px; border-radius:3px; border:1px solid var(--green-ink);
}

.promo-rotator{ display:flex; }
.promo-slot{
  position:relative; display:flex; width:100%; min-height:300px; border-radius:6px; overflow:hidden;
  border:2px dashed var(--p3); background:repeating-linear-gradient(45deg, #fff 0 8px, #fff5f9 8px 16px);
  text-decoration:none; align-items:center; justify-content:center;
}
.promo-slot img{ width:100%; height:100%; min-height:300px; object-fit:cover; display:block; }
.promo-fallback{
  display:none; text-align:center; font-size:11px; font-weight:bold; color:var(--p5); line-height:1.6; padding:10px;
}
.promo-fallback small{ font-weight:normal; opacity:.7; font-size:9.5px; }
.promo-slot.promo-empty img{ display:none; }
.promo-slot.promo-empty .promo-fallback{ display:block; }

.navlist{list-style:none; margin:0; padding:0;}
.navlist li{ padding:5px 8px; border-bottom:1px dashed #f3c3da; font-weight:bold; font-size:11.5px; }
.navlist li:last-child{border-bottom:none;}
.navlist a{text-decoration:none;}
.navlist a:hover{text-decoration:underline;}

.tagcloud{display:flex; flex-wrap:wrap; gap:5px;}
.tagcloud button, .tagcloud a{
  background:#fbe0ec; color:var(--p5); border:1px solid var(--p3);
  border-radius:999px; font-size:10px; padding:4px 10px;
  font-family:inherit; font-weight:bold; cursor:pointer; text-decoration:none;
  display:inline-flex; align-items:center; gap:5px;
}
.tagcloud button:hover, .tagcloud a:hover{ background:var(--p2); }
.tagcloud button.active{ background:var(--green); color:#26330a; border-color:var(--green-ink); }
.char-count{
  background:var(--p5); color:#fff; border-radius:999px; font-size:9px; padding:1px 6px;
  min-width:14px; text-align:center;
}

.news-box{
  background:var(--panel); border:1px solid var(--p4); border-radius:8px; padding:4px 12px;
  margin-bottom:16px;
}
.news-item{ display:flex; gap:10px; padding:8px 0; border-top:1px dashed var(--p2); font-size:11.5px; align-items:baseline; }
.news-item:first-child{ border-top:none; }
.news-date{ flex:none; font-family:var(--pixel); font-size:8px; color:var(--p5); white-space:nowrap; }
.news-text{ color:var(--ink); }

.warn18{
  text-align:center; font-family:var(--pixel); font-size:9px; background:var(--p6);
  color:#ffd9ec; padding:8px 6px; border-radius:5px; line-height:1.6;
}
footer{ text-align:center; padding:16px; font-size:10.5px; color:var(--p6); }
.empty-note{ text-align:center; padding:30px 10px; opacity:.7; }

.btn{
  background:linear-gradient(180deg, var(--p3), var(--p4) 55%, var(--p5));
  color:#fff; border:1px solid var(--p6); border-radius:999px;
  padding:7px 18px; font-weight:bold; font-size:12px; cursor:pointer; font-family:inherit;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.5), 0 2px 4px rgba(0,0,0,.2);
}
.btn:hover{ filter:brightness(1.07); }
.btn:disabled{ opacity:.55; cursor:default; }
.btn.small{ padding:3px 11px; font-size:10.5px; }
.btn.green{ background:linear-gradient(180deg,#c4e85a,var(--green) 55%,#7fa80c); color:#26330a; border-color:var(--green-ink); text-shadow:none; }
.btn.ghost{ background:#fbe0ec; color:var(--p5); border-color:var(--p3); box-shadow:none; }

.field{ display:block; margin:0 0 11px; font-weight:bold; font-size:11.5px; color:var(--p5); }
.field small{ font-weight:normal; opacity:.7; }
.field input[type=text], .field input[type=password], .field input[type=url], .field select, .field textarea,
.cmt-form input[type=text], .cmt-form textarea{
  display:block; width:100%; margin-top:3px; padding:7px 9px;
  border:1px solid var(--p3); border-radius:6px; background:#fff; color:var(--ink);
  font-family:inherit; font-size:12.5px;
}
.field textarea, .cmt-form textarea{ resize:vertical; min-height:80px; line-height:1.5; }
.field input:focus, .field textarea:focus, .field select:focus, .cmt-form input:focus, .cmt-form textarea:focus{
  outline:2px solid var(--green); border-color:var(--green-ink);
}
.form-msg{ font-size:11.5px; margin:8px 0; min-height:14px; }
.form-msg.err{ color:#a3193b; font-weight:bold; }
.form-msg.ok{ color:var(--green-ink); font-weight:bold; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
@media (max-width:600px){ .form-row{ grid-template-columns:1fr; } }
.hint{ font-size:10.5px; opacity:.7; margin-top:-6px; margin-bottom:10px; }

.modal-overlay{
  display:none; position:fixed; inset:0; z-index:550; background:rgba(30,6,18,.75);
  align-items:center; justify-content:center; padding:16px;
}
.modal-overlay.open{ display:flex; }
.modal-box{
  background:var(--panel); border:2px solid var(--p3); border-radius:10px; width:100%; max-width:360px;
  padding:18px; position:relative; box-shadow:0 10px 30px rgba(0,0,0,.4); max-height:94vh; overflow:auto;
}
.modal-close{
  position:absolute; top:8px; right:8px; width:26px; height:26px; border-radius:50%;
  background:var(--p6); color:#ffe6f3; border:1px solid rgba(255,255,255,.5); cursor:pointer;
}
.modal-tabs{ display:flex; gap:6px; margin-bottom:14px; }
.modal-tabs button{
  flex:1; padding:6px; border-radius:6px; border:1px solid var(--p3); background:#fbe0ec;
  color:var(--p5); font-weight:bold; font-family:inherit; cursor:pointer;
}
.modal-tabs button.active{ background:var(--green); color:#26330a; border-color:var(--green-ink); }
.modal-note{ font-size:10.5px; opacity:.75; margin-top:12px; line-height:1.5; }

.gallery-intro, .ficlist-intro, .board-intro{ font-size:11.5px; margin-bottom:14px; opacity:.85; }
.gallery-masonry{ column-count:3; column-gap:16px; }
@media (max-width:760px){ .gallery-masonry{column-count:2;} }
@media (max-width:480px){ .gallery-masonry{column-count:1;} }

.art-card{
  break-inside:avoid; margin:0 0 16px; background:var(--panel); border:1px solid var(--p3);
  border-radius:8px; overflow:hidden; box-shadow:0 2px 5px rgba(176,43,100,.14);
}
.art-frame{ position:relative; cursor:zoom-in; }
.art-frame img{ width:100%; height:auto; display:block; background:#fff5f9; min-height:60px; }
.art-frame .expand-btn{
  position:absolute; top:6px; right:6px; width:26px; height:26px; border-radius:6px;
  background:rgba(122,28,70,.75); color:#fff0f7; border:1px solid rgba(255,255,255,.6);
  display:flex; align-items:center; justify-content:center; font-size:14px; cursor:pointer;
  opacity:0; transition:opacity .15s ease;
}
.art-frame:hover .expand-btn{opacity:1;}
.art-caption{ padding:8px 9px 9px; }
.art-caption .pairing{ display:block; font-weight:bold; color:var(--p5); font-size:11.5px; margin-bottom:4px; }
.art-server{ margin-bottom:5px; font-size:10.5px; }
.art-server a.server-link, .art-server .server-link{
  font-weight:bold; color:var(--green-ink); text-decoration:none; border-bottom:1px dotted var(--green-ink);
}
.art-server a.server-link:hover{ color:#3d5406; }
.art-meta{ display:flex; justify-content:space-between; align-items:center; gap:6px; font-size:10.5px; }
.art-credits{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.art-meta a.artist-link{ font-weight:bold; color:#a3195b; text-decoration:none; border-bottom:1px dotted #a3195b; }
.art-meta a.artist-link:hover{ color:var(--green-ink); border-color:var(--green-ink); }
.art-meta a.submitter-link{ font-size:12px; color:#7a6a8a; text-decoration:none; border-bottom:1px dotted #7a6a8a; }
.art-meta a.submitter-link:hover{ color:var(--green-ink); border-color:var(--green-ink); }
.art-stats{ display:flex; gap:6px; align-items:center; white-space:nowrap; }
.art-stats .cnt{ opacity:.7; font-size:10px; }

.home-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-bottom:22px; }
@media (max-width:600px){ .home-grid{ grid-template-columns:repeat(2,1fr); } }
.home-grid .art-card{ margin:0; }
.home-grid .art-frame img{ aspect-ratio:1/1; object-fit:cover; }
.board-teaser{
  border:1px solid var(--p4); background:#fff; border-radius:6px; padding:10px;
  font-family:monospace; font-size:11.5px; white-space:pre-wrap; word-break:break-word;
}
.board-teaser .op{ color:var(--p5); font-weight:bold; }

.lightbox-overlay{
  display:none; position:fixed; inset:0; z-index:500; background:rgba(30,6,18,.86);
  align-items:center; justify-content:center; padding:26px 16px;
}
.lightbox-overlay.open{ display:flex; }
.lightbox-box{
  background:var(--panel); border:2px solid var(--p3); border-radius:10px; max-width:920px; width:100%;
  max-height:94vh; overflow:auto; box-shadow:0 10px 30px rgba(0,0,0,.4); position:relative;
}
.lightbox-close{
  position:absolute; top:8px; right:8px; width:30px; height:30px; border-radius:50%;
  background:var(--p6); color:#ffe6f3; border:1px solid rgba(255,255,255,.5);
  font-size:16px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; z-index:2;
}
.lightbox-close:hover{ background:var(--green-ink); }
.lightbox-img-slot{
  height:64vh; min-height:340px; border-radius:10px 10px 0 0; border:none; overflow:hidden; background:#1a0a12;
  display:flex; align-items:center; justify-content:center;
}
.lightbox-img-slot.zoom-active{ overflow:auto; }
.lightbox-img-slot img{
  width:100%; height:100%; object-fit:contain; display:block; background:#1a0a12; cursor:zoom-in;
  transition:transform .2s ease; transform-origin:center center;
}
.lightbox-img-slot img.zoomed{ cursor:zoom-out; transform:scale(2.2); }

.lightbox-box, .lightbox-img-slot, .lb-players-list{ scrollbar-width:thin; scrollbar-color:var(--p4) #fff0f7; }
.lightbox-box::-webkit-scrollbar, .lightbox-img-slot::-webkit-scrollbar, .lb-players-list::-webkit-scrollbar{ width:11px; height:11px; }
.lightbox-box::-webkit-scrollbar-track, .lightbox-img-slot::-webkit-scrollbar-track, .lb-players-list::-webkit-scrollbar-track{ background:#fff0f7; border-radius:10px; }
.lightbox-box::-webkit-scrollbar-thumb, .lightbox-img-slot::-webkit-scrollbar-thumb, .lb-players-list::-webkit-scrollbar-thumb{
  background:linear-gradient(180deg, var(--p3), var(--p5)); border-radius:10px; border:2px solid #fff0f7;
}
.lightbox-box::-webkit-scrollbar-thumb:hover, .lightbox-img-slot::-webkit-scrollbar-thumb:hover, .lb-players-list::-webkit-scrollbar-thumb:hover{ background:var(--green-ink); }
.lightbox-img-slot::-webkit-scrollbar-corner{ background:#1a0a12; }

.lightbox-info{ padding:14px 16px 16px; }
.lightbox-info .pairing{ font-family:var(--cute); color:var(--p5); font-size:17px; margin-bottom:2px; }
.lightbox-info .lb-title{ font-size:11.5px; opacity:.7; margin-bottom:6px; }
.lightbox-info .art-server{ margin-bottom:8px; font-size:11.5px; }
.lightbox-info .art-meta{ font-size:11.5px; justify-content:flex-start; gap:14px; }
.lightbox-hint{ font-size:10px; opacity:.6; margin-top:6px; }

.lb-players{ margin-top:12px; }
.lb-players-toggle{
  background:#fbe0ec; color:var(--p5); border:1px solid var(--p3); border-radius:999px;
  font-size:10.5px; padding:5px 12px; font-family:inherit; font-weight:bold; cursor:pointer;
  display:inline-flex; align-items:center; gap:5px;
}
.lb-players-toggle:hover{ background:var(--p2); }
.lb-players-list{
  max-height:0; overflow:hidden; transition:max-height .25s ease, padding .25s ease, margin .25s ease;
  background:#fff5f9; border:1px solid var(--p2); border-radius:7px; margin-top:0;
}
.lb-players-list.open{ max-height:220px; overflow-y:auto; margin-top:8px; padding:6px 4px; }
.lb-player-item{ padding:5px 9px; font-size:11px; border-bottom:1px dashed #f3c3da; }
.lb-player-item:last-child{ border-bottom:none; }
.lb-player-item a{ font-weight:bold; text-decoration:none; border-bottom:1px dotted #a3195b; }
.lb-player-item a:hover{ color:var(--green-ink); border-color:var(--green-ink); }
.lightbox-comments{ margin-top:16px; padding-top:14px; border-top:1px dashed var(--p2); }

.lightbox-nav{
  position:absolute; top:50%; transform:translateY(-50%); width:34px; height:34px; border-radius:50%;
  background:var(--p6); color:#ffe6f3; border:1px solid rgba(255,255,255,.5); font-size:16px; cursor:pointer;
  display:flex; align-items:center; justify-content:center; z-index:2;
}
.lightbox-nav:hover{ background:var(--green-ink); }
.lightbox-nav.prev{ left:-46px; }
.lightbox-nav.next{ right:-46px; }
@media (max-width:960px){ .lightbox-nav.prev{ left:6px; } .lightbox-nav.next{ right:6px; } }

.fic-row{
  display:flex; gap:10px; background:var(--panel); border:1px solid var(--p3); border-radius:6px;
  padding:10px; margin-bottom:10px; text-decoration:none; color:inherit; cursor:pointer;
  transition:box-shadow .12s ease, transform .12s ease;
}
.fic-row:hover{ box-shadow:0 3px 8px rgba(176,43,100,.22); transform:translateY(-1px); color:inherit; }
.fic-cover{ width:70px; height:92px; flex:none; border-radius:5px; object-fit:cover; }
.fic-cover.ph{
  border:2px dashed var(--p3); background:#fff5f9; color:var(--p3); font-size:22px;
  display:flex; align-items:center; justify-content:center;
}
.fic-info{ flex:1; min-width:0; }
.fic-info h3{ margin:0 0 3px; font-size:14px; color:var(--p5); font-family:var(--cute); }
.fic-tags{ margin-bottom:4px; }
.fic-tag{
  display:inline-block; background:#fbe0ec; color:var(--p5); border:1px solid var(--p3);
  border-radius:999px; font-size:9.5px; padding:1px 8px; margin:0 3px 3px 0;
}
.fic-tag.green{ background:#e8f7ec; color:var(--green-ink); border-color:var(--green-ink); }
.fic-tag.warn{ background:#ffe1e1; color:#a3193b; border-color:#e18e8e; }
.fic-snippet{
  font-size:11px; opacity:.85; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden;
}
.fic-foot{ margin-top:4px; font-size:9.5px; opacity:.65; display:flex; gap:10px; flex-wrap:wrap; }

.back-link{ display:inline-block; margin-bottom:12px; font-weight:bold; font-size:11.5px; }
.fic-header{ display:flex; gap:16px; margin-bottom:14px; }
.fic-header .fic-cover{ width:110px; height:145px; }
.fic-header h1{ margin:0 0 6px; font-family:var(--cute); font-size:24px; color:var(--p5); }
.fic-header .pairing{ font-weight:bold; color:var(--p5); font-size:13px; margin-bottom:6px; }
.fic-header .fic-tag{ font-size:10px; padding:2px 9px; margin:0 4px 4px 0; }
.fic-meta-row{ font-size:10.5px; opacity:.75; display:flex; gap:14px; flex-wrap:wrap; }
.summary{ margin-top:14px; padding-top:14px; border-top:1px dashed var(--p2); font-size:12.5px; line-height:1.6; white-space:pre-wrap; }
.summary-label{ font-family:var(--cute); color:var(--p5); font-size:13px; margin-bottom:6px; }
.fic-divider{ text-align:center; font-family:var(--pixel); font-size:9px; color:var(--p4); margin:20px 0; letter-spacing:2px; }
.fic-divider::before, .fic-divider::after{ content:"— ✦ —"; }
.fic-body{ font-size:13.5px; line-height:1.85; }
.fic-body p{ margin:0 0 14px; }
.fic-body .scene-break{ text-align:center; color:var(--p4); margin:18px 0; letter-spacing:6px; }
.end-note{ text-align:center; font-size:11.5px; margin-top:6px; }

.like-block{
  display:flex; flex-direction:column; align-items:center; gap:6px; padding:16px; margin:22px 0;
  border:1px dashed var(--p4); border-radius:8px;
  background:repeating-linear-gradient(45deg, #fff 0 8px, #fff5f9 8px 16px);
}
.like-block .prompt{ font-size:11.5px; font-weight:bold; color:var(--p5); }
.like-btn{
  background:linear-gradient(180deg, var(--p3), var(--p4) 55%, var(--p5)); color:#fff;
  border:1px solid var(--p6); border-radius:999px; padding:8px 22px; font-weight:bold; font-size:13px;
  cursor:pointer; font-family:inherit; box-shadow:inset 0 1px 0 rgba(255,255,255,.5), 0 2px 4px rgba(0,0,0,.2);
}
.like-btn:hover{ filter:brightness(1.06); }
.like-btn.liked{ background:var(--green); color:#26330a; border-color:var(--green-ink); }

.like-mini{
  background:#fbe0ec; color:var(--p5); border:1px solid var(--p3); border-radius:999px;
  font-size:10.5px; padding:1px 8px; font-family:inherit; font-weight:bold; cursor:pointer;
}
.like-mini:hover{ background:var(--p2); }
.like-mini.liked{ background:var(--green); color:#26330a; border-color:var(--green-ink); }

.cmt-title{ font-family:var(--cute); font-size:17px; color:var(--p5); margin-bottom:10px; }
.cmt-title .cmt-count{ font-size:12px; opacity:.6; }
.cmt-item{ background:#fff; border:1px solid var(--p2); border-radius:8px; padding:8px 10px; margin-bottom:8px; }
.cmt-item.reply{ margin:8px 0 0 18px; background:#fff8fc; }
.cmt-head{ display:flex; align-items:center; gap:7px; flex-wrap:wrap; margin-bottom:3px; }
.cmt-name{ font-weight:bold; color:var(--p5); font-size:12px; }
.cmt-name.guest{ color:#7d6a75; }
.cmt-badge{
  font-size:9px; font-weight:bold; border-radius:999px; padding:0 7px;
  background:#fbe0ec; color:var(--p5); border:1px solid var(--p3);
}
.cmt-badge.staff{ background:var(--green); color:#26330a; border-color:var(--green-ink); }
.cmt-badge.guest{ background:#eee; color:#777; border-color:#ccc; }
.cmt-date{ font-size:9.5px; opacity:.55; margin-left:auto; }
.cmt-body{ font-size:12.5px; line-height:1.55; white-space:pre-wrap; word-break:break-word; }
.cmt-actions{ display:flex; gap:8px; align-items:center; margin-top:6px; }
.cmt-reply-btn{ background:none; border:none; color:var(--p5); font-size:10.5px; font-weight:bold; cursor:pointer; font-family:inherit; padding:0; text-decoration:underline; }
.cmt-form{ margin-top:12px; padding:10px; border:1px dashed var(--p3); border-radius:8px; background:#fff8fc; }
.cmt-form.inline{ margin:8px 0 0; }
.cmt-form .who{ font-size:11px; margin-bottom:6px; }
.cmt-form .row{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:8px; }
.cmt-form .note{ font-size:10.5px; opacity:.75; margin-top:6px; line-height:1.45; }
.cmt-form input[type=text]{ max-width:240px; margin-bottom:6px; }

.adm-h{ font-family:var(--cute); font-size:17px; color:var(--p5); margin:18px 0 8px; }
.adm-item{ display:flex; gap:12px; border:1px solid var(--p3); background:#fff; border-radius:8px; padding:10px; margin-bottom:10px; }
.adm-item img{ width:120px; max-height:150px; object-fit:cover; border-radius:5px; flex:none; }
.adm-main{ flex:1; min-width:0; }
.adm-main h4{ margin:0 0 3px; font-family:var(--cute); color:var(--p5); font-size:14px; }
.adm-meta{ font-size:10.5px; opacity:.75; margin-bottom:5px; }
.adm-text{ font-size:11.5px; white-space:pre-wrap; word-break:break-word; max-height:140px; overflow:auto; background:#fff8fc; border:1px solid var(--p2); border-radius:5px; padding:6px; user-select:text; -webkit-user-select:text; }
.adm-actions{ display:flex; gap:6px; flex-wrap:wrap; margin-top:8px; }
.adm-users{ width:100%; border-collapse:collapse; font-size:11.5px; }
.adm-users th, .adm-users td{ text-align:left; padding:5px 6px; border-bottom:1px dashed var(--p2); }
.adm-users select{ font-family:inherit; font-size:11px; }
@media (max-width:600px){ .adm-item{ flex-direction:column; } .adm-item img{ width:100%; max-height:260px; } }

.info-page{ font-size:13px; line-height:1.7; }
.info-page h1{ font-family:var(--cute); font-size:24px; color:var(--p5); margin:0 0 6px; }
.info-page .info-sub{ font-size:11.5px; opacity:.75; margin-bottom:18px; }

.oldnet-page{ font-size:13.5px; line-height:1.75; color:var(--ink); }
.oldnet-page h1{
  font-family:var(--pixel); font-size:16px; color:var(--p6); text-align:center; margin:0 0 4px;
  text-shadow:1px 1px 0 #fff;
}
.oldnet-page .oldnet-sub{ text-align:center; font-size:11px; opacity:.7; margin-bottom:6px; }
.oldnet-divider{ text-align:center; color:var(--p4); letter-spacing:3px; margin:20px 0; font-size:13px; user-select:none; }
.oldnet-section h2{
  font-family:var(--cute); font-weight:800; font-size:15px; color:var(--p5); margin:0 0 8px;
  border-bottom:2px dotted var(--p3); padding-bottom:3px; display:inline-block;
}
.oldnet-section p{ margin:0 0 9px; }
.oldnet-section ul{ margin:0 0 9px; padding-left:22px; }
.oldnet-section li{ margin-bottom:5px; }
.oldnet-blink{ font-family:var(--pixel); font-size:9px; color:var(--p6); }
.oldnet-hit{
  display:inline-block; background:#000; color:#0f0; font-family:'Courier New', monospace; font-size:11px;
  padding:2px 8px; border:1px solid #333;
}
.webring{
  text-align:center; font-family:var(--pixel); font-size:8px; color:var(--p5); margin-top:22px;
  padding-top:14px; border-top:2px dashed var(--p3);
}

.info-block{
  background:#fff; border:1px solid var(--p3); border-radius:8px; padding:14px 16px; margin-bottom:14px;
}
.info-block h2{ font-family:var(--cute); font-size:16px; color:var(--p5); margin:0 0 8px; display:flex; align-items:center; gap:7px; }
.info-block p{ margin:0 0 10px; }
.info-block p:last-child{ margin-bottom:0; }
.info-block ul{ margin:0 0 10px; padding-left:20px; }
.info-block li{ margin-bottom:6px; }
.info-block li:last-child{ margin-bottom:0; }
.info-block.highlight{ background:#fff5f9; border-color:var(--p4); }
.info-contact{
  display:inline-flex; align-items:center; gap:6px; background:#fbe0ec; border:1px solid var(--p3);
  border-radius:999px; padding:6px 14px; font-weight:bold; color:var(--p5); text-decoration:none; margin:4px 6px 0 0;
}
.info-contact:hover{ background:var(--p2); }

.spoiler{ border:1px solid var(--p3); border-radius:8px; background:#fff8fc; padding:0; margin-top:6px; overflow:hidden; }
.spoiler summary{
  cursor:pointer; list-style:none; padding:10px 14px; font-weight:bold; color:var(--p5);
  display:flex; align-items:center; gap:8px; user-select:none; -webkit-user-select:none;
}
.spoiler summary::-webkit-details-marker{ display:none; }
.spoiler summary::before{ content:"▸"; transition:transform .15s ease; }
.spoiler[open] summary::before{ transform:rotate(90deg); }
.spoiler .spoiler-body{ padding:0 14px 14px; }
.credit-list{ list-style:none; margin:0; padding:0; }
.credit-list li{ padding:6px 0; border-top:1px dashed #f3c3da; font-size:12px; }
.credit-list li:first-child{ border-top:none; }
.credit-list b{ color:var(--p5); }

.search-q{ font-size:11.5px; opacity:.8; margin-bottom:14px; }
.search-group{ margin-bottom:24px; }
.search-group h2{ font-family:var(--cute); font-size:16px; color:var(--p5); margin:0 0 10px; }
.search-results-fic{ margin-bottom:10px; }

.profile-head{
  display:flex; gap:22px; align-items:center; margin:10px 18px 22px; padding:24px 26px; flex-wrap:wrap;
  position:relative; border-radius:10px; border:2px dashed var(--p3);
  background:repeating-linear-gradient(135deg, #fff 0 10px, #fff5fa 10px 20px);
}
.profile-head::before, .profile-head::after{
  content:"✦"; position:absolute; font-size:13px; color:var(--p3); opacity:.8;
}
.profile-head::before{ top:8px; left:10px; }
.profile-head::after{ bottom:8px; right:12px; }
.profile-head .avatar-img{
  box-sizing:border-box; width:84px; height:84px; font-size:32px; border-width:3px; padding:4px;
  background-color:#fff; box-shadow:0 3px 8px rgba(176,43,100,.25); margin:2px;
}
.profile-head h1{ font-family:var(--cute); font-size:30px; color:var(--p5); margin:0 0 2px; }
.profile-role{ font-size:13px; font-weight:bold; opacity:.75; margin-top:-2px; }
.profile-bio{
  background:#fff; border:1px solid var(--p3); border-radius:8px; padding:16px 18px;
  font-size:12.5px; line-height:1.6; white-space:pre-wrap; margin:0 18px 20px;
}
.profile-bio.empty{ opacity:.6; font-style:italic; }

.profile-stats{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:0 18px 22px; }
.profile-stats .btn, .profile-stats .like-btn{ padding:6px 15px; font-size:11.5px; }
.profile-stat{
  background:#fbe0ec; color:var(--p5); border:1px solid var(--p3); border-radius:999px;
  font-size:11.5px; padding:6px 14px; font-family:inherit; font-weight:bold; cursor:pointer;
}
.profile-stat:hover{ background:var(--p2); }
.profile-stat b{ font-weight:800; }
.btn.following{ background:linear-gradient(180deg,#c4e85a,var(--green) 55%,#7fa80c); color:#26330a; border-color:var(--green-ink); text-shadow:none; }

.spoiler.nonrp{ border:none; background:none; border-radius:0; }
.spoiler.nonrp summary{
  padding:2px 0; font-size:10.5px; font-weight:normal; opacity:.55; color:var(--ink); gap:5px;
  display:inline-flex;
}
.spoiler.nonrp summary::before{ font-size:9px; }
.spoiler.nonrp .spoiler-body{ padding:8px 0 0; }

.profile-joined{ font-size:11.5px; opacity:.75; margin-bottom:10px; }
.profile-extra-h{ font-family:var(--cute); font-weight:700; color:var(--p5); font-size:13px; margin:14px 0 7px; }
.profile-table{ width:100%; border-collapse:collapse; font-size:11.5px; background:#fff; border:1px solid var(--p3); border-radius:7px; overflow:hidden; }
.profile-table th{ text-align:left; background:#fbe0ec; color:var(--p5); padding:6px 10px; font-family:var(--cute); font-weight:700; font-size:11px; }
.profile-table td{ padding:6px 10px; border-top:1px dashed var(--p2); }
.profile-table tr:first-child td{ border-top:none; }
.profile-smp-tags{ display:flex; flex-wrap:wrap; gap:5px; }
.profile-smp-tags span{
  background:#fbe0ec; color:var(--p5); border:1px solid var(--p3);
  border-radius:999px; font-size:10px; padding:4px 10px; font-weight:bold;
}
.profile-extra-empty{ font-size:11px; opacity:.6; font-style:italic; }

.profile-works-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin:0 18px; }
@media (max-width:600px){ .profile-works-grid{ grid-template-columns:repeat(2,1fr); } }
.profile-fics{ margin:0 18px; }

.conn-list{ display:flex; flex-direction:column; gap:5px; max-height:52vh; overflow:auto; margin-top:8px; }
.conn-item{
  display:flex; align-items:center; gap:9px; padding:6px 8px; border-radius:6px;
  text-decoration:none; color:inherit;
}
.conn-item:hover{ background:#fff5f9; }
.conn-item .cname{ font-weight:bold; color:var(--p5); font-size:12px; }
.conn-item .crole{ font-size:9.5px; opacity:.65; margin-left:auto; }

.search-users{ display:flex; flex-direction:column; gap:6px; }

.accent-pink   .profile-head .avatar-img{ border-color:#e14f8c; }
.accent-pink   .profile-head h1{ color:#e14f8c; }
.accent-lilac  .profile-head .avatar-img{ border-color:#9b7fd4; }
.accent-lilac  .profile-head h1{ color:#8a6bc9; }
.accent-mint   .profile-head .avatar-img{ border-color:#4aab8d; }
.accent-mint   .profile-head h1{ color:#3f9a7d; }
.accent-peach  .profile-head .avatar-img{ border-color:#e0925a; }
.accent-peach  .profile-head h1{ color:#d6813f; }
.accent-sky    .profile-head .avatar-img{ border-color:#4a94c9; }
.accent-sky    .profile-head h1{ color:#3d84b8; }

.accent-picker{ display:flex; gap:10px; flex-wrap:wrap; margin:8px 10px 20px; padding:12px 14px; border-radius:8px; background:#fff5fa; border:1px dashed var(--p3); }
.accent-swatch{
  width:30px; height:30px; border-radius:50%; border:2px solid transparent; cursor:pointer; padding:0;
  box-sizing:border-box; box-shadow:0 1px 3px rgba(176,43,100,.25);
}
.accent-swatch.selected{ border-color:var(--p6); box-shadow:0 0 0 2px #fff inset, 0 1px 3px rgba(176,43,100,.35); }
.accent-swatch.sw-pink{ background:#e14f8c; } .accent-swatch.sw-lilac{ background:#9b7fd4; }
.accent-swatch.sw-mint{ background:#4aab8d; } .accent-swatch.sw-peach{ background:#e0925a; }
.accent-swatch.sw-sky{ background:#4a94c9; }
.avatar-upload-row{ display:flex; align-items:center; gap:16px; margin:10px 10px 22px; padding:18px 20px; flex-wrap:wrap; border-radius:8px; border:2px dashed var(--p3); background:repeating-linear-gradient(135deg, #fff 0 10px, #fff5fa 10px 20px); }
.avatar-upload-row .avatar-img{ box-sizing:border-box; width:64px; height:64px; font-size:24px; padding:3px; background-color:#fff; box-shadow:0 2px 6px rgba(176,43,100,.22); }
.switch-row{ display:flex; align-items:center; gap:8px; font-size:11.5px; font-weight:bold; color:var(--p5); margin:18px 10px; }

html.err404-html, html.err404-html body{ height:100%; margin:0; overflow:hidden; }
.err404-wrap{
  height:100vh; height:100dvh; display:flex; background:var(--page-bg);
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,.35) 0 2px, transparent 2px 14px),
    radial-gradient(circle at 50% 0%, #ffe3f0 0%, var(--page-bg) 60%);
}
.err404-img{
  flex:0 0 33.333%; max-width:33.333%; height:100%; overflow:hidden; position:relative;
}
.err404-img img{ width:100%; height:100%; object-fit:cover; display:block; }
.err404-right{ flex:1; display:flex; align-items:center; justify-content:center; padding:24px; min-width:0; }
.err404-content{ text-align:center; max-width:420px; }
.err404-content .code{
  font-family:var(--pixel); font-size:34px; color:var(--p5); letter-spacing:2px; line-height:1.4;
  text-shadow:2px 2px 0 #fff, 3px 3px 0 var(--p3);
}
.err404-content .msg{ font-family:var(--cute); font-size:16px; color:var(--p6); margin-top:14px; line-height:1.6; }
.err404-content .btn{ margin-top:20px; display:inline-block; text-decoration:none; }
@media (max-width:680px){
  .err404-wrap{ flex-direction:column; }
  .err404-img{ flex:0 0 33.333%; max-width:100%; width:100%; height:33.333%; }
  .err404-right{ height:66.667%; }
  .err404-content .code{ font-size:24px; }
}

.secret-wrap{ text-align:center; padding:40px 16px; }
.secret-wrap h1{ font-family:var(--cute); font-size:26px; color:var(--p5); }
.secret-wrap .sparkletext{ font-size:13px; line-height:1.9; max-width:480px; margin:16px auto; }

.lightbox-box{ max-width:1040px; }
.lightbox-img-slot{ height:72vh; min-height:380px; position:relative; touch-action:none; }
.lightbox-img-slot img{ cursor:grab; transition:transform .16s cubic-bezier(.22,.8,.24,1); will-change:transform; -webkit-user-drag:none; -webkit-touch-callout:none; user-select:none; }
.lightbox-img-slot img.zoomed{ cursor:grab; }
.lightbox-img-slot img.dragging{ cursor:grabbing; transition:none; }
.lb-zoom-controls{
  position:absolute; right:8px; bottom:8px; display:flex; gap:4px; z-index:3;
}
.lb-zoom-controls button{
  width:28px; height:28px; border-radius:6px; background:rgba(30,6,18,.6); color:#ffe6f3;
  border:1px solid rgba(255,255,255,.4); font-size:15px; cursor:pointer; display:flex; align-items:center; justify-content:center;
}
.lb-zoom-controls button:hover{ background:rgba(30,6,18,.85); }
