:root {
  --header-h: 4.25rem;
  --intro-teal: #1d4355;
  --intro-teal-deep: #163645;

  --sg-bg: #04041b;
  --sg-pink: #e91e63;
  --sg-muted: #b4b4c0;
  --sg-text: #f2f2f5;

  --wt-blue: #2743c8;
  --wt-ink: #212121;
  --wt-paper: #f4f6fb;

  --om-bg: #141417;
  --om-brand: #4f39f6;
  --om-accent: #e91e63;

  --scrollbar-size: 10px;
  --scrollbar-track: #e4eef2;
  --scrollbar-thumb: var(--intro-teal);
  --scrollbar-thumb-hover: var(--intro-teal-deep);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

html::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

html::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

html::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid var(--scrollbar-track);
  background-clip: padding-box;
  min-height: 2.5rem;
}

html::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
  border: 2px solid var(--scrollbar-track);
  background-clip: padding-box;
}

html::-webkit-scrollbar-corner {
  background: var(--scrollbar-track);
}

body {
  margin: 0;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #111;
  background: #fff;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0 0 0.85rem; }
p:last-child { margin-bottom: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: var(--intro-teal);
  border-bottom: none;
}

.site-header__inner {
  width: min(1100px, calc(100% - 1.5rem));
  margin: 0 auto;
  height: 100%;
  padding: 0.55rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  position: relative;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #fff;
  max-width: calc(100% - 0.5rem);
}

.site-brand img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  flex-shrink: 0;
}

.site-brand__text {
  display: inline-flex;
  align-items: baseline;
  min-width: 0;
  white-space: nowrap;
}

.site-brand__sep {
  display: inline-block;
  padding: 0 0.55em;
  flex-shrink: 0;
}

