/* =========================================================
   GATE 100 CHALLENGE
   ROOKIE 100
   challenge-rookie.css
   ========================================================= */

:root {
  --rookie-orange: #ff7a00;
  --rookie-orange-dark: #e86600;
  --rookie-orange-soft: #fff1e3;
  --rookie-yellow: #ffc83d;

  --rookie-text: #172033;
  --rookie-muted: #6b7484;
  --rookie-border: #e8eaf0;
  --rookie-surface: #ffffff;
  --rookie-bg: #fff9f3;

  --rookie-green: #18a66a;
  --rookie-red: #df4b4b;

  --rookie-radius: 26px;
  --rookie-shadow:
    0 18px 55px rgba(31, 38, 52, 0.12);
}

/* =========================================================
   BASE
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--rookie-bg);
}

body.rookie-page {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;

  color: var(--rookie-text);

  background:
    radial-gradient(
      circle at 8% 5%,
      rgba(255, 196, 84, 0.2),
      transparent 30rem
    ),
    radial-gradient(
      circle at 95% 28%,
      rgba(255, 122, 0, 0.13),
      transparent 30rem
    ),
    linear-gradient(
      180deg,
      #fffdfa 0%,
      #fff8ef 100%
    );

  font-family:
    Inter,
    "Segoe UI",
    Arial,
    sans-serif;
}

body.rookie-page button,
body.rookie-page input {
  font: inherit;
}

body.rookie-page button {
  cursor: pointer;
}

body.rookie-page button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

body.rookie-page [hidden] {
  display: none !important;
}

body.rookie-page a {
  color: inherit;
}

/* =========================================================
   BACKGROUND
   ========================================================= */

.rookie-background {
  position: fixed;
  inset: 0;
  z-index: -1;

  overflow: hidden;
  pointer-events: none;
}

.rookie-bg-orb {
  position: absolute;

  width: 30rem;
  height: 30rem;

  border-radius: 50%;

  opacity: 0.26;
  filter: blur(12px);
}

.rookie-bg-orb-1 {
  top: 7rem;
  left: -15rem;

  background: #ffd56d;
}

.rookie-bg-orb-2 {
  right: -16rem;
  bottom: 3rem;

  background: #ff9851;
}

/* =========================================================
   HEADER
   ========================================================= */

