body.landscape-page{
  --cream:#f5f1e4;
  --cream-2:#f8f4e9;
  --paper:#fbf8f0;
  --ink:#222721;
  --ink-soft:#454942;
  --sage:#a2aa92;
  --sage-soft:#e0e5d6;
  --green:#a4ad95;
  --green-soft:#e7e8d8;
  --yellow:#d9c59a;
  --yellow-soft:#ece1c4;
  --blue:#9faea7;
  --blue-soft:#e1e8e3;
  --shadow:3px 4px 0 #424a352b;
  --shadow-sm:2px 3px 0 #424a3525;
  background:#f5f1e4;
}
.landscape{position:fixed;inset:0;z-index:0;isolation:isolate;background:#f5f1e4;overflow:hidden}
.landscape-view,.landscape-poster,.landscape-canvas{position:absolute;inset:0;width:100%;height:100%}
.landscape-view,.landscape-gesture{touch-action:pan-y;cursor:grab}
.landscape-view:active,.landscape-gesture:active{cursor:grabbing}
.landscape-poster,.landscape-canvas,.landscape-ripple{pointer-events:none}
.landscape-poster img,.landscape-canvas{display:block;width:100%;height:100%;object-fit:cover}
.landscape-canvas{opacity:0}
.landscape[data-rendered] .landscape-canvas{opacity:1}
.landscape-ripple{
  position:absolute;top:var(--pulse-y);left:var(--pulse-x);width:66px;height:50px;
  border-radius:50%;border:1px solid #666b57;box-shadow:0 0 0 3px #888e7540;
  opacity:0
}
.landscape-controls{
  position:fixed;right:max(16px,env(safe-area-inset-right));
  bottom:max(15px,env(safe-area-inset-bottom));z-index:92;
  display:flex;gap:5px;padding:4px;background:#f7f3e8e6;border:1px solid #797d6d54;
  border-radius:var(--wobble3);box-shadow:0 3px 14px #3d44251a
}
.landscape-controls button{
  width:38px;height:38px;padding:0;border:1px solid transparent;border-radius:var(--wobble3);
  background:transparent;color:#353e32;font-size:19px;line-height:1
}
.landscape-controls button:hover{background:#e2e7d7;border-color:#7b846c}
.landscape-controls button:focus-visible,.landscape-gesture:focus-visible{outline:2px dashed #55624d;outline-offset:2px}
.landscape-page main,.landscape-page footer{position:relative;z-index:1}
.landscape-page main.wrap{max-width:1210px;padding-inline:clamp(24px,5.3vw,80px)}
.landscape-page #chapterTag{
  top:max(19px,env(safe-area-inset-top));right:max(24px,env(safe-area-inset-right));
  border:1px solid #666f59;border-radius:var(--wobble3);background:#f7f4e8ec;box-shadow:var(--shadow-sm)
}
.landscape-page #chapterTag .dots button{border-width:1px}
.landscape-page #s1{padding-top:clamp(110px,15vh,184px);padding-bottom:82px}
.landscape-page .hero-card{padding:0;border:0;box-shadow:none;background:none;border-radius:0}
.landscape-page .hero-card>.tape,.landscape-page .hero-side{display:none}
.landscape-page .hero-card>*:not(.hero-side,.landscape-gesture,.tape){max-width:min(60%,670px)}
.landscape-page h1.name{font-size:clamp(65px,8.3vw,128px);letter-spacing:-.032em;margin-top:20px}
.landscape-page .name-cn{letter-spacing:.36em}
.landscape-page .focus-row span{border-width:1px}
.landscape-page .motto{margin-top:27px}
.landscape-page .chip,.landscape-page .method .step{border-width:1px}
.landscape-page .method .step{min-width:80px}
.landscape-page .hero-contacts a{background:#f9f6ebed}
.landscape-page .hero-contacts a.mail{background:#ece3cb}
.landscape-gesture{
  position:absolute;inset:0 calc(-1 * clamp(24px,5.3vw,80px)) auto 58%;height:clamp(370px,64vh,650px);z-index:2;
  display:flex;align-items:end;justify-content:flex-end;padding:0 13px 11px
}
.landscape-gesture p{
  margin:0;color:#465141;background:#f5f1e4ca;padding:2px 7px;
  font-size:11px;letter-spacing:.06em;pointer-events:none
}
.landscape-touch{display:none}
.landscape-sr{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.landscape-page main section:not(#s1){scroll-margin-top:6px}
.landscape-page .sec-head{padding-bottom:15px;border-bottom:1px solid #787b634d}
.landscape-page .sec-num{color:#6f7a62!important;opacity:.88}
.landscape-page #s2 .desk{
  border-color:#65765d;border-width:1px;box-shadow:var(--shadow);
  background:linear-gradient(140deg,#e9edddf5,#e0e7d6e8)
}
.landscape-page #s4 .board{
  border:1px solid #74684e;border-radius:var(--wobble3);box-shadow:var(--shadow);
  background:
    radial-gradient(#8677542c 1px,transparent 1.2px) 0 0/14px 14px,
    linear-gradient(150deg,#e8ddc3ed,#d9ceb0ec);
}
.landscape-page .polaroid,.landscape-page .photo-pola{box-shadow:3px 5px 10px #524b3638}
.landscape-page .about-note .note,.landscape-page .player,.landscape-page .gb-card{box-shadow:var(--shadow)}
.landscape-page footer{
  color:var(--ink);background:#e8e9dcd9;border-top:1px solid #70785f55;
}
.landscape-page footer .big .hl{color:#626e51}
.landscape-page footer .f-bottom{border-color:#7c836a62}
.landscape-page footer .hero-contacts .chip{box-shadow:var(--shadow-sm)}
body.landscape-page.gb-open .landscape,body.landscape-page.gb-open .landscape-controls{display:none}
@media(max-width:880px){
  .landscape-page main.wrap{padding-inline:clamp(22px,6vw,45px)}
  .landscape-page #chapterTag{top:max(12px,env(safe-area-inset-top));right:max(13px,env(safe-area-inset-right));padding:5px 8px}
  .landscape-page #chapterTag .dots{gap:5px}
  .landscape-page #chapterTag .dots button{width:24px;height:24px}
  .landscape-page #s1{padding-top:94px;padding-bottom:45px}
  .landscape-page .hero-card>*:not(.hero-side,.landscape-gesture,.tape){max-width:none}
  .landscape-page h1.name{font-size:clamp(57px,12vw,92px);margin-top:17px}
  .landscape-page .motto .en{font-size:clamp(27px,7.2vw,42px)}
  .landscape-page .motto{margin-top:15px}
  .landscape-page .name-cn{font-size:20px}
  .landscape-gesture{position:relative;inset:auto;min-height:0;height:clamp(248px,61vw,350px);justify-content:flex-start;padding:0 0 5px}
  .landscape-gesture p{font-size:10px}
  .landscape-controls{gap:2px;padding:3px}
  .landscape-controls button{width:44px;height:44px;font-size:17px}
}
@media(pointer:coarse){.landscape-mouse{display:none}.landscape-touch{display:inline}}
@media(prefers-reduced-motion:reduce){.landscape *, .landscape{transition:none!important}}


.landscape-page .sec-head:has(.ink-artifact){
  --ink-width:clamp(156px,25vw,340px);
  --ink-height:clamp(105px,13vw,178px);
  position:relative;display:grid;grid-template-columns:auto minmax(0,1fr) var(--ink-width);
  gap:clamp(9px,1.5vw,22px);align-items:end
}
.ink-artifact{
  display:none;width:100%;height:var(--ink-height);padding:0;
  border:0;background:none;color:#465141;cursor:grab;touch-action:pan-y
}
body:has(.landscape[data-rendered]) .ink-artifact{display:block}
.ink-artifact:active{cursor:grabbing}
.ink-artifact:focus-visible{outline:2px dashed #55624d;outline-offset:2px}
.landscape-page .sec-head:has(.ink-artifact) .sec-title{
  font-size:clamp(29px,5.2vw,66px);line-height:1.08;word-break:keep-all
}
.landscape-page .sec-head:has(.ink-artifact) .sec-num{
  font-size:clamp(45px,6.8vw,93px);line-height:.8
}
body:not(:has(.landscape[data-rendered])) .sec-head:has(.ink-artifact){grid-template-columns:auto minmax(0,1fr)}
@media(max-width:650px){
  .landscape-page .sec-head:has(.ink-artifact){
    --ink-width:clamp(108px,31vw,196px);
    --ink-height:clamp(72px,16vw,120px);
    grid-template-columns:auto minmax(0,1fr) var(--ink-width);gap:8px
  }
  .landscape-page .sec-head:has(.ink-artifact) .sec-title{font-size:clamp(23px,6.1vw,37px)}
  .landscape-page .sec-head:has(.ink-artifact) .sec-num{font-size:clamp(36px,10vw,51px)}
}
@media(max-width:420px){
  .landscape-page #s4 .sec-title{font-size:clamp(19px,5.4vw,24px)}
}

.lib-arrange{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:17px 0 -4px;color:#4d5144;font-size:12px}
.lib-arrange[hidden]{display:none}
.lib-arrange p{margin:0}
.lib-arrange button{flex:none;min-height:36px;padding:4px 12px;background:var(--paper);color:var(--ink);border:1px solid #777e68;border-radius:var(--wobble3)}
.lib-arrange button:disabled{opacity:.55;cursor:default}
.lib-movable{position:relative;isolation:isolate}
.lib-movable .lib-pola{cursor:grab;touch-action:pan-y;user-select:none}
.lib-movable .lib-pola:hover{animation:none;scale:none;box-shadow:4px 7px 15px #2b251d50}
.lib-movable .lib-pola[data-dragging]{cursor:grabbing;box-shadow:8px 14px 22px #2b251d65}
.lib-movable .lib-pola img{pointer-events:none}
.lib-grip{
  position:absolute;top:-7px;right:-4px;z-index:6;width:32px;height:32px;border:1px solid #7c7a62;
  border-radius:var(--wobble3);background:#f4ecda;color:var(--ink);
  box-shadow:var(--shadow-sm);touch-action:none;cursor:grab;opacity:0
}
.lib-grip::before{
  content:"";position:absolute;inset:0;margin:auto;width:10px;height:14px;
  background:radial-gradient(#535b48 1px,transparent 1.6px) 0 0/5px 5px
}
.lib-pola:hover .lib-grip,.lib-pola:focus-visible .lib-grip,.lib-pola[data-dragging] .lib-grip{opacity:1}
.lib-touch-hint{display:none}
@media(any-pointer:coarse){
  .lib-grip{width:36px;height:36px;opacity:1}
  .lib-desktop-hint{display:none}
  .lib-touch-hint{display:inline}
}

.world-entry{
  min-height:40px;padding:5px 15px;border:1px solid #68765e;border-radius:var(--wobble3);
  background:#e1e6d7;color:#2e4037;font-size:13px;box-shadow:var(--shadow-sm)
}
.world-entry:hover{background:#d1dac7}
.world-entry[hidden]{display:none}
.landscape-world{
  width:100%;height:100%;max-width:none;max-height:none;inset:0;margin:0;padding:0;
  border:0;background:transparent;color:#2c3d33;overflow:hidden
}
.landscape-world::backdrop{background:transparent}
.landscape-page.world-open main,.landscape-page.world-open footer,
.landscape-page.world-open #chapterTag,.landscape-page.world-open .landscape-controls{visibility:hidden}
html:has(body.world-open){overflow:hidden}
.world-gesture{position:absolute;inset:0;cursor:grab;touch-action:none}
.world-gesture:active{cursor:grabbing}
.world-gesture:focus-visible{outline:2px dashed #64745b;outline-offset:-7px}
.world-header{
  position:absolute;top:max(24px,calc(env(safe-area-inset-top) + 13px));left:6vw;right:6vw;
  display:flex;justify-content:space-between;align-items:center;pointer-events:none
}
.world-header h2{font-size:clamp(28px,4vw,56px);font-weight:650;letter-spacing:.16em;margin:0}
.world-header form{pointer-events:auto}
.world-header button{
  min-height:44px;padding:5px 13px;border:1px solid #6e795e;background:#f8f4e8;
  color:#263a30;border-radius:var(--wobble3);box-shadow:var(--shadow-sm)
}
.world-header button:hover{background:#e4e8d9}
#world-help,#world-response{
  position:absolute;left:6vw;right:6vw;bottom:max(22px,calc(env(safe-area-inset-bottom) + 12px));
  pointer-events:none;color:#4c594b;font-size:12px;margin:0
}
#world-response{bottom:max(48px,calc(env(safe-area-inset-bottom) + 38px));font-size:14px;color:#2e4b42}
@media(max-width:540px){.world-header{left:5vw;right:5vw}.world-header button{padding-inline:10px}}
@media(prefers-reduced-motion:reduce){.world-header button{transition:none}}

body:has(.landscape[data-rendered]) #s2{
  --about-width:76%;
  --cliff-margin:clamp(0px,4vw,64px);
  --cliff-top:clamp(44px,4vw,62px);
  --pine-crown:clamp(216px,22vw,304px);
  padding-top:calc(var(--cliff-top) + 52px)
}
body:has(.landscape[data-rendered]) #s2 .sec-head{
  position:relative;z-index:1;width:var(--about-width);min-height:var(--pine-crown);
  align-content:end;pointer-events:none
}
body:has(.landscape[data-rendered]) #s2 .sec-head>*{pointer-events:auto}
body:has(.landscape[data-rendered]) #s2 :is(.desk,.about-note){position:relative;z-index:1;width:var(--about-width)}
#s2>.ink-artifact{
  --cliff-edge:calc(var(--about-width) - var(--cliff-margin) * .76);
  position:absolute;inset:var(--cliff-top) calc(-1 * var(--cliff-margin)) 0 0;
  width:auto;height:auto;
  clip-path:polygon(0 0,100% 0,100% 100%,var(--cliff-edge) 100%,var(--cliff-edge) var(--pine-crown),0 var(--pine-crown))
}
#s2>.ink-artifact:focus-visible{outline-offset:-3px}
@media(max-width:700px){
  body:has(.landscape[data-rendered]) #s2{
    --about-width:100%;--cliff-margin:0px;--cliff-top:84px;--pine-crown:clamp(198px,57vw,272px);
    padding-top:var(--cliff-top)
  }
  body:has(.landscape[data-rendered]) #s2 .sec-head{gap:10px}
  #s2>.ink-artifact{clip-path:inset(0 0 calc(100% - var(--pine-crown)) 0)}
}
