/* =========================================================
   UNOFODOX — MAIN STYLESHEET
   Clean Stable Version
   ========================================================= */

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

* {
  box-sizing: border-box;
}

:root {
  --font-ui: Arial, Helvetica, sans-serif;
  --font-title: Arial, Helvetica, sans-serif;

  --title-weight: 900;
  --title-spacing: -0.04em;
  --title-line: 0.9;

  --subtitle-color: #7cc3ec;
  --accent: #dfff35;
}

body {
  margin: 0;
  background: #062b31;
  color: white;
  font-family: var(--font-ui);
}


/* 02 PAGE SHELL
   ========================================================= */

.page {
  width: 92vw;
  height: 86vh;
  margin: 7vh auto;

  display: grid;
  grid-template-columns: 220px 1fr 220px;

  background: #050505;
  border: 1px solid #333;
}

.left-panel,
.right-panel {
  position: relative;
  background: #0c0c0c;
  padding-top: 48px;
}

.left-panel {
  border-right: 1px solid #444;
}

.right-panel {
  border-left: 1px solid #444;
}

.main-stage {
  position: relative;
  overflow: hidden;
  background: #000;
}


/* 03 LEFT NAVIGATION
   ========================================================= */

.nav-item {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 0 18px;

  border-top: 1px solid #333;
  background: #000;
  color: #aaa;

  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
}

.nav-item:last-child {
  border-bottom: 1px solid #333;
}

.nav-dot {
  width: 10px;
  height: 10px;

  border: 1px solid #fff;
  border-radius: 50%;

  flex-shrink: 0;
}

.nav-label {
  flex: 1;
  text-align: left;
}

.nav-item:hover {
  color: white;
}

.nav-item:hover .nav-dot {
  background: white;
}

.nav-item.active {
  color: var(--accent);
}

.nav-item.active .nav-dot {
  background: var(--accent);
  border-color: var(--accent);
}


/* 04 STATUS SYSTEM
   ========================================================= */

.workshop-status {
  position: absolute;
  left: 16px;
  bottom: 18px;

  width: 180px;
  padding: 10px 12px;

  border: 1px solid #888;
  background: #111;
}

.status-row,
.status-item {
  display: flex;
  gap: 8px;

  color: #888;
  font-size: 12px;
  line-height: 1.3;
}

.status-row {
  align-items: center;
  margin: 4px 0;
}

