/* Reset defaults to avoid UA margin/padding differences. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img,
picture,
svg,
canvas,
video {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
}

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

b,
strong {
  font-weight: normal;
}

@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("../fonts/ZenKakuGothicNew-Light.614db5c538cb.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("../fonts/ZenKakuGothicNew-Regular.6208396d3d91.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("../fonts/ZenKakuGothicNew-Medium.498311051f44.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("../fonts/ZenKakuGothicNew-Bold.388fafa05db3.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("../fonts/ZenKakuGothicNew-Black.5c1fc51f4595.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}
:root {
  --green-left: #43b172;
  --green-right: #9ac814;
  --tag-green: #43b172;
  --tag-lime: #9ac814;
  --accent-red-light: #e86b5a;
  --accent-red: #d64545;
  --accent-orange-light: #f7a23a;
  --accent-orange: #f36b21;
  --soft-gray: #f5f4f2;
  --text: #000;
  --border-gray: #707070;
  --bp-md: 900px;
  --problems-spot-max-vh-mobile: 95;
  --problems-spot-max-vh-desktop: 90;
}

* {
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

.heading-marker {
  position: relative;
  display: inline-block;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
  font-size: 1.75rem;
  padding: 0;
  margin-bottom: 16px;
  z-index: 0;
  isolation: isolate;
  padding: 0 5px;
}

.heading-marker::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.15em;
  height: 0.6em;
  background: linear-gradient(135deg, var(--green-left) 0%, var(--green-right) 100%);
  opacity: 0.35;
  z-index: -1;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.02em;
  line-height: 1.8;
}
@media (min-width: 900px) {
  body {
    background: var(--soft-gray);
  }
}
body .form-required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eb5505;
  color: #ffffff;
  font-size: 0.625rem;
  font-weight: normal;
}

body.is-login-success-modal-open {
  overflow: hidden;
}

.guest-banner {
  padding: 8px 16px;
  text-align: center;
  color: #ffffff;
  font-size: 0.875rem;
  background: linear-gradient(135deg, var(--green-left) 0%, var(--green-right) 100%);
}

.guest-banner--anonymous-age {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.guest-banner__button {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 4px 12px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.guest-banner__button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.login-success-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 70;
}
@media (min-width: 900px) {
  .login-success-modal {
    padding: 24px;
  }
}

.login-success-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.login-success-modal__backdrop {
  position: absolute;
  inset: 0;
}

.login-success-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e7e3de;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 900px) {
  .login-success-modal__dialog {
    border-radius: 20px;
    padding: 24px;
    gap: 16px;
  }
}

.login-success-modal__message {
  margin: 0;
  color: #4f4f4f;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.6;
}
@media (min-width: 900px) {
  .login-success-modal__message {
    font-size: 1.375rem;
  }
}

.login-success-modal__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.login-success-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--green-left) 0%, var(--green-right) 100%);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  transition: opacity 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.login-success-modal__close:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.login-success-modal__close:focus-visible {
  outline: 2px solid #7fae63;
  outline-offset: 2px;
}

.text-link {
  color: var(--green-left);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.text-link:hover {
  opacity: 0.8;
}

.guest-banner__link {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 700;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

main {
  display: block;
  flex: 1;
}

.section {
  padding-bottom: 72px;
}

.section__inner {
  width: 100%;
  margin: 0 auto;
  padding: 0 10px;
}

.section__heading h2 {
  margin: 0;
  font-size: 2rem;
  text-shadow: 0 3px 0 #fff, 3px 0 0 #fff, 0 -3px 0 #fff, -3px 0 0 #fff;
}

.section__subtitle {
  font-size: inherit;
  text-shadow: 0 3px 0 #fff, 3px 0 0 #fff, 0 -3px 0 #fff, -3px 0 0 #fff;
}

.section__heading--highlight {
  padding: 6px 0 12px;
}

.section__heading--highlight h1 {
  position: relative;
  display: inline-block;
}

.section__heading--highlight h1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../image/highlighter-pen.fb59c07d7b61.png") no-repeat left center;
  opacity: 0.2;
  z-index: -1;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px;
}
@media (min-width: 900px) {
  .header {
    padding: 20px 20px;
  }
}

.logo img {
  width: 120px;
}
@media (min-width: 900px) {
  .logo img {
    width: 160px;
  }
}

.header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--soft-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
}
@media (min-width: 900px) {
  .menu {
    width: 72px;
    height: 72px;
    font-size: 12px;
    background: #ffffff;
  }
}

.menu__lines {
  display: block;
  width: 28px;
  height: 14px;
  position: relative;
}

.menu__lines::before,
.menu__lines::after {
  content: "";
  background: #000;
  height: 4px;
  border-radius: 999px;
  position: absolute;
  left: 0;
  right: 0;
}

.menu__lines::before {
  top: 0;
}

.menu__lines::after {
  bottom: 0;
}

.menu__text {
  line-height: 1;
  margin-top: 4px;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  display: flex;
  justify-content: flex-end;
  z-index: 50;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-panel {
  background: #ffffff;
  width: calc(100% - 70px);
  height: 100%;
  padding: 24px;
  position: relative;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
@media (min-width: 900px) {
  .menu-panel {
    width: 400px;
  }
}

.menu-overlay.is-open .menu-panel {
  transform: translateX(0);
}

.menu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #f1f1f1;
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
}

.menu-panel__inner {
  height: 100%;
  padding-top: 64px;
  box-sizing: border-box;
}

.menu-actions {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.menu-actions form {
  margin: 0;
}

.menu-actions form .menu-action {
  width: 100%;
}

.menu-action {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 16px;
  background: #ffffff;
  color: var(--text);
  border: 1px solid #e7e3de;
  font-size: inherit;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu-action--outline {
  background: linear-gradient(135deg, var(--green-left) 0%, var(--green-right) 100%);
  color: #ffffff;
  border: none;
}

.menu-action:hover {
  transform: translateY(-1px);
}

.menu-nav {
  height: 100%;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.menu-item {
  border-bottom: 1px solid #e7e3de;
  padding-bottom: 12px;
}

.menu-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: inherit;
  color: var(--text);
  padding: 4px 0;
  transition: color 0.2s ease;
}

.menu-link:hover {
  color: var(--tag-green);
}

.menu-link.menu-link--current {
  color: var(--tag-green);
  font-weight: 700;
}

.footer__curve {
  position: relative;
  padding: 124px 0 28px;
  overflow: hidden;
}

.footer__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.footer__mascots {
  display: flex;
  justify-content: center;
  position: relative;
}

.footer__social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 auto 20px;
}
@media (min-width: 900px) {
  .footer__social {
    gap: 12px;
    margin: 0 auto 22px;
  }
}

.footer__social-link {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  transition: transform 0.2s ease;
}
@media (min-width: 900px) {
  .footer__social-link {
    width: 56px;
    height: 56px;
  }
}

.footer__social-link:hover {
  transform: translateY(-2px);
}

.footer__social-link:focus-visible {
  outline: 2px solid #7fae63;
  outline-offset: 2px;
}

.footer__social-link img {
  width: 100%;
  height: auto;
  display: block;
}

.footer__mascots::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 40px;
  width: 100%;
  min-width: 2200px;
  height: 1100px;
  background: var(--soft-gray);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: -1;
}
@media (min-width: 900px) {
  .footer__mascots::before {
    background: #ffffff;
  }
}

.footer__mascots img {
  width: 100%;
  min-width: 220px;
  margin-top: -100px;
}
@media (min-width: 900px) {
  .footer__mascots img {
    margin-top: -100px;
    width: 520px;
  }
}

.footer--with-social .footer__mascots img {
  margin-top: -4px;
}

.footer__copy {
  margin: 10px 0 0;
  font-size: 0.625rem;
}

body.is-auth-required-modal-open {
  overflow: hidden;
}

.auth-required-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 70;
}
@media (min-width: 900px) {
  .auth-required-modal {
    padding: 24px;
  }
}

.auth-required-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.auth-required-modal__backdrop {
  position: absolute;
  inset: 0;
}

.auth-required-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e7e3de;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 900px) {
  .auth-required-modal__dialog {
    border-radius: 20px;
    padding: 24px;
    gap: 16px;
  }
}

.auth-required-modal__title {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.5;
}

.auth-required-modal__message {
  margin: 0;
  color: #4f4f4f;
  font-size: 0.875rem;
  line-height: 1.7;
}

.auth-required-modal__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.auth-required-modal__button {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.auth-required-modal__button:hover {
  transform: translateY(-1px);
}

.auth-required-modal__button:focus-visible {
  outline: 2px solid #7fae63;
  outline-offset: 2px;
}

.auth-required-modal__button--login {
  background: #ffffff;
  color: var(--text);
  border: 1px solid #d8d3cd;
}

.auth-required-modal__button--register {
  background: linear-gradient(135deg, var(--green-left) 0%, var(--green-right) 100%);
  color: #ffffff;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 64px;
}

.auth-required-modal__register-desc {
  display: inline-flex;
  align-items: center;
  position: relative;
  font-size: 0.625rem;
  line-height: 1.2;
}
@media (min-width: 900px) {
  .auth-required-modal__register-desc {
    font-size: 0.75rem;
  }
}

.auth-required-modal__register-title {
  font-size: 0.875rem;
  line-height: 1.2;
}
@media (min-width: 900px) {
  .auth-required-modal__register-title {
    font-size: 1rem;
  }
}

.auth-required-modal__register-desc .heading-marker {
  font-size: inherit;
  margin-bottom: 0;
  padding: 0 4px;
}

.auth-required-modal__button--register:hover {
  background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(135deg, var(--green-left) 0%, var(--green-right) 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: var(--text);
}

.auth-required-modal__button--login:hover {
  border-color: transparent;
  background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(135deg, var(--green-left) 0%, var(--green-right) 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

@media (min-width: 900px) {
  .auth-required-modal__register-desc::before,
  .auth-required-modal__register-desc::after {
    content: "";
    width: 18px;
    height: 1px;
    background: currentColor;
    opacity: 0.7;
  }
  .auth-required-modal__register-desc::before {
    transform: rotate(-115deg);
  }
  .auth-required-modal__register-desc::after {
    transform: rotate(115deg);
  }
}
.auth-required-modal__back-link {
  margin: 0 auto;
  padding: 0;
  border: none;
  background: transparent;
  color: #6b6b6b;
  font-size: 0.875rem;
  text-decoration: underline;
  cursor: pointer;
}

.auth-required-modal__back-link:focus-visible {
  outline: 2px solid #7fae63;
  outline-offset: 2px;
}

body.is-menu-open {
  overflow: hidden;
}

.game-start {
  width: 100%;
  max-width: 800px;
  padding: 24px 0 64px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.game-start__intro {
  width: 100%;
  padding-bottom: 24px;
}

.game-start__hero {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.game-start__card {
  width: 100%;
  background: #ffffff;
  border-radius: 20px;
  padding: 10px;
}
@media (min-width: 900px) {
  .game-start__card {
    padding: 60px;
  }
}

.game-start__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.game-start__category {
  margin: 0;
  font-size: 0.75rem;
  color: #5f6f69;
  line-height: 1.7;
}
@media (min-width: 900px) {
  .game-start__category {
    font-size: 0.875rem;
  }
}

.game-start__badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.625rem;
  line-height: 120%;
  margin-top: 0;
}

.game-start__badge--green {
  background: #57a676;
}

.game-start__badge--lime {
  background: #93c61f;
}

.game-start__badge--speed {
  background: #ffffff;
  color: #57a676;
  border: 1px solid #57a676;
}

.game-start__badge--stepup {
  background: #ffffff;
  color: #93c61f;
  border: 1px solid #93c61f;
}

.game-start__intro .heading-marker {
  display: block;
  width: -moz-fit-content;
  width: fit-content;
  max-width: 100%;
}

.game-start__intro .section__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.game-start__intro .section__heading--highlight h1 {
  display: block;
}

.game-start__title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.game-favorite {
  margin-left: auto;
  display: flex;
}

.game-favorite__form {
  margin: 0;
}

.game-favorite-button {
  border: 1px solid var(--tag-green);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--tag-green);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
}
.game-favorite-button:hover {
  background: #ffffff;
  color: var(--tag-green);
}
.game-favorite-button:focus-visible {
  outline: 2px solid #7fae63;
  outline-offset: 2px;
}
@media (min-width: 900px) {
  .game-favorite-button {
    padding: 8px 16px;
    font-size: 0.875rem;
  }
}

.game-favorite-button.is-active {
  background: #ffffff;
  color: var(--text);
  border-color: #d8d3cd;
}

.game-start__puzzle {
  display: flex;
  justify-content: center;
  margin: 12px 0 18px;
}

.game-start__puzzle img {
  width: 100%;
  max-width: 500px;
  height: auto;
  display: block;
}

.game-start__thumbnail-description {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0;
  padding: 0 8px 18px;
}
@media (min-width: 900px) {
  .game-start__thumbnail-description {
    padding: 0 0 18px;
  }
}

.game-start__thumbnail-description-text {
  line-height: 1.7;
}
@media (min-width: 900px) {
  .game-start__thumbnail-description-text {
    font-size: 0.875rem;
  }
}

.game-start__settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: var(--soft-gray);
  border-radius: 10px;
  padding: 20px;
}
@media (min-width: 900px) {
  .game-start__settings {
    padding: 40px;
  }
}

.game-start__archive {
  margin-top: 16px;
  background-color: var(--soft-gray);
  border-radius: 10px;
  padding: 20px;
}
@media (min-width: 900px) {
  .game-start__archive {
    padding: 40px;
  }
}

.game-start__archive-text {
  text-align: center;
  font-size: 0.75rem;
  line-height: 1.7;
  margin: 0;
}
@media (min-width: 900px) {
  .game-start__archive-text {
    font-size: 0.875rem;
  }
}

@keyframes game-start-deferred-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}
.game-start__deferred-block {
  width: 100%;
}

.game-start__deferred-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  display: grid;
  gap: 16px;
}
@media (min-width: 900px) {
  .game-start__deferred-card {
    padding: 24px;
  }
}

.game-start__deferred-card--records {
  min-height: 640px;
}

.game-start__deferred-line,
.game-start__deferred-chart,
.game-start__deferred-bar,
.game-start__deferred-row {
  background: linear-gradient(90deg, #edf2ee 20%, #f8faf8 50%, #edf2ee 80%);
  background-size: 200% 100%;
  animation: game-start-deferred-shimmer 1.6s linear infinite;
}

.game-start__deferred-line {
  height: 16px;
  border-radius: 999px;
}

.game-start__deferred-line--title {
  width: min(220px, 72%);
  height: 24px;
}

.game-start__deferred-line--legend {
  width: min(180px, 56%);
}

.game-start__deferred-chart {
  min-height: 240px;
  border-radius: 20px;
}

.game-start__deferred-bars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  min-height: 180px;
}

.game-start__deferred-bar {
  display: block;
  border-radius: 10px 10px 0 0;
}
.game-start__deferred-bar:nth-child(1) {
  height: 48%;
}
.game-start__deferred-bar:nth-child(2) {
  height: 78%;
}
.game-start__deferred-bar:nth-child(3) {
  height: 62%;
}
.game-start__deferred-bar:nth-child(4) {
  height: 92%;
}
.game-start__deferred-bar:nth-child(5) {
  height: 56%;
}

.game-start__deferred-table {
  display: grid;
  gap: 10px;
}

.game-start__deferred-row {
  display: block;
  height: 54px;
  border-radius: 12px;
}

.game-start__deferred-text {
  margin: 0;
  color: #64726c;
  font-size: 0.875rem;
  text-align: center;
}

.deferred-block__error {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 20px;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.deferred-block__error-text {
  margin: 0;
  color: #5f6f69;
}

.deferred-block__retry {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--green-left), var(--green-right));
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.game-start__setting-title {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  padding-bottom: 20px;
}
@media (min-width: 900px) {
  .game-start__setting-title {
    padding-bottom: 40px;
  }
}

.game-start__setting {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: center;
}
@media (min-width: 900px) {
  .game-start__setting {
    grid-template-columns: 78px 1fr;
  }
}

.game-start__setting-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-start__mode-description {
  padding-top: 4px;
}

.game-start__mode-description-text {
  font-size: 0.75rem;
  line-height: 1.7;
}
@media (min-width: 900px) {
  .game-start__mode-description-text {
    font-size: 0.875rem;
  }
}

.game-start__select {
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  border: 1px solid #e7e3de;
  background: #ffffff;
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  text-align: center;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.4;
  transition: background 0.2s ease, color 0.2s ease;
}

.game-start__select.is-active {
  background: var(--tag-green);
  color: #ffffff;
  border-color: transparent;
}

.game-start__select:not(.is-active):hover {
  background: var(--tag-green);
  color: #ffffff;
  border-color: transparent;
}

.game-start__select.is-active:hover {
  background: var(--tag-green);
  color: #ffffff;
  border-color: transparent;
}

.game-start__cta {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.game-start__cta--archive {
  margin-top: 0;
}

.game-start__start {
  width: 80%;
  min-width: 240px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  background-image: linear-gradient(135deg, var(--green-left) 0%, var(--green-right) 100%), linear-gradient(135deg, var(--green-left) 0%, var(--green-right) 100%);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.8;
  cursor: pointer;
  transition: color 0.2s ease, background-image 0.2s ease;
}

.game-start__start:hover {
  background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(135deg, var(--green-left) 0%, var(--green-right) 100%);
  color: var(--green-left);
}

.game-start__start:focus-visible {
  outline: 2px solid #7fae63;
  outline-offset: 2px;
}

.game-start__records {
  width: 100%;
  margin-top: 28px;
  padding: 0 10px;
  display: flex;
  justify-content: center;
}
@media (min-width: 900px) {
  .game-start__records {
    padding: 0;
  }
}

.game-start__records-inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.game-start__records-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.game-start__records-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.game-start__records-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: var(--soft-gray);
}

.game-start__records-tabs.game-start__records-tabs--single {
  grid-template-columns: 1fr;
}

.game-start__records-tab {
  background: #ffffff;
  border-radius: 999px;
  padding: 8px 12px;
  text-align: center;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text);
}
@media (min-width: 900px) {
  .game-start__records-tab {
    font-size: 1rem;
  }
}

.game-start__records-tab:hover {
  background: var(--tag-green);
  color: #ffffff;
}

#records-tab-user:checked ~ .game-start__records-tabs label[for=records-tab-user],
#records-tab-all:checked ~ .game-start__records-tabs label[for=records-tab-all] {
  background: var(--tag-green);
  color: #ffffff;
}

#records-tab-user:focus-visible ~ .game-start__records-tabs label[for=records-tab-user],
#records-tab-all:focus-visible ~ .game-start__records-tabs label[for=records-tab-all] {
  outline: 2px solid #7fae63;
  outline-offset: 2px;
}

.game-start__records-panels {
  width: 100%;
}

.game-start__records-panel {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 900px) {
  .game-start__records-panel {
    border-radius: 16px;
    padding: 20px;
  }
}

.game-start__records-title {
  margin: 0;
  font-size: 1.75rem;
  text-align: center;
}
@media (min-width: 900px) {
  .game-start__records-title {
    text-align: left;
  }
}

.game-start__trend-text {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #5f6f69;
}

.game-start__trend-chart {
  width: 100%;
}

.game-start__trend-chart svg {
  width: 100%;
  height: auto;
  display: block;
}

.game-start__trend-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}
@media (min-width: 640px) {
  .game-start__trend-legend {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.game-start__trend-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.game-start__trend-legend-item--current .game-start__trend-legend-label {
  font-weight: 800;
}

.game-start__trend-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.game-start__trend-legend-label {
  min-width: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #4f5d57;
}

.game-start__trend-empty {
  margin: 0;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: #6d6d6d;
  border: 1px solid #e7e3de;
  border-radius: 12px;
}

.game-start__trend-grid {
  stroke: #dfe6dc;
  stroke-width: 1;
}

.game-start__trend-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.62;
}

.game-start__trend-line--current {
  stroke-width: 4;
  opacity: 1;
}

.game-start__trend-point {
  fill: #ffffff;
  stroke-width: 3;
  opacity: 0.78;
}

.game-start__trend-point--current {
  opacity: 1;
}

.game-start__trend-axis-label,
.game-start__trend-date-label {
  fill: #5f6f69;
  font-size: 14px;
  font-weight: 700;
}

.game-finish__trend-series--1 {
  stroke: #43b172;
  background: #43b172;
}

.game-finish__trend-series--2 {
  stroke: #f39c12;
  background: #f39c12;
}

.game-finish__trend-series--3 {
  stroke: #e95f2d;
  background: #e95f2d;
}

.game-finish__trend-series--4 {
  stroke: #4f8cc9;
  background: #4f8cc9;
}

.game-finish__trend-series--5 {
  stroke: #8e6ccf;
  background: #8e6ccf;
}

.game-finish__trend-series--6 {
  stroke: #00a39b;
  background: #00a39b;
}

.game-finish__trend-series--7 {
  stroke: #6f7b35;
  background: #6f7b35;
}

.game-start__records-locked-message {
  margin: 0;
  padding: 18px 14px;
  background: #ffffff;
  text-align: center;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #6d6d6d;
}

.game-start__records-locked-link {
  color: var(--tag-green);
  font-weight: 700;
  text-decoration: underline;
}

.game-start__record-head {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 10px;
  align-items: center;
  background: var(--soft-gray);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.625rem;
}
@media (min-width: 768px) {
  .game-start__record-head {
    grid-template-columns: 70px 140px 120px repeat(2, 1fr);
    font-size: 0.75rem;
  }
}

.game-start__record-head.game-start__record-head--no-accuracy {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .game-start__record-head.game-start__record-head--no-accuracy {
    grid-template-columns: 70px 140px 120px 1fr;
  }
}

.game-start__record-head .game-start__record-label {
  justify-content: center;
  text-align: center;
}

@media (min-width: 768px) {
  .game-start__records-panel--user .game-start__record-head {
    grid-template-columns: 70px 140px 120px repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .game-start__records-panel--user .game-start__record-head.game-start__record-head--no-accuracy {
    grid-template-columns: 70px 140px 120px 1fr;
  }
}

.game-start__record-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.game-start__record-list.game-start__record-list--scroll {
  padding-right: 4px;
  overflow-y: auto;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.game-start__record-item.game-start__record-item--current {
  background: linear-gradient(135deg, var(--green-left) 0%, var(--green-right) 100%);
  color: #ffffff;
  border-color: transparent;
}

.game-start__record-item.game-start__record-item--current .game-start__record-cell:first-child {
  color: var(--text);
}

.game-start__record-item {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 10px;
  align-items: center;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid #e7e3de;
  background: #ffffff;
}
@media (min-width: 768px) {
  .game-start__record-item {
    grid-template-columns: 70px 140px 120px repeat(2, 1fr);
  }
}

.game-start__record-item.game-start__record-item--no-accuracy {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .game-start__record-item.game-start__record-item--no-accuracy {
    grid-template-columns: 70px 140px 120px 1fr;
  }
}

@media (min-width: 768px) {
  .game-start__records-panel--user .game-start__record-item {
    grid-template-columns: 70px 140px 120px repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .game-start__records-panel--user .game-start__record-item.game-start__record-item--no-accuracy {
    grid-template-columns: 70px 140px 120px 1fr;
  }
}

.game-start__record-cell {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  line-height: 1.5;
  justify-content: center;
  text-align: center;
}

.game-start__record-list--ranking .game-start__record-cell:first-child {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  justify-content: center;
  justify-self: center;
  font-size: 0.75rem;
}

.game-start__record-item--current .game-start__record-cell:first-child {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  justify-content: center;
  justify-self: center;
  font-size: 0.75rem;
  background: #f2f2f2;
  border: 1px solid #e0e0e0;
  color: var(--text);
}

.game-start__record-list--ranking .game-start__record-item:nth-child(-n+3) .game-start__record-cell:first-child {
  border-radius: 999px;
  color: #ffffff;
}

.game-start__record-list--ranking .game-start__record-item:nth-child(1) .game-start__record-cell:first-child {
  background: linear-gradient(135deg, #fff4b0 0%, #d4af37 45%, #b8860b 100%);
}

.game-start__record-list--ranking .game-start__record-item:nth-child(2) .game-start__record-cell:first-child {
  background: linear-gradient(135deg, #f5f7fa 0%, #c0c6cf 50%, #8f96a1 100%);
}

.game-start__record-list--ranking .game-start__record-item:nth-child(3) .game-start__record-cell:first-child {
  background: linear-gradient(135deg, #f2c7a4 0%, #c47c4f 50%, #9b5a30 100%);
}

.game-start__record-list--ranking .game-start__record-item:nth-child(n+4):nth-child(-n+10) .game-start__record-cell:first-child {
  background: #f2f2f2;
  border: 1px solid #e0e0e0;
}

.game-start__distribution {
  border-top: 1px solid #e7e3de;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-finish__note {
  font-size: 0.625rem;
  color: #7a7570;
  text-align: right;
}

.game-start__distribution-title {
  margin: 0;
  font-size: 1rem;
  text-align: center;
}
@media (min-width: 900px) {
  .game-start__distribution-title {
    text-align: left;
  }
}

.game-start__distribution-chart {
  display: flex;
  flex-direction: column;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.game-start__distribution-scroll {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: -moz-max-content;
  width: max-content;
  min-width: 680px;
  position: relative;
}
@media (min-width: 900px) {
  .game-start__distribution-scroll {
    width: 100%;
    min-width: 100%;
  }
}

.game-start__distribution-graph {
  position: relative;
  border-radius: 12px;
  padding: 14px 0;
  width: 100%;
  --graph-height: 180px;
}

.game-start__distribution-empty {
  margin: 0;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: #6d6d6d;
}

.game-start__distribution-graph::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  height: 1px;
  background: #d5d5d5;
  z-index: 1;
}

.game-start__distribution-graph::after {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 28px;
  width: 1px;
  background: #d5d5d5;
  z-index: 1;
}

.game-start__distribution-bars {
  list-style: none;
  margin: 0;
  padding: 0 4px 0 10px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 300px;
  width: 100%;
}

.game-start__distribution-bar {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  position: relative;
  z-index: 2;
  overflow: visible;
}

.game-start__distribution-bar-fill {
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, var(--green-left), var(--green-right));
  border-radius: 6px 6px 4px 4px;
  opacity: 0;
  will-change: height, opacity;
}

.game-start__distribution-bar--highlight .game-start__distribution-bar-fill {
  background: #e53935;
}

.game-start__distribution-bar-label {
  font-size: 0.625rem;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  transform: translateY(6px);
}

.game-start__distribution-axis {
  display: flex;
  justify-content: space-between;
  font-size: 0.625rem;
  width: 100%;
}

.game-start__distribution-axis-y,
.game-start__distribution-axis-x {
  display: inline-flex;
  align-items: center;
}

.game-start__distribution-axis-x {
  position: absolute;
  bottom: 0;
  right: 5px;
}

.game-start__distribution-axis-y {
  position: absolute;
  top: -2px;
  left: 5px;
}

body.is-distribution-animated .game-start__distribution-bar-fill {
  animation: distributionGrow 0.06s cubic-bezier(0.33, 1, 0.68, 1) forwards;
  animation-delay: calc(var(--bar-index, 0) * 0.06s);
}

body.is-distribution-done .game-start__distribution-bar-fill {
  height: var(--bar-height);
  opacity: 1;
  animation: none;
}

@keyframes distributionGrow {
  from {
    height: 0;
    opacity: 0;
  }
  to {
    height: var(--bar-height);
    opacity: 1;
  }
}
body.is-anonymous-age-modal-open {
  overflow: hidden;
}

.anonymous-age-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(15, 20, 18, 0.5);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 72;
}
@media (min-width: 900px) {
  .anonymous-age-modal {
    padding: 24px;
  }
}

.anonymous-age-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.anonymous-age-modal__backdrop {
  position: absolute;
  inset: 0;
}

.anonymous-age-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  background: #ffffff;
  border: 1px solid #e7e3de;
  border-radius: 18px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 900px) {
  .anonymous-age-modal__dialog {
    border-radius: 22px;
    padding: 28px 24px;
    gap: 16px;
  }
}

.anonymous-age-modal__title {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.5;
}

.anonymous-age-modal__message {
  margin: 0;
  color: #4f4f4f;
  font-size: 0.875rem;
  line-height: 1.7;
}

.anonymous-age-modal__message-highlight {
  display: block;
  margin-top: 8px;
  color: #f36b21;
  font-weight: 700;
}

.anonymous-age-modal__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.anonymous-age-modal__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.anonymous-age-modal__label {
  font-size: 0.875rem;
  font-weight: 700;
}

.anonymous-age-modal__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d8d3cd;
  border-radius: 12px;
  background: #ffffff;
  font-size: 1rem;
}

.anonymous-age-modal__input:focus-visible {
  outline: 2px solid #7fae63;
  outline-offset: 2px;
}

.anonymous-age-modal__error {
  min-height: 1.6em;
  margin: 0;
  color: #c43d3d;
  font-size: 0.75rem;
  line-height: 1.6;
}

.anonymous-age-modal__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.anonymous-age-modal__submit {
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.anonymous-age-modal__submit {
  background: linear-gradient(135deg, var(--green-left) 0%, var(--green-right) 100%);
  color: #ffffff;
  cursor: pointer;
}

.anonymous-age-modal__submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.anonymous-age-modal__submit:focus-visible {
  outline: 2px solid #7fae63;
  outline-offset: 2px;
}