:root { color-scheme: light; --paper: #fff8e9; --cream: #fffdf5; --ink: #1b1b1b; --muted: #59574f; --red: #f22322; --blue: #3b78e7; --yellow: #ffdf58; --green: #89d0a1; --border: 3px solid var(--ink); --shadow: 7px 7px 0 var(--ink); --title-font: "Arial Black", Impact, system-ui, sans-serif; --body-font: "Trebuchet MS", "Segoe UI", Arial, sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0px; font-family: var(--body-font); background: var(--paper); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input { font: inherit; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0px, 0px, 0px, 0px); clip-path: inset(50%); white-space: nowrap; }
.site-shell { display: flex; flex-direction: column; min-height: 100vh; overflow: hidden; }
.container { width: min(1180px, 100% - 72px); margin-inline: auto; }
.site-header { background: rgb(255, 253, 245); border-bottom: var(--border); position: relative; z-index: 3; }
.header-inner { display: flex; align-items: center; gap: 58px; min-height: 91px; }
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-size: 27px; line-height: 1; letter-spacing: -0.055em; font-family: var(--title-font); font-weight: 900; white-space: nowrap; }
.brand img { width: 45px; height: 45px; object-fit: contain; }
.brand-star { color: var(--red); display: inline-block; font-size: 17px; margin-left: 3px; vertical-align: 8px; transform: rotate(-10deg); }
.main-nav { display: flex; align-self: stretch; align-items: center; gap: 8px; }
.nav-link { border: 2px solid transparent; text-decoration: none; font-size: 14px; font-weight: 900; padding: 11px 19px; border-radius: 999px; line-height: 1; transition: background 0.15s, transform 0.15s; }
.nav-link:hover { background: rgb(248, 235, 208); transform: translateY(-1px); }
.nav-link.is-active { background: var(--yellow); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.header-tag { margin-left: auto; display: flex; align-items: center; gap: 9px; color: rgb(75, 75, 69); white-space: nowrap; font-size: 11px; font-weight: 900; letter-spacing: 0.08em; }
.blink-dot { background: var(--green); width: 11px; height: 11px; border: 2px solid var(--ink); border-radius: 50%; }
main { flex: 1 1 0%; }
.discover-page { background: radial-gradient(circle at 15% 30%, rgba(254,217,93,.15), transparent 32%), var(--paper); }
.hero { display: grid; grid-template-columns: minmax(0px, 1.12fr) minmax(0px, 0.88fr); align-items: center; gap: 40px; padding-top: 86px; padding-bottom: 92px; }
.hero-copy { position: relative; z-index: 1; }
.chapter-label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--green); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); transform: rotate(-2deg); font-size: 11px; font-weight: 900; letter-spacing: 0.075em; }
.chapter-icon { color: var(--red); font-size: 19px; line-height: 0.7; }
h1, h2, h3, p { margin-top: 0px; }
.hero h1 { font-family: var(--title-font); font-weight: 950; letter-spacing: -0.073em; font-size: clamp(53px, 6.3vw, 91px); line-height: 1.035; margin: 28px 0px 24px; }
.headline-accent { position: relative; color: var(--red); display: inline-block; z-index: 0; white-space: nowrap; }
.headline-accent::after { content: ""; position: absolute; height: 13px; left: 4%; right: 1%; background: var(--yellow); bottom: 1px; transform: rotate(-1.7deg); z-index: -1; border-radius: 60%; }
.headline-period { color: var(--blue); }
.hero-lead { font-size: 18px; line-height: 1.67; max-width: 540px; font-weight: 600; color: rgb(66, 65, 59); margin-bottom: 30px; }
.hero-foot { display: flex; align-items: center; gap: 17px; }
.pill-status { background: rgb(255, 255, 255); border: 2px solid var(--ink); border-radius: 999px; display: inline-flex; align-items: center; gap: 10px; padding: 13px 18px; font-size: 11px; font-weight: 900; letter-spacing: 0.05em; box-shadow: rgb(25, 25, 25) 4px 4px 0px; }
.pill-sun { font-size: 24px; color: var(--red); line-height: 0.8; }
.scribble-arrow { color: var(--blue); font-size: 44px; font-weight: 700; transform: rotate(13deg); line-height: 1; }
.hero-illustration { width: 100%; max-width: 465px; margin-left: auto; position: relative; padding: 20px 14px 18px; }
.comic-panel { position: relative; width: 100%; aspect-ratio: 1 / 1.01; background: rgb(141, 204, 245); border: 5px solid var(--ink); border-radius: 28px; box-shadow: 12px 13px 0 var(--ink); transform: rotate(3deg); display: flex; align-items: center; justify-content: center; isolation: isolate; overflow: hidden; }
.panel-dots { position: absolute; inset: 0px; opacity: 0.28; background-image: radial-gradient(rgb(28, 28, 28) 1.5px, transparent 2px); background-size: 15px 15px; mask-image: linear-gradient(135deg, transparent 15%, rgb(0, 0, 0) 100%); }
.burst { width: 94%; position: absolute; z-index: 0; transform: rotate(-8deg); }
.hero-logo { position: relative; z-index: 1; width: 58%; height: auto; filter: drop-shadow(rgba(0, 0, 0, 0.16) 10px 12px 0px); transform: rotate(-7deg); }
.little-star { position: absolute; z-index: 2; font-size: 47px; line-height: 1; text-shadow: 2px 2px 0 var(--ink); }
.star-one { left: 7%; bottom: 11%; color: rgb(255, 251, 250); transform: rotate(11deg); }
.star-two { right: 7%; top: 10%; color: var(--red); transform: rotate(-15deg); }
.hero-sticker { font-family: var(--title-font); font-weight: 900; color: var(--ink); border: 3px solid var(--ink); position: absolute; z-index: 2; box-shadow: 5px 5px 0 var(--ink); }
.sticker-top { background: var(--yellow); padding: 14px 23px; border-radius: 47% 53% 45% 55%; top: -19px; left: -28px; transform: rotate(-13deg); line-height: 1.02; letter-spacing: -0.05em; font-size: 21px; }
.sticker-bottom { right: -24px; bottom: -4px; background: rgb(255, 255, 255); font-size: 13px; padding: 14px 15px; transform: rotate(-7deg); white-space: nowrap; }
.sticker-bottom span { color: var(--red); font-size: 24px; vertical-align: -4px; }
.ribbon { background: var(--blue); border-block: var(--border); color: rgb(255, 255, 255); transform: rotate(-1.2deg) scale(1.015); overflow: hidden; }
.ribbon-inner { display: flex; align-items: center; justify-content: space-around; gap: 25px; min-width: 1000px; padding: 15px 20px; font-size: 14px; font-family: var(--title-font); font-weight: 900; letter-spacing: 0.03em; }
.ribbon-inner span { white-space: nowrap; }
.explore { padding: 92px 0px 58px; }
.section-title-row, .users-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.section-eyebrow { font-size: 12px; letter-spacing: 0.11em; font-weight: 900; color: var(--red); }
.section-title-row h2, .users-title-row h2 { font-family: var(--title-font); font-size: clamp(38px, 4.1vw, 58px); letter-spacing: -0.06em; line-height: 1.04; margin: 13px 0px 0px; }
.section-title-row h2 span { color: var(--blue); }
.small-counter { display: inline-flex; align-items: center; gap: 9px; padding: 11px 17px; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); font-family: var(--title-font); font-size: 13px; font-weight: 900; transform: rotate(2deg); white-space: nowrap; box-shadow: 4px 4px 0 var(--ink); }
.small-counter span { color: var(--red); }
.no-games-card { position: relative; display: grid; grid-template-columns: 0.85fr 1.15fr; border: var(--border); border-radius: 18px; background: rgb(255, 254, 249); box-shadow: var(--shadow); overflow: hidden; min-height: 340px; }
.no-games-art { position: relative; display: grid; place-items: center; border-right: var(--border); background: rgb(249, 217, 223); overflow: hidden; }
.no-games-art::before { content: ""; position: absolute; width: 335px; height: 335px; border: 3px dashed rgb(223, 116, 131); border-radius: 50%; }
.no-games-art::after { content: ""; position: absolute; width: 210px; height: 210px; background: rgb(247, 169, 181); border-radius: 50%; }
.gamepad { position: relative; z-index: 2; width: min(68%, 300px); transform: rotate(-12deg); filter: drop-shadow(rgba(0, 0, 0, 0.12) 6px 9px 0px); }
.swoosh { position: absolute; z-index: 3; font-size: 48px; }
.swoosh-one { top: 12%; left: 17%; color: var(--red); transform: rotate(-11deg); }
.swoosh-two { bottom: 13%; right: 14%; color: var(--blue); }
.no-games-copy { padding: 52px 60px 46px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.tiny-stamp { display: inline-flex; gap: 13px; align-items: center; font-weight: 900; font-size: 11px; color: rgb(23, 23, 23); letter-spacing: 0.07em; }
.tiny-stamp span { color: var(--red); font-size: 21px; }
.no-games-copy h3 { font-size: clamp(35px, 3.6vw, 51px); font-family: var(--title-font); letter-spacing: -0.065em; line-height: 1.05; margin: 12px 0px 16px; }
.no-games-copy h3 span { color: var(--red); }
.no-games-copy p { font-size: 16px; line-height: 1.65; color: rgb(86, 84, 77); font-weight: 600; max-width: 440px; margin-bottom: 20px; }
.text-endnote { font-size: 13px; color: var(--blue); font-weight: 900; }
.corner-dot { position: absolute; top: 14px; right: 18px; color: var(--green); font-size: 35px; }
.tiny-message { display: flex; justify-content: center; align-items: center; gap: 24px; padding: 34px 0px 75px; }
.tiny-message p { text-align: center; margin: 0px; font-size: 18px; font-weight: 600; }
.tiny-message strong { color: var(--red); }
.message-asterisk { font-size: 35px; color: var(--blue); }
.message-asterisk.yellow { color: rgb(236, 165, 0); }
.users-page { background: var(--paper); }
.users-banner { background: rgb(255, 235, 186); border-bottom: var(--border); position: relative; overflow: hidden; }
.users-banner::before { content: ""; position: absolute; inset: 0px; opacity: 0.3; background-image: radial-gradient(rgb(179, 167, 124) 1px, transparent 1.5px); background-size: 15px 15px; mask-image: linear-gradient(90deg, transparent, rgb(0, 0, 0)); }
.users-hero { padding-top: 73px; padding-bottom: 65px; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.users-hero h1 { font-family: var(--title-font); letter-spacing: -0.07em; font-size: clamp(48px, 6.2vw, 83px); line-height: 1.05; margin: 27px 0px 17px; }
.users-hero h1 span { color: var(--red); }
.users-hero p { max-width: 560px; font-size: 17px; font-weight: 600; line-height: 1.6; color: rgb(81, 74, 65); margin: 0px; }
.speech-art { width: 265px; height: 185px; flex: 0 0 265px; position: relative; }
.speech-blue, .speech-red { position: absolute; border: 4px solid var(--ink); font-family: var(--title-font); color: var(--ink); box-shadow: 6px 6px 0 var(--ink); }
.speech-blue { top: 5px; left: 0px; background: rgb(146, 201, 246); border-radius: 26px 26px 26px 5px; font-size: 26px; padding: 20px 16px; transform: rotate(-8deg); }
.speech-red { right: 0px; bottom: 15px; background: rgb(243, 88, 98); color: white; border-radius: 25px 25px 5px; font-size: 30px; padding: 16px 28px; transform: rotate(7deg); }
.speech-yellow { position: absolute; left: 113px; top: 68px; font-size: 65px; color: rgb(228, 169, 18); text-shadow: 2px 2px var(--ink); }
.users-main { padding: 65px 0px 105px; }
.users-title-row { margin-bottom: 24px; }
.search-form { border: var(--border); background: white; border-radius: 14px; box-shadow: 5px 5px 0 var(--ink); padding: 0px 22px; display: flex; align-items: center; min-height: 72px; gap: 14px; }
.search-form:focus-within { outline: rgb(155, 188, 241) solid 3px; outline-offset: 4px; }
.search-form svg { width: 26px; height: 26px; flex: 0 0 auto; }
.search-form input { min-width: 0px; width: 100%; padding: 19px 0px; border-width: medium; border-style: none; border-color: currentcolor; border-image: none; outline: none; background: transparent; font-size: 18px; font-weight: 600; color: var(--ink); }
.search-form input::placeholder { color: rgb(140, 135, 124); opacity: 1; }
.search-key { border: 2px solid rgb(204, 200, 187); color: rgb(141, 135, 119); border-radius: 6px; padding: 5px 10px; font-size: 10px; font-weight: 900; letter-spacing: 0.08em; }
.search-info { margin: 15px 0px 28px; font-size: 13px; font-weight: 600; color: rgb(120, 115, 103); }
.users-empty { border: var(--border); box-shadow: var(--shadow); border-radius: 20px; background: rgb(255, 253, 248); padding: 50px 22px 58px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.people-art { position: relative; width: 148px; height: 148px; border-radius: 50%; background: rgb(205, 234, 255); border: 3px solid var(--ink); display: flex; align-items: center; justify-content: center; margin-bottom: 25px; }
.people-art svg { width: 100px; }
.people-art span { position: absolute; top: -15px; right: -20px; color: var(--red); font-size: 48px; }
.users-empty-label { background: var(--green); border: 2px solid var(--ink); font-size: 10px; letter-spacing: 0.07em; font-weight: 900; padding: 8px 12px; transform: rotate(-3deg); }
.users-empty h3 { font-family: var(--title-font); letter-spacing: -0.055em; font-size: clamp(31px, 3vw, 42px); margin: 22px 0px 12px; }
.users-empty p { font-size: 16px; line-height: 1.6; font-weight: 600; color: rgb(101, 96, 82); max-width: 475px; margin: 0px; }
.site-footer { background: rgb(255, 253, 245); border-top: var(--border); }
.footer-inner { display: flex; min-height: 92px; gap: 30px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; gap: 9px; align-items: center; font-size: 18px; font-family: var(--title-font); letter-spacing: -0.04em; }
.footer-brand img { width: 31px; height: 31px; }
.footer-inner p { font-size: 14px; font-weight: 700; margin: 0px; }
.footer-inner p span { color: var(--red); }
.footer-inner small { color: rgb(119, 116, 110); font-size: 12px; font-weight: 600; }
@media (max-width: 900px) {
  .container { width: min(100% - 44px, 1180px); }
  .header-inner { gap: 25px; }
  .header-tag { display: none; }
  .hero { padding-top: 63px; padding-bottom: 70px; gap: 22px; }
  .hero h1 { font-size: clamp(46px, 6.7vw, 70px); }
  .hero-lead { font-size: 16px; }
  .sticker-top { left: -16px; }
  .sticker-bottom { right: -10px; }
  .no-games-copy { padding: 36px; }
}
@media (max-width: 680px) {
  .container { width: calc(100% - 34px); }
  .header-inner { min-height: 76px; justify-content: space-between; gap: 12px; }
  .brand { font-size: 23px; gap: 7px; }
  .brand img { width: 37px; height: 37px; }
  .brand-star { font-size: 14px; vertical-align: 6px; }
  .main-nav { gap: 2px; }
  .nav-link { padding: 9px 13px; font-size: 12px; }
  .hero { grid-template-columns: 1fr; padding-top: 47px; padding-bottom: 51px; gap: 52px; }
  .hero h1 { font-size: clamp(46px, 10.8vw, 73px); letter-spacing: -0.072em; margin: 25px 0px 18px; }
  .hero-lead { max-width: 550px; font-size: 16px; }
  .hero-illustration { max-width: 380px; width: calc(100% - 36px); margin: 0px auto; }
  .sticker-top { font-size: 17px; padding: 11px 18px; left: -23px; }
  .sticker-bottom { font-size: 11px; }
  .ribbon-inner { padding: 11px 12px; font-size: 11px; gap: 22px; }
  .explore { padding: 73px 0px 40px; }
  .section-title-row h2, .users-title-row h2 { font-size: clamp(33px, 8vw, 48px); }
  .small-counter { font-size: 11px; padding: 9px 10px; }
  .no-games-card { grid-template-columns: 1fr; }
  .no-games-art { min-height: 225px; border-right: 0px; border-bottom: var(--border); }
  .no-games-art::before { width: 270px; height: 270px; }
  .no-games-copy { padding: 33px 28px 39px; }
  .tiny-message { gap: 8px; padding-bottom: 56px; }
  .tiny-message p { font-size: 14px; }
  .message-asterisk { font-size: 23px; }
  .users-hero { padding: 51px 0px 45px; }
  .users-hero h1 { font-size: clamp(41px, 10vw, 65px); }
  .users-hero p { font-size: 16px; }
  .speech-art { display: none; }
  .users-main { padding: 50px 0px 76px; }
  .users-empty { padding: 44px 19px 53px; }
  .footer-inner { min-height: 140px; padding: 22px 0px; flex-direction: column; justify-content: center; gap: 12px; text-align: center; }
}
@media (max-width: 380px) {
  .brand { font-size: 20px; }
  .brand img { width: 33px; height: 33px; }
  .nav-link { padding: 9px 10px; }
  .headline-accent { white-space: normal; }
  .hero h1 { font-size: 45px; }
  .pill-status { font-size: 10px; padding: 11px 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
.brand img, .footer-brand img, .hero-logo { display: block; object-fit: contain; }

[hidden] { display: none !important; }
.account-actions button, #account-submit {
  background: var(--cream); color: var(--ink); border: 2px solid var(--ink);
  border-radius: 9px; font: 800 .9rem var(--body-font); padding: .55rem .75rem;
  cursor: pointer; white-space: nowrap;
}
.account-actions #create-account, #account-submit { background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }
.account-actions > div { display: flex; align-items: center; gap: .55rem; }
#account-member-name { overflow: hidden; text-overflow: ellipsis; max-width: 10ch; }
#account-header-message:empty, #account-password-note:empty, #account-message:empty, #search-info:empty, #account-results:empty { display: none; }
#account-dialog {
  width: min(440px, calc(100% - 2rem)); padding: 1.6rem;
  color: var(--ink); background: var(--cream); border: var(--border);
  border-radius: 15px; box-shadow: var(--shadow);
}
#account-dialog::backdrop { background: #1b1b1bb8; }
#account-title { margin: 0 2rem 1rem 0; font: 900 1.85rem var(--title-font); }
#account-close { position: absolute; top: .8rem; right: .9rem; font-size: 1.4rem; cursor: pointer; }
#account-form { display: grid; gap: .55rem; }
#account-form > input { width: 100%; border: 2px solid var(--ink); border-radius: 7px; padding: .55rem; font: inherit; }
#username-note, #account-password-note, #account-message { margin: 0; font-size: .87rem; }
#account-submit { justify-self: start; margin-top: .55rem; }
#account-results { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill,minmax(190px,1fr)); gap: 14px; }
#account-results li { display: flex; align-items: center; gap: .75rem; padding: 12px; background: var(--cream);
  border: var(--border); border-radius: 12px; font-weight: 800; overflow-wrap: anywhere; }
#account-results svg { width: 44px; height: 44px; flex: 0 0 44px; }
@media (max-width: 700px) {
  .header-inner { flex-wrap: wrap; gap: .55rem; }
  .account-actions { display: block; flex-basis: 100%; padding-bottom: .45rem; }
}

.news-banner { background: #e4f1d8; }
.news-banner h1 { margin-top: 0; }
.news-main { padding-block: clamp(32px, 5vw, 68px) clamp(48px, 8vw, 100px); }
.news-month { display: grid; gap: 22px; }
.news-month + .news-month { margin-top: 42px; }
.news-month h2 { margin: 0; font: 900 clamp(24px, 4vw, 36px)/1.15 var(--title-font); letter-spacing: -.035em; }
.news-post {
  max-width: 760px; padding: clamp(22px, 4vw, 42px); border: var(--border);
  border-radius: 20px; background: var(--cream); box-shadow: var(--shadow);
}
.news-post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.news-post-meta time { font-size: .875rem; color: var(--muted); font-weight: 700; }
.news-post h3 { margin: 22px 0 12px; font: 900 clamp(28px, 4vw, 44px)/1.1 var(--title-font); letter-spacing: -.04em; }
.news-post p { max-width: 63ch; margin: 0 0 14px; color: var(--ink); line-height: 1.65; }
.news-post-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 8px; border-color: var(--ink); background: var(--yellow); }

/* Build editor */
.build-page { background: #f4f8f1; }
.build-layout { padding-block: clamp(24px, 4vw, 54px) clamp(44px, 6vw, 86px); }
.build-intro { margin-bottom: 18px; }
.build-intro h1 { margin: 0 0 8px; font-family: var(--title-font); font-size: clamp(40px, 7vw, 70px); letter-spacing: -.06em; }
.build-intro p { margin: 0; color: var(--muted); }
#build-viewport {
  display: block;
  width: 100%;
  height: clamp(260px, 60vh, 660px);
  background: #bce8ff;
  border: var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  cursor: auto;
  touch-action: none;
}
#build-viewport:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
#build-drag-cursor {
  position: fixed; z-index: 3; width: 17px; height: 23px; pointer-events: none;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / .38));
}
#build-drag-cursor::before, #build-drag-cursor::after {
  content: ""; position: absolute; inset: 0;
  clip-path: polygon(0 0, 1% 86%, 31% 66%, 53% 100%, 72% 88%, 52% 57%, 100% 54%);
  background: #171717;
}
#build-drag-cursor::after { background: #fff; transform: scale(.78); transform-origin: 36% 53%; }
#build-selection-box {
  position: fixed; z-index: 1; pointer-events: none;
  border: 1px solid #fff; background: rgb(255 106 106 / .18);
  box-shadow: 0 0 0 1px rgb(130 44 44 / .72);
}
#build-controls { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 20px 0 0; font-weight: 700; }
#build-controls span { display: inline-flex; align-items: center; gap: 5px; }
#build-controls kbd { padding: 3px 6px; background: var(--cream); border: 1px solid var(--ink); border-radius: 4px; }
.build-stage { position: relative; }
.build-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(235px, 280px); gap: 14px; }
.build-view { position: relative; min-width: 0; }
#build-properties {
  align-self: start; padding: 14px; min-width: 0; border: var(--border);
  border-radius: 12px; background: var(--cream);
}
#build-properties-title { font: 850 1.15rem/1.2 var(--title-font); margin: 0 0 .75rem; }
.properties-empty { margin: 0; color: var(--muted); font-size: .86rem; }
.properties-fields { display: grid; gap: 12px; }
.properties-fields fieldset {
  border: 0; padding: 0; margin: 0; min-width: 0; display: flex; gap: 6px;
}
.properties-fields legend { font-size: .85rem; font-weight: 800; margin-bottom: 4px; }
.properties-fields label { flex: 1; min-width: 0; font-size: .72rem; color: var(--muted); }
.properties-fields input {
  display: block; width: 100%; margin-top: 2px; padding: .35rem .25rem;
  color: var(--ink); background: #fff; border-radius: 6px; border: 1px solid var(--ink);
  font: 700 .82rem/1.25 var(--font, sans-serif); appearance: textfield;
}
.properties-fields input::-webkit-inner-spin-button { appearance: none; }
.properties-fields input:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.properties-color { flex-wrap: wrap; }
.properties-color .property-color-picker {
  flex: 0 0 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; font-weight: 700; cursor: pointer;
}
.property-color-picker input[type="color"] {
  width: 48px; height: 28px; margin: 0; padding: 2px;
  appearance: auto; cursor: pointer;
}
@media (max-width: 700px) {
  .build-workspace { grid-template-columns: minmax(0, 1fr); }
}
.build-top {
  position: relative; z-index: 4; display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap; gap: 10px; padding: 9px 12px;
  margin-block-end: 10px; border: var(--border); border-radius: 12px; background: var(--cream);
}
.build-tools[open] { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.build-top summary { cursor: pointer; font-weight: 800; padding: .4rem .25rem; }
#build-active-mode { font-size: .78rem; color: var(--muted); margin-left: .3rem; }
.build-tools[open] #build-active-mode { display: none; }
.build-modes { display: flex; gap: .35rem; flex-wrap: wrap; }
.build-top button {
  padding: .4rem .62rem; border: 1px solid var(--ink); border-radius: 7px;
  background: #fff; color: var(--ink); font: inherit; font-weight: 750; cursor: pointer;
}
.build-top button[aria-pressed="true"] { background: var(--yellow); box-shadow: 2px 2px 0 var(--ink); }
.build-top kbd { font-size: .77rem; margin-left: .22rem; }
#build-file-menu { position: relative; }
.build-file-actions {
  position: absolute; right: 0; z-index: 2; display: grid; gap: .35rem; padding: .5rem;
  border: var(--border); border-radius: 10px; background: var(--cream); white-space: nowrap;
}
@media (max-width: 470px) {
  .header-inner .main-nav { flex-wrap: wrap; }
}

#build-save-status {
  position: absolute; z-index: 2; bottom: 14px; left: 14px;
  max-width: calc(100% - 28px); margin: 0; padding: .38rem .65rem;
  border: 1px solid var(--ink); border-radius: .45rem;
  background: var(--cream); color: var(--ink); font-weight: 700;
  font-size: .9rem; pointer-events: none;
}
#build-save-status:empty { display: none; }

