/* RYBY 5.4.1 — CINEMATIC PORTFOLIO EXPERIENCE */
:root{
  --ry54-ink:#050a09;
  --ry54-text:#f1f7f4;
  --ry54-muted:#9fb0aa;
  --ry54-accent:#7bdab2;
  --ry54-gold:#d6b66a;
  --ry54-line:rgba(141,210,181,.18);
  --ry54-glass:rgba(7,18,16,.76);
}

body.ryby-v54-home{
  background:
    radial-gradient(circle at 18% 12%,rgba(75,143,116,.10),transparent 34rem),
    radial-gradient(circle at 84% 28%,rgba(214,182,106,.07),transparent 30rem),
    linear-gradient(180deg,#06100e,#071310 44%,#040908 100%);
}

.ry54-progress{
  position:fixed;
  top:0;left:0;
  z-index:9999;
  width:100%;
  height:3px;
  pointer-events:none;
  background:linear-gradient(90deg,var(--ry54-accent),var(--ry54-gold));
  transform:scaleX(0);
  transform-origin:left center;
  box-shadow:0 0 20px rgba(123,218,178,.42);
}

.ry54-story-rail{
  position:fixed;
  right:16px;
  top:50%;
  transform:translateY(-50%);
  z-index:120;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
  padding:10px 8px;
  border:1px solid var(--ry54-line);
  border-radius:18px;
  background:rgba(4,12,10,.64);
  backdrop-filter:blur(16px) saturate(140%);
  box-shadow:0 18px 48px rgba(0,0,0,.25);
}

.ry54-story-link{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  width:100%;
  padding:4px;
  border:0;
  background:transparent;
  color:var(--ry54-muted);
  cursor:pointer;
}

.ry54-story-link span{
  max-width:0;
  overflow:hidden;
  opacity:0;
  white-space:nowrap;
  font-size:11px;
  transition:max-width .25s ease,opacity .25s ease;
}

.ry54-story-link i{
  display:block;
  width:7px;height:7px;
  border-radius:50%;
  background:rgba(255,255,255,.22);
  box-shadow:0 0 0 1px rgba(255,255,255,.08);
  transition:transform .2s ease,background .2s ease,box-shadow .2s ease;
}

.ry54-story-link:hover span,
.ry54-story-link.is-active span{
  max-width:180px;
  opacity:1;
}

.ry54-story-link.is-active{
  color:var(--ry54-text);
}
.ry54-story-link.is-active i{
  background:var(--ry54-accent);
  transform:scale(1.4);
  box-shadow:0 0 18px rgba(123,218,178,.72);
}

.ry54-section{
  position:relative;
  isolation:isolate;
}

.ry54-section::before{
  content:attr(data-ry54-index);
  position:absolute;
  right:clamp(10px,5vw,80px);
  top:10px;
  z-index:-1;
  color:rgba(255,255,255,.022);
  font-size:clamp(72px,16vw,220px);
  font-weight:900;
  line-height:.8;
  letter-spacing:-.08em;
  pointer-events:none;
}

.ry54-section::after{
  content:"";
  position:absolute;
  left:8%;
  right:8%;
  bottom:0;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(123,218,178,.16),transparent);
  pointer-events:none;
}

.ry54-cinematic-reveal{
  opacity:0;
  transform:translateY(34px) scale(.992);
  filter:blur(4px);
  transition:
    opacity .78s ease,
    transform .9s cubic-bezier(.18,.78,.18,1),
    filter .78s ease;
}

.ry54-cinematic-reveal.is-visible{
  opacity:1;
  transform:none;
  filter:none;
}

.ry54-tilt{
  transform-style:preserve-3d;
  will-change:transform;
}

.ry54-tilt::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  border-radius:inherit;
  background:
    radial-gradient(circle at var(--ry54-x,50%) var(--ry54-y,50%),
      rgba(255,255,255,.09),transparent 30%);
  opacity:0;
  transition:opacity .25s ease;
}

.ry54-tilt:hover::before{opacity:1}

.ry54-image{
  cursor:zoom-in;
  transition:transform .4s cubic-bezier(.2,.8,.2,1),filter .4s ease;
}
.ry54-image:hover{
  transform:scale(1.012);
  filter:saturate(1.06) contrast(1.02);
}

.ry54-lightbox{
  position:fixed;
  inset:0;
  z-index:10000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:30px;
  background:rgba(2,7,6,.88);
  backdrop-filter:blur(18px) saturate(130%);
}
.ry54-lightbox.is-open{display:flex}

.ry54-lightbox-inner{
  position:relative;
  width:min(94vw,1500px);
  max-height:92vh;
  display:flex;
  align-items:center;
  justify-content:center;
}

.ry54-lightbox img{
  max-width:100%;
  max-height:88vh;
  object-fit:contain;
  border-radius:20px;
  box-shadow:0 40px 120px rgba(0,0,0,.55);
}

.ry54-lightbox-close{
  position:absolute;
  top:-18px;
  right:-18px;
  width:46px;height:46px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(6,16,14,.82);
  color:white;
  font-size:26px;
  cursor:pointer;
}

.ry54-lightbox-caption{
  position:absolute;
  left:50%;
  bottom:12px;
  transform:translateX(-50%);
  max-width:min(90%,720px);
  padding:9px 14px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  background:rgba(4,10,9,.68);
  color:#eaf5f0;
  font-size:12px;
  text-align:center;
  backdrop-filter:blur(12px);
}

.ry54-home-badge{
  position:fixed;
  left:14px;
  bottom:14px;
  z-index:100;
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 11px;
  border:1px solid var(--ry54-line);
  border-radius:999px;
  background:rgba(4,12,10,.68);
  color:var(--ry54-muted);
  font-size:10px;
  letter-spacing:.08em;
  text-transform:uppercase;
  backdrop-filter:blur(14px);
}
.ry54-home-badge::before{
  content:"";
  width:7px;height:7px;border-radius:50%;
  background:var(--ry54-accent);
  box-shadow:0 0 14px rgba(123,218,178,.8);
}

@media (max-width:980px){
  .ry54-story-rail{display:none}
  .ry54-home-badge{
    left:10px;
    bottom:10px;
  }
}

@media (max-width:640px){
  .ry54-lightbox{padding:14px}
  .ry54-lightbox img{border-radius:14px}
  .ry54-lightbox-close{right:0;top:-54px}
}

@media (prefers-reduced-motion:reduce){
  .ry54-cinematic-reveal{
    opacity:1;
    transform:none;
    filter:none;
    transition:none;
  }
  .ry54-tilt{transform:none !important}
}
/* ===== RYBY 5.9 — POLISH + PERFORMANCE BUNDLE START ===== */
:root{
  --ry59-accent:#7fdcb7;
  --ry59-gold:#d8ba70;
  --ry59-text:#eef7f3;
  --ry59-muted:#9fb2aa;
  --ry59-line:rgba(127,220,183,.18);
  --ry59-panel:rgba(4,13,11,.82);
}

.ry59-skip-link{
  position:fixed;
  left:14px;
  top:14px;
  z-index:1000000;
  padding:10px 14px;
  border:1px solid var(--ry59-line);
  border-radius:12px;
  background:var(--ry59-panel);
  color:var(--ry59-text);
  text-decoration:none;
  transform:translateY(-160%);
  transition:transform .18s ease;
  backdrop-filter:blur(14px);
}
.ry59-skip-link:focus{transform:none}

.ry59-smart-header{
  transition:
    transform .25s cubic-bezier(.2,.8,.2,1),
    background .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}
.ry59-smart-header.is-compact{
  background:rgba(4,13,11,.86) !important;
  backdrop-filter:blur(18px) saturate(140%);
  box-shadow:0 14px 40px rgba(0,0,0,.24);
  border-bottom-color:var(--ry59-line) !important;
}
.ry59-smart-header.is-hidden{
  transform:translateY(-110%);
}

.ry59-stagger{
  opacity:0;
  transform:translateY(18px);
  transition:
    opacity .56s ease var(--ry59-delay,0ms),
    transform .66s cubic-bezier(.2,.8,.2,1) var(--ry59-delay,0ms);
}
.ry59-stagger.is-visible{
  opacity:1;
  transform:none;
}

.ry59-focus-ring :focus-visible{
  outline:2px solid var(--ry59-accent) !important;
  outline-offset:3px !important;
  box-shadow:0 0 0 4px rgba(127,220,183,.10) !important;
}

.ry59-type-polish h1{
  font-size:clamp(2.4rem,7vw,7.8rem);
  line-height:.92;
  letter-spacing:-.05em;
}
.ry59-type-polish h2{
  font-size:clamp(1.8rem,4.5vw,4.6rem);
  line-height:1;
  letter-spacing:-.035em;
}
.ry59-type-polish h3{
  font-size:clamp(1.25rem,2.7vw,2.2rem);
  line-height:1.15;
}
.ry59-type-polish p,
.ry59-type-polish li{
  text-wrap:pretty;
}

img.ry59-img-polish{
  content-visibility:auto;
  contain-intrinsic-size:800px 600px;
}

.ry59-mobile-safe{
  padding-bottom:max(0px,env(safe-area-inset-bottom));
}

.ry59-scroll-restored{
  scroll-behavior:auto !important;
}

@media (max-width:760px){
  .ry59-type-polish h1{
    font-size:clamp(2.2rem,14vw,5.2rem);
  }
  .ry59-type-polish h2{
    font-size:clamp(1.65rem,9vw,3.4rem);
  }

  .ry59-smart-header{
    will-change:transform;
  }

  .ry59-mobile-safe .ry55-dock,
  .ry59-mobile-safe .ry56-filmstrip{
    max-width:calc(100vw - 16px);
  }
}

@media (prefers-reduced-motion:reduce){
  .ry59-smart-header,
  .ry59-stagger,
  .ry59-skip-link{
    transition:none !important;
  }
  .ry59-stagger{
    opacity:1 !important;
    transform:none !important;
  }
}
/* ===== RYBY 5.9 — POLISH + PERFORMANCE BUNDLE END ===== */
/* ===== RYBY 5.5 — COMMAND PALETTE + SMART DOCK ===== */
:root{
  --ry55-bg:rgba(4,12,10,.86);
  --ry55-bg-strong:rgba(3,9,8,.96);
  --ry55-line:rgba(126,218,179,.18);
  --ry55-line-strong:rgba(126,218,179,.34);
  --ry55-text:#f1f7f4;
  --ry55-muted:#9eb1a9;
  --ry55-accent:#7edab3;
  --ry55-gold:#d7b86c;
  --ry55-shadow:0 28px 90px rgba(0,0,0,.48);
}

.ry55-dock{
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  z-index:9800;
  display:flex;
  align-items:center;
  gap:6px;
  padding:7px;
  border:1px solid var(--ry55-line);
  border-radius:20px;
  background:var(--ry55-bg);
  backdrop-filter:blur(20px) saturate(150%);
  box-shadow:var(--ry55-shadow);
}

.ry55-dock button,
.ry55-dock a{
  appearance:none;
  border:0;
  min-width:46px;
  height:44px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:14px;
  background:transparent;
  color:var(--ry55-muted);
  text-decoration:none;
  font:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}

.ry55-dock button:hover,
.ry55-dock a:hover,
.ry55-dock a.is-active{
  background:rgba(126,218,179,.09);
  color:var(--ry55-text);
  transform:translateY(-1px);
}

.ry55-dock .ry55-command{
  min-width:auto;
  padding-inline:12px;
  border:1px solid var(--ry55-line);
  color:var(--ry55-accent);
}

.ry55-kbd{
  padding:3px 6px;
  border:1px solid rgba(255,255,255,.12);
  border-bottom-color:rgba(255,255,255,.22);
  border-radius:7px;
  background:rgba(255,255,255,.05);
  color:#dceae4;
  font-size:10px;
  line-height:1;
}

.ry55-overlay{
  position:fixed;
  inset:0;
  z-index:99990;
  display:none;
  align-items:flex-start;
  justify-content:center;
  padding:12vh 18px 24px;
  background:rgba(1,5,4,.72);
  backdrop-filter:blur(18px) saturate(130%);
}

.ry55-overlay.is-open{
  display:flex;
}

.ry55-palette{
  width:min(720px,100%);
  overflow:hidden;
  border:1px solid var(--ry55-line-strong);
  border-radius:24px;
  background:linear-gradient(180deg,rgba(8,22,18,.98),rgba(4,12,10,.98));
  box-shadow:0 50px 150px rgba(0,0,0,.58);
}

.ry55-search-wrap{
  display:flex;
  align-items:center;
  gap:12px;
  padding:16px 18px;
  border-bottom:1px solid var(--ry55-line);
}

.ry55-search-wrap svg{
  width:20px;
  height:20px;
  flex:0 0 auto;
  opacity:.68;
}

.ry55-search{
  width:100%;
  border:0 !important;
  outline:0 !important;
  background:transparent !important;
  color:var(--ry55-text) !important;
  font-size:17px;
  box-shadow:none !important;
}

.ry55-search::placeholder{
  color:#71877e;
}

.ry55-results{
  max-height:min(58vh,520px);
  overflow:auto;
  padding:10px;
}

