/* HERE RIVER login v1 — shared responsive canvas for PC and mobile. */
/* Visual layer only: the existing nickname, role, country and world contracts remain intact. */
#entry.entry-overlay{
 position:fixed!important;inset:0!important;z-index:200!important;display:block!important;
 margin:0!important;padding:0!important;overflow:hidden!important;backdrop-filter:none!important;
 background:linear-gradient(90deg,rgba(240,240,240,.045) 0%,rgba(230,230,230,0) 53%,rgba(35,35,35,.08) 100%),
 url("../assets/login/here-river-sunset.jpg?v=hereRiverGray25620261120v1") center center / cover no-repeat #c4c4c4!important;
}
#entry .entry-wrap{
 position:relative!important;inset:auto!important;display:block!important;
 width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
 min-width:0!important;min-height:0!important;margin:0!important;border:0!important;
 background:transparent!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;
}
#entry .entry-visual{
 position:absolute!important;left:clamp(22px,3vw,58px)!important;top:clamp(53px,7vh,108px)!important;
 width:min(60vw,980px)!important;height:auto!important;min-height:0!important;
 margin:0!important;padding:0!important;border:0!important;background:none!important;
 color:#53261e!important;display:block!important;text-align:center!important;
 overflow:visible!important;pointer-events:none;
}
#entry .entry-visual::before{
 content:"";position:absolute;inset:-18px -15px -17px;z-index:0;border-radius:48%;
 background:radial-gradient(ellipse at center,rgba(255,243,220,.62),rgba(255,236,207,.22) 60%,transparent 81%);
 opacity:.94;pointer-events:none;
}
#entry .entry-visual::after,#entry .entry-sun,#entry .entry-illustration{display:none!important}
#entry .entry-manifesto{position:relative;z-index:1;display:grid;justify-items:center;gap:3px}
#entry .entry-manifesto p{margin:0;padding:0 8px;color:#532218!important;letter-spacing:.004em;
 font-family:"Nanum Pen Script","Nanum Brush Script","Segoe Print",cursive!important;
 font-size:clamp(24px,3.1vw,49px)!important;font-weight:700!important;line-height:1.1!important;
 text-shadow:0 1px 0 rgba(255,251,243,.96),0 2px 5px rgba(255,245,223,.93),0 0 15px rgba(255,242,221,.85)!important;
 text-wrap:balance;
}
#entry .entry-manifesto-brand{
 font:700 clamp(39px,4.5vw,73px)/1 "Caveat","Segoe Print",cursive!important;
 color:#633e8d!important;letter-spacing:.015em;
 text-shadow:0 2px 1px #fff0df,0 3px 8px rgba(255,248,240,.9)!important;
 position:relative;padding:0 18px 5px;white-space:nowrap;
}
#entry .entry-manifesto-brand::after{
 content:"";position:absolute;left:1%;right:1%;height:4px;bottom:0;
 border-radius:100%;background:linear-gradient(90deg,transparent,#df938a 16%,#ca797e 85%,transparent);
 transform:rotate(-1.2deg);box-shadow:0 1px 3px rgba(255,255,255,.8);
}
#entry .entry-manifesto[data-language="en"] p{
 font-family:"Caveat","Segoe Print",cursive!important;font-size:clamp(23px,2.85vw,47px)!important;
 font-weight:700!important;line-height:1.08!important;
}
#entry .entry-accessible-title,#entry .entry-visual-foot{position:absolute!important;
 width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;
 white-space:nowrap!important;padding:0!important;margin:0!important;border:0!important}
#entry .entry-form{
 box-sizing:border-box!important;position:absolute!important;
 right:clamp(10px,3vw,48px)!important;bottom:clamp(10px,3vh,30px)!important;
 display:flex!important;flex-direction:column!important;gap:0!important;
 width:min(38vw,610px)!important;max-width:calc(100vw - 28px)!important;
 min-width:0!important;min-height:0!important;max-height:min(70dvh,730px)!important;
 margin:0!important;padding:clamp(10px,1.65vw,25px)!important;
 overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;
 border:1.5px solid rgba(250,250,255,.82)!important;border-radius:clamp(17px,2.3vw,34px)!important;
 background:linear-gradient(140deg,rgba(251,245,239,.66),rgba(239,239,245,.65) 54%,rgba(245,225,211,.54))!important;
 backdrop-filter:blur(19px) saturate(1.28)!important;-webkit-backdrop-filter:blur(19px) saturate(1.28)!important;
 box-shadow:0 9px 42px rgba(34,35,55,.22),inset 0 0 28px rgba(253,251,255,.36),0 0 0 2px rgba(211,224,245,.16)!important;
 color:#16383d!important;
 scrollbar-width:thin;
}
#entry .entry-form:before{content:"";position:absolute;inset:2px;border-radius:inherit;pointer-events:none;
 border:1px solid rgba(211,232,252,.5);box-shadow:inset 0 0 12px rgba(255,255,255,.25)}
#entry .entry-head{align-items:center!important;min-width:0!important;min-height:37px}
#entry .entry-head h3{margin:0 0 9px!important;color:#14353c!important;
 font-size:clamp(17px,1.55vw,24px)!important;font-weight:850!important;letter-spacing:-.02em}