.status-item {
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.status-dot {
  width: 8px;
  height: 8px;
  margin-top: 4px;

  border: 1px solid #777;
  border-radius: 50%;

  flex-shrink: 0;
}

.status-row .status-dot {
  margin-top: 0;
}

.status-row.active,
.status-item.active {
  color: var(--accent);
}

.status-row.active .status-dot,
.status-item.active .status-dot {
  background: var(--accent);
  border-color: var(--accent);
}


/* 05 BUTTONS / CONTROLS
   ========================================================= */

.top-controls,
.project-top-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-btn,
.nav-control {
  cursor: pointer;

  border: 1px solid rgba(255,255,255,0.65);
  background: rgba(240,240,240,0.9);
  color: #111;

  font-weight: 700;
  line-height: 1;
}

.control-btn {
  width: 30px;
  height: 30px;

  border-radius: 8px;
  font-size: 24px;
}

.nav-control {
  width: 38px;
  height: 38px;

  border-radius: 9px;
  font-size: 22px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.control-btn:hover,
.nav-control:hover {
  background: white;
}

.search-box {
  width: 280px;
  height: 32px;

  border-radius: 8px;
  border: none;

  background: white;
  color: #333;

  padding: 0 16px;
  font-size: 14px;
}


/* 06 RIGHT PANEL
   ========================================================= */

.right-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.right-btn {
  width: 132px;
  height: 47px;

  cursor: pointer;
  appearance: none;

  background: #000;
  color: #aaa;

  border: 1px solid #444;

  padding-left: 16px;
  text-align: left;

  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
}

.right-btn + .right-btn {
  border-top: 0;
}

.right-btn:hover {
  background: #333;
  color: white;
}

.panel-divider {
  width: 220px;
  margin: 0 0 18px;

  border: 0;
  border-top: 1px solid #333;
}

.panel-section {
  width: 200px;
}

.panel-heading {
  margin-bottom: 22px;

  color: #888;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}


/* 07 HOME SPLASH
   ========================================================= */

.home-stage {
  overflow: hidden;
}

.home-content {
  position: absolute;
  inset: 0;
}

.home-image {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 87%;

  object-fit: fill;
  object-position: center;

  z-index: 0;
  pointer-events: none;
}

.daily-quote {
  position: absolute;
  left: 50%;
  bottom: 72px;

  transform: translateX(-50%);

  width: 70%;
  z-index: 10;

  text-align: center;

  color: rgba(255,255,255,0.82);
  font-size: 18px;
  font-style: italic;
  letter-spacing: 0.04em;
}

.home-stage .top-controls,
.home-top-controls {
  position: absolute;
  top: 28px;
  left: 90px;
  z-index: 10;
}


/* 08 WORKSHOP HERO
   ========================================================= */

.hero-content {
  position: relative;
  z-index: 2;

  height: 42%;
  padding: 28px 28px 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  opacity: 1;
  z-index: 1;

  pointer-events: none;
}

.hero-text {
  margin-top: 28px;
}

.title-logo {
  width: 40%;
  height: auto;

  display: block;
  margin-bottom: 8px;
}

.hero-text h2 {
  font-size: 18px;
  margin: 0;
}

#constructText {
  color: #9b9999;
  font-size: 16px;
  margin: 4px 0 0;
  font-weight: normal;
}

.workshop-intro {
  position: absolute;
  top: 200px;
  right: 35px;

  width: 420px;

  text-align: right;

  color: var(--subtitle-color);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
}

.workshop-intro p {
  margin: 0 0 12px;
}


/* 09 WORKSHOP CARDS
   ========================================================= */

.cards {
  position: relative;
  z-index: 2;

  padding: 42px 12px 24px;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.card,
.empty-card {
  border: 1px solid #aaa;
  overflow: hidden;

  background: rgba(0,0,0,0.35);

  aspect-ratio: 1 / 0.86;
}

.card {
  cursor: pointer;

  display: flex;
  flex-direction: column;
}

.card-image-wrap {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  display: block;
}

.card-title {
  min-height: 58px;

  padding: 8px 10px;

  color: white;
  text-align: center;

  font-size: 14px;
  line-height: 1.15;
  font-weight: 600;

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

  border-top: 1px solid rgba(255,255,255,.35);
}

.card:hover .card-title {
  color: var(--accent);
}

.knife-card {
  background: rgba(120,80,40,.90);
}

.gyro-card {
  background: rgba(40,40,40,.90);
}

.xbow-card {
  background: rgba(50,60,80,.90);
}

.poni-card {
  background: rgba(80,110,70,.90);
}

.empty-card {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-card::before {
  content: "+";

  width: 42px;
  height: 42px;

  border: 1px solid rgba(255,255,255,.7);
  border-radius: 50%;

  color: rgba(255,255,255,.8);

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

  font-size: 34px;
  font-weight: 200;
}


/* 10 PROJECT BACKGROUND LAYERS
   ========================================================= */

.project-bg-image {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  opacity: 0.55;
  z-index: 0;

  pointer-events: none;
}

.project-overlay {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  opacity: 1;
  z-index: 1;

  pointer-events: none;
}


/* 11 PROJECT OVERVIEW SYSTEM
   ========================================================= */

.project-hero {
  position: relative;
  z-index: 2;

  width: 100%;
  min-height: 100%;

  padding: 28px 32px 40px;
}

.project-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.project-overview-title {
  position: absolute;
  top: 60px;
  right: 35px;

  width: 430px;

  text-align: right;
}

.project-overview-title h1,
.chapter-detail-title h1 {
  font-family: var(--font-title);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-spacing);
  line-height: var(--title-line);
}

.project-overview-title h2,
.chapter-detail-title h2 {
  color: var(--subtitle-color);
  font-size: 17px;
  font-weight: 500;
}

.chapter-display {
  position: relative;

  margin-top: 115px;
  margin-bottom: 30px;

  min-height: 220px;
  padding: 0;

  border: 1px solid rgba(255,255,255,0.22);
  background: transparent;

  overflow: hidden;
}

.active-chapter {
  position: relative;
  min-height: 220px;
}

.overview-bg-video,
.overview-bg-image {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  opacity: 0.7;
  z-index: 1;

  pointer-events: none;
}

.overview-text-layer {
  position: relative;
  z-index: 2;

  width: 100%;
  min-height: 220px;

  padding: 34px;

  background: rgba(0,0,0,0.42);
  border: 0;
}

.active-chapter h3 {
  margin: 0 0 0;

  font-size: 32px;
  line-height: 1;
}

.active-chapter p {
  margin: 0;

  font-size: 16px;
  line-height: 1.55;
}


/* 12 CHAPTER CARDS
   ========================================================= */

.chapter-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.chapter-card {
  aspect-ratio: 1 / 0.86;

  padding: 16px 18px;

  text-align: left;

  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(0,0,0,0.55);
  color: white;

  cursor: pointer;
  overflow: hidden;
}

.chapter-card:hover {
  border-color: var(--accent);
}

.chapter-card.active {
  outline: 2px solid rgba(223,255,53,0.65);
  background: rgba(35,35,35,0);
}

.chapter-card h3 {
  margin: 0 0 12px;

  font-size: 16px;
  line-height: 1.1;
}

.chapter-card p {
  margin: 0;

  font-size: 14px;
  line-height: 1.12;

  opacity: 0.82;
}

.chapter-video-stack {
  position: relative;
  z-index: 5;
  max-width: 900px;
  margin: 40px auto 80px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.chapter-video-block {
  width: 100%;
}

.chapter-subtitle {
  text-align: center;
  margin: 0 0 18px;
  font-size: 2rem;
  color: white;
  font-weight: 300;
  letter-spacing: 2px;
}

.chapter-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  background: #000;
}

.chapter-text-box {
  width: 100%;
  background: rgba(0,0,0,0.82);
  padding: 24px 30px;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,0.14);
  border-top: 0;
  border-radius: 0 0 16px 16px;
}

.chapter-text-box p {
  max-width: 900px;
  margin: 0;
  color: white;
  line-height: 1.6;
  font-size: 17px;
}

.chapter-image-card {
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255,255,255,0);

  overflow: hidden;
}

.chapter-card-image {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
  object-position: center;

  pointer-events: none;
}

.chapter-image-card:hover {
  border-color: var(--accent);
}

.chapter-image-card.active {
  outline: 2px solid rgba(223,255,53,0);
  outline-offset: 2px;
}


/* 13 CHAPTER DETAIL PAGE
   ========================================================= */

.chapter-detail {
  position: relative;
  z-index: 2;

  width: 100%;
  height: 100%;

  padding: 28px 32px 40px;

  overflow-y: auto;
  overflow-x: hidden;
}

.chapter-detail-title {
  position: relative;

  width: 100%;
  margin: 62px 0 24px;

  text-align: right;
}

.chapter-detail-title h1 {
  margin: 0;

  font-family: var(--font-title);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-spacing);
  line-height: var(--title-line);

  font-size: 42px;
}

