/* Landing / and /notices (design 6.3, 6.9), not in the app. */
@view-transition {
  navigation: auto;
}
.lp-tail {
  animation: lp-tail 0.8s ease-out;
}

@keyframes lp-tail {
  from {
    clip-path: inset(100% 100% 0 0);
  }
  to {
    clip-path: inset(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
  .lp-tail {
    animation: none;
  }
}

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

body.lp {
  margin: 0;
  background: #0b1020;
  color: #f5f1e6;
  font-family:
    system-ui,
    -apple-system,
    'Apple SD Gothic Neo',
    'Noto Sans KR',
    'Malgun Gothic',
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

a {
  color: #f5f1e6;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid #f5f1e6;
  outline-offset: 0;
  box-shadow: 0 0 0 5px #0b1020;
}

main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.lp-head {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 max(8px, env(safe-area-inset-right)) 0 max(8px, env(safe-area-inset-left));
}

.lp-head a,
.lp-who a,
.lp-nbody a,
.lp-more a,
.lp-foot li a {
  display: inline-flex;
  align-items: center;
  min-width: 48px;
  min-height: 48px;
  padding: 0 8px;
}

.lp-head a {
  font-weight: 600;
  text-decoration: none;
}

.lp-home svg {
  height: 24px;
  width: auto;
  margin-right: 6px;
}

.lp-nav {
  display: flex;
  gap: 8px;
}

.google-signin-face {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #8e918f;
  border-radius: 4px;
  background: #131314;
  color: #e3e3e3;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
}

.lp-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: max(300px, min(62vh, 520px));
  height: max(300px, min(62svh, 520px));
  padding: 56px 16px 14px;
  background: linear-gradient(#05070f, #0d1424);
  text-align: center;
}

.lp-pic,
.lp-pic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lp-pic img {
  object-fit: cover;
}

/* Text shade (design 6.9): phone, lower 45 %. */
.lp-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 6, 14, 0.7), rgba(4, 6, 14, 0) 45%);
  pointer-events: none;
}

.lp-hero-text {
  position: relative;
  z-index: 1;
}

.lp-hero h1 {
  margin: 0;
}

.lp-logo {
  display: block;
  width: min(280px, 78vw);
  height: auto;
  margin: 0 auto;
}

.lp-lead {
  max-width: 30em;
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.5;
}

.lp-enter {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 16px 8px;
}

.lp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  height: 64px;
  border-radius: 12px;
  /* Luminance 0.33: 360x640 under 0.08. */
  background-color: #c8923a;
  color: #0b1020;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.lp-who {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 4px 0 0;
  color: #c9cfdd;
  font-size: 14px;
}

.lp-next {
  max-width: 420px;
  margin: 0;
  color: #c9cfdd;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.lp-tonight,
.lp-notices,
.lp-foot {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 16px;
}

.lp-tonight h2,
.lp-notices h2,
.lp-notices h1 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.4;
}

.lp-tonight p {
  margin: 0;
  color: #c9cfdd;
  font-size: 15px;
}

.lp-tonight span {
  white-space: nowrap;
}

.lp-notices details {
  border-top: 1px solid #2a3350;
}

.lp-notices summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  cursor: pointer;
  list-style: none;
}

.lp-notices summary::-webkit-details-marker {
  display: none;
}

.lp-notices summary::before {
  content: '▸';
  flex: none;
  color: #c9cfdd;
}

.lp-notices details[open] > summary::before {
  content: '▾';
}

.lp-cat {
  flex: none;
  padding: 0 8px;
  border: 1px solid #c9cfdd;
  border-radius: 4px;
  color: #c9cfdd;
  font-size: 13px;
}

.lp-cat-new {
  border-color: #f5f1e6;
  color: #f5f1e6;
}

.lp-cat-maint {
  border: 2px solid #f5f1e6;
  color: #f5f1e6;
  font-weight: 700;
}

.lp-notices time {
  flex: none;
  color: #c9cfdd;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.lp-ntitle {
  flex: 1;
  min-width: 0;
  font-weight: 600;
}

.lp-nbody {
  padding: 0 0 12px 24px;
}

