.hero {
  overflow: hidden;
  padding: clamp(22px,3.7vw,51px) 0 clamp(34px,4.7vw,68px);
  background: radial-gradient(ellipse at 75% 42%,#21382e 0%,#14241e 32%,transparent 66%),#0e1715;
  border-bottom: 1px solid #35483d;
}
.hero-grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); align-items: center; gap: clamp(16px,3.4vw,52px) }
.hero-copy { position: relative; z-index: 1; padding-bottom: 26px }
.hero-copy .eyebrow { color: #d8e6c9 }
.hero-copy h1 { font: 760 clamp(55px,7.42vw,109px)/.86 var(--display); white-space: nowrap; letter-spacing: -.077em; margin: 18px 0 18px }
.hero-copy h1 em { display: inline-block; padding: .05em .10em .08em 0; color: var(--mint); font: italic 400 1.14em/.92 var(--serif); letter-spacing: -.046em }
.hero-copy h1 em span { color: var(--gold) }
.hero-intro { max-width: 35ch; color: #c8d2c8; font-size: clamp(16px,1.32vw,19px); margin-bottom: 24px }
.hero-copy .button-row { flex-wrap: wrap }
.hero-copy .button { padding-inline: 16px }
.hero-secondary { background: #1a2a22; color: #e7eedc; border-color: #526858 }
.hero-secondary:hover { background: #2b4033; border-color: #7d967a }

.hero-visual {
  --art-spot: #456650;
  --art-soft: #b4dfb4;
  --art-edge: #accfa8;
  --art-secondary: #f1cc99;
  min-width: 0;
}
.hero-visual[data-look=star] { --art-spot: #686143; --art-soft: #f0d497; --art-edge: #ccbc8c; --art-secondary: #c1d8b4 }
.hero-visual[data-look=heart] { --art-spot: #6b4849; --art-soft: #f3beb1; --art-edge: #d2a99d; --art-secondary: #f4d4a1 }
.hero-surface {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.39;
  background: radial-gradient(ellipse at 50% 43%,var(--art-spot),transparent 62%);
}
.hero-surface::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 4%;
  background: radial-gradient(circle,#cfdfc761 1px,transparent 1.5px) 0 0 / 17px 17px;
  mask-image: radial-gradient(ellipse at 56% 50%,#000,transparent 72%);
}
.hero-surface::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 82% 16% 3%;
  border-radius: 50%;
  background: radial-gradient(ellipse,#060d09cc,transparent 70%);
  filter: blur(10px);
}
.hero-orbit {
  position: absolute;
  inset: 6% 13% 9%;
  z-index: -1;
  width: auto;
  pointer-events: none;
  border: 1px solid color-mix(in srgb,var(--art-edge),transparent 59%);
  border-radius: 50%;
  transform: rotate(-17deg);
  background: linear-gradient(120deg,#dae9d416,transparent 70%);
  box-shadow: 0 0 0 17px #e1f4d408,0 0 0 18px #ceeacd14,inset 0 14px 55px #d1f3c012;
}
.hero-fallback [data-hero-art-glyph] {
  color: var(--art-soft);
  font: clamp(135px,25vw,330px)/1 system-ui;
  text-shadow: 0 -2px #fbffee,3px 5px #759f78,7px 15px #426646,11px 23px #243e31,15px 29px 30px #0a1510;
  transform: rotate(-13deg);
  animation: float-symbol 5s ease-in-out infinite;
}
.hero-fallback b { position: absolute; top: 20%; right: 17%; color: var(--art-secondary); font: clamp(31px,5vw,64px)/1 system-ui; text-shadow: 2px 5px #715d33 }
.hero-dock { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 7px; margin: -3px 5.7% 0; padding: 7px; border: 1px solid #637a67; border-radius: 14px; background: #203128; box-shadow: 0 12px 32px #06110b4f }
.hero-copy-symbol { display: grid; grid-template-columns: 35px minmax(0,1fr) auto; align-items: center; gap: 9px; min-width: 0; padding: 2px 6px 2px 2px; text-align: left; border: 1px solid transparent; border-radius: 8px; background: transparent }
.hero-copy-symbol:hover { background: #354b3b; border-color: #6a8a67 }
.hero-copy-symbol [data-hero-glyph] { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #edf2dd6b; border-radius: 8px; background: var(--art-soft); color: #243429; font: 21px/1 system-ui }
.hero-copy-symbol strong { display: block; font-size: 13px; line-height: 1.2 }
.hero-copy-symbol small { display: block; margin-top: 3px; color: #c7d3c3; font: 11px/1.2 monospace }
.hero-copy-arrow { color: var(--gold); font-size: 14px }
.hero-switch { display: flex; flex: none; gap: 3px; padding: 3px; border: 1px solid #536b58; border-radius: 9px; background: #17271e }
.hero-switch button { display: grid; place-items: center; width: 38px; height: 34px; padding: 0; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #e0e8d4; font: 20px/1 system-ui }
.hero-switch button:hover { background: #304739 }
.hero-switch button[aria-pressed=true] { background: var(--art-soft); color: #1d2d23; border-color: #edf5df7a }

.collection { background: #111c19 }
.collection .heading-row > .text-link { margin-bottom: 14px }
.collection-grid { display: grid; grid-template-columns: minmax(0,1.13fr) minmax(0,.87fr); gap: 14px; align-items: stretch }
.symbol-panel, .emoji-panel { min-width: 0; overflow: hidden; background: #17251f; border: 1px solid #3b5145; border-radius: 19px }
.symbol-panel { padding: clamp(14px,2vw,24px) }
.collection-grid h3, .tool-heading h3 { color: var(--ink); font: 700 clamp(21px,2.2vw,30px)/1 var(--display); letter-spacing: -.044em }
.symbol-panel h3, .emoji-controls h3 { margin-bottom: 11px }
.home-symbol-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; margin-top: 13px }
.symbol-tile {
  min-width: 0;
  min-height: 92px;
  position: relative;
  text-align: left;
  display: grid;
  align-content: space-between;
  gap: 4px;
  padding: 8px 8px 7px;
  border: 1px solid #506c59;
  border-bottom: 3px solid #3f5848;
  border-radius: 8px;
  background: #273f32;
  transition: transform .17s,background .17s,border-color .17s;
}
.symbol-tile:nth-child(4n+2) { background: #2d373d; border-color: #52616a }
.symbol-tile:nth-child(4n+3) { background: #3a3a2d; border-color: #655d43 }
.symbol-tile:nth-child(4n+4) { background: #393334; border-color: #655256 }
.symbol-tile:hover, .symbol-tile:focus-visible { transform: translateY(-2px); background: #3d5646; border-color: #8bab8a }
.symbol-glyph { display: block; color: #d8edc7; font: clamp(28px,3.1vw,43px)/1.12 system-ui,'Segoe UI Symbol',sans-serif }
.symbol-tile:nth-child(4n+2) .symbol-glyph { color: #d4e5ec }
.symbol-tile:nth-child(4n+3) .symbol-glyph { color: #f1ddab }
.symbol-tile:nth-child(4n+4) .symbol-glyph { color: #f0cbc5 }
.symbol-label { color: #e1e5da; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: 11px; font-weight: 620; line-height: 1.2 }
.symbol-go { position: absolute; top: 7px; right: 7px; color: #c0d2c1; font-size: 12px }

.emoji-panel { display: grid; grid-template-columns: 1fr; align-content: start }
.emoji-stage { position: relative; height: 146px; border-bottom: 1px solid #53705d; background: radial-gradient(ellipse at 48% 30%,#5a7a62,#304f41 53%,#223c30) }
.emoji-stage::before { content: ""; position: absolute; inset: 26% 13%; border: 1px solid #e2f5cf30; border-radius: 50%; transform: rotate(-7deg) }
.emoji-stage[data-look=soft] { background: radial-gradient(ellipse at 48% 30%,#866b77,#493d52 72%); border-color: #82667b }
.emoji-stage[data-look=outdoors] { background: radial-gradient(ellipse at 48% 30%,#5b7b76,#264742 70%) }
.emoji-stage[data-look=play] { background: radial-gradient(ellipse at 48% 30%,#9d7661,#4f3931 72%); border-color: #826051 }
.key-fallback { display: flex; align-items: center; justify-content: center; gap: 13px }
.key-fallback span, .key-fallback i { display: grid; place-items: center; width: 61px; height: 57px; border-radius: 13px; background: #cce6b1; color: #304d38; font: 33px/1 system-ui; box-shadow: 2px 6px #6a8c67,4px 11px #152c27; transform: rotate(-13deg) }
.key-fallback i { background: #e9b8a3; color: #6e423b; transform: rotate(13deg); font-style: normal }
.emoji-controls { min-width: 0; padding: 13px clamp(13px,2vw,21px) 11px }
.emoji-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px; margin-top: 9px }
.emoji-grid button { display: grid; place-items: center; min-height: 34px; padding: 2px; border: 1px solid #506458; border-radius: 7px; background: #24382d; font: 21px/1.15 system-ui }
.emoji-grid button:hover { background: #3a5645; border-color: #839d82 }
.emoji-result { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 42px; padding: 4px; margin-top: 8px; border: 1px solid #50685a; border-radius: 9px; background: #101d17 }
.emoji-result pre { min-width: 0; padding-left: 5px; color: #d9e7d4; font: clamp(15px,2vw,21px)/1.2 system-ui; white-space: pre-wrap; overflow-wrap: anywhere }
.emoji-result pre:empty::before { content: "Choose an emoji"; font: 13px/1 var(--body) }
.emoji-result .button { min-height: 31px; padding: 5px 8px }
.emoji-clear { margin-top: 5px; padding: 2px 1px; border: 0; background: none; color: #d5e6ca; font-size: 12px; text-decoration: underline; text-underline-offset: 3px }

.kaomoji-section { background: #1b2b23; border-block: 1px solid #3c5547 }
.mood-art { --mood-light: #819b70; --mood-dark: #324b3c; position: relative; isolation: isolate; min-height: 245px; aspect-ratio: 1.58; overflow: hidden; border: 1px solid #8f9f776e; border-radius: 49% 49% 18px 18px / 21% 21% 18px 18px; background: radial-gradient(ellipse at 31% 12%,var(--mood-light),var(--mood-dark) 76%); box-shadow: 0 17px 40px #06110b54 }
.mood-art[data-mood=love] { --mood-light:#ae7d86; --mood-dark:#65464f }
.mood-art[data-mood=cozy] { --mood-light:#af925f; --mood-dark:#5a4537 }
.mood-art[data-mood=bold] { --mood-light:#8c984f; --mood-dark:#4a5933 }
.mood-art[data-mood=sad] { --mood-light:#7a96b0; --mood-dark:#3e5066 }
.mood-grid { position: absolute; inset: 0; background: radial-gradient(#edf8d447 1px,transparent 1.5px) 0 0 / 19px 19px; mask-image: radial-gradient(ellipse at 28% 32%,#000,transparent 77%) }
.mood-fallback { color: #f1e0a8; font: clamp(130px,20vw,235px)/1 system-ui; text-shadow: 6px 10px #536243,10px 18px 21px #1d3327ab; animation: float-symbol 5s ease-in-out infinite }
.mood-sticker { position: absolute; bottom: 12px; left: 12px; padding: 5px 9px; border: 1px solid #e1efcd80; border-radius: 6px; color: #f3f5e5; background: #273c2e; font: 620 14px/1.3 system-ui,sans-serif }
.mood-copy > p:not(.eyebrow) { margin-bottom: 14px }
.kaomoji-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; margin-top: 9px }
.kaomoji-button { display: flex; justify-content: space-between; align-items: center; gap: 6px; min-width: 0; min-height: 42px; padding: 6px 9px; border: 1px solid #526e5d; border-radius: 8px; background: #263e33; color: #f1f2e7; font: 630 clamp(13px,1.26vw,18px)/1.2 system-ui,sans-serif; overflow-wrap: anywhere; text-align: left }
.kaomoji-button:hover { background: #3c5847; border-color: #99b196 }
.kaomoji-button span:last-child { color: #cfdfc2; font: 13px/1 var(--body) }

.bio-section { background: #151c1a }
.bio-fields { display: grid; gap: 5px; max-width: 410px; margin: 14px 0 11px }
.bio-fields label, .workbench label, .workbench-card label { font-size: 13px; font-weight: 630 }
.bio-fields label:not(:first-child) { margin-top: 4px }
.bio-stage { --bio-top:#637f6d; --bio-panel:#273c34; position: relative; isolation: isolate; display: grid; place-items: center; overflow: hidden; width: 100%; min-height: 330px; aspect-ratio: 1.63; border: 1px solid #638073; border-radius: 19px; background: radial-gradient(ellipse at 78% 14%,var(--bio-top),var(--bio-panel) 74%); perspective: 850px }
.bio-stage[data-look=cosmic] { --bio-top:#8f8364; --bio-panel:#494437 }
.bio-stage[data-look=minimal] { --bio-top:#728293; --bio-panel:#3c515e }
.bio-stage[data-look=sweet] { --bio-top:#a77876; --bio-panel:#503c40 }
.bio-stage::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(122deg,transparent 0 52px,#e6f0cb26 53px 54px,transparent 55px 108px); mask-image: linear-gradient(112deg,transparent 11%,#000 88%); z-index: -1 }
.bio-shadow { position: absolute; z-index: -1; bottom: 7%; width: 75%; height: 13%; border-radius: 50%; background: #071b10b5; filter: blur(16px) }
.bio-card { position: relative; width: min(72%,357px); transform: translate(-8%,4%) rotate(-5deg) rotateY(-7deg); padding: 15px; border: 1px solid #e9ecda; border-radius: 12px; background: #e8ecde; color: #23392e; box-shadow: 2px 4px #a2b6a4,4px 7px #719381,10px 15px 23px #071c14a3; transition: transform .32s }
.bio-stage:focus-within .bio-card, .bio-stage:hover .bio-card { transform: translate(-8%,2%) rotate(-2deg) rotateY(-3deg) }
.bio-window { display: flex; align-items: center; gap: 8px; padding-bottom: 7px; border-bottom: 1px solid #bdc9b8; color: #455c49; font-size: 12px; font-weight: 680 }
.bio-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: #cadccb; color: #284b37; font: 21px/1 system-ui }
.bio-card pre { min-height: 99px; padding: 10px 0; white-space: pre-wrap; overflow-wrap: anywhere; color: #284036; font: 640 clamp(15px,2vw,18px)/1.45 var(--body) }
.bio-card .button { min-height: 37px }
.bio-fallback span, .bio-fallback i { position: absolute; color: #cbe9bc; font: clamp(49px,9vw,114px)/1 system-ui; text-shadow: 3px 5px #659379,6px 10px #284b38; transform: rotate(12deg) }
.bio-fallback span { right: 8%; top: 5% }
.bio-fallback i { left: 7%; bottom: 9%; color: #f0d29f; font-size: 40px }

.tools-section { background: #111b19; border-top: 1px solid #3a4b43 }
.quick-tools { display: grid; grid-template-columns: minmax(0,1.29fr) minmax(0,1fr); gap: 12px }
.workbench, .workbench-card { min-width: 0; overflow: hidden; background: #192a23; border: 1px solid #476355; border-radius: 14px }
.workbench { display: grid; grid-template-rows: auto 1fr }
.workbench-card { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start }
.workbench-input, .workbench-output, .workbench-card { min-width: 0; padding: clamp(12px,2vw,22px) }
.tool-heading { display: flex; align-items: center; gap: 9px; margin-bottom: 11px }
.tool-icon { display: grid; place-items: center; flex: none; width: 33px; height: 33px; background: #335140; color: #e3efcb; border: 1px solid #6f8b71; border-radius: 8px; font: 20px/1 system-ui }
.workbench .field, .workbench-card .field { margin: 5px 0 8px }
.workbench .range-control { margin-top: 9px }
.workbench-output { position: relative; isolation: isolate; min-height: 169px; display: flex; flex-direction: column; align-items: start; justify-content: space-between; gap: 7px; border-top: 1px solid #596e58; background: radial-gradient(ellipse at 100% 92%,#637a4c,#364e3b 64%,#2a4032); overflow: hidden }
.output-caption { color: #f3f0d7; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase }
.workbench-output pre { max-width: 100%; overflow-wrap: anywhere; white-space: pre-wrap; color: #f7f3e2; font: 680 clamp(22px,3.1vw,46px)/1.18 var(--display) }
.fx-decoration { position: absolute; z-index: -1; right: -13px; bottom: -37px; color: #f3e9bc2c; font: 146px/1 system-ui; transform: rotate(-22deg) }
.workbench-card-grid { display: grid; gap: 10px }
.workbench-card .tool-heading h3 { font-size: clamp(19px,2vw,25px) }
.blank-card { background: #252e2d; border-color: #516662 }
.small-output { display: flex; justify-content: space-between; align-items: center; gap: 7px; min-height: 42px; padding: 4px 5px 4px 8px; margin-top: 8px; border: 1px solid #516758; border-radius: 8px; background: #121f19 }
.small-output output { min-width: 0; overflow-wrap: anywhere; color: #e1eccd; font: 660 clamp(16px,2vw,23px)/1.1 var(--display) }
.small-output .compact { min-height: 31px; padding: 5px 8px }
#blank-preview { display: flex; max-width: 57%; gap: 3px; flex-wrap: wrap }
#blank-preview i { width: 6px; height: 12px; border: 1px dashed #b3cbb1; border-radius: 2px }

@media (max-width: 960px) {
  .hero-copy h1 { font-size: clamp(54px,7vw,78px) }
  .home-symbol-grid { grid-template-columns: repeat(3,minmax(0,1fr)) }
}
@media (max-width: 790px) {
  .hero-grid, .collection-grid { grid-template-columns: 1fr }
  .hero-copy { padding: 0 }
  .hero-copy h1 { font-size: clamp(58px,12vw,92px); margin: 13px 0 9px }
  .hero-intro { margin-bottom: 15px }
  .hero-visual { max-width: 630px; width: 100%; margin-inline: auto }
  .hero-surface { max-height: 430px }
  .hero-dock { margin-inline: 3.3% }
  .home-symbol-grid { grid-template-columns: repeat(4,minmax(0,1fr)) }
  .mood-copy { grid-row: 1 }
  .mood-art { min-height: 0; aspect-ratio: 1.48 }
  .bio-stage { min-height: 280px }
}
@media (max-width: 610px) {
  .quick-tools { grid-template-columns: 1fr }
  .collection .heading-row > .text-link { margin-bottom: 0 }
}
@media (max-width: 450px) {
  .hero { padding-top: 23px }
  .hero-copy .button { min-height: 42px; padding-inline: 10px; font-size: 13px }
  .hero-surface { aspect-ratio: 1.28 }
  .hero-dock { margin-inline: 0; padding: 5px }
  .hero-switch button { width: 31px; height: 33px }
  .hero-copy-symbol { grid-template-columns: 31px minmax(0,1fr) auto; gap: 6px }
  .hero-copy-symbol [data-hero-glyph] { width: 31px; height: 31px }
  .hero-copy-symbol strong { font-size: 12px }
  .home-symbol-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px }
  .symbol-tile { min-height: 77px }
  .bio-card { width: 76%; transform: translate(-6%,4%) rotate(-4deg) }
  .bio-stage:focus-within .bio-card, .bio-stage:hover .bio-card { transform: translate(-6%,2%) rotate(-2deg) }
}
@media (max-width: 355px) {
  .hero-copy h1 { font-size: 52px }
  .hero-copy .button-row { gap: 7px }
}
@media (min-width: 1050px) {
  .bio-card { transform: translate(-15%,5%) rotate(-5deg) rotateY(-7deg) }
  .bio-stage:focus-within .bio-card, .bio-stage:hover .bio-card { transform: translate(-15%,3%) rotate(-2deg) rotateY(-3deg) }
}