.site-brand__section {
  position: relative;
  display: inline-grid;
  vertical-align: baseline;
  font-weight: 700;
  opacity: 0.92;
  height: 1.3em;
  line-height: 1.3;
  overflow: hidden;
  transition: width 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-brand__section.is-animating {
  overflow: hidden;
}

.site-brand__section-item {
  grid-area: 1 / 1;
  display: block;
  white-space: nowrap;
  line-height: 1.3;
  width: max-content;
  transform: translate3d(0, 0, 0);
  opacity: 1;
  will-change: transform, opacity;
}

.site-brand__section-item.is-leave {
  animation: brand-section-leave 0.38s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.site-brand__section-item.is-enter {
  animation: brand-section-enter 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.site-brand__section-item.is-active {
  position: relative;
}

@keyframes brand-section-leave {
  from {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
  to {
    transform: translate3d(0, -100%, 0);
    opacity: 0;
  }
}

@keyframes brand-section-enter {
  from {
    transform: translate3d(0, 100%, 0);
    opacity: 0;
  }
  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-brand__section {
    transition: none;
  }

  .site-brand__section-item.is-leave,
  .site-brand__section-item.is-enter {
    animation: none;
  }
}

.panel {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Horizontal era rail (kozmalev-style scroll) */
.era-rail {
  position: relative;
  height: 380vh;
}


.era-rail__pin {
  position: sticky;
  top: var(--header-h);
  height: calc(100svh - var(--header-h));
  overflow: hidden;
}

.era-rail__track {
  display: flex;
  height: 100%;
  width: max-content;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.era-slide {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100%;
  min-height: 0;
}

/* Shared era layout (mockup structure) */
.era-shell {
  position: relative;
  z-index: 2;
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(2rem, 5vh, 3.5rem) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.era-heading {
  text-align: center;
  margin-bottom: clamp(1.5rem, 3.5vh, 2.25rem);
  width: 100%;
}

.era-heading__label {
  margin: 0 0 0.55rem;
  font-size: clamp(1.85rem, 5.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.era-heading__title {
  font-size: clamp(2rem, 7vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.era-heading__years,
.era-heading__status {
  margin: 0.45rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  opacity: 0.85;
}

.era-heading__status {
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--om-accent);
  opacity: 1;
}

.era-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.era-banner {
  display: block;
  width: min(100%, clamp(180px, 42vw, 340px));
  height: auto;
  margin: 0 auto 1.15rem;
  object-fit: contain;
}

.era-banner--wt {
  width: min(100%, clamp(200px, 48vw, 400px));
  filter: drop-shadow(0.08em 0.08em 0 var(--wt-ink));
}

.era-banner--om {
  width: min(100%, clamp(170px, 40vw, 320px));
}

.era-text {
  margin: 1.15rem 0 0.9rem;
  width: 100%;
  max-width: none;
  line-height: 1.75;
  font-size: clamp(1.12rem, 2.2vw, 1.28rem);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.era-sep {
  display: block;
  width: 50%;
  height: 2.5px;
  margin: 0.15rem auto 1.35rem;
  border: none;
  border-radius: 2px;
  opacity: 1;
}

/* Role badges — rólunk solid pills */
.member-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0 1.15rem;
  width: 100%;
}

.member-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: #fff;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  max-width: 100%;
  font-family: inherit;
  box-shadow: none;
  text-transform: none;
  transition: transform 0.22s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: center;
  cursor: default;
}

.member-tag:hover {
  transform: scale(1.07);
}

/* Topic tags (# anime …) */
.era-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0 1.1rem;
  width: 100%;
  align-self: stretch;
}

.era-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  background: #f3c6c6;
  color: #111;
  transition: transform 0.22s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: center;
  cursor: default;
}

.era-tag:hover {
  transform: scale(1.07);
}

.era-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  align-self: center;
}

.era-body > .talk-btn {
  align-self: center;
}

/* Selection colors per section */
::selection {
  background: var(--intro-teal);
  color: #fff;
}

.panel--intro ::selection {
  background: var(--intro-teal);
  color: #fff;
}

.era-sg ::selection {
  background: var(--sg-pink);
  color: #fff;
}

.era-wt ::selection {
  background: #fff;
  color: var(--wt-blue);
}

.era-om ::selection {
  background: var(--om-accent);
  color: #fff;
}

.site-header ::selection,
.site-footer ::selection {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

/* ========== BEMUTATKOZÁS ========== */
.panel--intro {
  background:
    radial-gradient(ellipse 55% 60% at 92% 18%, rgba(29, 67, 85, 0.14), transparent 58%),
    radial-gradient(ellipse 45% 50% at 8% 88%, rgba(126, 182, 217, 0.16), transparent 55%),
    linear-gradient(180deg, #f4f8fa 0%, #eef4f7 100%);
  border-bottom: 1px solid rgba(29, 67, 85, 0.08);
  overflow: hidden;
}

.intro {
  width: min(1100px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 7vh, 4.5rem) 0;
  display: grid;
  grid-template-columns: 1.1fr auto;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.intro__content {
  min-width: 0;
}

.intro__title {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 2.5vw, 1.35rem);
  margin: 0 0 0.55rem;
}

.intro__logo {
  width: clamp(3.4rem, 9vw, 5rem);
  height: auto;
  flex-shrink: 0;
  filter: none;
}

.intro__title h1 {
  font-weight: 800;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  letter-spacing: -0.03em;
  color: var(--intro-teal);
  margin: 0;
  line-height: 1.05;
}

.intro__badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 1.15rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--intro-teal);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.intro__about-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2.6vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--intro-teal);
}

.intro__about-title svg {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  color: var(--intro-teal);
}

.intro__lead {
  margin: 0 0 1.35rem;
  max-width: 34rem;
  color: #526774;
  line-height: 1.75;
  font-size: clamp(1.08rem, 2.1vw, 1.18rem);
  font-weight: 500;
}

.c-button {
  color: #000;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  padding: 0.9em 1.6em;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  z-index: 1;
}

.c-button--gooey {
  color: var(--intro-teal);
  letter-spacing: 0.04em;
  border: 4px solid var(--intro-teal);
  border-radius: 0.55rem;
  position: relative;
  transition: all 700ms ease;
}

.c-button--gooey .c-button__blobs {
  height: 100%;
  filter: url(#goo);
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  bottom: -3px;
  right: -1px;
  z-index: -1;
}

.c-button--gooey .c-button__blobs div {
  background-color: var(--intro-teal);
  width: 34%;
  height: 100%;
  border-radius: 100%;
  position: absolute;
  transform: scale(1.4) translateY(125%) translateZ(0);
  transition: all 700ms ease;
}

.c-button--gooey .c-button__blobs div:nth-child(1) {
  left: -5%;
}

.c-button--gooey .c-button__blobs div:nth-child(2) {
  left: 30%;
  transition-delay: 60ms;
}

.c-button--gooey .c-button__blobs div:nth-child(3) {
  left: 66%;
  transition-delay: 25ms;
}

.c-button--gooey:hover {
  color: #fff;
}

.c-button--gooey:hover .c-button__blobs div {
  transform: scale(1.4) translateY(0) translateZ(0);
}

.intro__email {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 1.35rem 0 0;
  font-size: 0.95rem;
  background: transparent;
}

.intro__email-icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.intro__email:focus-visible {
  outline: 2px solid var(--intro-teal);
  outline-offset: 3px;
}

.intro__quote {
  margin: 0;
  padding: 0 0 0 1.15rem;
  border-left: 3px solid var(--intro-teal);
  max-width: 36rem;
}

.intro__quote blockquote {
  margin: 0;
}

.intro__quote blockquote p {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--intro-teal);
}

.intro__quote-author {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #5a7383;
  font-style: normal;
}

.intro__quote-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--intro-teal);
}

.intro__quote-dash {
  margin-right: 0.05rem;
}

/* Coffee machine (intro decoration) */
.intro-coffee {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  justify-self: center;
}

.intro-coffee__ask {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--intro-teal);
  letter-spacing: -0.01em;
  text-align: center;
  line-height: 1.2;
}

.coffee-machine {
  width: 300px;
  height: 280px;
  position: relative;
  flex-shrink: 0;
}

.coffee-header {
  width: 100%;
  height: 80px;
  position: absolute;
  top: 0;
  left: 0;
  background-color: #ddcfcc;
  border-radius: 10px;
}

.coffee-header__buttons {
  width: 25px;
  height: 25px;
  position: absolute;
  top: 25px;
  background-color: #282323;
  border-radius: 50%;
}

.coffee-header__buttons::after {
  content: "";
  width: 8px;
  height: 8px;
  position: absolute;
  bottom: -8px;
  left: calc(50% - 4px);
  background-color: #615e5e;
}

.coffee-header__button-one { left: 15px; }
.coffee-header__button-two { left: 50px; }

.coffee-header__display {
  width: 50px;
  height: 50px;
  position: absolute;
  top: calc(50% - 25px);
  left: calc(50% - 25px);
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--intro-teal) 35%, #ffffff);
  border: 5px solid var(--intro-teal);
  box-sizing: border-box;
}

.coffee-header__details {
  width: 8px;
  height: 20px;
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #9b9091;
  box-shadow: -12px 0 0 #9b9091, -24px 0 0 #9b9091;
}

.coffee-medium {
  width: 90%;
  height: 160px;
  position: absolute;
  top: 80px;
  left: calc(50% - 45%);
  background-color: #bcb0af;
}

.coffee-medium:before {
  content: "";
  width: 90%;
  height: 100px;
  background-color: #776f6e;
  position: absolute;
  bottom: 0;
  left: calc(50% - 45%);
  border-radius: 20px 20px 0 0;
}

.coffe-medium__exit {
  width: 60px;
  height: 20px;
  position: absolute;
  top: 0;
  left: calc(50% - 30px);
  background-color: #231f20;
}

.coffe-medium__exit::before {
  content: "";
  width: 50px;
  height: 20px;
  border-radius: 0 0 50% 50%;
  position: absolute;
  bottom: -20px;
  left: calc(50% - 25px);
  background-color: #231f20;
}

.coffe-medium__exit::after {
  content: "";
  width: 10px;
  height: 10px;
  position: absolute;
  bottom: -30px;
  left: calc(50% - 5px);
  background-color: #231f20;
}

.coffee-medium__arm {
  width: 70px;
  height: 20px;
  position: absolute;
  top: 15px;
  right: 25px;
  background-color: #231f20;
}

.coffee-medium__arm::before {
  content: "";
  width: 15px;
  height: 5px;
  position: absolute;
  top: 7px;
  left: -15px;
  background-color: #9e9495;
}

.coffee-medium__cup {
  width: 80px;
  height: 47px;
  position: absolute;
  bottom: 0;
  left: calc(50% - 40px);
  background-color: #fff;
  border-radius: 0 0 70px 70px / 0 0 110px 110px;
}

.coffee-medium__cup::after {
  content: "";
  width: 20px;
  height: 20px;
  position: absolute;
  top: 6px;
  right: -13px;
  border: 5px solid #fff;
  border-radius: 50%;
}

@keyframes liquid {
  0% { height: 0px; opacity: 1; }
  5% { height: 0px; opacity: 1; }
  20% { height: 62px; opacity: 1; }
  95% { height: 62px; opacity: 1; }
  100% { height: 62px; opacity: 0; }
}

.coffee-medium__liquid {
  width: 6px;
  height: 63px;
  opacity: 0;
  position: absolute;
  top: 50px;
  left: calc(50% - 3px);
  background-color: #74372b;
  animation: liquid 4s 4s linear infinite;
}

.coffee-medium__smoke {
  width: 8px;
  height: 20px;
  position: absolute;
  border-radius: 5px;
  background-color: #b3aeae;
}

@keyframes smokeOne {
  0% { bottom: 20px; opacity: 0; }
  40% { bottom: 50px; opacity: 0.5; }
  80% { bottom: 80px; opacity: 0.3; }
  100% { bottom: 80px; opacity: 0; }
}

@keyframes smokeTwo {
  0% { bottom: 40px; opacity: 0; }
  40% { bottom: 70px; opacity: 0.5; }
  80% { bottom: 80px; opacity: 0.3; }
  100% { bottom: 80px; opacity: 0; }
}

.coffee-medium__smoke-one {
  opacity: 0;
  bottom: 50px;
  left: 102px;
  animation: smokeOne 3s 4s linear infinite;
}

.coffee-medium__smoke-two {
  opacity: 0;
  bottom: 70px;
  left: 118px;
  animation: smokeTwo 3s 5s linear infinite;
}

.coffee-medium__smoke-three {
  opacity: 0;
  bottom: 65px;
  right: 118px;
  animation: smokeTwo 3s 6s linear infinite;
}

.coffee-medium__smoke-for {
  opacity: 0;
  bottom: 50px;
  right: 102px;
  animation: smokeOne 3s 5s linear infinite;
}

.coffee-footer {
  width: 95%;
  height: 15px;
  position: absolute;
  bottom: 25px;
  left: calc(50% - 47.5%);
  background-color: var(--intro-teal);
  border-radius: 10px;
}

.coffee-footer::after {
  content: "";
  width: 106%;
  height: 26px;
  position: absolute;
  bottom: -25px;
  left: -8px;
  background-color: #000;
}

/* ========== SAKURA ========== */
.era-sg {
  background: var(--sg-bg);
  color: var(--sg-text);
  font-family: "M PLUS Rounded 1c", Inter, "Segoe UI", sans-serif;
}

.era-sg .era-heading__label { color: #fff; }
.era-sg .era-heading__title { color: #fff; }

.era-sg .era-text { color: var(--sg-muted); }
.era-sg .era-sep { background: var(--sg-pink); }

.era-sg .era-tag {
  background: #f180ad;
  color: #111;
}

/* Sakura Guild primary button (profile-button--primary) */
.era-cta--sg {
  position: relative;
  z-index: 0;
  overflow: hidden;
  isolation: isolate;
  background: #e91e63;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-shadow: 1px 2px 2px rgba(106, 7, 49, 0.55);
  transition:
    transform 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1),
    text-shadow 0.6s ease;
}

.era-cta--sg::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: 50%;
  width: 14px;
  height: 14px;
  margin: 0;
  border-radius: 50%;
  background: #6a0731;
  transform: translate(-50%, 50%) scale(0);
  transform-origin: center center;
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.era-cta--sg:hover {
  transform: translateY(-2px) scale(1.03);
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.4);
}

.era-cta--sg:hover::after {
  transform: translate(-50%, 50%) scale(55);
}

/* ========== WEBTRIO ========== */
.era-wt .era-heading__label { color: rgba(255, 255, 255, 0.78); }
.era-wt .era-heading__title { color: #fff; }

.era-wt {
  background: var(--wt-blue);
  color: #fff;
  overflow: hidden;
}

.wt-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(color-mix(in srgb, #fff 14%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, #fff 14%, transparent) 1px, transparent 1px);
  background-size: 2.15rem 2.15rem;
  mask-image: radial-gradient(120% 80% at 70% 40%, #000 35%, transparent 82%);
  -webkit-mask-image: radial-gradient(120% 80% at 70% 40%, #000 35%, transparent 82%);
}

.era-tags--wt .era-tag {
  background: #fff;
  color: var(--wt-blue);
}

.era-wt .era-text {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

.era-wt .era-sep { background: #fff; opacity: 0.95; }

/* WebTrio talk-btn (ajánlatkérés) */
.talk-btn {
  --talk-blue: var(--wt-blue);
  --talk-blue-soft: color-mix(in srgb, var(--wt-blue) 42%, #ffffff);
  --talk-ink: var(--wt-ink);
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.55rem;
  text-decoration: none;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", "Segoe UI", sans-serif;
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--talk-blue);
  transition:
    box-shadow 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 6px 6px 0 var(--talk-ink);
  transform: skewX(-15deg);
  border: none;
  border-radius: 0.55rem;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  width: max-content;
}

.talk-btn:hover,
.talk-btn:focus-visible {
  box-shadow: 10px 10px 0 var(--talk-blue-soft);
}

.talk-btn__label {
  transform: skewX(15deg);
  line-height: 1.2;
  white-space: nowrap;
}

.talk-btn__second {
  width: 20px;
  margin-left: 1.1rem;
  position: relative;
  top: 0.1em;
  display: inline-flex;
  align-items: center;
  transition: margin-right 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transform: skewX(15deg);
}

.talk-btn:hover .talk-btn__second,
.talk-btn:focus-visible .talk-btn__second {
  margin-right: 2.4rem;
}

.talk-btn__second svg {
  display: block;
  width: 2.85rem;
  height: 1.15rem;
  overflow: visible;
}

.talk-btn__arrow--one {
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  transform: translateX(-60%);
}

.talk-btn__arrow--two {
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transform: translateX(-30%);
}

.talk-btn:hover .talk-btn__arrow--three,
.talk-btn:focus-visible .talk-btn__arrow--three {
  animation: talk-btn-color 1s infinite 0.2s;
}

.talk-btn:hover .talk-btn__arrow--one,
.talk-btn:focus-visible .talk-btn__arrow--one {
  transform: translateX(0%);
  animation: talk-btn-color 1s infinite 0.6s;
}

.talk-btn:hover .talk-btn__arrow--two,
.talk-btn:focus-visible .talk-btn__arrow--two {
  transform: translateX(0%);
  animation: talk-btn-color 1s infinite 0.4s;
}

@keyframes talk-btn-color {
  0%, 100% { fill: #ffffff; }
  50% { fill: var(--talk-blue-soft); }
}

.talk-btn--light {
  background: #fff;
  color: var(--talk-blue);
}

.talk-btn--light .talk-btn__arrow--one,
.talk-btn--light .talk-btn__arrow--two,
.talk-btn--light .talk-btn__arrow--three {
  fill: var(--talk-blue);
}

.talk-btn--light:hover,
.talk-btn--light:focus-visible {
  box-shadow: 10px 10px 0 var(--talk-ink);
}

@keyframes talk-btn-color-on-blue {
  0%, 100% { fill: var(--talk-blue); }
  50% { fill: var(--talk-blue-soft); }
}

.talk-btn--light:hover .talk-btn__arrow--one,
.talk-btn--light:hover .talk-btn__arrow--two,
.talk-btn--light:hover .talk-btn__arrow--three,
.talk-btn--light:focus-visible .talk-btn__arrow--one,
.talk-btn--light:focus-visible .talk-btn__arrow--two,
.talk-btn--light:focus-visible .talk-btn__arrow--three {
  animation-name: talk-btn-color-on-blue;
}

/* ========== HOBBIK ========== */
.panel--hobby {
  --scroll: 0;
  --delay: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.panel--hobby-light {
  background: #fff;
}

.panel--hobby-dark {
  background: var(--intro-teal);
}

.panel--hobby-light ::selection {
  background: var(--intro-teal);
  color: #fff;
}

.panel--hobby-dark ::selection {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.hobby-stack {
  background: #fff;
}

.hobby-stack__header {
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(2.75rem, 7vh, 4rem) 0 clamp(1.25rem, 3vh, 2rem);
  text-align: center;
}

.hobby-stack__title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.85rem, 5.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--intro-teal);
}

.hobby-stack__lead {
  margin: 0;
  color: #526774;
  font-size: clamp(1.05rem, 2vw, 1.15rem);
  font-weight: 500;
  line-height: 1.65;
}

.hobby-stage {
  position: relative;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: clamp(2.25rem, 6vh, 3.5rem) 0;
}

.hobby-stage__shell {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.hobby-stage__shell--simple .hobby-stage__copy {
  max-width: 36rem;
}

.hobby-stage__shell--anime,
.hobby-stage__shell--listed {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.hobby-stage__title {
  margin: 0 0 0.75rem;
  font-size: clamp(2.1rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--intro-teal);
}

.hobby-stage__text {
  margin: 0;
  max-width: 36rem;
  color: #526774;
  font-size: clamp(1rem, 2vw, 1.12rem);
  font-weight: 500;
  line-height: 1.65;
}

.anime-top {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
}

.anime-top__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  aspect-ratio: 758 / 140;
  min-height: 0;
  padding: 0.55rem 0.9rem;
  border-radius: 0.7rem;
  overflow: hidden;
  isolation: isolate;
  background: #121820;
  border: none;
  box-shadow: 0 8px 20px rgba(29, 67, 85, 0.1);
  transform-origin: center center;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.anime-top__item:hover {
  z-index: 2;
  transform: scale(1.04);
  box-shadow: 0 14px 28px rgba(29, 67, 85, 0.14);
}

.anime-top__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.anime-top__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(8, 16, 28, 0.72) 0%, rgba(8, 16, 28, 0.28) 42%, rgba(8, 16, 28, 0.08) 100%);
  pointer-events: none;
}

.anime-top__rank,
.anime-top__logo,
.anime-top__name {
  position: relative;
  z-index: 2;
}

.anime-top__rank {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--intro-teal);
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.anime-top__item:nth-child(1) .anime-top__rank {
  background: #d4a017;
  color: #fff;
}

.anime-top__item:nth-child(2) .anime-top__rank {
  background: #a8b0b8;
  color: #fff;
}

.anime-top__item:nth-child(3) .anime-top__rank {
  background: #cd7f32;
  color: #fff;
}

.anime-top__logo {
  flex-shrink: 0;
  width: auto;
  height: 3rem;
  max-width: min(52%, 14rem);
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.anime-top__name {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  text-align: left;
}

.anime-top--games .anime-top__name {
  margin: 0;
  font-size: clamp(0.95rem, 2.4vw, 1.15rem);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.anime-top--games .anime-top__bg {
  object-fit: cover;
  object-position: center;
}

@media (max-width: 560px) {
  .anime-top__item {
    gap: 0.45rem;
    padding: 0.4rem 0.65rem;
  }

  .anime-top__rank {
    width: 1.65rem;
    height: 1.65rem;
    font-size: 0.75rem;
  }

  .anime-top__logo {
    height: 1.85rem;
    max-width: min(48%, 9rem);
  }

  .anime-top__name {
    font-size: 0.72rem;
  }

  .book-list__cover {
    width: auto;
    aspect-ratio: 2 / 3;
  }

  .book-list__title {
    font-size: 0.88rem;
  }

  .book-list__author {
    font-size: 0.8rem;
    gap: 0.4rem;
  }

  .book-list__avatar {
    width: 1.75rem;
    height: 1.75rem;
  }

  .book-list__more {
    font-size: 0.85rem;
  }
}

.book-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
}

.book-list__item {
  display: flex;
  align-items: stretch;
  gap: 1.15rem;
  width: 100%;
  aspect-ratio: 758 / 140;
  min-height: 0;
  padding: 0 1.15rem 0 0;
  border-radius: 0.7rem;
  overflow: hidden;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  box-shadow: 0 8px 20px rgba(29, 67, 85, 0.1);
  transform-origin: center center;
  transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.book-list__item:hover {
  z-index: 2;
  transform: scale(1.04);
  box-shadow: 0 14px 28px rgba(29, 67, 85, 0.14);
  background: rgba(255, 255, 255, 0.16);
}

.book-list__cover {
  flex-shrink: 0;
  width: auto;
  height: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  background: #d7e0e6;
}

.book-list__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  min-width: 0;
  padding: 0.55rem 0;
}

.book-list__title {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
}

.book-list__author {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.78);
}

.book-list__avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
}

.book-list__author-name {
  min-width: 0;
}

.book-list__more {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.98rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.82);
}

.hobby-picks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
}

.hobby-picks__item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: rgba(29, 67, 85, 0.06);
  transition: transform 0.25s ease, background 0.25s ease;
  transform-origin: center center;
}

.hobby-picks__item:hover {
  transform: scale(1.025);
  background: rgba(29, 67, 85, 0.1);
}

.hobby-picks__rank {
  flex-shrink: 0;
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--intro-teal);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
}

.hobby-picks__item:nth-child(1) .hobby-picks__rank {
  background: #d4a017;
}

.hobby-picks__item:nth-child(2) .hobby-picks__rank {
  background: #a8b0b8;
}

.hobby-picks__item:nth-child(3) .hobby-picks__rank {
  background: #cd7f32;
}

.hobby-picks__body {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.hobby-picks__name {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--intro-teal);
}

.hobby-picks__meta {
  font-size: 0.82rem;
  font-weight: 500;
  color: #5f7380;
}

.panel--hobby-dark .hobby-stage__title {
  color: #fff;
}

.panel--hobby-dark .hobby-stage__text {
  color: rgba(255, 255, 255, 0.88);
}

.panel--hobby-dark .hobby-picks__item {
  background: rgba(255, 255, 255, 0.1);
}

.panel--hobby-dark .hobby-picks__item:hover {
  background: rgba(255, 255, 255, 0.16);
}

.panel--hobby-dark .hobby-picks__item:nth-child(n+4) .hobby-picks__rank {
  background: rgba(255, 255, 255, 0.92);
  color: var(--intro-teal);
}

.panel--hobby-dark .hobby-picks__name {
  color: #fff;
}

.panel--hobby-dark .hobby-picks__meta {
  color: rgba(255, 255, 255, 0.72);
}

@keyframes hobby-slide-in {
  to {
    opacity: 1;
    transform: translate(0, 0);
  }
}

[data-hobby-reveal] {
  --delay: 0;
  opacity: 0;
  animation-name: hobby-slide-in;
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-play-state: paused;
  animation-delay: calc((var(--scroll) - var(--delay)) * -1s);
  animation-iteration-count: 1;
  animation-fill-mode: both;
  will-change: opacity, transform;
}

[data-hobby-reveal="left"] {
  transform: translateX(-40%);
}

[data-hobby-reveal="right"] {
  transform: translateX(40%);
}

/* ========== OFFLINEMEET ========== */
.era-om {
  background: var(--om-bg);
  color: #fff;
}

.era-om .era-heading__label { color: rgba(255, 255, 255, 0.72); }
.era-om .era-heading__title { color: #fff; }

.era-tags--om .era-tag {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.era-om .era-text { color: rgba(255, 255, 255, 0.78); }
.era-om .era-sep { background: var(--om-accent); }

.era-cta--om {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  pointer-events: none;
  cursor: default;
}

/* Footer */
.site-footer {
  background: var(--intro-teal);
  color: rgba(255, 255, 255, 0.72);
  border-top: none;
}

.site-footer__inner {
  width: min(1100px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 2.25rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  pointer-events: none;
  user-select: none;
}

.site-footer__logo img {
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
}

/* Legal pages */
.page-legal {
  background: #f7fafb;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.legal {
  width: min(720px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 6vh, 4rem) 0 3rem;
  flex: 1;
}

.legal h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--intro-teal);
  margin-bottom: 0.5rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.legal h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1rem;
  color: var(--intro-teal);
  letter-spacing: 0.04em;
}

.legal__lead {
  margin: 0 0 1.75rem;
  color: #64748b;
  font-weight: 500;
}

.legal p {
  color: #334155;
  line-height: 1.7;
  font-size: 0.95rem;
  font-weight: 500;
}

.legal a {
  color: var(--intro-teal);
}

.legal__list {
  margin: 0 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.legal__list dt {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
}

.legal__list dd {
  margin: 0;
  font-weight: 600;
  color: #1e293b;
}

.legal__back {
  display: inline-flex;
  margin-top: 2rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--intro-teal);
}

.legal__back:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 900px) {
  :root {
    --header-h: 3.75rem;
  }

  .site-brand {
    font-size: 1rem;
    gap: 0.55rem;
  }

  .site-brand img {
    width: 2.1rem;
    height: 2.1rem;
  }

  .intro {
    grid-template-columns: 1fr;
  }

  .intro__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .intro__title {
    justify-content: center;
  }

  .intro__badge {
    font-size: 0.78rem;
    padding: 0.3rem 0.75rem;
  }

  .intro__about-title {
    justify-content: center;
  }

  .intro__lead {
    text-align: left;
    width: 100%;
  }

  .intro__quote {
    text-align: left;
    width: 100%;
  }

  .intro__quote-avatar {
    width: 1.85rem;
    height: 1.85rem;
  }

  .intro__quote-author {
    font-size: 0.85rem;
    justify-content: flex-start;
  }

  .intro__email {
    font-size: 0.88rem;
    align-self: center;
  }

  .intro-coffee {
    margin-inline: auto;
    margin-top: 0.5rem;
  }

  .coffee-machine {
    transform: scale(0.78);
    transform-origin: center top;
  }

  .era-shell {
    width: min(920px, calc(100% - 1.5rem));
    padding: clamp(1.35rem, 4vh, 2.5rem) 0;
  }

  .era-heading {
    margin-bottom: clamp(1rem, 2.5vh, 1.6rem);
  }

  .era-heading__label {
    margin-bottom: 0.4rem;
  }

  .era-text {
    font-size: clamp(0.95rem, 3.4vw, 1.12rem);
    line-height: 1.65;
    text-align: left;
  }

  .member-tags {
    gap: 0.35rem;
    margin-bottom: 0.9rem;
  }

  .member-tag {
    font-size: 0.7rem;
    padding: 0.28rem 0.7rem;
  }

  .era-tags {
    gap: 0.35rem;
  }

  .era-tag {
    font-size: 0.7rem;
  }

  .era-cta--sg,
  .era-cta--om {
    font-size: 0.85rem;
    padding: 0.45rem 0.95rem;
  }

  .hobby-stack__header {
    width: min(920px, calc(100% - 1.5rem));
    padding: clamp(2rem, 5vh, 3rem) 0 clamp(1rem, 2.5vh, 1.5rem);
  }

  .hobby-stack__lead {
    font-size: clamp(0.95rem, 3.2vw, 1.08rem);
  }

  .hobby-stage {
    padding: clamp(1.5rem, 4.5vh, 2.75rem) 0;
  }

  .hobby-stage__shell {
    width: min(920px, calc(100% - 1.5rem));
  }

  .hobby-stage__title {
    font-size: clamp(1.55rem, 6vw, 2.4rem);
    margin-bottom: 0.55rem;
  }

  .hobby-stage__text {
    font-size: clamp(0.92rem, 3.3vw, 1.05rem);
  }

  .hobby-picks__item {
    padding: 0.65rem 0.85rem;
    gap: 0.7rem;
  }

  .hobby-picks__rank {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.8rem;
  }

  .hobby-picks__name {
    font-size: 0.92rem;
  }

  .hobby-picks__meta {
    font-size: 0.75rem;
  }

  /* Vertical stack on mobile — no horizontal scrub */
  .era-rail {
    height: auto;
  }

  .era-rail__pin {
    position: static;
    height: auto;
    overflow: visible;
  }

  .era-rail__track {
    display: block;
    width: 100%;
    transform: none !important;
  }

  .era-slide {
    flex: none;
    width: 100%;
    min-height: 0;
    padding-bottom: 1.5rem;
  }

  .panel {
    min-height: 0;
  }

  .panel--intro {
    min-height: calc(100svh - var(--header-h));
  }
}

@media (max-width: 420px) {
  .era-heading__title {
    font-size: clamp(1.65rem, 8.5vw, 2.2rem);
  }

  .intro__title h1 {
    font-size: clamp(1.85rem, 9vw, 2.4rem);
  }

  .intro__logo {
    width: clamp(2.8rem, 12vw, 3.4rem);
  }

  .coffee-machine {
    transform: scale(0.68);
  }

  .anime-top:not(.anime-top--games) .anime-top__name {
    display: none;
  }

  .anime-top--games .anime-top__name {
    font-size: 0.82rem;
  }

  .book-list__item {
    gap: 0.75rem;
    padding-right: 0.75rem;
  }

  .book-list__title {
    font-size: 0.8rem;
  }

  .book-list__author {
    font-size: 0.72rem;
  }

  .book-list__avatar {
    width: 1.5rem;
    height: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-parallax-layer] {
    transform: none !important;
  }

  [data-hobby-reveal] {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .coffee-medium__liquid,
  .coffee-medium__smoke-one,
  .coffee-medium__smoke-two,
  .coffee-medium__smoke-three,
  .coffee-medium__smoke-for {
    animation: none;
  }

  .c-button--gooey,
  .c-button--gooey .c-button__blobs div {
    transition: none;
  }

  .c-button--gooey:hover {
    background: var(--intro-teal);
    color: #fff;
  }

  .c-button--gooey .c-button__blobs {
    display: none;
  }

  .era-rail {
    height: auto;
  }

  .era-rail__pin {
    position: static;
    height: auto;
    overflow: visible;
  }

  .era-rail__track {
    display: block;
    width: 100%;
    transform: none !important;
  }

  .era-slide {
    flex: none;
    width: 100%;
    min-height: calc(100svh - var(--header-h));
  }

  .member-tag:hover,
  .era-tag:hover,
  .era-cta--sg:hover {
    transform: none;
  }

  .talk-btn,
  .talk-btn__second,
  .talk-btn__arrow--one,
  .talk-btn__arrow--two {
    transition: none;
  }

  .talk-btn:hover .talk-btn__arrow--one,
  .talk-btn:hover .talk-btn__arrow--two,
  .talk-btn:hover .talk-btn__arrow--three,
  .talk-btn:focus-visible .talk-btn__arrow--one,
  .talk-btn:focus-visible .talk-btn__arrow--two,
  .talk-btn:focus-visible .talk-btn__arrow--three {
    animation: none;
  }

  .hamster,
  .hamster__head,
  .hamster__ear,
  .hamster__eye,
  .hamster__body,
  .hamster__limb--fr,
  .hamster__limb--fl,
  .hamster__limb--br,
  .hamster__limb--bl,
  .hamster__tail,
  .spoke {
    animation: none !important;
  }
}

/* ========== PAGE LOADER ========== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #f4f8fa;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.wheel-and-hamster {
  --dur: 1s;
  position: relative;
  width: 12em;
  height: 12em;
  font-size: 14px;
}

.wheel,
.hamster,
.hamster div,
.spoke {
  position: absolute;
}

.wheel,
.spoke {
  border-radius: 50%;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.wheel {
  background: radial-gradient(100% 100% at center, hsla(0, 0%, 60%, 0) 47.8%, hsl(0, 0%, 60%) 48%);
  z-index: 2;
}

.hamster {
  animation: hamster var(--dur) ease-in-out infinite;
  top: 50%;
  left: calc(50% - 3.5em);
  width: 7em;
  height: 3.75em;
  transform: rotate(4deg) translate(-0.8em, 1.85em);
  transform-origin: 50% 0;
  z-index: 1;
}

.hamster__head {
  animation: hamsterHead var(--dur) ease-in-out infinite;
  background: hsl(30, 90%, 55%);
  border-radius: 70% 30% 0 100% / 40% 25% 25% 60%;
  box-shadow:
    0 -0.25em 0 hsl(30, 90%, 80%) inset,
    0.75em -1.55em 0 hsl(30, 90%, 90%) inset;
  top: 0;
  left: -2em;
  width: 2.75em;
  height: 2.5em;
  transform-origin: 100% 50%;
}

.hamster__ear {
  animation: hamsterEar var(--dur) ease-in-out infinite;
  background: hsl(0, 90%, 85%);
  border-radius: 50%;
  box-shadow: -0.25em 0 hsl(30, 90%, 55%) inset;
  top: -0.25em;
  right: -0.25em;
  width: 0.75em;
  height: 0.75em;
  transform-origin: 50% 75%;
}

.hamster__eye {
  animation: hamsterEye var(--dur) linear infinite;
  background-color: hsl(0, 0%, 0%);
  border-radius: 50%;
  top: 0.375em;
  left: 1.25em;
  width: 0.5em;
  height: 0.5em;
}

.hamster__nose {
  background: hsl(0, 90%, 75%);
  border-radius: 35% 65% 85% 15% / 70% 50% 50% 30%;
  top: 0.75em;
  left: 0;
  width: 0.2em;
  height: 0.25em;
}

.hamster__body {
  animation: hamsterBody var(--dur) ease-in-out infinite;
  background: hsl(30, 90%, 90%);
  border-radius: 50% 30% 50% 30% / 15% 60% 40% 40%;
  box-shadow:
    0.1em 0.75em 0 hsl(30, 90%, 55%) inset,
    0.15em -0.5em 0 hsl(30, 90%, 80%) inset;
  top: 0.25em;
  left: 2em;
  width: 4.5em;
  height: 3em;
  transform-origin: 17% 50%;
  transform-style: preserve-3d;
}

.hamster__limb--fr,
.hamster__limb--fl {
  clip-path: polygon(0 0, 100% 0, 70% 80%, 60% 100%, 0% 100%, 40% 80%);
  top: 2em;
  left: 0.5em;
  width: 1em;
  height: 1.5em;
  transform-origin: 50% 0;
}

.hamster__limb--fr {
  animation: hamsterFRLimb var(--dur) linear infinite;
  background: linear-gradient(hsl(30, 90%, 80%) 80%, hsl(0, 90%, 75%) 80%);
  transform: rotate(15deg) translateZ(-1px);
}

.hamster__limb--fl {
  animation: hamsterFLLimb var(--dur) linear infinite;
  background: linear-gradient(hsl(30, 90%, 90%) 80%, hsl(0, 90%, 85%) 80%);
  transform: rotate(15deg);
}

.hamster__limb--br,
.hamster__limb--bl {
  border-radius: 0.75em 0.75em 0 0;
  clip-path: polygon(0 0, 100% 0, 100% 30%, 70% 90%, 70% 100%, 30% 100%, 40% 90%, 0% 30%);
  top: 1em;
  left: 2.8em;
  width: 1.5em;
  height: 2.5em;
  transform-origin: 50% 30%;
}

.hamster__limb--br {
  animation: hamsterBRLimb var(--dur) linear infinite;
  background: linear-gradient(hsl(30, 90%, 80%) 90%, hsl(0, 90%, 75%) 90%);
  transform: rotate(-25deg) translateZ(-1px);
}

.hamster__limb--bl {
  animation: hamsterBLLimb var(--dur) linear infinite;
  background: linear-gradient(hsl(30, 90%, 90%) 90%, hsl(0, 90%, 85%) 90%);
  transform: rotate(-25deg);
}

.hamster__tail {
  animation: hamsterTail var(--dur) linear infinite;
  background: hsl(0, 90%, 85%);
  border-radius: 0.25em 50% 50% 0.25em;
  box-shadow: 0 -0.2em 0 hsl(0, 90%, 75%) inset;
  top: 1.5em;
  right: -0.5em;
  width: 1em;
  height: 0.5em;
  transform: rotate(30deg) translateZ(-1px);
  transform-origin: 0.25em 0.25em;
}

.spoke {
  animation: spoke var(--dur) linear infinite;
  background:
    radial-gradient(100% 100% at center, hsl(0, 0%, 60%) 4.8%, hsla(0, 0%, 60%, 0) 5%),
    linear-gradient(hsla(0, 0%, 55%, 0) 46.9%, hsl(0, 0%, 65%) 47% 52.9%, hsla(0, 0%, 65%, 0) 53%) 50% 50% / 99% 99% no-repeat;
}

@keyframes hamster {
  from, to { transform: rotate(4deg) translate(-0.8em, 1.85em); }
  50% { transform: rotate(0) translate(-0.8em, 1.85em); }
}

@keyframes hamsterHead {
  from, 25%, 50%, 75%, to { transform: rotate(0); }
  12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(8deg); }
}

@keyframes hamsterEye {
  from, 90%, to { transform: scaleY(1); }
  95% { transform: scaleY(0); }
}

@keyframes hamsterEar {
  from, 25%, 50%, 75%, to { transform: rotate(0); }
  12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(12deg); }
}

@keyframes hamsterBody {
  from, 25%, 50%, 75%, to { transform: rotate(0); }
  12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(-2deg); }
}

@keyframes hamsterFRLimb {
  from, 25%, 50%, 75%, to { transform: rotate(50deg) translateZ(-1px); }
  12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(-30deg) translateZ(-1px); }
}

@keyframes hamsterFLLimb {
  from, 25%, 50%, 75%, to { transform: rotate(-30deg); }
  12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(50deg); }
}

@keyframes hamsterBRLimb {
  from, 25%, 50%, 75%, to { transform: rotate(-60deg) translateZ(-1px); }
  12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(20deg) translateZ(-1px); }
}

@keyframes hamsterBLLimb {
  from, 25%, 50%, 75%, to { transform: rotate(20deg); }
  12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(-60deg); }
}

@keyframes hamsterTail {
  from, 25%, 50%, 75%, to { transform: rotate(30deg) translateZ(-1px); }
  12.5%, 37.5%, 62.5%, 87.5% { transform: rotate(10deg) translateZ(-1px); }
}

@keyframes spoke {
  from { transform: rotate(0); }
  to { transform: rotate(-1turn); }
}