.rookie-header {
  position: sticky;
  top: 0;
  z-index: 40;

  display: grid;

  grid-template-columns:
    1fr
    auto
    1fr;

  align-items: center;

  gap: 16px;

  min-height: 70px;

  padding:
    12px
    max(20px, env(safe-area-inset-right))
    12px
    max(20px, env(safe-area-inset-left));

  background:
    rgba(255, 253, 250, 0.92);

  border-bottom:
    1px solid
    rgba(23, 32, 51, 0.08);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.rookie-back,
.rookie-hall-link {
  display: inline-flex;
  align-items: center;

  gap: 8px;

  width: max-content;

  text-decoration: none;

  font-size: 13px;
  font-weight: 800;

  letter-spacing: 0.04em;
}

.rookie-hall-link {
  justify-self: end;

  color: var(--rookie-orange-dark);
}

.rookie-header-title {
  display: flex;
  align-items: center;

  gap: 10px;

  white-space: nowrap;
}

.rookie-header-title strong {
  font-size: 18px;

  letter-spacing: -0.02em;
}

.rookie-header-label {
  padding: 5px 9px;

  border-radius: 999px;

  background:
    var(--rookie-orange-soft);

  color:
    var(--rookie-orange-dark);

  font-size: 10px;
  font-weight: 900;

  letter-spacing: 0.08em;
}

/* =========================================================
   APP / SCREEN
   ========================================================= */

.rookie-app {
  width:
    min(
      calc(100% - 32px),
      820px
    );

  margin: 0 auto;

  padding:
    44px 0 80px;
}

.rookie-screen {
  display: none;

  animation:
    rookieFadeIn
    0.28s
    ease
    both;
}

.rookie-screen.is-active {
  display: block;
}

.rookie-panel,
.rookie-stage-panel,
.rookie-result-panel,
.rookie-intro-card,
.rookie-role-ready,
.rookie-finalizing {
  width: 100%;

  padding:
    clamp(
      24px,
      5vw,
      44px
    );

  border:
    1px solid
    rgba(23, 32, 51, 0.08);

  border-radius:
    var(--rookie-radius);

  background:
    rgba(255, 255, 255, 0.97);

  box-shadow:
    var(--rookie-shadow);
}

.rookie-panel h1,
.rookie-panel h2,
.rookie-stage-panel h2,
.rookie-result-panel h2,
.rookie-finalizing h2 {
  margin-top: 0;

  letter-spacing: -0.035em;
}

.screen-description,
.stage-instruction {
  margin:
    12px 0 26px;

  color:
    var(--rookie-muted);

  font-size: 15px;

  line-height: 1.7;
}

.step-label,
.stage-step,
.invite-small {
  display: inline-block;

  margin-bottom: 10px;

  color:
    var(--rookie-orange-dark);

  font-size: 11px;
  font-weight: 900;

  letter-spacing: 0.12em;
}

/* =========================================================
   INTRO
   ========================================================= */

.rookie-intro-card {
  position: relative;

  overflow: hidden;

  text-align: center;
}

.rookie-intro-card::before {
  content: "";

  position: absolute;

  top: -130px;
  left: 50%;

  width: 440px;
  height: 280px;

  border-radius: 50%;

  background:
    rgba(255, 191, 47, 0.17);

  transform:
    translateX(-50%);

  pointer-events: none;
}

.rookie-intro-badge {
  position: relative;

  display: inline-flex;

  padding:
    7px 13px;

  border-radius: 999px;

  background:
    var(--rookie-text);

  color: #fff;

  font-size: 10px;
  font-weight: 900;

  letter-spacing: 0.12em;
}

.rookie-character-wrap {
  position: relative;

  display: grid;
  place-items: center;

  margin:
    28px auto 18px;
}

.rookie-character-placeholder {
  display: grid;
  place-items: center;

  width: 150px;
  height: 150px;

  border:
    8px solid #fff;

  border-radius: 50%;

  background:
    linear-gradient(
      145deg,
      #ffb13c,
      #ff7100
    );

  color: #fff;

  box-shadow:
    0 18px 36px
    rgba(255, 122, 0, 0.28);
}

.rookie-character-placeholder strong {
  font-size: 52px;

  line-height: 0.95;
}

.rookie-character-name {
  font-size: 13px;
  font-weight: 900;

  letter-spacing: 0.12em;
}

.rookie-intro-card h1 {
  margin: 0;

  font-size:
    clamp(
      46px,
      10vw,
      78px
    );

  line-height: 0.95;

  letter-spacing: -0.07em;
}

.rookie-intro-card h1 span {
  color:
    var(--rookie-orange);
}

.rookie-main-tagline {
  margin:
    16px 0 0;

  color:
    var(--rookie-orange-dark);

  font-size:
    clamp(
      20px,
      4vw,
      28px
    );

  font-weight: 900;
}

.rookie-intro-copy {
  max-width: 500px;

  margin:
    14px auto 26px;

  color:
    var(--rookie-muted);

  line-height: 1.65;
}

.rookie-intro-flow {
  display: grid;

  grid-template-columns:
    1fr auto
    1fr auto
    1fr;

  align-items: center;

  gap: 12px;

  max-width: 560px;

  margin:
    0 auto 28px;

  padding: 18px;

  border-radius: 20px;

  background:
    #fff8ef;
}

.intro-flow-item {
  display: grid;

  gap: 3px;
}

.intro-flow-item strong {
  color:
    var(--rookie-orange);

  font-size: 18px;
}

.intro-flow-item span {
  font-size: 11px;
  font-weight: 900;

  letter-spacing: 0.05em;
}

.intro-flow-arrow {
  color: #c4aa8e;

  font-weight: 900;
}

.rookie-small-note,
.my-movie-note {
  margin:
    14px 0 0;

  color: #8992a1;

  font-size: 12px;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.rookie-primary-button,
.rookie-secondary-button,
.challenge-friend-button,
.gate-verify-button,
.replay-line-button,
.play-my-movie-button,
.modal-button {
  min-height: 52px;

  border: 0;

  border-radius: 15px;

  font-weight: 900;

  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    opacity 0.16s ease;
}

.rookie-primary-button,
.challenge-friend-button,
.rookie-modal-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 10px;

  width: 100%;

  padding:
    0 22px;

  border: 0;

  border-radius: 15px;

  background:
    linear-gradient(
      135deg,
      var(--rookie-orange),
      #ff9500
    );

  color: #fff;

  font-weight: 900;

  box-shadow:
    0 12px 24px
    rgba(255, 122, 0, 0.24);
}

.rookie-primary-button.compact {
  width: auto;

  min-width: 150px;
}

.rookie-secondary-button {
  padding:
    0 20px;

  border:
    1px solid
    var(--rookie-border);

  background: #fff;

  color:
    var(--rookie-text);
}

.rookie-primary-button:not(:disabled):hover,
.rookie-secondary-button:hover,
.challenge-friend-button:hover,
.gate-verify-button:hover,
.replay-line-button:hover,
.play-my-movie-button:hover {
  transform:
    translateY(-1px);
}

.rookie-text-button,
.rookie-text-link,
.rookie-secondary-link {
  color:
    var(--rookie-text);

  font-weight: 800;

  text-decoration: none;
}

.rookie-text-button {
  border: 0;

  background:
    transparent;
}

/* =========================================================
   PARTICIPANT
   ========================================================= */

.rookie-input-label {
  display: block;

  margin-bottom: 8px;

  font-size: 11px;
  font-weight: 900;

  letter-spacing: 0.1em;
}

.rookie-name-input {
  width: 100%;
  height: 58px;

  padding:
    0 17px;

  border:
    2px solid
    var(--rookie-border);

  border-radius: 15px;

  outline: none;

  background: #fff;

  color:
    var(--rookie-text);

  font-size: 18px;
  font-weight: 700;
}

.rookie-name-input:focus {
  border-color:
    var(--rookie-orange);

  box-shadow:
    0 0 0 4px
    rgba(255, 122, 0, 0.1);
}

.input-meta {
  display: flex;

  justify-content:
    space-between;

  min-height: 32px;

  padding:
    7px 3px 0;

  color:
    var(--rookie-muted);

  font-size: 12px;
}

#participantNameError {
  color:
    var(--rookie-red);
}

