/* The Guts&Bolts web app, dressed like a website from around 2011:
   a dark blue top bar, a glossy tab row, a gray sub-row, and a white page
   in the middle of a gray background, with boxes that have title bars. */
:root {
  --blue: #1d6fd8; --blue-dark: #0b4ea8; --link: #0055b3;
  --green: #16a34a; --green-dark: #0f7a36; --red: #c81e1e;
  --panel: #ffffff; --panel2: #f2f4f7; --text: #222; --muted: #666; --line: #c9ced6;
  --bg: #d9dde3; --stripe: #f4f6f9; --gold: #b07800;
  --head1: #f7f9fc; --head2: #d9e2ee; --headText: #17407a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --panel: #1b212b; --panel2: #232b37; --text: #e8ecf2; --muted: #9aa5b5; --line: #334052;
    --bg: #0e131b; --stripe: #1e2530; --link: #6fb0ff; --gold: #f0b429;
    --head1: #2a3444; --head2: #1f2835; --headText: #b9d6ff;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Verdana, Tahoma, Arial, sans-serif; font-size: 12px; color: var(--text); line-height: 1.45;
  background: var(--bg); min-height: 100vh;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 970px; margin: 0 auto; padding: 0 10px; display: flex; align-items: center; gap: 12px; }

/* Top bar: logo, search, your account */
.topbar { background: linear-gradient(#2466c2, #0d3b82); border-bottom: 1px solid #072656; }
.topbar .wrap { min-height: 52px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; }
.logo {
  font-family: Impact, "Arial Black", sans-serif; font-size: 30px; letter-spacing: 1px; line-height: 1;
  color: #e23b3b; text-decoration: none !important;
  text-shadow: -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 2px 2px 0 #fff, 3px 4px 0 rgba(0,0,0,.45);
}
.topsearch { display: flex; gap: 4px; margin-left: 10px; }
.topsearch input[type=search] { width: 190px; padding: 3px 6px; border-radius: 2px; border: 1px solid #06214a; font-size: 12px; }
.me { margin-left: auto; color: #fff; font-size: 12px; text-align: right; line-height: 1.6; }
.me a { color: #fff; font-weight: bold; }
.me .price { color: #ffd65a; }
.status { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: #e8f2ff; font-size: 11px; white-space: nowrap; }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #999; box-shadow: 0 0 0 1px rgba(0,0,0,.3); }
.status.on i { background: #3ee07a; } .status.off i { background: #f44; }

/* The tab row and the gray sub-row */
.nav { background: linear-gradient(#6cb1f7 0%, #3c8ae4 50%, #2a78d4 51%, #1f69c2 100%); border-top: 1px solid #9ccbff;
  border-bottom: 1px solid #154f99; }
.nav .wrap { gap: 0; flex-wrap: wrap; }
.nav a { color: #fff; padding: 8px 15px; font-size: 13px; font-weight: bold; text-shadow: 0 1px 1px rgba(0,0,0,.45);
  border-right: 1px solid rgba(0,0,0,.18); box-shadow: 1px 0 0 rgba(255,255,255,.2); }
.nav a:first-child { border-left: 1px solid rgba(0,0,0,.18); }
.nav a:hover { background: rgba(255,255,255,.18); text-decoration: none; }
.nav a.on { background: linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.05)); }
.subnav { background: linear-gradient(#f4f5f7, #d8dce2); border-bottom: 1px solid #aab1bb; }
.subnav .wrap { gap: 0; flex-wrap: wrap; }
.subnav a { color: #333; padding: 5px 12px; font-size: 11px; font-weight: bold; }
.subnav a + a { border-left: 1px solid #b7bdc6; }
.subnav a.on { color: var(--blue-dark); text-decoration: underline; }
.nav a[hidden], .subnav a[hidden] { display: none; }

/* The white page in the middle */
.page { max-width: 970px; margin: 12px auto 0; }
.content {
  background: var(--panel); border: 1px solid #b4bac3; box-shadow: 0 1px 4px rgba(0,0,0,.15);
  min-height: 60vh; padding: 14px 16px 22px;
}
.foot { max-width: 970px; margin: 0 auto; text-align: center; color: #555; font-size: 11px; padding: 12px 10px 30px; }
.foot .links { padding: 8px 0; border-bottom: 1px solid #b9bfc8; margin-bottom: 8px; }
.foot a { color: #333; font-weight: bold; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .foot, :root:not([data-theme="light"]) .foot a { color: #aab4c3; }
  :root:not([data-theme="light"]) .content { border-color: #2c3645; } }

/* Bits and pieces */
h1 { font-size: 20px; margin: 0 0 10px; font-family: Arial, Verdana, sans-serif; letter-spacing: -.3px; }
/* Section titles look like the title bar of an old-school box. */
h2 { font-size: 13px; margin: 18px 0 10px; padding: 5px 9px; color: var(--headText);
  background: linear-gradient(var(--head1), var(--head2)); border: 1px solid var(--line); border-radius: 3px 3px 0 0; }
h2 .btn { margin-top: -2px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.box { background: var(--panel); border: 1px solid var(--line); border-radius: 3px; padding: 10px 12px; margin: 10px 0; }
.box.info { background: #e1f0ff; border-color: #7fb6ee; color: #12325c; }
.box.gold { background: #fff6d6; border-color: #e3c25a; color: #4d3a00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .box.info { background: #13294a; color: #cfe3ff; }
  :root:not([data-theme="light"]) .box.gold { background: #3a2f0a; color: #ffe7a0; } }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.top { align-items: flex-start; }
.grow { flex: 1; min-width: 0; }
/* Shiny buttons: a lighter top half, like everything was in 2011. */
.btn { display: inline-block; border: 1px solid #8f969f; border-radius: 3px; padding: 5px 12px; cursor: pointer;
  font: inherit; font-size: 12px; font-weight: bold; color: #333; text-decoration: none !important;
  background: linear-gradient(#ffffff 0%, #f1f2f4 50%, #e1e4e8 51%, #d3d7dc 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.8); }
.btn:hover { filter: brightness(1.06); }
.btn:active { filter: brightness(.94); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.blue { color: #fff; border-color: #0d4a96; text-shadow: 0 -1px 0 rgba(0,0,0,.35);
  background: linear-gradient(#6fb3f7 0%, #3d8ce6 50%, #1f6fd0 51%, #1a5fb4 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.btn.green { color: #fff; border-color: #0d6a2e; text-shadow: 0 -1px 0 rgba(0,0,0,.35);
  background: linear-gradient(#6fe08f 0%, #33bd5d 50%, #1ea447 51%, #178c3b 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.btn.red { color: #fff; border-color: #861616; text-shadow: 0 -1px 0 rgba(0,0,0,.35);
  background: linear-gradient(#f08a8a 0%, #e04848 50%, #c92a2a 51%, #aa1f1f 100%); }
.btn.big { padding: 9px 26px; font-size: 16px; }
.btn.small { padding: 2px 8px; font-size: 11px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
input[type=text], input[type=password], input[type=number], input[type=search], textarea, select {
  font: inherit; color: var(--text); background: var(--panel); border: 1px solid #a3a9b2; border-radius: 2px;
  padding: 5px 7px; width: 100%; max-width: 420px; box-shadow: inset 0 1px 2px rgba(0,0,0,.12);
}
textarea { min-height: 70px; resize: vertical; }
label { display: block; margin: 10px 0 4px; font-weight: bold; font-size: 12px; }
.form { max-width: 440px; }
.error { color: var(--red); }
.ok { color: var(--green); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.card { display: block; color: inherit; text-decoration: none !important; }
.card .pic { position: relative; aspect-ratio: 16 / 9; border: 1px solid #9aa1ab; border-radius: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; font-weight: bold;
  text-shadow: 0 1px 2px rgba(0,0,0,.5); padding: 6px; }
.card.square .pic { aspect-ratio: 1; background: #fff; }
.card:hover .pic { outline: 2px solid #f5b800; }
.card .name { color: var(--link); margin-top: 4px; font-weight: bold; overflow-wrap: anywhere; }
.card:hover .name { text-decoration: underline; }
.card .by { color: var(--muted); font-size: 12px; }
.price { color: var(--gold); font-weight: bold; }
.bolt { display: inline-block; width: 1em; height: 1em; vertical-align: -2px; margin-right: 3px; }
.check { display: inline-block; width: 1em; height: 1em; vertical-align: -2px; margin-left: 3px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #aaa; margin-right: 5px; }
.dot.on { background: #22b35e; }
.list > div { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list > div:last-child { border-bottom: 0; }
.thumb { width: 64px; height: 64px; border: 1px solid var(--line); border-radius: 3px; object-fit: contain;
  background: repeating-conic-gradient(#d6d9de 0 25%, #eef0f2 0 50%) 0 0 / 16px 16px; flex: none; }
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
@media (max-width: 720px) { .hero { grid-template-columns: 1fr; } }
.hero .pic { aspect-ratio: 16 / 9; border-radius: 4px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 22px; font-weight: bold; text-shadow: 0 1px 3px rgba(0,0,0,.5); padding: 10px; text-align: center; }
.wall > div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.banner-color { height: 10px; border-radius: 4px 4px 0 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100% - 32px);
  background: #1d2430; color: #fff; padding: 10px 16px; border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.3); z-index: 9; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center;
  padding: 16px; z-index: 8; }
.modal > div { background: var(--panel); border: 1px solid #7d8591; border-radius: 3px; padding: 18px 20px; max-width: 480px; width: 100%; }

@media (max-width: 640px) {
  body { font-size: 13px; }
  .page { margin-top: 0; }
  .content { border-left: 0; border-right: 0; padding: 12px 12px 20px; }
  .topsearch { order: 3; margin: 0; flex: 1 1 100%; }
  .topsearch input[type=search] { width: auto; flex: 1; }
  .logo { font-size: 26px; }
  .nav a { padding: 7px 10px; font-size: 12px; }
  .status { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

.badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #e23b3b; color: #fff;
  font-size: 11px; line-height: 18px; text-align: center; margin-left: 3px; }
.nav a[hidden] { display: none; }

/* Profiles (like a classic Roblox profile) */
.profile-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.profile-head h1 { margin: 0; }
.presence { font-size: 13px; color: var(--muted); }
.presence.on { color: var(--green); font-weight: bold; }
.profile { display: grid; grid-template-columns: 290px 1fr; gap: 14px; align-items: start; }
@media (max-width: 720px) { .profile { grid-template-columns: 1fr; } }
.profile .box { margin: 0 0 12px; }
.boxhead { margin: -10px -12px 10px; padding: 5px 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 3px 3px 0 0;
  font-size: 13px; background: linear-gradient(var(--head1), var(--head2)); color: var(--headText); }
.boxhead a { font-weight: normal; font-size: 11px; }
.avatar-box { text-align: center; background: linear-gradient(#f4f8fd, #dfe8f3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .avatar-box { background: linear-gradient(#2a3342, #1e2530); } }
.avatar-box canvas, .avatar-box svg { display: block; margin: 0 auto; }
.wearing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.wearing .pic { aspect-ratio: 1; }
.stats { width: 100%; border-collapse: collapse; font-size: 13px; }
.stats td { padding: 4px 2px; border-bottom: 1px solid var(--line); }
.stats td:first-child { color: var(--muted); }
.badge-pill { display: inline-block; padding: 3px 9px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); font-size: 12px; }
.friends-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.friend { display: block; text-align: center; color: inherit; overflow-wrap: anywhere; }
.friend-pic { height: 78px; display: flex; align-items: center; justify-content: center; }
.friend-pic img, .friend-pic svg { max-height: 78px; width: auto; }

/* Home page: you on the left, the best games on the right */
.home { display: grid; grid-template-columns: 210px 1fr; gap: 14px; align-items: start; }
.home .box { margin: 0 0 12px; }
.home-left .avatar-box p { margin: 6px 0 0; }
.welcome { display: flex; gap: 18px; align-items: center; padding: 14px 18px; margin-bottom: 12px; border: 1px solid #9cc3ec;
  background: linear-gradient(#eaf4ff, #cfe4fb); color: #12325c; }
.welcome h1 { font-size: 24px; }
.welcome > div:first-child { flex: 1; }
.welcome-guy { flex: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .welcome { background: linear-gradient(#1b2d47, #13233a); color: #cfe3ff; border-color: #2c4a70; } }
@media (max-width: 720px) {
  .home { grid-template-columns: 1fr; }
  .welcome { flex-direction: column-reverse; text-align: center; }
}

/* Popups, like the old site's: white box, big bold title, round close button */
.modal > div.popup { position: relative; border: 1px solid #7d8591; border-radius: 0; padding: 22px 26px 18px; text-align: center;
  box-shadow: 0 6px 30px rgba(0,0,0,.45); max-width: 440px; }
.modal > div.popup.wide { max-width: 560px; }
.popup-x { position: absolute; right: -14px; top: -14px; width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  background: #3b3b40; color: #fff; border: 3px solid #fff; font: bold 20px/1 Arial, sans-serif; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.popup-x:hover { background: #56565c; }
.popup-title { font-family: Arial, Verdana, sans-serif; font-weight: bold; font-size: 24px; margin: 4px 0 16px; }
.popup-buttons { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.charpick { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; margin: 6px 0 18px; }
.charpick-one { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text); text-decoration: none !important;
  font-size: 16px; font-family: Arial, Verdana, sans-serif; }
.charpick-pic { width: 164px; height: 164px; border: 4px solid #1a8a1a; background: #fff; display: flex; align-items: center;
  justify-content: center; overflow: hidden; }
.charpick-pic img, .charpick-pic svg { max-height: 150px; width: auto; }
.charpick-one:hover .charpick-pic { border-color: #2fb52f; box-shadow: 0 0 0 3px rgba(47,181,47,.25); }
.charpick-account { color: #1a8a2a; font-weight: bold; font-size: 16px; font-family: Arial, Verdana, sans-serif; }
.launch-spin { width: 36px; height: 36px; margin: 0 auto 10px; border-radius: 50%; border: 4px solid #cfd6e0; border-top-color: var(--blue);
  animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) { .charpick { gap: 16px; } .charpick-pic { width: 130px; height: 130px; } .popup-x { right: -6px; top: -6px; } }

/* Game icons and the Configure page */
.game-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; border: 1px solid #9aa1ab;
  border-radius: 8px; object-fit: cover; color: #fff; font-weight: bold; font-size: 18px; text-shadow: 0 1px 2px rgba(0,0,0,.5);
  vertical-align: middle; background: #fff; }
.game-title { display: flex; align-items: center; gap: 10px; }
.configure { max-width: 760px; }
.configure .box { margin: 0 0 12px; }
.configure input[type=text], .configure textarea { max-width: none; }
.choice { display: block; font-weight: normal; margin: 6px 0; cursor: pointer; }
.pics { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
@media (max-width: 640px) { .pics { grid-template-columns: 1fr; } }
.thumb-prev .pic, .thumb-prev img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid #9aa1ab; display: flex;
  align-items: center; justify-content: center; color: #fff; font-weight: bold; }
.icon-prev img, .icon-prev .game-icon { width: 128px; height: 128px; object-fit: cover; border-radius: 16px; font-size: 44px; }
.pics input[type=file] { margin-top: 8px; }

/* Account Settings */
.settings { max-width: 640px; }
.settings .box { margin: 0 0 12px; }
.settings input[type=email] { max-width: 420px; }
input[type=email] { font: inherit; color: var(--text); background: var(--panel); border: 1px solid #a3a9b2; border-radius: 2px;
  padding: 5px 7px; width: 100%; box-shadow: inset 0 1px 2px rgba(0,0,0,.12); }
.playing { color: var(--green); }

/* Game page: Roblox-style server cards */
.server-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.server-card { background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 10px; }
.server-card.shared { outline: 2px solid var(--blue); }
.server-faces { display: grid; grid-template-columns: repeat(3, 52px); gap: 6px; min-height: 52px; }
.server-faces .face { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: #c8cfd9;
  display: flex; align-items: center; justify-content: center; }
.server-faces .face.more { background: #8b93a3; color: #fff; font-weight: bold; font-size: 14px; }
.server-count { margin: 8px 0 4px; font-size: 13px; }
.server-buttons { display: flex; gap: 6px; margin: 6px 0 4px; }
.server-buttons .btn { flex: 1; }
.pager { display: flex; gap: 6px; align-items: center; justify-content: center; margin-top: 12px; }

/* Game badges (made by game creators) */
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.game-badge { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; font-size: 11px; color: var(--text); }
.game-badge span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 76px; }

/* Games: genre chips, likes */
.genre-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 14px; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2);
  color: var(--text); font-size: 11px; text-decoration: none !important; }
.chip:hover { border-color: var(--blue); }
.chip.on { background: var(--blue); border-color: var(--blue-dark); color: #fff; }
.liked { color: var(--green); font-weight: bold; }
.votes { display: flex; align-items: center; gap: 8px; margin: 8px 0; max-width: 360px; }
.vote-bar { flex: 1; height: 6px; background: var(--red); border-radius: 3px; overflow: hidden; }
.vote-bar > div { height: 100%; background: var(--green); }
.game-stats td { padding: 2px 10px 2px 0; }
.game-stats td:nth-child(odd) { color: var(--muted); }
.genre-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 2px 10px; margin-bottom: 8px; }

/* Limiteds, resale and trades */
.card.square { position: relative; }
.card.square .pic, .pic-wrap { position: relative; }
.official-badge { position: absolute; right: 6px; bottom: 6px; line-height: 0; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.limited-tag { position: absolute; left: 6px; top: 6px; background: #1a7f37; color: #fff; font-weight: bold; font-size: 10px;
  padding: 2px 6px; border-radius: 3px; letter-spacing: 1px; }
.limited-line { font-size: 13px; }
.resellers th { text-align: left; color: var(--muted); font-weight: normal; padding-right: 14px; }
.resellers td { padding: 4px 14px 4px 0; }
.btn.gold { background: linear-gradient(#f5c542, #d49a0a); color: #3b2a00; border-color: #a77800; }
.trade-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .trade-cols { grid-template-columns: 1fr; } }
.trade-pick { display: flex; flex-direction: column; gap: 4px; }
.past-names { margin: -6px 0 10px; }

/* Create > Library */
.lib-thumb { width: 100%; height: 100%; object-fit: cover; }
.item-thumb { width: 100%; height: 100%; object-fit: contain; }
.lib-card a.pic, .lib-card a.name { display: block; color: inherit; text-decoration: none; }
.lib-card a.name:hover { text-decoration: underline; }
.lib-kind { flex-direction: column; gap: 4px; }
.asset-cols { grid-template-columns: 330px 1fr 210px; }
.asset-idbox .asset-id { width: 100%; box-sizing: border-box; font-family: monospace; font-size: 12px; margin: 4px 0 8px; text-align: center; }
.audio-big svg { width: 96px; height: 96px; }
#assetAudio audio { width: 100%; max-width: 360px; }
.lib-kind { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--muted); font-weight: bold; }

/* Catalog items in 3D */
.item3d { width: 100%; height: 100%; object-fit: contain; }

/* Updates page: one box per update, the newest on top */
.update { position: relative; }
.update-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.update-head h2 { margin: 0; padding: 0; font-size: 18px; color: var(--headText); background: none; border: 0; box-shadow: none; }
.update-tag { color: #fff; font-size: 11px; font-weight: bold; padding: 2px 9px; border-radius: 10px; text-transform: uppercase; letter-spacing: .5px; }
.update-summary { font-size: 13px; margin: 6px 0; }
.update-items { margin: 6px 0 2px; padding-left: 20px; }
.update-items li { margin: 3px 0; }
.update.fresh { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(29, 111, 216, .25); animation: slidein .5s ease-out; }
@keyframes slidein { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; margin-left: 4px;
  vertical-align: middle; animation: livepulse 2s infinite; }
@keyframes livepulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.latest-update b { font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .update.fresh, .live-dot { animation: none; } }

/* Moderation: the ban page and warnings */
.ban-box { max-width: 620px; margin: 30px auto; text-align: center; border-top: 6px solid var(--red); }
.ban-box h1 { color: var(--red); }
.ban-table { margin: 14px auto; border-collapse: collapse; text-align: left; }
.ban-table th { padding: 6px 14px 6px 0; color: #555; font-weight: normal; vertical-align: top; white-space: nowrap; }
.ban-table td { padding: 6px 0; }
.modal > div.popup.warning { border-top: 6px solid var(--red); }

/* Sign-up: the 18+ notice, and the Terms page */
.mature-note { background: #fff3cd; border: 1px solid #e0b84c; color: #4a3800; padding: 8px 10px; margin: 10px 0 6px; font-size: 12px; border-radius: 3px; }
label.check { display: flex; gap: 6px; align-items: flex-start; font-weight: normal; font-size: 12px; margin: 6px 0; }
label.check input { width: auto; margin-top: 2px; }
.terms { max-width: 760px; line-height: 1.5; }
.terms h2 { font-size: 16px; margin-top: 18px; }
.user-number { margin-left: 8px; }
@media (prefers-color-scheme: dark) { .mature-note { background: #3a3010; color: #ffe8a8; border-color: #8a6d1e; } }
.secret-key code { font-size: 16px; letter-spacing: 1px; background: #f2f4f7; padding: 4px 8px; border-radius: 3px; }
@media (prefers-color-scheme: dark) { .secret-key code { background: #20242c; } }
.playing-now { margin-left: 8px; }
.friend .link { color: var(--link, #0055cc); text-decoration: underline; }
.friend:hover .link { color: var(--link-hover, #0033aa); }
.people-grid { gap: 10px; }
.item-render { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.item-render.no-picture { color: var(--muted, #888); font-size: 12px; background: linear-gradient(135deg, #f2f3f6, #e3e6ec); border-radius: 6px; }
.item-render img.item3d, .item-render img.item-thumb { max-width: 100%; max-height: 100%; }

/* Timed items (they go off sale at a set time, like Gutstober items) */
.timed-tag { position: absolute; left: 6px; top: 6px; background: #d9620b; color: #fff; font-weight: bold; font-size: 10px;
  padding: 2px 6px; border-radius: 3px; letter-spacing: 1px; }
.timed-line { font-size: 13px; color: #b4500a; }

/* Gutstober: the Halloween theme for October (Settings > Site theme turns it off).
   Pumpkins and bats are drawn with plain CSS shapes. */
html.gutstober {
  --bg: #1c1226; --panel: #fffaf3; --panel2: #fbefe0; --stripe: #fdf3e6; --line: #d8b998;
  --head1: #ffb347; --head2: #f07f13; --headText: #2a0f3a; --link: #6b2fb3; --blue: #7b3fc4; --blue-dark: #4b1d86;
}
@media (prefers-color-scheme: dark) {
  html.gutstober:not([data-theme="light"]) {
    --bg: #120a19; --panel: #21162b; --panel2: #2b1d37; --stripe: #281b33; --line: #4a3358; --text: #f1e8f6;
    --head1: #e0751a; --head2: #a84a07; --headText: #fff3e6; --link: #ffb054;
  }
}
html.gutstober body {
  background: var(--bg) radial-gradient(ellipse at 50% -10%, rgba(255,140,30,.18), transparent 60%) fixed;
}
html.gutstober .topbar { background: linear-gradient(#3a1752, #1a0828); border-bottom-color: #0b0312; }
html.gutstober .logo { color: #ff8a1c; }
html.gutstober .nav { background: linear-gradient(#ffad4d 0%, #f58a1f 50%, #e8740c 51%, #c95e05 100%);
  border-top-color: #ffd29a; border-bottom-color: #7a3500; }
html.gutstober .subnav { background: linear-gradient(#4b2a63, #2f1842); border-bottom-color: #160a20; }
html.gutstober .subnav a { color: #f6d9ff; }
html.gutstober .subnav a + a { border-left-color: #6a4785; }
html.gutstober .subnav a.on { color: #ffb054; }
html.gutstober .btn.blue { background: linear-gradient(#9a5ee0, #6a2fb0); border-color: #4b1d86; }
html.gutstober .foot, html.gutstober .foot a { color: #cbb5dc; }

.gutstober-banner { background: linear-gradient(90deg, #2a0f3a, #4a1c5e 50%, #2a0f3a); color: #ffe2bd; font-size: 12px;
  border-bottom: 2px solid #f07f13; overflow: hidden; }
.gutstober-banner .wrap { min-height: 34px; position: relative; }
.gutstober-banner b { color: #ff9a2e; font-size: 14px; font-family: Impact, "Arial Black", sans-serif; letter-spacing: 1px; }
.gutstober-banner a { color: #ffb054; text-decoration: underline; }
/* a pumpkin: an orange squashed ball with ridges, a stem and a glowing face */
.gt-pumpkin { position: relative; flex: none; width: 26px; height: 21px; border-radius: 48% 48% 44% 44%;
  background: radial-gradient(ellipse at 50% 40%, #ffa53a, #e36a05 70%, #b04d00);
  box-shadow: inset 6px 0 0 -4px rgba(120,45,0,.45), inset -6px 0 0 -4px rgba(120,45,0,.45); }
.gt-pumpkin::before { content: ""; position: absolute; left: 11px; top: -6px; width: 4px; height: 7px; border-radius: 2px;
  background: #4f7a1e; transform: rotate(12deg); }
.gt-pumpkin::after { content: ""; position: absolute; left: 6px; top: 6px; width: 14px; height: 9px;
  background:
    linear-gradient(135deg, transparent 45%, #ffe066 46%) 0 0 / 5px 4px no-repeat,
    linear-gradient(-135deg, transparent 45%, #ffe066 46%) 9px 0 / 5px 4px no-repeat,
    radial-gradient(ellipse at 50% 0, transparent 55%, #ffe066 56%, #ffe066 75%, transparent 76%) 0 4px / 14px 6px no-repeat; }
/* bats flapping along */
.gt-bats { margin-left: auto; display: flex; gap: 14px; }
.gt-bats i { display: block; width: 18px; height: 8px; position: relative; animation: gt-flap .5s ease-in-out infinite alternate; }
.gt-bats i:nth-child(2) { animation-delay: .15s; margin-top: -6px; }
.gt-bats i:nth-child(3) { animation-delay: .3s; }
.gt-bats i::before, .gt-bats i::after { content: ""; position: absolute; top: 0; width: 9px; height: 7px; background: #0d0614;
  border-radius: 0 100% 0 60%; }
.gt-bats i::before { left: 0; transform: scaleX(-1); }
.gt-bats i::after { right: 0; }
@keyframes gt-flap { from { transform: scaleY(1) translateY(0); } to { transform: scaleY(.4) translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .gt-bats i { animation: none; } }
@media (max-width: 600px) { .gutstober-banner span:not(.gt-pumpkin):not(.gt-bats) { display: none; } }

/* Item pictures while they're being drawn */
.item-render.loading::after { content: ""; width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid rgba(120,130,145,.25); border-top-color: rgba(120,130,145,.8); animation: gb-spin .8s linear infinite; }
@keyframes gb-spin { to { transform: rotate(360deg); } }

/* The item page, laid out like the 2016 catalog: picture, details, and a buy box */
.item-page { background: var(--panel); border: 1px solid var(--line); border-radius: 3px; padding: 14px 16px 18px; }
.item-title { font-size: 30px; font-weight: bold; margin: 0; letter-spacing: -.5px; }
.item-sub { font-weight: bold; color: var(--text); font-size: 13px; margin: 2px 0 12px; }
.item-cols { display: grid; grid-template-columns: 330px 1fr 190px; gap: 18px; align-items: start; }
.item-pic { position: relative; width: 330px; height: 330px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.item-pic .pic { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.item-pic .pic canvas { display: block; }
/* the red "NEW" ribbon across the top right corner */
.item-ribbon { position: absolute; top: 26px; right: -44px; width: 170px; transform: rotate(45deg); text-align: center;
  background: linear-gradient(#d6261c, #a3150d); color: #fff; font: bold 17px Arial, sans-serif; letter-spacing: 2px;
  padding: 5px 0; box-shadow: 0 2px 3px rgba(0,0,0,.35); pointer-events: none; }
/* a little alarm clock (timed item), drawn with CSS */
.item-clock { position: absolute; top: 8px; left: 8px; width: 32px; height: 32px; border-radius: 6px; background: #d6261c;
  display: flex; align-items: center; justify-content: center; }
.item-clock i { width: 16px; height: 16px; border: 2px solid #fff; border-radius: 50%; position: relative; }
.item-clock i::before { content: ""; position: absolute; left: 6px; top: 2px; width: 2px; height: 6px; background: #fff; }
.item-clock i::after { content: ""; position: absolute; left: 6px; top: 6px; width: 5px; height: 2px; background: #fff; }
/* the green LIMITED tag with its yellow U, bottom left */
.item-limited { position: absolute; left: 0; bottom: 8px; display: flex; align-items: stretch; font: bold 17px Arial, sans-serif;
  color: #fff; letter-spacing: 1px; pointer-events: none; }
.item-limited { background: linear-gradient(#26a540, #137a28); padding: 3px 4px 3px 10px; border: 1px solid #0d5a1c; }
.item-limited b { background: #f5d000; color: #222; margin: -3px -4px -3px 8px; padding: 3px 14px 3px 10px;
  clip-path: polygon(14% 0, 100% 0, 86% 100%, 0 100%); }
.item-3d { position: absolute; right: 8px; bottom: 8px; font-size: 10px; border: 1px solid #999; background: #f4f4f4; color: #333;
  padding: 1px 5px; border-radius: 2px; pointer-events: none; }
.item-creator { display: flex; gap: 10px; align-items: center; }
.item-creator-pic { width: 48px; height: 60px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--panel2); border-radius: 3px; }
.item-creator-pic img { max-width: 100%; max-height: 100%; }
.item-creator td { padding: 1px 6px 1px 0; font-size: 12px; }
.item-creator td:first-child { color: var(--muted); }
.item-desc { white-space: pre-wrap; font-size: 14px; margin: 14px 0; }
.item-info hr { border: 0; border-top: 1px solid var(--line); }
.item-buybox { border: 1px solid #999; background: linear-gradient(#f2f2f2, #e2e2e2); padding: 10px; text-align: center; color: #222; }
.item-left { color: #c8100c; font-weight: bold; font-size: 14px; margin-bottom: 4px; }
.item-offsale { font-size: 13px; margin-bottom: 4px; color: #444; }
.item-offsale b { color: #c8100c; font-size: 15px; }
.item-price { font-size: 13px; margin: 2px 0 6px; color: #333; }
.item-price .price { color: #0a7d2c; font-weight: bold; }
.item-buybox .btn.buy { width: 100%; font-size: 18px; padding: 8px 6px; }
.item-sold { color: #555; font-size: 12px; margin-top: 6px; }
@media (max-width: 820px) {
  .item-cols { grid-template-columns: 1fr; }
  .item-pic { width: 100%; max-width: 330px; margin: 0 auto; }
}
.item-creator td { white-space: nowrap; }

/* Messages (the inbox) */
.subnav a .unread, .tabs .unread { display: inline-block; min-width: 16px; padding: 0 4px; border-radius: 8px; background: #d6261c; color: #fff;
  font-size: 10px; line-height: 16px; text-align: center; margin-left: 3px; }
.messages { border: 1px solid var(--line); border-radius: 3px; background: var(--panel); }
.message { border-bottom: 1px solid var(--line); }
.message:last-child { border-bottom: 0; }
.message summary { display: flex; gap: 12px; align-items: baseline; padding: 8px 10px; cursor: pointer; list-style: none; }
.message summary::-webkit-details-marker { display: none; }
.message summary:hover { background: var(--stripe); }
.message.unread summary { font-weight: bold; background: rgba(29,111,216,.07); }
.message.unread summary::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex: none; align-self: center; }
.message-who { width: 160px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-subject { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.message-when { flex: none; }
.message-body { white-space: pre-wrap; padding: 4px 12px 0 12px; font-size: 13px; overflow-wrap: anywhere; }
.message-tools { padding: 0 12px 6px; }
@media (max-width: 600px) { .message summary { flex-wrap: wrap; } .message-who { width: auto; } .message-subject { flex-basis: 100%; } }

/* Favourite star on a game's page */
.btn.fav.on { color: #b07800; border-color: #e3c25a; background: linear-gradient(#fff6d6, #f5e3a3); }

/* Saved outfits */
.outfit .pic { display: flex; align-items: center; justify-content: center; }
.outfit-buttons { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; padding: 4px 0; }

/* Classic profile bits: About me, status, player badges; and My Feed on the home page */
.about .blurb { white-space: pre-wrap; overflow-wrap: anywhere; }
.status-line { background: var(--panel2); border-left: 3px solid var(--blue); padding: 6px 8px; margin: 0 0 8px; }
.edit-about summary { list-style: none; display: inline-block; }
.edit-about summary::-webkit-details-marker { display: none; }
.player-badge.locked svg { filter: grayscale(1); opacity: .35; }
.player-badge.locked span { color: var(--muted); }
.feed-list { max-height: 360px; overflow-y: auto; }
.feed-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.feed-item:last-child { border-bottom: 0; }
.feed-pic { flex: none; width: 40px; height: 50px; display: flex; align-items: center; justify-content: center; }