#entry .entry-head-actions{
 position:fixed!important;top:max(14px,env(safe-area-inset-top))!important;
 right:max(14px,env(safe-area-inset-right))!important;
 width:clamp(156px,18vw,266px)!important;max-width:28vw!important;min-width:150px!important;
 display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:7px!important;
 margin:0!important;padding:0!important;z-index:220!important;
}
#entry .entry-head-actions>.entry-language,#entry .entry-head-actions>.entry-country{
 grid-column:auto!important;grid-row:auto!important;display:flex!important;align-items:center!important;
 gap:5px!important;margin:0!important;min-width:0!important;width:100%!important;
 min-height:31px!important;padding:4px 8px!important;border-radius:11px!important;
 border:1px solid rgba(255,255,255,.9)!important;
 background:rgba(247,250,249,.82)!important;color:#17383a!important;
 backdrop-filter:blur(14px);box-shadow:0 2px 12px rgba(20,40,43,.13);
}
#entry .entry-head-actions>.entry-language select,#entry .entry-head-actions>.entry-country select{
 width:100%!important;min-width:0!important;max-width:100%!important;font:700 12px/1.2 system-ui,sans-serif!important;
 border:0!important;background:transparent!important;color:#123c43!important;cursor:pointer
}
#entry .entry-head-actions>small{display:none!important}
#entry .entry-head-actions>#pwaInstallQuick{position:absolute;right:calc(100% + 8px);top:3px;min-width:30px}
#entry .role-grid,#entry .entry-form .role-grid{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:clamp(5px,.72vw,11px)!important;max-height:none!important;overflow:visible!important;padding:0!important;
 flex-shrink:0!important;
}
#entry .role-card{box-sizing:border-box;min-width:0!important;
 min-height:clamp(71px,10.4vh,118px)!important;padding:clamp(3px,.6vw,10px)!important;
 gap:2px!important;border:1.5px solid rgba(255,255,255,.85)!important;
 border-radius:clamp(10px,1.1vw,16px)!important;background:rgba(249,250,249,.57)!important;
 color:#173b41!important;box-shadow:0 3px 10px rgba(39,54,60,.06)!important}
#entry .role-card.active{border:2px solid #4d9e8d!important;background:rgba(219,239,231,.74)!important;
 box-shadow:0 0 0 1px rgba(73,146,128,.2),0 0 12px rgba(102,190,179,.25)!important}
#entry .role-card .mascot-thumb{display:block;width:auto!important;height:clamp(40px,6.9vh,78px)!important;
 max-width:100%!important;object-fit:contain!important;pointer-events:none}
#entry .role-card .label{font:750 clamp(10px,.88vw,14px)/1.2 system-ui,sans-serif!important;
 color:#16383d!important;text-align:center;word-break:keep-all}
#entry .entry-form>label{display:flex!important;flex-wrap:wrap;gap:8px!important;
 margin:clamp(6px,.95vh,12px) 0 5px!important;
 color:#15373d!important;font-size:clamp(11px,.95vw,14px)!important;font-weight:800!important}
#entry .entry-form>label small{color:#425e60!important;font-size:11px!important}
#entry .nickname-row{display:flex;gap:8px;width:100%;min-width:0}
#entry #nickname{flex:1 1 auto!important;width:0!important;min-width:0!important;
 height:clamp(34px,5vh,45px)!important;padding:7px 10px!important;
 background:rgba(255,255,255,.88)!important;border:1.5px solid #b5c9c4!important;border-radius:12px!important;
 color:#153941!important;font-size:clamp(12px,1vw,16px)!important}
#entry #nicknameCheck{flex:0 0 auto!important;min-width:70px!important;border:1px solid #97bfb4!important;
 border-radius:11px!important;background:rgba(235,246,237,.83)!important;color:#20564d!important;
 padding:0 10px!important;font-size:clamp(10px,.84vw,13px)!important;font-weight:800!important}
#entry .nickname-status{font-size:clamp(10px,.78vw,12px)!important;
 margin:4px 0!important;min-height:14px!important;color:#345b57!important}
#entry .enter{width:100%!important;max-width:100%!important;min-height:clamp(37px,5.1vh,54px)!important;
 border-radius:13px!important;padding:8px 14px!important;margin:clamp(4px,.7vh,9px) 0 0!important;
 color:#fff!important;background:linear-gradient(105deg,#27736e,#1b6573)!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.32),0 5px 15px rgba(14,82,88,.18)!important;
 font-size:clamp(13px,1.2vw,18px)!important;font-weight:800!important;text-shadow:0 1px 1px #125456}