.gate-verification-box,
.gate-verified-box {
  display: flex;

  align-items: center;

  gap: 18px;

  margin:
    12px 0 24px;

  padding: 18px;

  border-radius: 18px;

  background:
    #f7f8fb;
}

.gate-verification-copy {
  flex: 1;
}

.gate-verification-title {
  font-weight: 900;
}

.gate-verification-copy p {
  margin:
    5px 0 0;

  color:
    var(--rookie-muted);

  font-size: 13px;

  line-height: 1.5;
}

.gate-verify-button {
  flex: 0 0 auto;

  min-height: 42px;

  padding:
    0 16px;

  background:
    var(--rookie-text);

  color: #fff;
}

.gate-verified-box {
  background:
    #ecfbf4;

  color:
    #0b754a;
}

.gate-check {
  display: grid;
  place-items: center;

  width: 36px;
  height: 36px;

  flex: 0 0 auto;

  border-radius: 50%;

  background:
    var(--rookie-green);

  color: #fff;

  font-weight: 900;
}

/* =========================================================
   STAGE
   ========================================================= */

.stage-heading,
.line-progress-header,
.watch-progress-header,
.line-score-header,
.my-movie-heading {
  display: flex;

  align-items: center;

  justify-content:
    space-between;

  gap: 16px;
}

.stage-heading h2 {
  margin: 0;

  font-size:
    clamp(
      28px,
      6vw,
      40px
    );
}

.stage-mode-badge {
  padding:
    8px 11px;

  border-radius: 999px;

  background:
    #edf0f5;

  color:
    #566173;

  font-size: 10px;
  font-weight: 900;

  letter-spacing: 0.08em;
}

.voice-mode-badge {
  background:
    var(--rookie-orange-soft);

  color:
    var(--rookie-orange-dark);
}

/* =========================================================
   VIDEO
   ========================================================= */

.rookie-video-container,
.voice-scene-container,
.my-movie-container {
  position: relative;

  overflow: hidden;

  width: 100%;

  aspect-ratio: 16 / 9;

  border-radius: 20px;

  background: #111;

  box-shadow:
    0 12px 32px
    rgba(20, 26, 38, 0.16);
}

.rookie-video {
  display: block;

  width: 100%;
  height: 100%;

  background: #111;

  object-fit: contain;
}

