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

body {
  background: #fff;
  font-family: sans-serif;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 32px;
  color: #111;
}

h1 {
  text-align: center;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 28px;
  font-weight: 900;
}
h1 img.title-img {
  max-width: 80%;
  height: auto;
  text-align: center;
}

.sound-note {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin-top: 20px;
  margin-bottom: 20px;
}
footer img.sub-title-img {
  max-width: 50%;
  height: auto;
  text-align: center;
}

.main-grid {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.section {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px 2px;
}

.divider {
  width: 2px;
  /* background: #111; */
  border-left: 2px dashed #111;
  margin: 0 12px;
  flex-shrink: 0;
}

.item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px 6px;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
  position: relative;
}

.item:hover {
  filter: brightness(85%);
}
.item:active {
  filter: brightness(85%);
}
.item.ringing {
  filter: brightness(95%);
}

.dial-wrap {
  width: clamp(64px, 22vw, 110px);
  aspect-ratio: 1;
  position: relative;
}

.dial-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.label {
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  margin-top: 4px;
  line-height: 1.4;
  font-weight: bold;
}

.dog-note {
  display: none;
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 0.55rem;
  background: #111;
  color: #fff;
  border-radius: 3px;
  padding: 1px 4px;
  letter-spacing: 0.5px;
}

.item.ringing .dog-note {
  display: block;
}

footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 12px;
  font-size: 1.3rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  text-underline-offset: 5px;
  text-decoration-line: underline;
  text-decoration-color: #111;
  text-decoration-thickness: 2px;
}

.credit {
  text-align: center;
  margin-top: 0rem;
  font-size: 1rem;
  color: #111;
  text-decoration: none;
}

@media (max-width: 760px) {
  .main-grid {
    flex-direction: column;
    align-items: center;
  }
  .section {
    width: 100%;
    max-width: 360px;
  }
  .divider {
    width: 80%;
    height: 0;
    border-left: none;
    border-top: 2px dashed #111;
    margin: 16px 0;
  }
  .label {
    font-size: 0.5rem;
  }
  footer img.sub-title-img {
    max-width: 80%;
  }
}
@media (max-width: 500px) {
  h1 img.title-img {
    max-width: 100%;
  }
  footer img.sub-title-img {
    max-width: 100%;
  }
}
