/* G-EIGHT 簽到區: the check-in wall on the key visual's snowfield. Colours come from geight-theme.css's --gx-* tokens. */
.gx-ci{--ci-out:var(--gx-edge);padding-bottom:18px}
.gx-ci .hidden,.gx-ci [hidden]{display:none!important}
.gx-ci-intro{display:flex;align-items:flex-end;justify-content:space-between;gap:12px 28px;flex-wrap:wrap;margin:22px 0 14px}
.gx-ci-intro h1{margin:4px 0 0;color:var(--gx-ink);font:400 34px/1.25 var(--gx-display)}
.gx-ci-intro p{max-width:460px;margin:0;color:var(--gx-muted);font-size:14px;line-height:1.7}
.gx-ci-kicker{color:var(--gx-peri-ink);font:400 12px/1.2 var(--gx-label);letter-spacing:1px}
.gx-ci-note{margin:12px 2px 0;color:var(--gx-muted);font-size:12px;line-height:1.6}

/* Notched pixel outline, same recipe as the rest of the site. */
.gx-ci :is(.gx-ci-stage,.gx-ci-btn,.gx-ci-counter,.dock-btn,.gx-ci-tools,.gx-ci-submenu,.gx-ci-dialog,.gx-ci-drawer,.gx-ci-fields input,.gx-ci-panel input,.gx-ci-chips button,.pg-type-btn,.checkin-tab-btn,.gx-ci-pad,.gx-ci-preview,.gx-ci-upload,.gx-ci-guest,.gx-ci-close){
  --gx-c:var(--ci-out);border:0;border-radius:0;
  box-shadow:calc(var(--gx-px)*-1) 0 0 0 var(--gx-c),var(--gx-px) 0 0 0 var(--gx-c),0 calc(var(--gx-px)*-1) 0 0 var(--gx-c),0 var(--gx-px) 0 0 var(--gx-c)}