.ry55-item{
  width:100%;
  display:grid;
  grid-template-columns:38px minmax(0,1fr) auto;
  align-items:center;
  gap:12px;
  padding:11px 12px;
  border:0;
  border-radius:14px;
  background:transparent;
  color:var(--ry55-text);
  text-align:left;
  cursor:pointer;
}

.ry55-item:hover,
.ry55-item.is-selected{
  background:rgba(126,218,179,.09);
}

.ry55-item-icon{
  width:36px;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--ry55-line);
  border-radius:11px;
  background:rgba(255,255,255,.025);
  color:var(--ry55-accent);
  font-weight:900;
}

.ry55-item-copy{
  min-width:0;
}

.ry55-item-title{
  overflow:hidden;
  color:var(--ry55-text);
  font-size:13px;
  font-weight:800;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.ry55-item-subtitle{
  margin-top:3px;
  overflow:hidden;
  color:var(--ry55-muted);
  font-size:11px;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.ry55-item-meta{
  color:#72867e;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.ry55-footer{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 14px;
  border-top:1px solid var(--ry55-line);
  color:#70847c;
  font-size:10px;
}

.ry55-empty{
  padding:28px 18px;
  color:var(--ry55-muted);
  text-align:center;
  font-size:13px;
}

html.ry55-focus-mode body > *:not(main):not([role="main"]):not(#app):not(.ry55-dock):not(.ry55-overlay){
  opacity:.18;
  transition:opacity .25s ease;
}

html.ry55-focus-mode .ry55-dock{
  opacity:.92;
}

.ry55-focus-toast{
  position:fixed;
  top:18px;
  left:50%;
  z-index:99980;
  transform:translateX(-50%) translateY(-10px);
  padding:9px 13px;
  border:1px solid var(--ry55-line);
  border-radius:999px;
  background:var(--ry55-bg-strong);
  color:var(--ry55-text);
  font-size:11px;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease,transform .2s ease;
}

.ry55-focus-toast.is-visible{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

@media (max-width:760px){
  .ry55-dock{
    bottom:8px;
    width:calc(100% - 16px);
    justify-content:space-between;
    border-radius:18px;
  }
  .ry55-dock button,
  .ry55-dock a{
    flex:1 1 0;
    min-width:0;
    padding:0 7px;
    font-size:10px;
  }
  .ry55-dock .ry55-label{
    display:none;
  }
  .ry55-overlay{
    padding-top:8vh;
  }
  .ry55-palette{
    border-radius:20px;
  }
}

@media (prefers-reduced-motion:reduce){
  .ry55-dock *,
  .ry55-overlay *,
  .ry55-focus-toast{
    transition:none !important;
  }
}
/* ===== RYBY 5.6 — GALLERY PRO + CINEMATIC TIMELINE START ===== */
:root{
  --ry56-line:rgba(127,220,183,.18);
  --ry56-line-strong:rgba(127,220,183,.34);
  --ry56-text:#eef7f3;
  --ry56-muted:#9fb2aa;
  --ry56-accent:#7fdcb7;
  --ry56-gold:#d8ba70;
  --ry56-panel:rgba(4,13,11,.78);
}

.ry56-gallery-shell{
  position:relative;
  margin-block:22px;
}

.ry56-gallery-grid{
  display:grid !important;
  grid-template-columns:repeat(12,minmax(0,1fr));
  gap:10px;
  align-items:stretch;
}

.ry56-gallery-item{
  position:relative;
  overflow:hidden;
  min-height:180px;
  border:1px solid var(--ry56-line);
  border-radius:18px;
  background:rgba(255,255,255,.025);
  box-shadow:0 18px 48px rgba(0,0,0,.18);
  cursor:zoom-in;
}

.ry56-gallery-item:nth-child(6n+1),
.ry56-gallery-item:nth-child(6n+4){
  grid-column:span 7;
}
.ry56-gallery-item:nth-child(6n+2),
.ry56-gallery-item:nth-child(6n+3),
.ry56-gallery-item:nth-child(6n+5),
.ry56-gallery-item:nth-child(6n+6){
  grid-column:span 5;
}

.ry56-gallery-item img{
  width:100% !important;
  height:100% !important;
  min-height:180px;
  display:block;
  object-fit:cover !important;
  transition:transform .55s cubic-bezier(.2,.8,.2,1),filter .4s ease;
}

.ry56-gallery-item:hover img{
  transform:scale(1.045);
  filter:saturate(1.06) contrast(1.03);
}

.ry56-gallery-meta{
  position:absolute;
  inset:auto 10px 10px 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;
  background:rgba(3,10,8,.62);
  color:var(--ry56-text);
  backdrop-filter:blur(12px);
  opacity:0;
  transform:translateY(6px);
  transition:opacity .22s ease,transform .22s ease;
  pointer-events:none;
}

.ry56-gallery-item:hover .ry56-gallery-meta{
  opacity:1;
  transform:none;
}

.ry56-gallery-meta span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11px;
}

.ry56-gallery-meta i{
  flex:0 0 auto;
  color:var(--ry56-accent);
  font-style:normal;
  font-size:12px;
  font-weight:900;
}

.ry56-timeline{
  position:relative;
  margin-block:30px;
  padding-left:28px;
}

.ry56-timeline::before{
  content:"";
  position:absolute;
  left:7px;
  top:0;
  bottom:0;
  width:1px;
  background:linear-gradient(var(--ry56-accent),rgba(127,220,183,.08),var(--ry56-gold));
}

.ry56-timeline-node{
  position:relative;
  margin:0 0 22px;
}

.ry56-timeline-node::before{
  content:"";
  position:absolute;
  left:-27px;
  top:16px;
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--ry56-accent);
  box-shadow:0 0 0 5px rgba(127,220,183,.08),0 0 18px rgba(127,220,183,.48);
}

.ry56-timeline-node:nth-child(even)::before{
  background:var(--ry56-gold);
  box-shadow:0 0 0 5px rgba(216,186,112,.08),0 0 18px rgba(216,186,112,.38);
}

.ry56-timeline-node{
  padding:16px 18px;
  border:1px solid var(--ry56-line);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(8,22,18,.72),rgba(5,14,12,.68));
  box-shadow:0 16px 44px rgba(0,0,0,.16);
}

.ry56-timeline-node h1,
.ry56-timeline-node h2,
.ry56-timeline-node h3,
.ry56-timeline-node h4{
  margin-top:0;
}

.ry56-filmstrip{
  position:fixed;
  left:50%;
  bottom:18px;
  z-index:10020;
  transform:translateX(-50%);
  width:min(900px,calc(100% - 24px));
  display:none;
  gap:8px;
  padding:8px;
  overflow-x:auto;
  border:1px solid var(--ry56-line);
  border-radius:16px;
  background:rgba(3,10,8,.74);
  backdrop-filter:blur(18px) saturate(140%);
  box-shadow:0 18px 54px rgba(0,0,0,.34);
}

.ry56-filmstrip.is-open{
  display:flex;
}

.ry56-filmstrip button{
  flex:0 0 64px;
  width:64px;
  height:48px;
  padding:0;
  overflow:hidden;
  border:1px solid transparent;
  border-radius:10px;
  background:transparent;
  cursor:pointer;
}

.ry56-filmstrip button.is-active{
  border-color:var(--ry56-accent);
  box-shadow:0 0 0 2px rgba(127,220,183,.12);
}

.ry56-filmstrip img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.ry56-gallery-counter{
  position:fixed;
  top:18px;
  left:50%;
  z-index:10030;
  transform:translateX(-50%);
  display:none;
  padding:7px 11px;
  border:1px solid var(--ry56-line);
  border-radius:999px;
  background:rgba(3,10,8,.72);
  color:var(--ry56-text);
  font-size:11px;
  backdrop-filter:blur(14px);
}

.ry56-gallery-counter.is-open{
  display:block;
}

@media (max-width:760px){
  .ry56-gallery-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .ry56-gallery-item,
  .ry56-gallery-item:nth-child(n){
    grid-column:span 1;
    min-height:150px;
  }
  .ry56-gallery-item:nth-child(5n+1){
    grid-column:span 2;
    min-height:210px;
  }
  .ry56-gallery-meta{
    opacity:1;
    transform:none;
  }
  .ry56-timeline{
    padding-left:24px;
  }
  .ry56-filmstrip{
    bottom:74px;
  }
}

@media (prefers-reduced-motion:reduce){
  .ry56-gallery-item img,
  .ry56-gallery-meta{
    transition:none !important;
  }
}
/* ===== RYBY 5.6 — GALLERY PRO + CINEMATIC TIMELINE END ===== */
/* ===== RYBY 5.7 — SIGNATURE HERO + AMBIENT SCENE START ===== */
:root{
  --ry57-text:#f2f7f4;
  --ry57-muted:#9fb2aa;
  --ry57-accent:#7fdcb7;
  --ry57-gold:#d7b86d;
  --ry57-line:rgba(127,220,183,.2);
  --ry57-overlay:rgba(2,8,7,.46);
}

.ry57-signature-hero{
  position:relative;
  min-height:min(92vh,920px);
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  margin:0 0 34px;
  border-bottom:1px solid var(--ry57-line);
  isolation:isolate;
}

.ry57-signature-media{
  position:absolute;
  inset:0;
  z-index:-3;
  overflow:hidden;
  background:
    radial-gradient(circle at 20% 20%,rgba(90,150,120,.16),transparent 42rem),
    linear-gradient(180deg,#06100e,#071310);
}

.ry57-signature-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform:scale(1.04);
  filter:saturate(.94) contrast(1.04) brightness(.72);
  will-change:transform;
}

.ry57-signature-hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  background:
    linear-gradient(180deg,rgba(2,7,6,.16) 0%,rgba(3,10,8,.22) 28%,rgba(3,10,8,.74) 78%,rgba(4,11,9,.96) 100%),
    radial-gradient(circle at 76% 18%,rgba(216,184,109,.08),transparent 28rem),
    radial-gradient(circle at 18% 22%,rgba(127,220,183,.08),transparent 30rem);
}

.ry57-signature-hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.012) 1px,transparent 1px);
  background-size:52px 52px;
  mask-image:linear-gradient(to bottom,black,transparent 76%);
}

.ry57-signature-inner{
  width:min(1500px,calc(100% - 36px));
  margin:0 auto;
  padding:clamp(90px,16vh,180px) 0 clamp(38px,8vh,74px);
}

.ry57-kicker{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:16px;
  color:var(--ry57-accent);
  font-size:11px;
  font-weight:900;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.ry57-kicker::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--ry57-accent);
  box-shadow:0 0 18px rgba(127,220,183,.72);
}

.ry57-signature-title{
  max-width:980px;
  margin:0;
  color:var(--ry57-text);
  font-size:clamp(46px,9vw,122px);
  line-height:.86;
  letter-spacing:-.065em;
  text-wrap:balance;
}

.ry57-signature-copy{
  max-width:720px;
  margin:22px 0 0;
  color:#c7d5cf;
  font-size:clamp(15px,2vw,19px);
  line-height:1.65;
}

.ry57-signature-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:26px;
}

.ry57-signature-actions a,
.ry57-signature-actions button{
  min-height:48px;
  padding:0 16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid var(--ry57-line);
  border-radius:14px;
  background:rgba(4,12,10,.54);
  color:var(--ry57-text);
  text-decoration:none;
  font-weight:800;
  font-size:12px;
  backdrop-filter:blur(12px);
  cursor:pointer;
  transition:transform .18s ease,background .18s ease,border-color .18s ease;
}

.ry57-signature-actions a:hover,
.ry57-signature-actions button:hover{
  transform:translateY(-2px);
  background:rgba(127,220,183,.08);
  border-color:rgba(127,220,183,.34);
}

.ry57-ambient-status{
  position:absolute;
  right:18px;
  top:18px;
  display:flex;
  align-items:center;
  gap:9px;
  padding:8px 11px;
  border:1px solid var(--ry57-line);
  border-radius:999px;
  background:rgba(3,10,8,.54);
  color:var(--ry57-muted);
  font-size:10px;
  letter-spacing:.08em;
  text-transform:uppercase;
  backdrop-filter:blur(12px);
}

.ry57-ambient-status strong{
  color:var(--ry57-text);
  font-size:10px;
}

.ry57-scroll-cue{
  position:absolute;
  right:18px;
  bottom:18px;
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--ry57-muted);
  font-size:10px;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.ry57-scroll-cue i{
  position:relative;
  width:20px;
  height:32px;
  border:1px solid rgba(255,255,255,.24);
  border-radius:999px;
}

.ry57-scroll-cue i::after{
  content:"";
  position:absolute;
  left:50%;
  top:7px;
  width:3px;
  height:7px;
  border-radius:999px;
  background:var(--ry57-accent);
  transform:translateX(-50%);
  animation:ry57ScrollCue 1.8s ease-in-out infinite;
}

body[data-ry57-period="night"] .ry57-signature-hero::before{
  background:
    linear-gradient(180deg,rgba(1,4,4,.34),rgba(2,7,6,.42) 32%,rgba(3,9,8,.82) 78%,rgba(4,10,9,.97)),
    radial-gradient(circle at 76% 18%,rgba(90,120,170,.06),transparent 28rem);
}