.lp-nbody p,
.lp-more {
  margin: 0 0 8px;
}

.lp-again {
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 8px 16px 16px;
}

.lp-foot {
  color: #c9cfdd;
  font-size: 14px;
}

.lp-foot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-foot li a {
  padding: 0 4px;
  color: #c9cfdd;
}

.lp-foot a[href='/privacy'] {
  font-weight: 700;
}

.lp-foot p {
  margin: 4px 0;
}

.lp-page {
  padding-top: 56px;
}

@media (max-width: 1023px) {
  .lp-ntitle {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  /* Portrait: cut the sky top, dome above the logo. */
  .lp-pic img {
    object-position: 50% 100%;
  }
}

/* Phone sideways: picture 55 % left, text 45 % right. */
@media (max-width: 1023px) and (orientation: landscape) {
  main {
    grid-template-columns: 55% 45%;
  }
  .lp-hero {
    grid-row: 1;
    grid-column: 1 / -1;
    align-items: flex-start;
    justify-content: flex-start;
    height: max(300px, 100vh);
    height: max(300px, 100svh);
    padding: 56px max(16px, env(safe-area-inset-right)) 0 calc(55% + 16px);
    text-align: left;
  }
  .lp-pic {
    right: 45%;
    width: auto;
  }
  .lp-pic img {
    object-position: 70% 50%;
  }
  .lp-hero::after {
    right: 45%;
    background: linear-gradient(to right, rgba(11, 16, 32, 0) 75%, #0b1020);
  }
  .lp-logo {
    width: 220px;
    margin: 0;
  }
  .lp-lead {
    font-size: 14px;
  }
  .lp-enter {
    z-index: 1;
    grid-row: 1;
    grid-column: 2;
    align-self: end;
    align-items: flex-start;
    padding: 0 max(16px, env(safe-area-inset-right)) 12px 16px;
  }
  .lp-who {
    justify-content: flex-start;
  }
  .lp-next {
    text-align: left;
  }
  .lp-tonight,
  .lp-notices,
  .lp-again {
    grid-column: 1 / -1;
  }
}

/* Wide: picture across, text in the left 55 %, tonight band below. */
@media (min-width: 1024px) {
  .lp-hero,
  .lp-enter,
  .lp-tonight {
    grid-row: 1;
    grid-column: 1;
  }
  .lp-hero {
    align-items: flex-start;
    justify-content: flex-start;
    height: max(640px, min(100vh, 760px));
    height: max(640px, min(100svh, 760px));
    padding: 120px 0 0 max(48px, 6vw);
    text-align: left;
  }
  /* 0.70 to 0 at 60 %; bottom: tonight band. */
  .lp-hero::after {
    background:
      linear-gradient(to right, rgba(4, 6, 14, 0.7), rgba(4, 6, 14, 0) 60%),
      linear-gradient(to top, rgba(4, 6, 14, 0.7), rgba(4, 6, 14, 0) 22%);
  }
  .lp-hero-text {
    max-width: 55%;
  }
  /* A star behind the text stays under 0.09, text hidden too. */
  .lp-hero-text::before {
    content: '';
    position: absolute;
    inset: -8px -24px;
    z-index: -1;
    visibility: visible;
    background: rgba(4, 6, 14, 0.7);
    box-shadow: 0 0 40px 24px rgba(4, 6, 14, 0.7);
  }
  .lp-logo {
    width: 440px;
    margin: 0;
  }
  .lp-lead {
    font-size: 18px;
  }
  .lp-enter {
    z-index: 1;
    align-self: start;
    justify-self: start;
    align-items: flex-start;
    max-width: 55%;
    margin-top: 356px;
    padding: 0 0 0 max(48px, 6vw);
  }
  .lp-btn {
    width: 280px;
  }
  .lp-who {
    justify-content: flex-start;
  }
  .lp-next {
    text-align: left;
  }
  .lp-tonight {
    z-index: 1;
    align-self: end;
    max-width: none;
    margin: 0;
    padding: 16px max(48px, 6vw) 20px;
  }
  .lp-again {
    display: none;
  }
}
