/* edoXasen Games studio look (lobby and studio pages). Loaded after site.css on pages with body.studio-theme.
   Traced from Dashboard-Drive\Website Design\Landing Page.jpg and the Landing Page styles in Web site design.xlsx.
   Hollowcrown pages use hc-theme.css instead. Written 2026-10-27 by Planning HQ. */

body.studio-theme {
  --base: #1F2833; --outer: #3E424B; --filigree: #C5A059; --cyan-glow: #66FCF1; --sun-gold: #FFD700;
  --glass: rgba(31, 40, 51, .45);
  background: #0B0C10; position: relative; isolation: isolate;
}
body.studio-theme::before {
  content: ""; position: fixed; inset: -80px; z-index: -2; pointer-events: none;
  background: url('/assets/web/hc-bg-castle-mist.webp') center / cover no-repeat;
  filter: blur(34px) brightness(.38) saturate(.6);
}
body.studio-theme::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 30%, rgba(46,65,71,.15) 0%, rgba(11,12,16,.72) 80%);
}

/* Navigation: Cinzel links, thin dividers, gold underline with a notch on the current page */
.studio-theme .portal-nav { gap: 0; padding: 0 12px; background: rgba(11,12,16,.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--outer); }
.studio-theme .portal-nav > a, .studio-theme .portal-nav > span, .studio-theme .nav-games-btn {
  position: relative; padding: 16px 30px; color: #D9B45A; font-size: 1.15rem; letter-spacing: 1.5px;
  border-left: 1px solid rgba(62,66,75,.7);
}
.studio-theme .portal-nav > a:first-child { border-left: 0; }
.studio-theme .portal-nav > .nav-games { border-left: 1px solid rgba(62,66,75,.7); }
.studio-theme .portal-nav > .nav-games .nav-games-btn { border-left: 0; }
.studio-theme .portal-nav > a[aria-current="page"] { color: var(--sun-gold); text-shadow: 0 0 12px rgba(255,215,0,.55); background: linear-gradient(to top, rgba(255,215,0,.10), transparent 70%); }
.studio-theme .portal-nav > a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--sun-gold), transparent); box-shadow: 0 0 10px rgba(255,215,0,.7);
}
.studio-theme .portal-nav > a[aria-current="page"]::before {
  content: ""; position: absolute; left: 50%; bottom: -7px; width: 10px; height: 10px; margin-left: -5px;
  background: #0B0C10; border-right: 2px solid var(--sun-gold); border-bottom: 2px solid var(--sun-gold); transform: rotate(45deg);
}
.studio-theme .portal-nav > a:hover, .studio-theme .nav-games-btn:hover { color: var(--sun-gold); }

