/* Lounge-only styles keep the shared masthead and footer intact. */
.lounge-page .lounge-main {
  width: 100%;
  max-width: 1240px;
  padding: 40px 36px 42px;
}

.lounge-main .lounge-intro {
  position: relative;
  display: block;
  padding: 0 90px 28px;
  margin-bottom: 0;
  border: 0;
  text-align: center;
}

.lounge-main .lounge-intro h1 {
  margin-bottom: 12px;
  font-size: 42px;
  letter-spacing: 3px;
}

.lounge-main .lounge-intro p { font-size: 15px; }
.lounge-main .blossom { position: absolute; right: 12px; top: 0; }

.lounge-main .game-carousel { margin-bottom: 46px; }
.lounge-main .carousel-window { overflow: hidden; border-radius: 16px; box-shadow: 0 12px 32px #112d4910; }
.lounge-main .featured-game {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  min-height: 370px;
  margin: 0;
  border-radius: 0;
  background: #112d49;
}

.lounge-main .featured-scene { min-height: 370px; }
.lounge-main .featured-scene > img { transition: transform .5s ease; }
.lounge-main .featured-scene:hover > img { transform: scale(1.035); }
.lounge-main .ship-scene > img { object-position: 50% 28%; }
.lounge-main .ship-feature { background: #163e43; }
.lounge-main .featured-copy { padding: 32px; }
.lounge-main .featured-copy h2 { font-size: 28px; margin-bottom: 16px; }
.lounge-main .featured-copy p { line-height: 1.95; margin-bottom: 20px; }
.lounge-main .featured-meta { gap: 0; padding: 13px 0; margin-bottom: 22px; border-block: 1px solid #ffffff30; }
.lounge-main .featured-meta span { padding: 0 14px; }
.lounge-main .featured-meta span:first-child { padding-left: 0; }
.lounge-main .featured-meta span + span { border-left: 1px solid #ffffff30; }
.lounge-main .featured-copy .game-link { border-radius: 24px; gap: 20px; }

.lounge-main .carousel-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 14px; }
.lounge-main .carousel-pickers { display: flex; gap: 26px; min-width: 0; }
.lounge-main .carousel-picker {
  position: relative;
  padding: 10px 0 13px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #71818e;
  font: 600 14px/1.5 var(--serif);
}
.lounge-main .carousel-picker::after { content: ''; position: absolute; height: 3px; bottom: 1px; left: 18%; right: 18%; background: transparent; border-radius: 3px; }
.lounge-main .carousel-picker[aria-pressed="true"] { color: #112d49; }
.lounge-main .carousel-picker[aria-pressed="true"]::after { background: #eb917c; }
.lounge-main .carousel-picker:hover { background: transparent; color: #a25a44; }
.lounge-main .carousel-actions { display: flex; gap: 8px; flex-shrink: 0; }
.lounge-main .carousel-action { display: grid; place-items: center; width: 40px; height: 38px; padding: 0; border: 1px solid #cbd7df; border-radius: 8px; background: #fff; color: #173b54; }
.lounge-main .carousel-action:hover { background: #edf5f6; border-color: #7494a5; }
.lounge-main svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lounge-main .carousel-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lounge-main .carousel-ready .featured-game:not([hidden]) { animation: lounge-reveal .35s ease both; }
.lounge-main .carousel-ready .featured-scene { touch-action: pan-y; }

.lounge-main .section-title { display: block; text-align: center; margin-bottom: 26px; }
.lounge-main .section-title h2 { font-size: 30px; margin: 0 0 12px; }
.lounge-main .section-title h2::after { content: ''; display: block; width: 46px; height: 3px; border-radius: 3px; background: #eb917c; margin: 14px auto; }
.lounge-main .section-title span { display: block; max-width: none; font-size: 14px; }
.lounge-main .lounge-games { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 36px; }
.lounge-main .lounge-game {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid #dce5eb;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.lounge-main .lounge-game:hover { transform: translateY(-5px); border-color: #b5cdd4; background: #fff; box-shadow: 0 10px 25px #112d4910; }
.lounge-main .game-card-art { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: #e7f0f2; }
.lounge-main .lounge-game .game-cover { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.lounge-main .lounge-game:hover .game-cover { transform: scale(1.03); }
.lounge-main .lounge-game .ship-cover { object-position: 50% 27%; }
.lounge-main .lounge-game .repair-cover { object-position: 50% 43%; }
.lounge-main .lounge-game > .game-card-copy:last-child { display: flex; flex: 1; flex-direction: column; padding: 18px; }
.lounge-main .lounge-game h3 { font-size: 18px; line-height: 1.5; margin-bottom: 10px; }
.lounge-main .lounge-game p { font-size: 13px; line-height: 1.85; min-height: 0; margin-bottom: 17px; }
.lounge-main .lounge-game small { display: inline-flex; align-self: flex-start; align-items: center; gap: 9px; margin-top: auto; font-size: 12px; font-weight: 600; color: #235966; }
.lounge-main .lounge-game small svg { width: 16px; height: 16px; transition: transform .2s ease; }
.lounge-main .lounge-game:hover small svg { transform: translateX(3px); }
.lounge-main .lounge-note { align-items: center; gap: 28px; padding: 24px 28px; background: #eff6f8; border-radius: 12px; }
.lounge-main .lounge-note h2 { margin: 0; padding-right: 28px; border-right: 2px solid #e7a18e; font-size: 19px; }
.lounge-main .lounge-note p { color: #5e7382; font-size: 12px; }

@keyframes lounge-reveal { from { opacity: .45; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 1050px) {
  .lounge-main .featured-copy { padding: 26px; }
  .lounge-main .featured-copy h2 { font-size: 24px; }
  .lounge-main .featured-meta span { padding-inline: 10px; }
  .lounge-main .lounge-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lounge-main .lounge-note { display: block; }
  .lounge-main .lounge-note h2 { padding: 0; margin-bottom: 10px; border: 0; }
}

@media (max-width: 760px) {
  .lounge-page .lounge-main { padding: 28px 20px 30px; }
  .lounge-main .lounge-intro { padding: 0 0 24px; }
  .lounge-main .lounge-intro h1 { font-size: 32px; }
  .lounge-main .lounge-intro p { font-size: 14px; }
  .lounge-main .blossom { right: -2px; top: -15px; opacity: .3; z-index: -1; }
  .lounge-main .game-carousel { margin-bottom: 34px; }
  .lounge-main .carousel-window { border-radius: 12px; }
  .lounge-main .featured-game { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .lounge-main .featured-scene { min-height: 0; aspect-ratio: 16/9; }
  .lounge-main .featured-copy { padding: 22px; min-height: 307px; }
  .lounge-main .featured-copy h2 { font-size: 24px; margin-bottom: 12px; }
  .lounge-main .featured-copy p { margin-bottom: 16px; font-size: 13px; line-height: 1.9; }
  .lounge-main .featured-meta { margin-top: auto; margin-bottom: 18px; }
  .lounge-main .featured-copy .game-link { min-height: 44px; width: auto; }
  .lounge-main .carousel-toolbar { flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: 10px; }
  .lounge-main .carousel-pickers { width: 100%; justify-content: center; gap: 22px; }
  .lounge-main .carousel-picker { font-size: 13px; }
  .lounge-main .carousel-actions { gap: 12px; }
  .lounge-main .carousel-action { width: 44px; height: 38px; }
  .lounge-main .section-title h2 { font-size: 25px; }
  .lounge-main .section-title span { font-size: 12px; }
  .lounge-main .lounge-games { gap: 14px; }
  .lounge-main .lounge-game > .game-card-copy:last-child { padding: 16px; }
  .lounge-main .lounge-game h3 { font-size: 18px; }
  .lounge-main .lounge-note { padding: 20px; }
  .lounge-main .lounge-note h2 { font-size: 18px; }
}

@media (max-width: 480px) {
  .lounge-main .lounge-games { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .lounge-main .lounge-game { flex-direction: row; }
  .lounge-main .lounge-game .game-card-art { width: 30%; flex-shrink: 0; aspect-ratio: auto; }
  .lounge-main .lounge-game > .game-card-copy:last-child { min-width: 0; padding: 16px 14px; }
  .lounge-main .lounge-game h3 { font-size: 16px; margin-bottom: 7px; }
  .lounge-main .lounge-game p { font-size: 12px; margin-bottom: 10px; }
  .lounge-main .lounge-game small { font-size: 12px; }
  .lounge-main .featured-copy { padding: 22px 20px; }
}

@media (max-width: 350px) {
  .lounge-main .featured-copy { min-height: 323px; }
}

@media (prefers-reduced-motion: reduce) {
  .lounge-main .carousel-ready .featured-game:not([hidden]) { animation: none; }
  .lounge-main .featured-scene > img,
  .lounge-main .lounge-game,
  .lounge-main .lounge-game .game-cover,
  .lounge-main .lounge-game small svg { transition: none; }
}
