/* MAGWIC42, the website. Light and friendly by default; a deep "space" dark mode to match the logo.
   Colours from the logo: violet, magenta, cyan, orange. */
/* colours, font and the blueprint grid: /static/design.css (shared with the Studio) */
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--violet); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 9px 16px; min-height: 42px; }
button.primary, .btn { background: linear-gradient(135deg, var(--violet), var(--magenta)); color: #fff; border: 0; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; padding: 10px 18px; min-height: 44px; }
button.ghost { background: transparent; border-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.grow { flex: 1; } [hidden] { display: none !important; }

/* header */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 10px 24px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 20px; letter-spacing: .5px; }
.brand img { border-radius: 50%; } .brand b { background: linear-gradient(135deg, var(--magenta), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.links { display: flex; gap: 4px; } .links a { text-decoration: none; color: var(--ink2); font-weight: 800; padding: 8px 12px; border-radius: 10px; } .links a:hover, .links a.on { color: var(--violet); background: var(--violet-soft); }
.make { text-decoration: none; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--violet), var(--magenta)); padding: 9px 16px; border-radius: 12px; }
#me a { text-decoration: none; font-weight: 800; color: var(--ink2); }
main { min-height: 70vh; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 28px 24px 60px; }

/* hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 400px at 80% -10%, rgba(217,70,239,.18), transparent 60%), radial-gradient(900px 380px at 0% 110%, rgba(6,182,212,.16), transparent 60%), linear-gradient(180deg, var(--violet-soft), var(--bg)); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.05; margin: 0 0 14px; letter-spacing: -1px; }
.hero h1 span { background: linear-gradient(135deg, var(--violet), var(--magenta) 50%, var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 19px; color: var(--ink2); margin: 0 0 22px; max-width: 560px; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .cta a.alt { background: var(--surface); color: var(--violet); border: 2px solid var(--violet); }
.hero img.logo { width: min(380px, 80%); justify-self: center; border-radius: 50%; box-shadow: 0 20px 60px rgba(124,58,237,.35); }

/* sections, chips, rows, cards */
h2 { font-size: 24px; margin: 34px 0 14px; display: flex; align-items: center; gap: 10px; }
h2 a { font-size: 15px; font-weight: 800; text-decoration: none; margin-left: auto; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-weight: 800; font-size: 14px; padding: 6px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--ink2); text-decoration: none; cursor: pointer; min-height: 0; }
.chip.on, .chip:hover { background: var(--violet); color: #fff; border-color: var(--violet); }
.row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 16px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; scroll-snap-align: start; transition: transform .15s; }
.card:hover { transform: translateY(-3px); }
.card .art { aspect-ratio: 3 / 4; background: linear-gradient(135deg, var(--violet-soft), #ffe9d6); display: grid; place-items: center; overflow: hidden; position: relative; }
.card .art.sq { aspect-ratio: 1; background: #fff; } .card .art canvas { max-width: 100%; max-height: 100%; }
.card .art .ttl { position: absolute; left: 14px; right: 14px; bottom: 12px; font-weight: 900; font-size: 22px; line-height: 1.1; color: var(--ink); }
.card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.card .t { font-weight: 900; } .card .m { color: var(--ink3); font-size: 14px; }
.tag { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 99px; background: var(--violet-soft); color: var(--violet); }
.stars { color: var(--orange); font-weight: 900; }

/* make band, pillars */
.band { margin-top: 40px; border-radius: 24px; padding: 30px; background: linear-gradient(135deg, #2a0f5c, #5b1d8f 50%, #0e5f78); color: #fff; }
.band h2 { color: #fff; margin-top: 0; }
.spaces { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.space { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 16px; padding: 16px; color: #fff; text-decoration: none; }
.space b { font-size: 18px; display: block; } .space .ic { font-size: 30px; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-align: center; }
.pillar .L { font-size: 34px; font-weight: 900; background: linear-gradient(135deg, var(--violet), var(--magenta), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pillar b { display: block; } .pillar small { color: var(--ink3); }
.trust { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-top: 24px; }

/* experience page + player */
.xhead { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
.xhead .art { border-radius: var(--radius); }
.xhead h1 { margin: 0 0 8px; font-size: 36px; }
.meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--ink2); font-weight: 700; }
.player { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.stage { position: relative; aspect-ratio: 16 / 9; background: #120d22; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.stage canvas { width: 100%; height: 100%; display: block; }
.words { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; font-size: 18px; display: flex; flex-direction: column; gap: 8px; }
.words .who { font-weight: 900; color: var(--violet); margin-right: 6px; }
.choices { display: flex; flex-direction: column; gap: 10px; } .choices button { text-align: left; font-size: 17px; padding: 14px 18px; min-height: 52px; border-width: 2px; }
.choices button:hover:not(:disabled) { border-color: var(--violet); } .choices .tm { float: right; color: var(--orange); font-weight: 900; }
.ending { text-align: center; padding: 30px; border-radius: var(--radius); background: var(--violet-soft); }
.rate button { font-size: 28px; border: 0; background: transparent; color: var(--orange); min-height: 0; padding: 0 3px; }
.credits li { color: var(--ink2); }
.prose { max-width: 760px; } .prose h1 { font-size: 34px; } .prose li { margin: 4px 0; }
.foot { border-top: 1px solid var(--line); padding: 24px; display: flex; gap: 20px; flex-wrap: wrap; align-items: center; justify-content: space-between; color: var(--ink3); }
.foot nav { display: flex; gap: 14px; flex-wrap: wrap; } .foot a { color: var(--ink2); text-decoration: none; font-weight: 700; }
.footbrand { display: flex; align-items: center; gap: 8px; } .footbrand img { border-radius: 50%; }
.empty { color: var(--ink3); padding: 20px 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 99px; font-weight: 800; z-index: 50; }
@media (max-width: 820px) {
  .hero .wrap, .xhead { grid-template-columns: 1fr; } .hero img.logo { width: 60%; }
  .nav { gap: 10px; padding: 10px 14px; flex-wrap: wrap; } .links { order: 3; width: 100%; overflow-x: auto; } .brand span { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---- shared bits for accounts, profiles, reviews and discussions */
button.small, .btn.small { min-height: 32px; padding: 5px 12px; font-size: 14px; }
button.link { background: none; border: 0; color: var(--violet); padding: 0; min-height: 0; font-weight: 700; text-decoration: underline; }
button.danger { background: var(--bad); color: #fff; border: 0; font-weight: 800; }
button.on { border-color: var(--violet); color: var(--violet); background: var(--violet-soft); }
button.big { font-size: 19px; padding: 12px 26px; }
.btn.alt { background: var(--surface); color: var(--violet); border: 2px solid var(--violet); }
.m { color: var(--ink3); } .small { font-size: 14px; }
.note { background: var(--violet-soft); border-radius: 12px; padding: 12px 14px; }
.err { color: var(--bad); font-weight: 700; min-height: 1px; margin: 4px 0; }
.stack { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; }
label.check { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 600; }
input[type=text], input[type=email], input[type=password], input:not([type]), textarea, select { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 12px; font: inherit; color: inherit; }
textarea { resize: vertical; }
fieldset.born { border: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; } fieldset.born legend { font-weight: 700; margin-bottom: 4px; }
.radios { display: flex; flex-direction: column; gap: 6px; } .radios label { flex-direction: row; gap: 8px; font-weight: 600; }
.shade { position: fixed; inset: 0; background: rgba(20, 12, 40, .5); display: grid; place-items: center; z-index: 60; padding: 16px; }
.dialog { background: var(--surface); color: var(--ink); border-radius: 18px; padding: 20px 22px; width: min(560px, 100%); max-height: 90vh; overflow: auto; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); }
.dialog h3 { margin: 0; font-size: 20px; } .dialog .drow { display: flex; gap: 8px; align-items: center; }
.rate { display: flex; gap: 2px; } .rate button { font-size: 32px; border: 0; background: transparent; color: var(--orange); min-height: 0; padding: 0 3px; } .rate button.on { background: transparent; }
.pfp { display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, var(--violet), var(--magenta)); color: #fff; font-weight: 900; flex: none; vertical-align: middle; }
.pfp canvas { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.by { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; text-decoration: none; }
.tag.lock { background: #fff1d6; color: #8a4b00; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 20px 20px; margin-top: 24px; }
.panel h2 { margin-top: 16px; } .panel h3 { margin: 18px 0 8px; }

/* header: notifications and you */
#me { display: flex; align-items: center; gap: 10px; }
.bell { position: relative; text-decoration: none; font-size: 20px; } .bell b { position: absolute; top: -6px; right: -10px; background: var(--magenta); color: #fff; font-size: 11px; border-radius: 99px; padding: 1px 6px; }
.mebtn { display: inline-flex; align-items: center; gap: 8px; }

/* account */
.acct { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.acct-nav { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 14px; }
.acct-nav .who { display: flex; gap: 10px; align-items: center; } .acct-nav .who div { display: flex; flex-direction: column; } .acct-nav .who a, .acct-nav .who small { font-size: 13px; }
.acct-nav nav { display: flex; flex-direction: column; } .acct-nav nav a { text-decoration: none; color: var(--ink2); font-weight: 800; padding: 7px 10px; border-radius: 10px; } .acct-nav nav a:hover { background: var(--violet-soft); color: var(--violet); }
.acct-body .panel:first-child { margin-top: 0; }
.switch { flex-direction: row; align-items: flex-start; gap: 12px; margin: 10px 0; cursor: pointer; font-weight: 600; position: relative; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .knob { flex: none; width: 46px; height: 26px; border-radius: 99px; background: var(--line); position: relative; transition: background .15s; margin-top: 2px; }
.switch .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + .knob { background: var(--violet); } .switch input:checked + .knob::after { left: 23px; }
.switch input:focus-visible + .knob { outline: 3px solid var(--cyan); outline-offset: 2px; }
.switch span:last-child { display: flex; flex-direction: column; } .switch small { color: var(--ink3); font-weight: 500; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; } .pick { width: 72px; height: 72px; padding: 0; overflow: hidden; border-radius: 50%; border: 3px solid var(--line); background: #fff; display: grid; place-items: center; }
.pick.on { border-color: var(--violet); } .pick canvas { width: 100%; height: 100%; object-fit: cover; }
.prow { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.notes { list-style: none; padding: 0; margin: 0; } .notes li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; } .notes li.new { font-weight: 800; } .notes small { color: var(--ink3); white-space: nowrap; }

/* profile */
.banner { background: radial-gradient(800px 300px at 85% -20%, rgba(217,70,239,.25), transparent 60%), linear-gradient(135deg, var(--violet-soft), var(--bg)); border-bottom: 1px solid var(--line); }
.ban { display: flex; gap: 24px; align-items: center; padding-top: 34px; padding-bottom: 28px; }
.ban .pfp { box-shadow: 0 10px 30px rgba(124,58,237,.3); border: 4px solid var(--surface); }
.ban h1 { margin: 0; font-size: 34px; } .ban .bio { max-width: 640px; margin: 10px 0; } .ban .meta button.link { color: var(--ink2); text-decoration: none; font-weight: 700; }
.more { position: relative; } .more summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; background: var(--surface); }
.more summary::-webkit-details-marker { display: none; }
.more .menu { position: absolute; z-index: 5; right: 0; top: 46px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 180px; } .more .menu button { border: 0; border-radius: 0; text-align: left; background: transparent; }
.locked { text-align: center; padding: 50px 20px; } .locked .big { font-size: 60px; }
.showcase { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 26px 0 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; } .stat b { display: block; font-size: 24px; } .stat span { color: var(--ink3); font-size: 14px; }
.tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--line); margin: 20px 0 16px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; } .tabs button { border: 0; background: transparent; border-radius: 0; font-weight: 800; color: var(--ink2); border-bottom: 3px solid transparent; }
.tabs button.on { color: var(--violet); border-bottom-color: var(--violet); }

/* experience page: creator, screenshots, reviews, discussions */
.creator { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--ink); background: var(--surface); }
.creator span { display: flex; flex-direction: column; line-height: 1.2; } .creator small { color: var(--ink3); font-size: 12px; }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 340px); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.shot { aspect-ratio: 16 / 9; background: #120d22; border-radius: 12px; overflow: hidden; display: grid; place-items: center; } .shot canvas { max-width: 100%; max-height: 100%; }
.rsum { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.rsum .big { font-size: 40px; font-weight: 900; color: var(--orange); display: flex; flex-direction: column; line-height: 1; } .rsum .big small { font-size: 14px; color: var(--ink3); font-weight: 700; margin-top: 6px; }
.bars { display: flex; flex-direction: column; gap: 3px; min-width: 220px; } .bar { display: grid; grid-template-columns: 30px 1fr 30px; gap: 8px; align-items: center; font-size: 13px; color: var(--ink2); }
.bar i { height: 8px; background: var(--surface2); border-radius: 99px; overflow: hidden; } .bar i b { display: block; height: 100%; background: var(--orange); }
.reviews { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.review, .post { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; background: var(--surface); }
.review p, .post p { margin: 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rh { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .rh small { color: var(--ink3); }
.reply { background: var(--violet-soft); border-radius: 10px; padding: 8px 12px; margin: 6px 0; }
.ractions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.threads { display: flex; flex-direction: column; margin: 12px 0; } .thread { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); } .thread small { color: var(--ink3); }
.mini { display: inline-flex; flex-direction: row; gap: 4px; font-size: 14px; font-weight: 700; margin-left: auto; }
.narrow { max-width: 820px; } .post { margin: 12px 0; }
@media (max-width: 820px) { .acct { grid-template-columns: 1fr; } .acct-nav { position: static; } .ban { flex-direction: column; text-align: center; } .ban .chips { justify-content: center; } }
.panel, #reviews, #discussions { scroll-margin-top: 80px; }
.dash { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; } .dash th { text-align: left; color: var(--ink3); font-weight: 800; border-bottom: 2px solid var(--line); padding: 6px 8px; } .dash td { border-bottom: 1px solid var(--line); padding: 8px; } .acct-body { min-width: 0; overflow-x: auto; }
.search { display: flex; gap: 8px; margin: 6px 0 16px; max-width: 560px; } .search input { flex: 1; }
.bigpiece { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); display: grid; place-items: center; min-height: 300px; overflow: hidden; } .bigpiece canvas { max-width: 100%; height: auto; }
#me a.btn { color: #fff; }
@media (max-width: 820px) { .ban .meta { justify-content: center; } }
/* the game on its own screen */
body.playing .foot { display: none; } body.playing main { min-height: 0; }
.playscreen { background: #0e0a1c; color: #f1ecff; min-height: calc(100vh - 62px); display: flex; flex-direction: column; }
.playscreen:fullscreen { min-height: 100vh; overflow: auto; }
.playbar { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid #2e2450; }
.playbar .back { color: #c3b8e6; text-decoration: none; font-weight: 800; } .playbar button { background: #211838; color: #f1ecff; border-color: #2e2450; }
.playbox { width: min(1200px, 100%); margin: 0 auto; padding: 10px 18px 30px; }
.playbox .player { margin-top: 6px; } .playbox .stage { max-height: 68vh; aspect-ratio: 16 / 9; margin: 0 auto; width: min(100%, calc(68vh * 16 / 9)); }
.playbox .words, .playbox .choices button { background: #17112b; color: #f1ecff; border-color: #2e2450; } .playbox .ending { background: #211838; } .playbox .player h2 { color: #f1ecff; }
.tag.age { background: #ffe1e1; color: #a12020; }
.ruleslist { padding-left: 22px; margin: 0; max-height: 46vh; overflow: auto; } .ruleslist li { margin: 6px 0; }
.dialog.warn { border-top: 6px solid var(--orange); }
.meters { display: flex; gap: 14px; flex-wrap: wrap; } .meter { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; min-width: 180px; }
.meter i { flex: 1; height: 10px; background: #2e2450; border-radius: 99px; overflow: hidden; min-width: 120px; } .meter i b { display: block; height: 100%; background: linear-gradient(90deg, #06b6d4, #7c3aed); transition: width .4s; }
.meter.low i b { background: #d64545; } .meter.high i b { background: #ff8a1f; }

/* ---- parts: the controls players use, over the stage */
.stage { position: relative; }
.partlayer { position: absolute; inset: 0; pointer-events: none; container-type: size; }
.partlayer > * { position: absolute; pointer-events: auto; box-sizing: border-box; font: 700 clamp(11px, 1.6cqw, 18px)/1.2 var(--font, system-ui); color: #fff; }
.part { border: 0; border-radius: 14px; background: rgba(20, 12, 40, .72); backdrop-filter: blur(4px); padding: 6px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; min-height: 0; }
button.part { cursor: pointer; } button.part:focus-visible, .part button:focus-visible, .part input:focus-visible { outline: 3px solid #06b6d4; outline-offset: 2px; }
.part-button.round { border-radius: 999px; background: linear-gradient(135deg, #7c3aed, #d946ef); }
.part-button.square { border-radius: 10px; background: linear-gradient(135deg, #7c3aed, #d946ef); }
.part-button.plain { background: rgba(255,255,255,.14); }
.part-button.invisible { background: transparent; backdrop-filter: none; }
.part-hold .progress, .part .mtrack { display: block; width: 90%; height: 10px; border-radius: 99px; background: rgba(255,255,255,.18); overflow: hidden; }
.part-hold .progress i, .part .mtrack b, .part .mtrack i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #06b6d4, #7c3aed); }
.part-mash { background: linear-gradient(135deg, #ff8a1f, #d946ef); } .part-mash b { font-size: 1.4em; }
.part-timing { position: absolute; background: rgba(20,12,40,.55); border-radius: 50%; overflow: hidden; }
.part-timing .target, .part-timing .ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; pointer-events: none; }
.part-timing .target { width: 80%; height: 80%; transform: translate(-50%, -50%); border: 4px dashed rgba(255,255,255,.6); }
.part-timing .ring { width: 100%; height: 100%; border: 5px solid #ff8a1f; transform: translate(-50%, -50%) scale(.5); }
.part-meter { background: rgba(20,12,40,.55); }
.part-meter.m-bar .mtrack { height: 40%; min-height: 10px; }
.part-meter.m-bottle .mtrack { width: 45%; height: 85%; border-radius: 10px 10px 16px 16px; display: flex; align-items: flex-end; border: 3px solid rgba(255,255,255,.6); }
.part-meter.m-bottle .mtrack b { width: 100%; background: linear-gradient(0deg, #0ea5e9, #67e8f9); }
.part-meter .mring { width: 70%; aspect-ratio: 1; border-radius: 50%; }
.part .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.part-knob input[type=range] { width: 90%; accent-color: #d946ef; }
.part-knob.k-knob .knob { width: 55%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #6b5b95, #2a1d52); border: 3px solid #d946ef; position: relative; }
.part-knob.k-knob .knob::after { content: ""; position: absolute; left: 50%; top: 6%; width: 4px; height: 30%; background: #fff; transform: translateX(-50%); border-radius: 2px; }
.part-keypad .kdisplay { background: #0b0816; border-radius: 6px; width: 90%; min-height: 1.4em; letter-spacing: .3em; font-family: ui-monospace, monospace; }
.part-keypad .keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; width: 92%; }
.part-keypad .keys button, .part-text button, .part-mic button, .part-screen .sopts button { border: 0; border-radius: 8px; background: rgba(255,255,255,.18); color: #fff; font: inherit; padding: 4px; min-height: 0; cursor: pointer; }
.part-keypad .keys .ok { background: #22c55e; }
form.part-text { flex-direction: row; flex-wrap: wrap; } .part-text input { flex: 1; min-width: 0; border-radius: 8px; border: 0; padding: 4px 8px; font: inherit; color: #1d1530; }
.part-drag { background: #fff; color: #1d1530; border-radius: 12px; cursor: grab; touch-action: none; }
.part-sequence .pads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; width: 92%; flex: 1; }
.part-sequence .pad { border: 0; border-radius: 10px; opacity: .45; min-height: 0; cursor: pointer; } .part-sequence .pad.lit { opacity: 1; box-shadow: 0 0 18px #fff; }
.part-mic .mtrack { height: 8px; }
.part-screen { align-items: stretch; justify-content: flex-start; padding: 8px; overflow: hidden; }
.part-screen .stitle { text-align: center; } .part-screen .slines { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.part-screen .slines p { margin: 0; background: rgba(255,255,255,.14); border-radius: 10px; padding: 4px 8px; text-align: left; font-weight: 600; }
.part-screen .sopts { display: flex; flex-direction: column; gap: 4px; }
.part-screen.s-phone { border-radius: 22px; border: 4px solid #1d1530; background: #f3f4f6; color: #1d1530; }
.part-screen.s-phone .slines p { background: #e5e7eb; color: #1d1530; } .part-screen.s-phone .sopts button { background: #3b82f6; }
.part-screen.s-radio { background: #2b2b2b; border: 3px solid #888; font-family: ui-monospace, monospace; color: #9effa0; }
.part-screen.s-note { background: #fff8dc; color: #3b2f1e; border-radius: 4px; transform: rotate(-1deg); } .part-screen.s-note .slines p { background: transparent; }
@media (prefers-reduced-motion: reduce) { .part-timing .ring { transition: none; } }

/* ======================================================================= the redesign (2026-12-01) */
/* use the width on big screens; breathe on small ones */
.wrap { max-width: 1480px; padding: 32px clamp(16px, 3vw, 44px) 64px; }
.nav { padding: 10px clamp(16px, 3vw, 44px); }
.hero { isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent); mask-image: linear-gradient(180deg, #000 30%, transparent); }
.hero .wrap { padding-top: clamp(32px, 6vw, 72px); padding-bottom: clamp(32px, 6vw, 72px); }
.hero h1 { letter-spacing: -1.5px; font-weight: 800; }
h1, h2, h3 { letter-spacing: -.4px; }
.card { border-radius: var(--radius); transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-l); }
.card .art.autocover { background: #1b1440; }
.card .art.autocover canvas { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; max-height: none; }
.row { grid-auto-columns: minmax(230px, 270px); gap: 18px; }
.grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
@media (min-width: 1400px) { .row { grid-auto-columns: minmax(250px, 300px); } .grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } .hero h1 { font-size: 64px; } }
@media (min-width: 1900px) { .wrap { max-width: 1760px; } }
.chip { min-height: 34px; display: inline-flex; align-items: center; }
#theme { width: 42px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.links a { font-weight: 700; }
.make { box-shadow: 0 6px 18px color-mix(in srgb, var(--violet) 35%, transparent); }
input[type=search], input[type=text], input[type=email], input[type=password], select, textarea { border: 1px solid var(--line2, var(--line)); border-radius: 12px; min-height: 44px; padding: 8px 12px; background: var(--surface); }
.foot { border-top: 1px solid var(--line); }
/* phones: comfortable taps */
@media (max-width: 640px) { .wrap { padding-top: 22px; } }

/* credits */
.creditsbox .crole { margin: 8px 0 14px; } .creditsbox h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink3); margin: 0 0 6px; } .creditsbox ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.endcredits { margin: 16px auto; max-width: 420px; text-align: center; } .roll { height: 160px; overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent); }
.rollin { animation: roll 14s linear forwards; display: grid; gap: 12px; padding-top: 160px; } .rollin small { display: block; text-transform: uppercase; letter-spacing: .5px; color: var(--ink3); font-weight: 800; } .rolltitle { font-size: 20px; }
@keyframes roll { to { transform: translateY(-100%); } }
@media (prefers-reduced-motion: reduce) { .rollin { animation: none; padding-top: 0; } .roll { height: auto; -webkit-mask-image: none; mask-image: none; } }

.insidebtn { border: 2px solid var(--violet); color: var(--violet); background: var(--surface); font-weight: 800; }

/* buttons on the dark play screen: readable in light mode too */
.playscreen button:not(.primary):not(.part):not(.ghost) { background: rgba(255,255,255,.08); color: #f1ecff; border-color: rgba(255,255,255,.22); }
.playscreen button:not(.primary):not(.part):not(.ghost):hover { background: rgba(255,255,255,.16); }