/* Logo plate and subtitle */
.studio-theme .portal-branding { margin: 28px auto 6px; }
.studio-theme .portal-logo { width: min(980px, 92vw);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%); mask-composite: intersect; filter: drop-shadow(0 0 22px rgba(255,215,0,.18)) drop-shadow(0 12px 24px rgba(0,0,0,.8)); }
.studio-theme .portal-subtitle { color: #D8CFB8; font-size: clamp(.85rem, 2.2vw, 1.35rem); letter-spacing: 3px; margin-top: 14px; text-shadow: 0 2px 8px #000; }

/* Gold call to action with ornate flanks */
.studio-theme .studio-cta { position: relative; display: flex; align-items: center; justify-content: center; margin: 22px auto 6px; }
.studio-theme .studio-cta::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 50%; height: 1px; z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(197,160,89,.55) 30%, rgba(197,160,89,.55) 70%, transparent);
}
.studio-theme .btn-play {
  position: relative; display: inline-block; overflow: hidden;
  padding: 14px 54px; text-decoration: none;
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.15rem, 3vw, 2rem); letter-spacing: 1px; text-transform: uppercase;
  color: #2A1D08; text-shadow: 0 1px 0 rgba(255,240,200,.6);
  background: linear-gradient(180deg, #FBE7A1 0%, #E8C15E 38%, #C9962F 62%, #A9772A 100%);
  border: 2px solid #F3D27A; outline: 3px solid #1F2833; outline-offset: 0;
  box-shadow: 0 0 0 5px rgba(197,160,89,.55), 0 0 26px rgba(255,215,0,.45), inset 0 1px 0 rgba(255,255,255,.6), inset 0 -3px 6px rgba(90,55,10,.5);
  transition: box-shadow .3s ease, color .3s ease;
}
.studio-theme .btn-play::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.55) 50%, transparent 62%);
  background-size: 260% 100%; background-position: 130% 0; mix-blend-mode: screen; transition: background-position 1s ease;
}
.studio-theme .btn-play:hover { color: #000; box-shadow: 0 0 0 5px rgba(255,215,0,.7), 0 0 40px rgba(255,215,0,.7), inset 0 1px 0 rgba(255,255,255,.7), inset 0 -3px 6px rgba(90,55,10,.5); }
.studio-theme .btn-play:hover::after { background-position: -40% 0; }
.studio-theme .cta-flank { display: inline-block; vertical-align: middle; width: 14px; height: 14px; margin: 0 14px; transform: rotate(45deg); border: 2px solid var(--filigree); background: #1F2833; box-shadow: 0 0 8px rgba(197,160,89,.6); }

.studio-theme .studio-ribbon { width: min(900px, 92vw); margin: 16px auto 22px; text-align: center; color: #D8D8D8; font-size: .98rem; padding: 10px 18px; background: rgba(11,12,16,.55); border-top: 1px solid rgba(197,160,89,.45); border-bottom: 1px solid rgba(197,160,89,.45); }
.studio-theme .studio-ribbon strong { color: var(--sun-gold); font-family: var(--serif); letter-spacing: .5px; }

/* Showcase: faded edge panel, three cards, framed hero, three cards, faded edge panel */
.studio-theme .showcase {
  display: grid; grid-template-columns: .85fr 1.05fr 3fr 1.05fr .85fr; grid-template-rows: repeat(6, 1fr); grid-auto-flow: dense; gap: 18px; align-items: stretch;
  width: min(1880px, 98vw); margin: 8px auto 10px;
}
/* The cards beside the slider belong to the game on show (data-game on .showcase, data-for on each card). */
.studio-theme .showcase[data-game="hollowcrown"] [data-for]:not([data-for="hollowcrown"]),
.studio-theme .showcase[data-game="thekitchen"] [data-for]:not([data-for="thekitchen"]) { display: none !important; }
.studio-theme .showcase-rail { display: contents; }
.studio-theme .rail-title { display: none; }
.studio-theme .showcase-edge.left { grid-column: 1; grid-row: 1 / -1; }
.studio-theme .showcase-edge.right { grid-column: 5; grid-row: 1 / -1; }
.studio-theme .showcase-hero { grid-column: 3; grid-row: 1 / -1; }
.studio-theme .feature-card.side-l { grid-column: 2; grid-row: span 2; }
.studio-theme .feature-card.side-r { grid-column: 4; grid-row: span 2; }
.studio-theme .feature-card.span3 { grid-row: span 3; }
.studio-theme .showcase [data-for] { animation: hc-fade .45s ease both; }
@keyframes hc-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .studio-theme .showcase [data-for] { animation: none; } }
/* Side panels (traced 2026-10-27 from Landing Page.jpg): one dimmed picture in a steel frame that runs off the page edge,
   darker toward the outside; the right one is a 2x2 collage. */
.studio-theme .showcase { overflow-x: clip; }
.studio-theme .showcase-edge { position: relative; overflow: hidden; background: #0B0C10;
  border: 6px solid #23282F; box-shadow: inset 0 0 0 1px #59616C, 0 0 0 1px #07080A, 0 18px 44px rgba(0,0,0,.85); }
.studio-theme .showcase-edge.left { margin-left: -38%; }
.studio-theme .showcase-edge.right { margin-right: -38%; }
.studio-theme .showcase-edge img { width: 100%; height: 100%; object-fit: cover; display: block; filter: brightness(.58) saturate(.62) contrast(1.05); }
.studio-theme .showcase-edge::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url('/assets/web/hc-corner-steel-tl.webp'), url('/assets/web/hc-corner-steel-tr.webp'), url('/assets/web/hc-corner-steel-bl.webp'), url('/assets/web/hc-corner-steel-br.webp');
  background-repeat: no-repeat; background-size: 34px 34px; background-position: left top, right top, left bottom, right bottom; }
.studio-theme .showcase-edge.left::before, .studio-theme .showcase-edge.right::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.studio-theme .showcase-edge.left::before { background: linear-gradient(to right, rgba(8,9,12,.92) 0%, rgba(8,9,12,.55) 45%, rgba(8,9,12,.12) 100%); }
.studio-theme .showcase-edge.right::before { background: linear-gradient(to left, rgba(8,9,12,.92) 0%, rgba(8,9,12,.55) 45%, rgba(8,9,12,.12) 100%); }
.studio-theme .edge-collage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; height: 100%; background: #07080A; }
.studio-theme .edge-collage img { min-height: 0; }
/* Cards (traced): steel bevel frame with small corner brackets, the picture toned down to one mood,
   a dark band at the bottom with the gold label, gold-ring play button. */
.studio-theme .feature-card {
  position: relative; display: block; min-height: 110px; overflow: hidden; text-decoration: none; background: #07080A;
  border: 5px solid #262B33; box-shadow: inset 0 0 0 1px #5A626D, 0 0 0 1px #07080A, 0 12px 28px rgba(0,0,0,.8);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.studio-theme .feature-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease, filter .3s ease;
  filter: brightness(.8) saturate(.82) contrast(1.06); }
.studio-theme .feature-card::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background-image: url('/assets/web/hc-corner-steel-tl.webp'), url('/assets/web/hc-corner-steel-tr.webp'), url('/assets/web/hc-corner-steel-bl.webp'), url('/assets/web/hc-corner-steel-br.webp');
  background-repeat: no-repeat; background-size: 22px 22px; background-position: left top, right top, left bottom, right bottom; }
.studio-theme .feature-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; pointer-events: none;
  background: linear-gradient(to top, rgba(7,8,10,.95) 0%, rgba(7,8,10,.82) 38%, transparent 100%); }