.video-placeholder {
  position: absolute;

  inset: 0;

  display: grid;
  place-content: center;

  gap: 6px;

  text-align: center;

  background:
    linear-gradient(
      145deg,
      #282f3d,
      #111722
    );

  color: #fff;
}

.video-placeholder-icon {
  display: grid;
  place-items: center;

  width: 64px;
  height: 64px;

  margin:
    0 auto 8px;

  border-radius: 50%;

  background:
    var(--rookie-orange);

  font-size: 24px;
}

.video-placeholder span {
  color: #bac1cc;

  font-size: 12px;
}

/* =========================================================
   WATCH PROGRESS
   ========================================================= */

.watch-progress-box {
  margin:
    20px 0 22px;

  padding: 16px;

  border-radius: 16px;

  background:
    #f7f8fa;
}

.watch-progress-header,
.line-progress-header,
.line-score-header {
  font-size: 12px;
  font-weight: 900;

  letter-spacing: 0.06em;
}

.watch-progress-track,
.line-score-track {
  overflow: hidden;

  height: 8px;

  margin-top: 10px;

  border-radius: 999px;

  background:
    #e4e7ec;
}

.watch-progress-bar,
.line-score-bar {
  width: 0;
  height: 100%;

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      var(--rookie-orange),
      var(--rookie-yellow)
    );

  transition:
    width 0.25s ease;
}

/* =========================================================
   ROLE READY
   ========================================================= */

.rookie-role-ready {
  text-align: center;
}

.role-ready-small {
  color:
    var(--rookie-orange-dark);

  font-size: 11px;
  font-weight: 900;

  letter-spacing: 0.12em;
}

.role-ready-title {
  margin:
    16px 0;

  font-size:
    clamp(
      44px,
      9vw,
      72px
    );

  font-weight: 950;

  line-height: 0.95;

  letter-spacing: -0.06em;
}

.role-ready-title span {
  display: block;

  color:
    var(--rookie-orange);
}

.rookie-role-ready > p {
  max-width: 520px;

  margin:
    0 auto;

  color:
    var(--rookie-muted);

  line-height: 1.65;
}

.role-ready-rule {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 12px;

  margin:
    28px 0;
}

.role-ready-rule div {
  display: grid;

  gap: 8px;

  padding:
    18px 8px;

  border-radius: 17px;

  background:
    #fff8ef;
}

.role-ready-rule span {
  font-size: 28px;
}

/* =========================================================
   LINE PROGRESS
   ========================================================= */

.line-progress-header {
  margin-top: 24px;
}

.line-progress-dots {
  display: flex;
  flex-wrap: wrap;

  gap: 8px;

  margin:
    10px 0 20px;
}

.line-progress-dots > * {
  width: 12px;
  height: 12px;

  padding: 0;

  border: 0;
  border-radius: 50%;

  background:
    #d9dde4;
}

.line-progress-dots > *.is-active {
  background:
    var(--rookie-orange);

  box-shadow:
    0 0 0 5px
    rgba(255, 122, 0, 0.12);
}

.line-progress-dots > *.is-complete,
.line-progress-dots > *.is-completed {
  background:
    var(--rookie-green);
}

/* =========================================================
   YOUR TURN
   ========================================================= */

.your-turn-overlay {
  position: absolute;

  inset: 0;

  z-index: 3;

  display: grid;
  place-content: center;

  padding: 20px;

  text-align: center;

  background:
    rgba(255, 122, 0, 0.91);

  color: #fff;
}

.your-turn-overlay strong {
  display: block;

  font-size:
    clamp(
      36px,
      9vw,
      68px
    );

  letter-spacing: -0.05em;
}

.your-turn-small {
  display: block;

  font-size: 11px;
  font-weight: 900;

  letter-spacing: 0.14em;
}

/* =========================================================
   CURRENT LINE
   ========================================================= */

.current-line-card {
  margin-top: 20px;

  padding: 20px;

  border:
    2px solid
    #ffe0bf;

  border-radius: 18px;

  background:
    #fffaf4;
}

.current-line-label {
  color:
    var(--rookie-orange-dark);

  font-size: 10px;
  font-weight: 900;

  letter-spacing: 0.12em;
}

.current-line-card p {
  margin:
    8px 0 16px;

  font-size:
    clamp(
      20px,
      4vw,
      28px
    );

  font-weight: 850;

  line-height: 1.35;
}