/* stage = sticky tool bar + a snowfield several screens tall. `clip`, not `hidden`, so the bar can stick. */
.gx-ci-stage{--gx-c:var(--gx-sky-deep);position:relative;overflow:clip;width:100%;margin:2px 0;background:var(--gx-snow);user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
.gx-ci-stage:fullscreen{width:100vw;height:100vh;margin:0;overflow-x:hidden;overflow-y:auto}
.gx-ci-field{position:relative;height:calc(max(2200px,300vh) + var(--ci-crowd,0px))}
.gx-ci-ground{position:absolute;z-index:0;inset:0;overflow:hidden;pointer-events:none;background-color:var(--gx-snow);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='132' shape-rendering='crispEdges'%3E%3Cg fill='%23e6ecef'%3E%3Crect x='10' y='14' width='4' height='4'/%3E%3Crect x='76' y='40' width='6' height='4'/%3E%3Crect x='40' y='92' width='4' height='4'/%3E%3Crect x='108' y='110' width='6' height='4'/%3E%3C/g%3E%3Cg fill='%23d7e0e5'%3E%3Crect x='58' y='66' width='4' height='2'/%3E%3Crect x='118' y='8' width='4' height='2'/%3E%3C/g%3E%3C/svg%3E"),linear-gradient(180deg,var(--gx-sky) 0,#dfe6ea 10%,var(--gx-snow) 30%,#fff 100%);background-size:132px 132px,100% 100%}
.gx-ci-scene{position:relative;display:block;width:100%;height:auto;min-height:440px;object-fit:cover;object-position:50% 100%;image-rendering:pixelated;transition:filter .8s ease;-webkit-mask-image:linear-gradient(180deg,#000 82%,transparent);mask-image:linear-gradient(180deg,#000 82%,transparent)}
.gx-ci-prop{position:absolute;left:var(--x);top:var(--y);width:var(--w);min-width:48px;max-width:150px;height:auto;image-rendering:pixelated;opacity:.92;transition:filter .8s ease}
.gx-ci-wash{position:absolute;z-index:1;inset:0;background:linear-gradient(180deg,rgba(244,243,240,0) 0,rgba(244,243,240,.16) 20%,rgba(255,255,255,.3) 100%);pointer-events:none;transition:background .8s ease}
.gx-ci-field .gx-snow{z-index:2}
#game-canvas{position:absolute;z-index:3;inset:0;display:block;width:100%;height:100%;touch-action:pan-y;cursor:pointer}
/* Only a drawing tool takes over the touch gesture; otherwise a swipe scrolls down the snowfield. */
.gx-ci-stage.is-drawing #game-canvas{touch-action:none;cursor:crosshair}
.gx-ci-stage.weather-rain :is(.gx-ci-scene,.gx-ci-prop){filter:saturate(.75) brightness(.97)}
.gx-ci-stage.weather-rain .gx-ci-wash{background:linear-gradient(180deg,rgba(169,185,195,.35) 0,rgba(230,236,239,.3) 30%,rgba(255,255,255,.4) 100%)}
.gx-ci-stage.weather-night .gx-ci-ground{background-color:#3c4f5c}
.gx-ci-stage.weather-night :is(.gx-ci-scene,.gx-ci-prop){filter:brightness(.42) saturate(.7) hue-rotate(10deg)}
.gx-ci-stage.weather-night .gx-ci-wash{background:linear-gradient(180deg,rgba(26,40,58,.55) 0,rgba(110,144,200,.18) 10%,rgba(136,183,185,.12) 16%,rgba(26,40,58,.62) 30%,rgba(26,40,58,.7) 100%)}

/* top bar: stays at the top of the screen while the snowfield scrolls under it */
.gx-ci-bar{position:sticky;z-index:6;top:0;height:0}
.gx-ci-bar-inner{position:absolute;top:12px;left:12px;right:12px;display:grid;grid-template-columns:1fr auto 1fr;grid-template-areas:"left tools right";align-items:start;gap:8px;pointer-events:none}
.gx-ci-bar-side{grid-area:left;display:flex;align-items:center;gap:8px;pointer-events:auto}
.gx-ci-bar-end{grid-area:right;justify-self:end}
.gx-ci-tools-wrap{grid-area:tools;display:flex;flex-direction:column;align-items:center;gap:8px}
.gx-ci-tools,.gx-ci-submenu{pointer-events:auto}
.gx-ci-tools{--gx-c:var(--gx-sky-deep);display:flex;align-items:center;gap:8px;padding:8px 10px;background:rgba(255,255,255,.94)}
.gx-ci-counter{display:flex;align-items:center;gap:8px;height:40px;padding:0 12px;background:rgba(255,255,255,.94);color:var(--gx-ink);font:400 14px/1 var(--gx-display);white-space:nowrap}
.gx-ci-live{width:8px;height:8px;background:var(--gx-teal);box-shadow:0 0 0 2px #fff;animation:gxCiLive 1.6s steps(2) infinite}
@keyframes gxCiLive{50%{background:var(--gx-peri)}}
.gx-ci-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:0 13px;background:#fff;color:var(--gx-ink);font:400 14px/1 var(--gx-display);cursor:pointer;white-space:nowrap;transition:transform .12s steps(2)}
.gx-ci-btn:hover{background:var(--gx-ice)}
.gx-ci-btn:active{transform:translateY(2px)}
.gx-ci-btn-primary{--gx-c:var(--gx-ink)!important;background:var(--gx-slate);color:#fff}
.gx-ci-btn-primary:hover{background:var(--gx-ink)}
#open-checkin-modal-btn{animation:gxCiNudge 2.4s steps(1) infinite}
@keyframes gxCiNudge{0%,86%,100%{transform:none}90%{transform:translateY(-3px)}94%{transform:translateY(-1px)}}
.gx-ci-btn-amber{--gx-c:var(--gx-amber-ink)!important;background:var(--gx-amber);color:var(--gx-ink)}
.gx-ci-btn-amber:hover{background:#ecc98c}
.gx-ci-btn-danger{--gx-c:var(--gx-blush-ink)!important;background:var(--gx-blush);color:var(--gx-ink)}
.gx-ci-icon{width:40px;padding:0;font-size:17px}
.dock-btn{--gx-c:var(--gx-edge);display:flex;flex:none;align-items:center;justify-content:center;width:44px;height:44px;background:var(--gx-snow);font-size:21px;cursor:pointer;transition:transform .14s steps(2)}
.dock-btn:hover{background:var(--gx-ice)}
.dock-btn.active-tool{--gx-c:var(--gx-ink);transform:translateY(3px);background:var(--gx-amber-soft)}
.gx-ci-submenu{--gx-c:var(--gx-amber);display:flex;align-items:center;gap:8px;padding:8px 12px;background:rgba(255,255,255,.96);color:var(--gx-muted);font-size:12px}
.pg-type-btn,.gx-ci-chips button{display:inline-flex;align-items:center;gap:4px;min-height:32px;padding:0 10px;background:#fff;color:var(--gx-ink);font:500 13px/1 'Noto Sans TC',sans-serif;cursor:pointer}
.pg-type-btn.is-active,.gx-ci-chips button.is-active{--gx-c:var(--gx-ink);background:var(--gx-amber);color:var(--gx-ink)}
.gx-ci-top{position:fixed;z-index:30;right:max(16px,env(safe-area-inset-right));bottom:max(20px,env(safe-area-inset-bottom));flex-direction:column;gap:2px;width:52px;height:52px;padding:0;--gx-c:var(--gx-ink)!important;background:var(--gx-slate);color:#fff;font-size:14px}
.gx-ci-top span{font:400 10px/1 var(--gx-label);letter-spacing:.5px}
.gx-ci-top:hover{background:var(--gx-ink)}
.gx-ci-top[hidden]{display:none}

/* dialogs */
.gx-ci-overlay{position:fixed;z-index:60;inset:0;display:flex;align-items:center;justify-content:center;padding:16px;overflow-y:auto;background:rgba(41,67,79,.45)}
.gx-ci-dialog{--gx-c:var(--gx-ink);width:100%;max-width:580px;margin:auto;padding:20px;background:var(--gx-snow);color:var(--gx-ink)}
.gx-ci-dialog-wide{max-width:680px}
.gx-ci-dialog-narrow{max-width:420px;text-align:center}
.gx-ci-pop{animation:gxCiPop .2s steps(3) both}
@keyframes gxCiPop{from{transform:translateY(10px);opacity:0}to{transform:none;opacity:1}}
.gx-ci-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
.gx-ci :is(.gx-ci-dialog,.gx-ci-drawer) h2{margin:4px 0 2px;color:var(--gx-ink);font:400 22px/1.35 var(--gx-display)}
.gx-ci :is(.gx-ci-dialog,.gx-ci-drawer) p{margin:0;color:var(--gx-muted);font-size:13px;line-height:1.6}
.gx-ci-close{flex:none;width:36px;height:36px;background:#fff;color:var(--gx-ink);font-size:20px;cursor:pointer}
.gx-ci-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:14px;padding:14px;background:#fff;box-shadow:0 0 0 2px var(--gx-edge)}
.gx-ci-fields label,.gx-ci-wide{display:grid;gap:6px;color:var(--gx-ink);font-size:13px;font-weight:700}
.gx-ci-fields small,.gx-ci-wide small{color:var(--gx-muted);font-weight:500}
.gx-ci :is(.gx-ci-fields,.gx-ci-panel) input[type=text]{width:100%;min-height:38px;padding:0 10px;background:var(--gx-snow);color:var(--gx-ink);font:500 15px 'Noto Sans TC',sans-serif;user-select:text;-webkit-user-select:text}
.gx-ci :is(.gx-ci-fields,.gx-ci-panel) input[type=text]:focus{--gx-c:var(--gx-peri);outline:0}
.gx-ci-field-row{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;grid-column:1/-1;color:var(--gx-ink);font-size:13px;font-weight:700}
.gx-ci-chips{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.gx-ci-chips>span{color:var(--gx-muted);font-weight:500}
.gx-ci-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}
.checkin-tab-btn{min-height:38px;background:#fff;color:var(--gx-muted);font:400 14px/1 var(--gx-display);cursor:pointer}
.checkin-tab-btn.is-active{--gx-c:var(--gx-ink);background:var(--gx-slate);color:#fff}
.gx-ci-dialog-pad{max-width:920px}
.gx-ci-pad{position:relative;height:clamp(280px,50vh,540px);margin-bottom:12px;background:#fff}
#checkin-draw-canvas{display:block;width:100%;height:100%;background-image:linear-gradient(var(--gx-ice) 2px,transparent 2px),linear-gradient(90deg,var(--gx-ice) 2px,transparent 2px);background-size:24px 24px;touch-action:none;cursor:crosshair}
.gx-ci-pad-hint{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:12px;color:var(--gx-muted);text-align:center;pointer-events:none}
.gx-ci-pad-hint b{font:400 15px/1.4 var(--gx-display);color:var(--gx-slate)}
.gx-ci-pad-hint span{font-size:12px}
.gx-ci-pad-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.gx-ci-swatches{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.gx-ci-swatches button{width:30px;height:30px;padding:0;border:0;background:var(--swatch);box-shadow:0 0 0 2px #fff,0 0 0 4px var(--gx-edge);cursor:pointer}
.gx-ci-swatches button.is-active{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--gx-ink);transform:translateY(-2px)}
.gx-ci-pad-tools{row-gap:12px}
.gx-ci-brush{display:flex;align-items:center;gap:10px;color:var(--gx-ink);font-size:13px;font-weight:700}
.gx-ci-brush input[type=range]{width:150px;accent-color:var(--gx-slate)}
.gx-ci-brush-dot{--dot:10px;--ink:var(--gx-ink);display:inline-flex;align-items:center;gap:8px;min-width:70px;color:var(--gx-muted);font:400 12px var(--gx-label)}
.gx-ci-brush-dot::before{content:'';width:var(--dot);height:var(--dot);background:var(--ink);box-shadow:0 0 0 1px var(--gx-edge)}
.gx-ci-custom-color{position:relative;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;background:conic-gradient(#e2828c,#e2ba76,#88b7b9,#6e90c8,#44679f,#e2828c);box-shadow:0 0 0 2px #fff,0 0 0 4px var(--gx-edge);cursor:pointer}
.gx-ci-custom-color.is-active{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--gx-ink);transform:translateY(-2px)}
.gx-ci-custom-color input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.gx-ci-custom-color span{color:#fff;font:400 16px/1 var(--gx-label);text-shadow:0 1px 0 var(--gx-ink)}
.gx-ci-panel{display:grid;gap:12px;margin-bottom:10px;padding:14px;background:#fff;box-shadow:0 0 0 2px var(--gx-edge)}
.gx-ci-preview{display:flex;align-items:center;justify-content:center;height:136px;overflow:hidden;background:var(--gx-ice)}
.gx-ci-preview canvas{max-width:100%;max-height:100%}
.gx-ci-upload{--gx-c:var(--gx-ink)!important;display:inline-flex;align-items:center;min-height:38px;padding:0 14px;background:var(--gx-slate);color:#fff;font:400 14px/1 var(--gx-display);cursor:pointer}
.gx-ci-upload input{position:absolute;width:1px;height:1px;opacity:0}
.gx-ci-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}
.gx-ci-dialog-narrow .gx-ci-dialog-actions,.gx-ci-dialog-wide .gx-ci-dialog-actions{justify-content:center}
.gx-ci-guide{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0;padding:0;list-style:none}
.gx-ci-guide li{display:flex;gap:12px;padding:14px;background:#fff;box-shadow:0 0 0 2px var(--gx-edge)}
.gx-ci-guide li>b{flex:none;color:var(--gx-peri-ink);font:400 20px/1 var(--gx-label)}
.gx-ci-guide strong{display:block;margin-bottom:4px;font:400 16px/1.35 var(--gx-display)}
.gx-ci-cleanup{display:grid;gap:10px;margin-top:14px}
.gx-ci-cleanup .gx-ci-btn{white-space:normal;padding:10px 14px;line-height:1.5;font-family:'Noto Sans TC',sans-serif;font-weight:700}

/* guestbook drawer */
.gx-ci-overlay-drawer{justify-content:flex-end;align-items:stretch;padding:0}
.gx-ci-drawer{--gx-c:var(--gx-ink);display:flex;flex-direction:column;width:100%;max-width:420px;padding:18px;background:var(--gx-snow)}
.gx-ci-guestbook{flex:1;display:grid;align-content:start;gap:10px;overflow-y:auto;padding:4px}
.gx-ci-guest{display:flex;align-items:center;gap:12px;padding:10px;background:#fff;cursor:pointer}
.gx-ci-guest:hover,.gx-ci-guest.is-mine{--gx-c:var(--gx-peri)}
.gx-ci-guest-head b em{margin-inline-start:6px;padding:2px 5px;background:var(--gx-peri-ink);color:#fff;font:400 11px/1 var(--gx-display);font-style:normal}
.gx-ci-guest-thumb{display:flex;flex:none;align-items:center;justify-content:center;width:52px;height:52px;overflow:hidden;background:var(--gx-ice);font-size:24px}
.gx-ci-guest-thumb img{width:100%;height:100%;object-fit:contain}
.gx-ci-guest-text{flex:1;min-width:0}
.gx-ci-guest-head{display:flex;justify-content:space-between;gap:8px}
.gx-ci-guest-head b{overflow:hidden;color:var(--gx-ink);font-size:14px;text-overflow:ellipsis;white-space:nowrap}
.gx-ci-guest-head time{flex:none;color:var(--gx-muted);font:400 11px var(--gx-label)}
.gx-ci .gx-ci-guest p{margin-top:2px;overflow:hidden;color:var(--gx-amber-ink);font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.gx-ci-guest-call{flex:none;padding:6px 8px;background:var(--gx-amber-soft);color:var(--gx-amber-ink);font:400 12px/1 var(--gx-display)}
.gx-ci-drawer-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:12px;color:var(--gx-muted);font-size:12px;box-shadow:0 -2px 0 0 var(--gx-edge)}

/* Below this the three groups no longer fit on one line: tools take the first row. */
@media(max-width:1180px){
  .gx-ci-label-lg{display:none}
  .gx-ci-bar-inner{grid-template-columns:1fr auto;grid-template-areas:"tools tools" "left right"}
}
@media(max-width:700px){
  .gx-ci-intro{flex-wrap:nowrap;margin:10px 0 8px}
  .gx-ci-intro h1{font-size:22px}
  .gx-ci-intro p{display:none}
  .gx-ci-stage{width:100vw;margin-inline:calc(50% - 50vw);--gx-c:transparent}
  .gx-ci-bar-inner{top:8px;left:8px;right:8px;gap:6px}
  .gx-ci-bar-side{gap:6px}
  .gx-ci-tools{gap:6px;padding:6px 8px}
  .gx-ci-label{display:none}
  .gx-ci-counter{height:36px;gap:6px;padding:0 8px;font-size:13px}
  .gx-ci-btn{min-height:36px;padding:0 9px;font-size:13px}
  .gx-ci-icon{width:36px;padding:0}
  #help-guide-btn,#fullscreen-toggle-btn{display:none}
  .dock-btn{width:38px;height:38px;font-size:18px}
  .gx-ci-submenu-hint{display:none}
  .gx-ci-scene{min-height:360px}
  .gx-ci-fields,.gx-ci-guide{grid-template-columns:1fr}
  .gx-ci-dialog{padding:16px}
  .gx-ci-overlay{padding:10px}
  .gx-ci-overlay-drawer{padding:0}
  .gx-ci-pad{height:clamp(240px,46vh,420px)}
  .gx-ci-tabs{gap:6px}
  .checkin-tab-btn{font-size:13px}
  .gx-ci-brush input[type=range]{width:120px}
  .gx-ci-top{width:46px;height:46px}
}
@media(max-width:380px){#sound-toggle-btn,.gx-ci-live{display:none}}
@media(prefers-reduced-motion:reduce){#open-checkin-modal-btn,.gx-ci-live,.gx-ci-pop{animation:none}}

/* Wired to the signature API (cobinyiu): 名冊 search, share/report on a card, the photo sign-in note. */
.gx-ci-guest-search{display:flex;align-items:center;gap:8px;margin:0 4px 10px;color:var(--gx-muted);font-size:13px;font-weight:700}
.gx-ci-guest-search input{flex:1;min-height:36px;padding:0 10px;background:var(--gx-snow);color:var(--gx-ink);font:500 14px 'Noto Sans TC',sans-serif;border:0;box-shadow:0 0 0 2px var(--gx-edge);user-select:text;-webkit-user-select:text}
.gx-ci-guest-search input:focus{outline:0;box-shadow:0 0 0 2px var(--gx-peri)}
.gx-ci-guest-actions{display:flex;gap:6px;margin-top:6px}
.gx-ci-guest-actions button{min-height:26px;padding:0 8px;background:var(--gx-ice);color:var(--gx-ink);font:400 12px/1 var(--gx-display);border:0;cursor:pointer}
.gx-ci-guest-actions button:hover{background:var(--gx-peri-soft)}
.gx-ci-guest-actions [data-guest-report]{color:var(--gx-blush-ink)}
.gx-ci-guest-empty{padding:18px 8px;color:var(--gx-muted);font-size:13px;text-align:center}
.gx-ci-photo-note{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px;padding:10px 12px;background:var(--gx-amber-soft);color:var(--gx-amber-ink);font-size:13px;font-weight:700;line-height:1.5}
.gx-ci-photo-note[hidden]{display:none}

/* Languages Cubic 11 has no glyphs for (Korean, Thai, Arabic, Hebrew, Ukrainian, Polish, Czech, Hungarian,
   Turkish, Romanian): the wall in a regular font, the same split the 籤紙 uses. The canvas follows in
   geight-checkin.js (CI_FONT). */
:root:not(:lang(zh)):not(:lang(ja)):not(:lang(en)):not(:lang(de)):not(:lang(fr)):not(:lang(es)):not(:lang(it)):not(:lang(pt)):not(:lang(nl)):not(:lang(sv)):not(:lang(da)):not(:lang(nb)):not(:lang(fi)):not(:lang(id)):not(:lang(ru)) .gx-ci{
  --gx-display:'Noto Sans TC',-apple-system,'Segoe UI',sans-serif;--gx-label:'Noto Sans TC',-apple-system,'Segoe UI',sans-serif}
