/* zeroad-vfs:/styles.css */
:root {
  color-scheme: dark;
  font-family:
    Pretendard,
    "Noto Sans KR",
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #050611;
  color: #f8fafc;
}
* {
  box-sizing: border-box;
}
html,
body,
#game-wrap {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
body {
  background: #050611;
}
button {
  font: inherit;
}
#start-btn {
  padding: clamp(.75rem, 2vw, 1rem) clamp(1.75rem, 5vw, 2.5rem);
  border: 3px solid #000;
  border-radius: .5rem;
  background: #fbbf24;
  color: #000;
  font-family: system-ui, sans-serif;
  font-size: clamp(.95rem, 2.5vw, 1.08rem);
  font-weight: 800;
  box-shadow: 0 6px 0 #b45309, 0 6px 0 3px #000;
  cursor: pointer;
  transition:
    transform .1s ease,
    box-shadow .1s ease,
    filter .1s ease;
}
#start-btn:hover {
  filter: brightness(1.08);
}
#start-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 5px;
}
#start-btn:active {
  transform: translateY(6px);
  box-shadow: 0 0 0 #b45309, 0 0 0 3px #000;
}
.hidden {
  display: none !important;
}
#start-screen *:not(#start-logo):not(#start-btn):not(:has(#start-logo)):not(:has(#start-btn)) {
  display: none !important;
}
#start-screen::before,
#start-screen::after,
#start-screen *:not(#start-logo):not(#start-btn)::before,
#start-screen *:not(#start-logo):not(#start-btn)::after {
  content: none !important;
  display: none !important;
}
#start-screen #start-logo {
  display: block !important;
}
#start-screen #start-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}
#game-wrap {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(109, 40, 217, .14),
      transparent 40%),
    #050611;
}
#game {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hud-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}
.glass {
  background:
    linear-gradient(
      145deg,
      rgba(16, 17, 38, .88),
      rgba(6, 7, 20, .72));
  border: 1px solid rgba(196, 181, 253, .22);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(15px);
}
.gpa-card {
  position: absolute;
  left: 20px;
  top: 18px;
  width: 190px;
  min-height: 104px;
  border-radius: 22px;
  padding: 13px 17px;
  overflow: visible;
}
.gpa-label {
  color: #a8b0c4;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
}
.gpa-row {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  min-height: 65px;
}
#gpa-number {
  display: inline-block;
  font-size: 42px;
  line-height: .9;
  letter-spacing: -2px;
  transition:
    color .18s ease,
    font-size .22s ease,
    transform .16s ease;
  text-shadow: 0 0 22px rgba(255, 255, 255, .08);
}
#gpa-number.elite {
  color: #ff5d6c;
  text-shadow: 0 0 26px rgba(255, 70, 88, .34);
}
#gpa-number.bump {
  transform: scale(1.18);
}
.gpa-row span {
  color: #64748b;
  font-size: 11px;
  padding-bottom: 5px;
}
.gpa-delta {
  position: absolute;
  right: 14px;
  bottom: 8px;
  min-height: 18px;
  color: #fb7185;
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .14s ease, transform .14s ease;
}
.gpa-delta.show {
  opacity: 1;
  transform: translateY(0);
}
.gpa-delta.plus {
  color: #facc15;
}
.chapter-card {
  position: absolute;
  right: 20px;
  top: 18px;
  width: 245px;
  min-height: 104px;
  border-radius: 22px;
  padding: 13px 18px;
  text-align: center;
}
.chapter-title {
  color: #a78bfa;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .24em;
}
.semester-title {
  margin-top: 4px;
  font-size: 19px;
  font-weight: 900;
}
.turn-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}
.turn-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(196, 181, 253, .55);
  background: rgba(124, 58, 237, .65);
  box-shadow: 0 0 13px rgba(139, 92, 246, .45);
}
.turn-dot.used {
  background: rgba(255, 255, 255, .035);
  border-color: rgba(148, 163, 184, .2);
  box-shadow: none;
}
.chapter-card small {
  display: block;
  margin-top: 7px;
  color: #64748b;
  font-size: 9px;
}
.boss-card {
  position: absolute;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  width: 340px;
  min-height: 104px;
  border-radius: 22px;
  padding: 12px 18px;
  text-align: center;
}
.boss-card small {
  color: #c084fc;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
}
.boss-card b {
  display: block;
  margin-top: 3px;
  font-size: 17px;
}
.boss-hp {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 9px;
}
.hp-slot {
  width: 29px;
  height: 13px;
  border-radius: 4px;
  background:
    linear-gradient(
      90deg,
      #f43f5e,
      #fb7185);
  box-shadow: 0 0 10px rgba(244, 63, 94, .25);
}
.hp-slot.empty {
  background: rgba(255, 255, 255, .055);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, .08);
}
.boss-card em {
  display: block;
  margin-top: 7px;
  color: #94a3b8;
  font-size: 9px;
  font-style: normal;
}
.events-panel {
  position: absolute;
  z-index: 15;
  top: 138px;
  right: 18px;
  bottom: 20px;
  width: 375px;
  display: flex;
  flex-direction: column;
  border-radius: 25px;
  padding: 16px;
  background:
    linear-gradient(
      155deg,
      rgba(19, 15, 47, .94),
      rgba(6, 7, 20, .91));
  border: 1px solid rgba(167, 139, 250, .28);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .38), 0 0 35px rgba(124, 58, 237, .09);
  backdrop-filter: blur(16px);
}
.events-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 3px 14px;
}
.events-head span {
  display: block;
  color: #a78bfa;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .18em;
}
.events-head b {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}
.events-turns {
  color: #c4b5fd;
  letter-spacing: 5px;
  font-size: 14px;
}
.event-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  padding-right: 3px;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 92, 246, .45) transparent;
}
.event-card {
  appearance: none;
  width: 100%;
  border: 1px solid rgba(196, 181, 253, .15);
  color: inherit;
  display: grid;
  grid-template-columns: 48px 1fr 78px;
  gap: 11px;
  align-items: center;
  min-height: 88px;
  padding: 11px;
  border-radius: 18px;
  text-align: left;
  cursor: pointer;
  background:
    linear-gradient(
      145deg,
      rgba(31, 26, 68, .66),
      rgba(9, 10, 29, .74));
  transition:
    transform .14s ease,
    border-color .14s ease,
    box-shadow .14s ease,
    opacity .14s ease;
}
.event-card:hover:not(:disabled) {
  transform: translateX(-4px);
  border-color: rgba(196, 181, 253, .64);
  box-shadow: 0 0 24px rgba(139, 92, 246, .14);
}
.event-card:disabled {
  opacity: .38;
  cursor: default;
  filter: grayscale(.25);
}
.event-card.exam {
  border-color: rgba(250, 204, 21, .55);
  box-shadow: 0 0 25px rgba(250, 204, 21, .09);
}
.event-card.council {
  border-color: rgba(250, 204, 21, .78);
  background:
    linear-gradient(
      145deg,
      rgba(83, 61, 8, .70),
      rgba(28, 22, 8, .82));
  box-shadow: 0 0 30px rgba(250, 204, 21, .14), inset 0 1px 0 rgba(254, 240, 138, .08);
}
.event-card.council:hover:not(:disabled) {
  border-color: rgba(253, 224, 71, .95);
  box-shadow: 0 0 36px rgba(250, 204, 21, .24);
}
.event-card.council .event-icon {
  background: rgba(250, 204, 21, .18);
  box-shadow: 0 0 16px rgba(250, 204, 21, .12);
}
.event-card.council .event-copy em,
.event-card.council .event-reward b,
.event-card.council .event-copy small.restrict {
  color: #fde047;
}
.event-card.goddess {
  border-color: rgba(244, 114, 182, .45);
  background:
    linear-gradient(
      145deg,
      rgba(72, 20, 57, .58),
      rgba(24, 9, 27, .80));
}
.event-card.goddess:hover:not(:disabled) {
  border-color: rgba(244, 114, 182, .82);
  box-shadow: 0 0 28px rgba(244, 114, 182, .18);
}
.event-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(139, 92, 246, .12);
  font-size: 25px;
}
.event-copy {
  min-width: 0;
}
.event-copy b {
  display: block;
  font-size: 14px;
}
.event-copy em {
  display: block;
  margin-top: 2px;
  color: #c4b5fd;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}
.event-copy small {
  display: block;
  margin-top: 5px;
  color: #7f8aa3;
  font-size: 9.5px;
  line-height: 1.35;
}
.event-copy small.restrict {
  color: #fb7185;
  font-weight: 800;
}
.event-reward {
  border-left: 1px solid rgba(255, 255, 255, .08);
  padding-left: 9px;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.event-reward span {
  color: #7c8599;
  font-size: 8px;
  font-weight: 900;
}
.event-reward b {
  margin-top: 4px;
  color: #e9d5ff;
  font-size: 9.5px;
  line-height: 1.25;
}
.events-note {
  margin: 12px 2px 0;
  color: #596174;
  font-size: 9px;
  line-height: 1.4;
}
.charge-card {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: 470px;
  min-height: 103px;
  border-radius: 21px;
  padding: 12px 16px;
  pointer-events: auto;
}
.charge-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.charge-title b {
  font-size: 12px;
}
.charge-title small {
  color: #6f7890;
  font-size: 8.5px;
}
.charge-slots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
  min-height: 41px;
}
.charge-slot {
  position: relative;
  width: 51px;
  height: 41px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .08);
  color: #697185;
  transition: .13s ease;
  overflow: hidden;
}
.charge-slot .face {
  font-size: 18px;
  line-height: 1;
  filter: grayscale(1);
  opacity: .52;
}
.charge-slot .name {
  position: absolute;
  right: 4px;
  bottom: 3px;
  font-size: 7px;
  font-weight: 900;
  color: #64748b;
}
.charge-slot.filled {
  border-color: rgba(216, 180, 254, .7);
  background:
    linear-gradient(
      145deg,
      rgba(124, 58, 237, .38),
      rgba(217, 70, 239, .14));
  box-shadow: 0 0 19px rgba(139, 92, 246, .26), inset 0 0 15px rgba(255, 255, 255, .04);
}
.charge-slot.filled .face {
  filter: none;
  opacity: 1;
}
.charge-slot.filled .name {
  color: #e9d5ff;
}
.attack-mode-row {
  display: flex;
  justify-content: center;
  gap: 7px;
  align-items: center;
  margin-top: 8px;
}
.mode-btn {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1);
  color: #a7b0c3;
  background: rgba(255, 255, 255, .045);
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}
.mode-btn.active {
  color: white;
  background: rgba(124, 58, 237, .34);
  border-color: rgba(196, 181, 253, .55);
  box-shadow: 0 0 14px rgba(139, 92, 246, .14);
}
.mode-btn.locked {
  opacity: .35;
  cursor: default;
}
.mode-hint {
  color: #566074;
  font-size: 8px;
}
.action-card {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 255px;
  min-height: 82px;
  border-radius: 20px;
  padding: 11px 13px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.action-item {
  display: flex;
  gap: 7px;
  align-items: center;
}
kbd {
  min-width: 43px;
  padding: 6px 5px;
  border-radius: 8px;
  text-align: center;
  color: #ddd6fe;
  background: rgba(124, 58, 237, .16);
  border: 1px solid rgba(196, 181, 253, .2);
  font-size: 8px;
  font-weight: 900;
}
.action-item b {
  display: block;
  font-size: 9px;
}
.action-item small {
  display: block;
  margin-top: 2px;
  color: #6b7488;
  font-size: 7.5px;
  font-weight: 800;
}
.action-item small.ready {
  color: #c4b5fd;
}
.shield-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 178px;
  min-height: 82px;
  border-radius: 20px;
  padding: 12px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.shield-icon {
  font-size: 30px;
  filter: drop-shadow(0 0 10px rgba(96, 165, 250, .3));
}
.shield-card small {
  display: block;
  color: #7f8aa3;
  font-size: 8px;
}
.shield-card b {
  display: block;
  margin-top: 4px;
  color: #bfdbfe;
  font-size: 12px;
}
.center-banner {
  position: absolute;
  z-index: 30;
  left: 50%;
  top: 31%;
  transform: translate(-50%, -50%);
  min-width: 330px;
  padding: 14px 24px;
  border-radius: 18px;
  text-align: center;
  background: rgba(7, 8, 23, .92);
  border: 1px solid rgba(196, 181, 253, .5);
  box-shadow: 0 0 46px rgba(124, 58, 237, .22);
  backdrop-filter: blur(12px);
  font-size: 20px;
  font-weight: 900;
}
.center-banner small {
  display: block;
  margin-top: 5px;
  color: #c4b5fd;
  font-size: 10px;
  font-weight: 700;
}
.toast {
  position: absolute;
  z-index: 35;
  left: 50%;
  bottom: 138px;
  transform: translateX(-50%);
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(7, 8, 23, .92);
  border: 1px solid rgba(167, 139, 250, .34);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}
.exam-guide,
.special-guide {
  position: absolute;
  z-index: 20;
  left: 50%;
  top: 145px;
  transform: translateX(-50%);
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(7, 8, 23, .75);
  border: 1px solid rgba(250, 204, 21, .3);
  color: #fde68a;
  font-size: 11px;
  font-weight: 900;
}
.special-guide {
  border-color: rgba(251, 146, 60, .35);
  color: #fdba74;
}
.phone-overlay {
  position: absolute;
  z-index: 42;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 310px;
  padding: 16px 20px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(24, 12, 34, .95);
  border: 1px solid rgba(244, 114, 182, .6);
  box-shadow: 0 0 55px rgba(244, 114, 182, .2);
  backdrop-filter: blur(14px);
}
.phone-icon {
  font-size: 38px;
}
.phone-overlay small {
  display: block;
  color: #f9a8d4;
  font-size: 10px;
}
.phone-overlay b {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}
.overlay {
  position: absolute;
  z-index: 60;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(
      circle at 50% 25%,
      rgba(76, 29, 149, .31),
      transparent 40%),
    rgba(3, 4, 12, .94);
  backdrop-filter: blur(8px);
}
.menu-card,
.result-card {
  width: min(760px, 94vw);
  text-align: center;
  padding: 44px 40px;
  border-radius: 31px;
  background: rgba(8, 9, 25, .91);
  border: 1px solid rgba(196, 181, 253, .22);
  box-shadow: 0 35px 95px rgba(0, 0, 0, .45);
}
.eyebrow {
  margin: 0 0 10px;
  color: #a78bfa;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .28em;
}
.menu-card h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: .83;
  letter-spacing: .02em;
  background:
    linear-gradient(
      180deg,
      #fff,
      #d8b4fe 58%,
      #7c3aed);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.menu-card h1 span {
  font-size: .56em;
  letter-spacing: .22em;
}
.menu-copy {
  max-width: 620px;
  margin: 22px auto 0;
  color: #8993aa;
  font-size: 12px;
  line-height: 1.7;
}
.rule-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 26px 0;
}
.rule-grid span {
  padding: 10px 7px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .07);
  color: #7f8aa3;
  font-size: 9px;
}
.rule-grid b {
  color: #ddd6fe;
}
.primary-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 25px;
  cursor: pointer;
  color: white;
  font-weight: 900;
  background:
    linear-gradient(
      90deg,
      #6d28d9,
      #9333ea);
  box-shadow: 0 12px 30px rgba(109, 40, 217, .28);
}
.result-card {
  width: min(530px, 92vw);
}
.result-card h2 {
  margin: 0;
  font-size: 68px;
  line-height: 1;
}
.result-card.fail {
  border-color: rgba(251, 113, 133, .35);
}
.result-card.clear {
  border-color: rgba(250, 204, 21, .32);
}
.result-card p:not(.eyebrow) {
  color: #94a3b8;
  line-height: 1.7;
  white-space: pre-line;
}
@media (max-width: 900px) {
  .events-panel {
    width: min(350px, 88vw);
  }
  .boss-card {
    left: 50%;
    right: auto;
    width: 285px;
  }
  .gpa-card {
    left: 14px;
  }
  .action-card {
    display: none;
  }
  .charge-card {
    width: min(430px, 62vw);
  }
}
@media (max-width: 660px) {
  .gpa-card {
    transform: scale(.82);
    transform-origin: top left;
  }
  .chapter-card {
    right: 8px;
    left: auto;
    width: 210px;
    transform: scale(.82);
    transform-origin: top right;
  }
  .boss-card {
    top: 126px;
    left: 50%;
    right: auto;
    transform: translateX(-50%) scale(.82);
    transform-origin: top center;
  }
  .charge-card {
    width: 76vw;
    bottom: 8px;
    transform: translateX(-50%) scale(.84);
    transform-origin: bottom center;
  }
  .shield-card {
    right: 8px;
    bottom: 8px;
    transform: scale(.78);
    transform-origin: bottom right;
  }
  .rule-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
