:root {
  color-scheme: dark;
  background: #000;
  color: #fff;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #000;
}

body.eula-lock {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.entrance-shell {
  width: min(1136px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(36px, 6vh, 64px) 0 48px;
}

.entrance-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  margin-bottom: clamp(28px, 5vh, 44px);
}

.entrance-copy {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.entrance-heading h1 {
  margin: 0;
  color: #fff;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.entrance-heading p {
  margin: 0;
  color: #fff;
  font-family: "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  letter-spacing: 0;
}

.entrance-share {
  margin: 0;
  justify-self: end;
}

.entrance-share__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 2px solid #777;
  border-radius: 4px;
  padding: 0 16px;
  background: #111;
  color: #fff;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.entrance-share__link:hover,
.entrance-share__link:focus-visible {
  border-color: #e7c66f;
  outline: none;
}

.edition-list {
  display: grid;
  gap: clamp(26px, 6vh, 44px);
}

.edition-banner {
  display: grid;
  grid-template-columns: 32% 68%;
  overflow: hidden;
  border: 4px solid #777;
  border-radius: 6px;
  background: #000;
}

.edition-banner:focus-visible {
  outline: 3px solid #e7c66f;
  outline-offset: 5px;
}

.edition-banner__visual {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-right: 4px solid #777;
  background: #000;
}

.edition-banner__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.66));
  pointer-events: none;
}

.edition-banner__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.edition-banner__text {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 28px 52px;
  background: #000;
}

.edition-banner__title {
  display: block;
  color: #fff;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.72);
}

.edition-banner__description {
  display: grid;
  gap: 8px;
  color: #fff;
  font-family: "Yu Gothic", "Meiryo", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: 0;
}

.entrance-footer {
  margin-top: clamp(28px, 5vh, 44px);
  color: rgb(255 255 255 / 0.82);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 10px rgb(0 0 0 / 0.9);
}

.entrance-footer p {
  margin: 0;
}

.eula-debug-tools {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.eula-debug-tools[hidden] {
  display: none;
}

.eula-debug-tools button {
  min-height: 34px;
  border: 2px solid #777;
  border-radius: 4px;
  padding: 0 14px;
  background: #111;
  color: rgb(255 255 255 / 0.86);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
}

.eula-debug-tools button:hover,
.eula-debug-tools button:focus-visible {
  border-color: #e7c66f;
  outline: none;
}

.eula-overlay {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 24px;
  background: rgb(0 0 0 / 0.82);
  -webkit-overflow-scrolling: touch;
}

.eula-overlay[hidden] {
  display: none;
}

.eula-dialog {
  display: grid;
  width: min(760px, 100%);
  max-height: min(92vh, 920px);
  overflow: hidden;
  border: 4px solid #777;
  border-radius: 6px;
  background: #000;
  color: #fff;
  box-shadow: 0 28px 72px rgb(0 0 0 / 0.86);
}

.eula-dialog__header {
  padding: 24px 28px 16px;
  border-bottom: 4px solid #777;
}

.eula-dialog__header h1 {
  margin: 0 0 10px;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.eula-dialog__header p,
.eula-dialog__decline,
.eula-dialog__check,
.eula-dialog__status {
  margin: 0;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
}

.eula-dialog__body {
  min-height: 240px;
  max-height: 42vh;
  overflow: auto;
  padding: 22px 28px;
  border-bottom: 4px solid #777;
  background: #fff;
  color: #111;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0;
}

.eula-dialog__body:focus-visible {
  outline: 3px solid #e7c66f;
  outline-offset: -5px;
}

.eula-dialog__body h2 {
  margin: 22px 0 8px;
  color: #111;
  font-size: 16px;
  line-height: 1.35;
}

.eula-dialog__body h2:first-of-type {
  margin-top: 0;
}

.eula-dialog__body p {
  margin: 0 0 12px;
}

.eula-dialog__body ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

.eula-dialog__body li {
  margin: 0 0 6px;
}

.eula-dialog__decline {
  padding: 18px 28px 0;
  color: rgb(255 255 255 / 0.82);
}

.eula-dialog__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 28px 0;
}

.eula-dialog__check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #e7c66f;
}

.eula-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 28px 0;
}

.eula-dialog__actions button {
  min-height: 40px;
  border: 3px solid #777;
  border-radius: 4px;
  padding: 0 18px;
  background: #111;
  color: #fff;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
}

.eula-dialog__actions button:disabled {
  color: rgb(255 255 255 / 0.42);
  cursor: not-allowed;
}

.eula-dialog__actions button:not(:disabled):hover,
.eula-dialog__actions button:not(:disabled):focus-visible {
  border-color: #e7c66f;
  outline: none;
}

.eula-dialog__status {
  min-height: 24px;
  padding: 8px 28px 20px;
  color: #e7c66f;
}

@media (max-width: 760px) {
  .entrance-shell {
    width: min(100% - 28px, 520px);
    padding-top: 30px;
  }

  .entrance-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .entrance-share {
    justify-self: start;
  }

  .edition-banner {
    grid-template-columns: 1fr;
    height: auto;
  }

  .edition-banner__visual {
    aspect-ratio: 3 / 2;
    border-right: 0;
    border-bottom: 4px solid #777;
  }

  .edition-banner__text {
    min-height: auto;
    padding: 26px 24px 30px;
  }

  .eula-overlay {
    align-items: start;
    padding: 14px 14px max(132px, calc(env(safe-area-inset-bottom) + 112px));
  }

  .eula-dialog__header,
  .eula-dialog__body,
  .eula-dialog__decline,
  .eula-dialog__check,
  .eula-dialog__actions {
    padding-left: 18px;
    padding-right: 18px;
  }

  .eula-dialog__header h1 {
    font-size: 20px;
  }

  .eula-dialog__body {
    max-height: 44vh;
  }
}

@media (max-width: 520px) {
  .eula-dialog {
    max-height: none;
  }

  .eula-dialog__header {
    padding-top: 18px;
    padding-bottom: 12px;
  }

  .eula-dialog__header p,
  .eula-dialog__decline,
  .eula-dialog__check,
  .eula-dialog__status {
    font-size: 13px;
    line-height: 1.5;
  }

  .eula-dialog__body {
    min-height: 150px;
    max-height: 30vh;
    padding-top: 16px;
    padding-bottom: 16px;
    font-size: 13px;
    line-height: 1.58;
  }

  .eula-dialog__decline {
    padding-top: 12px;
  }

  .eula-dialog__check {
    padding-top: 12px;
  }

  .eula-dialog__actions {
    padding-top: 14px;
  }

  .eula-dialog__status {
    padding-bottom: 16px;
  }
}