.chapter-detail-title h2 {
  margin: 10px 0 0;

  color: var(--subtitle-color);
  font-size: 17px;
  font-weight: 500;
}

.chapter-media-box {
  position: relative;

  height: 40vh;
  min-height: 310px;

  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.45);

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

  overflow: hidden;
}

.chapter-image {
  position: relative;
  z-index: 2;

  width: 100%;
  height: 100%;

  object-fit: contain;
}

.chapter-story {
  max-width: 760px;
  padding: 24px;

  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.55);
}

.chapter-story p {
  margin: 0 0 16px;

  font-size: 16px;
  line-height: 1.55;
}

.chapter-story p:last-child {
  margin-bottom: 0;
}


/* 14 STORY SECTION SYSTEM
   ========================================================= */

.story-scroll {
  width: 100%;
}

.story-section {
  margin-bottom: 110px;
}

.story-title {
  width: 100%;
  text-align: right;
  margin-bottom: 16px;
}

.story-title h1 {
  margin: 0;

  color: white;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

.story-title h2 {
  margin: 8px 0 0;

  color: var(--subtitle-color);
  font-size: 22px;
  font-weight: 400;
}

.story-board {
  position: relative;

  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(0,0,0,0.35);

  overflow: hidden;
}

.story-board img {
  width: 100%;
  display: block;
}

.story-caption {
  position: absolute;
  right: 20px;
  bottom: 20px;

  width: 420px;

  text-align: right;
  pointer-events: none;
}

.story-caption h2 {
  margin: 0;

  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
}

.story-caption h3 {
  margin: 4px 0 0;

  color: white;
  font-size: 1rem;
  font-weight: 400;
}

.story-caption p {
  margin: 14px 0 0;

  color: white;
  font-size: 0.8rem;
  line-height: 1.45;
}

.story-text {
  padding: 26px 30px;

  border: 1px solid rgba(255,255,255,0.14);
  border-top: 0;

  background: rgba(0,0,0,0.72);
}

.story-text p {
  margin: 0 0 16px;

  max-width: 900px;

  color: white;
  font-size: 17px;
  line-height: 1.6;
}

.story-text p:last-child {
  margin-bottom: 0;
}

/* DESKTOP: controls stay inside the stage */

.project-top-controls{
  position:sticky;
  top:0;
  z-index:3000;
}

.home-stage .top-controls,
.home-top-controls{
  position:absolute;
  top:28px;
  left:90px;
  z-index:3000;
}

@media (min-width: 901px) {
  .main-stage {
    overflow-y: auto;
    overflow-x: hidden;
  }

  .cards {
    padding: 32px 12px 90px;
  }
}


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

@media (max-width:900px) {

  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  body {
    overflow-x: hidden;
  }

  .page {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    margin: 0;

    display: flex;
    flex-direction: column;

    border: 0;
  }

  .left-panel {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 95px;

    padding: 0;

    border-right: 0;
    border-bottom: 1px solid #444;

    z-index: 1000;
  }

  #workshopNav {
    display: flex;

    overflow-x: auto;
    overflow-y: hidden;

    white-space: nowrap;

    -webkit-overflow-scrolling: touch;
  }

  /* MOBILE NAV SCROLL HINT ARROWS */

.left-panel::before,
.left-panel::after {
  position: fixed;
  top: 13px;
  z-index: 2000;

  color: var(--accent);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;

  pointer-events: none;
  opacity: 0.95;
}

.left-panel::before {
  content: "‹";
  left: 8px;
}

.left-panel::after {
  content: "›";
  right: 8px;
}

#workshopNav {
  padding: 0 34px;
}

  .nav-item {
    min-width: max-content;
    height: 48px;

    border-top: 0;
    border-right: 1px solid #333;
  }

  .workshop-status {
    position: relative;

    left: auto;
    bottom: auto;

    width: 100%;
    padding: 10px 14px;

    display: flex;
    gap: 12px;
    flex-wrap: wrap;

    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }

  .right-panel {
    position: fixed;
    bottom: 0;
    left: 0;

    width: 100%;
    height: 90px;

    padding: 0;

    border-left: 0;
    border-top: 1px solid #444;

    z-index: 1000;
  }

  .right-menu {
    display: flex;
    flex-direction: row;

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

  .right-btn {
    width: 33.333%;
    height: 44px;

    padding-left: 0;
    text-align: center;
  }

  .panel-section {
    width: 100%;
    padding: 10px 14px;
  }

  .panel-heading {
    margin-bottom: 8px;
  }

  .status-item,
  .status-row {
    margin-bottom: 5px;
  }

  .main-stage {
    position: relative;

    width: 100%;
    height: calc(100vh - 185px);

    margin-top: 95px;
    margin-bottom: 90px;

    overflow-y: auto;
    overflow-x: hidden;

    background: #000;

    -webkit-overflow-scrolling: touch;
  }

  .top-controls,
  .home-stage .top-controls,
  .home-top-controls,
  .project-top-controls {
    position: fixed;

    top: 102px;
    left: 14px;
    transform: none;

    z-index: 3000;
  }

  .search-box {
    width: min(42vw, 180px);
  }

  .project-bg-image,
  .project-overlay {
    position: fixed;

    top: 95px;
    left: 0;

    width: 100%;
    height: calc(100vh - 185px);

    object-fit: cover;

    pointer-events: none;
  }

  .project-bg-image {
    opacity: 0.55;
  }

  .project-overlay {
    opacity: 1;
  }

  .project-hero,
  .chapter-detail,
  .hero-content {
    position: relative;
    z-index: 5;
  }

  .home-content {
    position: relative;
    min-height: calc(100vh - 185px);
  }

  .home-image {
    height: 82%;
    object-fit: cover;
  }

  .daily-quote {
    bottom: 62px;
    width: 86%;
    font-size: 15px;
  }

  .hero-content {
    height: auto;
    padding: 20px 18px 0;
  }

  .hero-text {
    margin-top: 18px;
  }

  .title-logo {
    width: 65%;
    max-width: 260px;
  }

  #constructText {
    font-size: 15px;
  }

  .workshop-intro {
    position: relative !important;

    top: auto !important;
    right: auto !important;
    left: auto !important;

    width: 100%;

    padding: 18px;

    text-align: left;

    font-size: 16px;
    line-height: 1.45;

    z-index: 20;
  }

  .workshop-intro p {
    margin: 0 0 12px;
  }

  .cards {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px;

    padding: 20px 16px 34px;
  }

  .cards .card {
    width: 100% !important;

    min-height: 250px;
    aspect-ratio: auto;
  }

  .cards .card-image-wrap {
    flex: 1;
    min-height: 180px;
    overflow: hidden;
  }

  .cards .card-img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    display: block;
  }

  .empty-card {
    min-height: 140px;
    aspect-ratio: auto;
  }

  .project-hero {
    min-height: auto;
    padding: 70px 22px 22px;
  }

  .project-hero-header {
    display: block;
  }

  .project-overview-title,
  .chapter-detail-title,
  .story-title {
    position: relative;

    top: auto;
    right: auto;

    width: 100%;

    text-align: left;
  }

  .project-overview-title {
    margin: 0 0 20px;
  }

  .project-overview-title h1,
  .chapter-detail-title h1,
  .story-title h1 {
    font-size: 34px;
  }

  .project-overview-title h2,
  .chapter-detail-title h2,
  .story-title h2 {
    font-size: 18px;
  }

  .chapter-display {
    display: none;
  }

  .chapter-card-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px;

    margin-top: 24px;
  }

  .chapter-card {
    min-height: 150px;
    aspect-ratio: auto;
  }

  .chapter-detail {
    height: auto;
    min-height: 100%;

    padding: 70px 22px 22px;
  }

  .chapter-detail-title {
    margin: 30px 0 22px;
  }

  .chapter-media-box {
    height: auto;
    min-height: 220px;
  }

  .chapter-image {
    width: 100%;
    height: auto;

    object-fit: contain;
  }

  .chapter-story {
    max-width: 100%;
    padding: 22px;
  }

  .story-section {
    margin-bottom: 70px;
  }

  .story-text {
    padding: 22px;
  }

  .story-text p {
    font-size: 16px;
    line-height: 1.55;
  }

  .story-board img {
    width: 100%;
    height: auto;

    display: block;
  }

  .chapter-video-stack {
    max-width: 100%;
    gap: 60px;

    margin: 30px auto 70px;
  }

  .chapter-video {
    width: 100%;
    height: auto;

    aspect-ratio: 16 / 9;

    object-fit: cover;
  }

}