.replay-line-button {
  min-height: 40px;

  padding:
    0 14px;

  border:
    1px solid
    var(--rookie-border);

  background: #fff;

  color:
    var(--rookie-text);

  font-size: 11px;
}

/* =========================================================
   RECORDING
   ========================================================= */

.recording-area {
  margin-top: 18px;

  padding: 20px;

  border-radius: 18px;

  background:
    #f7f8fa;
}

.recording-status {
  display: flex;

  align-items: center;

  gap: 14px;
}

.microphone-icon {
  display: grid;
  place-items: center;

  width: 48px;
  height: 48px;

  flex: 0 0 auto;

  border-radius: 50%;

  background: #fff;

  font-size: 22px;

  box-shadow:
    0 5px 14px
    rgba(23, 32, 51, 0.08);
}

.recording-status-copy {
  display: grid;

  gap: 4px;
}

.recording-status-copy span {
  color:
    var(--rookie-muted);

  font-size: 13px;
}

.recording-timer {
  margin:
    18px 0 0;

  text-align: center;

  color:
    var(--rookie-red);

  font-size: 28px;
  font-weight: 900;

  font-variant-numeric:
    tabular-nums;
}

.rookie-record-button {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 11px;

  width: 100%;

  min-height: 58px;

  margin-top: 18px;

  border: 0;
  border-radius: 16px;

  background:
    var(--rookie-text);

  color: #fff;

  font-weight: 900;
}

.record-button-icon {
  width: 13px;
  height: 13px;

  border-radius: 50%;

  background:
    #ff4f4f;
}

.rookie-record-button.is-recording
.record-button-icon {
  border-radius: 3px;

  animation:
    rookiePulse
    1s
    infinite;
}

/* =========================================================
   EVALUATING / LINE RESULT
   ========================================================= */

.line-evaluating-box,
.line-result-box {
  margin-top: 18px;

  padding: 20px;

  border-radius: 18px;

  background:
    #f7f8fa;
}

.line-evaluating-box {
  text-align: center;
}

.line-evaluating-spinner,
.finalizing-spinner {
  width: 36px;
  height: 36px;

  margin:
    0 auto 12px;

  border:
    4px solid
    #e4e7ec;

  border-top-color:
    var(--rookie-orange);

  border-radius: 50%;

  animation:
    rookieSpin
    0.8s
    linear
    infinite;
}

.line-evaluating-box span {
  display: block;

  margin-top: 4px;

  color:
    var(--rookie-muted);

  font-size: 12px;
}

.line-score-header strong {
  color:
    var(--rookie-orange-dark);

  font-size: 30px;
}

#lineFeedback {
  margin:
    16px 0 0;

  color:
    var(--rookie-muted);

  line-height: 1.55;
}

.line-result-actions {
  display: flex;

  justify-content: flex-end;

  gap: 10px;

  margin-top: 18px;
}

/* =========================================================
   FINALIZING
   ========================================================= */

.rookie-finalizing {
  text-align: center;
}

.finalizing-circle {
  position: relative;

  display: grid;
  place-items: center;

  width: 150px;
  height: 150px;

  margin:
    0 auto 24px;

  border-radius: 50%;

  background:
    #fff8ef;
}

.finalizing-circle
.finalizing-spinner {
  position: absolute;

  inset: 12px;

  width: auto;
  height: auto;

  margin: 0;

  border-width: 6px;
}

.finalizing-circle strong {
  color:
    var(--rookie-orange-dark);

  font-size: 34px;
}

.rookie-finalizing p {
  color:
    var(--rookie-muted);
}

/* =========================================================
   FINAL RESULT
   ========================================================= */

.rookie-result-panel {
  text-align: center;
}

.result-status-badge {
  display: inline-flex;

  padding:
    7px 12px;

  border-radius: 999px;

  background:
    var(--rookie-orange-soft);

  color:
    var(--rookie-orange-dark);

  font-size: 10px;
  font-weight: 900;

  letter-spacing: 0.1em;
}

.result-name {
  margin:
    20px 0 12px;

  color:
    var(--rookie-muted);

  font-size: 12px;
  font-weight: 900;

  letter-spacing: 0.1em;
}

