@charset "UTF-8";

.home-wireframe-page {
  min-width: 320px;
  overflow: hidden;
  color: #3a352f;
  background: #2a2620;
  font-family: system-ui, sans-serif;
}

.home-wireframe-screen {
  position: relative;
  display: flex;
  width: 100vw;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  flex-direction: column;
  background-image: url("../images/pc-bg-retro-toys.png");
  background-image: image-set(
    url("../images/pc-bg-retro-toys.webp") type("image/webp"),
    url("../images/pc-bg-retro-toys.png") type("image/png")
  );
  background-position: center;
  background-size: cover;
}

.home-wireframe-page .home-header {
  position: relative;
  inset: auto;
  z-index: 50;
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  padding: 20px 28px;
  pointer-events: none;
}

.home-wireframe-page .menu-toggle--home {
  display: inline-flex;
  width: 128px;
  height: 36px;
  min-height: 36px;
  justify-content: center;
  gap: 8px;
  padding: 0;
  color: #3a352f;
  background: rgba(253, 252, 249, 0.82);
  border: 2px solid #3a352f;
  border-radius: 999px;
  box-shadow: none;
  font-size: 14px;
}

.home-wireframe-page .home-nav {
  top: 68px;
  right: 28px;
}

.home-wireframe-desktop {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

.logo-track-wrap {
  position: relative;
  min-height: 0;
  flex: 1;
  overflow: visible;
  margin-top: 10px;
}

.logo-track-wrap:hover .logo-track {
  animation-play-state: paused;
}

.logo-track {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  width: 4020px;
  height: 100%;
  align-items: center;
  animation: home-logo-slide 20s linear infinite;
}

.logo-slot {
  display: flex;
  flex: 0 0 670px;
  align-items: center;
  justify-content: center;
}

.logo-card {
  display: block;
  width: min(530px, 36.8056vw, 63svh);
  cursor: pointer;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  border-radius: 20px;
  box-shadow: 0 21px 39px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.logo-card--tensei {
  aspect-ratio: 636 / 424;
  background-image: url("../images/logo-tensei.png");
}

.logo-card--shumai {
  aspect-ratio: 1536 / 1024;
  background-image: url("../images/logo-shumai.png");
  background-image: image-set(
    url("../images/logo-shumai.webp") type("image/webp"),
    url("../images/logo-shumai.png") type("image/png")
  );
}

.logo-card--tiger {
  aspect-ratio: 1535 / 1024;
  background-image: url("../images/logo-tiger.png");
  background-image: image-set(
    url("../images/logo-tiger.webp") type("image/webp"),
    url("../images/logo-tiger.png") type("image/png")
  );
}

.logo-card:hover {
  box-shadow: 0 53px 71px rgba(0, 0, 0, 0.34);
  transform: translateY(-25px) scale(1.08);
}

.logo-card--rotate-left:hover {
  transform: translateY(-25px) scale(1.08) rotate(-2deg);
}

.logo-card--rotate-right:hover {
  transform: translateY(-25px) scale(1.08) rotate(2deg);
}

.logo-track-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  pointer-events: none;
}

.logo-track-fade--left {
  left: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0));
}

.logo-track-fade--right {
  right: 0;
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0));
}

.home-news {
  flex: 0 0 auto;
  padding: 18px 36px 24px;
}

.retro-radio {
  position: relative;
  display: grid;
  width: min(100%, 1100px);
  height: 232px;
  grid-template-columns: minmax(220px, 29%) minmax(0, 1fr);
  gap: 16px;
  padding: 14px;
  margin: 0 auto;
  overflow: hidden;
  color: #f3dfb4;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.06), transparent 26%, rgba(0,0,0,0.12)),
    repeating-linear-gradient(7deg, #6f3427 0 8px, #7e3c2d 8px 12px, #613024 12px 19px);
  border: 5px solid #382018;
  border-radius: 24px;
  box-shadow:
    0 16px 28px rgba(12, 8, 5, 0.56),
    inset 0 0 0 2px #b87848,
    inset 0 0 24px rgba(22, 11, 7, 0.55);
}

.retro-radio::before {
  position: absolute;
  top: 7px;
  right: 18px;
  left: 18px;
  height: 2px;
  background: rgba(255, 222, 164, 0.24);
  content: "";
}

.retro-radio__speaker {
  display: flex;
  min-width: 0;
  min-height: 0;
  align-items: center;
  flex-direction: column;
  padding: 10px 12px 8px;
  background: rgba(40, 24, 18, 0.84);
  border: 2px solid #bd7e4e;
  border-radius: 15px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.62);
}

