@charset "UTF-8";
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: "Roboto Mono", monospace;
  background-color: #262624;
  color: #d9d9d9;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.layout {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 480px) {
  .layout {
    flex-direction: column;
    gap: 60px;
    overflow: hidden;
  }
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  max-width: 771px;
  width: 100%;
  padding: 0 24px;
}
@media (max-width: 768px) {
  .content {
    gap: 30px;
  }
}
@media (max-width: 480px) {
  .content {
    gap: 40px;
  }
}

.title {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  justify-content: center;
  white-space: nowrap;
  width: max-content;
  max-width: none;
}
@media (max-width: 480px) {
  .title {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
  }
}
.title__left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.title__logo {
  width: 41px;
  height: 39px;
  flex-shrink: 0;
  color: #d7785b;
}
.title__text {
  font-weight: 700;
  font-size: 40px;
  line-height: 1.6;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .title__text {
    font-size: 24px;
  }
}
@media (max-width: 480px) {
  .title__text {
    font-size: 20px;
  }
}
.title__badge {
  font-weight: 700;
  font-size: 40px;
  line-height: 1.6;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}
@media (max-width: 768px) {
  .title__badge {
    font-size: 24px;
    height: 40px;
    padding: 8px 16px;
  }
}
@media (max-width: 480px) {
  .title__badge {
    font-size: 18px;
    height: auto;
    padding: 4px 12px;
  }
}

.state-on .title__badge {
  background-color: #d7785b;
  color: #262624;
  border: 3px solid #d7785b;
}

.state-off .title__badge {
  background-color: transparent;
  color: #d7785b;
  border: 3px solid #d7785b;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.state-on .title__logo {
  animation: spin 8s linear infinite;
}

.state-off .title__logo {
  animation: none;
}

.state-on .clock__robot-eye--on {
  display: block;
}

.state-on .clock__robot-feet--off {
  display: none;
}

.state-off .clock__robot-eye--on {
  display: none;
}

.state-off .clock__robot-feet--off {
  display: block;
}

.subtitle {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
}
@media (max-width: 768px) {
  .subtitle {
    font-size: 18px;
  }
}
@media (max-width: 480px) {
  .subtitle {
    font-size: 20px;
  }
}

.clock {
  display: flex;
  align-items: center;
  gap: 16px;
  perspective: 600px;
}
@media (max-width: 768px) {
  .clock {
    gap: 10px;
  }
}
.clock__piece {
  display: inline-block;
  position: relative;
}
.clock__card {
  display: block;
  position: relative;
  padding-bottom: 0.72em;
  font-size: 160px;
  line-height: 0.95;
  font-family: "Bebas Neue", cursive;
  font-style: normal;
  text-align: center;
}
@media (max-width: 768px) {
  .clock__card {
    font-size: 80px;
  }
}
@media (max-width: 480px) {
  .clock__card {
    font-size: 108px;
  }
}
.clock__card-top, .clock__card-bottom, .clock__card-back-bottom, .clock__card-back::before, .clock__card-back::after {
  display: block;
  height: 0.72em;
  color: rgba(255, 255, 255, 0.8);
  background: #474743;
  padding: 0.23em 0.15em 0.4em;
  border-radius: 0.15em 0.15em 0 0;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  width: 1.5em;
  overflow: hidden;
}
.clock__card-bottom, .clock__card-back-bottom {
  color: white;
  position: absolute;
  top: 50%;
  left: 0;
  border-top: solid 1px rgba(0, 0, 0, 0.4);
  background: #51514c;
  border-radius: 0 0 0.15em 0.15em;
  pointer-events: none;
  overflow: hidden;
  z-index: 2;
}
.clock__card-back-bottom {
  z-index: 1;
}
.clock__card-bottom::after, .clock__card-back-bottom::after {
  display: block;
  margin-top: -0.72em;
}
.clock__card-back::before, .clock__card-bottom::after, .clock__card-back-bottom::after {
  content: attr(data-value);
}
.clock__card-back {
  position: absolute;
  top: 0;
  height: 100%;
  left: 0;
  pointer-events: none;
}
.clock__card-back::before {
  position: relative;
  overflow: hidden;
  z-index: -1;
}
.clock__piece.flip .clock__card-back::before {
  z-index: 1;
  animation: flipTop 0.3s cubic-bezier(0.37, 0.01, 0.94, 0.35);
  animation-fill-mode: both;
  transform-origin: center bottom;
}
.clock__piece.flip .clock__card-bottom {
  transform-origin: center top;
  animation-fill-mode: both;
  animation: flipBottom 0.6s cubic-bezier(0.15, 0.45, 0.28, 1);
}
.clock__robot {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: #51514c;
  border-radius: 32px;
  padding: 16px;
}
@media (max-width: 768px) {
  .clock__robot {
    border-radius: 16px;
    padding: 8px;
  }
}
.clock__robot-svg {
  width: 100%;
  height: auto;
  max-height: 80%;
}
.clock__piece--robot {
  position: relative;
}
.clock__piece--robot .clock__card {
  visibility: hidden;
}
.clock__piece--robot .clock__robot {
  display: flex;
}
.clock__robot-eye--on {
  display: none;
}
.clock__robot-feet--off {
  display: none;
}
.clock__divider {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
@media (max-width: 768px) {
  .clock__divider {
    gap: 10px;
  }
}
.clock__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #d9d9d9;
}
@media (max-width: 768px) {
  .clock__dot {
    width: 10px;
    height: 10px;
  }
}

.bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}
@media (max-width: 480px) {
  .bar {
    gap: 16px;
  }
}
.bar__label {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
}
@media (max-width: 768px) {
  .bar__label {
    font-size: 18px;
  }
}
@media (max-width: 480px) {
  .bar__label {
    font-size: 14px;
  }
}
.bar__segments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
@media (max-width: 480px) {
  .bar__segments {
    gap: 5px;
  }
}
.bar__segment {
  width: 20px;
  height: 40px;
  flex-shrink: 0;
  transition: background-color 0.3s ease;
}
.bar__segment--active {
  background-color: #d7785b;
}
.bar__segment--inactive {
  background-color: #d9d9d9;
}
@media (max-width: 480px) {
  .bar__segment {
    width: 12px;
    height: 24px;
  }
}

.usage-time {
  font-size: 24px;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .usage-time {
    font-size: 16px;
  }
}
@media (max-width: 480px) {
  .usage-time {
    font-size: 14px;
    white-space: normal;
  }
}

.bottom {
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (max-width: 768px) {
  .bottom {
    bottom: 16px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 480px) {
  .bottom {
    position: static;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}

.star {
  display: flex;
  align-items: center;
  gap: 16px;
}
@media (max-width: 480px) {
  .star {
    flex-direction: column;
    align-items: center;
  }
}
.star__button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px 8px 8px;
  border: 1px solid white;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  font-family: "Roboto Mono", monospace;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s ease;
}
.star__button:hover {
  background: #E2B24C;
  border: 1px solid transparent;
  color: #262624;
}
.star__icon {
  font-size: 20px;
}
.star__label {
  font-size: 14px;
}
.star__text {
  font-size: 18px;
  color: #d9d9d9;
}
@media (max-width: 480px) {
  .star__text {
    font-size: 16px;
    text-align: center;
  }
}
.star__count {
  font-size: 14px;
  color: #d9d9d9;
  opacity: 0.6;
}
.star__count:not(:empty)::before {
  content: "•";
  margin-right: 0.4rem;
}
@media (max-width: 480px) {
  .star__count {
    display: none;
  }
}

.nana {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nana__text {
  font-size: 18px;
  color: #d9d9d9;
}
@media (max-width: 480px) {
  .nana__text {
    font-size: 14px;
  }
}
.nana__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #d9d9d9;
  transition: color 0.2s ease;
}
.nana__social:hover {
  color: #65A9EF;
}
.nana__social svg {
  width: 23px;
  height: 23px;
}

@keyframes flipTop {
  0% {
    transform: rotateX(0deg);
    z-index: 2;
  }
  0%, 99% {
    opacity: 1;
  }
  100% {
    transform: rotateX(-90deg);
    opacity: 0;
  }
}
@keyframes flipBottom {
  0%, 50% {
    z-index: -1;
    transform: rotateX(90deg);
    opacity: 0;
  }
  51% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    transform: rotateX(0deg);
    z-index: 5;
  }
}
@media (max-width: 480px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }
  .layout {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    justify-content: flex-start;
    align-items: center;
    gap: 96px;
    padding: 48px 24px 32px;
    overflow: visible;
  }
  .content {
    width: 100%;
    max-width: 342px;
    padding: 0;
    gap: 0;
  }
  .title {
    margin-bottom: 64px;
  }
  .title__left {
    gap: 12px;
    max-width: 100%;
  }
  .title__logo {
    width: 34px;
    height: 32px;
  }
  .title__text {
    font-size: 18px;
  }
  .subtitle {
    margin-bottom: 24px;
    font-size: 18px;
    line-height: 1.6;
  }
  .clock {
    width: fit-content;
    max-width: 100%;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 64px;
  }
  .clock__card {
    width: auto;
    min-width: 0;
    height: 160px;
    padding: 0 9px;
    font-size: 98px;
    line-height: 1;
    background: #51514c;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .clock__card-top {
    width: auto;
    height: auto;
    padding: 0;
    border-radius: 0;
    background: none;
    color: white;
    line-height: 0.82;
    overflow: visible;
  }
  .clock__card-bottom,
  .clock__card-back,
  .clock__card-back-bottom {
    display: none;
  }
  .clock__divider {
    gap: 9px;
  }
  .clock__dot {
    width: 10px;
    height: 10px;
  }
  .clock__piece--robot .clock__card {
    visibility: visible;
  }
  .clock__piece--robot .clock__robot {
    display: none;
  }
  .bar {
    gap: 16px;
    margin-bottom: 64px;
  }
  .bar__label {
    font-size: 18px;
  }
  .bar__segments {
    gap: 5px;
    max-width: 100%;
  }
  .bar__segment {
    width: 12px;
    height: 24px;
  }
  .usage-time {
    max-width: 310px;
    font-size: 18px;
    line-height: 1.6;
  }
  .bottom {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 342px;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .star {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  .star__button {
    border-radius: 4px;
    font-size: 18px;
  }
  .star__icon {
    font-size: 18px;
  }
  .star__text,
  .nana__text {
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
  }
  .nana {
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
  }
}

/*# sourceMappingURL=style.css.map */