.final-score-circle {
  display: grid;
  place-items: center;
  align-content: center;

  width: 180px;
  height: 180px;

  margin:
    0 auto 22px;

  border:
    10px solid
    #ffe2c4;

  border-radius: 50%;

  background:
    linear-gradient(
      145deg,
      #ffffff,
      #fff8ef
    );

  box-shadow:
    0 16px 35px
    rgba(255, 122, 0, 0.15);
}

.final-score-circle span {
  font-size: 10px;
  font-weight: 900;

  letter-spacing: 0.12em;
}

.final-score-circle strong {
  color:
    var(--rookie-orange);

  font-size: 66px;

  line-height: 0.95;
}

.final-score-circle small {
  color:
    var(--rookie-muted);

  font-weight: 800;
}

#resultMessage {
  color:
    var(--rookie-muted);

  line-height: 1.6;
}

.result-line-scores {
  display: grid;

  gap: 9px;

  margin:
    24px 0;

  text-align: left;
}

.result-line-scores > * {
  padding:
    13px 15px;

  border-radius: 13px;

  background:
    #f7f8fa;
}

/* =========================================================
   MY MOVIE
   ========================================================= */

.my-movie-section {
  margin-top: 28px;

  padding-top: 26px;

  border-top:
    1px solid
    var(--rookie-border);

  text-align: left;
}

.my-movie-heading {
  margin-bottom: 12px;
}

.my-movie-heading div {
  display: grid;

  gap: 3px;
}

.my-movie-heading span {
  color:
    var(--rookie-orange-dark);

  font-size: 10px;
  font-weight: 900;

  letter-spacing: 0.1em;
}

.play-my-movie-button {
  position: absolute;

  left: 50%;
  bottom: 20px;

  z-index: 2;

  min-height: 46px;

  padding:
    0 18px;

  background:
    rgba(255, 255, 255, 0.95);

  color:
    var(--rookie-text);

  transform:
    translateX(-50%);

  white-space: nowrap;

  box-shadow:
    0 8px 20px
    rgba(0, 0, 0, 0.18);
}

.play-my-movie-button:hover {
  transform:
    translateX(-50%)
    translateY(-1px);
}

.movie-play-icon {
  color:
    var(--rookie-orange);
}

/* =========================================================
   MY MOVIE ACTIONS
   ========================================================= */

.my-movie-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 12px;
}

.my-movie-actions > * {
  flex: 1;
  min-width: 0;
  min-height: 50px;
}

/* =========================================================
   HALL / RETRY / INVITE
   ========================================================= */

.hall-success-box,
.hall-full-box,
.retry-available-box,
.invite-retry-box {
  margin-top: 22px;

  padding: 20px;

  border-radius: 18px;

  text-align: left;
}

.hall-success-box {
  display: flex;

  align-items: center;

  gap: 16px;

  background:
    #fff7d9;
}

.hall-success-icon {
  font-size: 34px;
}

.hall-success-box > div:nth-child(2) {
  display: grid;

  flex: 1;

  gap: 3px;
}

.hall-success-box span,
.retry-available-box span {
  font-size: 10px;
  font-weight: 900;

  letter-spacing: 0.1em;
}

.hall-success-box p,
.hall-full-box p,
.invite-retry-box p {
  margin:
    5px 0 0;

  color:
    var(--rookie-muted);

  line-height: 1.5;
}

.hall-rank-badge {
  flex: 0 0 auto;

  color:
    var(--rookie-orange-dark);

  font-size: 28px;
  font-weight: 950;
}

.hall-full-box {
  background:
    #f5f6f8;
}

.retry-available-box {
  display: flex;

  align-items: center;

  justify-content:
    space-between;

  gap: 18px;

  background:
    #fff8ef;
}

.retry-available-box
.rookie-primary-button {
  width: auto;

  min-width: 130px;
}

.invite-retry-box {
  background:
    var(--rookie-text);

  color: #fff;
}

.invite-retry-box h3 {
  margin:
    6px 0 0;

  font-size: 24px;
}

.invite-retry-box p {
  color:
    #c7ced9;
}

.challenge-friend-button {
  margin-top: 16px;
}

.result-share-actions {
  display: flex;

  align-items: stretch;

  gap: 10px;

  margin-top: 22px;
}

.result-share-actions > * {
  display: inline-flex;

  flex: 1;

  align-items: center;
  justify-content: center;

  min-height: 50px;

  border-radius: 15px;
}