.studio-theme .feature-card:hover { border-color: #8A6A2C; box-shadow: inset 0 0 0 1px #E8C46A, 0 0 0 1px #07080A, 0 0 22px rgba(255,215,0,.4); }
.studio-theme .feature-card:hover img { transform: scale(1.05); filter: brightness(.95) saturate(.95) contrast(1.06); }
.studio-theme .feature-card.is-lit { border-color: #B8892E; box-shadow: inset 0 0 0 1px #FFE08A, 0 0 0 1px #07080A, 0 0 20px rgba(255,200,60,.55), 0 0 6px rgba(255,215,0,.7); }
.studio-theme .fc-label { position: absolute; left: 0; right: 0; bottom: 9px; z-index: 2; text-align: center; font-family: var(--serif); font-weight: 700; color: #E9CB7A; letter-spacing: 1px; text-transform: uppercase; font-size: clamp(.78rem, 1.05vw, 1.02rem); text-shadow: 0 2px 4px #000, 0 0 10px rgba(0,0,0,.9); }
.studio-theme .fc-play { position: absolute; z-index: 2; left: 50%; top: 40%; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%;
  background: radial-gradient(circle, #1A1610 0 58%, transparent 60%), linear-gradient(160deg, #FFE7A0, #C8902E 55%, #8A5E1C);
  box-shadow: 0 0 0 1px #2A1D08, 0 0 14px rgba(255,200,60,.5), 0 4px 10px rgba(0,0,0,.8); }
.studio-theme .fc-play::after { content: ""; position: absolute; left: 20px; top: 15px; border-left: 15px solid #F3C64F; border-top: 10px solid transparent; border-bottom: 10px solid transparent; filter: drop-shadow(0 0 3px rgba(255,200,60,.6)); }

.studio-theme .showcase-hero {
  position: relative; padding: 10px; min-width: 0;
  background-color: rgba(11,12,16,.6);
  background-image: url('/assets/web/hc-corner-steel-tl.webp'), url('/assets/web/hc-corner-steel-tr.webp'), url('/assets/web/hc-corner-steel-bl.webp'), url('/assets/web/hc-corner-steel-br.webp');
  background-repeat: no-repeat; background-size: 74px 74px;
  background-position: left top, right top, left bottom, right bottom;
}
.studio-theme .showcase-hero .slider { width: 100%; margin: 0; }
.studio-theme .showcase-hero .slide { aspect-ratio: 16 / 9; }
.studio-theme .showcase-hero .slide-caption h2 { font-size: clamp(1.6rem, 3.6vw, 3.4rem); color: var(--sun-gold); text-transform: uppercase; letter-spacing: 2px; text-shadow: 0 0 18px rgba(255,215,0,.35), 0 4px 14px #000; }
.studio-theme .slider-dots { background: transparent; }

.studio-theme .studio-divider { position: relative; width: 100%; height: 2px; margin: 28px 0 0; background: linear-gradient(90deg, transparent, var(--outer) 10%, var(--filigree) 50%, var(--outer) 90%, transparent); }
.studio-theme .studio-divider::after { content: ""; position: absolute; left: 50%; top: -7px; width: 14px; height: 14px; margin-left: -7px; transform: rotate(45deg); background: #1F2833; border: 2px solid var(--filigree); box-shadow: 0 0 10px rgba(197,160,89,.6); }

/* Content sections and panels: see-through glass */
.studio-theme .section-title { color: var(--sun-gold); text-align: center; border-bottom: 0; text-transform: uppercase; letter-spacing: 2px; }
.studio-theme .section-title::after { content: ""; display: block; width: 120px; height: 1px; margin: 10px auto 0; background: var(--filigree); }
.studio-theme .panel, .studio-theme .game-card { background: var(--glass); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid var(--outer); outline: 1px solid rgba(197,160,89,.25); outline-offset: 4px; }
.studio-theme .game-card:hover { border-color: var(--sun-gold); }
.studio-theme .btn-gold { background: linear-gradient(180deg, rgba(232,193,94,.18), rgba(169,119,42,.12)); }

/* Utility footer: four columns, gold headers */
.studio-theme .utility-footer { background: rgba(11,12,16,.78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-top: 1px solid var(--outer); gap: 0; padding: 30px 3%; margin-top: 0; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.studio-theme .footer-section { background: transparent; border: 0; border-left: 1px solid rgba(62,66,75,.7); padding: 6px 26px 10px; }
.studio-theme .footer-section:first-child { border-left: 0; }
.studio-theme .footer-header { color: #E3B860; font-size: 1.25rem; letter-spacing: 1px; }
.studio-theme .btn-submit { background: linear-gradient(180deg, #F3D27A, #C9962F); color: #2A1D08; border: 1px solid #F3D27A; font-family: var(--serif); font-weight: 700; box-shadow: 0 0 14px rgba(255,215,0,.35); }
.studio-theme .btn-submit:hover { color: #000; box-shadow: 0 0 22px rgba(255,215,0,.6); }
.studio-theme .copyright { background: rgba(11,12,16,.88); }

/* Phones and small screens */
@media (max-width: 1100px) {
  .studio-theme .showcase { grid-template-columns: 1fr 2.4fr 1fr; }
  .studio-theme .showcase-edge { display: none !important; }
  .studio-theme .showcase-hero { grid-column: 2; }
  .studio-theme .feature-card.side-l { grid-column: 1; }
  .studio-theme .feature-card.side-r { grid-column: 3; }
}
@media (max-width: 760px) {
  .studio-theme .portal-nav > a, .studio-theme .portal-nav > span, .studio-theme .nav-games-btn { padding: 10px 12px; font-size: .9rem; }
  /* Phone: the slider, then one row of the game's own cards that swipes left and right */
  .studio-theme .showcase { display: block; width: 94vw; }
  .studio-theme .showcase-hero { padding: 6px; background-size: 40px 40px; }
  .studio-theme .rail-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 14px 2px 8px; }
  .studio-theme .rail-game { font-family: var(--serif); font-weight: 700; color: var(--sun-gold); letter-spacing: 1px; text-transform: uppercase; font-size: 1rem; }
  .studio-theme .rail-hint { color: #A9A08A; font-size: .8rem; }
  .studio-theme .rail-hint::after { content: " \2192"; color: var(--filigree); }
  /* The row fades into tinted black at both ends, like the reference's side panels */
  .studio-theme .showcase-rail {
    display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 7%;
    -webkit-overflow-scrolling: touch; padding: 6px 7% 14px; margin: 0 -3vw; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 86%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 86%, transparent 100%);
  }
  .studio-theme .showcase-rail::-webkit-scrollbar { display: none; }
  .studio-theme .showcase-rail .feature-card { flex: 0 0 74%; aspect-ratio: 16 / 9; min-height: 0; scroll-snap-align: start; }
  .studio-theme .showcase-edge { display: none !important; }
  .studio-theme .btn-play { padding: 12px 22px; }
  .studio-theme .cta-flank { display: none; }
  .studio-theme .footer-section { border-left: 0; border-top: 1px solid rgba(62,66,75,.7); padding: 16px 6px; }
  .studio-theme .footer-section:first-child { border-top: 0; }
}

/* Book-style side rails (2026-10-29): each side holds pages of cards that turn left and right. */
.studio-theme .book { position: relative; min-width: 0; grid-row: 1 / -1; display: flex; flex-direction: column; }
.studio-theme .book.side-l { grid-column: 2; }
.studio-theme .book.side-r { grid-column: 4; }
.studio-theme .book-track { flex: 1 1 auto; min-height: 0; display: flex; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.studio-theme .book-track::-webkit-scrollbar { display: none; }
.studio-theme .book-track:focus-visible { outline: 2px solid #E8C46A; outline-offset: 3px; }
.studio-theme .book-page { flex: 0 0 100%; min-width: 0; box-sizing: border-box; scroll-snap-align: start; scroll-snap-stop: always;
  display: grid; grid-template-rows: repeat(var(--n, 3), 1fr); gap: 18px; }
.studio-theme .book-page .feature-card { min-height: 90px; }
.studio-theme .book-btn { position: absolute; top: 50%; z-index: 6; width: 38px; height: 38px; margin-top: -19px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid #8A6A2C; background: rgba(11,12,16,.88); color: #F3D27A; font-size: 1.7rem; line-height: 1; box-shadow: 0 0 10px rgba(0,0,0,.8); }
.studio-theme .book-prev { left: 8px; }
.studio-theme .book-next { right: 8px; }
.studio-theme .book-btn:hover:not(:disabled), .studio-theme .book-btn:focus-visible { border-color: #E8C46A; box-shadow: 0 0 14px rgba(255,215,0,.5); }
.studio-theme .book-btn:disabled { opacity: .25; cursor: default; }
.studio-theme .book-count { position: absolute; top: 10px; left: 50%; z-index: 6; transform: translateX(-50%); padding: 2px 9px; border-radius: 10px;
  background: rgba(11,12,16,.8); color: #E9CB7A; font-size: .75rem; letter-spacing: 1px; pointer-events: none; }
.studio-theme .book-count:empty { display: none; }
@media (max-width: 1100px) {
  .studio-theme .book.side-l { grid-column: 1; }
  .studio-theme .book.side-r { grid-column: 3; }
}
@media (max-width: 760px) {
  /* Phone: each side becomes one row you swipe, a card at a time */
  .studio-theme .showcase-rail { display: block; overflow: visible; padding: 0; margin: 0; -webkit-mask-image: none; mask-image: none; }
  .studio-theme .book { display: block; grid-row: auto; margin: 0 0 12px; }
  .studio-theme .book-track { gap: 12px; padding: 6px 7% 12px; scroll-padding-inline: 7%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 86%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 86%, transparent 100%); }
  .studio-theme .book-page { display: contents; }
  .studio-theme .book-page .feature-card { flex: 0 0 74%; aspect-ratio: 16 / 9; min-height: 0; scroll-snap-align: start; }
  .studio-theme .book-btn, .studio-theme .book-count { display: none; }
}

/* Smart drag across the whole showcase: sideways swaps the game, up and down scrolls the page */
.studio-theme .showcase { touch-action: pan-y; -webkit-user-select: none; user-select: none; cursor: grab; }
.studio-theme .showcase.dragging, .studio-theme .showcase.dragging * { cursor: grabbing !important; }
.studio-theme .showcase img { -webkit-user-drag: none; }
.studio-theme .book-track { touch-action: pan-y; }
@media (max-width: 760px) { .studio-theme .book-track { touch-action: pan-x pan-y; } }
.studio-theme .showcase a { -webkit-user-drag: none; }

/* Smart drag v2: whole showcase slides; no small arrows */
.studio-theme .showcase-clip { overflow: hidden; }
.studio-theme .showcase .slider-btn, .studio-theme .showcase .book-btn { display: none !important; }
.studio-theme .book-count { pointer-events: auto; cursor: pointer; }

/* Smart drag v3: the next game's panel is a real copy parked beside the current one */
.studio-theme .showcase-clip { position: relative; overflow: hidden; }
.studio-theme .showcase-ghost { position: absolute; margin: 0; pointer-events: none; will-change: transform; }
