:root {
  --navy: #002e5f;
  --navy-deep: #002954;
  --ink: #071d3c;
  --yellow: #f7c817;
  --paper: #f8f8f7;
  --muted: #6c7481;
  --line: #e4e5e7;
  --phone-width: 390px;
  --phone-height: 844px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  overflow-x: hidden;
  background: var(--navy);
}

button {
  font: inherit;
}

a {
  color: inherit;
}

.app-shell {
  display: block;
  width: 100vw;
  min-height: 100svh;
  overflow: hidden;
  padding: 0;
}

.desktop-panel {
  display: none;
  gap: 30px;
  align-content: center;
}

.desktop-panel h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0;
}

.desktop-panel p {
  margin: 0;
  max-width: 330px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.desktop-panel em {
  display: block;
  color: var(--yellow);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 1.55rem;
  font-weight: 400;
  text-transform: none;
}

.desktop-nav {
  display: grid;
  gap: 10px;
  max-width: 280px;
}

.desktop-link {
  border: 1px solid rgba(0, 46, 95, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy);
  cursor: pointer;
  font-weight: 800;
  padding: 13px 16px;
  text-align: left;
}

.desktop-link.active,
.desktop-link:hover {
  border-color: var(--yellow);
  background: var(--navy);
  color: #fff;
}

.phone {
  position: relative;
  width: 100vw;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--navy);
  box-shadow: none;
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  overflow: hidden;
  background: var(--paper);
}

.screen.active {
  display: block;
}