#entry .entry-note{font-size:10px!important;color:#3c5c5d!important;margin:5px 0 4px!important}
#entry .river-kiosk-entry-link{display:flex!important;align-self:center;align-items:center;justify-content:center;
 margin:3px auto 0!important;min-height:30px!important;max-width:100%;padding:5px 14px!important;
 border-radius:11px!important;border:1px solid rgba(96,170,156,.62)!important;
 color:#22576a!important;background:rgba(251,255,252,.72)!important;
 font:750 clamp(11px,.88vw,13px)/1.2 system-ui,sans-serif!important;text-decoration:none!important;
}
#entry #pwaInstallPanel:not([hidden]){margin:3px auto;max-width:100%}
#entry .entry-form button:focus-visible,#entry .entry-form select:focus-visible,
#entry .entry-form a:focus-visible,#entry .entry-form input:focus-visible{outline:3px solid #337b87!important;outline-offset:2px}
@media (max-width:1100px) and (orientation:landscape){
 #entry .entry-visual{width:51vw!important;left:1.5vw!important;top:clamp(35px,9vh,65px)!important}
 #entry .entry-manifesto p{font-size:clamp(19px,2.75vw,29px)!important}
 #entry .entry-manifesto-brand{font-size:clamp(32px,4.1vw,48px)!important}
 #entry .entry-form{width:min(46vw,510px)!important;right:1.3vw!important;bottom:1.5vh!important;
  max-height:calc(100dvh - 79px)!important;padding:clamp(8px,1.3vw,15px)!important}
 #entry .entry-head h3{font-size:clamp(14px,1.7vw,19px)!important}
 #entry .role-card{min-height:clamp(56px,10.2vh,94px)!important;padding:3px!important}
 #entry .role-card .mascot-thumb{height:clamp(31px,7vh,60px)!important}
 #entry .role-card .label{font-size:clamp(8px,1vw,12px)!important}
 #entry .entry-form>label{margin:5px 0 3px!important}
 #entry .entry-head-actions{width:clamp(150px,22vw,240px)!important;max-width:30vw!important}
}
@media (orientation:landscape) and (max-height:430px){
 #entry .entry-form{max-height:calc(100dvh - 69px)!important;border-radius:18px!important}
 #entry .entry-head{min-height:22px}
 #entry .entry-head h3{margin:0 0 4px!important}
 #entry .role-card{min-height:53px!important}
 #entry .role-card .mascot-thumb{height:29px!important}
 #entry .role-card .label{font-size:9px!important}
 #entry .entry-form>label{margin:4px 0 2px!important}
 #entry #nickname{height:31px!important}
 #entry .enter{min-height:34px!important;padding:4px!important}
 #entry .river-kiosk-entry-link{min-height:24px!important;padding:3px 9px!important}
 #entry .entry-note{font-size:9px!important;margin:2px 0!important}
}
@media (orientation:portrait){
 #entry .entry-visual{left:3vw!important;right:3vw!important;top:clamp(38px,8vh,75px)!important;
 width:94vw!important}
 #entry .entry-manifesto p{font-size:clamp(20px,4.6vw,32px)!important}
 #entry .entry-manifesto-brand{font-size:clamp(35px,8vw,56px)!important}
 #entry .entry-form{width:min(94vw,550px)!important;right:3vw!important;bottom:2vh!important;
 max-height:calc(100dvh - 195px)!important;padding:12px!important}
 #entry .entry-head-actions{right:3vw!important;top:8px!important;max-width:41vw!important;min-width:140px!important}
 #entry .role-card{min-height:71px!important;padding:4px!important}
 #entry .role-card .mascot-thumb{height:43px!important}
 #entry .role-card .label{font-size:11px!important}
}

/* Approved refinements: full-width centered desktop handwriting and legibility. */
#entry.entry-overlay{z-index:10000!important}
#entry .entry-visual::before{
 background:radial-gradient(ellipse at center,rgba(255,247,232,.78),rgba(255,241,219,.39) 57%,transparent 84%)!important;
}
#entry .entry-manifesto p{
 color:#431b17!important;
 text-shadow:0 1px 0 #fff8ed,0 1px 4px #fff5df,0 0 9px rgba(255,243,227,.95)!important;
}
@media (min-width:1101px) and (orientation:landscape){
 #entry .entry-visual{left:0!important;right:0!important;top:clamp(57px,7vh,91px)!important;width:100vw!important}
 #entry .entry-manifesto p{font-size:clamp(30px,2.8vw,45px)!important}
 #entry .entry-manifesto-brand{font-size:clamp(46px,4.5vw,70px)!important}
}
@media (max-width:1100px) and (orientation:landscape){
 #entry .entry-visual::before{inset:-5px -2vw -12px!important}
 #entry .entry-manifesto p{color:#431b17!important;
  text-shadow:0 0 3px #fff4df,0 0 9px rgba(255,250,235,.98)!important}
}
#entry #pwaInstallPanel:not([hidden]){display:flex!important;align-items:center;justify-content:center;
 flex-wrap:wrap;gap:5px!important;font-size:10px!important}
#entry .river-kiosk-entry-link{order:9}
#entry #pwaInstallPanel{order:10}

/* Readability QA: soft atmospheric mist behind the actual ink, no opaque card. */
#entry .entry-visual::before{
 background:radial-gradient(ellipse at center,rgba(255,251,243,.88) 0%,rgba(255,247,231,.72) 50%,rgba(255,245,230,.13) 78%,transparent 100%)!important;
 backdrop-filter:blur(5px) saturate(.68);
 -webkit-backdrop-filter:blur(5px) saturate(.68);
 -webkit-mask-image:radial-gradient(ellipse at center,#000 39%,rgba(0,0,0,.88) 61%,transparent 95%);
 mask-image:radial-gradient(ellipse at center,#000 39%,rgba(0,0,0,.88) 61%,transparent 95%);
}
#entry .entry-manifesto p{
 -webkit-text-stroke:.55px #4c241d;
 paint-order:stroke fill;
}
@media (min-width:1101px) and (orientation:landscape){
 #entry .entry-visual::before{left:18%!important;right:18%!important;top:-18px!important;bottom:-20px!important}
}

