@font-face {
  font-family: "Presentation";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-1Thin.woff2") format("woff2");
  font-weight: 100;
  font-display: swap;
}

@font-face {
  font-family: "Presentation";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-2ExtraLight.woff2") format("woff2");
  font-weight: 200;
  font-display: swap;
}

@font-face {
  font-family: "Presentation";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-3Light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Presentation";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-4Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Presentation";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-5Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Presentation";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-6SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Presentation";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-7Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Presentation";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-8ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "Presentation";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/2404@1.0/Freesentation-9Black.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  position: fixed;
  inset: 0;
  width: 100%;
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #05060a;
  color: #f4f6fb;
  touch-action: manipulation;
  font-family: "Presentation", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

button,
input {
  font-family: inherit;
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: default;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 2px;
}

.stage {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  position: relative;
  background: #000;
  overflow: hidden;
}

.device {
  position: relative;
  width: min(420px, 100%);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #000;
}

@media (min-width: 560px) {
  .device {
    height: min(860px, calc(100dvh - 40px));
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  }
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding:
    calc(max(28px, env(safe-area-inset-top, 0px)) + 22px)
    22px
    max(20px, env(safe-area-inset-bottom));
  animation: rise 0.35s ease;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.splash {
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.hero,
.center-block {
  text-align: center;
}

.rules .hero {
  margin-top: 7vh;
}

.mark {
  color: #fff;
}

.word {
  position: relative;
  display: inline-block;
  margin: 16px 0 0;
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.brand .mark {
  display: block;
  flex: none;
}

.brand .word {
  margin: 0;
  font-size: 34px;
  line-height: 1;
}

.skip-hint,
.install-copy,
.pin-help,
.empty,
.pin-error {
  color: rgba(232, 236, 245, 0.72);
  font-size: 14px;
  font-weight: 500;
}

.skip-hint {
  position: absolute;
  bottom: max(28px, env(safe-area-inset-bottom));
  margin: 0;
}

.warning {
  margin: 28px auto 0;
  max-width: 280px;
  white-space: pre-line;
  color: #ff5d72;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -0.03em;
}

.dock {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.agree {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.agree input {
  position: absolute;
  opacity: 0;
  width: 22px;
  height: 22px;
  margin: 0;
}

.box {
  width: 22px;
  height: 22px;
  border: 1.5px solid rgba(255, 255, 255, 0.62);
  border-radius: 4px;
  display: grid;
  place-items: center;
  flex: none;
}

.agree input:checked + .box {
  background: #f25477;
  border-color: #f25477;
}

.agree input:checked + .box::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.btn-pink,
.btn-slate {
  border: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
}

.btn-pink,
.btn-slate {
  width: 100%;
  height: 54px;
  border-radius: 12px;
}

.btn-pink {
  background: #f25477;
  letter-spacing: 0.02em;
}

.btn-pink:disabled {
  opacity: 0.38;
}

.btn-slate {
  background: #6d7f96;
}

.btn-slate:disabled {
  background: #323c4b;
  color: rgba(255, 255, 255, 0.45);
}

.top {
  text-align: center;
  flex: none;
}

.round-kicker {
  margin: 12px 0 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.scroll {
  flex: 1;
  overflow: auto;
  min-height: 0;
}

.scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.foot {
  flex: none;
  padding-top: 12px;
}

.center-block {
  margin: auto;
}

.track,
.indeterminate {
  width: min(220px, 68%);
  height: 2px;
  margin: 28px auto 16px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.track > span,
.indeterminate > span {
  display: block;
  height: 100%;
  background: #fff;
}

.indeterminate {
  position: relative;
}

.indeterminate > span {
  position: absolute;
  width: 40%;
  animation: load 0.9s ease-in-out infinite;
}

@keyframes load {
  from { left: -40%; }
  to { left: 100%; }
}

.pin-help {
  margin-top: 18px;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 16px;
  min-height: 28px;
  margin-top: 22px;
}

.dots span {
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
}

.dots span.is-in {
  background: #fff;
}

.is-shake {
  animation: shake 0.35s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  75% { transform: translateX(7px); }
}

.pin-error {
  min-height: 22px;
  margin: 12px 0 0;
  color: #fff;
  text-align: center;
}

.pad {
  width: min(320px, 100%);
  margin: auto auto 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 12px;
}

.pad button {
  height: 58px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  font-size: 26px;
  font-weight: 500;
}

.pad button:active {
  background: rgba(255, 255, 255, 0.08);
}

.pad button:focus,
.pad button:focus-visible {
  outline: none;
}

.screen.plain {
  background: #000;
  color: #fff;
}

.slots {
  position: relative;
  width: min(300px, 100%);
  margin: 36px auto 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.decoy {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.device.keyboard .top .mark {
  width: 48px;
  height: auto;
}

.device.keyboard .slots {
  margin-top: 14px;
  gap: 12px;
}

.device.keyboard .screen {
  padding-top: calc(max(16px, env(safe-area-inset-top, 0px)) + 12px);
}

.slot {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.slot .no {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1.5px solid #fff;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
}

.slot-input {
  width: 100%;
  margin: 0;
  padding: 8px 2px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 500;
}

.slot-input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.slot-input:focus {
  outline: none;
  border-bottom-color: #fff;
}

.plain .foot {
  margin-top: auto;
}

.plain .btn-slate {
  background: #fff;
  color: #000;
  border-radius: 10px;
  height: 48px;
}

.plain .btn-slate:disabled {
  background: transparent;
  color: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.sheet {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 6px 0 8px;
}

.grade-block {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 14px;
  align-items: stretch;
}

.grade-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #fff;
  border-radius: 16px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  min-height: 40px;
}

.grade-rows {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 3px 0;
}

.score-row {
  display: grid;
  grid-template-columns: 4.8em minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  height: 30px;
}

.score-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 500;
  line-height: 30px;
}

.score-meter {
  height: 28px;
  min-width: 0;
}

.score-fill {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  box-sizing: border-box;
  height: 100%;
  max-width: 100%;
  padding: 0 8px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.empty {
  text-align: center;
  margin: 28px 12px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
  }
}
