/* Shared image-backed article tiles: homepage and every category feed. */
.news-grid:has(> .image-news-card),
#site-page .destination-news-grid:has(> .image-news-card) {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
  gap: 22px 18px;
}
.news-card.image-news-card {
  isolation: isolate;
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #75867c;
  border-radius: 9px;
  background: #172421;
  box-shadow: 0 5px 0 #12201b, 0 6px 0 #697b70, 0 10px 18px #11241b35;
}
.image-news-card .article-tile-link {
  position: absolute;
  inset: 0;
  display: block;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}
.image-news-card .article-tile-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .3s ease;
}
.image-news-card .article-tile-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #07150de0 0%, #0a181b45 31%, #0c1b1ccc 62%, #081511f7 100%);
}
.image-news-card:hover { transform: translateY(-3px); box-shadow: 0 7px 0 #12201b, 0 8px 0 #697b70, 0 15px 22px #11241b40; }
.image-news-card:hover .article-tile-image { transform: scale(1.04); }
.image-news-card .article-tile-link:focus-visible { outline: 3px solid #ffad70; outline-offset: -4px; }
.article-tile-top { position: absolute; top: 17px; left: 18px; right: 57px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; }
.article-tile-category { font-size: 10px; font-weight: 800; color: #ffba86; letter-spacing: .2px; }
.article-tile-views { font-size: 9px; color: #edf3ef; white-space: nowrap; }
.article-tile-copy { position: absolute; inset: auto 18px 18px; display: grid; gap: 9px; }
.image-news-card .article-tile-copy h3 { margin: 0; color: #fff; font-size: 22px; font-weight: 800; line-height: 1.15; letter-spacing: -.4px; text-shadow: 0 2px 3px #0007; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.image-news-card .article-tile-excerpt { margin: 0; color: #e0e9e3; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.image-news-card .article-tile-byline { margin: 0; color: #d6e0d8; font-size: 9px; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-tile-byline span { color: #acbfb1; }
.image-news-card .bookmark { z-index: 2; top: 12px; right: 12px; bottom: auto; width: 33px; height: 33px; padding: 8px; background: #10241bbb; border: 1px solid #bed1c34d; border-radius: 8px; color: #e0eee4; }
.image-news-card .bookmark:hover { background: #304b3c; }
.image-news-card .bookmark[aria-pressed='true'] { background: #ff8530; color: #15251b; border-color: #ffd0a8; }
.article-notice, .article-pagination { grid-column: 1 / -1; }
.article-notice { padding: 24px; background: #283230; color: #f5f3ec; border: 1px solid #64716b; border-radius: 7px; box-shadow: 0 5px 0 #14201d; }
.article-pagination { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 24px 0; }
.article-feedback { font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.article-feedback:empty { margin: 0; }
.article-feedback:not(:empty) { padding: 12px; background: #192523; color: #fff; border-radius: 8px; }

/* Selected badges stay centered in compact circles over the cover image. */
.image-news-card .article-badge-strip {
  position: static;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 5px;
  width: auto;
  max-width: none;
  height: auto;
  min-height: 0;
  margin: 0 0 2px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.article-badge-item { display: grid; place-items: center; gap: 7px; min-width: 0; }
.article-badge-item .badge-medallion {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  padding: 3px;
  border: 2px solid #7b8b82;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #718277, #233029 80%);
  box-shadow: inset 0 2px 4px #101c1888, 0 3px 0 #101b18, 0 5px 8px #0004;
}
.article-badge-item .badge-medallion img { display: block; position: static; width: 38px; height: 38px; max-width: 100%; max-height: 100%; margin: 0; object-fit: contain; object-position: center; image-rendering: pixelated; transform: none; }
.live-news-card:hover .article-badge-item .badge-medallion { transform: none; }
.article-badge-item [hidden], .article-avatar [hidden] { display: none; }
.article-badge-fallback { max-width: 36px; font-size: 8px; overflow-wrap: anywhere; text-align: center; color: #fff; }
.article-badge-gallery { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.article-floating-badges { position: relative; z-index: 2; margin: -26px 18px 26px; }
.article-floating-badges .badge-medallion { width: 56px; height: 56px; background: radial-gradient(#55685b, #172721); border-color: #b2c1b5; }
.article-floating-badges .badge-medallion img { width: 40px; height: 40px; }
.article-badge-code { display: none; }

/* Full article: image title card, floating badges and a separate content card. */
#site-page .article-layout { align-items: start; }
.article-hero {
  isolation: isolate;
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 330px;
  overflow: hidden;
  margin-bottom: 26px;
  border: 1px solid #66736d;
  border-top: 4px solid #ff6b00;
  border-radius: 8px;
  background: #182422;
  box-shadow: 0 5px 0 #14211e, 0 6px 0 #64746c, 0 13px 22px #14211e30;
}
.article-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.article-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #0c171dda 0%, #111e2277 36%, #0c171df5 100%); }
.article-hero-copy { width: 100%; padding: 34px 32px 38px; color: #fff; }
.article-hero h1 { font-size: clamp(27px, 3vw, 41px); line-height: 1.16; margin: 12px 0; overflow-wrap: anywhere; text-shadow: 0 2px 3px #0008; }
.article-hero h1:focus { outline: none; }
.article-kicker { font-size: 11px; font-weight: 800; letter-spacing: .5px; color: #ffae73; margin: 0 0 10px; }
.article-kicker span { color: #ddd; font-weight: 500; letter-spacing: 0; }
.article-introduction { font-size: 15px; line-height: 1.65; max-width: 640px; margin: 0; color: #e5ece8; overflow-wrap: anywhere; }
.article-hero:has(+ .article-floating-badges) { margin-bottom: 0; }
#site-page .article-copy { border-top: 1px solid #738078; padding: 30px; }
.article-body { font-size: 15px; line-height: 1.85; overflow-wrap: anywhere; }
.article-body p { margin: 0 0 1.3em; }
.article-body p:last-child { margin-bottom: 0; }

/* Author details use individual raised bubbles, like the team directory. */
.article-sidebar { display: grid; gap: 16px; min-width: 0; }
#site-page .article-author-card { display: grid; justify-items: center; gap: 17px; padding: 25px 18px; margin: 0 0 6px; text-align: center; }
#site-page .article-author-card .author-eyebrow { margin: 0; text-transform: uppercase; letter-spacing: 1.7px; font-size: 10px; font-weight: 800; color: #bdcbc3; }
.article-avatar { display: grid; place-items: center; width: 58px; height: 58px; flex: 0 0 58px; overflow: hidden; border: 2px solid #8b9b90; border-radius: 50%; background: radial-gradient(#52645a, #1b2a22); box-shadow: inset 0 2px 5px #0005, 0 4px 0 #111e18; color: #ffab6c; font-size: 24px; font-weight: 800; }
.article-avatar img { display: block; width: 54px; height: 54px; object-fit: contain; object-position: center; image-rendering: pixelated; }
.article-avatar-large { width: 108px; height: 108px; border: 3px solid #ff954c; box-shadow: inset 0 2px 10px #0005, 0 5px 0 #14211b, 0 0 0 5px #ff6b0015; font-size: 42px; }
.article-avatar-large img { width: 94px; height: 94px; }
.article-author-details { display: flex; flex-direction: column; align-items: center; gap: 9px; max-width: 100%; }
.article-author-details > span { max-width: 100%; padding: 7px 12px; border-radius: 7px; background: #1d2925; border: 1px solid #5b6a60; box-shadow: inset 0 1px 0 #ffffff14, 0 3px 0 #14211b; overflow-wrap: anywhere; }
.article-author-name { font-size: 20px; font-weight: 800; color: #fff; }
.article-author-role { color: #f2e89c; font-size: 12px; font-weight: 700; }
.article-author-habbo { font-size: 11px; color: #d7e5dd; }

/* Same raised dark/orange treatment as the Login and Register buttons. */
.article-reaction-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.article-reaction {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 64px;
  padding: 12px 8px;
  border: 1px solid #4c5d57;
  border-radius: 12px;
  background: #1c292a;
  color: #fff;
  box-shadow: inset 0 1px 0 #ffffff20, 0 4px 0 #0c1718, 0 8px 18px #0002;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.reaction-dislike { background: #ff6b00; border-color: #ff9a50; color: #17211e; box-shadow: inset 0 1px 0 #ffffff40, 0 4px 0 #a64500, 0 8px 18px #0002; }
.reaction-thumb { width: 21px; height: 21px; flex-shrink: 0; }
.thumb-down { transform: rotate(180deg); }
.article-reaction b { min-width: 18px; padding: 3px; border-radius: 4px; background: #ffffff1a; font-size: 11px; }
.article-reaction:hover:not(:disabled):not([aria-pressed="true"]) { transform: translateY(-2px); }
.article-reaction[aria-pressed="true"] {
  transform: translateY(4px);
  background: #101d1e;
  border-color: #ffb478;
  box-shadow: inset 0 4px 8px #0009, inset 0 -1px 0 #ffffff15, 0 1px 0 #0c1718;
  color: #ffc28f;
}
.reaction-dislike[aria-pressed="true"] { background: #c54d00; color: #fff; border-color: #ffbd89; box-shadow: inset 0 4px 8px #713000bb, inset 0 -1px 0 #ffffff25, 0 1px 0 #743200; }
.article-reaction:active { transform: translateY(4px); }
.article-reaction:disabled { cursor: wait; }
.article-view-total { display: flex; align-items: center; justify-content: space-between; padding: 17px 20px; border: 1px solid #63736a; border-radius: 12px; background: #2b3832; color: #e6eee8; box-shadow: inset 0 1px 0 #ffffff15, 0 4px 0 #17231e; }
.article-view-total span { font-size: 12px; font-weight: 700; }
.article-view-total strong { font-size: 19px; }

/* Comments: separate speech cards with avatars and a permanent-post composer. */
.article-comments { margin-top: 8px; grid-column: 1; grid-row: 2; }
.article-comments-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.article-comments-heading .article-kicker { color: #9b4500; }
.article-comments-heading h2 { margin: 0; font-size: 26px; color: #1a2823; }
.article-comment-total { display: inline-grid; place-items: center; min-width: 31px; height: 31px; margin-left: 8px; padding: 0 8px; border-radius: 9px; background: #20312a; color: #ffb578; font-size: 15px; box-shadow: 0 3px 0 #132119; }
.article-comment { display: flex; gap: 16px; align-items: flex-start; margin: 0 0 22px; }
.comment-content { position: relative; min-width: 0; flex: 1; padding: 20px; background: #303c35; border: 1px solid #738175; border-top: 3px solid #ff8b35; border-radius: 5px 12px 12px; color: #e2ebe4; box-shadow: inset 0 1px 0 #ffffff12, 0 4px 0 #18251c, 0 8px 14px #0002; overflow-wrap: anywhere; }
.comment-content::before { content: ''; position: absolute; left: -9px; top: 15px; width: 14px; height: 14px; transform: rotate(45deg); border-left: 1px solid #738175; border-bottom: 1px solid #738175; background: #303c35; }
.comment-content header { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.comment-content strong { color: #fff; font-size: 13px; }
.comment-content time { margin-left: auto; color: #b8c8bd; font-size: 10px; }
.comment-content p { font-size: 14px; line-height: 1.8; white-space: normal; margin: 12px 0 0; }
.article-comment-empty { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; padding: 18px 22px; border: 1px dashed #778577; border-radius: 12px; color: #324238; }
.article-comment-empty > span { font-family: Georgia, serif; font-size: 70px; line-height: 1; color: #9e4b0c; }
.article-comment-empty p { font-size: 14px; line-height: 1.7; }
.article-comment-composer, .article-comment-posted { padding: 24px; margin-top: 25px; background: #22332a; color: #e8f1ea; border: 1px solid #677b6b; border-top: 4px solid #ff6b00; border-radius: 10px; box-shadow: inset 0 1px 0 #ffffff15, 0 5px 0 #142219; }
.article-comment-composer h3 { margin: 0 0 6px; font-size: 20px; color: #fff; }
.article-comment-rule, .article-comment-posted p { color: #bfcec2; font-size: 12px; line-height: 1.7; margin: 0; }
.article-form { display: grid; gap: 16px; }
.article-form label { display: grid; gap: 8px; font-size: 13px; font-weight: 700; min-width: 0; }
.article-form textarea { width: 100%; min-width: 0; box-sizing: border-box; padding: 14px; resize: vertical; border: 1px solid #788d7c; border-radius: 8px; background: #14241b; color: #f3f4ee; font: inherit; line-height: 1.7; }
.article-form textarea:focus-visible { outline: 2px solid #ff9c55; outline-offset: 2px; }
.article-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.article-form-actions > span { font-size: 11px; color: #b9c9bd; }
.article-form-actions button:disabled, .article-pagination button:disabled { opacity: .5; cursor: default; }
@media (max-width: 850px) {
  .article-comments { grid-row: 3; }
  .article-sidebar { grid-row: 2; grid-template-columns: 1fr 1fr; align-items: start; }
  #site-page .article-author-card { grid-row: span 3; }
  .article-sidebar .article-feedback { grid-column: 2; }
}
@media (max-width: 550px) {
  .article-hero { min-height: 280px; }
  .article-hero-copy { padding: 25px 21px 38px; }
  .article-introduction { font-size: 14px; }
  #site-page .article-copy { padding: 22px; }
  .article-sidebar { grid-template-columns: 1fr; }
  #site-page .article-author-card { grid-row: auto; }
  .article-sidebar .article-feedback { grid-column: auto; }
  .article-comment { gap: 12px; }
  .article-comment .article-avatar { width: 44px; height: 44px; flex-basis: 44px; }
  .article-comment .article-avatar img { width: 40px; height: 40px; }
  .comment-content { padding: 15px; }
  .comment-content time { margin-left: 0; width: 100%; }
  .article-comment-composer { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .article-reaction { transition: none; } }

.image-news-card .article-badge-item .badge-medallion { width: 32px; height: 32px; padding: 2px; border-width: 1px; background: radial-gradient(#596c5d, #17281ecc); box-shadow: inset 0 1px 3px #0005, 0 2px 0 #07180fcc; }
.image-news-card .article-badge-item .badge-medallion img { width: 26px; height: 26px; }
.image-news-card .article-badge-fallback { font-size: 6px; max-width: 26px; }
@media (max-width: 600px) {
  .news-grid:has(> .image-news-card), #site-page .destination-news-grid:has(> .image-news-card) { grid-template-columns: minmax(0, 1fr); }
  .article-tile-copy { inset: auto 22px 22px; gap: 11px; }
  .image-news-card .article-tile-copy h3 { font-size: 25px; }
  .image-news-card .article-tile-excerpt { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .image-news-card, .image-news-card .article-tile-image { transition: none; } }

/* Public member links and the all-category archive. */
.member-link { color: inherit; text-decoration: none; }
.member-link:hover { color: #ffab6b; text-decoration: underline; text-underline-offset: 3px; }
.member-link:focus-visible, .article-profile-avatar-link:focus-visible { outline: 2px solid #ffad70; outline-offset: 3px; border-radius: 5px; }
.article-profile-avatar-link { display: inline-block; flex-shrink: 0; text-decoration: none; border-radius: 50%; }
.article-author-details > a { max-width: 100%; padding: 7px 12px; border-radius: 7px; background: #1d2925; border: 1px solid #5b6a60; box-shadow: inset 0 1px 0 #ffffff14, 0 3px 0 #14211b; overflow-wrap: anywhere; }
.image-news-card .article-tile-copy { bottom: 42px; }
.image-news-card .article-tile-byline { position: absolute; z-index: 2; bottom: 16px; left: 18px; right: 18px; }
#site-page .all-articles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pagination-disabled { opacity: .45; cursor: default; }
.feed-see-more { display: inline-flex; gap: 20px; align-items: center; justify-content: center; padding: 11px 17px; border: 1px solid #ff9a50; border-radius: 8px; background: #ff6b00; color: #17231e; box-shadow: inset 0 1px 0 #ffffff35, 0 4px 0 #914000; font-size: 12px; font-weight: 800; text-decoration: none; }
.feed-see-more span { font-size: 20px; line-height: 1; }
.feed-see-more:hover { background: #ff913e; }
.online-member { text-decoration: none; color: inherit; }
.event-title { text-align: left; color: inherit; padding: 0; background: transparent; }
#site-page .staff-details a.staff-bubble { display: inline-flex; text-decoration: none; color: inherit; }
#site-page .staff-details a.staff-bubble:hover { color: #ffae72; background: #46544c; }

/* Member profiles share the site's image headers and raised dark panels. */
.member-profile-hero { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; position: relative; padding: 34px; margin-bottom: 32px; border: 1px solid #677b6d; border-top: 4px solid #ff6b00; border-radius: 10px; background: linear-gradient(110deg, #0d231af7, #162a22dc), url('assets/header-lounge.png') center / cover; color: #fff; box-shadow: 0 5px 0 #112119, 0 6px 0 #6b7e70, 0 12px 20px #0002; }
.member-profile-hero .article-avatar-large { width: 126px; height: 126px; }
.member-profile-hero .article-avatar-large img { width: 112px; height: 112px; }
.member-profile-identity { flex: 1; min-width: 0; }
.member-profile-identity h1 { font-size: clamp(27px, 3vw, 39px); margin: 0 0 15px; overflow-wrap: anywhere; }
.member-profile-identity h1:focus { outline: none; }
.member-role-bubble, .member-habbo-bubble { display: table; padding: 7px 12px; margin: 9px 0 0; border: 1px solid #6c7e71; border-radius: 7px; background: #23372acc; box-shadow: 0 3px 0 #0e2016; font-size: 12px; }
.member-role-bubble { color: #f2e89c; font-weight: 700; }
.member-habbo-bubble { color: #dfe9e2; }
.member-activity { padding: 9px 13px; align-self: flex-start; font-size: 11px; color: #e0e9e2; background: #12261bee; border: 1px solid #5d7162; border-radius: 7px; }
.member-profile-layout { display: grid; grid-template-columns: 255px minmax(0, 1fr); gap: 28px; align-items: start; }
#site-page .member-profile-details .page-panel { padding: 22px; }
#site-page .member-profile-details h2 { font-size: 20px; overflow-wrap: anywhere; }
.member-facts { margin: 20px 0 0; display: grid; gap: 18px; }
.member-facts dt { color: #bacbbf; font-size: 11px; margin-bottom: 6px; }
.member-facts dd { margin: 0; color: #fff; font-size: 15px; font-weight: 700; }
.member-group-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.member-group-list span { padding: 7px 10px; border: 1px solid #687e6d; border-radius: 6px; background: #1e3024; color: #dfebdf; font-size: 11px; box-shadow: 0 2px 0 #132319; }
.member-articles { min-width: 0; }
.member-articles-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.member-articles-heading h2 { color: #1b2a21; font-size: 22px; overflow-wrap: anywhere; margin: 0; }
@media (max-width: 1000px) { #site-page .all-articles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 850px) { .member-profile-layout { grid-template-columns: minmax(0, 1fr); } .member-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  #site-page .all-articles-grid { grid-template-columns: minmax(0, 1fr); }
  .member-profile-hero { padding: 26px 22px; flex-direction: column; text-align: center; gap: 20px; }
  .member-role-bubble, .member-habbo-bubble { margin-inline: auto; }
  .member-activity { align-self: center; }
  .member-facts { grid-template-columns: minmax(0, 1fr); }
  .image-news-card .article-tile-copy { bottom: 46px; }
  .image-news-card .article-tile-byline { left: 22px; right: 22px; bottom: 20px; }
}

/* Member collections, activity and personal account settings. */
.member-profile-layout { grid-template-columns: minmax(190px, .8fr) minmax(0, 1.65fr) minmax(220px, 1fr); gap: 22px; }
.member-profile-layout > *, .member-collections, .member-recent-comments { min-width: 0; }
.member-collections { display: grid; gap: 24px; }
#site-page .member-profile-layout .page-panel { padding: 22px; margin: 0; }
#site-page .member-profile-layout h2 { font-size: 20px; margin: 0 0 22px; overflow-wrap: anywhere; }
.member-activity { max-width: 100%; line-height: 1.6; }
.member-empty { color: #c6d2cb; font-size: 13px; line-height: 1.7; }
.member-badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 12px; }
.member-badge { position: relative; display: flex; align-items: center; justify-content: center; height: 52px; border: 1px solid #718078; border-radius: 10px; background: radial-gradient(at 30% 20%, #4c5b52, #1c2b24); box-shadow: inset 0 1px 0 #ffffff24, 0 3px 0 #14211b; outline-offset: 3px; }
.member-badge img { width: 40px; height: 40px; object-fit: contain; image-rendering: pixelated; }
.member-badge:hover, .member-badge:focus-visible { border-color: #ff9b51; background: #49574e; }
.member-badge-label { display: none; position: absolute; z-index: 4; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); padding: 8px 10px; width: max-content; max-width: 170px; border: 1px solid #89998b; border-radius: 6px; background: #14231c; color: #fff; font-size: 11px; text-align: center; box-shadow: 0 3px 12px #0006; pointer-events: none; }
.member-badge:hover .member-badge-label, .member-badge:focus-visible .member-badge-label { display: block; }
.member-badge-pages { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin-top: 24px; font-size: 11px; color: #d5dfd7; }
.member-badge-pages .page-action { padding: 8px 10px; font-size: 11px; }
.member-comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.member-comment-list li { padding: 14px; background: #1d2c25; border: 1px solid #56685b; border-radius: 8px; box-shadow: 0 3px 0 #142019; overflow-wrap: anywhere; }
.member-comment-article { display: block; color: #ffb57d; font-size: 13px; font-weight: 700; line-height: 1.5; }
.member-comment-list p { white-space: pre-wrap; font-size: 13px; line-height: 1.65; max-height: 240px; overflow: auto; }
.member-comment-list time { color: #b9c9bd; font-size: 10px; }
#radio-account .member-circle.member-settings { display: flex; align-items: center; justify-content: center; }
.member-settings svg { width: 24px; height: 24px; }
.story-add { flex: 0 0 36px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #ff6b00; border: 1px solid #ffaf70; color: #17261d; font-size: 29px; line-height: 1; font-weight: 800; text-decoration: none; box-shadow: inset 0 1px 0 #ffffff55, 0 4px 0 #914000; transition: background .15s; }
.story-add:hover { background: #ffa25e; }
.story-add:focus-visible { outline: 3px solid #17261d; outline-offset: 4px; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.account-settings-form { display: grid; gap: 18px; margin-top: 22px; }
.account-settings-form label { display: grid; gap: 10px; color: #eef4ef; font-size: 13px; font-weight: 700; }
.account-settings-form input { box-sizing: border-box; width: 100%; min-width: 0; border: 1px solid #7a8d7e; border-radius: 7px; background: #17271e; color: #fff; font: inherit; padding: 13px 14px; }
.account-settings-form input:focus-visible { outline: 2px solid #ff9a52; outline-offset: 2px; }
.account-settings-form input::file-selector-button { border: 0; padding: 8px; margin-right: 12px; border-radius: 4px; background: #ff9a52; color: #132219; font-weight: 700; }
.account-settings-form .page-action { justify-self: start; }
.account-settings-form [role="status"] { margin: 0; font-size: 13px; line-height: 1.65; }
.settings-help { color: #c0d0c4; font-size: 13px; line-height: 1.7; margin: 0; }
.account-settings-form button:disabled, .member-badge-pages button:disabled { opacity: .5; cursor: default; }
.story-submit-card { max-width: 760px; margin-inline: auto; }
.story-upload-preview { width: 100%; max-height: 330px; object-fit: contain; border-radius: 8px; background: #142219; }
@media (max-width: 1050px) {
  .member-profile-layout { grid-template-columns: minmax(190px, .7fr) minmax(0, 1.4fr); }
  .member-recent-comments { grid-column: 1 / -1; }
  .member-comment-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .member-profile-layout, .settings-grid, .member-comment-list { grid-template-columns: minmax(0, 1fr); }
  .member-facts { grid-template-columns: minmax(0, 1fr); }
  .member-recent-comments { grid-column: auto; }
}

/* Story viewer text shares one inset, including long captions and author names. */
.story-viewer #dialog-content h2 { overflow-wrap: anywhere; }
.story-viewer #dialog-content .story-byline { padding: 0 22px 18px; font-size: 13px; overflow-wrap: anywhere; }
.story-viewer #dialog-content .story-description { margin: 0; padding: 18px 22px 0; font-size: 14px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.story-viewer #dialog-content .story-published { padding: 12px 22px 22px; }

/* Keep both story actions visible beside the scrolling row of portraits. */
#stories-slot .story-strip { display: flex; gap: 12px; overflow: visible; min-width: 0; }
.story-list { display: flex; gap: 12px; align-items: center; min-width: 0; padding: 7px; margin: -7px; overflow-x: auto; scrollbar-width: thin; }
.story-list:empty { display: none; }
.story-actions { display: flex; gap: 10px; align-items: center; flex: 0 0 auto; }
.story-browse { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: 0 0 36px; background: #26372c; color: #ff9d59; border: 1px solid #748679; border-radius: 50%; box-shadow: inset 0 1px 0 #ffffff25, 0 4px 0 #101e16; text-decoration: none; }
.story-browse:hover { background: #3b5041; color: #ffc192; }
.story-browse:focus-visible { outline: 3px solid #ff6b00; outline-offset: 3px; }
.story-browse svg { width: 21px; height: 21px; display: block; }
#radio-account .member-circle.member-settings { padding: 0; display: grid; place-items: center; line-height: 0; }
#radio-account .member-settings svg { display: block; width: 24px; height: 24px; margin: 0; flex: none; }

.stories-archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; align-items: start; }
.story-archive-card { min-width: 0; overflow: hidden; border: 1px solid #6c8071; border-radius: 10px; background: #26352d; color: #f4f7f2; box-shadow: inset 0 1px 0 #ffffff20, 0 5px 0 #112119, 0 6px 0 #708075, 0 12px 20px #0002; }
.story-archive-open { display: block; padding: 0; width: 100%; background: transparent; color: inherit; border: 0; text-align: left; cursor: pointer; }
.story-archive-open img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; image-rendering: pixelated; background: #17251c; }
.story-archive-caption { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; padding: 0; margin: 18px 20px; font-size: 15px; font-weight: 700; line-height: 1.65; overflow-wrap: anywhere; }
.story-archive-open:hover { background: #354a3b; }
.story-archive-open:focus-visible { outline: 3px solid #ff9c55; outline-offset: -4px; }
.story-archive-card footer { padding: 0 20px 20px; font-size: 12px; line-height: 1.65; }
.story-archive-card footer p { margin: 0 0 6px; overflow-wrap: anywhere; }
.story-archive-card footer a { color: #ffb47c; font-weight: 700; }
.story-archive-card time { color: #bbcbbf; font-size: 11px; }
.story-archive-empty { grid-column: 1 / -1; }
@media (max-width: 1000px) { .stories-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .stories-archive-grid { grid-template-columns: minmax(0, 1fr); } }
/* Fit five portraits and both actions without cropping a circle on common widths. */
.story-list { gap: 10px; }
.story-list .story, .story-list .story-portrait { width: 52px; height: 52px; }
.story-list .story { flex-basis: 52px; }
@media (max-width: 600px) {
  .story-list { gap: 6px; }
  .story-list .story, .story-list .story-portrait { width: 44px; height: 44px; }
  .story-list .story { flex-basis: 44px; }
  #stories-slot .story-strip { gap: 8px; }
}

/* About HabboLab: two editorial sections paired with community side cards. */
.about-layout { display: grid; grid-template-columns: minmax(0, 2.7fr) minmax(260px, 1fr); gap: 38px 26px; align-items: stretch; }
.about-section { display: flex; flex-direction: column; min-width: 0; }
#site-page .about-section-heading { display: flex; align-items: center; gap: 11px; margin: 0 0 18px; min-height: 40px; }
#site-page .about-section-heading h1, #site-page .about-section-heading h2 { margin: 0; font-size: 24px; line-height: 1.25; color: #23332b; letter-spacing: -.5px; }
#site-page .about-get-involved .about-section-heading h2, #site-page .about-thanks .about-section-heading h2 { font-size: 21px; }
.about-heading-icon { display: inline-flex; width: 36px; height: 36px; flex: 0 0 36px; }
.about-heading-icon svg { width: 100%; height: 100%; image-rendering: pixelated; }
#site-page .about-section .page-panel { margin: 0; flex: 1; border-radius: 8px; }
#site-page .about-content-card { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 20px; align-items: center; padding: 27px; }
#site-page .about-copy p { font-size: 14px; line-height: 1.85; margin: 0 0 17px; }
#site-page .about-copy .about-lead { margin-bottom: 18px; }
#site-page .about-side-card { display: flex; flex-direction: column; padding: 24px; }
#site-page .about-side-card p { margin: 0 0 18px; font-size: 13px; line-height: 1.8; }
#site-page .about-side-card .page-action { align-self: flex-start; margin-top: auto; font-size: 12px; }
#site-page .about-activities .page-panel { border-top-color: #e8b74c; }
#site-page .about-thanks .page-panel { border-top-color: #f36c9f; }
.about-inline-links { display: flex; flex-wrap: wrap; gap: 12px 22px; }
.about-text-link { display: inline-block; font-size: 13px; font-weight: 700; color: #ffb078; text-underline-offset: 4px; }
.about-text-link:hover { color: #ffceaa; }
.about-illustration { position: relative; width: 190px; height: 180px; justify-self: center; isolation: isolate; }
.about-character { position: absolute; width: 64px; height: 110px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 5px 2px #0004); }
.about-character-one { left: 0; bottom: 13px; z-index: 2; }
.about-character-two { left: 62px; bottom: 38px; z-index: 1; }
.about-character-three { right: 0; bottom: 7px; z-index: 3; }
.about-pixel-floor { position: absolute; left: 10px; right: 4px; bottom: 10px; height: 60px; background: #172a20; border: 1px solid #526a59; transform: skewY(-15deg); border-radius: 4px; box-shadow: 0 5px 0 #132118; }
.about-bookcase { position: absolute; left: 58px; top: 9px; width: 100px; height: 100px; z-index: 1; filter: drop-shadow(0 5px 2px #0005); }
.about-bookcase svg { width: 100%; height: 100%; image-rendering: pixelated; }
.about-creative .about-character-one { bottom: 3px; }
.about-creative .about-character-three { bottom: 0; }
@media (max-width: 1100px) {
  #site-page .about-content-card { grid-template-columns: minmax(0, 1fr) 140px; gap: 12px; padding: 23px; }
  .about-illustration { width: 140px; }
  .about-character-two { left: 40px; }
  .about-bookcase { left: 38px; width: 88px; }
}
@media (max-width: 850px) {
  .about-layout { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .about-introduction { order: 0; }
  .about-activities { order: 1; }
  .about-get-involved { order: 2; }
  .about-thanks { order: 3; }
  #site-page .about-content-card { grid-template-columns: minmax(0, 1fr) 190px; }
  .about-illustration { width: 190px; }
  .about-character-two { left: 62px; }
  .about-bookcase { left: 58px; width: 100px; }
}
@media (max-width: 550px) {
  #site-page .about-content-card { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 22px; }
  .about-illustration { height: 155px; }
  #site-page .about-section-heading h1, #site-page .about-section-heading h2 { font-size: 23px; }
  #site-page .about-side-card { padding: 22px; }
}