/* Final fidelity fix: preserve faces and the sunset; apply readability to lettering, not the photo. */
#entry .entry-visual::before{display:none!important}
#entry .entry-manifesto p{
 text-shadow:0 1px 0 #fff8ee,0 1px 3px rgba(255,249,237,.99),
 0 0 8px rgba(255,247,224,.94),0 2px 10px rgba(255,239,210,.62)!important;
}
#entry .entry-manifesto-brand{
 text-shadow:0 1px 2px #fff9ee,0 2px 7px rgba(255,248,232,.95)!important;
}

/* CRITICAL: successful entry.hide() must uncover the world on every device. */
#entry.entry-overlay.hidden,
#entry.entry-overlay[aria-hidden="true"]{
 display:none!important;
 pointer-events:none!important;
 visibility:hidden!important;
}

/* HERE RIVER locally hosted, character-subsetted handwriting (SIL OFL). */
@font-face{
 font-family:"Nanum Pen Script";
 font-style:normal;
 font-weight:400;
 font-display:swap;
 src:url("../assets/login/fonts/nanum-pen-korean.woff2") format("woff2");
}
@font-face{
 font-family:"Caveat";
 font-style:normal;
 font-weight:700;
 font-display:swap;
 src:url("../assets/login/fonts/caveat-english.woff2") format("woff2");
}
#entry .entry-visual[data-language="ko"] .entry-manifesto p{
 font-family:"Nanum Pen Script","Malgun Gothic",sans-serif!important;
 font-weight:400!important;
 -webkit-text-stroke:.1px #53251e!important;
 text-shadow:0 1px 1px rgba(255,252,238,.96),0 0 5px rgba(255,251,234,.9)!important;
}
#entry .entry-visual[data-language="en"] .entry-manifesto p{
 font-family:"Caveat","Segoe Print",cursive!important;
 font-weight:700!important;
 -webkit-text-stroke:.06px #53251e!important;
}
#entry .entry-manifesto-brand{
 font-family:"Caveat","Segoe Print",cursive!important;
 font-weight:700!important;
}

#entry .entry-visual[data-language="fr"] .entry-manifesto p,
#entry .entry-visual[data-language="es"] .entry-manifesto p,
#entry .entry-visual[data-language="eo"] .entry-manifesto p{
 font-family:"Caveat","Segoe Print",cursive!important;
 font-weight:700!important;
 -webkit-text-stroke:.06px #53251e!important;
}
#entry .entry-visual[data-language="ja"] .entry-manifesto p{
 font-family:"Yu Mincho","Hiragino Mincho ProN","Noto Serif CJK JP",serif!important;
 font-weight:700!important;
}
#entry .entry-visual[data-language="zh-Hans"] .entry-manifesto p{
 font-family:"KaiTi","STKaiti","Noto Serif CJK SC","Microsoft YaHei",serif!important;
 font-weight:700!important;
}

/* HERE RIVER login: high-contrast handwritten manifesto, responsive across PC and mobile.
   Append-only visual refinement; preserves 7-language copy, entry events and original scenery. */
#entry .entry-manifesto{
 position:relative!important;
 isolation:isolate;
 gap:0!important;
}
#entry .entry-manifesto::before{display:none!important}
#entry .entry-manifesto p{
 color:#2b1511!important;
 -webkit-text-stroke:.38px #2b1511!important;
 padding:0 15px!important;
 border-radius:38% 36% 39% 39%;
 background:linear-gradient(90deg,rgba(255,248,232,0) 0%,
 rgba(255,248,232,.63) 18%,rgba(255,249,233,.65) 52%,
 rgba(255,248,232,.48) 81%,rgba(255,248,232,0) 100%)!important;
 text-shadow:-1px -1px 1px #fff8ee,1px 1px 1px #fff8ee,
 0 0 5px #fff7e9!important;
}
#entry .entry-manifesto-brand{
 color:#58327d!important;
 -webkit-text-stroke:.2px #58327d!important;
 text-shadow:-1px -1px 1px rgba(255,248,240,.95),
 1px 1px 1px rgba(255,248,240,.95),0 0 7px #fff8ec!important;
}
@media (min-width:1301px) and (min-height:840px) and (orientation:landscape){
 #entry .entry-visual{
  left:0!important;right:0!important;width:100vw!important;
  top:clamp(150px,18.5vh,194px)!important;
 }
 #entry .entry-manifesto p{
  font-size:clamp(34px,3.3vw,49px)!important;
  line-height:1.12!important;
 }
 #entry .entry-manifesto-brand{
  font-size:clamp(52px,5.15vw,78px)!important;
 }
 #entry .entry-visual[data-language="ja"] .entry-manifesto p{
  font-size:clamp(31px,2.42vw,36px)!important;
  line-height:1.13!important;
 }
}
@media (min-width:1101px) and (max-width:1300px) and (orientation:landscape),
       (min-width:1101px) and (max-height:839px) and (orientation:landscape){
 #entry .entry-visual{
  left:1.5vw!important;right:auto!important;width:55vw!important;
  top:clamp(53px,7vh,91px)!important;
 }
 #entry .entry-manifesto p{
  font-size:clamp(26px,2.35vw,34px)!important;
  line-height:1.08!important;
 }
 #entry .entry-manifesto-brand{
  font-size:clamp(42px,4vw,57px)!important;
 }
}
@media (max-width:1100px) and (orientation:landscape){
 #entry .entry-visual{
  top:clamp(8px,2.7vh,17px)!important;
 }
 #entry .entry-manifesto p{
  font-size:clamp(22px,2.75vw,29px)!important;
  line-height:1.06!important;
  color:#2b120d!important;
  -webkit-text-stroke:.42px #2b120d!important;
  background:linear-gradient(90deg,rgba(255,249,234,.24) 0%,
   rgba(255,249,234,.83) 11%,rgba(255,249,234,.92) 48%,
   rgba(255,249,234,.82) 85%,rgba(255,249,234,.22) 100%)!important;
  text-shadow:0 1px 0 #fffbee,0 0 3px #fff8e9,
   0 0 6px rgba(255,248,233,.96)!important;
 }
 #entry .entry-manifesto-brand{
  font-size:clamp(34px,4.4vw,47px)!important;
  line-height:1.04!important;
  padding-bottom:3px!important;
  color:#593781!important;
  text-shadow:0 1px 0 #fffaf0,0 0 5px #fff8ee!important;
 }
}
@media (orientation:portrait){
 #entry .entry-visual{
  top:clamp(45px,7vh,80px)!important;
 }
}
/* HERE RIVER · compact grayscale hologram login v2
 * Isolated presentation layer. Preserve the grayscale landscape, six roles,
 * country/language selection and original joining/nickname event handlers.
 * No added gradients, emerald/cyan accents, or opaque login cards.
 */