.rookie-secondary-link {
  border:
    1px solid
    var(--rookie-border);

  background: #fff;
}

/* =========================================================
   INVITE SCREEN
   ========================================================= */

.invite-panel,
.invite-accept-panel {
  text-align: center;
}

.invite-created-icon {
  display: grid;
  place-items: center;

  width: 70px;
  height: 70px;

  margin:
    0 auto 18px;

  border-radius: 50%;

  background:
    var(--rookie-orange-soft);

  color:
    var(--rookie-orange-dark);

  font-size: 30px;
}

.invite-link-box {
  display: flex;

  gap: 8px;

  margin:
    24px 0 14px;

  padding: 7px;

  border:
    1px solid
    var(--rookie-border);

  border-radius: 15px;

  background:
    #f7f8fa;
}

.invite-link-box input {
  min-width: 0;

  flex: 1;

  border: 0;

  outline: 0;

  background:
    transparent;

  color:
    var(--rookie-muted);
}

.invite-link-box button {
  min-width: 74px;

  border: 0;
  border-radius: 10px;

  background:
    var(--rookie-text);

  color: #fff;

  font-weight: 900;
}

.invite-panel
.rookie-text-button {
  margin-top: 18px;
}

.invite-accept-panel h1 {
  margin:
    8px 0;

  font-size:
    clamp(
      30px,
      7vw,
      52px
    );

  line-height: 1.05;
}

.invite-100 {
  margin:
    18px 0;

  color:
    var(--rookie-orange);

  font-size:
    clamp(
      82px,
      20vw,
      140px
    );

  font-weight: 950;

  line-height: 0.9;

  letter-spacing: -0.08em;
}

.invite-accept-panel > p {
  margin-bottom: 24px;

  color:
    var(--rookie-muted);
}

.invite-accept-panel
.rookie-text-link {
  display: inline-block;

  margin-top: 18px;
}

/* =========================================================
   MODALS
   ========================================================= */

.challenge-modal[aria-hidden="true"] {
  display: none;
}

.challenge-modal[aria-hidden="false"] {
  position: fixed;

  inset: 0;

  z-index: 100;

  display: grid;
  place-items: center;

  padding: 20px;
}

.challenge-modal
.modal-backdrop {
  position: absolute;

  inset: 0;

  background:
    rgba(11, 16, 26, 0.58);

  backdrop-filter: blur(5px);
}

.challenge-modal
.modal-panel {
  position: relative;

  z-index: 1;

  width:
    min(
      100%,
      430px
    );

  padding: 28px;

  border-radius: 22px;

  background: #fff;

  text-align: center;

  box-shadow:
    0 24px 70px
    rgba(0, 0, 0, 0.24);
}

.challenge-modal
.modal-panel h2 {
  margin:
    12px 0 8px;
}

.challenge-modal
.modal-panel p {
  color:
    var(--rookie-muted);

  line-height: 1.55;
}

.modal-icon {
  display: grid;
  place-items: center;

  width: 56px;
  height: 56px;

  margin:
    0 auto;

  border-radius: 50%;

  background:
    var(--rookie-orange-soft);

  color:
    var(--rookie-orange-dark);

  font-size: 25px;
  font-weight: 900;
}

.modal-close {
  position: absolute;

  top: 12px;
  right: 14px;

  width: 36px;
  height: 36px;

  border: 0;

  background:
    transparent;

  color:
    #737d8c;

  font-size: 25px;
}

.modal-button {
  width: 100%;

  margin-top: 12px;

  padding:
    0 18px;

  background:
    var(--rookie-text);

  color: #fff;
}

.modal-cancel-button {
  margin-top: 12px;

  border: 0;

  background:
    transparent;

  color:
    var(--rookie-muted);

  font-weight: 800;
}

.confirm-actions {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 10px;

  margin-top: 18px;
}

.confirm-actions
.modal-button,
.confirm-actions
.rookie-secondary-button {
  width: 100%;

  margin: 0;
}

/* =========================================================
   TOAST
   ========================================================= */