body[data-ry57-period="evening"] .ry57-signature-hero::before{
  background:
    linear-gradient(180deg,rgba(6,5,3,.18),rgba(8,8,5,.28) 32%,rgba(5,10,8,.76) 78%,rgba(4,10,9,.96)),
    radial-gradient(circle at 76% 18%,rgba(216,184,109,.12),transparent 28rem);
}

.ry57-no-image .ry57-signature-media{
  background:
    radial-gradient(circle at 18% 16%,rgba(127,220,183,.13),transparent 34rem),
    radial-gradient(circle at 84% 18%,rgba(216,184,109,.09),transparent 26rem),
    linear-gradient(135deg,#071511,#06100e 56%,#040907);
}

@keyframes ry57ScrollCue{
  0%{transform:translate(-50%,0);opacity:.35}
  45%{opacity:1}
  100%{transform:translate(-50%,10px);opacity:0}
}

@media (max-width:760px){
  .ry57-signature-hero{
    min-height:82vh;
    border-radius:0 0 24px 24px;
  }
  .ry57-signature-inner{
    width:min(100% - 22px,1500px);
    padding-bottom:76px;
  }
  .ry57-signature-title{
    font-size:clamp(44px,16vw,78px);
  }
  .ry57-signature-copy{
    max-width:92%;
  }
  .ry57-ambient-status{
    right:10px;
    top:10px;
  }
  .ry57-scroll-cue{
    right:12px;
    bottom:16px;
  }
}

@media (prefers-reduced-motion:reduce){
  .ry57-signature-media img{
    transform:none !important;
  }
  .ry57-scroll-cue i::after{
    animation:none !important;
  }
}
/* ===== RYBY 5.7 — SIGNATURE HERO + AMBIENT SCENE END ===== */
/* ===== RYBY 5.8 — PREMIUM EXPERIENCE BUNDLE START ===== */
:root{
  --ry58-accent:#7fdcb7;
  --ry58-gold:#d8ba70;
  --ry58-text:#eef7f3;
  --ry58-muted:#9fb2aa;
  --ry58-line:rgba(127,220,183,.18);
  --ry58-panel:rgba(4,13,11,.72);
}

.ry58-spotlight{
  position:fixed;
  left:0;
  top:0;
  width:320px;
  height:320px;
  margin:-160px 0 0 -160px;
  z-index:70;
  border-radius:50%;
  pointer-events:none;
  opacity:0;
  background:radial-gradient(circle,rgba(127,220,183,.08),rgba(127,220,183,.025) 34%,transparent 70%);
  mix-blend-mode:screen;
  transition:opacity .2s ease;
}

html.ry58-pointer-active .ry58-spotlight{
  opacity:1;
}

.ry58-top{
  position:fixed;
  right:18px;
  bottom:84px;
  z-index:9700;
  width:46px;
  height:46px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--ry58-line);
  border-radius:15px;
  background:rgba(4,13,11,.78);
  color:var(--ry58-text);
  box-shadow:0 18px 48px rgba(0,0,0,.28);
  backdrop-filter:blur(16px) saturate(140%);
  cursor:pointer;
  opacity:0;
  transform:translateY(12px) scale(.96);
  pointer-events:none;
  transition:opacity .2s ease,transform .2s ease,background .2s ease;
}

.ry58-top.is-visible{
  opacity:1;
  transform:none;
  pointer-events:auto;
}

.ry58-top:hover{
  background:rgba(127,220,183,.10);
}

.ry58-top svg{
  width:19px;
  height:19px;
}

.ry58-route-transition{
  position:fixed;
  inset:0;
  z-index:999999;
  pointer-events:none;
  opacity:0;
  background:
    radial-gradient(circle at 50% 50%,rgba(127,220,183,.08),transparent 32rem),
    rgba(2,7,6,.92);
  transition:opacity .22s ease;
}

.ry58-route-transition.is-active{
  opacity:1;
}

.ry58-section-accent{
  position:relative;
}

.ry58-section-accent > :is(h1,h2,h3):first-child,
.ry58-section-accent > *:first-child :is(h1,h2,h3):first-child{
  position:relative;
}

.ry58-section-accent > :is(h1,h2,h3):first-child::after,
.ry58-section-accent > *:first-child :is(h1,h2,h3):first-child::after{
  content:"";
  display:block;
  width:clamp(42px,7vw,92px);
  height:2px;
  margin-top:10px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--ry58-accent),var(--ry58-gold));
  opacity:.72;
}

.ry58-interactive{
  position:relative;
  isolation:isolate;
}

.ry58-interactive::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  border-radius:inherit;
  pointer-events:none;
  background:radial-gradient(
    circle at var(--ry58-x,50%) var(--ry58-y,50%),
    rgba(255,255,255,.07),
    transparent 34%
  );
  opacity:0;
  transition:opacity .18s ease;
}

.ry58-interactive:hover::after{
  opacity:1;
}

img[data-ry58-lazy="1"]{
  transition:filter .35s ease,opacity .35s ease,transform .45s ease;
}

img[data-ry58-lazy="1"]:not(.ry58-loaded){
  opacity:.72;
  filter:blur(7px) saturate(.7);
}

img[data-ry58-lazy="1"].ry58-loaded{
  opacity:1;
  filter:none;
}

.ry58-performance-badge{
  position:fixed;
  left:14px;
  top:14px;
  z-index:9600;
  display:flex;
  align-items:center;
  gap:7px;
  padding:7px 10px;
  border:1px solid var(--ry58-line);
  border-radius:999px;
  background:rgba(4,13,11,.66);
  color:var(--ry58-muted);
  font-size:9px;
  letter-spacing:.08em;
  text-transform:uppercase;
  backdrop-filter:blur(14px);
  opacity:.78;
}

.ry58-performance-badge::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:var(--ry58-accent);
  box-shadow:0 0 12px rgba(127,220,183,.72);
}

@media (max-width:760px){
  .ry58-spotlight{
    display:none;
  }
  .ry58-top{
    right:10px;
    bottom:84px;
    width:44px;
    height:44px;
  }
  .ry58-performance-badge{
    left:10px;
    top:10px;
    max-width:54vw;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .ry55-dock{
    padding-bottom:max(7px,env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion:reduce){
  .ry58-route-transition,
  .ry58-top,
  img[data-ry58-lazy="1"]{
    transition:none !important;
  }
}
/* ===== RYBY 5.8 — PREMIUM EXPERIENCE BUNDLE END ===== */
/* ===== RYBY 6.0 — PREMIUM DESIGN SYSTEM + NAVIGATION CORE START ===== */
:root{
  --ry60-bg:#07110f;
  --ry60-panel:rgba(7,20,17,.78);
  --ry60-panel-strong:rgba(5,15,13,.94);
  --ry60-text:#eef7f3;
  --ry60-muted:#9db0a8;
  --ry60-accent:#7fdcb7;
  --ry60-gold:#d7b86d;
  --ry60-danger:#ff8176;
  --ry60-line:rgba(127,220,183,.18);
  --ry60-line-strong:rgba(127,220,183,.32);
  --ry60-radius:18px;
  --ry60-shadow:0 22px 64px rgba(0,0,0,.28);
}

body.ry60-ui{
  --ry60-space:clamp(14px,2vw,24px);
}

body.ry60-ui .ry60-status{
  position:fixed;
  top:10px;
  left:50%;
  transform:translateX(-50%);
  z-index:9800;
  width:min(720px,calc(100% - 24px));
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:10px;
  padding:9px 12px;
  border:1px solid var(--ry60-line);
  border-radius:16px;
  background:rgba(4,13,11,.78);
  color:var(--ry60-muted);
  backdrop-filter:blur(18px) saturate(145%);
  box-shadow:0 14px 42px rgba(0,0,0,.24);
  font-size:10px;
  letter-spacing:.05em;
  text-transform:uppercase;
}

body.ry60-ui .ry60-status strong{
  color:var(--ry60-text);
  font-size:10px;
}

body.ry60-ui .ry60-status-center{
  color:var(--ry60-accent);
  font-weight:900;
}

body.ry60-ui .ry60-status-right{
  text-align:right;
}

body.ry60-ui .ry60-quicknav{
  position:fixed;
  left:50%;
  bottom:14px;
  transform:translateX(-50%);
  z-index:9750;
  display:flex;
  align-items:center;
  gap:6px;
  padding:7px;
  border:1px solid var(--ry60-line);
  border-radius:19px;
  background:rgba(4,13,11,.82);
  backdrop-filter:blur(18px) saturate(145%);
  box-shadow:var(--ry60-shadow);
}

body.ry60-ui .ry60-quicknav a{
  min-width:96px;
  height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:0 12px;
  border-radius:13px;
  color:var(--ry60-muted);
  text-decoration:none;
  font-size:11px;
  font-weight:850;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}

body.ry60-ui .ry60-quicknav a:hover,
body.ry60-ui .ry60-quicknav a.is-active{
  background:rgba(127,220,183,.09);
  color:var(--ry60-text);
  transform:translateY(-1px);
}

body.ry60-ui .ry60-quicknav a.is-active::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--ry60-accent);
  box-shadow:0 0 14px rgba(127,220,183,.68);
}

body.ry60-ui :is(button,.btn,[role="button"],input[type="submit"],input[type="button"]){
  border-radius:14px !important;
  min-height:42px;
  transition:
    transform .16s ease,
    box-shadow .16s ease,
    background .16s ease,
    border-color .16s ease !important;
}

body.ry60-ui :is(button,.btn,[role="button"],input[type="submit"],input[type="button"]):hover{
  transform:translateY(-1px);
}

body.ry60-ui :is(input,select,textarea){
  border-radius:14px !important;
  border-color:var(--ry60-line) !important;
}

body.ry60-ui :is(input,select,textarea):focus{
  outline:none !important;
  border-color:var(--ry60-line-strong) !important;
  box-shadow:0 0 0 3px rgba(127,220,183,.10) !important;
}

body.ry60-ui :is(.card,.panel,.box,.widget,[class*="card"],[class*="panel"]){
  border-color:var(--ry60-line) !important;
  border-radius:var(--ry60-radius) !important;
}

body.ry60-ui :is(.card,.panel,.box,.widget,[class*="card"],[class*="panel"]):not(.ry60-status):not(.ry60-quicknav){
  box-shadow:0 16px 48px rgba(0,0,0,.16);
}

body.ry60-ui table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid var(--ry60-line);
  border-radius:16px;
  background:rgba(4,13,11,.42);
}

body.ry60-ui thead th{
  color:var(--ry60-accent);
  font-size:10px;
  letter-spacing:.08em;
  text-transform:uppercase;
}

body.ry60-ui tbody tr{
  transition:background .16s ease;
}

body.ry60-ui tbody tr:hover{
  background:rgba(127,220,183,.035);
}

body.ry60-ui .ry60-section-space{
  scroll-margin-top:78px;
}

body.ry60-ui.ry60-route-intelligence{
  --ry60-route-accent:var(--ry60-accent);
}

body.ry60-ui.ry60-route-field{
  --ry60-route-accent:var(--ry60-gold);
}

body.ry60-ui.ry60-route-intelligence main,
body.ry60-ui.ry60-route-field main{
  padding-bottom:88px;
}

body.ry60-ui.ry60-route-intelligence :is(h1,h2,h3),
body.ry60-ui.ry60-route-field :is(h1,h2,h3){
  letter-spacing:-.025em;
}

body.ry60-ui .ry60-mobile-label{
  display:inline;
}