#entry.entry-overlay .entry-form{
  box-sizing:border-box!important;
  width:min(406px,calc(100vw - 28px))!important;
  max-width:calc(100vw - 28px)!important;
  min-width:0!important;min-height:0!important;
  height:auto!important;max-height:calc(100dvh - 52px)!important;
  right:clamp(12px,3.4vw,62px)!important;
  bottom:clamp(12px,3.3vh,30px)!important;
  padding:15px 15px 13px!important;
  display:flex!important;flex-direction:column!important;gap:0!important;
  border:1px solid rgba(255,255,255,.68)!important;
  border-radius:8px!important;
  background:rgba(31,31,33,.52)!important;
  -webkit-backdrop-filter:blur(12px) grayscale(1) brightness(.88)!important;
  backdrop-filter:blur(12px) grayscale(1) brightness(.88)!important;
  box-shadow:0 12px 34px rgba(0,0,0,.24),
             inset 0 0 0 1px rgba(255,255,255,.12),
             inset 0 0 22px rgba(255,255,255,.05)!important;
  color:#f8f8f8!important;overflow-x:hidden!important;
  overflow-y:auto!important;
  scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.33) transparent;
}
#entry.entry-overlay .entry-form::before{
  display:none!important;
}
#entry.entry-overlay .entry-head{
  display:flex!important;align-items:center!important;min-height:20px!important;
  margin:0 0 9px!important;
}
#entry.entry-overlay .entry-head h3{
  margin:0!important;color:#fff!important;
  font-family:system-ui,"Malgun Gothic",sans-serif!important;
  font-size:15px!important;font-weight:650!important;line-height:20px!important;
  letter-spacing:-.025em!important;
}
/* Country & language belong to the entrance, but no floating opaque blocks. */
#entry.entry-overlay .entry-head-actions > .entry-language,
#entry.entry-overlay .entry-head-actions > .entry-country{
  min-height:31px!important;padding:4px 8px!important;border-radius:6px!important;
  border:1px solid rgba(255,255,255,.58)!important;
  background:rgba(34,34,36,.58)!important;
  -webkit-backdrop-filter:blur(8px) grayscale(1)!important;
  backdrop-filter:blur(8px) grayscale(1)!important;
  color:#f7f7f7!important;
  box-shadow:0 2px 12px rgba(0,0,0,.16)!important;
}
#entry.entry-overlay .entry-head-actions > .entry-language select,
#entry.entry-overlay .entry-head-actions > .entry-country select{
  font-size:11px!important;color:#fafafa!important;
  background:transparent!important;border:0!important;
  color-scheme:dark;
}
#entry.entry-overlay .role-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:6px!important;max-height:none!important;
  flex-shrink:0!important;padding:0!important;
}
#entry.entry-overlay .role-card{
  min-height:68px!important;height:68px!important;max-height:68px!important;
  box-sizing:border-box!important;min-width:0!important;
  padding:5px 2px 3px!important;gap:1px!important;
  border-radius:5px!important;
  border:1px solid rgba(255,255,255,.34)!important;
  background:rgba(255,255,255,.085)!important;
  box-shadow:none!important;
  color:#fff!important;transition:background-color .16s,border-color .16s!important;
}
#entry.entry-overlay .role-card:hover{
  background:rgba(255,255,255,.18)!important;
  border-color:rgba(255,255,255,.76)!important;
}
#entry.entry-overlay .role-card.active,
#entry.entry-overlay .role-card[aria-checked="true"]{
  border:1px solid rgba(255,255,255,.96)!important;
  background:rgba(255,255,255,.28)!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.38),
             0 0 8px rgba(255,255,255,.19)!important;
}
#entry.entry-overlay .role-card .mascot-thumb{
  height:41px!important;max-height:41px!important;
  width:100%!important;object-fit:contain!important;
}
#entry.entry-overlay .role-card .label{
  font-family:system-ui,"Malgun Gothic",sans-serif!important;
  font-size:10px!important;font-weight:550!important;
  line-height:13px!important;color:#fff!important;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  max-width:100%;
}
#entry.entry-overlay .entry-form > label{
  margin:9px 0 4px!important;
  gap:6px!important;font-size:11px!important;
  line-height:14px!important;color:#f6f6f6!important;font-weight:650!important;
}
#entry.entry-overlay .entry-form > label small{
  font-size:10px!important;color:#d4d4d4!important;font-weight:400!important;
}
#entry.entry-overlay .nickname-row{
  display:flex!important;gap:5px!important;
  width:100%!important;min-height:34px!important;
}
#entry.entry-overlay #nickname{
  flex:1 1 auto!important;width:0!important;min-width:0!important;
  box-sizing:border-box!important;
  height:34px!important;min-height:34px!important;
  padding:6px 9px!important;
  color:#fff!important;background:rgba(10,10,10,.28)!important;
  border:1px solid rgba(255,255,255,.54)!important;
  border-radius:4px!important;font-size:12px!important;
}
#entry.entry-overlay #nickname::placeholder{color:#ddd!important;opacity:.8!important}
#entry.entry-overlay #nicknameCheck{
  flex:0 0 68px!important;min-width:68px!important;
  height:34px!important;border-radius:4px!important;
  padding:0 5px!important;
  background:rgba(255,255,255,.14)!important;
  border:1px solid rgba(255,255,255,.53)!important;
  color:#fff!important;font-size:10px!important;font-weight:650!important;
}
#entry.entry-overlay .nickname-status{
  min-height:13px!important;
  margin:3px 0 3px!important;
  font-size:10px!important;line-height:13px!important;
  color:#ededed!important;
}
#entry.entry-overlay .nickname-status[data-state="available"]{color:#fff!important}
#entry.entry-overlay .nickname-status[data-state="taken"],
#entry.entry-overlay .nickname-status[data-state="invalid"]{
  color:#fff!important;text-decoration:underline!important;
}
#entry.entry-overlay .enter{
  box-sizing:border-box!important;min-height:35px!important;height:35px!important;
  width:100%!important;margin:4px 0 0!important;padding:7px 11px!important;
  border:1px solid rgba(255,255,255,.92)!important;
  border-radius:4px!important;
  background:rgba(248,248,248,.91)!important;color:#272727!important;
  box-shadow:none!important;text-shadow:none!important;
  font-family:system-ui,"Malgun Gothic",sans-serif!important;
  font-size:13px!important;line-height:20px!important;font-weight:650!important;
}
#entry.entry-overlay .enter:hover:not(:disabled){background:#fff!important}
#entry.entry-overlay .enter:disabled{opacity:.63!important;cursor:default!important}
#entry.entry-overlay .enter span{font-size:17px!important}
#entry.entry-overlay .entry-note{
  margin:3px 0 1px!important;
  color:#ddd!important;font-size:9px!important;line-height:12px!important;
}
#entry.entry-overlay .river-kiosk-entry-link{
  box-sizing:border-box!important;
  min-height:23px!important;height:23px!important;
  margin:4px auto 0!important;padding:3px 8px!important;
  border-radius:4px!important;
  border:1px solid rgba(255,255,255,.42)!important;
  color:#f5f5f5!important;background:rgba(8,8,8,.13)!important;
  font-size:10px!important;line-height:15px!important;font-weight:500!important;
}
#entry.entry-overlay #pwaInstallPanel:not([hidden]){margin:4px 0 0!important}
#entry.entry-overlay :is(.role-card,#nickname,#nicknameCheck,.enter,.river-kiosk-entry-link,select):focus-visible{
  outline:2px solid #fff!important;outline-offset:2px!important;
}
/* Tablet and landscape handset: keep the scene visible on the left. */
@media (max-width:1100px) and (orientation:landscape){
  #entry.entry-overlay .entry-form{
    width:min(390px,46vw)!important;
    right:clamp(6px,1.2vw,15px)!important;
    bottom:7px!important;max-height:calc(100dvh - 54px)!important;
    padding:9px 10px!important;
  }
  #entry.entry-overlay .entry-head{min-height:18px!important;margin-bottom:5px!important}
  #entry.entry-overlay .entry-head h3{font-size:13px!important;line-height:18px!important}
  #entry.entry-overlay .role-grid{gap:4px!important}
  #entry.entry-overlay .role-card{
    height:51px!important;min-height:51px!important;max-height:51px!important;
    padding:2px!important;
  }
  #entry.entry-overlay .role-card .mascot-thumb{height:31px!important;max-height:31px!important}
  #entry.entry-overlay .role-card .label{font-size:9px!important;line-height:12px!important}
  #entry.entry-overlay .entry-form > label{margin:5px 0 2px!important}
  #entry.entry-overlay .nickname-row{min-height:30px!important}
  #entry.entry-overlay #nickname,#entry.entry-overlay #nicknameCheck{height:30px!important;min-height:30px!important}
  #entry.entry-overlay .nickname-status{margin:2px 0!important}
  #entry.entry-overlay .enter{height:31px!important;min-height:31px!important;margin-top:2px!important;padding:4px 8px!important}
  #entry.entry-overlay .entry-note{margin:1px 0!important}
  #entry.entry-overlay .river-kiosk-entry-link{min-height:21px!important;height:21px!important;margin:2px auto 0!important}
}
/* Portrait handset: reduced 6-role selector, untouched backdrop/manifesto. */
@media (orientation:portrait){
  #entry.entry-overlay .entry-form{
    width:min(354px,94vw)!important;max-width:94vw!important;
    right:3vw!important;bottom:max(9px,env(safe-area-inset-bottom))!important;
    padding:11px!important;
    max-height:calc(100dvh - 170px)!important;
  }
  #entry.entry-overlay .entry-head{margin-bottom:7px!important}
  #entry.entry-overlay .role-grid{gap:5px!important}
  #entry.entry-overlay .role-card{
    height:64px!important;min-height:64px!important;max-height:64px!important;
  }
  #entry.entry-overlay .role-card .mascot-thumb{height:38px!important;max-height:38px!important}
  #entry.entry-overlay .role-card .label{font-size:10px!important}
  #entry.entry-overlay .entry-head-actions{
    width:clamp(141px,40vw,175px)!important;
    max-width:42vw!important;
  }
}
@media (max-height:340px) and (orientation:landscape){
  #entry.entry-overlay .entry-form{max-height:calc(100dvh - 44px)!important}
  #entry.entry-overlay .role-card{height:43px!important;min-height:43px!important;max-height:43px!important}
  #entry.entry-overlay .role-card .mascot-thumb{height:25px!important;max-height:25px!important}
}
@media (prefers-reduced-motion:reduce){
  #entry.entry-overlay .role-card{transition:none!important}
}