/* =========================================================
   PROJECT LOBBY — FULL WIDTH MODE
   ========================================================= */

.page.project-lobby-mode {
  grid-template-columns: 1fr;
}

.page.project-lobby-mode .left-panel,
.page.project-lobby-mode .right-panel {
  display: none;
}

.page.project-lobby-mode .main-stage {
  grid-column: 1;
  width: 100%;
  height: 100%;

  margin: 0;

  overflow: hidden;
}

.project-lobby {
  position: relative;
  z-index: 5;

  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;

  overflow: hidden;
}

.project-lobby-header {
  flex: 0 0 auto;

  min-height: 78px;
  padding: 18px 34px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.72);
}

.project-lobby .project-top-controls {
  position: relative;
  top: auto;
  left: auto;

  display: flex;
  gap: 8px;
}

.project-lobby-name {
  color: white;

  font-size: clamp(17px, 1.6vw, 25px);
  font-weight: 700;
  text-align: right;
}

.chapter-card-carousel {
  flex: 1;
  min-height: 0;

  display: flex;
  align-items: center;
  gap: 20px;

  padding: 28px 7vw 34px;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;

  scrollbar-width: none;

  -webkit-overflow-scrolling: touch;
}

.chapter-card-carousel::-webkit-scrollbar {
  display: none;
}

