/* tokens, sampled straight off assets/avatar.png (PIL pixel probe) */
:root{
  --cream: #faead0;
  --cream-soft: rgba(250,234,208,0.55);
  --green: #7bc735;
  --green-dark: #3c7a1e;
  --green-deep: #2a5714;
  --ink: #08150e;
  --ink-soft: rgba(8,21,14,0.55);
}

*{ box-sizing: border-box; }

@font-face{
  font-family: "Delius";
  src: url("fonts/delius-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face{
  font-family: "Fragment Mono";
  src: url("fonts/fragmentmono-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}

html, body{
  height: 100%;
  margin: 0;
  background: var(--cream);
  overflow: hidden;
}

body{
  font-family: "Delius", ui-rounded, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
}

.room{
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 3vh, 28px) clamp(14px, 5vw, 32px);
  position: relative;
}

.sheet{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 2vh, 18px);
  width: 100%;
  max-width: 480px;
}

.frog-wrap{
  width: min(70vw, 66vh, 460px);
}

.frog{
  width: 100%;
  height: auto;
  display: block;
  transform-origin: 50% 62%;
  animation: breathe 4.2s ease-in-out infinite;
}

@keyframes breathe{
  0%, 100%{ transform: scaleY(1); }
  50%{ transform: scaleY(1.018); }
}

.line{
  margin: 0;
  font-size: clamp(14px, 3.2vw, 17px);
  text-align: center;
  color: var(--ink);
  max-width: 34ch;
  line-height: 1.4;
}

.plate{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--green-dark);
  border: 3px solid var(--ink);
  padding: 8px 14px;
}

.tk{
  font-family: "Fragment Mono", ui-monospace, monospace;
  font-weight: 400;
  font-size: 12px;
  color: var(--cream);
  letter-spacing: 0.03em;
}

.sep{ color: rgba(250,234,208,0.5); }

.ca{
  font-family: "Fragment Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--cream);
  background: var(--green-deep);
  border: 1px solid var(--ink);
  padding: 5px 9px;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.ca:hover{ background: var(--ink); }

.asleep{
  position: fixed;
  top: clamp(10px, 2.4vh, 18px);
  right: clamp(12px, 3vw, 22px);
  font-family: "Fragment Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

.links{
  position: fixed;
  left: 0;
  right: 0;
  bottom: clamp(10px, 2.2vh, 18px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-family: "Fragment Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.links a{
  color: var(--ink);
  text-decoration: none;
  padding: 4px 6px;
  opacity: 0.75;
}
.links a:hover{ opacity: 1; }

@media (prefers-reduced-motion: reduce){
  .frog{
    animation: none !important;
  }
}

@media (max-width: 420px){
  .frog-wrap{ width: min(72vw, 320px); }
  .line{ font-size: 13px; }
}

@media (max-height: 620px){
  .room{ padding-top: 8px; padding-bottom: 8px; }
  .frog-wrap{ width: min(46vh, 60vw, 280px); }
}