/* Remove the old warm, elliptical text band without changing the approved copy. */
#entry.entry-overlay .entry-manifesto p{
  background:transparent!important;
  border-radius:0!important;
  color:#242424!important;
  -webkit-text-stroke:.15px #242424!important;
  text-shadow:0 1px 1px rgba(255,255,255,.95),
              0 0 5px rgba(255,255,255,.94),
              0 0 9px rgba(255,255,255,.7)!important;
}
/* Native PWA install is optional but must stay readable on compact portrait. */
#entry.entry-overlay #pwaInstallPanel:not([hidden]){
  box-sizing:border-box!important;display:flex!important;flex-wrap:wrap!important;
  width:100%!important;max-width:100%!important;
  gap:5px!important;align-items:center!important;justify-content:center!important;
  padding:0!important;margin:4px 0 0!important;
}
#entry.entry-overlay #pwaInstallButton{
  box-sizing:border-box!important;
  min-height:22px!important;border-radius:4px!important;
  padding:3px 7px!important;
  border:1px solid rgba(255,255,255,.48)!important;
  background:rgba(255,255,255,.17)!important;
  color:#f8f8f8!important;
  font:550 10px/14px system-ui,sans-serif!important;
  box-shadow:none!important;
}
#entry.entry-overlay #pwaInstallHint{
  display:block!important;
  min-width:0!important;flex:0 1 auto!important;
  max-width:100%!important;
  color:#ededed!important;font-size:10px!important;
  line-height:13px!important;overflow-wrap:anywhere!important;
}
/* Label translations can wrap; do not clip 16-country role names. */
#entry.entry-overlay .role-card .label{
  display:block!important;white-space:normal!important;
  overflow:visible!important;text-overflow:clip!important;
  line-height:12px!important;
  overflow-wrap:anywhere!important;word-break:keep-all!important;
}
#entry.entry-overlay .role-card .mascot-thumb{
  height:36px!important;max-height:36px!important;
}
@media (max-width:1100px) and (orientation:landscape){
  #entry.entry-overlay .role-card .mascot-thumb{height:28px!important;max-height:28px!important}
}
@media (orientation:portrait){
  #entry.entry-overlay .role-card .mascot-thumb{height:34px!important;max-height:34px!important}
}