.build-action-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 18px; }
#build-load, #build-fullscreen {
  padding: .7rem 1.2rem; background: var(--cream); color: var(--ink);
  border: var(--border); border-radius: .7rem; cursor: pointer; font-weight: 900;
}
#build-load:focus-visible, #build-fullscreen:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
#build-status { color: var(--ink); font-size: .9rem; }
.build-stage:fullscreen { display: flex; flex-direction: column; background: #f4f8f1; }
.build-stage:fullscreen .build-top { flex: 0 0 auto; margin: 0; border: 0; border-radius: 0; }
.build-stage:fullscreen .build-workspace { flex: 1; min-height: 0; overflow: auto; padding-inline-end: 12px; }
.build-stage:fullscreen .build-view { min-height: 0; }
.build-stage:fullscreen #build-viewport { height: 100%; min-height: 260px; border: 0; border-radius: 0; box-shadow: none; }
.build-stage:fullscreen #build-properties { margin-block: 8px; }
.build-stage:fullscreen .build-action-buttons { flex: 0 0 auto; margin: 0; padding: 10px 14px; background: var(--cream); }

.studio-download {
  display: inline-block; background: var(--yellow);
  border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  border-radius: 8px; padding: 11px 16px; font-weight: 900; cursor: pointer;
}

#mesh-publish, #mesh-search {
  display: flex; flex-wrap: wrap; align-items: end; gap: 12px; max-width: 720px;
  padding: 16px; margin: 0 0 18px; border: 2px solid var(--ink); border-radius: 10px;
  background: var(--cream);
}
#mesh-publish h2, #mesh-publish p { flex-basis: 100%; margin: 0; }
#mesh-publish label, #mesh-search label { display: grid; gap: 5px; min-width: 0; font-weight: 700; }
#mesh-publish input, #mesh-search input { max-width: 100%; padding: 6px; }
#mesh-publish button, #mesh-search button, #mesh-results button {
  border: 2px solid var(--ink); border-radius: 6px; background: var(--yellow);
  padding: 7px 12px; font-weight: 800; cursor: pointer;
}
#mesh-results { max-width: 720px; padding: 0; list-style: none; }
#mesh-results li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  padding: 10px 0; border-bottom: 1px solid var(--muted);
  overflow-wrap: anywhere;
}
#mesh-results button { margin-left: auto; }
@media (max-width: 750px) {
  .header-inner { flex-wrap: wrap; gap: 8px; padding-block: 8px; }
  .main-nav { flex-wrap: wrap; }
}