.chapter-card-carousel .chapter-image-card {
  flex: 0 0 auto;

  height: min(66vh, 650px);
  width: auto;

  aspect-ratio: 1080 / 1929;

  scroll-snap-align: center;

  padding: 0;
  overflow: hidden;
}

.chapter-card-carousel .chapter-card-image {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;
}

/* =========================================================
   PROJECT LOBBY — CAROUSEL ARROWS
   ========================================================= */

.chapter-carousel-stage {
  position: relative;

  flex: 1;
  min-height: 0;

  overflow: hidden;
}

.chapter-carousel-stage .chapter-card-carousel {
  width: 100%;
  height: 100%;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 20;

  width: 72px;
  height: 150px;

  border: 0;
  padding: 0;

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

  background: rgba(20, 20, 20, 0.22);
  color: rgba(255, 255, 255, 0.35);

  font-size: 74px;
  font-family: Arial, sans-serif;
  font-weight: 200;
  line-height: 1;

  cursor: pointer;

  transform: translateY(-50%);
  transition:
    color 180ms ease,
    background 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.carousel-arrow:hover {
  color: rgba(255, 255, 255, 0.95);
  background: rgba(20, 20, 20, 0.68);

  transform: translateY(-50%) scale(1.05);
}

.carousel-arrow-left {
  left: 0;
}

.carousel-arrow-right {
  right: 0;
}

/* =========================================================
   PROJECT LOBBY — GALLERY POLISH
   ========================================================= */

/* Allow cards to travel beneath the edge arrows */
.chapter-carousel-stage .chapter-card-carousel {
  padding-left: 0;
  padding-right: 0;
}

/* Cards remain slightly quiet until selected */
.chapter-card-carousel .chapter-image-card {
  position: relative;

  opacity: 0.82;

  border-color: transparent;

  transform: scale(0.985);

  transition:
    opacity 220ms ease,
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

/* Hovered card comes forward */
.chapter-card-carousel .chapter-image-card:hover {
  z-index: 5;

  opacity: 1;

  border-color: rgba(223, 255, 53, 0);

  transform:
    translateY(-4px)
    scale(1.02);

  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.48);
}

/* Keep keyboard navigation equally visible */
.chapter-card-carousel .chapter-image-card:focus-visible {
  z-index: 5;

  opacity: 1;

  border-color: rgba(223, 255, 53, 0);
  outline: none;

  transform:
    translateY(-4px)
    scale(1.02);
}

.carousel-arrow {
  z-index: 30;
}

.carousel-arrow-left {
  left: 0;

  background: linear-gradient(
    to right,
    rgba(12, 12, 12, 0.72),
    rgba(12, 12, 12, 0)
  );
}

.carousel-arrow-right {
  right: 0;

  background: linear-gradient(
    to left,
    rgba(12, 12, 12, 0.72),
    rgba(12, 12, 12, 0)
  );
}

.carousel-arrow-left:hover {
  background: linear-gradient(
    to right,
    rgba(12, 12, 12, 0.94),
    rgba(12, 12, 12, 0)
  );
}

.carousel-arrow-right:hover {
  background: linear-gradient(
    to left,
    rgba(12, 12, 12, 0.94),
    rgba(12, 12, 12, 0)
  );
}

/* =========================================================
   HOME — WORKSHOP LOBBY
   ========================================================= */

.home-stage {
  overflow: hidden;
}

.home-workshop-lobby {
  position: relative;

  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;

  overflow: hidden;
}

.home-lobby-header {
  position: relative;
  z-index: 10;

  flex: 0 0 auto;

  min-height: 88px;
  padding: 18px 30px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;

  background: rgba(0, 0, 0, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.home-lobby-identity {
  min-width: 0;
}

.home-lobby-title {
  color: white;

  font-size: clamp(22px, 2vw, 34px);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.home-lobby-header .daily-quote {
  margin-top: 4px;

  color: rgba(255, 255, 255, 0.58);

  font-size: 13px;
  letter-spacing: 0.04em;
}

.home-search-box {
  width: min(250px, 30vw);
}


/* =========================================================
   HOME — HORIZONTAL CARD STAGE
   ========================================================= */

.home-carousel-stage {
  position: relative;

  flex: 1;
  min-height: 0;

  overflow: hidden;
}

.home-card-carousel {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  gap: 20px;

  padding:
    28px
    clamp(34px, 5vw, 80px)
    34px;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;

  scrollbar-width: none;

  -webkit-overflow-scrolling: touch;
}

.home-card-carousel::-webkit-scrollbar {
  display: none;
}


/* =========================================================
   HOME — WORKSHOP CARDS
   ========================================================= */

.home-workshop-card {
  position: relative;

  flex: 0 0 auto;

  height: min(68vh, 690px);
  width: auto;

  aspect-ratio: 1080 / 1929;

  display: block;

  border: 1px solid transparent;
  border-radius: 26px;

  overflow: hidden;

  opacity: 0.82;
  filter: brightness(0.92);

  transform: scale(0.985);

  scroll-snap-align: center;

  text-decoration: none;

  transition:
    opacity 220ms ease,
    filter 220ms ease,
    transform 220ms ease,
    box-shadow 220ms ease;
}

.home-workshop-card-image {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: contain;
}

.home-workshop-card:hover {
  z-index: 5;

  opacity: 1;
  filter: brightness(1);

  transform:
    translateY(-6px)
    scale(1.02);

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55);
}

.home-workshop-card:focus,
.home-workshop-card:focus-visible {
  outline: none;
}

.home-workshop-card:focus-visible {
  opacity: 1;
  filter: brightness(1);

  transform:
    translateY(-6px)
    scale(1.02);

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.55);
}


/* =========================================================
   HOME — NETFLIX-STYLE ARROWS
   ========================================================= */

.home-carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 30;

  width: 78px;
  height: 170px;

  border: 0;
  padding: 0;

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

  color: rgba(255, 255, 255, 0.34);
  background: transparent;

  font-family: Arial, sans-serif;
  font-size: 78px;
  font-weight: 200;
  line-height: 1;

  cursor: pointer;

  opacity: 0.48;

  transform: translateY(-50%);

  transition:
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.home-carousel-arrow-left {
  left: 0;

  background: linear-gradient(
    to right,
    rgba(10, 10, 10, 0.78),
    rgba(10, 10, 10, 0)
  );
}

.home-carousel-arrow-right {
  right: 0;

  background: linear-gradient(
    to left,
    rgba(10, 10, 10, 0.78),
    rgba(10, 10, 10, 0)
  );
}

.home-carousel-arrow:hover:not(:disabled) {
  color: rgba(255, 255, 255, 0.98);
  opacity: 1;

  transform:
    translateY(-50%)
    scale(1.06);
}

.home-carousel-arrow-left:hover:not(:disabled) {
  background: linear-gradient(
    to right,
    rgba(10, 10, 10, 0.96),
    rgba(10, 10, 10, 0)
  );
}

.home-carousel-arrow-right:hover:not(:disabled) {
  background: linear-gradient(
    to left,
    rgba(10, 10, 10, 0.96),
    rgba(10, 10, 10, 0)
  );
}

.home-carousel-arrow:disabled {
  color: rgba(255, 255, 255, 0.1);

  opacity: 0.18;
  cursor: default;
}