/* 2026-11-23: approved Meshy full-body original drafts, image-only role cards.
   Preserve all 6 native radio buttons and screen-reader labels. */
#entry.entry-overlay .role-card{
 position:relative!important;isolation:isolate!important;overflow:hidden!important;
 box-sizing:border-box!important;
 height:88px!important;min-height:88px!important;max-height:88px!important;
 border-radius:5px!important;padding:2px!important;
 background:rgba(255,255,255,.24)!important;
}
#entry.entry-overlay .role-card.active,
#entry.entry-overlay .role-card[aria-checked="true"]{
 background:rgba(255,255,255,.34)!important;
 box-shadow:inset 0 0 0 1px rgba(255,255,255,.38),
            0 0 8px rgba(255,255,255,.19)!important;
}
#entry.entry-overlay .role-card::before{
 content:""!important;position:absolute!important;inset:3px!important;
 display:block!important;background-position:center center!important;
 background-size:auto 100%!important;background-repeat:no-repeat!important;
 mix-blend-mode:multiply!important;pointer-events:none!important;
}
#entry.entry-overlay .role-card[data-role-id="student_male"]::before{
 background-image:url("../mascots/student_male.webp?meshydraft=20261123v1")!important;
}
#entry.entry-overlay .role-card[data-role-id="student_female"]::before{
 background-image:url("../mascots/student_female.webp?meshydraft=20261123v1")!important;
}
#entry.entry-overlay .role-card[data-role-id="office_male"]::before{
 background-image:url("../mascots/office_male.webp?meshydraft=20261123v1")!important;
}
#entry.entry-overlay .role-card[data-role-id="office_female"]::before{
 background-image:url("../mascots/office_female.webp?meshydraft=20261123v1")!important;
}
#entry.entry-overlay .role-card[data-role-id="senior_male"]::before{
 background-image:url("../mascots/senior_male.webp?meshydraft=20261123v1")!important;
}
#entry.entry-overlay .role-card[data-role-id="senior_female"]::before{
 background-image:url("../mascots/senior_female.webp?meshydraft=20261123v1")!important;
}
#entry.entry-overlay .role-card .mascot-thumb{display:none!important}
#entry.entry-overlay .role-card .label{
 position:absolute!important;width:1px!important;height:1px!important;
 padding:0!important;margin:-1px!important;border:0!important;
 overflow:hidden!important;clip:rect(0,0,0,0)!important;
 clip-path:inset(50%)!important;white-space:nowrap!important;
}
@media (max-width:1100px) and (orientation:landscape){
 #entry.entry-overlay .role-card{height:61px!important;min-height:61px!important;max-height:61px!important}
}
@media (orientation:portrait){
 #entry.entry-overlay .role-card{height:79px!important;min-height:79px!important;max-height:79px!important}
}
@media (max-height:340px) and (orientation:landscape){
 #entry.entry-overlay .role-card{height:44px!important;min-height:44px!important;max-height:44px!important}
}

