/* InuPad. Every colour is taken from the mascot: rim light lime, coat orange, cheek mauve, eye green, line ink. */
:root {
  --lime: #ddf06e; --lime-2: #c9df4c; --coat: #f5b25c; --cheek: #cfa3b4; --eye: #3fb83f; --ink: #16110d; --white: #fff; --red: #b3261e;
  --pad: clamp(16px, 2.4vw, 32px); --r: 18px;
  --display: 'Dela Gothic One', 'Arial Black', sans-serif; --text: 'Zen Kaku Gothic New', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--lime); color: var(--ink); font: 500 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(36px, 4.6vw, 84px); }
h1 span { display: block; white-space: nowrap; }
h2 { font-size: clamp(34px, 4.4vw, 68px); }
h3 { font: 900 22px/1.2 var(--text); }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--lime); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 0; border-radius: 999px; font-weight: 900; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .18s cubic-bezier(.2,.9,.3,1.3), background-color .18s ease-out; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.96); transition-duration: .08s; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn.go { background: var(--ink); color: var(--lime); }
.btn.go:hover { background: #33281f; }
.btn.ink { background: var(--ink); color: #fff; min-height: 46px; }
.btn.line { background: var(--white); }
.btn.line:hover { background: #f4f9d6; }

.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px var(--pad); background: var(--lime); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 400 24px/1 var(--display); margin-right: auto; }
.top nav { display: flex; gap: 26px; margin-right: 12px; font-weight: 700; }
.top nav a { text-decoration: none; }
.top nav a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.ca { border: 0; background: var(--white); border-radius: 999px; min-height: 46px; padding: 0 18px; font-weight: 900; cursor: pointer; font-variant-numeric: tabular-nums; }
.xbtn { width: 46px; height: 46px; border-radius: 50%; background: var(--white); display: grid; place-items: center; }
.xbtn svg { width: 18px; height: 18px; }

.studio { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 72px); align-items: center; padding: clamp(12px, 2vw, 28px) var(--pad) clamp(56px, 7vw, 110px); min-height: calc(100svh - 72px); }
.lede { font-size: clamp(18px, 1.45vw, 22px); line-height: 1.45; margin-top: 22px; max-width: 34em; }
.ask { margin-top: 28px; }
.ask label { display: block; font-weight: 900; margin-bottom: 8px; }
textarea, input { width: 100%; border: 0; border-radius: var(--r); background: var(--white); padding: 14px 18px; min-height: 52px; resize: vertical; }
textarea::placeholder, input::placeholder { color: #6f675f; opacity: 1; }
.ask textarea { font-size: 19px; line-height: 1.4; min-height: 96px; resize: none; }
.row { display: flex; gap: 10px; margin-top: 12px; }
.row .go { flex: 1; min-height: 58px; font-size: 19px; }
.row .line { min-height: 58px; }
.ideas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ideas button { border: 0; border-radius: 999px; background: var(--lime-2); padding: 8px 15px; font-weight: 700; font-size: 16px; cursor: pointer; transition: transform .18s cubic-bezier(.2,.9,.3,1.3), background-color .18s; }
.ideas button:hover { background: var(--coat); transform: translateY(-2px); }
.note { margin-top: 14px; font-size: 16px; }

.stage { min-width: 0; }
.pup { position: relative; width: min(100%, 680px, calc(100svh - 190px)); margin-inline: auto; perspective: 900px; }
#original { width: 100%; will-change: transform; filter: none; }
.pup.still #original { animation: none; }
#result { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 28px; background: #fff; }
.pup.busy #original, .pup.busy #result { animation: sniff .5s ease-in-out infinite alternate; }
@keyframes sniff { from { transform: rotate(-5deg) translateY(4px); } to { transform: rotate(5deg) translateY(-12px); } }
/* while it draws, the Inu gets a white card and a big panel nobody can miss */
.pup.busy { background: var(--white); border-radius: 28px; overflow: hidden; padding: 8% 4% 0; }
.pup.busy #original, .pup.busy #result { width: 62%; margin: 0 auto 3%; }
.drawing { margin: 0 -4.4%; background: var(--ink); color: var(--white); padding: clamp(18px, 2.2vw, 30px) clamp(20px, 2.6vw, 36px) clamp(20px, 2.4vw, 32px); }
.drawing-h { font: 400 clamp(28px, 3vw, 46px)/1.05 var(--display); letter-spacing: -.02em; color: var(--lime); }
.drawing-i { margin-top: 8px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 22px; border-radius: 999px; background: #3d332a; margin-top: 16px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 100%; border-radius: 999px; background: var(--coat); transform: translateX(-100%); transition: transform .5s linear; animation: pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { to { background: var(--lime); } }
.drawing-t { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; font-weight: 900; font-variant-numeric: tabular-nums; }
.spin { width: 20px; height: 20px; border-radius: 50%; border: 4px solid var(--lime); border-right-color: transparent; margin-right: 12px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }
#draw.on:disabled { opacity: 1; }
.after { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.say > * { animation: rise .6s cubic-bezier(.2,.8,.2,1) both; }
.say > :nth-child(2) { animation-delay: .07s; } .say > :nth-child(3) { animation-delay: .14s; } .say > :nth-child(4) { animation-delay: .21s; } .say > :nth-child(5) { animation-delay: .28s; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
.pup { animation: pop .7s cubic-bezier(.2,.9,.3,1.2) both; }
.pop { animation: pop .5s cubic-bezier(.2,.9,.3,1.25); }
@keyframes pop { from { transform: scale(.86); opacity: 0; } }

.launch { background: var(--coat); padding: clamp(48px, 6vw, 96px) var(--pad); }
.launch-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); margin-top: 32px; align-items: start; }
.launch-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 28px; background: #fff; }
.launch form { display: grid; gap: 16px; }
.launch label { display: block; font-weight: 900; }
.launch label input, .launch label textarea { margin-top: 6px; font-weight: 500; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.two.end { align-items: end; }
.two.end .btn { min-height: 56px; }
.from { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--ink); color: #fff; border-radius: var(--r); padding: 16px 18px; }
.from .btn { color: var(--ink); }
.from-k { font-weight: 700; }
.from-v { font-weight: 900; font-size: 21px; line-height: 1.25; color: var(--lime); font-variant-numeric: tabular-nums; }
.status .btn { margin-top: 12px; display: flex; width: 100%; }
.status:empty { display: none; }
.status { font-weight: 700; background: var(--white); border-radius: var(--r); padding: 14px 18px; overflow-wrap: anywhere; }
.status.bad { background: #fff; color: var(--red); }

.board { background: var(--ink); color: #fff; padding: clamp(56px, 7vw, 110px) var(--pad); }
.board h2 { color: var(--lime); }
.empty { margin-top: 22px; font-size: 19px; }
#coins a.coin { display: grid; grid-template-columns: 64px minmax(0, 2.4fr) repeat(3, minmax(0, 1fr)) auto; align-items: center; gap: 18px; padding: 14px 16px; margin-inline: -16px; border-radius: var(--r); text-decoration: none; font-variant-numeric: tabular-nums; transition: background-color .18s; }
#coins { margin-top: 24px; }
#coins a.coin:hover { background: #2b231c; }
.coin img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; background: #fff; }
.coin b { display: block; font-weight: 900; font-size: 19px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coin small { font-size: 16px; color: #d8cfc6; }
.up { color: #7be07b; } .down { color: #ff9b8f; }

.fresh { background: var(--cheek); padding: clamp(56px, 7vw, 110px) var(--pad); }
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 230px), 1fr)); gap: 16px; margin-top: 28px; }
.wall button { border: 0; background: none; padding: 0; text-align: left; cursor: pointer; }
.wall img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; background: #fff; transition: transform .25s cubic-bezier(.2,.9,.3,1.2); }
.wall button:hover img { transform: translateY(-5px) rotate(-1.2deg); }
.wall span { display: block; margin-top: 8px; font-size: 16px; line-height: 1.35; font-weight: 700; overflow-wrap: anywhere; }

.questions { background: var(--white); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 90px); padding: clamp(56px, 7vw, 110px) var(--pad); align-items: start; }
.q-side img { width: min(100%, 380px); margin-top: 28px; }
.questions dl { display: grid; gap: 30px; }
.questions dt { font-weight: 900; font-size: clamp(21px, 1.9vw, 28px); line-height: 1.25; }
.questions dd { margin-top: 8px; font-size: 18px; max-width: 36em; }

footer { background: var(--lime); padding: clamp(40px, 5vw, 80px) var(--pad) 28px; }
footer .big { font: 400 clamp(64px, 22vw, 440px)/.86 var(--display); letter-spacing: -.045em; white-space: nowrap; }
footer p:last-child { margin-top: 28px; max-width: 46em; }

.picker { position: fixed; inset: 0; z-index: 60; background: rgba(22, 17, 13, .72); display: grid; place-items: center; padding: 16px; }
.picker-card { background: #fff; border-radius: 28px; padding: 24px; width: min(380px, 100%); display: grid; gap: 14px; }
.picker a.opt { text-decoration: none; }
.picker .opt small { margin-left: auto; font-size: 16px; font-weight: 700; }
.picker .opt { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; background: #f3f5e2; border-radius: 16px; padding: 12px 14px; margin-bottom: 8px; font-weight: 900; cursor: pointer; }
.picker .opt:hover { background: var(--lime); }
.picker .opt img { width: 30px; height: 30px; border-radius: 8px; }
.picker .btn.line { background: #f3f5e2; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 70; background: var(--ink); color: #fff; border-radius: 18px; padding: 14px 22px; font-weight: 700; max-width: min(560px, calc(100vw - 32px)); }

@media (max-width: 900px) {
  .top nav { display: none; }
  .studio { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 20px; }
  .stage { order: -1; }
  .pup { width: min(74%, 380px); }
  .pup.has, .pup.busy { width: min(100%, 460px); }
  .launch-grid, .questions { grid-template-columns: minmax(0, 1fr); }
  .launch-grid img { max-width: 320px; }
  .q-side img { display: none; }
  #coins a.coin { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .coin img { width: 56px; height: 56px; }
  .coin .hide { display: none; }
}
@media (max-width: 560px) {
  .two, .three { grid-template-columns: minmax(0, 1fr); }
  .brand { font-size: 18px; gap: 8px; }
  .brand img { width: 34px; height: auto; }
  .top { flex-wrap: wrap; gap: 8px; }
  .top .btn { padding: 0 15px; min-height: 44px; font-size: 16px; }
  .xbtn { width: 44px; height: 44px; }
  .ca { order: 9; flex: 1 0 100%; min-height: 40px; font-size: 16px; }
  html { scroll-padding-top: 136px; }
  .btn { padding: 0 20px; }
  .ideas button { padding: 10px 15px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