#game-results { max-width: 820px; list-style: none; padding: 0; }
#game-results li { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--muted); }
.game-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.game-actions button, .creator-button, #games-refresh, #games-more, #mesh-edit button {
  color: var(--ink); text-decoration: none; border: 2px solid var(--ink); border-radius: 6px;
  background: var(--cream); padding: 7px 11px; font-weight: 750; cursor: pointer;
}
.game-actions .creator-button { background: var(--yellow); }
#download-title + p, #downloads .game-actions + p { margin-top: 18px; }
#mesh-edit { background: var(--cream); border: var(--border); border-radius: 10px; padding: 18px; max-width: 95vw; }
#mesh-edit label { display: grid; gap: 4px; margin-bottom: 12px; }
#owned-meshes-filter { display: inline-flex; align-items: center; gap: 6px; }
#details h1 { margin-block: 18px; }
#detail-values { display: grid; grid-template-columns: minmax(90px, max-content) 1fr; gap: 8px 14px; margin: 0 0 16px; }
#detail-values dt { font-weight: 700; }
#detail-values dd { margin: 0; }
#account-results li > a { display: flex; width: 100%; align-items: center; gap: 10px; }
.platform-rules { max-width: 790px; line-height: 1.65; }
.platform-rules li + li { margin-top: 8px; }

#mesh-results li p { width: 100%; margin: 0; color: var(--muted); overflow-wrap: anywhere; }
#mesh-publish textarea, #mesh-edit textarea { font: inherit; max-width: 100%; padding: 6px; }
.avatar-figure { display: grid; width: 120px; height: 140px; grid-template: 30px 47px 48px / 26px 34px 34px 26px; justify-content:center; gap: 2px; }
.avatar-figure span { border: 1px solid #222; border-radius: 4px; }
.avatar-head { grid-area: 1 / 2 / 2 / 4; width: 40px; justify-self: center; }
.avatar-torso { grid-area: 2 / 2 / 3 / 4; }
.avatar-rightArm { grid-area: 2 / 1 / 3 / 2; }
.avatar-leftArm { grid-area: 2 / 4 / 3 / 5; }
.avatar-rightLeg { grid-area: 3 / 2 / 4 / 3; }
.avatar-leftLeg { grid-area: 3 / 3 / 4 / 4; }
#avatar-form { max-width: 600px; }
.avatar-colors { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.avatar-colors label { display: flex; gap: 10px; align-items: center; }
.bio-field { display: grid; gap: 6px; }
.bio-field textarea { font: inherit; padding: 8px; }