.retro-radio__brand,
.retro-radio__frequency {
  flex: 0 0 auto;
  color: #e9c77d;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1;
}

.retro-radio__frequency {
  color: #b99363;
  font-size: 8px;
  letter-spacing: 0.13em;
}

.retro-radio__grille {
  width: 100%;
  min-height: 0;
  flex: 1;
  margin: 9px 0 8px;
  background:
    radial-gradient(circle, #b88758 0 2px, transparent 2.5px) 0 0 / 13px 13px,
    linear-gradient(145deg, #241711, #4a2d21);
  border: 4px solid #241711;
  border-radius: 50%;
  box-shadow: inset 0 0 22px #090605;
}

.retro-radio__console {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  gap: 8px;
}

.retro-radio__tuner {
  display: flex;
  height: 35px;
  flex: 0 0 35px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 14px;
  color: #3a3021;
  background: #e4d6a6;
  border: 3px solid #2a1b14;
  border-radius: 5px;
  box-shadow: inset 0 0 12px rgba(89, 65, 35, 0.36);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.retro-radio__tuner i {
  width: 2px;
  height: 13px;
  background: #66583e;
  opacity: 0.75;
}

.retro-radio__tuner i:nth-of-type(even) {
  height: 8px;
}

.retro-radio__tuner strong {
  color: #8d4333;
  font-size: 12px;
}

.retro-radio__display {
  position: relative;
  display: flex;
  min-height: 0;
  flex: 1;
  align-items: center;
  overflow: hidden;
  color: #24291c;
  background:
    linear-gradient(rgba(255,255,255,0.16), rgba(255,255,255,0)),
    #b7ba82;
  border: 5px solid #2a1b14;
  border-radius: 8px;
  box-shadow:
    inset 0 0 22px rgba(38, 48, 27, 0.52),
    0 0 12px rgba(211, 219, 143, 0.18);
}

.retro-radio__display::after {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(37, 45, 28, 0.07) 3px 4px);
  content: "";
  pointer-events: none;
}

.retro-radio__news {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 12px 20px;
  animation: radio-news-in 320ms ease both;
  color: inherit;
  text-decoration: none;
}

a.retro-radio__news:focus-visible {
  outline: 2px solid #dfbd6a;
  outline-offset: -3px;
}

.retro-radio__news[hidden] {
  display: none;
}

.retro-radio__news time,
.retro-radio__news span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.retro-radio__news strong {
  overflow: hidden;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.retro-radio__news span {
  padding: 5px 8px;
  color: #d7dc9c;
  background: #3d472d;
  border-radius: 3px;
}

.retro-radio__controls {
  display: flex;
  height: 43px;
  flex: 0 0 43px;
  align-items: center;
  gap: 14px;
}

.retro-radio__on-air {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #f0cc82;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.retro-radio__on-air i {
  width: 10px;
  height: 10px;
  background: #dc493f;
  border: 2px solid #421b16;
  border-radius: 50%;
  box-shadow: 0 0 7px rgba(255, 76, 63, 0.76);
  animation: radio-on-air 1.8s ease-in-out infinite;
}

.retro-radio__presets {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 12px;
}

.retro-radio__presets button {
  display: grid;
  width: 34px;
  height: 30px;
  padding: 0;
  place-items: center;
  color: #e9c77d;
  background: #332019;
  border: 2px solid #b47646;
  border-radius: 5px;
  box-shadow: 0 3px 0 #170e0b;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
}

.retro-radio__presets button[aria-pressed="true"] {
  color: #36231a;
  background: #e5c477;
  box-shadow: inset 0 2px 3px rgba(65, 37, 20, 0.38);
  transform: translateY(2px);
}

.retro-radio__knob {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  background:
    linear-gradient(90deg, transparent 47%, #c08b51 47% 53%, transparent 53%),
    repeating-conic-gradient(#3a241b 0 8deg, #8b5938 8deg 15deg);
  border: 4px solid #251711;
  border-radius: 50%;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.45);
}

@keyframes radio-news-in {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes radio-on-air {
  0%, 100% { opacity: 0.58; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .retro-radio__news,
  .retro-radio__on-air i {
    animation: none;
  }
}

.home-wireframe-mobile {
  display: none;
}

@keyframes home-logo-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-2010px);
  }
}

@keyframes home-logo-sway-one {
  0%, 100% {
    transform: translateX(-10px) rotate(-1.2deg);
  }
  50% {
    transform: translateX(8px) rotate(1deg);
  }
}

@keyframes home-logo-sway-two {
  0%, 100% {
    transform: translateX(11px) rotate(1.3deg);
  }
  50% {
    transform: translateX(-7px) rotate(-0.9deg);
  }
}

@keyframes home-logo-sway-three {
  0%, 100% {
    transform: translateX(-8px) rotate(-0.9deg);
  }
  50% {
    transform: translateX(10px) rotate(1.2deg);
  }
}

@media (max-width: 767px), (orientation: portrait) and (max-width: 1100px) {
  .home-wireframe-root {
    min-height: 100%;
    min-height: 100lvh;
    background-color: #2a2620;
    background-image: url("../images/pc-bg-retro-toys.png");
    background-image: image-set(
      url("../images/pc-bg-retro-toys.webp") type("image/webp"),
      url("../images/pc-bg-retro-toys.png") type("image/png")
    );
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }

  .home-wireframe-page {
    position: relative;
    min-height: 100vh;
    min-height: 100lvh;
    isolation: isolate;
    background-color: #2a2620;
    background-image: url("../images/pc-bg-retro-toys.png");
    background-image: image-set(
      url("../images/pc-bg-retro-toys.webp") type("image/webp"),
      url("../images/pc-bg-retro-toys.png") type("image/png")
    );
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
  }

  .home-wireframe-screen {
    min-height: 0;
    background-image: none;
  }

  .home-wireframe-page .home-header {
    padding: 20px;
  }

  .home-wireframe-page .menu-toggle--home {
    width: 56px;
    font-size: 18px;
  }

  .home-wireframe-page .menu-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .home-wireframe-page .home-nav {
    top: 66px;
    right: 20px;
  }

  .home-wireframe-desktop {
    display: none;
  }

  .home-wireframe-mobile {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    padding: 0 20px 20px;
  }

  .mobile-logo-list {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    justify-content: flex-end;
    gap: clamp(10px, 2.5svh, 28px);
  }

  .mobile-logo-card {
    display: block;
    width: min(66.7%, calc((100svh - 360px) / 2));
    margin: 0 auto;
    cursor: pointer;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    border-radius: 20px;
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s, box-shadow 0.25s;
  }

  .mobile-logo-card:active {
    box-shadow: 0 42px 56px rgba(0, 0, 0, 0.36);
    transform: translateY(-16px) scale(1.08);
  }

  .mobile-logo-card--tensei {
    aspect-ratio: 636 / 424;
    background-image: url("../images/logo-tensei.png");
    animation: home-logo-sway-one 5.4s ease-in-out 0.1s infinite;
  }

  .mobile-logo-card--shumai {
    aspect-ratio: 1536 / 1024;
    background-image: url("../images/logo-shumai.png");
    background-image: image-set(
      url("../images/logo-shumai.webp") type("image/webp"),
      url("../images/logo-shumai.png") type("image/png")
    );
    animation: home-logo-sway-two 6.1s ease-in-out 0.35s infinite;
  }

  .mobile-logo-card--tiger {
    aspect-ratio: 1535 / 1024;
    background-image: url("../images/logo-tiger.png");
    background-image: image-set(
      url("../images/logo-tiger.webp") type("image/webp"),
      url("../images/logo-tiger.png") type("image/png")
    );
    animation: home-logo-sway-three 4.8s ease-in-out 0.6s infinite;
  }

  .home-wireframe-mobile .home-news {
    padding: 0;
    margin-top: clamp(14px, 2.7svh, 23px);
    margin-bottom: clamp(6px, 1.4svh, 12px);
  }

  .home-wireframe-mobile .retro-radio {
    width: 100%;
    height: clamp(162px, 21.2svh, 179px);
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 7px;
    padding: 7px;
    border-width: 3px;
    border-radius: 13px;
    box-shadow:
      0 10px 18px rgba(12, 8, 5, 0.5),
      inset 0 0 0 1px #b87848,
      inset 0 0 16px rgba(22, 11, 7, 0.5);
  }

  .home-wireframe-mobile .retro-radio::before {
    top: 4px;
    right: 10px;
    left: 10px;
  }

  .home-wireframe-mobile .retro-radio__speaker {
    padding: 7px 6px 6px;
    border-width: 1px;
    border-radius: 9px;
  }

  .home-wireframe-mobile .retro-radio__brand {
    font-size: 7px;
    letter-spacing: 0.09em;
  }

  .home-wireframe-mobile .retro-radio__frequency {
    font-size: 5px;
    letter-spacing: 0.05em;
  }

  .home-wireframe-mobile .retro-radio__grille {
    margin: 6px 0 5px;
    background:
      radial-gradient(circle, #b88758 0 1.5px, transparent 2px) 0 0 / 9px 9px,
      linear-gradient(145deg, #241711, #4a2d21);
    border-width: 3px;
  }

  .home-wireframe-mobile .retro-radio__console {
    gap: 5px;
  }

  .home-wireframe-mobile .retro-radio__tuner {
    height: 22px;
    flex-basis: 22px;
    gap: 4px;
    padding: 0 7px;
    border-width: 2px;
    font-size: 6px;
  }

  .home-wireframe-mobile .retro-radio__tuner i {
    width: 1px;
    height: 8px;
  }

  .home-wireframe-mobile .retro-radio__tuner i:nth-of-type(even) {
    height: 5px;
  }

  .home-wireframe-mobile .retro-radio__tuner strong {
    font-size: 7px;
  }

  .home-wireframe-mobile .retro-radio__display {
    border-width: 3px;
    border-radius: 5px;
  }

  .home-wireframe-mobile .retro-radio__news {
    display: block;
    padding: 7px 9px;
  }

  .home-wireframe-mobile .retro-radio__news[hidden] {
    display: none;
  }

  .home-wireframe-mobile .retro-radio__news time {
    display: block;
    margin-bottom: 3px;
    font-size: 7px;
  }

  .home-wireframe-mobile .retro-radio__news strong {
    display: block;
    padding-right: 42px;
    font-size: clamp(12px, 3.7vw, 15px);
  }

  .home-wireframe-mobile .retro-radio__news span {
    position: absolute;
    top: 8px;
    right: 7px;
    padding: 3px 4px;
    font-size: 6px;
  }

  .home-wireframe-mobile .retro-radio__controls {
    height: 27px;
    flex-basis: 27px;
    gap: 6px;
  }

  .home-wireframe-mobile .retro-radio__on-air {
    gap: 4px;
    font-size: 6px;
  }

  .home-wireframe-mobile .retro-radio__on-air i {
    width: 7px;
    height: 7px;
    border-width: 1px;
  }

  .home-wireframe-mobile .retro-radio__presets {
    gap: 7px;
  }

  .home-wireframe-mobile .retro-radio__presets button {
    width: 24px;
    height: 21px;
    border-width: 1px;
    border-radius: 3px;
    box-shadow: 0 2px 0 #170e0b;
    font-size: 8px;
  }

  .home-wireframe-mobile .retro-radio__knob {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
    border-width: 3px;
  }
}

@media (display-mode: standalone) {
  .home-wireframe-page .home-header {
    padding-top: max(20px, env(safe-area-inset-top, 20px));
  }

  .home-wireframe-mobile {
    padding-bottom: max(20px, env(safe-area-inset-bottom, 20px));
  }
}
