:root {
  --bg: #eaf3fc;
  --panel: rgba(255, 255, 255, 0.92);
  --accent: #2e8f45;
  --accent-dark: #1d6536;
  --text: #1b243a;
  --muted: #5a6e8b;
  --button: #f8d64c;
  --button-hover: #ffeb9f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, rgba(173, 206, 255, 0.86) 0%, rgba(240, 248, 255, 1) 100%);
  color: var(--text);
}

.page-shell {
  max-width: 800px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 16px;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background:  #1b5891;
  padding: 2px 14px;
  border-radius: 0;
  color: #fff;
  gap: 16px;
  width: calc(100% + 32px);
  margin: -16px -16px 0 -16px;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.08em;
  background-image: url('images/logo.png');
  background-repeat: no-repeat;
  width: 82px;
  margin-top: 10px;
}

.hero-title {
  background-image: url('images/title.png');
  background-repeat: no-repeat;
  width: 435px;
  height: 43px;
  margin-left: 80px;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.83);
}

.hero-profile {
  background-image: url('images/kevin.png');
  background-repeat: no-repeat;
  width: 32px;
  height: 32px;
  margin-right: 10px;
}

@media (max-width: 768px) {
  .hero {
    flex-wrap: nowrap;
    padding: 4px 6px;
    align-items: center;
  }
  
  .hero-brand {
    gap: 8px;
    flex: 1;
    min-width: 0;
    align-items: center;
  }
  
  .hero-brand > div:last-child {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
  }
  
  .hero-title {
    width: 100%;
    height: 30px;
    margin: 0;
    font-size: 0;
    background-size: contain;
    background-position: left center;
  }
  
  .logo {
    width: 50px;
    min-width: 50px;
    height: 30px;
    margin: 0;
    font-size: 0;
    background-size: contain;
    background-position: left center;
  }

  .hero-profile {
    width: 24px;
    height: 24px;
    min-width: 24px;
    margin: 0;
    display: flex;
    align-items: center;
  }
  
  .hero-profile img {
    width: 24px !important;
    height: 24px !important;
  }
}

.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  background: #b1d280;
  width: calc(100% + 32px);
  margin-left: -16px;
}

.tab-button {
  border: none;
  padding: 8px 15px;
  border-radius: 0;
  background: #b1d280;
  color: #265223;
  font-family: Arial;
  font-size: 13px;
  font-weight: 750;
  font-smooth: 2em;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.tab-button.active {
  background: #b1d280;
  color: #265223;
  font-weight: 700;
}

.tab-button:hover {
  background: #e3efd2;
  color: #1b243a;
}

main {
  background: var(--panel);
  background-image: url('images/KevinRoseSoundboardBackground.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  border-radius: 0;
  padding: 10px 16px;
  box-shadow: none;
  margin: 0 -16px -16px -16px;
  width: calc(100% + 32px);
}



.sound-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.sound-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (max-width: 1024px) {
  .sound-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 768px) {
  .sound-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  .sound-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sound-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 2px;
  border-radius: 12px 0 12px 0;
  background: linear-gradient(180deg, #f6d86d 0%, #fffef9 100%);
  border: 1px solid rgba(255, 198, 42, 0.45);
  color: var(--text);
  text-align: center;
  text-decoration: none;
  font-size: 0.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  line-height: 1.1;
  height: 42px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: #79776d;
}

.sound-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 143, 69, 0.15);
  background: linear-gradient(180deg, #e8c857 0%, #fffbeb 100%);
}

.sound-card:active {
  transform: translateY(0);
}

.sound-card[data-label="blank"] {
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: default;
  pointer-events: none;
  color: transparent;
  text-shadow: none;
}

.hidden {
  display: none !important;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}



.sound-card {
  background: linear-gradient(180deg, #ead966 0%, #fffef9 100%);
}



.footer {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

.note {
  max-width: 640px;
  background: rgba(255, 255, 255, 0.75);
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(46, 143, 69, 0.14);
}

footer code,
panel-heading code {
  font-size: 0.92rem;
  background: rgba(0,0,0,0.04);
  padding: 2px 6px;
  border-radius: 4px;
}

@media (max-width: 720px) {
  .sound-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
