/* The main page: an old-school (2013-era) Roblox-style profile page.
   Colours were sampled from the reference screenshots; everything is drawn with CSS (no Roblox artwork). */
:root {
  --bar-top: #1E50A1;
  --bar-bottom: #133D8A;
  --bar-edge: #0C1F3F;
  --subbar: #181818;
  --ink: #343434;
  --ink-strong: #232323;
  --muted: #5D5D5C;
  --rule: #CBCBCB;
  --link: #2462A6;
  --status: #E5822C;
  --row-top: #FFFFFF;
  --row-bottom: #DEDEDE;
  --row-line: #C9C9C9;
  --row-under: #9D9D9D;
  --play-top: #05A305;
  --play-bottom: #037E00;
  --play-line: #1B6B17;
  --blue-top: #116DF4;
  --blue-bottom: #0B53C6;
  --blue-line: #144DA1;
  --dot: #C10A0E;
  --font: "Source Sans 3", "Source Sans Pro", Arial, Helvetica, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: #fff; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; font: 14px/1.4 var(--font); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid #4A90E2; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 6px 12px; font-weight: 700; }
.skip:focus { left: 8px; }

/* ---------- Top bar (blue gradient) ---------- */
.topbar {
  height: 40px; color: #fff;
  background: linear-gradient(var(--bar-top), var(--bar-bottom));
  border-bottom: 1px solid var(--bar-edge);
}
.topbar-inner { max-width: 1010px; height: 100%; margin: 0 auto; padding: 0 14px; display: flex; align-items: center; gap: 26px; }
/* you (avatar + name) on the left, then the two tabs */
.wordmark {
  flex: none; display: flex; align-items: center; gap: 9px;
  font: 700 25px/1 var(--font); letter-spacing: -0.4px; color: #fff;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.wordmark img { width: 26px; height: 26px; border: 1px solid rgba(255, 255, 255, 0.55); background: #fff; }
.wordmark:hover { text-decoration: none; }
.topnav { display: flex; gap: 18px; }
.topnav a { color: #fff; font: 700 16px/1 var(--font); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); white-space: nowrap; }

/* ---------- Two columns, split by a thin line ---------- */
.profile { max-width: 1010px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; }
.col { min-width: 0; padding: 0 22px; }
.col--left { border-right: 1px solid var(--rule); }
/* On a computer the two columns line up in rows: your profile | Active Places, then Badges | Blogs, so each
   pair starts and ends level. (The .col boxes step aside and their sections sit in the page's grid.) */
@media (min-width: 761px) {
  .profile { grid-template-rows: auto auto; position: relative; }
  .profile::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--rule); }
  .col { display: contents; }
  .col > .block { margin: 0 22px; min-width: 0; }
  .col--left > .block { grid-column: 1; }
  .col--right > .block { grid-column: 2; }
  #top, #places { grid-row: 1; }
  #ad, #blogs { grid-row: 2; }
}
.block { padding: 26px 0 26px; border-bottom: 1px solid var(--rule); }
.block:last-child, .block:has(+ .block[hidden]:last-child) { border-bottom: 0; }   /* (Friends is hidden for now) */
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
h1, h2 { font: 400 32px/1.15 var(--font); color: var(--ink-strong); letter-spacing: -0.2px; }
h2 { margin-bottom: 20px; }

/* You */
.block--me { padding-top: 34px; }
.handle { margin-top: 4px; color: #6A6A6A; font-size: 14px; }
.status { margin-top: 22px; text-align: center; color: var(--status); font-size: 15px; }
.avatar { width: 250px; height: auto; margin: 14px auto 0; }
.buttons { margin-top: 18px; display: flex; justify-content: center; gap: 12px; }
.btn-gray {
  display: inline-block; padding: 4px 10px 5px; font: 15px/1.2 Arial, Helvetica, sans-serif; color: #222;
  border: 1px solid #B9B9B9; border-bottom-color: #A9A9A9;
  background: linear-gradient(#FAFCFC, #E4E4E4);
}
a.btn-gray:hover { text-decoration: none; background: linear-gradient(#FFFFFF, #EBEBEB); border-color: #9E9E9E; }
.btn-gray.is-disabled { color: #ABABAB; border-color: #DCDCDC; background: linear-gradient(#FFFFFF, #F3F3F3); cursor: default; }

/* The software you use: a row of small icons in your profile section (hover shows the name) */
.tool-icons { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.tool-icons img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, 0.25)); }

/* The "Advertisement" box: a grey frame a few pixels round the picture, ‹ › on either side. The picture area is
   4:3 until ad.js sets it to the shape of what it plays; nothing is cropped, any leftover space is the grey. */
.block--ad { padding-top: 18px; }
.ad-label { text-align: right; color: #9A9A9A; font-size: 11px; letter-spacing: 0.3px; margin-bottom: 3px; }
.ad-frame { position: relative; display: flex; align-items: center; gap: 4px; padding: 4px; background: #EDEDED; border: 1px solid #D6D6D6; outline-offset: 2px; }
.ad-stage { position: relative; flex: 1; min-width: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #EDEDED; }
.ad-slide { position: absolute; inset: 0; animation: ad-in 0.35s ease; }
@keyframes ad-in { from { opacity: 0; } to { opacity: 1; } }
.ad-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.ad-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center; color: #8A8A8A; font-size: 14px; }
.ad-stage { cursor: pointer; }
#ad.is-empty .ad-stage { cursor: default; }
.ad-watch {
  position: absolute; right: 6px; bottom: 6px; padding: 2px 7px; font: 700 11px/1.5 var(--font); color: #fff;
  background: rgba(0, 0, 0, 0.6); border-radius: 2px; pointer-events: none;
}
/* The whole picture/video, centred over the blurred page */
.ad-full { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden; }
.ad-full::backdrop { background: rgba(20, 20, 24, 0.45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ad-full-body { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 56px 24px 24px; }
.ad-full-media { max-width: min(100%, 1280px); max-height: 100%; object-fit: contain; background: #EDEDED; border: 8px solid #EDEDED; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45); }
.ad-full-x {
  position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; padding: 0 0 3px; border-radius: 50%;
  font: 700 26px/1 Arial, Helvetica, sans-serif; color: #333; cursor: pointer;
  border: 1px solid #B9B9B9; background: linear-gradient(#FAFCFC, #E1E1E1); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.ad-full-x:hover { background: linear-gradient(#FFFFFF, #EBEBEB); }
html.ad-full-open { overflow: hidden; }
.ad-arrow {
  flex: none; width: 26px; height: 46px; display: flex; align-items: center; justify-content: center; padding: 0 0 3px;
  font: 700 28px/1 Arial, Helvetica, sans-serif; color: #444; cursor: pointer;
  border: 1px solid #B9B9B9; border-radius: 3px; background: linear-gradient(#FAFCFC, #E1E1E1);
}
.ad-arrow:hover { background: linear-gradient(#FFFFFF, #EBEBEB); border-color: #9E9E9E; }
.ad-arrow[hidden] { display: flex; visibility: hidden; }
.ad-dots { display: flex; justify-content: center; gap: 6px; margin-top: 8px; min-height: 8px; }
.ad-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #C4C4C4; cursor: pointer; }
.ad-dot.is-on { background: var(--link); }
.ad-edit { display: block; margin: 8px auto 0; }
.ad-editor { margin-top: 12px; padding: 10px; border: 1px dashed #BDBDBD; }
.ad-editor.is-drop { border-color: var(--link); background: #EEF4FC; }
.ad-hint { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.ad-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-bottom: 10px; }
.ad-tile { position: relative; aspect-ratio: 4 / 3; background: #EDEDED; overflow: hidden; }
.ad-tile--none { display: flex; align-items: center; justify-content: center; color: #AAA; font-size: 13px; background: #F1F1F1; }
.ad-tile-media { width: 100%; height: 100%; object-fit: contain; }
.ad-tile-note { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #DDD; font-size: 12px; }
.ad-tile-kind { position: absolute; left: 4px; top: 4px; padding: 1px 5px; font: 700 10px/1.4 var(--font); color: #fff; background: rgba(0, 0, 0, 0.6); }
.ad-tile-tools { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 3px; padding: 3px; background: rgba(0, 0, 0, 0.45); }
.ad-tile-tools .btn-gray { padding: 0 7px 1px; font-size: 14px; }
.ad-tile-tools .btn-gray:disabled { opacity: 0.4; }

/* ---------- Active Places: the gradient list ---------- */
.places { display: grid; gap: 3px; }
.place-title { font: inherit; }
.place-head {
  display: flex; align-items: center; gap: 9px; width: 100%; height: 28px; padding: 0 10px;
  font: 700 14px/1 var(--font); color: #282828; text-align: left; cursor: pointer;
  border: 1px solid var(--row-line); border-bottom-color: var(--row-under); border-radius: 0;
  background: linear-gradient(var(--row-top) 0%, #FCFCFC 20%, #F1F1F1 55%, var(--row-bottom) 100%);
}
.place-head::before {
  content: ""; flex: none; width: 0; height: 0;
  border-left: 7px solid #2B2B2B; border-top: 4.5px solid transparent; border-bottom: 4.5px solid transparent;
  transition: transform 0.15s ease;
}
.place-head:hover { background: linear-gradient(#FFFFFF, #F6F6F6 55%, #E6E6E6); }
/* the year ("2025–": started in 2025, still going), on the right of the row */
/* "Edit name & year" on each row (your computer only, places.js) */
.rename-btn { margin: 18px 0 0 8px; height: 33px; vertical-align: top; }
.rename-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; margin-top: 10px; padding: 10px; border: 1px solid #C9C9C9; background: #F7F7F7; }
.rename-form[hidden] { display: none; }
.rename-form label { display: flex; flex-direction: column; gap: 4px; font: 700 13px/1 var(--font); }
.rename-form label:first-child { flex: 2; min-width: 160px; }
.rename-form label:nth-child(2) { flex: 1; min-width: 120px; }
.rename-form input { padding: 6px 8px; border: 1px solid #B8B8B8; font: 14px var(--font); }
.rename-form .btn-gray { height: 30px; }
.rename-note { flex-basis: 100%; font-size: 13px; color: #B3261E; }
.rename-note:empty { display: none; }
.place-year { margin-left: auto; font-weight: 600; font-size: 12px; color: #8A8A8A; letter-spacing: 0.2px; }
.place.is-open .place-head { background: #fff; border-color: var(--row-line); border-bottom: 0; height: 32px; }
.place.is-open .place-head::before { transform: rotate(90deg); border-left-width: 6px; border-top-width: 4px; border-bottom-width: 4px; }
.place-body { border: 1px solid var(--row-line); border-top: 0; padding: 12px 22px 22px; background: #fff; }
.place-shots { position: relative; border: 1px solid #565656; background: #fff; }
.place-shot { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.place-thumb {
  position: absolute; right: -1px; bottom: -1px; width: 15%; aspect-ratio: 1; padding: 0;
  border: 1px solid #565656; background: #fff; cursor: pointer;
}
.place-thumb img { width: 100%; height: 100%; object-fit: cover; }
.place-thumb:hover { outline: 2px solid var(--blue-top); outline-offset: -2px; }
.place-desc { margin-top: 3px; font-size: 14px; color: #595958; }
.play-btn {
  display: inline-block; margin-top: 18px; width: 99px; height: 33px;
  font: 700 21px/31px var(--font); color: #fff; text-align: center;
  border: 1px solid var(--play-line); border-bottom-color: #1F5F15;
  background: linear-gradient(#17A714 0%, var(--play-top) 8%, #029502 50%, var(--play-bottom) 92%, #10730B 100%);
}
.play-btn:hover { text-decoration: none; background: linear-gradient(#24BD20 0%, #0DB50D 8%, #03A703 50%, #038E00 92%, #12820C 100%); }
.play-btn:active { background: linear-gradient(var(--play-bottom), #029502 50%, var(--play-top)); }
.places-empty { padding: 10px 2px; color: var(--muted); }
/* next to Play on a real Roblox game: the Roblox app instead of the browser */
.app-link { display: inline-block; margin: 18px 0 0 12px; vertical-align: top; line-height: 33px; font-size: 13px; color: var(--link); }
/* page-builder places (places.js): Edit next to Play, and "+ New place" under the list (your computer only) */
.edit-place-btn {
  display: inline-block; margin: 18px 0 0 8px; height: 33px; padding: 0 14px; vertical-align: top;
  font: 700 15px/31px var(--font); color: #343434; border: 1px solid #B8B8B8;
  background: linear-gradient(#FFFFFF, #E6E6E6);
}
.edit-place-btn:hover { text-decoration: none; background: linear-gradient(#FFFFFF, #EBEBEB); border-color: #9E9E9E; }
.new-place-btn {
  display: block; width: 100%; margin-top: 10px; padding: 10px; cursor: pointer;
  font: 700 15px/1 var(--font); color: #0E6FC2; border: 2px dashed #9CC6EA; background: #F4F9FE;
}
.new-place-btn:hover { background: #E8F3FD; }
.new-place-btn:disabled { color: #8A8A8A; cursor: default; }
.new-place-form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding: 10px; border: 2px dashed #9CC6EA; background: #F4F9FE; }
.new-place-form[hidden] { display: none; }
.new-place-form label { flex: 1; min-width: 180px; font: 700 14px/1 var(--font); }
.new-place-form input { width: 100%; margin-top: 6px; padding: 6px 8px; border: 1px solid #B8B8B8; font: 14px var(--font); }
.new-place-form .btn-gray { height: 30px; padding: 0 12px; align-self: flex-end; }

/* ---------- About Me (the bio under Add Friend) and the Dev Blog page, edited on the page (about.js) ---------- */
button.btn-gray { cursor: pointer; }
button.btn-gray:hover { background: linear-gradient(#FFFFFF, #EBEBEB); border-color: #9E9E9E; }
button.btn-gray:disabled { color: #ABABAB; border-color: #DCDCDC; background: linear-gradient(#FFFFFF, #F3F3F3); cursor: default; }
.about-empty { color: var(--muted); }
/* the bio: where the "Roblox Generalist" line was, centred like it */
.bio { margin-top: 30px; text-align: center; }
.bio-text { font-size: 15px; line-height: 1.5; color: var(--ink); }
.bio-text + .bio-text { margin-top: 8px; }
.bio-edit {
  margin-top: 6px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 13px/1.3 var(--font); color: var(--link);
}
.bio-edit:hover { text-decoration: underline; }
.bio-edit:disabled { visibility: hidden; }
.bio-form { text-align: left; }
.bio-form .about-actions { margin-top: 12px; }
#bio-box.about-rich { min-height: 5.6em; }
/* the Dev Blog tab: one wide column of posts */
.topnav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 5px; }
.blog-page { max-width: 1010px; margin: 0 auto; padding: 0 22px; }
.blog { border-bottom: 0; }
.blog .block-head { align-items: center; margin-bottom: 28px; }
.blog-edit { flex: none; font-size: 14px; padding: 3px 14px 4px; }
.blog-form .about-add { margin: 0 0 10px; }
/* the posts: a line down the left, a ring on it for each one */
.timeline { list-style: none; position: relative; margin: 0; padding: 0 0 0 30px; max-width: 760px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--rule); }
.tl-item { position: relative; padding-bottom: 36px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -30px; top: 3px; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--link);
}
.tl-when { font: 700 13px/1.3 var(--font); color: var(--link); text-transform: uppercase; letter-spacing: 0.4px; }
.tl-title { margin: 2px 0 0; font: 700 22px/1.3 var(--font); color: var(--ink-strong); }
.tl-text { margin-top: 6px; font-size: 15px; line-height: 1.55; color: #464646; }
.tl-text + .tl-text { margin-top: 10px; }
/* the summary above the posts */
.blog-summary { max-width: 760px; margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.blog-summary-text { font-size: 16px; line-height: 1.6; color: #3C3C3C; }
.blog-summary-text + .blog-summary-text { margin-top: 10px; }

/* Blogs (profile): a card that previews the Dev Blog, the page in miniature, cut off with a fade */
.blog-card {
  display: block; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid #565656;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.blog-card:hover { text-decoration: none; box-shadow: 0 5px 16px rgba(0, 0, 0, 0.18); transform: translateY(-2px); }
.blog-card:hover .blog-card-more { text-decoration: underline; }
.blog-card-bar {
  display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; color: #fff;
  font: 700 12px/1 var(--font); background: linear-gradient(var(--bar-top), var(--bar-bottom));
}
.blog-card-bar img { width: 16px; height: 16px; border: 1px solid rgba(255, 255, 255, 0.55); background: #fff; }
.blog-cards { display: grid; gap: 16px; }
.blog-card-page { display: block; position: relative; max-height: 220px; overflow: hidden; padding: 14px 16px 0; }
.blog-card-page::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff 85%);
}
.blog-card .blog-summary { margin-bottom: 14px; padding-bottom: 12px; }
.blog-card .blog-summary-text { font-size: 13px; line-height: 1.5; }
.blog-card .timeline { padding-left: 22px; }
.blog-card .timeline::before { left: 4px; }
.blog-card .tl-item { padding-bottom: 14px; }
.blog-card .tl-item::before { left: -22px; width: 11px; height: 11px; border-width: 2px; }
.blog-card .tl-when { font-size: 11px; }
.blog-card .tl-title { font-size: 15px; }
.blog-card .tl-text { margin-top: 3px; font-size: 12.5px; line-height: 1.45; }
.card-link { color: var(--link); text-decoration: underline; }
.blog-card-more {
  display: block; padding: 8px 16px 9px; font: 700 14px/1.2 var(--font); color: var(--link);
  border-top: 1px solid var(--row-line); background: linear-gradient(#FFFFFF, #F1F1F1);
}
@media (prefers-reduced-motion: reduce) { .blog-card { transition: none; } .blog-card:hover { transform: none; } }

/* The Non Dev Blog: a grid of cards, newest first, left to right, each with its photos and videos on top */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; align-items: start; }
.post-card { min-width: 0; background: #fff; border: 1px solid var(--row-line); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.post-media { display: grid; gap: 2px; padding: 12px 12px 0; background: transparent; }   /* see-through pictures show the card */
.post-media--2, .post-media--3 { grid-template-columns: 1fr 1fr; }
.post-media--3 > :first-child { grid-column: 1 / -1; }   /* 3 or more: the first one wide, the rest in pairs */
.post-media img, .post-media video { display: block; width: 100%; height: auto; }
/* a soft shadow that follows each photo's own shape (polaroid borders, see-through edges) */
.post-media img, .pc-slide img { filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.18)); }
.post-media--2 img, .post-media--3 > :not(:first-child) img,
.post-media--2 video, .post-media--3 > video:not(:first-child) { aspect-ratio: 1; object-fit: cover; height: 100%; }
.post-img-link { display: block; cursor: zoom-in; }
.tl-image { cursor: zoom-in; }
/* a card with several photos / videos: a carousel, one at a time */
.post-carousel { position: relative; padding: 12px 12px 0; background: transparent; }
.pc-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.pc-track::-webkit-scrollbar { display: none; }
/* every slide has the shape of the card's tallest photo (--pc-ratio, set in about.js), so none is cropped */
.pc-slide { flex: 0 0 100%; aspect-ratio: var(--pc-ratio, 0.8); scroll-snap-align: start; display: flex; align-items: center; justify-content: center; padding: 4px 6px 10px; }
.pc-slide .post-img-link { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.pc-slide img { max-width: 100%; max-height: 100%; width: auto; height: auto; }
.pc-slide img { object-fit: contain; }
/* a photo's caption: just text under it, no box */
.post-fig { display: flex; flex-direction: column; align-items: center; margin: 0; }
.post-media .post-fig { align-items: stretch; }
.pc-slide .post-fig { width: 100%; height: 100%; justify-content: center; }
.pc-slide .post-fig .post-img-link, .pc-slide .post-fig video { flex: 1; min-height: 0; }
.post-cap { margin: 8px 4px 0; font: italic 600 14px/1.35 var(--font); color: #4A4A4A; text-align: center; overflow-wrap: anywhere; }
.mv-cap {
  position: absolute; left: 0; right: 0; bottom: 18px; margin: 0; padding: 0 70px; text-align: center;
  font: italic 600 16px/1.4 var(--font); color: #F2F2F2; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8); pointer-events: none;
}
.mv-cap[hidden] { display: none; }
.pc-slide video { width: 100%; height: 100%; object-fit: contain; }
.pc-btn {
  position: absolute; top: 50%; width: 32px; height: 32px; margin-top: -16px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); color: #222; font: 700 20px/30px var(--font); cursor: pointer;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.3); opacity: 0; transition: opacity 0.15s;
}
.pc-prev { left: 8px; }
.pc-next { right: 8px; }
.post-carousel:hover .pc-btn:not(:disabled), .pc-btn:focus-visible { opacity: 1; }
@media (hover: none) { .pc-btn:not(:disabled) { opacity: 0.85; } }
.pc-btn:disabled { cursor: default; }
.pc-count {
  position: absolute; top: 18px; right: 18px; padding: 2px 8px; border-radius: 10px;
  background: rgba(0, 0, 0, 0.6); color: #fff; font: 600 12px/18px var(--font); pointer-events: none;
}
.pc-dots { position: static; padding: 2px 0 4px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.pc-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: #CFCFCF; pointer-events: auto; cursor: pointer; }
.pc-dots button.is-on { background: #555; }
/* the viewer: a picture big over the page */
.media-viewer {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: transparent; overflow: hidden;
}
.media-viewer::backdrop { background: rgba(10, 10, 12, 0.9); }
.mv-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.mv-stage img, .mv-stage video { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.5)); }
.mv-btn, .mv-close {
  position: absolute; z-index: 2; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.92); color: #222; font: 700 26px/42px var(--font); cursor: pointer;
}
.mv-btn:hover, .mv-close:hover { background: #fff; }
.mv-prev { left: 14px; top: 50%; margin-top: -22px; }
.mv-next { right: 14px; top: 50%; margin-top: -22px; }
.mv-close { top: 12px; right: 14px; }
.mv-count { position: absolute; top: 22px; left: 0; right: 0; margin: 0; text-align: center; color: #ddd; font: 600 14px/1 var(--font); pointer-events: none; }
@media (max-width: 640px) { .mv-stage { padding: 56px 8px; } .mv-btn { width: 36px; height: 36px; font-size: 22px; line-height: 34px; } }
.post-img-link:hover img { opacity: 0.92; }
.post-video { background: #000; }
.post-body { padding: 12px 14px 14px; }
.post-when { font: 700 12px/1.3 var(--font); color: var(--link); text-transform: uppercase; letter-spacing: 0.4px; }
.post-title { margin: 2px 0 0; font: 700 18px/1.3 var(--font); color: var(--ink-strong); }
.post-text { margin-top: 6px; font-size: 15px; line-height: 1.5; color: #464646; }
.post-text + .post-text { margin-top: 8px; }
.post-body > :first-child { margin-top: 0; }
.blog-view .post-body a { color: var(--link); text-decoration: underline; }
/* its preview on the profile: the first cards, small, two across */
.post-grid--mini { grid-template-columns: 1fr 1fr; gap: 8px; }
.post-grid--mini .post-card { box-shadow: none; }
.post-grid--mini .post-body { padding: 6px 8px 8px; }
.post-grid--mini .post-when { font-size: 10px; }
.post-grid--mini .post-title { font-size: 13px; }
.post-grid--mini .post-text { margin-top: 3px; font-size: 12px; line-height: 1.4; }
/* editing a card: its photos and videos as tiles, then its words */
.tl-row.post-row .post-media-edit { grid-column: 1 / 3; display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.tl-row.post-row .tl-row-tools { grid-row: 1 / 5; }
.media-item { display: flex; flex-direction: column; gap: 4px; width: 120px; }
.media-caption { width: 100%; padding: 3px 5px; border: 1px solid #B8B8B8; font: 12px var(--font); }
.media-tile { position: relative; width: 120px; height: 90px; background: #fff; border: 1px solid #A9A9A9; overflow: hidden; }
.media-tile-thumb { width: 100%; height: 100%; object-fit: cover; }
.media-tile-note { padding: 8px; font-size: 12px; color: var(--muted); }
.media-tile-badge { position: absolute; left: 4px; top: 4px; padding: 1px 5px; font: 700 10px/1.4 var(--font); color: #fff; background: rgba(0, 0, 0, 0.6); }
.media-tile-tools { position: absolute; right: 2px; bottom: 2px; display: flex; gap: 2px; }
.media-tile-btn { width: 24px; padding: 1px 0 2px; font-size: 12px; text-align: center; }
.media-add { min-height: 90px; padding: 0 14px; font-size: 13px; border-style: dashed; }
/* editing */
.about-label { display: block; margin: 0 0 6px; font-weight: 700; color: var(--ink-strong); }
.about-label span { font-weight: 400; color: var(--muted); }
.about-label--posts { margin-top: 18px; }
#blog-summary-box.about-rich { min-height: 4.6em; }
.about-input {
  display: block; width: 100%; padding: 6px 8px; font: 15px/1.4 var(--font); color: var(--ink);
  background: #fff; border: 1px solid #B9B9B9; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08); border-radius: 0; resize: vertical;
}
.about-input:focus { outline: none; border-color: #4A90E2; box-shadow: 0 0 0 1px #4A90E2; }
/* the boxes take bold and italic, so they're editable divs rather than plain text fields */
.about-rich { min-height: 4.6em; white-space: pre-wrap; overflow-wrap: anywhere; cursor: text; }
.about-rich.is-line { min-height: 0; }
.about-rich:empty::before { content: attr(data-placeholder); color: #9A9A9A; pointer-events: none; }
.about-rich b, .about-rich strong { font-weight: 700; }
.tl-row .about-rich.tl-text-input { min-height: 3.2em; }
.about-tools {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 6px;
  margin: -6px 0 12px; padding: 6px 0; background: #fff;
}
.fmt-btn { width: 32px; padding: 3px 0 4px; font: 15px/1.2 Georgia, "Times New Roman", serif; text-align: center; }
.fmt-btn[aria-pressed="true"] { background: linear-gradient(#DCDCDC, #EDEDED); border-color: #8E8E8E; box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15); }
.about-hint { margin-left: 4px; font-size: 13px; color: var(--muted); }
.tl-when strong, .tl-title strong { font-weight: 800; }
.fmt-btn--link { display: inline-grid; place-items: center; height: 26px; padding: 0; }
/* links: blue and underlined, in the boxes and on the page */
.bio-view a, .blog-view a, .about-rich a { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.bio-view a:hover, .blog-view a:hover { color: #174A85; }
.tl-when a { color: inherit; }
/* a post's picture and video */
.tl-image { display: block; margin-top: 14px; max-width: 680px; border: 1px solid #565656; background: #fff; }
.tl-image img { width: 100%; height: auto; }
.tl-image:hover { outline: 2px solid var(--blue-top); outline-offset: -2px; }
.tl-video { display: block; margin-top: 14px; width: 100%; max-width: 680px; border: 1px solid #565656; background: #000; }
.tl-row .tl-media { grid-column: 1 / 3; display: grid; gap: 6px; }
.tl-media-part { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tl-media-img { width: 120px; height: 68px; object-fit: cover; border: 1px solid #A9A9A9; background: #fff; }
.tl-media-btn { font-size: 13px; padding: 2px 9px 3px; }
.tl-media-note { font-size: 13px; color: var(--muted); }
.tl-edit { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tl-row {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 6px; padding: 8px;
  background: #F6F6F6; border: 1px solid var(--row-line);
}
.tl-row .tl-text-input { grid-column: 1 / 3; }
.tl-row-tools { grid-column: 3; grid-row: 1 / 4; display: flex; flex-direction: column; gap: 4px; }
.tl-tool { width: 30px; padding: 2px 0 3px; font-size: 14px; text-align: center; }
.about-add { margin-top: 8px; font-size: 14px; }
.about-actions { margin-top: 18px; display: flex; align-items: center; gap: 10px; }
.about-save {
  width: 99px; height: 33px; padding: 0; font: 700 19px/31px var(--font); color: #fff; cursor: pointer;
  border: 1px solid var(--play-line); border-bottom-color: #1F5F15;
  background: linear-gradient(#17A714 0%, var(--play-top) 8%, #029502 50%, var(--play-bottom) 92%, #10730B 100%);
}
.about-save:hover { background: linear-gradient(#24BD20 0%, #0DB50D 8%, #03A703 50%, #038E00 92%, #12820C 100%); }
.about-save:disabled { opacity: 0.6; cursor: default; }
.about-cancel { font-size: 14px; }
.about-status { margin-top: 10px; font-size: 14px; color: var(--muted); }
.about-status:empty { display: none; }
.about-status.is-error { color: #C10A0E; }
@media (max-width: 760px) {
  .blog-page { padding: 0 14px; }
  .tl-title { font-size: 19px; }
  .tl-row { grid-template-columns: 1fr auto; }
  .tl-row .tl-when-input, .tl-row .tl-title-input, .tl-row .tl-text-input, .tl-row .tl-media { grid-column: 1; }
  .tl-row-tools { grid-column: 2; grid-row: 1 / 5; }
}

/* ---------- Friends ---------- */
.see-all {
  flex: none; padding: 3px 10px 4px; font: 700 14px/1.2 Arial, Helvetica, sans-serif; color: #fff; letter-spacing: -0.3px;
  border: 1px solid var(--blue-line); background: linear-gradient(#498FF5 0%, var(--blue-top) 10%, #0F5FDC 55%, var(--blue-bottom) 100%);
}
.see-all:hover { text-decoration: none; background: linear-gradient(#5C9CF8 0%, #2A7DF6 10%, #1468E6 55%, #0C59D4 100%); }
.friends { display: flex; flex-wrap: wrap; gap: 8px; }
.friend { width: 92px; }
.friend img { width: 92px; height: 92px; background: #EDEDED; }
.friend-name { margin-top: 4px; display: flex; align-items: center; gap: 4px; font: 700 13px/1.2 var(--font); color: var(--link); white-space: nowrap; overflow: hidden; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }

/* ---------- Footer ---------- */
.foot { max-width: 1010px; margin: 0 auto; padding: 18px 14px 26px; border-top: 1px solid var(--rule); text-align: center; color: #777; font-size: 13px; }

/* ---------- "Joining" box after pressing Play ---------- */
.joining { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(0, 0, 0, 0.32); opacity: 0; transition: opacity 0.15s ease; }
.joining.is-on { opacity: 1; }
.joining-box {
  display: flex; align-items: center; gap: 12px; padding: 18px 28px;
  background: #fff; border: 1px solid #8C8C8C; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  font: 600 17px var(--font); color: #333;
}
.spinner { width: 22px; height: 22px; border: 3px solid #CFE0F7; border-top-color: var(--blue-top); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- The game window (computers): Play opens the place in a window over the page ----------
   A desktop app window like the Roblox player on Windows: white title bar, minimize / maximize / close,
   then the place's loading screen, then the game (the place's own page, in an iframe). */
html.client-open { overflow: hidden; }
.client-dim { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.32); }
.client {
  --bar: 31px;
  /* the game area keeps a 16:10 shape and fits the screen, like a big app window */
  --w: min(1280px, 92vw, calc((88vh - var(--bar)) * 1.6));
  position: fixed; z-index: 61; inset: 0; margin: auto;
  width: var(--w); height: calc(var(--w) / 1.6 + var(--bar));
  translate: var(--dx, 0px) var(--dy, 0px);
  display: flex; flex-direction: column;
  background: #000; border: 1px solid rgba(0, 0, 0, 0.5);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22), 0 18px 60px rgba(0, 0, 0, 0.45);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  outline: none;
}
@supports (width: round(1px, 1px)) {
  /* whole pixels, so the window's edges and title bar stay crisp */
  .client { width: round(var(--w), 2px); height: round(calc(var(--w) / 1.6 + var(--bar)), 2px); }
}
.client.is-max { width: 100%; height: 100%; translate: none; border: 0; }
.client.is-min { visibility: hidden; }
.client-bar {
  flex: none; height: var(--bar); display: flex; align-items: center;
  background: #fff; color: #000; cursor: default; user-select: none; -webkit-user-select: none; touch-action: none;
}
.client-icon { flex: none; width: 16px; height: 16px; margin: 0 8px 0 8px; }
.client-title { flex: 1; min-width: 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-btns { flex: none; display: flex; align-self: stretch; }
.client-btn {
  width: 46px; height: 100%; padding: 0; border: 0; border-radius: 0;
  display: grid; place-items: center; background: transparent; color: #000; cursor: default;
}
.client-btn svg { width: 10px; height: 10px; overflow: visible; shape-rendering: crispEdges; }
.client-btn--close svg { shape-rendering: geometricPrecision; }
.client-btn:hover { background: rgba(0, 0, 0, 0.1); }
.client-btn:active { background: rgba(0, 0, 0, 0.2); }
.client-btn--close:hover { background: #E81123; color: #fff; }
.client-btn--close:active { background: #F1707A; color: #fff; }
.client-btn:focus-visible { outline: 2px solid #000; outline-offset: -3px; }
.client-btn .if-max, .client.is-max .client-btn .if-normal { display: none; }
.client.is-max .client-btn .if-max { display: block; }
.client-view { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #000; }
.client-frame { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.client.is-dragging .client-frame { pointer-events: none; }

/* The loading screen: the place's picture and name, who made it, and what the client is doing */
.client-loading {
  position: absolute; inset: -1px; z-index: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(ellipse 75% 65% at 50% 44%, #26292E 0%, #141517 62%, #0C0D0E 100%);
  color: #fff; text-align: center; font-family: var(--font);
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}
.client-loading.is-done { opacity: 0; visibility: hidden; }
.client-place-icon {
  width: clamp(180px, 27%, 320px); height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 10px 34px rgba(0, 0, 0, 0.6);
}
.client-place-icon:not([src]), .client-place-icon[src=""] { visibility: hidden; }
.client-place-name { margin-top: 22px; font: 700 clamp(24px, 2.6vw, 36px)/1.1 var(--font); letter-spacing: -0.2px; }
.client-place-by { margin-top: 5px; font-size: 16px; color: #A6A9AD; }
.client-spin {
  margin-top: 30px; width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.16); border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
.client-status { margin-top: 12px; min-height: 1.4em; font-size: 14px; color: #C9CBCE; }

/* The window, minimized: a taskbar-style button at the bottom of the page */
.client-task {
  position: fixed; z-index: 59; left: 50%; bottom: 14px; translate: -50% 0;
  display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px 0 12px;
  border: 0; border-bottom: 2px solid #76B9ED; border-radius: 0;
  background: rgba(32, 32, 32, 0.94); color: #fff; cursor: pointer;
  font: 12px "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.client-task:hover { background: rgba(58, 58, 58, 0.96); }
.client-task img { width: 16px; height: 16px; }

/* ---------- Small screens: one column ---------- */
@media (max-width: 760px) {
  .topbar-inner { gap: 18px; padding: 0 10px; }
  .topnav { gap: 14px; }
  .wordmark { font-size: 22px; }
  .profile { grid-template-columns: minmax(0, 1fr); }
  .col { padding: 0 14px; }
  .col--left { border-right: 0; border-bottom: 1px solid var(--rule); }
  h1, h2 { font-size: 28px; }
  .block { padding: 22px 0; }
  .block--me { padding-top: 24px; }
  .avatar { width: 210px; }
  .place-body { padding: 10px 14px 18px; }
  .place-thumb { width: 20%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .place-head::before, .joining, .client-loading { transition: none; }
  .spinner, .client-spin { animation: none; }
}