.screen-home {
  color: #fff;
  background:
    radial-gradient(circle at 50% 22%, rgba(7, 75, 134, 0.38), transparent 33%),
    linear-gradient(180deg, #00356d 0%, #002d5d 54%, #002953 100%);
}

.home-pattern,
.topbar::after {
  position: absolute;
  top: 16px;
  right: -9px;
  width: 126px;
  height: 126px;
  content: "";
  opacity: 0.18;
  background:
    repeating-radial-gradient(ellipse at 90% 0%, transparent 0 9px, #fff 10px 12px, transparent 13px 20px);
  border-radius: 20px;
}

.home-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  padding: 50px 30px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 48px;
  place-items: center;
  color: currentColor;
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
  transform: skewX(-10deg);
}

.brand strong {
  display: block;
  font-size: 1.14rem;
  font-weight: 900;
  line-height: 0.92;
}

.brand span {
  display: block;
  margin-top: 5px;
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand-dark {
  color: var(--navy);
}

.brand-dark .brand-mark {
  background: linear-gradient(135deg, var(--navy), #0a477d);
  color: #fff;
  clip-path: polygon(38% 0, 78% 0, 100% 100%, 70% 100%, 62% 78%, 28% 78%, 20% 100%, 0 100%);
  font-size: 0;
}

.brand-light {
  justify-self: center;
  margin-bottom: 54px;
}

.brand-light .brand-mark {
  color: #fff;
  text-shadow: -2px 0 0 rgba(255, 255, 255, 0.85);
}

.hero-title {
  display: grid;
  justify-items: center;
  margin-bottom: 28px;
  text-align: center;
}

.hero-title span {
  font-size: 1.74rem;
  font-weight: 300;
}

.hero-title strong,
.hero-title b {
  font-size: 2.34rem;
  font-weight: 900;
  line-height: 0.78;
}

.hero-title b {
  margin-top: 6px;
  color: var(--yellow);
}

.home-grid {
  display: grid;
  width: 100%;
  max-width: 288px;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  justify-self: center;
}

.home-card {
  display: grid;
  width: 100%;
  min-width: 0;
  height: 108px;
  place-items: center;
  border: 0;
  border-radius: 11px;
  background: #fbfbfb;
  color: var(--navy);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), 0 8px 18px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  text-transform: uppercase;
}

.home-card svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.home-card span {
  font-size: 0.79rem;
  font-weight: 900;
}

.tagline {
  position: absolute;
  right: 62px;
  bottom: 52px;
  left: 62px;
  border-bottom: 2px solid var(--yellow);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.2;
  padding-bottom: 9px;
  text-align: center;
  text-transform: uppercase;
}

.tagline em {
  display: block;
  color: var(--yellow);
  font-family: "Brush Script MT", "Segoe Script", cursive;
  font-size: 1.34rem;
  font-weight: 400;
  text-transform: none;
}

.app-screen {
  padding-bottom: 88px;
  background: var(--paper);
}

.topbar {
  position: relative;
  display: grid;
  height: 112px;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  padding: 0 17px 24px;
  color: #fff;
  background: linear-gradient(180deg, #00366e 0%, #002d5d 100%);
}

.topbar h2 {
  z-index: 1;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
}

.back-button {
  z-index: 1;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.back-button svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.content-card {
  position: absolute;
  top: 82px;
  right: 0;
  bottom: 88px;
  left: 0;
  overflow: auto;
  border-radius: 24px 24px 0 0;
  background: var(--paper);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.05);
}

.info-content {
  padding: 28px 28px 20px;
}

.info-content h3 {
  margin: 0 0 20px;
  font-size: 1.34rem;
  line-height: 1;
}

.text-lines {
  display: grid;
  gap: 11px;
  margin-bottom: 52px;
}

.text-lines span {
  display: block;
  height: 4px;
  border-radius: 99px;
  background: #d4d6d8;
}

.text-lines span:last-child {
  width: 74%;
}

.speaker-list {
  display: grid;
  gap: 12px;
}

.speaker {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: start;
  min-height: 96px;
  gap: 14px;
  border: 1px solid #e7e8ea;
  border-radius: 8px;
  background: #fbfbfb;
  padding: 10px;
}

.speaker strong,
.speaker span,
.speaker p {
  display: block;
}

.speaker img {
  width: 78px;
  height: 92px;
  border-radius: 6px;
  object-fit: cover;
  object-position: center top;
  background: #d8dbe0;
}

.speaker strong {
  color: var(--navy);
  font-size: 0.94rem;
  line-height: 1.2;
}

.speaker span {
  color: #4f5763;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 3px;
}

.speaker p {
  margin: 8px 0 0;
  color: #2d3747;
  font-size: 0.76rem;
  line-height: 1.45;
}

.avatar {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 6px;
  background-color: #d8dbe0;
  background-image:
    radial-gradient(circle at 50% 27%, #f2c9aa 0 15%, transparent 16%),
    linear-gradient(90deg, transparent 0 33%, #17243e 34% 66%, transparent 67%),
    linear-gradient(150deg, #dadde4 0 50%, #f7f1e8 51%);
}

.avatar-2 {
  background-image:
    radial-gradient(circle at 50% 26%, #c99267 0 15%, transparent 16%),
    linear-gradient(90deg, transparent 0 30%, #10182a 31% 69%, transparent 70%),
    linear-gradient(150deg, #d6dde6 0 50%, #f6f2ea 51%);
}

.avatar-3 {
  background-image:
    radial-gradient(circle at 50% 27%, #d7a075 0 15%, transparent 16%),
    linear-gradient(90deg, transparent 0 24%, #202329 25% 75%, transparent 76%),
    linear-gradient(150deg, #ead8cc 0 50%, #f4eee8 51%);
}

.schedule-content {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 30px 20px;
}

.schedule-header,
.schedule-day {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}

.schedule-header {
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 16px;
}

.schedule-header h3,
.schedule-header p,
.schedule-day h3,
.schedule-block h4 {
  margin: 0;
}

.schedule-header h3 {
  color: var(--navy);
  font-size: 1.18rem;
  line-height: 1.18;
}

.schedule-header p {
  margin-top: 8px;
  color: #2d3747;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.3;
}

.schedule-day {
  display: grid;
  gap: 14px;
  border: 1px solid #e6e8eb;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.025);
}

.schedule-day h3 {
  color: var(--navy);
  font-size: 1.08rem;
  line-height: 1.2;
}

.schedule-block {
  display: grid;
  gap: 12px;
}

.schedule-block + .schedule-block {
  border-top: 1px solid #e6e8eb;
  padding-top: 14px;
}

.schedule-block h4 {
  color: #2d3747;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.25;
}

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0 0 0 30px;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 15px;
  bottom: 15px;
  left: 8px;
  width: 2px;
  content: "";
  background: var(--navy);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: start;
  gap: 12px;
  min-height: 34px;
}

.timeline li::before {
  position: absolute;
  top: 12px;
  left: -28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  content: "";
  background: var(--navy);
}

.timeline time {
  display: grid;
  min-height: 34px;
  place-items: center;
  border: 1px solid rgba(247, 200, 23, 0.8);
  border-radius: 8px;
  background: #fff9dd;
  padding: 5px 7px;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.timeline span {
  padding-top: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
}

.list-content {
  padding: 32px 20px;
}

.song-list {
  display: grid;
  gap: 10px;
}

.song-item {
  display: grid;
  gap: 8px;
}

.list-row {
  display: grid;
  width: 100%;
  min-height: 68px;
  grid-template-columns: 54px 1fr 26px;
  align-items: center;
  gap: 10px;
  border: 1px solid #e6e8eb;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  padding: 8px 12px 8px 8px;
  text-align: left;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.025);
}

.list-row strong,
.list-row small {
  display: block;
}

.list-row strong {
  font-size: 0.87rem;
  font-weight: 900;
}

.list-row small {
  margin-top: 3px;
  color: #2d3747;
  font-size: 0.76rem;
}

.list-row b {
  font-size: 2.1rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.18s ease;
}

.song-toggle b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  font-size: 0;
}

.song-toggle b::before {
  width: 10px;
  height: 10px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  content: "";
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.18s ease;
}

.song-toggle[aria-expanded="true"] b::before {
  transform: translateY(3px) rotate(225deg);
}

.song-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 0 2px 64px;
}

.song-action {
  display: grid;
  min-height: 44px;
  place-items: center;
  border: 1px solid rgba(0, 46, 95, 0.16);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.025);
}

.song-action:hover,
.song-action:focus-visible {
  background: var(--navy);
  color: #fff;
}

.row-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 6px;
  background: var(--navy);
}

.note-icon::before {
  color: #fff;
  content: "♪";
  font-size: 2rem;
  line-height: 1;
}

.leisure-icon::before {
  color: #fff;
  content: "☀";
  font-size: 1.9rem;
  line-height: 1;
}

.youtube-button {
  display: grid;
  width: 100%;
  height: 58px;
  grid-template-columns: 58px 1fr;
  align-items: center;
  margin-top: 46px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(180deg, #073f79, var(--navy));
  color: #fff;
  cursor: pointer;
  padding: 0 18px;
  text-align: left;
  text-transform: uppercase;
}

.youtube-button strong {
  font-size: 0.82rem;
  line-height: 1.15;
}

.youtube-button small {
  font-size: 0.78rem;
  font-weight: 500;
}

.youtube-play {
  position: relative;
  display: block;
  width: 38px;
  height: 28px;
  border-radius: 7px;
  background: #fff;
}

.youtube-play::after {
  position: absolute;
  top: 7px;
  left: 15px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid var(--navy);
  content: "";
}

.lyrics-content {
  padding: 32px 20px;
}

.lyrics-card {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid #e6e8eb;
  border-radius: 8px;
  background: #fff;
  padding: 24px;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.025);
}

.lyrics-card h3 {
  margin: 0 0 18px;
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1.1;
}

.lyrics-card span {
  display: block;
  margin: -10px 0 18px;
  color: #4f5763;
  font-size: 0.82rem;
  font-weight: 800;
}

.lyrics-card pre {
  margin: 0;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.7;
  white-space: pre-wrap;
}

.materials-content {
  padding-top: 34px;
}

.leisure-content {
  padding-top: 34px;
}

.material-row {
  grid-template-columns: 54px 1fr 34px;
  min-height: 68px;
}

.doc-icon,
.download-icon {
  display: block;
  color: var(--navy);
}

.doc-icon {
  position: relative;
  width: 36px;
  height: 42px;
  justify-self: center;
  border: 3px solid currentColor;
  border-radius: 4px;
}

.doc-icon::before {
  position: absolute;
  top: 10px;
  left: 8px;
  width: 14px;
  height: 2px;
  content: "";
  background: currentColor;
  box-shadow: 0 8px 0 currentColor;
}

.download-icon {
  position: relative;
  width: 26px;
  height: 28px;
}

.download-icon::before {
  position: absolute;
  top: 1px;
  left: 11px;
  width: 4px;
  height: 15px;
  content: "";
  background: currentColor;
}

.download-icon::after {
  position: absolute;
  inset: 10px 2px 2px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  border-left: 3px solid currentColor;
  content: "";
}

.bottom-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 8;
  display: grid;
  height: 88px;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  background: linear-gradient(180deg, #00376f, var(--navy-deep));
}

.screen-home.active ~ .bottom-nav {
  display: none;
}

.bottom-nav button {
  display: grid;
  min-width: 0;
  place-items: center;
  gap: 3px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 8px 0 6px;
}

.bottom-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.bottom-nav span {
  overflow: hidden;
  max-width: 100%;
  font-size: 0.58rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-nav button.active {
  color: var(--yellow);
}

@media (min-width: 781px) {
  .screen-home.active {
    display: grid;
    grid-template-rows: 1fr auto;
  }

  .home-pattern,
  .topbar::after {
    right: clamp(18px, 8vw, 112px);
    width: clamp(150px, 18vw, 260px);
    height: clamp(150px, 18vw, 260px);
  }

  .home-content {
    min-height: 0;
    align-content: center;
    padding: clamp(24px, 4vh, 52px) clamp(28px, 7vw, 96px) clamp(18px, 3vh, 32px);
  }

  .brand-light {
    margin-bottom: clamp(22px, 4vh, 46px);
  }

  .brand-mark {
    width: clamp(46px, 5vw, 68px);
    height: clamp(48px, 5vw, 70px);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
  }

  .brand strong {
    font-size: clamp(1.14rem, 2vw, 1.62rem);
  }

  .brand span {
    font-size: clamp(0.56rem, 0.85vw, 0.72rem);
  }

  .hero-title {
    margin-bottom: clamp(20px, 4vh, 38px);
  }

  .hero-title span {
    font-size: clamp(1.74rem, min(3vw, 4.5vh), 2.55rem);
  }

  .hero-title strong,
  .hero-title b {
    font-size: clamp(2.34rem, min(5vw, 8vh), 4.25rem);
  }

  .home-grid {
    max-width: clamp(620px, 54vw, 760px);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, min(2.4vw, 3vh), 30px);
  }

  .home-card {
    height: clamp(108px, min(12vw, 16vh), 140px);
    border-radius: 12px;
  }

  .home-card svg {
    width: clamp(44px, 5vw, 66px);
    height: clamp(44px, 5vw, 66px);
  }

  .home-card span {
    font-size: clamp(0.79rem, 1.15vw, 1rem);
  }

  .tagline {
    position: static;
    width: min(520px, calc(100vw - 48px));
    justify-self: center;
    margin: 0 0 clamp(24px, 4vh, 42px);
    transform: none;
    font-size: clamp(0.78rem, 1vw, 1rem);
  }

  .tagline em {
    font-size: clamp(1.34rem, 2vw, 1.9rem);
  }

  .topbar {
    height: 128px;
    grid-template-columns: 76px 1fr 76px;
    padding: 0 clamp(28px, 5vw, 72px) 28px;
  }

  .topbar h2 {
    font-size: clamp(1.05rem, 1.5vw, 1.38rem);
  }

  .content-card {
    top: 94px;
    bottom: 96px;
    border-radius: 30px 30px 0 0;
  }

  .info-content,
  .schedule-content,
  .list-content {
    padding-right: max(32px, calc((100vw - 860px) / 2));
    padding-left: max(32px, calc((100vw - 860px) / 2));
  }

  .info-content {
    padding-top: 42px;
  }

  .speaker-list {
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
  }

  .schedule-content {
    padding-top: 42px;
  }

  .timeline {
    width: 100%;
    gap: 14px;
  }

  .song-list,
  .youtube-button {
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
  }

  .youtube-button {
    margin-top: 46px;
  }

  .bottom-nav {
    height: 96px;
    padding-inline: max(0px, calc((100vw - 860px) / 2));
  }

  .bottom-nav span {
    font-size: 0.68rem;
  }
}

@media (min-width: 781px) and (max-height: 820px) {
  .home-content {
    align-content: start;
    padding-top: clamp(10px, 2vh, 18px);
    padding-bottom: 10px;
  }

  .brand-light {
    margin-bottom: clamp(10px, 2vh, 18px);
  }

  .brand-mark {
    width: 48px;
    height: 50px;
    font-size: 2.35rem;
  }

  .brand strong {
    font-size: 1.16rem;
  }

  .hero-title {
    margin-bottom: clamp(14px, 2.4vh, 20px);
  }

  .hero-title span {
    font-size: clamp(1.5rem, 3.4vh, 1.9rem);
  }

  .hero-title strong,
  .hero-title b {
    font-size: clamp(2.45rem, 7.2vh, 3.55rem);
  }

  .home-grid {
    max-width: min(690px, calc(100vw - 48px));
    gap: clamp(14px, 2.2vh, 20px);
  }

  .home-card {
    height: clamp(104px, 15vh, 122px);
  }

  .home-card svg {
    width: clamp(38px, 6vh, 48px);
    height: clamp(38px, 6vh, 48px);
  }

  .tagline {
    margin-bottom: clamp(12px, 2.4vh, 20px);
    font-size: 0.78rem;
  }

  .tagline em {
    font-size: 1.34rem;
  }
}

@media (max-width: 360px) {
  .home-content {
    padding-inline: 24px;
  }

  .home-grid {
    gap: 14px;
  }

  .home-card {
    height: 100px;
  }

  .hero-title strong,
  .hero-title b {
    font-size: 2.1rem;
  }

  .timeline {
    padding-left: 32px;
  }
}