/* 2026-11-23: normalized upper-body silhouette portraits, same visual scale, no photo backplates.
   Replaces only the presentation of the existing 6 approved Meshy role choices. */
#entry.entry-overlay .role-card{background:rgba(255,255,255,.075)!important}
#entry.entry-overlay .role-card:hover{background:rgba(255,255,255,.145)!important}
#entry.entry-overlay .role-card.active,
#entry.entry-overlay .role-card[aria-checked="true"]{
  background:rgba(255,255,255,.19)!important;
  border-color:rgba(255,255,255,.95)!important;
}
#entry.entry-overlay .role-card::before{
  background-position:center top!important;
  background-size:auto 128%!important;
  background-repeat:no-repeat!important;
  mix-blend-mode:normal!important;
  inset:3px 2px 0!important;
}
/* Calibrated by actual head/shoulder pixels in the six source photographs.
   All cards retain the same dimensions; only the portrait zoom compensates for source framing. */
#entry.entry-overlay .role-card[data-role-id="student_male"]::before{background-size:auto 142%!important}
#entry.entry-overlay .role-card[data-role-id="student_female"]::before{background-size:auto 132%!important}
#entry.entry-overlay .role-card[data-role-id="office_male"]::before{background-size:auto 121%!important}
#entry.entry-overlay .role-card[data-role-id="office_female"]::before{background-size:auto 125%!important}
#entry.entry-overlay .role-card[data-role-id="senior_male"]::before{background-size:auto 199%!important}
#entry.entry-overlay .role-card[data-role-id="senior_female"]::before{background-size:auto 205%!important}
/* Explicit new image revision: never reuse the prior full-body browser cache. */
#entry.entry-overlay .role-card[data-role-id="student_male"]::before{background-image:url("../mascots/student_male.webp?upperbody=20261123v2")!important}
#entry.entry-overlay .role-card[data-role-id="student_female"]::before{background-image:url("../mascots/student_female.webp?upperbody=20261123v2")!important}
#entry.entry-overlay .role-card[data-role-id="office_male"]::before{background-image:url("../mascots/office_male.webp?upperbody=20261123v2")!important}
#entry.entry-overlay .role-card[data-role-id="office_female"]::before{background-image:url("../mascots/office_female.webp?upperbody=20261123v2")!important}
#entry.entry-overlay .role-card[data-role-id="senior_male"]::before{background-image:url("../mascots/senior_male.webp?upperbody=20261123v2")!important}
#entry.entry-overlay .role-card[data-role-id="senior_female"]::before{background-image:url("../mascots/senior_female.webp?upperbody=20261123v2")!important}


/* 2026-11-23 senior portrait proportion correction — CSS only.
   The approved elder source images are vertically narrow; adjust their
   displayed width independently without touching the six WebP files. */
#entry.entry-overlay .role-card[data-role-id="senior_male"]::before {
  transform: scaleX(1.50) !important;
  transform-origin: center top !important;
}
#entry.entry-overlay .role-card[data-role-id="senior_female"]::before {
  transform: scaleX(1.57) !important;
  transform-origin: center top !important;
}

/* 2026-11-23 approved senior duo from user uploads. Image swap only; no role/3D/auth changes.
 * Two square transparent portraits are shown at natural aspect ratio; the
 * previous compensation scaleX(1.50/1.57) must never distort these new assets. */
#entry.entry-overlay .role-card[data-role-id="senior_male"]::before{
  background-image:url("../mascots/senior_male.webp?approvedSeniors=20261123v1")!important;
  background-size:auto 94%!important;
  background-position:center top!important;
  background-repeat:no-repeat!important;
  transform:none!important;
  transform-origin:center center!important;
}
#entry.entry-overlay .role-card[data-role-id="senior_female"]::before{
  background-image:url("../mascots/senior_female.webp?approvedSeniors=20261123v1")!important;
  background-size:auto 94%!important;
  background-position:center top!important;
  background-repeat:no-repeat!important;
  transform:none!important;
  transform-origin:center center!important;
}
