/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

:root {
  color-scheme: light;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    sans-serif;
  color: #17243c;
  background: #f2f6fb;
}

* {
  box-sizing: border-box;
}

body {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  padding: 24px;
  place-items: center;
  background:
    radial-gradient(circle at 15% 20%, rgb(45 125 210 / 12%), transparent 34%),
    radial-gradient(circle at 85% 80%, rgb(27 174 142 / 10%), transparent 30%),
    #f2f6fb;
}

.notice {
  position: relative;
  width: min(100%, 620px);
  padding: clamp(36px, 7vw, 64px);
  border: 1px solid rgb(23 36 60 / 8%);
  border-radius: 24px;
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 24px 70px rgb(38 65 99 / 13%);
  text-align: center;
}

.language-switch {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgb(23 36 60 / 10%);
  border-radius: 9px;
  background: #f2f6fb;
}

.language-switch button {
  min-width: 42px;
  min-height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  color: #69778a;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.language-switch button[aria-pressed="true"] {
  color: #176db5;
  background: #fff;
  box-shadow: 0 1px 5px rgb(38 65 99 / 12%);
}

.language-switch button:focus-visible {
  outline: 3px solid rgb(23 109 181 / 30%);
  outline-offset: 2px;
}

.status-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  border-radius: 18px;
  place-items: center;
  background: #e8f2ff;
}

.status-icon span {
  display: block;
  width: 20px;
  height: 20px;
  border: 3px solid #287ac4;
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px #e8f2ff;
  background: #287ac4;
}

.eyebrow {
  margin: 0 0 10px;
  color: #287ac4;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 7vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.description {
  max-width: 440px;
  margin: 20px auto 18px;
  color: #5d6b80;
  font-size: 17px;
  line-height: 1.8;
}

.access-code {
  width: fit-content;
  margin: 0 auto 30px;
  padding: 10px 15px;
  border-radius: 10px;
  color: #526278;
  background: #f0f5fa;
  font-size: 14px;
}

.access-code strong {
  color: #17243c;
}

.access-code a {
  color: #176db5;
  font-weight: 700;
  text-underline-offset: 3px;
}

.access-code a:focus-visible {
  border-radius: 3px;
  outline: 3px solid rgb(23 109 181 / 30%);
  outline-offset: 3px;
}

.destination {
  display: inline-flex;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  background: #176db5;
  box-shadow: 0 10px 24px rgb(23 109 181 / 24%);
  font-weight: 700;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

.destination:hover {
  background: #0d5d9f;
  transform: translateY(-1px);
}

.destination:focus-visible {
  outline: 3px solid rgb(23 109 181 / 30%);
  outline-offset: 4px;
}

.countdown,
.no-script {
  margin: 22px 0 0;
  color: #7b8798;
  font-size: 14px;
}

.countdown strong {
  color: #287ac4;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 480px) {
  body {
    padding: 16px;
  }

  .notice {
    padding: 76px 22px 36px;
    border-radius: 20px;
  }

  .language-switch {
    top: 18px;
    right: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .destination {
    transition: none;
  }
}