@media (max-width:760px){
  body.ry60-ui .ry60-status{
    top:7px;
    grid-template-columns:1fr auto;
    width:calc(100% - 14px);
  }

  body.ry60-ui .ry60-status-right{
    display:none;
  }

  body.ry60-ui .ry60-quicknav{
    bottom:max(7px,env(safe-area-inset-bottom));
    width:calc(100% - 14px);
    justify-content:space-between;
  }

  body.ry60-ui .ry60-quicknav a{
    flex:1 1 0;
    min-width:0;
    padding:0 7px;
    font-size:10px;
  }

  body.ry60-ui .ry60-mobile-label{
    display:none;
  }

  body.ry60-ui table{
    display:block;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
}

@media (prefers-reduced-motion:reduce){
  body.ry60-ui *,
  body.ry60-ui *::before,
  body.ry60-ui *::after{
    transition-duration:.001ms !important;
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
  }
}
/* ===== RYBY 6.0 — PREMIUM DESIGN SYSTEM + NAVIGATION CORE END ===== */
/* ===== RYBY 6.1 — CINEMATIC STORY MAP + DEEP LINK BUNDLE START ===== */
:root{
  --ry61-accent:#7fdcb7;
  --ry61-gold:#d8ba70;
  --ry61-text:#eef7f3;
  --ry61-muted:#9fb2aa;
  --ry61-line:rgba(127,220,183,.18);
  --ry61-line-strong:rgba(127,220,183,.34);
  --ry61-panel:rgba(4,13,11,.82);
  --ry61-panel-strong:rgba(3,10,9,.95);
}

.ry61-chapter-rail{
  position:fixed;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  z-index:9650;
  display:flex;
  flex-direction:column;
  gap:7px;
  padding:10px 8px;
  border:1px solid var(--ry61-line);
  border-radius:18px;
  background:rgba(4,13,11,.72);
  backdrop-filter:blur(16px) saturate(140%);
  box-shadow:0 18px 52px rgba(0,0,0,.26);
}

.ry61-chapter-btn{
  position:relative;
  width:13px;
  height:13px;
  padding:0;
  border:0;
  background:transparent;
  cursor:pointer;
}

.ry61-chapter-btn::before{
  content:"";
  position:absolute;
  inset:3px;
  border-radius:50%;
  background:rgba(255,255,255,.22);
  transition:transform .18s ease,background .18s ease,box-shadow .18s ease;
}

.ry61-chapter-btn.is-active::before{
  background:var(--ry61-accent);
  transform:scale(1.5);
  box-shadow:0 0 14px rgba(127,220,183,.68);
}

.ry61-chapter-btn span{
  position:absolute;
  right:20px;
  top:50%;
  transform:translateY(-50%) translateX(6px);
  max-width:0;
  overflow:hidden;
  opacity:0;
  white-space:nowrap;
  padding:6px 0;
  color:var(--ry61-text);
  font-size:10px;
  pointer-events:none;
  transition:max-width .22s ease,opacity .22s ease,transform .22s ease;
}

.ry61-chapter-btn:hover span,
.ry61-chapter-btn.is-active span{
  max-width:220px;
  opacity:1;
  transform:translateY(-50%) translateX(0);
}

.ry61-story-progress{
  position:fixed;
  left:0;
  top:0;
  z-index:9900;
  width:100%;
  height:3px;
  background:rgba(255,255,255,.04);
  pointer-events:none;
}

.ry61-story-progress > i{
  display:block;
  width:100%;
  height:100%;
  transform-origin:left center;
  transform:scaleX(0);
  background:linear-gradient(90deg,var(--ry61-accent),var(--ry61-gold));
  box-shadow:0 0 18px rgba(127,220,183,.42);
}

.ry61-chapter-hud{
  position:fixed;
  left:14px;
  bottom:82px;
  z-index:9650;
  min-width:150px;
  max-width:min(360px,calc(100vw - 28px));
  padding:10px 12px;
  border:1px solid var(--ry61-line);
  border-radius:16px;
  background:var(--ry61-panel);
  backdrop-filter:blur(16px) saturate(140%);
  box-shadow:0 18px 52px rgba(0,0,0,.26);
}

.ry61-chapter-index{
  color:var(--ry61-accent);
  font-size:9px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.ry61-chapter-title{
  margin-top:3px;
  overflow:hidden;
  color:var(--ry61-text);
  font-size:12px;
  font-weight:800;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.ry61-chapter-actions{
  display:flex;
  gap:6px;
  margin-top:8px;
}

.ry61-chapter-actions button{
  flex:1 1 0;
  min-height:32px !important;
  padding:0 9px;
  border:1px solid var(--ry61-line);
  border-radius:10px !important;
  background:rgba(255,255,255,.025);
  color:var(--ry61-muted);
  font-size:10px;
  cursor:pointer;
}

.ry61-chapter-actions button:hover{
  color:var(--ry61-text);
  border-color:var(--ry61-line-strong);
}

.ry61-mobile-open{
  display:none;
  position:fixed;
  right:10px;
  bottom:82px;
  z-index:9660;
  width:46px;
  height:46px;
  align-items:center;
  justify-content:center;
  border:1px solid var(--ry61-line);
  border-radius:15px;
  background:var(--ry61-panel);
  color:var(--ry61-text);
  backdrop-filter:blur(16px);
  box-shadow:0 18px 48px rgba(0,0,0,.28);
}

.ry61-mobile-sheet{
  position:fixed;
  inset:auto 8px max(8px,env(safe-area-inset-bottom)) 8px;
  z-index:99950;
  display:none;
  max-height:68vh;
  overflow:auto;
  padding:10px;
  border:1px solid var(--ry61-line-strong);
  border-radius:20px;
  background:var(--ry61-panel-strong);
  backdrop-filter:blur(20px) saturate(140%);
  box-shadow:0 36px 100px rgba(0,0,0,.48);
}

.ry61-mobile-sheet.is-open{
  display:block;
}

.ry61-mobile-sheet button{
  width:100%;
  display:grid;
  grid-template-columns:34px 1fr;
  align-items:center;
  gap:10px;
  padding:10px;
  border:0;
  border-radius:13px !important;
  background:transparent;
  color:var(--ry61-text);
  text-align:left;
}

.ry61-mobile-sheet button.is-active,
.ry61-mobile-sheet button:hover{
  background:rgba(127,220,183,.07);
}

.ry61-mobile-sheet strong{
  display:flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  border:1px solid var(--ry61-line);
  border-radius:10px;
  color:var(--ry61-accent);
  font-size:10px;
}

.ry61-copy-toast{
  position:fixed;
  left:50%;
  bottom:26px;
  z-index:99980;
  transform:translateX(-50%) translateY(14px);
  padding:9px 13px;
  border:1px solid var(--ry61-line);
  border-radius:999px;
  background:var(--ry61-panel-strong);
  color:var(--ry61-text);
  font-size:10px;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease,transform .2s ease;
}

.ry61-copy-toast.is-visible{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

@media (max-width:900px){
  .ry61-chapter-rail,
  .ry61-chapter-hud{
    display:none;
  }

  .ry61-mobile-open{
    display:flex;
  }
}

@media (prefers-reduced-motion:reduce){
  .ry61-chapter-btn::before,
  .ry61-chapter-btn span,
  .ry61-copy-toast{
    transition:none !important;
  }
}
/* ===== RYBY 6.1 — CINEMATIC STORY MAP + DEEP LINK BUNDLE END ===== */
/* ===== RYBY 6.2 — PRESENTATION MODE + CINEMATIC CHAPTER PLAYER START ===== */
:root{
  --ry62-accent:#7fdcb7;
  --ry62-gold:#d8ba70;
  --ry62-text:#eef7f3;
  --ry62-muted:#9fb2aa;
  --ry62-line:rgba(127,220,183,.18);
  --ry62-panel:rgba(4,13,11,.84);
}

.ry62-enter{
  position:fixed;
  right:14px;
  bottom:142px;
  z-index:9680;
  min-height:44px;
  padding:0 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid var(--ry62-line);
  border-radius:14px;
  background:var(--ry62-panel);
  color:var(--ry62-text);
  font-size:11px;
  font-weight:800;
  cursor:pointer;
  backdrop-filter:blur(16px) saturate(140%);
  box-shadow:0 16px 44px rgba(0,0,0,.26);
}

.ry62-enter:hover{
  border-color:rgba(127,220,183,.34);
  background:rgba(127,220,183,.08);
}

html.ry62-presentation{
  overflow:hidden !important;
  background:#030807;
}

html.ry62-presentation body{
  overflow:hidden !important;
  background:#030807 !important;
}

html.ry62-presentation body > *:not(main):not([role="main"]):not(#app):not(.ry62-player):not(.ry62-exit):not(.ry62-toast){
  opacity:0 !important;
  pointer-events:none !important;
}

.ry62-player{
  position:fixed;
  inset:0;
  z-index:999700;
  display:none;
  background:
    radial-gradient(circle at 20% 20%,rgba(127,220,183,.08),transparent 36rem),
    radial-gradient(circle at 80% 16%,rgba(216,186,112,.06),transparent 30rem),
    linear-gradient(180deg,#06100e,#030807);
}

html.ry62-presentation .ry62-player{
  display:block;
}

.ry62-stage{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:clamp(18px,4vw,56px);
}

.ry62-frame{
  position:relative;
  width:min(1500px,100%);
  height:min(86vh,940px);
  overflow:auto;
  border:1px solid var(--ry62-line);
  border-radius:28px;
  background:rgba(5,15,13,.80);
  box-shadow:0 40px 140px rgba(0,0,0,.52);
  backdrop-filter:blur(18px) saturate(135%);
  overscroll-behavior:contain;
}

.ry62-frame-inner{
  min-height:100%;
  padding:clamp(22px,4vw,52px);
  opacity:1;
  transform:none;
  transition:
    opacity .28s ease,
    transform .36s cubic-bezier(.2,.8,.2,1);
}

.ry62-frame.is-changing .ry62-frame-inner{
  opacity:0;
  transform:translateY(14px) scale(.992);
}

.ry62-frame-inner img{
  max-width:100%;
  height:auto;
}

.ry62-player-top{
  position:absolute;
  left:50%;
  top:14px;
  transform:translateX(-50%);
  z-index:2;
  width:min(980px,calc(100% - 28px));
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:12px;
  padding:9px 12px;
  border:1px solid var(--ry62-line);
  border-radius:16px;
  background:rgba(3,10,8,.76);
  color:var(--ry62-muted);
  backdrop-filter:blur(16px);
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.07em;
}

.ry62-player-top strong{
  color:var(--ry62-text);
  font-size:10px;
}

.ry62-player-top-center{
  color:var(--ry62-accent);
  text-align:center;
  font-weight:900;
}

.ry62-player-top-right{
  text-align:right;
}

.ry62-controls{
  position:absolute;
  left:50%;
  bottom:14px;
  transform:translateX(-50%);
  z-index:2;
  display:flex;
  align-items:center;
  gap:8px;
  padding:7px;
  border:1px solid var(--ry62-line);
  border-radius:18px;
  background:rgba(3,10,8,.78);
  backdrop-filter:blur(16px);
  box-shadow:0 18px 54px rgba(0,0,0,.32);
  transition:opacity .25s ease,transform .25s ease;
}

.ry62-controls button{
  min-width:44px;
  height:42px;
  padding:0 12px;
  border:1px solid transparent;
  border-radius:12px !important;
  background:transparent;
  color:var(--ry62-muted);
  font-size:11px;
  font-weight:800;
  cursor:pointer;
}

.ry62-controls button:hover{
  color:var(--ry62-text);
  background:rgba(127,220,183,.08);
}

.ry62-controls .ry62-counter{
  min-width:86px;
  color:var(--ry62-text);
  text-align:center;
  font-size:11px;
}

html.ry62-presentation.ry62-idle .ry62-controls,
html.ry62-presentation.ry62-idle .ry62-player-top{
  opacity:.08;
  transform:translateX(-50%) translateY(6px);
}

.ry62-exit{
  position:fixed;
  right:18px;
  top:18px;
  z-index:999760;
  display:none;
  width:46px;
  height:46px;
  align-items:center;
  justify-content:center;
  border:1px solid var(--ry62-line);
  border-radius:14px;
  background:rgba(3,10,8,.76);
  color:var(--ry62-text);
  font-size:22px;
  cursor:pointer;
  backdrop-filter:blur(16px);
}

html.ry62-presentation .ry62-exit{
  display:flex;
}

.ry62-toast{
  position:fixed;
  left:50%;
  top:76px;
  z-index:999780;
  transform:translateX(-50%) translateY(-10px);
  padding:8px 12px;
  border:1px solid var(--ry62-line);
  border-radius:999px;
  background:rgba(3,10,8,.78);
  color:var(--ry62-text);
  font-size:10px;
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease,transform .2s ease;
}

.ry62-toast.is-visible{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

.ry62-chapter-title{
  margin:0 0 18px;
  color:var(--ry62-text);
  font-size:clamp(32px,6vw,74px);
  line-height:.95;
  letter-spacing:-.05em;
}

.ry62-empty{
  min-height:60vh;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--ry62-muted);
  text-align:center;
}

@media (max-width:760px){
  .ry62-enter{
    right:10px;
    bottom:140px;
    width:46px;
    padding:0;
  }
  .ry62-enter span{
    display:none;
  }

  .ry62-stage{
    padding:70px 8px 72px;
  }

  .ry62-frame{
    height:calc(100vh - 142px);
    border-radius:20px;
  }

  .ry62-frame-inner{
    padding:18px;
  }

  .ry62-player-top{
    top:8px;
    width:calc(100% - 16px);
    grid-template-columns:1fr auto;
  }

  .ry62-player-top-right{
    display:none;
  }

  .ry62-controls{
    bottom:max(8px,env(safe-area-inset-bottom));
    width:calc(100% - 16px);
    justify-content:space-between;
  }

  .ry62-controls button{
    flex:1 1 0;
    min-width:0;
  }

  .ry62-exit{
    top:8px;
    right:8px;
  }
}

@media (prefers-reduced-motion:reduce){
  .ry62-frame-inner,
  .ry62-controls,
  .ry62-player-top,
  .ry62-toast{
    transition:none !important;
  }
}
/* ===== RYBY 6.2 — PRESENTATION MODE + CINEMATIC CHAPTER PLAYER END ===== */
/* ===== RYBY 6.3 — DISCOVERY + FAVORITES + RESUME BUNDLE START ===== */
:root{
  --ry63-accent:#7fdcb7;
  --ry63-gold:#d8ba70;
  --ry63-text:#eef7f3;
  --ry63-muted:#9fb2aa;
  --ry63-line:rgba(127,220,183,.18);
  --ry63-line-strong:rgba(127,220,183,.34);
  --ry63-panel:rgba(4,13,11,.86);
  --ry63-panel-strong:rgba(3,10,9,.96);
}

.ry63-discovery{
  display:none;
  position:fixed;
  right:14px;
  top:74px;
  z-index:9640;
  width:min(340px,calc(100vw - 28px));
  border:1px solid var(--ry63-line);
  border-radius:20px;
  background:var(--ry63-panel);
  backdrop-filter:blur(18px) saturate(145%);
  box-shadow:0 22px 64px rgba(0,0,0,.30);
  overflow:hidden;
}


.ry63-discovery.is-open{
  display:block;
}

.ry63-discovery-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 13px;
  border-bottom:1px solid var(--ry63-line);
}

.ry63-discovery-head strong{
  color:var(--ry63-text);
  font-size:11px;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.ry63-discovery-head button{
  width:32px;
  height:32px;
  border:1px solid var(--ry63-line);
  border-radius:10px !important;
  background:transparent;
  color:var(--ry63-muted);
  cursor:pointer;
}

.ry63-discovery-search{
  padding:10px;
  border-bottom:1px solid var(--ry63-line);
}

.ry63-discovery-search input{
  width:100%;
  min-height:40px;
  padding:0 12px;
  border:1px solid var(--ry63-line);
  border-radius:12px !important;
  background:rgba(255,255,255,.025);
  color:var(--ry63-text);
}

.ry63-tabs{
  display:flex;
  gap:6px;
  padding:9px 10px;
  border-bottom:1px solid var(--ry63-line);
}

.ry63-tabs button{
  flex:1 1 0;
  min-height:34px;
  border:1px solid transparent;
  border-radius:10px !important;
  background:transparent;
  color:var(--ry63-muted);
  font-size:10px;
  cursor:pointer;
}

.ry63-tabs button.is-active{
  border-color:var(--ry63-line);
  background:rgba(127,220,183,.07);
  color:var(--ry63-text);
}

.ry63-list{
  max-height:44vh;
  overflow:auto;
  padding:8px;
}

.ry63-item{
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
  padding:10px;
  border:0;
  border-radius:12px !important;
  background:transparent;
  color:var(--ry63-text);
  text-align:left;
}

.ry63-item:hover{
  background:rgba(127,220,183,.06);
}

.ry63-item-copy{
  min-width:0;
}

.ry63-item-title{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:11px;
  font-weight:800;
}

.ry63-item-sub{
  margin-top:3px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--ry63-muted);
  font-size:9px;
}

.ry63-item-actions{
  display:flex;
  gap:4px;
}

.ry63-item-actions button{
  width:30px;
  height:30px;
  padding:0;
  border:1px solid var(--ry63-line);
  border-radius:9px !important;
  background:rgba(255,255,255,.02);
  color:var(--ry63-muted);
  cursor:pointer;
}

.ry63-item-actions button.is-favorite{
  color:var(--ry63-gold);
  border-color:rgba(216,186,112,.28);
}

.ry63-resume{
  margin:8px;
  padding:10px;
  border:1px solid rgba(216,186,112,.22);
  border-radius:13px;
  background:rgba(216,186,112,.05);
}

.ry63-resume strong{
  display:block;
  color:var(--ry63-gold);
  font-size:9px;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.ry63-resume button{
  width:100%;
  margin-top:6px;
  min-height:38px;
  border:1px solid var(--ry63-line);
  border-radius:10px !important;
  background:rgba(255,255,255,.02);
  color:var(--ry63-text);
  cursor:pointer;
}

.ry63-empty{
  padding:26px 16px;
  color:var(--ry63-muted);
  text-align:center;
  font-size:11px;
}

.ry63-fab{
  display:flex;
  position:fixed;
  right:10px;
  bottom:142px;
  z-index:9660;
  width:46px;
  height:46px;
  align-items:center;
  justify-content:center;
  border:1px solid var(--ry63-line);
  border-radius:14px;
  background:var(--ry63-panel);
  color:var(--ry63-text);
  backdrop-filter:blur(16px);
  box-shadow:0 18px 48px rgba(0,0,0,.28);
}

.ry63-toast{
  position:fixed;
  left:50%;
  bottom:26px;
  z-index:99980;
  transform:translateX(-50%) translateY(12px);
  padding:8px 12px;
  border:1px solid var(--ry63-line);
  border-radius:999px;
  background:var(--ry63-panel-strong);
  color:var(--ry63-text);
  font-size:10px;
  opacity:0;
  pointer-events:none;
  transition:opacity .18s ease,transform .18s ease;
}

.ry63-toast.is-visible{
  opacity:1;
  transform:translateX(-50%) translateY(0);
}

@media (max-width:980px){
  .ry63-discovery{
    display:none;
    right:8px;
    left:8px;
    top:auto;
    bottom:max(8px,env(safe-area-inset-bottom));
    width:auto;
    max-height:76vh;
  }

  .ry63-discovery.is-open{
    display:block;
  }

  .ry63-fab{
    display:flex;
  }

  .ry63-list{
    max-height:48vh;
  }
}

@media (prefers-reduced-motion:reduce){
  .ry63-toast{
    transition:none !important;
  }
}
/* ===== RYBY 6.3 — DISCOVERY + FAVORITES + RESUME BUNDLE END ===== */
/* ===== RYBY 6.4 — CINEMATIC HIGHLIGHT REEL + IMMERSIVE GALLERY BUNDLE START ===== */
:root{
  --ry64-accent:#7fdcb7;
  --ry64-gold:#d8ba70;
  --ry64-text:#eef7f3;
  --ry64-muted:#9fb2aa;
  --ry64-line:rgba(127,220,183,.18);
  --ry64-panel:rgba(3,10,9,.92);
}

.ry64-launch{
  position:fixed;
  left:14px;
  bottom:142px;
  z-index:9670;
  min-height:44px;
  padding:0 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid var(--ry64-line);
  border-radius:14px;
  background:rgba(4,13,11,.84);
  color:var(--ry64-text);
  font-size:11px;
  font-weight:800;
  cursor:pointer;
  backdrop-filter:blur(16px) saturate(140%);
  box-shadow:0 18px 48px rgba(0,0,0,.28);
}

.ry64-launch:hover{
  background:rgba(127,220,183,.08);
}

.ry64-overlay{
  position:fixed;
  inset:0;
  z-index:999820;
  display:none;
  background:
    radial-gradient(circle at 22% 18%,rgba(127,220,183,.09),transparent 34rem),
    radial-gradient(circle at 78% 16%,rgba(216,186,112,.07),transparent 30rem),
    rgba(2,7,6,.97);
}

.ry64-overlay.is-open{
  display:block;
}

.ry64-stage{
  position:absolute;
  inset:0;
  display:grid;
  grid-template-rows:auto 1fr auto;
  gap:10px;
  padding:14px;
}

.ry64-top{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:12px;
  min-height:46px;
  padding:0 12px;
  border:1px solid var(--ry64-line);
  border-radius:16px;
  background:rgba(3,10,9,.72);
  color:var(--ry64-muted);
  backdrop-filter:blur(16px);
  font-size:10px;
  letter-spacing:.07em;
  text-transform:uppercase;
}

.ry64-top strong{
  color:var(--ry64-text);
}

.ry64-title{
  color:var(--ry64-accent);
  text-align:center;
  font-weight:900;
}

.ry64-top-right{
  text-align:right;
}

.ry64-view{
  position:relative;
  min-height:0;
  overflow:hidden;
  border:1px solid var(--ry64-line);
  border-radius:24px;
  background:#020605;
  box-shadow:0 42px 140px rgba(0,0,0,.50);
}

.ry64-media{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.ry64-media img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  border-radius:18px;
  box-shadow:0 28px 90px rgba(0,0,0,.42);
  opacity:1;
  transform:none;
  transition:opacity .28s ease,transform .36s cubic-bezier(.2,.8,.2,1);
}

.ry64-view.is-changing .ry64-media img{
  opacity:0;
  transform:scale(.988);
}

.ry64-caption{
  position:absolute;
  left:18px;
  right:18px;
  bottom:18px;
  padding:12px 14px;
  border:1px solid var(--ry64-line);
  border-radius:14px;
  background:rgba(3,10,9,.72);
  color:var(--ry64-text);
  backdrop-filter:blur(14px);
  font-size:11px;
  line-height:1.45;
}

.ry64-controls{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:10px;
}

.ry64-nav{
  display:flex;
  gap:6px;
}

.ry64-nav button,
.ry64-actions button,
.ry64-close{
  min-height:40px;
  padding:0 12px;
  border:1px solid var(--ry64-line);
  border-radius:12px !important;
  background:rgba(255,255,255,.02);
  color:var(--ry64-muted);
  cursor:pointer;
}

.ry64-nav button:hover,
.ry64-actions button:hover,
.ry64-close:hover{
  color:var(--ry64-text);
  background:rgba(127,220,183,.07);
}

.ry64-strip{
  min-width:0;
  display:flex;
  gap:7px;
  overflow-x:auto;
  padding:6px 2px;
  scrollbar-width:thin;
}

.ry64-thumb{
  flex:0 0 64px;
  width:64px;
  height:44px;
  padding:0;
  border:1px solid transparent;
  border-radius:10px !important;
  overflow:hidden;
  background:#07110f;
  opacity:.58;
  cursor:pointer;
}

.ry64-thumb.is-active{
  opacity:1;
  border-color:var(--ry64-accent);
  box-shadow:0 0 0 2px rgba(127,220,183,.08);
}

.ry64-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.ry64-actions{
  display:flex;
  gap:6px;
}

.ry64-counter{
  min-width:72px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--ry64-text);
  font-size:10px;
}

.ry64-close{
  position:absolute;
  right:20px;
  top:20px;
  z-index:3;
  width:44px;
  padding:0;
  font-size:20px;
  background:rgba(3,10,9,.72);
  backdrop-filter:blur(14px);
}

.ry64-empty{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  color:var(--ry64-muted);
  text-align:center;
}

@media (max-width:760px){
  .ry64-launch{
    left:10px;
    bottom:142px;
    width:46px;
    padding:0;
  }

  .ry64-launch span{
    display:none;
  }

  .ry64-stage{
    padding:8px;
  }

  .ry64-top{
    grid-template-columns:1fr auto;
  }

  .ry64-top-right{
    display:none;
  }

  .ry64-view{
    border-radius:18px;
  }

  .ry64-caption{
    left:10px;
    right:10px;
    bottom:10px;
    max-height:26vh;
    overflow:auto;
  }

  .ry64-controls{
    grid-template-columns:1fr;
  }

  .ry64-nav,
  .ry64-actions{
    justify-content:center;
  }

  .ry64-strip{
    order:-1;
  }

  .ry64-close{
    top:12px;
    right:12px;
  }
}

@media (prefers-reduced-motion:reduce){
  .ry64-media img{
    transition:none !important;
  }
}
/* ===== RYBY 6.4 — CINEMATIC HIGHLIGHT REEL + IMMERSIVE GALLERY BUNDLE END ===== */
/* ===== RYBY 6.5 — FIELD COMMAND HUD + INTELLIGENCE FOCUS BUNDLE START ===== */
:root{
  --ry65-accent:#7fdcb7;
  --ry65-gold:#d8ba70;
  --ry65-text:#eef7f3;
  --ry65-muted:#9fb2aa;
  --ry65-line:rgba(127,220,183,.18);
  --ry65-panel:rgba(4,13,11,.86);
}

.ry65-hud{
  position:fixed;
  left:50%;
  top:14px;
  transform:translateX(-50%);
  z-index:9710;
  width:min(860px,calc(100vw - 28px));
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:10px;
  align-items:center;
  padding:8px;
  border:1px solid var(--ry65-line);
  border-radius:18px;
  background:var(--ry65-panel);
  backdrop-filter:blur(18px) saturate(145%);
  box-shadow:0 18px 56px rgba(0,0,0,.28);
}

.ry65-brand{
  padding:0 8px;
  color:var(--ry65-text);
  font-size:10px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.ry65-brand span{
  color:var(--ry65-accent);
}

.ry65-sections{
  min-width:0;
  display:flex;
  gap:5px;
  overflow-x:auto;
  scrollbar-width:none;
}

.ry65-sections::-webkit-scrollbar{
  display:none;
}

.ry65-section-btn{
  flex:0 0 auto;
  min-height:34px;
  padding:0 10px;
  border:1px solid transparent;
  border-radius:10px !important;
  background:transparent;
  color:var(--ry65-muted);
  font-size:9px;
  cursor:pointer;
}

.ry65-section-btn.is-active,
.ry65-section-btn:hover{
  border-color:var(--ry65-line);
  background:rgba(127,220,183,.07);
  color:var(--ry65-text);
}

.ry65-actions{
  display:flex;
  gap:5px;
}

.ry65-actions button{
  min-width:38px;
  height:36px;
  padding:0 9px;
  border:1px solid var(--ry65-line);
  border-radius:10px !important;
  background:rgba(255,255,255,.02);
  color:var(--ry65-muted);
  font-size:10px;
  cursor:pointer;
}

.ry65-actions button:hover,
.ry65-actions button.is-active{
  color:var(--ry65-text);
  background:rgba(127,220,183,.08);
}

.ry65-progress{
  position:fixed;
  left:0;
  top:0;
  z-index:9720;
  width:100%;
  height:2px;
  background:rgba(255,255,255,.04);
  pointer-events:none;
}

.ry65-progress i{
  display:block;
  width:100%;
  height:100%;
  transform-origin:left center;
  transform:scaleX(0);
  background:linear-gradient(90deg,var(--ry65-accent),var(--ry65-gold));
}

body.ry65-focus{
  overflow-x:hidden;
}

body.ry65-focus header,
body.ry65-focus footer,
body.ry65-focus .ry55-dock,
body.ry65-focus .ry58-performance-badge,
body.ry65-focus .ry60-status,
body.ry65-focus .ry60-quicknav,
body.ry65-focus .ry61-chapter-rail,
body.ry65-focus .ry61-chapter-hud,
body.ry65-focus .ry63-discovery,
body.ry65-focus .ry64-launch{
  opacity:0 !important;
  pointer-events:none !important;
}

body.ry65-focus main,
body.ry65-focus [role="main"],
body.ry65-focus #app{
  max-width:min(1600px,calc(100vw - 24px)) !important;
  margin-inline:auto !important;
}

body.ry65-focus .ry65-hud{
  border-color:rgba(127,220,183,.30);
}

.ry65-route-chip{
  display:none;
  position:fixed;
  left:14px;
  bottom:14px;
  z-index:9700;
  padding:8px 11px;
  border:1px solid var(--ry65-line);
  border-radius:999px;
  background:var(--ry65-panel);
  color:var(--ry65-muted);
  font-size:9px;
  letter-spacing:.07em;
  text-transform:uppercase;
  backdrop-filter:blur(14px);
}

body.ry65-route-field .ry65-route-chip{
  color:var(--ry65-gold);
}

body.ry65-route-intelligence .ry65-route-chip{
  color:var(--ry65-accent);
}

@media (max-width:820px){
  .ry65-hud{
    top:8px;
    width:calc(100vw - 16px);
    grid-template-columns:auto 1fr auto;
    border-radius:15px;
  }

  .ry65-brand{
    max-width:88px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .ry65-section-btn{
    padding:0 8px;
    max-width:120px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .ry65-actions button{
    width:36px;
    min-width:36px;
    padding:0;
  }

  .ry65-actions button span{
    display:none;
  }

  .ry65-route-chip{
    display:block;
  }
}

@media (prefers-reduced-motion:reduce){
  .ry65-section-btn,
  .ry65-actions button{
    transition:none !important;
  }
}
/* ===== RYBY 6.5 — FIELD COMMAND HUD + INTELLIGENCE FOCUS BUNDLE END ===== */
/* ===== RYBY 6.6 — UI ORCHESTRATOR + CONFLICT GUARD BUNDLE START ===== */
:root{
  --ry66-gap:8px;
  --ry66-edge:12px;
  --ry66-bottom:max(12px,env(safe-area-inset-bottom));
}

.ry66-float-rail{
  position:fixed;
  right:var(--ry66-edge);
  bottom:calc(var(--ry66-bottom) + 64px);
  z-index:9685;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:var(--ry66-gap);
  pointer-events:none;
}

.ry66-float-rail > *{
  position:static !important;
  inset:auto !important;
  transform:none !important;
  margin:0 !important;
  pointer-events:auto;
}

.ry66-float-rail > :is(button,a){
  box-shadow:0 16px 44px rgba(0,0,0,.26);
}

body.ry66-overlay-active .ry66-float-rail,
body.ry66-overlay-active .ry55-dock,
body.ry66-overlay-active .ry60-quicknav,
body.ry66-overlay-active .ry61-chapter-rail,
body.ry66-overlay-active .ry61-chapter-hud,
body.ry66-overlay-active .ry63-discovery,
body.ry66-overlay-active .ry65-hud{
  opacity:0 !important;
  pointer-events:none !important;
}

body.ry66-overlay-active .ry66-float-rail{
  transform:translateY(8px) !important;
}

body.ry66-has-top-hud{
  padding-top:0;
}

body.ry66-has-top-hud :is(.ry60-status,.ry65-hud){
  transition:opacity .18s ease,transform .18s ease;
}

body.ry66-has-top-hud.ry66-scroll-down :is(.ry60-status,.ry65-hud){
  opacity:.28;
}

body.ry66-has-top-hud.ry66-scroll-down :is(.ry60-status,.ry65-hud):hover{
  opacity:1;
}

body.ry66-mobile-safe .ry55-dock,
body.ry66-mobile-safe .ry60-quicknav,
body.ry66-mobile-safe .ry61-mobile-sheet,
body.ry66-mobile-safe .ry63-discovery{
  bottom:max(8px,env(safe-area-inset-bottom)) !important;
}

body.ry66-mobile-safe .ry66-float-rail{
  bottom:calc(max(8px,env(safe-area-inset-bottom)) + 58px);
}

html.ry66-scroll-locked,
html.ry66-scroll-locked body{
  overflow:hidden !important;
  overscroll-behavior:none !important;
}

.ry66-backdrop-guard{
  position:fixed;
  inset:0;
  z-index:999600;
  display:none;
  background:rgba(0,0,0,.01);
  pointer-events:none;
}

body.ry66-overlay-active .ry66-backdrop-guard{
  display:block;
}

body.ry66-fullscreen-active .ry66-backdrop-guard{
  z-index:999810;
}

body.ry66-fullscreen-active :is(.ry62-player,.ry64-overlay){
  z-index:999900 !important;
}

body.ry66-fullscreen-active :is(.ry62-exit,.ry64-close){
  z-index:999930 !important;
}

.ry66-debug-badge{
  position:fixed;
  right:12px;
  top:12px;
  z-index:99940;
  display:none;
  padding:6px 9px;
  border:1px solid rgba(127,220,183,.18);
  border-radius:999px;
  background:rgba(4,13,11,.78);
  color:#9fb2aa;
  font-size:9px;
  letter-spacing:.06em;
  text-transform:uppercase;
  backdrop-filter:blur(12px);
}

body[data-ry66-debug="1"] .ry66-debug-badge{
  display:block;
}

@media (max-width:900px){
  .ry66-float-rail{
    right:8px;
    gap:6px;
  }

  .ry66-float-rail > :is(button,a){
    width:44px !important;
    min-width:44px !important;
    height:44px !important;
    min-height:44px !important;
    padding:0 !important;
  }

  .ry66-float-rail > :is(button,a) span{
    display:none !important;
  }
}

@media (prefers-reduced-motion:reduce){
  body.ry66-has-top-hud :is(.ry60-status,.ry65-hud),
  body.ry66-overlay-active .ry66-float-rail{
    transition:none !important;
  }
}
/* ===== RYBY 6.6 — UI ORCHESTRATOR + CONFLICT GUARD BUNDLE END ===== */
/* ===== RYBY 6.7 — QUALITY GATE + RUNTIME HEALTH BUNDLE START ===== */
:root{
  --ry67-ok:#7fdcb7;
  --ry67-warn:#d8ba70;
  --ry67-bad:#ff8176;
  --ry67-text:#eef7f3;
  --ry67-muted:#9fb2aa;
  --ry67-line:rgba(127,220,183,.18);
  --ry67-panel:rgba(3,10,9,.94);
}

.ry67-health-pill{
  position:fixed;
  left:12px;
  bottom:12px;
  z-index:9675;
  min-height:32px;
  display:flex;
  align-items:center;
  gap:7px;
  padding:0 10px;
  border:1px solid var(--ry67-line);
  border-radius:999px;
  background:rgba(4,13,11,.78);
  color:var(--ry67-muted);
  font-size:9px;
  font-weight:800;
  letter-spacing:.07em;
  text-transform:uppercase;
  backdrop-filter:blur(14px);
  box-shadow:0 12px 36px rgba(0,0,0,.22);
  cursor:pointer;
}

.ry67-health-pill::before{
  content:"";
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--ry67-ok);
  box-shadow:0 0 12px rgba(127,220,183,.7);
}

.ry67-health-pill.is-warn{
  color:var(--ry67-warn);
}

.ry67-health-pill.is-warn::before{
  background:var(--ry67-warn);
  box-shadow:0 0 12px rgba(216,186,112,.7);
}

.ry67-health-pill.is-bad{
  color:var(--ry67-bad);
  border-color:rgba(255,129,118,.24);
}

.ry67-health-pill.is-bad::before{
  background:var(--ry67-bad);
  box-shadow:0 0 12px rgba(255,129,118,.7);
}

.ry67-panel{
  position:fixed;
  inset:18px;
  z-index:999970;
  display:none;
  overflow:auto;
  padding:18px;
  border:1px solid var(--ry67-line);
  border-radius:24px;
  background:
    radial-gradient(circle at 18% 12%,rgba(127,220,183,.08),transparent 32rem),
    var(--ry67-panel);
  color:var(--ry67-text);
  backdrop-filter:blur(22px) saturate(145%);
  box-shadow:0 40px 140px rgba(0,0,0,.56);
}

.ry67-panel.is-open{
  display:block;
}

.ry67-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.ry67-kicker{
  color:var(--ry67-ok);
  font-size:10px;
  font-weight:900;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.ry67-title{
  margin-top:5px;
  font-size:clamp(28px,5vw,58px);
  line-height:.95;
  letter-spacing:-.045em;
}

.ry67-close{
  width:44px;
  height:44px;
  border:1px solid var(--ry67-line);
  border-radius:13px !important;
  background:rgba(255,255,255,.02);
  color:var(--ry67-text);
  font-size:20px;
  cursor:pointer;
}

.ry67-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}

.ry67-card{
  min-width:0;
  padding:14px;
  border:1px solid var(--ry67-line);
  border-radius:16px;
  background:rgba(255,255,255,.025);
}

.ry67-card strong{
  display:block;
  color:var(--ry67-muted);
  font-size:9px;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.ry67-card b{
  display:block;
  margin-top:6px;
  font-size:24px;
  color:var(--ry67-text);
}

.ry67-section{
  margin-top:14px;
  padding:14px;
  border:1px solid var(--ry67-line);
  border-radius:16px;
  background:rgba(255,255,255,.018);
}

.ry67-section h3{
  margin:0 0 10px;
  font-size:12px;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.ry67-list{
  display:grid;
  gap:7px;
}

.ry67-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:12px;
  align-items:center;
  padding:9px 10px;
  border-radius:11px;
  background:rgba(255,255,255,.02);
  color:var(--ry67-muted);
  font-size:10px;
}

.ry67-row b{
  color:var(--ry67-text);
  font-size:10px;
}

.ry67-row .ok{color:var(--ry67-ok)}
.ry67-row .warn{color:var(--ry67-warn)}
.ry67-row .bad{color:var(--ry67-bad)}

.ry67-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:14px;
}

.ry67-actions button{
  min-height:38px;
  padding:0 12px;
  border:1px solid var(--ry67-line);
  border-radius:11px !important;
  background:rgba(255,255,255,.02);
  color:var(--ry67-text);
  cursor:pointer;
}

.ry67-note{
  margin-top:10px;
  color:var(--ry67-muted);
  font-size:9px;
  line-height:1.5;
}

@media (max-width:900px){
  .ry67-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .ry67-panel{
    inset:8px;
    padding:14px;
    border-radius:18px;
  }

  .ry67-health-pill{
    left:8px;
    bottom:max(8px,env(safe-area-inset-bottom));
  }
}

@media (max-width:520px){
  .ry67-grid{
    grid-template-columns:1fr 1fr;
  }

  .ry67-title{
    font-size:32px;
  }
}
/* ===== RYBY 6.7 — QUALITY GATE + RUNTIME HEALTH BUNDLE END ===== */

/* ======================================================================
   RYBY 17.0 — STABLE CORE CONSOLIDATION
   Czytelność > efekty. Mobile first. Jeden system nawigacji.
   ====================================================================== */

:root{
  --ry17-header:74px;
  --ry17-gap:clamp(52px,6vw,92px);
}

html{scroll-behavior:auto!important;scroll-padding-top:calc(var(--ry17-header) + 12px)!important}
body{overflow-x:hidden!important}

/* Kill retired visual layers even if a stale cache tries to resurrect them. */
.ry54-story-rail,.ry55-dock,.ry55-overlay,.ry55-focus-toast,
.ry57-signature-hero,.ry58-spotlight,.ry58-top,.ry58-performance-badge,.ry58-route-transition,
.ry60-status,.ry60-quicknav,.ry61-chapter-rail,.ry61-chapter-hud,.ry61-story-progress,.ry61-mobile-open,.ry61-mobile-sheet,
.ry62-enter,.ry62-player,.ry63-fab,.ry63-discovery,.ry64-launch,.ry64-overlay,.ry65-hud,.ry66-float-rail,.ry67-health-pill,.ry67-panel,
[id^="ryby-ring-"],[id^="ryby-quick-ring-"],[id^="ryby-classic-ring-"]{
  display:none!important;visibility:hidden!important;opacity:0!important;pointer-events:none!important
}

/* Header stays visible. */
.topbar,.ry59-smart-header{
  position:sticky!important;top:0!important;transform:none!important;opacity:1!important;visibility:visible!important;
  z-index:1200!important;min-height:var(--ry17-header)!important
}
.topbar.is-hidden,.ry59-smart-header.is-hidden{transform:none!important}
.ry17-primary-nav{display:flex!important;align-items:center!important;justify-content:center!important;gap:clamp(16px,2vw,32px)!important}
.ry17-primary-nav a{white-space:nowrap!important}

/* Original hero only. */
.hero{min-height:min(820px,82svh)!important;padding-top:clamp(46px,7vh,88px)!important}
.hero-copy{max-width:900px!important}
.hero h1{max-width:920px!important}
.scroll-cue{opacity:.72!important}

/* The home page shows the things worth viewing; full tools live on their own pages. */
.field-journal-portal,.tactics-portal,.bite-ledger-portal,.chronicle-portal,.weather-archive-portal,.record-portal,.lab-portal,.season-portal,
#intelligence{display:none!important}

main>section{scroll-margin-top:calc(var(--ry17-header) + 12px)!important}
.metrics,.conditions-center,.featured,.catches,.trophy-gallery,.analytics,.fisheries,.expeditions,.ry17-more,.manifesto{
  margin-top:0!important;margin-bottom:0!important
}

/* Remove viewport-sized empty canyons. */
.catches,.trophy-gallery,.conditions-center,.analytics,.fisheries,.expeditions,.ry17-more{
  min-height:0!important;height:auto!important;padding-top:var(--ry17-gap)!important;padding-bottom:var(--ry17-gap)!important
}
.catches .catch-grid,.gallery-grid{margin-bottom:0!important}

/* New compact hub. */
.ry17-more{background:#06120e!important;border-top:1px solid rgba(206,180,105,.16)!important;border-bottom:1px solid rgba(206,180,105,.16)!important}
.ry17-more .section-heading{margin-bottom:30px!important}
.ry17-more-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important}
.ry17-more-grid>a{display:flex!important;align-items:center!important;gap:12px!important;min-height:88px!important;padding:15px!important;border:1px solid rgba(206,180,105,.17)!important;border-radius:14px!important;background:rgba(255,255,255,.018)!important;color:inherit!important;text-decoration:none!important;transition:transform .16s ease,border-color .16s ease!important}
.ry17-more-grid>a:hover{transform:translateY(-2px)!important;border-color:rgba(206,180,105,.42)!important}
.ry17-more-grid>a>span{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;flex:0 0 38px!important;border:1px solid rgba(206,180,105,.32)!important;border-radius:50%!important;color:#dec779!important;font:800 10px/1 system-ui!important}
.ry17-more-grid strong{display:block!important;font-size:13px!important}
.ry17-more-grid small{display:block!important;margin-top:4px!important;opacity:.58!important;font-size:10px!important;line-height:1.35!important}

/* One add action, real VPS database only. */
#ry17-add-catch{position:fixed!important;right:18px!important;bottom:22px!important;z-index:1500!important;display:flex!important;align-items:center!important;justify-content:center!important;min-height:46px!important;padding:0 18px!important;border:1px solid rgba(218,188,108,.48)!important;border-radius:999px!important;background:rgba(7,18,14,.96)!important;color:#f1d98d!important;text-decoration:none!important;font:800 11px/1 system-ui!important;letter-spacing:.05em!important;box-shadow:0 14px 36px rgba(0,0,0,.34)!important}

/* One scroll indicator: reuse the original button, no extra ring/widget. */
.back-to-top{display:grid!important;position:fixed!important;right:20px!important;bottom:auto;z-index:1490!important;width:54px!important;height:54px!important;padding:0!important;border:0!important;border-radius:50%!important;background:conic-gradient(#d8bd6d var(--ry17-progress,0deg),rgba(216,189,109,.16) 0)!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;transform:translateY(-50%)!important;transition:opacity .16s ease!important}
.back-to-top.ry17-visible{opacity:1!important;visibility:visible!important;pointer-events:auto!important}
.back-to-top-ring{position:absolute!important;inset:3px!important;display:grid!important;place-items:center!important;border-radius:50%!important;background:#07130f!important}
.back-to-top-core{display:grid!important;place-items:center!important;width:100%!important;height:100%!important}
.back-to-top-core svg{width:20px!important;height:20px!important}
.back-to-top-label{position:absolute!important;left:50%!important;bottom:-16px!important;transform:translateX(-50%)!important;font:800 7px/1 system-ui!important;color:#ddc77f!important;letter-spacing:.04em!important}

/* Data tables never overflow cards. */
table,.ry-table,.data-table,.stats-table,.records-table{width:100%!important;border-collapse:collapse!important;table-layout:fixed!important}
th,td{box-sizing:border-box!important;overflow-wrap:anywhere!important;vertical-align:middle!important}

/* Public coordinates are deliberately private. */
#conditionsCoordinates{font-size:0!important}
#conditionsCoordinates::after{content:'Punkt prywatny';font-size:11px!important;color:inherit!important}

/* Cleaner desktop analytics. */
.analytics .session-truth{margin-top:26px!important}
.analytics-grid{gap:18px!important}

/* Technical labels do not belong in the portfolio. */
.ry54-home-badge,.ry58-performance-badge,.ry60-status,.ry67-health-pill{display:none!important}

@media(max-width:1100px){
  .ry17-more-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

@media(max-width:900px){
  :root{--ry17-header:64px;--ry17-gap:42px}
  .topbar{min-height:64px!important;padding-left:14px!important;padding-right:14px!important}
  .topbar .ry17-primary-nav{display:none!important}
  .topbar .admin-link{display:none!important}
  .hero{min-height:68svh!important;padding:46px 18px 38px!important}
  .hero h1{font-size:clamp(52px,15vw,84px)!important;line-height:.92!important}
  .hero-lead{max-width:36rem!important;font-size:15px!important;line-height:1.55!important}
  .instruments{display:none!important}
  .scroll-cue{display:none!important}

  .metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .conditions-provenance,.conditions-disclaimer,.conditions-attribution{display:none!important}
  .pressure-forecast footer{display:none!important}
  .conditions-layout{gap:12px!important}
  .conditions-vitals{grid-template-columns:repeat(2,minmax(0,1fr))!important}

  .section-heading,.gallery-heading,.conditions-heading,.atlas-heading{display:block!important}
  .section-heading>p,.gallery-heading>p,.conditions-heading>p,.atlas-heading>p{margin-top:12px!important;max-width:42rem!important}

  /* Phone home = portfolio, not an endless dashboard. */
  .featured,.analytics,.fisheries,.expeditions{display:none!important}

  /* Four catches first; one simple button expands the full list. Gallery keeps its native pagination. */
  #catchGrid.ry17-catches-collapsed > :nth-child(n+5){display:none!important}
  #ry17-more-catches{display:flex!important;align-items:center!important;justify-content:center!important;width:min(100%,420px)!important;min-height:44px!important;margin:18px auto 0!important;padding:0 18px!important;border:1px solid rgba(206,180,105,.28)!important;border-radius:999px!important;background:rgba(255,255,255,.018)!important;color:#dbc67e!important;font:800 10px/1 system-ui!important;letter-spacing:.05em!important}

  .ry17-more-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .ry17-more-grid>a{min-height:76px!important;padding:12px!important}

  .back-to-top{right:14px!important;top:auto!important;bottom:82px!important;transform:none!important;width:48px!important;height:48px!important}
  #ry17-add-catch{right:12px!important;bottom:18px!important;min-height:44px!important;padding:0 15px!important}
  .mobile-dock{z-index:1400!important}
}

@media(max-width:520px){
  .hero h1{font-size:clamp(46px,14vw,68px)!important}
  .metrics{gap:8px!important}
  .gallery-controls{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .gallery-grid{grid-template-columns:1fr!important}
  .explorer-kpis{grid-template-columns:1fr 1fr!important}
  .ry17-more-grid{grid-template-columns:1fr 1fr!important}
  .ry17-more-grid small{display:none!important}
}

/* ===== RYBY 17.1 — OWNER UI + FULL PHOTO VIEWER START ===== */
[data-ry17-owner-only][hidden],
#ry17-add-catch[hidden]{display:none!important}

.ry17-full-photo{cursor:zoom-in!important}

/* Older generic lightbox is retired; 17.1 handles static and dynamic images in one place. */
.ry54-lightbox{display:none!important}

#ry17-photo-viewer{
  position:fixed!important;
  inset:0!important;
  z-index:2147483000!important;
  display:grid!important;
  place-items:center!important;
  padding:20px!important;
  background:rgba(2,8,6,.94)!important;
  backdrop-filter:blur(18px) saturate(120%)!important;
  -webkit-backdrop-filter:blur(18px) saturate(120%)!important;
}
#ry17-photo-viewer[hidden]{display:none!important}
.ry17-photo-stage{
  position:relative!important;
  width:min(96vw,1700px)!important;
  height:min(94dvh,1100px)!important;
  display:grid!important;
  grid-template-columns:56px minmax(0,1fr) 56px!important;
  grid-template-rows:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:12px!important;
}
.ry17-photo-image-wrap{
  position:relative!important;
  grid-column:2!important;
  grid-row:1!important;
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  border-radius:18px!important;
  background:rgba(255,255,255,.015)!important;
}
.ry17-photo-image{
  display:block!important;
  width:auto!important;
  height:auto!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  border-radius:14px!important;
  box-shadow:0 36px 100px rgba(0,0,0,.52)!important;
  opacity:0!important;
  transition:opacity .14s ease!important;
}
.ry17-photo-image.is-loaded{opacity:1!important}
.ry17-photo-loading{
  position:absolute!important;
  inset:auto 50% 22px auto!important;
  transform:translateX(50%)!important;
  padding:8px 11px!important;
  border:1px solid rgba(218,188,108,.2)!important;
  border-radius:999px!important;
  background:rgba(4,13,10,.86)!important;
  color:#d8c58d!important;
  font:800 9px/1 system-ui!important;
  letter-spacing:.08em!important;
  white-space:nowrap!important;
}
.ry17-photo-close{
  position:absolute!important;
  top:0!important;
  right:0!important;
  z-index:3!important;
  width:48px!important;
  height:48px!important;
  border:1px solid rgba(218,188,108,.28)!important;
  border-radius:50%!important;
  background:rgba(6,17,13,.92)!important;
  color:#f0dfaa!important;
  font:300 30px/1 system-ui!important;
  cursor:pointer!important;
}
.ry17-photo-arrow{
  width:50px!important;
  height:50px!important;
  border:1px solid rgba(218,188,108,.22)!important;
  border-radius:50%!important;
  background:rgba(6,17,13,.78)!important;
  color:#ead79b!important;
  font:300 34px/1 system-ui!important;
  cursor:pointer!important;
}
.ry17-photo-arrow.prev{grid-column:1!important;grid-row:1!important}
.ry17-photo-arrow.next{grid-column:3!important;grid-row:1!important}
.ry17-photo-meta{
  grid-column:1/-1!important;
  grid-row:2!important;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:16px!important;
  min-height:42px!important;
  color:#e9e4d6!important;
}
.ry17-photo-counter{font:800 10px/1 system-ui!important;letter-spacing:.08em!important;color:#d9c37d!important}
.ry17-photo-caption{margin:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font:500 12px/1.3 system-ui!important;opacity:.78!important}
.ry17-photo-original{color:#d9c37d!important;text-decoration:none!important;font:800 9px/1 system-ui!important;letter-spacing:.06em!important}

@media(max-width:700px){
  #ry17-photo-viewer{padding:8px!important}
  .ry17-photo-stage{
    width:100%!important;
    height:100%!important;
    grid-template-columns:42px minmax(0,1fr) 42px!important;
    gap:4px!important;
  }
  .ry17-photo-image-wrap{border-radius:10px!important}
  .ry17-photo-image{border-radius:8px!important}
  .ry17-photo-arrow{width:38px!important;height:38px!important;font-size:28px!important}
  .ry17-photo-close{top:8px!important;right:8px!important;width:44px!important;height:44px!important}
  .ry17-photo-meta{grid-template-columns:auto 1fr!important;padding:0 8px 8px!important;gap:10px!important}
  .ry17-photo-caption{font-size:11px!important}
  .ry17-photo-original{display:none!important}
}

@media(prefers-reduced-motion:reduce){
  .ry17-photo-image{transition:none!important}
}
/* ===== RYBY 17.1 — OWNER UI + FULL PHOTO VIEWER END ===== */

/* ===== RYBY 17.1.3 — PHOTO VIEWER POLISH START ===== */

/*
  Principle:
  - foreground photo is ALWAYS fully visible (contain),
  - unused aspect-ratio area is not dead black space,
  - the same photo creates a quiet ambient backdrop,
  - no crop of the foreground image.
*/

/* Existing catch gallery with the right-hand information panel. */
.gallery-lightbox-stage{
  position:relative!important;
  isolation:isolate!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  background:#050b08!important;
}

.gallery-lightbox-stage>.ry1711-gallery-ambient{
  position:absolute!important;
  z-index:0!important;
  inset:-7%!important;
  width:114%!important;
  height:114%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center!important;
  filter:blur(30px) brightness(.34) saturate(.78)!important;
  transform:scale(1.06)!important;
  opacity:.92!important;
  pointer-events:none!important;
  user-select:none!important;
}

.gallery-lightbox-stage>#galleryLightboxImage{
  position:relative!important;
  z-index:1!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  max-width:calc(100% - 24px)!important;
  max-height:calc(100% - 24px)!important;
  margin:auto!important;
  object-fit:contain!important;
  object-position:center center!important;
  image-orientation:from-image!important;
  box-shadow:0 28px 82px rgba(0,0,0,.42)!important;
}

/* Keep the cinematic vignette, but never turn the letterbox area black again. */
.gallery-lightbox-shade{
  z-index:2!important;
  background:
    linear-gradient(180deg,rgba(2,7,5,.05),transparent 18%,transparent 82%,rgba(2,7,5,.13))!important;
  box-shadow:inset 0 0 54px rgba(0,0,0,.24)!important;
}

/* Navigation remains clearly above both foreground and ambient image. */
.gallery-lightbox-arrow,
.gallery-lightbox-counter,
.gallery-lightbox-hint{
  z-index:4!important;
}

/* Universal 17.1 full viewer. */
.ry17-photo-image-wrap{
  isolation:isolate!important;
  background:#050b08!important;
}

.ry17-photo-image-wrap>.ry1711-full-ambient{
  position:absolute!important;
  z-index:0!important;
  inset:-7%!important;
  width:114%!important;
  height:114%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center!important;
  filter:blur(32px) brightness(.31) saturate(.78)!important;
  transform:scale(1.06)!important;
  opacity:.94!important;
  pointer-events:none!important;
  user-select:none!important;
}

.ry17-photo-image-wrap>.ry17-photo-image{
  position:relative!important;
  z-index:1!important;
  width:auto!important;
  height:auto!important;
  max-width:calc(100% - 16px)!important;
  max-height:calc(100% - 16px)!important;
  object-fit:contain!important;
  object-position:center center!important;
  image-orientation:from-image!important;
  margin:auto!important;
  box-shadow:0 28px 88px rgba(0,0,0,.46)!important;
}

.ry17-photo-loading{
  z-index:3!important;
}

/* Desktop: use the screen, but keep the information panel readable. */
@media(min-width:901px){
  .gallery-lightbox{
    grid-template-columns:minmax(0,1fr) clamp(360px,27vw,430px)!important;
  }

  .gallery-lightbox-stage{
    height:100dvh!important;
    min-height:0!important;
  }

  .gallery-lightbox-copy{
    height:100dvh!important;
  }
}

/* Phone/tablet: photo first, compact facts below; no kilometre of dead viewer space. */
@media(max-width:900px){
  .gallery-lightbox{
    grid-template-columns:1fr!important;
    align-content:start!important;
    overflow:auto!important;
    overscroll-behavior:contain!important;
  }

  .gallery-lightbox-stage{
    height:min(68dvh,680px)!important;
    min-height:360px!important;
  }

  .gallery-lightbox-stage>#galleryLightboxImage{
    max-width:calc(100% - 12px)!important;
    max-height:calc(100% - 12px)!important;
  }

  .gallery-lightbox-copy{
    min-height:0!important;
    height:auto!important;
    padding:48px 22px 32px!important;
  }

  .gallery-lightbox-copy>.eyebrow{
    margin-bottom:18px!important;
  }

  .gallery-lightbox-copy>h2{
    font-size:clamp(44px,14vw,66px)!important;
  }

  .gallery-lightbox-copy>strong{
    margin:12px 0 20px!important;
    font-size:34px!important;
  }

  .gallery-lightbox-catch{
    margin-top:18px!important;
  }

  #ry17-photo-viewer{
    padding:6px!important;
  }

  .ry17-photo-stage{
    width:100%!important;
    height:100dvh!important;
    max-height:100dvh!important;
    grid-template-columns:38px minmax(0,1fr) 38px!important;
    grid-template-rows:minmax(0,1fr) 42px!important;
    gap:2px!important;
  }

  .ry17-photo-image-wrap>.ry17-photo-image{
    max-width:calc(100% - 6px)!important;
    max-height:calc(100% - 6px)!important;
  }
}

@media(max-width:520px){
  .gallery-lightbox-stage{
    height:62dvh!important;
    min-height:330px!important;
  }

  .gallery-lightbox-arrow{
    width:42px!important;
    height:42px!important;
  }

  .gallery-lightbox-arrow.prev{left:10px!important}
  .gallery-lightbox-arrow.next{right:10px!important}
  .gallery-lightbox-counter{left:10px!important;bottom:10px!important}
}

/* Reduced motion does not affect image correctness. */
@media(prefers-reduced-motion:reduce){
  .gallery-lightbox-stage>.ry1711-gallery-ambient,
  .ry17-photo-image-wrap>.ry1711-full-ambient{
    filter:blur(24px) brightness(.34) saturate(.75)!important;
  }
}

/* ===== RYBY 17.1.3 — PHOTO VIEWER POLISH END ===== */


/* ===== RYBY 17.1.3 — OWNER ENTRY PRIVACY START ===== */
[data-ry17-owner-only][hidden]{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
html:not([data-ry17-owner="1"]) .topbar .admin-link,
html:not([data-ry17-owner="1"]) #ry17-add-catch,
html:not([data-ry17-owner="1"]) [data-ry17-owner-dock],
html:not([data-ry17-owner="1"]) [data-ry17-owner-more]{
  display:none!important;
  visibility:hidden!important;
  pointer-events:none!important;
}
@media(min-width:901px){
  html[data-ry17-owner="1"] .topbar .admin-link[data-ry17-owner-panel]{
    display:inline-flex!important;
  }
}
@media(max-width:900px){
  .topbar .admin-link[data-ry17-owner-panel]{
    display:none!important;
  }
}
/* ===== RYBY 17.1.3 — OWNER ENTRY PRIVACY END ===== */

/* ===== RYBY 17.2 — MOBILE COMPACT EXPERIENCE START ===== */
.ry172-disclosure,
.ry172-filter-toggle{display:none}

@media(max-width:900px){
  .ry172-disclosure,
  .ry172-filter-toggle{
    display:flex;
    align-items:center;
    justify-content:center;
    width:min(100%,420px);
    min-height:44px;
    margin:16px auto 0;
    padding:0 18px;
    border:1px solid rgba(206,180,105,.27);
    border-radius:999px;
    background:rgba(255,255,255,.018);
    color:#dbc67e;
    font:800 10px/1 system-ui,-apple-system,"Segoe UI",sans-serif;
    letter-spacing:.055em;
    cursor:pointer;
    -webkit-tap-highlight-color:transparent;
  }

  .ry172-disclosure:focus-visible,
  .ry172-filter-toggle:focus-visible{
    outline:2px solid #d8bd70;
    outline-offset:3px;
  }

  #warunki.ry172-conditions-compact:not(.ry172-conditions-expanded) .condition-vital.daylight-vital,
  #warunki.ry172-conditions-compact:not(.ry172-conditions-expanded) .pressure-forecast,
  #warunki.ry172-conditions-compact:not(.ry172-conditions-expanded) .conditions-provenance,
  #warunki.ry172-conditions-compact:not(.ry172-conditions-expanded) .conditions-warning,
  #warunki.ry172-conditions-compact:not(.ry172-conditions-expanded) .conditions-disclaimer,
  #warunki.ry172-conditions-compact:not(.ry172-conditions-expanded) .conditions-attribution{
    display:none!important;
  }

  #warunki.ry172-conditions-compact .conditions-vitals{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  #warunki.ry172-conditions-compact .condition-vital{
    min-height:0!important;
  }

  #warunki.ry172-conditions-expanded .conditions-provenance{display:grid!important}
  #warunki.ry172-conditions-expanded .conditions-disclaimer,
  #warunki.ry172-conditions-expanded .conditions-attribution{display:block!important}
  #warunki.ry172-conditions-expanded .pressure-forecast footer{display:grid!important}

  #ry172-gallery-filter-toggle{
    margin-top:0;
    margin-bottom:14px;
  }

  #galleryToolbar.ry172-filters-collapsed:not(.ry172-filters-expanded) .gallery-controls{
    display:none!important;
  }

  #galleryToolbar.ry172-filters-collapsed{
    padding-top:12px!important;
    padding-bottom:12px!important;
  }

  #galleryToolbar.ry172-filters-collapsed .gallery-live-count{
    margin-bottom:0!important;
  }

  #galleryToolbar.ry172-filters-expanded .gallery-controls{
    display:grid!important;
    margin-top:14px!important;
  }

  .ry172-mobile-secondary{display:none!important}

  .ry17-more-grid.ry172-more-collapsed:not(.ry172-more-expanded)>:nth-child(n+7){
    display:none!important;
  }

  #ry172-more-tools{margin-top:16px}
}

@media(max-width:520px){
  #warunki.ry172-conditions-compact .conditions-vitals{
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
  }

  #warunki.ry172-conditions-compact .condition-vital{
    padding:14px!important;
  }

  .ry172-disclosure,
  .ry172-filter-toggle{width:100%}
}
/* ===== RYBY 17.2 — MOBILE COMPACT EXPERIENCE END ===== */

/* ===== RYBY 18.0 — PRO STORY + RESPONSIVE MEDIA START ===== */
.ry18-latest-catch{
  width:min(1420px,calc(100% - 44px));
  margin:clamp(20px,2.4vw,36px) auto 0;
  display:grid;
  grid-template-columns:minmax(300px,.82fr) minmax(0,1.18fr);
  min-height:300px;
  overflow:hidden;
  border:1px solid rgba(211,184,106,.18);
  border-radius:24px;
  background:linear-gradient(135deg,rgba(13,28,21,.94),rgba(5,14,10,.98));
  box-shadow:0 28px 74px rgba(0,0,0,.2);
}
.ry18-latest-visual{position:relative;min-height:300px;overflow:hidden;background:#06100c}
.ry18-latest-visual img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .55s cubic-bezier(.2,.8,.2,1)}
.ry18-latest-visual:hover img{transform:scale(1.018)}
.ry18-latest-copy{padding:clamp(30px,4vw,64px);display:flex;flex-direction:column;justify-content:center;align-items:flex-start}
.ry18-latest-copy>p:first-child{margin:0 0 12px;color:#cdb46b;font:800 10px/1 system-ui;letter-spacing:.13em}
.ry18-latest-copy h2{margin:0;color:#f4efe2;font:500 clamp(32px,4vw,62px)/.98 Georgia,serif}
.ry18-latest-copy>span{margin:15px 0;color:#a9b3aa;font:600 11px/1.4 system-ui;letter-spacing:.04em;text-transform:uppercase}
.ry18-latest-copy>p:not(:first-child){max-width:720px;margin:5px 0 24px;color:#c5ccc5;font:400 15px/1.75 system-ui}
.ry18-latest-copy>a{color:#dcc477;text-decoration:none;font:800 11px/1 system-ui;letter-spacing:.05em;text-transform:uppercase}
.ry18-pb{display:inline-flex;margin:0 0 12px;padding:7px 10px;border:1px solid rgba(222,193,107,.34);border-radius:999px;background:rgba(222,193,107,.08);color:#e0c875;font:900 9px/1 system-ui;letter-spacing:.1em}
.ry18-latest-catch.is-pb{box-shadow:0 28px 78px rgba(0,0,0,.24),0 0 0 1px rgba(220,192,108,.06)}

.ry18-season-strip{margin:0 auto clamp(28px,4vw,54px);width:min(1420px,100%);padding:clamp(20px,2.5vw,32px);border:1px solid rgba(211,184,106,.13);border-radius:20px;background:rgba(255,255,255,.012)}
.ry18-season-strip header{display:flex;justify-content:space-between;align-items:end;margin-bottom:18px}
.ry18-season-strip header small{display:block;color:#cdb46b;font:800 9px/1 system-ui;letter-spacing:.12em}
.ry18-season-strip header strong{display:block;margin-top:7px;color:#cbd1ca;font:500 13px/1.5 system-ui}
.ry18-season-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.ry18-season-metrics article{min-width:0;padding:16px;border-radius:14px;background:rgba(255,255,255,.018);border:1px solid rgba(255,255,255,.035)}
.ry18-season-metrics small{display:block;color:#7f9085;font:800 8px/1.2 system-ui;letter-spacing:.08em}
.ry18-season-metrics strong{display:block;margin-top:8px;color:#e9e2cf;font:600 clamp(14px,1.2vw,19px)/1.2 system-ui;overflow:hidden;text-overflow:ellipsis}

@media(max-width:900px){
  .ry18-latest-catch{width:calc(100% - 24px);grid-template-columns:1fr;min-height:0;border-radius:20px}
  .ry18-latest-visual{min-height:0;aspect-ratio:16/10}
  .ry18-latest-copy{padding:24px 20px 26px}
  .ry18-latest-copy h2{font-size:clamp(34px,10vw,48px)}
  .ry18-latest-copy>p:not(:first-child){font-size:14px;line-height:1.65;margin-bottom:18px}
  .ry18-season-strip{width:100%;padding:17px 0 14px;border-left:0;border-right:0;border-radius:0;overflow:hidden}
  .ry18-season-strip header{padding:0 16px;margin-bottom:13px}
  .ry18-season-metrics{display:flex;overflow-x:auto;scroll-snap-type:x proximity;padding:0 16px 8px;gap:8px;scrollbar-width:none}
  .ry18-season-metrics::-webkit-scrollbar{display:none}
  .ry18-season-metrics article{flex:0 0 148px;scroll-snap-align:start;padding:14px}
}
@media(prefers-reduced-motion:reduce){.ry18-latest-visual img{transition:none}}
/* ===== RYBY 18.0 — PRO STORY + RESPONSIVE MEDIA END ===== */
