@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;600;700;800;900&display=swap");
:root {
  --ink: #493d50;
  --paper: #fff8eb;
  --pink: #f3b6cb;
  --peach: #f4c3a4;
  --mint: #c7ddc0;
  --lilac: #d8c9ee;
  --yellow: #f6e5a0;
  --line: #665569;
  --green: #d8c9ee;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Nunito", sans-serif;
  font-size: 16px;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}
button:hover {
  transform: translateY(-2px);
}
button:active {
  transform: translateY(1px);
}
button:focus-visible,
input:focus-visible {
  outline: 3px solid #806499;
  outline-offset: 4px;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3,
.logo {
  font-family: "Fredoka", sans-serif;
}
header {
  max-width: 1500px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 40px;
  border-bottom: 2px solid #493d501b;
}
.logo {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: -2px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #685078;
}
.logo i {
  display: none;
}
.logo small {
  font: 800 12px "Nunito";
  letter-spacing: 1.5px;
  max-width: 100px;
  line-height: 1.5;
  border-left: 2px solid #d5c5cd;
  padding-left: 14px;
  margin-left: 6px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
.text-btn,
.help {
  border: 2px solid var(--line);
  background: var(--yellow);
  border-radius: 12px;
  padding: 9px 18px;
  font-weight: 800;
  box-shadow: 0 3px 0 var(--line);
}
.nav .active {
  background: var(--pink);
}
.help {
  width: 42px;
  padding: 9px 0;
  background: var(--mint);
}
main {
  max-width: 1500px;
  margin: auto;
  padding: 25px 40px 30px;
}
.intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.intro h1 {
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 600;
  letter-spacing: -0.8px;
  margin-bottom: 5px;
}
.intro p {
  margin: 0;
  color: #786577;
  font-size: 16px;
}
.session {
  background: var(--mint);
  border: 2px solid var(--line);
  padding: 10px 17px;
  border-radius: 50% 45% 48% 42%;
  transform: rotate(4deg);
  font-weight: 800;
  font-size: 14px;
}
.dot {
  display: none;
}
.layout {
  display: grid;
  grid-template-columns: 245px minmax(360px, 1fr) 260px;
  gap: 22px;
  align-items: start;
}
.card,
.studio {
  border: 2px solid var(--line);
  border-radius: 24px;
  box-shadow: 4px 5px 0 #665569;
  background: #fffaf1;
}
.card {
  padding: 20px;
}
.challenge {
  background: var(--peach);
  position: relative;
  overflow: hidden;
  transform: rotate(-1deg);
}
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.7px;
  background: var(--paper);
  padding: 7px 9px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
}
.star {
  display: none;
}
.eyebrow {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #70596a;
  text-transform: uppercase;
}
.challenge h2 {
  font-size: 38px;
  font-weight: 600;
  line-height: 1.05;
  margin: 12px 0;
}
.sub {
  font-size: 14px;
  line-height: 1.5;
  color: #735b62;
}
.trait {
  border-top: 2px dashed #b9897b;
  margin: 20px 0 16px;
  padding-top: 15px;
  font-size: 14px;
  line-height: 1.75;
}
.trait b {
  display: block;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.7px;
  margin-bottom: 5px;
}
.outline {
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  padding: 10px 12px;
  font-weight: 800;
  font-size: 14px;
  width: 100%;
  box-shadow: 0 2px 0 var(--line);
}
.head-card {
  margin-top: 22px;
  background: var(--mint);
}
.head-card h3 {
  font-size: 21px;
  font-weight: 500;
  margin-bottom: 8px;
}
.head-card > p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 14px;
}
.head-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.head-options button {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #f5f7e9;
  padding: 10px 2px;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.head-options button.selected {
  background: var(--yellow);
  box-shadow: 0 2px 0 var(--line);
}
.head-options i {
  width: 21px;
  height: 26px;
  border-radius: 46%;
  background: #d9ac83;
  box-shadow:
    inset 2px 2px 2px #fff7,
    inset -2px -2px 3px #493d5033;
}
.head-options [data-head="round"] i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}
.head-options [data-head="square"] i {
  width: 25px;
  border-radius: 28%;
}
.head-options [data-head="heart"] i {
  clip-path: polygon(0 0, 100% 0, 92% 55%, 50% 100%, 8% 55%);
}
.head-options [data-head="long"] i {
  width: 17px;
  height: 28px;
}
.little {
  font-size: 12px;
  line-height: 1.6;
  color: #735f72;
  margin-bottom: 0;
}
.tips {
  padding: 22px 5px;
}
.tips h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 13px;
}
.tip {
  display: flex;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
  margin: 12px 0;
  color: #766273;
}
.num {
  background: var(--lilac);
  border: 1px solid var(--line);
  border-radius: 50%;
  min-width: 25px;
  height: 25px;
  text-align: center;
  font-weight: 900;
}
.studio {
  overflow: hidden;
  background: #e6dff1;
}
.studio-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--lilac);
  border-bottom: 2px solid var(--line);
  padding: 15px 18px;
}
.studio-label {
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.6px;
}
.studio-label > span {
  font-weight: 600;
  display: block;
  letter-spacing: 0;
  font-size: 12px;
  margin-top: 3px;
}
.timer {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--paper);
  padding: 6px 9px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.timer button {
  border: 0;
  background: transparent;
  padding: 0 3px;
}
.canvas-wrap {
  height: 470px;
  position: relative;
  touch-action: none;
  background: #e6dff1;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}
.viewbar {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 6px;
}
.viewbar button {
  font-size: 12px;
  font-weight: 800;
  padding: 7px 10px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 9px;
}
.badge3d {
  display: none;
}
.canvas-note {
  position: absolute;
  bottom: 14px;
  width: 100%;
  padding: 0 12px;
  text-align: center;
  font-size: 12px;
  color: #6e5b78;
  pointer-events: none;
}
.studio-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-top: 2px solid var(--line);
  background: var(--lilac);
}
.icons {
  display: flex;
  gap: 8px;
}
.icon-btn {
  width: 36px;
  height: 34px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  font-size: 21px;
}
.count {
  font-size: 12px;
  font-weight: 700;
}
.count span[style] {
  display: none;
}
.primary {
  background: var(--pink);
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 13px 20px;
  font-weight: 900;
  box-shadow: 0 4px 0 var(--line);
}
.finish {
  margin-top: 18px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 13px;
  font-family: "Fredoka";
  font-size: 23px;
  font-weight: 500;
}
.below {
  text-align: center;
  font-size: 12px;
  margin-top: 10px;
  color: #7b657a;
}
.file-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}
.file-toolbar button {
  flex: 1;
  border: 2px solid var(--line);
  background: var(--yellow);
  border-radius: 11px;
  padding: 9px 10px;
  font-size: 14px;
  font-weight: 800;
}
.file-toolbar #openClay {
  background: var(--mint);
}
#saveStatus {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: #7b657a;
  min-height: 18px;
}
.panel {
  background: #f7e3ad;
}
.panel h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 0;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.palette {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 11px 7px;
  justify-items: center;
}
.swatch {
  width: 27px;
  height: 27px;
  border: 1px solid #493d5044;
  border-radius: 45% 52% 44% 50%;
  position: relative;
  box-shadow:
    inset 2px 3px 3px #ffffff66,
    inset -2px -2px 3px #0002;
}
.swatch.selected:after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid var(--line);
  border-radius: 45%;
}
.color-label {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-top: 17px;
}
#paintPreview {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #493d5066;
}
.brightness-row {
  margin-top: 15px;
}
.brightness-row label,
.range-label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}
.brightness-row label span,
.range-label span {
  font-size: 12px;
  font-weight: 600;
}
.range-label {
  margin-top: 16px;
}
.brightness-row input {
  margin: 0;
}
input[type="range"] {
  width: 100%;
  height: 18px;
  accent-color: #8a709b;
}
.divider {
  height: 0;
  border-top: 2px dashed #bca77f;
  margin: 22px 0;
}
.shapes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.shape {
  border: 1.5px solid var(--line);
  background: #fff7de;
  border-radius: 13px;
  height: 65px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
}
.shape strong {
  font-size: 25px;
  line-height: 26px;
  font-weight: 500;
}
.shape:nth-child(2) {
  background: #f8d0b8;
}
.shape:nth-child(3) {
  background: #d9e7ca;
}
.shape:nth-child(4) {
  background: #e3d5f2;
}
.shape:nth-child(5) {
  background: #f4c6d5;
}
.shape:nth-child(6) {
  background: #c8e1e7;
}
.shape.selected {
  box-shadow: 0 3px 0 var(--line);
  outline: 2px solid var(--line);
  outline-offset: 2px;
}
.symmetry {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 700;
  margin-top: 18px;
}
.symmetry input {
  width: 17px;
  height: 17px;
  accent-color: #8a709b;
}
.toolmodes {
  display: flex;
  gap: 6px;
}
.toolmodes button {
  flex: 1;
  border: 1.5px solid var(--line);
  background: var(--paper);
  border-radius: 9px;
  padding: 8px 3px;
  font-size: 12px;
  font-weight: 800;
}
.toolmodes button.selected {
  background: var(--lilac);
}
#mobileMirror,
.mobile-tabs {
  display: none;
}
.footer {
  display: flex;
  justify-content: space-between;
  border-top: 2px dashed #d4bccc;
  margin-top: 26px;
  padding-top: 18px;
  font-size: 12px;
  color: #80697a;
}
.footer em {
  font-style: normal;
}
dialog {
  border: 2px solid var(--line);
  border-radius: 25px;
  padding: 28px;
  background: var(--paper);
  color: var(--ink);
  width: 620px;
  max-width: 92vw;
  max-height: 85dvh;
  overflow: auto;
  box-shadow: 6px 7px 0 #493d5077;
}
dialog::backdrop {
  background: #493d5066;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 12px;
}
dialog p {
  line-height: 1.7;
  color: #715d70;
}
dialog .close {
  float: right;
  border: 0;
  background: var(--peach);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 24px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}
.gallery-grid img {
  width: 100%;
  border-radius: 15px;
}
.gallery-grid p {
  font-size: 14px;
}
.shelf-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--lilac);
}
.shelf-card span {
  font-size: 12px;
}
.file-actions {
  display: flex;
  gap: 10px;
}
.file-actions > * {
  flex: 1;
}
.toast {
  display: none;
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  width: max-content;
  background: var(--ink);
  color: var(--paper);
  padding: 13px 20px;
  border-radius: 14px;
  z-index: 10;
  font-size: 14px;
}
/* The multiplayer room owns navigation and chat around the embedded studio. */
.live-embedded .studio-header #homeLink,.live-embedded .studio-header h1,.live-embedded #saveClay,.live-embedded #reveal,.live-embedded #studioMenu{display:none!important}
.live-embedded .studio-header{justify-content:center;min-height:44px;padding:6px 12px}.live-embedded #matNote{font-size:11px}