.rookie-toast {
  position: fixed;

  left: 50%;
  bottom:
    max(
      24px,
      env(safe-area-inset-bottom)
    );

  z-index: 120;

  display: flex;

  align-items: center;

  gap: 9px;

  max-width:
    calc(
      100vw - 32px
    );

  padding:
    12px 17px;

  border-radius: 999px;

  background:
    var(--rookie-text);

  color: #fff;

  font-size: 13px;
  font-weight: 800;

  box-shadow:
    0 12px 30px
    rgba(23, 32, 51, 0.25);

  opacity: 0;

  pointer-events: none;

  transform:
    translate(
      -50%,
      16px
    );

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.rookie-toast[aria-hidden="false"],
.rookie-toast.is-visible {
  opacity: 1;

  transform:
    translate(
      -50%,
      0
    );
}

/* =========================================================
   LOADER / NOSCRIPT
   ========================================================= */

.rookie-loader-ring {
  border-top-color:
    var(--rookie-orange) !important;
}

.noscript-message {
  width:
    min(
      calc(100% - 32px),
      700px
    );

  margin:
    30px auto;

  padding: 16px;

  border-radius: 14px;

  background:
    #fff1f1;

  color:
    #9e2e2e;

  text-align: center;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (
  max-width: 640px
) {

  .rookie-header {
    grid-template-columns:
      auto 1fr auto;

    min-height: 62px;

    gap: 10px;

    padding-top: 9px;
    padding-bottom: 9px;
  }

  .rookie-back span:last-child,
  .rookie-hall-link span,
  .rookie-header-label {
    display: none;
  }

  .rookie-header-title {
    justify-self: center;
  }

  .rookie-header-title strong {
    font-size: 16px;
  }

  .rookie-app {
    width:
      min(
        calc(100% - 20px),
        820px
      );

    padding:
      22px 0 52px;
  }

  .rookie-panel,
  .rookie-stage-panel,
  .rookie-result-panel,
  .rookie-intro-card,
  .rookie-role-ready,
  .rookie-finalizing {
    padding:
      22px 16px;

    border-radius: 20px;
  }

  .rookie-intro-flow {
    gap: 6px;

    padding:
      14px 8px;
  }

  .intro-flow-item span {
    font-size: 9px;
  }

  .intro-flow-arrow {
    font-size: 12px;
  }

  .stage-heading {
    align-items: flex-start;
  }

  .stage-mode-badge {
    margin-top: 3px;
  }

  .role-ready-rule {
    gap: 7px;
  }

  .role-ready-rule div {
    padding:
      15px 5px;

    font-size: 12px;
  }

  .role-ready-rule span {
    font-size: 24px;
  }

  .current-line-card p {
    font-size: 20px;
  }

  .line-result-actions,
.result-share-actions,
.my-movie-actions {
  flex-direction: column;
}

.line-result-actions > *,
.result-share-actions > *,
.my-movie-actions > *,
.rookie-primary-button.compact {
  width: 100%;
}

  .retry-available-box {
    align-items: stretch;

    flex-direction: column;
  }

  .retry-available-box
  .rookie-primary-button {
    width: 100%;
  }

  .gate-verification-box {
    align-items: stretch;

    flex-direction: column;
  }

  .gate-verify-button {
    width: 100%;
  }

  .rookie-video-container,
  .voice-scene-container,
  .my-movie-container {
    border-radius: 15px;
  }

  .play-my-movie-button {
    bottom: 12px;

    font-size: 12px;
  }

}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (
  max-width: 390px
) {

  .rookie-intro-card h1 {
    font-size: 44px;
  }

  .rookie-character-placeholder {
    width: 128px;
    height: 128px;
  }

  .final-score-circle {
    width: 155px;
    height: 155px;
  }

  .final-score-circle strong {
    font-size: 56px;
  }

}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (
  prefers-reduced-motion:
  reduce
) {

  *,
  *::before,
  *::after {
    scroll-behavior:
      auto !important;

    animation-duration:
      0.01ms !important;

    animation-iteration-count:
      1 !important;

    transition-duration:
      0.01ms !important;
  }

}

/* =========================================================
   ANIMATIONS
   ========================================================= */

@keyframes rookieFadeIn {

  from {
    opacity: 0;

    transform:
      translateY(8px);
  }

  to {
    opacity: 1;

    transform:
      translateY(0);
  }

}

@keyframes rookieSpin {

  to {
    transform:
      rotate(360deg);
  }

}

@keyframes rookiePulse {

  50% {
    opacity: 0.4;

    transform:
      scale(0.82);
  }

}