:root {
  color-scheme: dark;
  --ink: #ebebeb;
  --black: #000000;
  --quote: #23272e;
  --panel: #394049;
  --bar: #49525d;
  --caption: #586370;
  --frame: #333333;
  --hover: #abc0da;
  --halloween: #ff9900;
  --christmas: #00bb00;
  --notice: #fb7d00;
  --notice-edge: #a65300;
}

* { box-sizing: border-box; }

html {
  height: 100%;
  overflow-y: scroll;
}

body {
  margin: 0;
  height: 100%;
  background-color: var(--black);
  color: var(--ink);
  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-size: 13px;
  line-height: normal;
  text-align: center;
}

a { color: #ffffff; }
a:hover { color: var(--hover); }

.shell p { margin: 0; }

.shell {
  max-width: 1200px;
  min-height: 100%;
  margin: 0 auto;
  padding: 0 20px 0;
  background-color: rgba(88, 99, 112, 0.5);
  background-image:
    linear-gradient(90deg,
      #000000 0 2px,
      #333333 2px 3px,
      #000000 3px 5px,
      #2a2a2a 5px 6px,
      #2c2c2c 6px 7px,
      #2d2d2d 7px 8px,
      #2c2c2c 8px 9px,
      #292929 9px 10px,
      #242424 10px 11px,
      #1d1d1d 11px 12px,
      #161616 12px 13px,
      #0f0f0f 13px 14px,
      #0a0a0a 14px 15px,
      #050505 15px 16px,
      #030303 16px 18px,
      #000000 18px 20px
    ),
    linear-gradient(90deg,
      #000000 0 2px,
      #030303 2px 3px,
      #050505 3px 4px,
      #0a0a0a 4px 5px,
      #0f0f0f 5px 6px,
      #161616 6px 7px,
      #1d1d1d 7px 8px,
      #242424 8px 9px,
      #292929 9px 10px,
      #2c2c2c 10px 11px,
      #2d2d2d 11px 12px,
      #2c2c2c 12px 13px,
      #2a2a2a 13px 14px,
      #282828 14px 15px,
      #262626 15px 16px,
      #000000 16px 18px,
      #333333 18px 19px,
      #000000 19px 20px
    );
  background-repeat: no-repeat;
  background-size: 20px 100%, 20px 100%;
  background-position: left top, right top;
  background-origin: border-box;
  text-align: left;
}

.frame {
  position: relative;
  container-type: inline-size;
  background: transparent;
}

.banner {
  position: relative;
  z-index: 0;
  background: var(--black);
}

.banner canvas {
  display: block;
  width: 100%;
  height: auto;
  background: var(--black);
}

.nav {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 0 calc(2px + 100% * 5 / 850);
  line-height: normal;
  background-color: var(--black);
  background-image:
    linear-gradient(180deg,
      #69737f 0% 25%,
      rgba(103, 113, 126, 0.902) 25% 33.333%,
      rgba(102, 112, 124, 0.800) 33.333% 41.667%,
      rgba(100, 110, 123, 0.702) 41.667% 50%,
      rgba(98, 109, 121, 0.600) 50% 58.333%,
      rgba(96, 107, 119, 0.498) 58.333% 66.667%,
      rgba(95, 105, 118, 0.400) 66.667% 75%,
      rgba(93, 104, 116, 0.298) 75% 83.333%,
      rgba(91, 102, 115, 0.196) 83.333% 91.667%,
      rgba(90, 101, 113, 0.098) 91.667% 100%,
      rgba(88, 99, 112, 0) 100%
    ),
    linear-gradient(rgba(88, 99, 112, 0.5), rgba(88, 99, 112, 0.5)),
    var(--page-image, none);
  background-repeat: no-repeat, no-repeat, var(--page-repeat, repeat);
  background-position: 0 0, 0 0, var(--page-position, left top);
  background-size: 100% 100%, auto, auto;
  background-attachment: scroll, scroll, fixed;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav a,
.nav a:hover { color: #ffffff; text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav-right a,
.nav-right a:hover { color: #ebebeb; }
.nav-halloween,
.nav-halloween:hover { color: var(--halloween); }
.nav-christmas,
.nav-christmas:hover { color: var(--christmas); }

.layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 5fr 650fr 5fr 185fr 5fr;
  align-items: start;
  background-color: var(--black);
  background-image:
    linear-gradient(rgba(88, 99, 112, 0.5), rgba(88, 99, 112, 0.5)),
    var(--page-image, none);
  background-repeat: no-repeat, var(--page-repeat, repeat);
  background-position: 0 0, var(--page-position, left top);
  background-size: auto, auto;
  background-attachment: scroll, fixed;
}

.main { grid-column: 2; min-width: 0; container-type: inline-size; }
.layout-wide { grid-template-columns: 5fr 840fr 5fr; }
.layout-wide .main { grid-column: 2; }
.sidebar { grid-column: 4; min-width: 0; }

.notice {
  margin-bottom: 0;
  padding: 5px;
  border: 3px solid var(--notice-edge);
  background: var(--black);
  color: var(--notice);
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
}

.stripe {
  background-image: repeating-linear-gradient(to bottom, #333333 0 1px, #000000 1px 2px);
}

.crumb { padding: 6px; }
.crumb-inner {
  background: var(--bar);
  font-weight: 700;
}

.quote {
  margin-top: calc(100% * 2 / 650);
  padding: calc(100% * 10 / 650);
  background: var(--quote);
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
}

.news {
  display: grid;
  grid-template-columns: 200fr 3fr 445fr 2fr;
  margin-top: calc(100% * 2 / 650);
  aspect-ratio: 650 / 150;
  background: var(--panel);
}

.news-pic,
.news-fallback {
  grid-column: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: var(--quote);
}

.news-list {
  grid-column: 3;
  height: 100%;
  overflow: auto;
}

.news-list p { margin: 0; }
.news-list a { text-decoration: underline; }
.news-list a:hover { color: #ffffff; }

.caption {
  margin: 0;
  padding: calc(100% * 5 / 650);
  border: 0;
  box-shadow: inset 0 0 0 calc(100cqw * 2 / 650 + 1px) var(--panel);
  background: var(--caption);
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
}

.intro {
  position: relative;
  aspect-ratio: 650 / 325;
  margin: 0;
  background: var(--black);
}

.intro-edge {
  aspect-ratio: 650 / 10;
  background: #586370;
}

.box { margin: 0 0 calc(100% * 5 / 185); padding: 6px; }
.box-follow { margin-top: calc(100% * -5 / 185); padding-top: 0; }
.box-inner { padding: calc(100% * 2 / 175); background: var(--bar); container-type: inline-size; }

.box h2 {
  margin: 0 0 calc(100% * 2 / 171);
  padding: calc(100% * 4 / 171);
  border: 0;
  background: var(--panel);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
}

.box-news .group,
.box-news .item { padding: 0 5px; }
.box-news .group:first-of-type { padding-top: 2px; }
.box-news .item:last-child { padding-bottom: 4px; }
.group { margin: 0; font-weight: 400; }
.group-halloween { color: var(--halloween); }
.group-christmas { color: var(--christmas); }

.item { margin: 0; }
.item a { text-decoration: underline; }
.item a:hover { color: var(--hover); }
.item.tier-vip a { color: #ffff77; }
.item.tier-vip a:hover { color: #cccc55; }
.item.tier-wtf a { color: #ff8888; }
.item.tier-wtf a:hover { color: #ff4444; }
.item.tier-epic a { color: #ff00ff; }
.item.tier-epic a:hover { color: var(--hover); }
.item.tier-archive { opacity: 0.33; }

.login-form { padding-top: calc(100% * 5 / 171); text-align: center; }
.login-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.login-form input[type="text"],
.login-form input[type="password"] {
  display: block;
  width: calc(100% * 161 / 171);
  aspect-ratio: 161 / 20;
  height: auto;
  margin: 0 auto calc(100% * 3 / 171);
  padding: 0;
  border: 0;
  background: var(--panel);
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: calc(100cqw * 10 / 171);
  line-height: normal;
  text-align: center;
}
.login-form input::placeholder { color: #757575; opacity: 1; }
.login-form input[type="password"] { margin-bottom: calc(100% * 2 / 171); }
.login-form button {
  width: calc(100% * 169 / 171);
  aspect-ratio: 169 / 17;
  height: auto;
  margin: calc(100% * 5 / 171) 0 calc(100% * 1 / 171);
  padding: 0;
  border: 0;
  background: var(--panel);
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: calc(100cqw * 12 / 171);
  line-height: normal;
  cursor: pointer;
}
.register-link { display: block; text-align: center; }
.login-form label.login-keep {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  margin-top: calc(100% * 4 / 171);
  font-size: calc(100cqw * 10 / 171);
  font-weight: 400;
  letter-spacing: 0;
}
.login-form label.login-keep input {
  width: auto;
  height: auto;
  margin: 0;
}
.member-box {
  position: absolute;
  z-index: 3;
  top: calc(100cqw * 60 / 850);
  width: calc((100cqw + 40px) * 160 / 890);
  right: calc(-20px - (100cqw + 40px) * 160 / 890);
  container-type: inline-size;
}
.member-face {
  background:
    linear-gradient(#586370, #586370) top / 100% calc(100cqw * 5 / 160) no-repeat,
    linear-gradient(#586370, #586370) bottom / 100% calc(100cqw * 5 / 160) no-repeat,
    #394049;
  padding-top: calc(100cqw * 5 / 160);
  padding-bottom: calc(100cqw * 5 / 160);
  color: #ebebeb;
  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-size: calc(100cqw * 10 / 160);
  font-weight: 700;
  line-height: normal;
  text-align: center;
}
.member-face form { margin: 0; }
.member-avatar {
  width: calc(100cqw * 151 / 160);
  height: calc(100cqw * 151 / 160);
  margin: calc(100cqw * 4 / 160);
  padding: calc(100cqw * 13 / 160);
  background: #394049 url("/assets/avatars/userpicBack.jpg") center / 100% 100% no-repeat;
}
.member-avatar img { display: block; width: 100%; height: 100%; }
.member-gap { height: calc(100cqw * 2 / 160); background: #23272e; }
.member-gap-keep { height: calc(100cqw * 5 / 160); }
.member-exp { height: calc(100cqw * 5 / 160); background: #23272e; overflow: hidden; }
.member-exp span {
  display: block;
  width: calc(var(--bar) * 100% / 160);
  height: 100%;
  background: linear-gradient(#788696 0 60%, #586370 60% 100%);
}
.member-flag {
  display: grid;
  grid-template-columns: 35fr 90fr 35fr;
  color: #ffffff;
}
.member-flag span { grid-column: 2; }
.member-vip { background: #777700; }
.member-wtf { background: #770000; }
.member-epic { background: #730fb5; }
.member-vip span { background: #aaaa00; }
.member-wtf span { background: #aa0000; }
.member-epic span { background: #a335ee; }
.member-break { height: 1.2em; }
.member-face button {
  display: block;
  width: 100%;
  margin: 0;
  border: 0;
  background: #23272e;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-weight: 700;
  letter-spacing: calc(100cqw * 1 / 160);
  text-align: center;
  cursor: pointer;
}
.member-keep { padding: calc(100cqw * 2 / 160) 0; font-size: calc(100cqw * 10 / 160); }
.member-logout { padding: 0; font-size: calc(100cqw * 12 / 160); }

.browse {
  margin: 0;
  padding: calc(100% * 5 / 650 - 2px) 0 calc(100% * 5 / 650);
  color: #cccccc;
  font-weight: 700;
  font-size: calc(100cqw * 12 / 650);
  letter-spacing: 1px;
  text-align: center;
}
.browse-label,
.browse a,
.browse a:hover { color: #ffffff; }
.browse a { text-decoration: none; }
.browse a:hover { text-decoration: underline; }
.browse-current { color: var(--hover); }

.list-row {
  display: grid;
  grid-template-columns: 250fr 400fr;
}
.list-pic {
  position: relative;
  display: block;
  min-width: 0;
  aspect-ratio: 250 / 140;
  background: #000;
}
.list-pic img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.list-copy {
  display: grid;
  grid-template-rows: 4fr 10fr 19fr 76fr 19fr 10fr 2fr;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0 calc(100% * 10 / 400);
}
.list-row .list-title { grid-row: 3; }
.list-row .list-desc { grid-row: 4; }
.list-row .list-by { grid-row: 5; }
.list-row .list-title,
.list-row .list-by {
  display: flex;
  align-items: center;
  margin: 0;
  overflow: hidden;
  background: var(--caption);
  font-weight: 700;
  white-space: nowrap;
}
.list-row .list-title { justify-content: center; border-bottom: 4px solid var(--panel); }
.list-row .list-by { border-top: 4px solid var(--panel); }
.list-row .list-title a { color: #ffffff; }
/* Same trial inset as .catalog-copy: sides +5px, bottom +4px. */
.list-row .list-desc {
  margin: 0;
  padding: calc(100% * 3 / 400) calc(100% * 3 / 400 + 5px) calc(100% * 3 / 400 + 4px);
  overflow: hidden;
  background: var(--bar);
}
.list-row.tier-vip .list-title,
.list-row.tier-vip .list-by { background: #777651; border-color: #4d4b3e; }
.list-row.tier-vip .list-desc { background: #5c5b47; }
.list-row.tier-wtf .list-title,
.list-row.tier-wtf .list-by { background: #775151; border-color: #4d4040; }
.list-row.tier-wtf .list-desc { background: #5b4848; }
.list-row.tier-epic .list-title,
.list-row.tier-epic .list-by { background: #5e5276; border-color: #3c3445; }
.list-row.tier-epic .list-desc { background: #51465e; }
.list-row.tier-archive { opacity: 0.33; }
.list-spacer { height: calc(100cqw * 5 / 650); }

.catalog {
  display: grid;
  grid-template-columns: 321fr 8fr 321fr;
  align-items: start;
}
.catalog-card {
  background: var(--panel);
  border: 3px solid var(--caption);
}
.catalog-card h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  aspect-ratio: 317 / 20;
  background: var(--caption);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
}
.catalog-card h2 + .catalog-stack { margin-top: calc(100% * 17 / 317); }
.catalog-stack:last-child { padding-bottom: calc(100% * 12 / 317); }
.catalog-stack + h2 { margin-top: calc(100% * 12 / 317); }
.catalog-item + .catalog-item { margin-top: calc(100% * 12 / 317); }
.catalog-item { text-align: center; }
.catalog-frame {
  display: block;
  width: calc(100% * 270 / 317);
  aspect-ratio: 270 / 160;
  margin: 0 auto;
  padding: calc(100% * 10 / 317);
  background: #000 url("/assets/index0/contentBack.jpg") center / 100% 100% no-repeat;
}
.catalog-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.catalog-card .catalog-title {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% * 280 / 317);
  aspect-ratio: 280 / 19;
  margin: 0 auto;
  border-bottom: 4px solid var(--panel);
  background: var(--caption);
  font-weight: 700;
  text-align: center;
}
.catalog-card .catalog-title a { color: #ffffff; }
.catalog-card .catalog-by { margin-top: calc(100% * 3 / 317); }
/* Trial inset on description bars. Sides are +5px, bottom is +4px. Revert by removing each addition. */
.catalog-card .catalog-copy {
  width: calc(100% * 280 / 317);
  margin: 0 auto;
  padding: calc(100% * 3 / 317) calc(100% * 3 / 317 + 5px) calc(100% * 3 / 317 + 4px);
  background: var(--bar);
  text-align: left;
}
.catalog-item.tier-vip .catalog-title,
.catalog-item.tier-vip .catalog-by { background: #777651; border-bottom-color: #4d4b3e; }
.catalog-item.tier-vip .catalog-copy { background: #5c5b47; }
.catalog-item.tier-wtf .catalog-title,
.catalog-item.tier-wtf .catalog-by { background: #775151; border-bottom-color: #4d4040; }
.catalog-item.tier-wtf .catalog-copy { background: #5b4848; }
.catalog-item.tier-epic .catalog-title,
.catalog-item.tier-epic .catalog-by { background: #5e5276; border-bottom-color: #3c3445; }
.catalog-item.tier-epic .catalog-copy { background: #51465e; }
.catalog-item.tier-archive { opacity: 0.33; }
.vaults { display: flex; flex-direction: column; gap: 1px; }
.vault {
  display: grid;
  grid-template-columns: 50fr 216fr 51fr;
  aspect-ratio: 317 / 52;
}
.vault-pic {
  background-color: #000;
  background-repeat: no-repeat;
  background-position: 15% 50%;
  background-size: calc(100% * 125 / 50) calc(100% * 70 / 52);
}
.vault-pic-right {
  background-position: 85% 50%;
  background-size: calc(100% * 125 / 51) calc(100% * 70 / 52);
}
.vault-title {
  display: grid;
  grid-template-rows: 17fr 18fr 17fr;
  min-width: 0;
  background: url("/assets/index0/contentLine.jpg") center / calc(100% * 3 / 216) calc(100% * 50 / 52) repeat;
}
.vault-name {
  display: flex;
  grid-row: 2;
  align-items: center;
  justify-content: center;
  min-width: 0;
  background: var(--caption);
  font-weight: 700;
  text-align: center;
}
.vault-name a {
  overflow: hidden;
  max-width: 100%;
  color: #ffffff;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vault-name a:hover { color: #ffffff; text-decoration: underline; }
.catalog-empty { margin: 0; padding: 6px 0; }

.stage { background: var(--panel); }
.stage-fit {
  position: relative;
  margin: 0 auto;
  max-width: 100%;
  background: #000;
}
.stage-screen { position: absolute; inset: 0; }
.stage-screen ruffle-player,
.stage-screen ruffle-embed,
.stage-screen iframe,
.stage-screen video,
.full-movie iframe,
.full-movie video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.stage-screen video,
.full-movie video { object-fit: contain; }
.stage-note {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  height: calc(100cqw * 12 / var(--stage-basis, 650));
  overflow: hidden;
  background: var(--caption);
  text-align: center;
  white-space: nowrap;
}

.reg-gap { height: 10px; }
.reg-title {
  margin: 0;
  padding: 5px;
  border: 6px solid #394049;
  background: #49525d;
  color: #ebebeb;
  font-size: 14px;
  font-weight: 700;
}
.reg-title.future { color: #788696; }
.reg-body {
  padding: 20px;
  border: 6px solid #394049;
  border-top: 0;
  background: #586370;
  color: #ebebeb;
  font-weight: 700;
  text-align: center;
}
.reg-body p { margin: 0 0 1em; }
.reg-error { color: #ffaaaa; }
.reg-rules { text-align: left; }
.reg-body input[type="text"],
.reg-body input[type="password"],
.reg-body textarea {
  border: 0;
  background: #394049;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 13px;
  text-align: center;
}
.reg-body input::placeholder,
.reg-body textarea::placeholder { color: #757575; opacity: 1; }
.reg-body input[type="text"],
.reg-body input[type="password"] {
  display: block;
  width: 220px;
  height: 22px;
  margin: 8px auto;
  padding: 0 4px;
}
#reg-username {
  width: 150px;
  height: 28px;
  font-size: 18px;
}
.reg-info { margin: 0 auto; text-align: right; }
.reg-info label,
.reg-sig {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}
.reg-info input[type="text"],
.reg-info input[type="password"],
.reg-info textarea {
  display: inline-block;
  width: 220px;
  margin: 0;
}
.reg-sig { align-items: flex-start; }
.reg-sig textarea {
  height: 96px;
  padding: 4px;
  text-align: left;
}
.reg-body button {
  border: 0;
  background: #23272e;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
}
.reg-body form > button,
.reg-upload button,
.reg-rules button {
  display: inline-block;
  min-width: 155px;
  min-height: 22px;
  height: auto;
  margin-top: 8px;
  padding: 2px 10px;
}
.reg-portrait {
  width: 126px;
  height: 126px;
  margin: 0 auto 10px;
  padding: 13px;
  background: #394049 url("/assets/avatars/userpicBack.jpg") center / 100% 100% no-repeat;
}
.reg-portrait img {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: cover;
}
.reg-crops {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 10px;
}
.reg-crop {
  display: block;
  width: 125px;
  color: #ebebeb;
  font-weight: 700;
}
.reg-crop-view {
  display: block;
  width: 125px;
  height: 40px;
  margin-bottom: 4px;
  background: #000 var(--avatar) no-repeat;
  background-size: 125px 125px;
}
.reg-crop-view.top { background-position: top center; }
.reg-crop-view.center { background-position: center center; }
.reg-crop-view.bottom { background-position: bottom center; }
.reg-upload input[type="file"] { max-width: 100%; color: #ebebeb; }

@media (max-width: 860px) {
  .nav,
  .layout,
  .catalog { display: block; }
  .sidebar { grid-column: auto; width: auto; margin-top: 5px; }
  .nav-right { margin-top: 6px; }
  .news { display: block; height: auto; aspect-ratio: auto; }
  .news-pic,
  .news-fallback { grid-column: auto; width: 100%; height: auto; aspect-ratio: 200 / 150; }
  .news-list { grid-column: auto; height: auto; aspect-ratio: 650 / 150; }
}

.forum { color: #ebebeb; }
.forum-gap { height: 6px; background: #394049; }
.forum-board {
  display: grid;
  grid-template-columns: minmax(0, 200fr) minmax(0, 430fr) minmax(0, 200fr);
  align-items: stretch;
  min-height: 25px;
  padding: 5px;
  background: #586370;
  font-weight: 700;
}
.forum-board.vip { background: #aaaa00; }
.forum-board.wtf { background: #aa0000; }
.forum-board.epic { background: #a335ee; }
.forum-chip {
  min-width: 0;
  overflow: hidden;
  padding: 0 4px;
  background: #49525d;
  font-size: 12px;
  line-height: 15px;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.forum-board.vip .forum-chip { background: #777700; }
.forum-board.wtf .forum-chip { background: #770000; }
.forum-board.epic .forum-chip { background: #730fb5; }
.forum-chip.active {
  background: #23272e;
  border-right: 6px solid #788696;
  border-left: 6px solid #788696;
  font-size: 12px;
}
.forum-chip a,
.forum-board-name a {
  display: block;
  overflow: hidden;
  color: #ffffff;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.forum-board a:hover { text-decoration: underline; }
.forum-chip.active a:hover { color: #abc0da; text-decoration: none; }
.forum-board-name {
  min-width: 0;
  overflow: hidden;
  padding: 0 6px;
  font-size: 12px;
  line-height: 15px;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.forum-topic {
  display: grid;
  grid-template-columns: 125px minmax(0, 1fr) 125px;
  background: #49525d;
}
.forum-topic.sticky { background: #586370; }
.forum-topic.fresh { background: #49525d; }
.forum-topic.old { background: #23272e; }
.forum-face {
  position: relative;
  height: 40px;
  overflow: hidden;
  background: #000 var(--face) center / 125px 125px no-repeat;
}
.forum-face.top { background-position: top center; }
.forum-face.bottom { background-position: bottom center; }
.forum-handle {
  position: absolute;
  right: 0;
  left: 0;
  top: 13px;
  height: 14px;
  overflow: hidden;
  padding: 0 2px;
  background: url("/assets/forum/user.png") repeat;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.forum-topic-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 10px;
  height: 40px;
  min-width: 0;
  overflow: hidden;
  border-top: 1px solid #394049;
  border-bottom: 1px solid #394049;
  padding: 5px 10px 0;
}
.forum-topic-title {
  min-width: 0;
  text-align: right;
  letter-spacing: 1px;
}
.forum-topic-title > a {
  display: block;
  overflow: hidden;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 15px;
  text-decoration: none;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.forum-topic-title a:hover,
.forum-last a:hover { text-decoration: underline; }
.forum-pages {
  overflow: hidden;
  font-size: 10px;
  font-weight: 700;
  line-height: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.forum-pages a {
  display: inline;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 13px;
  text-decoration: none;
  white-space: normal;
}
.forum-last { min-width: 0; overflow: hidden; color: #ebebeb; font-size: 12px; line-height: 14px; text-align: left; }
.forum-last a { color: #ebebeb; text-decoration: none; }
.forum-last a:hover { color: #ffffff; }
.forum-ellip {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.forum-titlebar {
  margin: 0;
  padding: 5px;
  border: 6px solid #394049;
  background: #586370;
  color: #ebebeb;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.forum-locked { border-color: #000000; background: #660000; }
.forum-post {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  background: #788696;
  border-top: 3px solid #23272e;
}
.forum-post-user { padding: 3px; text-align: center; }
.forum-portrait {
  width: 126px;
  height: 126px;
  margin: 3px auto;
  padding: 13px;
  background: #788696 url("/assets/forum/portrait.jpg") center / 100% 100% no-repeat;
}
.forum-portrait img {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: cover;
}
.forum-post-main { min-width: 0; background: #394049; }
.forum-post-bar {
  padding: 3px 6px;
  background: #788696;
  color: #ffffff;
  font-weight: 700;
}
.forum-post-bar a { color: #ffffff; }
.forum-post-bar a:hover { color: #abc0da; }
.forum-edit {
  float: right;
  width: 35px;
  background: #000000;
  color: #ebebeb;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.forum-edit:hover { color: #ff6666; }
.forum-post-body {
  min-height: 130px;
  padding: 7px;
  overflow-wrap: anywhere;
  color: #ebebeb;
  font-size: 14px;
}
.forum-post-body a { color: #ffffff; text-decoration: underline; }
.forum-post-body a:hover { color: #abc0da; }
.forum-post-body img { max-width: 100%; height: auto; }
.forum-video {
  display: block;
  width: 100%;
  aspect-ratio: 650 / 385;
  margin: 8px auto;
  border: 0;
}
.forum-pager {
  margin-left: 132px;
  padding: 8px 5px;
  border: 6px solid #394049;
  border-top: 0;
  background: #586370;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 10px;
}
.forum-pager a { color: #ffffff; text-decoration: none; }
.forum-pager a:hover { color: #abc0da; }
.forum-pager .here { color: #abc0da; }
.forum-reply {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: start;
  padding: 5px;
  border: 6px solid #394049;
  background: #788696;
}
.forum-reply textarea,
.forum-compose textarea,
.forum-compose input[type="text"] {
  border: 0;
  background: #23272e;
  color: #ffffff;
  font-family: Arial, sans-serif;
}
.forum-reply textarea,
.forum-compose textarea {
  display: block;
  width: 100%;
  min-height: 110px;
  padding: 10px;
  font-size: 16px;
}
.forum-reply textarea::placeholder,
.forum-compose textarea::placeholder,
.forum-compose input::placeholder { color: #757575; opacity: 1; }
.forum-reply button,
.forum-compose button,
.forum-cancel {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  border: 0;
  background: #394049;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 12px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.forum-compose .forum-titlebar input[type="text"] {
  width: min(100%, 420px);
  height: 22px;
  font-size: 14px;
  text-align: center;
}
.forum-compose .forum-post-body textarea { min-height: 220px; background: #394049; }
.forum-key { display: block; max-width: 100%; height: auto; margin: 10px auto; }
.image-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
}
.image-thumb { display: block; aspect-ratio: 1; min-width: 0; }
.image-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.image-next {
  display: block;
  margin: 8px 0 20px;
  color: #abc0da;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
}
.image-next:hover { color: #ffffff; }
.image-frame {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 160px;
}
.image-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
}
.image-lightbox[hidden] { display: none; }
.image-lightbox img { width: auto; max-width: min(100%, 1000px); max-height: calc(100vh - 90px); height: auto; }
.image-lightbox a { color: #abc0da; font-size: 13px; font-weight: 700; }
.image-lightbox a:hover { color: #ffffff; }
.image-lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #cccccc;
  font-family: Verdana, Tahoma, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.image-lightbox-close:hover { color: #ffffff; }
body.image-drop::before {
  content: "";
  position: fixed;
  inset: 0;
  border: 3px solid #788696;
  pointer-events: none;
  z-index: 30;
}
@media (max-width: 720px) {
  .forum-topic,
  .forum-post,
  .forum-reply { grid-template-columns: 1fr; }
  .forum-pager { margin-left: 0; }
}
