/* Edition 4 — illustrated game navigation, strong theme colours and a new title screen. */
:root{--ink:#183b50;--ink-2:#3a5d70;--ink-3:#526e7c;--paper:#fffdf5;--bg:#f4f3e9;--line:#cadbd8;--logo-blue:#096d92;--sun:#ffcf4a;--sun-press:#efb730;--ui-border:#cbdedc;--font-display:'UMK Zen Maru','Hiragino Maru Gothic ProN','Hiragino Sans',sans-serif}
body{background:#f4f3e9;background-image:linear-gradient(125deg,#fff7db66 25%,transparent 25% 75%,#fff7db66 75%),linear-gradient(35deg,#d6e9dd55 25%,transparent 25% 75%,#d6e9dd55 75%);background-size:180px 180px}
.quality-world{background:linear-gradient(150deg,#e9f2e1 0%,#faf3dc 57%,#e4f0eb 100%);filter:none}
h1,h2,h3,h4,.c-btn,.c-lbl{font-weight:700;letter-spacing:.015em}
.c-btn{border:1.5px solid #a6c3c6;border-radius:12px;background:#fffef8;box-shadow:0 3px 0 #c2d4d4;color:#20495b;font-family:var(--font-body);font-weight:700}
.c-btn--primary{background:linear-gradient(#ffe47c,#ffca43);color:#403411;border-color:#d29b2f;box-shadow:0 3px 0 #b88425,0 5px 12px #84552118;text-shadow:0 1px #fff7}
.c-btn--secondary{background:#0d7791;color:white;border-color:#086078;box-shadow:0 3px 0 #084f66}
.c-btn--ghost{background:transparent;border-color:transparent;color:#126b7a;box-shadow:none}
.c-btn--danger{background:#bb4551;color:#fff;border-color:#9d3040;box-shadow:0 3px 0 #892a38;text-shadow:none}
.c-btn[disabled],.c-btn[aria-disabled=true]{background:#e9edeb;border-color:#c7d2ce;color:#6b7d79;box-shadow:none;text-shadow:none}
@media(hover:hover){.c-btn--secondary:hover{background:#09647d}.c-btn--primary:hover{background:#ffdf70}}
.c-btn:active{transform:translateY(2px);box-shadow:0 1px 0 #23465366}
.c-card{border-color:#c4d8cf;background:#fffef8;box-shadow:0 5px 0 #e0e8dc,0 8px 20px #1e4f6010}
.c-phead{background:#e8f3d6 url('../ui/design4-book.webp') center/cover no-repeat;border:2px solid #fff;border-radius:18px;box-shadow:0 4px 0 #b7cfae}
.c-phead__ic{background:#fff9;border-radius:50%;color:#286e48}
.c-phead__h{color:#174d43;font-family:var(--font-body);font-weight:700}
.c-sheet__panel{border:2px solid #e7ecde;border-radius:24px 24px 0 0;background:#fffdf4;box-shadow:0 12px 48px #092b4566}
.c-sheet__head{background:#0c607d;color:#fff;border-bottom:3px solid #f5cf61}
.c-sheet__head .c-sheet__title,.c-sheet__head .c-sheet__x{color:#fff}
.c-sheet__head .c-sheet__x{background:#ffffff16;border:1px solid #ffffff30;border-radius:50%}
.c-sheet__foot{background:#fff8e5;border-top:1px solid #e4d9b8}
.c-seg{padding:3px;border:1px solid #bfcfc5;border-radius:13px;background:#e9eee4;gap:3px}
.c-seg__btn{border-radius:9px}.c-seg__btn+.c-seg__btn{border-left:0}
.c-seg__btn[aria-checked=true]{background:#167c75;box-shadow:0 2px 0 #0d5b59;color:#fff}
/* Navigation is a consistent illustrated game dock. */
.sh-bar{background:#124b63;border-bottom:2px solid #f7d46a;box-shadow:0 3px 0 #082e4633;color:#fff}
.sh-bar__logo{background:#fff7df;border-radius:8px;height:38px}
.sh-bar__pass,.sh-bar__pass[data-rank="5"]{border:1px solid #e8c876;border-radius:9px;background:#fff2c4;color:#263e48;box-shadow:0 2px 0 #062e46;height:36px}
.sh-bar__rank{font-size:13px;color:#273f48}.sh-bar__num{font-weight:700;font-size:15px}.sh-bar__unit{font-size:11px}.sh-bar__mini{height:5px;background:#d9cfab}.sh-bar__fill{background:#20927d}
.sh-bar__btn,.sh-bar__sound.is-off{color:#f9f5df}.sh-bar__btn:hover{background:#ffffff18}
.sh-nav{background:#123f56;border-color:#ffe081;box-shadow:0 -3px 0 #fff6;border-width:2px}
.sh-nav__ind,.sh-nav__ind[data-pillar]{background:#ffffff18;border-radius:12px}
.sh-nav__btn,.sh-nav__btn[data-pillar]{color:#e3edf0;gap:2px;padding-top:4px}
.sh-nav__btn[aria-current=page],.sh-nav__btn[data-pillar][aria-current=page]{color:#ffdf77}
.sh-nav__ic{width:32px;height:32px;border:1px solid #a4dded;border-radius:10px;background:#e1f4f7;color:#14758a;box-shadow:0 2px 0 #051f3299}
.sh-nav__btn--zukan .sh-nav__ic{background:#e0f2cc;border-color:#b1d38a;color:#4c7d2e}
.sh-nav__btn--gohan .sh-nav__ic{background:#fff0c8;border-color:#e2ba63;color:#a3652a}
.sh-nav__btn--nazo .sh-nav__ic{background:#e2e7ff;border-color:#a6afe2;color:#4153a4}
.sh-nav__btn--dan .sh-nav__ic{background:#fff0bd;border-color:#e5bb53;color:#b37919}
.sh-nav__btn--motto .sh-nav__ic{background:#e3f0e8;border-color:#9ec1aa;color:#3b7d64}
.sh-nav__ic .c-icon{width:24px;height:24px;stroke-width:2.2}.sh-nav__art{width:28px;height:28px}
.sh-nav__btn[aria-current=page] .sh-nav__ic{border:2px solid #ffe28c;transform:translateY(-1px);box-shadow:0 2px 0 #061f33,0 0 0 2px #ffffff1a}
.sh-nav__lb{font-weight:700;font-size:12px;letter-spacing:0}
.sh-nav__dot{background:#ff795a;border-color:#123f56;right:-5px;top:-4px}
.sh-menu .sh-set{border:1px solid #becfbe;border-radius:15px;background:#fffef7;box-shadow:0 4px 0 #e1e6d5;overflow:hidden}
.sh-set__row{border-color:#e2e7d9}.sh-set__row .c-icon{color:#157888}
.sh-onb__card{border:3px solid #fff7df;border-radius:22px;background:#fffdf1;box-shadow:0 8px 0 #173d5266,0 24px 64px #071f5466}
.sh-onb__art{background:radial-gradient(ellipse at 50% 100%,#cbe9d0 0 64%,transparent 65%)}
.sh-onb__h{color:#0b617e}.sh-onb__dot.is-on{background:#0b7797}
.sh-onb__skip{background:#e7f0e5;border-color:#baccbd;color:#315f5d}
/* Home: a full-bleed title stage above individual illustrated adventure cards. */
#v-home.hm{--hm-logo:min(55vw,230px);gap:0;padding:4px 0 5px}
.hm-bg{background:#176682}.hm-bg__img{object-position:57% 32%}
.hm-bg::after{background:linear-gradient(180deg,#06395300 15%,#06395300 43%,#0c4e6bba 64%,#123f56f5 100%)}
.hm-stage{padding-top:0;min-height:0;flex:1 1 auto}
.hm-logo{width:min(100%,460px);max-width:100%;filter:drop-shadow(0 3px 0 #ffffffc0) drop-shadow(0 5px 4px #052c4255)}
.hm-logo__img{width:100%;height:auto;max-height:var(--hm-logo)}
.hm-cast{--ch:min(max(0px,100cqh - var(--hm-logo) + 10px),190px);bottom:-3px;z-index:2;filter:drop-shadow(0 2px 0 #fff7)}
.hm-card{flex:none;width:100%;max-width:480px;align-self:center;gap:8px;margin:0;padding:0 0 16px;border:0;border-radius:0;background:transparent;box-shadow:none}
.hm-catch{display:none}
.hm-primary{position:relative;display:flex;align-items:center;justify-content:space-between;min-height:82px;padding:10px 13px;gap:6px;border:2px solid #fff3b8;border-radius:16px;background:#087493 url('../ui/design4-story.webp') center/cover no-repeat;color:#fff;box-shadow:0 4px 0 #073b58,0 6px 12px #042f4444;text-shadow:0 1px 2px #03425f}
.hm-primary::before{content:'';position:absolute;inset:0;border-radius:14px;background:linear-gradient(90deg,#076f8ee6 0%,#076f8ed6 45%,#076f8e00 82%);pointer-events:none}
.hm-primary__copy{position:relative;display:flex;flex-direction:column;align-items:flex-start;min-width:0;gap:4px;text-align:left}
.hm-primary__kicker{font-size:12px;line-height:1.2;color:#ffe593;letter-spacing:.07em}
.hm-primary .c-lbl{font-size:19px;line-height:1.3;font-weight:700;white-space:nowrap;letter-spacing:0}
.hm-primary__go{position:relative;flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#ffdf69;color:#154d67;box-shadow:0 2px 0 #b68e29;text-shadow:none;border:1px solid #fff4ab}
.hm-primary__go .c-icon{width:20px;height:20px}
.hm-daily{gap:5px;margin:0}.hm-daily__h{display:flex;align-items:center;gap:7px;color:#fff3cc;font-size:13px;letter-spacing:.04em;padding-left:2px}
.hm-daily__h::before{content:'';width:17px;height:3px;border-radius:2px;background:#ffcf57}
.hm-daily__list{gap:8px}.hm-daily__btn{overflow:hidden;position:relative;display:flex;flex-direction:column;justify-content:flex-end;gap:0;min-height:92px;padding:0;border:2px solid #fdf3cf;border-radius:13px;background:#fff8dd;box-shadow:0 4px 0 #072e46;color:#fff}
.hm-daily__btn[data-daily=breakfast],.hm-daily__btn[data-daily=gozen],.hm-daily__btn[data-daily=nazo]{background:#fff5d4;border-color:#fff1b5;color:#fff}
.hm-daily__art{position:absolute;inset:0 0 26px;display:block;background-size:auto 110%;background-position:100% 50%;background-repeat:no-repeat;background-color:#ffdf90}
.hm-daily__btn[data-daily=breakfast] .hm-daily__art{background-image:url('../ui/design4-breakfast.webp')}
.hm-daily__btn[data-daily=gozen] .hm-daily__art{background-image:url('../ui/design4-food.webp');background-size:auto 130%;background-position:70% 72%}
.hm-daily__btn[data-daily=nazo] .hm-daily__art{background-image:url('../ui/design4-mystery.webp');background-position:100% 45%;background-color:#d9e6ff}
.hm-daily__ic{position:absolute;inset:5px auto auto 5px;width:24px;height:24px;z-index:1;display:grid;place-items:center;border-radius:50%;background:#fffce4;border:1px solid #efd380;color:#7e5826;box-shadow:0 1px 3px #183a4733}
.hm-daily__ic>.c-icon,.hm-daily__ic>img{width:17px;height:17px}
.hm-daily__lb{position:relative;z-index:1;display:block;width:100%;padding:7px 1px 6px;background:#ac6229;font-size:14px;line-height:1;white-space:nowrap}
.hm-daily__btn[data-daily=gozen] .hm-daily__lb{background:#327b58}.hm-daily__btn[data-daily=nazo] .hm-daily__lb{background:#405ba1}
.hm-daily__btn[data-done='1'] .hm-daily__lb{background:#316849}
.hm-daily__ok{width:21px;height:21px;right:-4px;top:-4px;border-width:2px}.hm-daily__dot{right:-3px;top:-3px;width:8px;height:8px;border-width:1px}
.hm-tools{min-height:38px;margin:0;border:0;gap:5px}
.hm-tools .hm-opening,.hm-tools .hm-more{min-height:38px;flex:1 1 0;padding:0 3px;border:1px solid #d7edec55;border-radius:8px;background:#073a5599;color:#fff8e4;font-size:12px;gap:3px}
.hm-tools .hm-opening .c-icon,.hm-tools .hm-more .c-icon{width:12px;height:12px}
.hm-updated{bottom:0;right:2px;color:#c4dbdf;font-size:10px;line-height:13px}
@media(hover:hover){.hm-primary:hover{background:#087493 url('../ui/design4-story.webp') center/cover no-repeat;filter:brightness(1.08)}.hm-tools .hm-opening:hover,.hm-tools .hm-more:hover{background:#0b526a}.hm-daily__btn:hover{filter:brightness(1.06)}}
@media(max-height:699px) and (orientation:portrait){#v-home.hm{--hm-logo:min(54vw,190px);padding-top:2px}.hm-card{gap:7px;padding-top:0}.hm-primary{min-height:74px}.hm-primary .c-lbl{font-size:18px}.hm-daily__btn{min-height:82px}.hm-cast{--ch:min(max(0px,100cqh - var(--hm-logo) + 8px),140px)}}
@media(max-width:359px){#v-home.hm{--hm-logo:154px}.hm-primary{padding:9px 9px;min-height:70px}.hm-primary .c-lbl{font-size:16px}.hm-primary__kicker{font-size:11px}.hm-primary__go{width:29px;height:29px}.hm-card{gap:6px}.hm-daily__btn{min-height:74px}.hm-tools .hm-opening,.hm-tools .hm-more{font-size:11px;padding:0 2px}.hm-tools .c-icon{display:none}.hm-daily__list{gap:6px}}
@media(min-width:600px) and (min-height:500px){#v-home.hm{--hm-logo:250px}.hm-cast{--ch:min(max(0px,100cqh - var(--hm-logo) + 10px),230px)}}
@media(orientation:landscape) and (max-height:499px){
 #v-home.hm{--hm-logo:clamp(105px,29vw,165px);flex-direction:row;gap:14px;padding:3px 0 5px}
 .hm-stage{height:100%;flex:1 1 42%;margin:0}.hm-cast{--ch:min(max(0px,100cqh - var(--hm-logo) + 8px),150px)}
 .hm-card{flex:1 1 58%;max-width:440px;gap:5px;padding:0 0 14px}.hm-primary{min-height:68px;padding:8px 10px}.hm-primary .c-lbl{font-size:16px}.hm-primary__kicker{font-size:11px}.hm-primary__go{width:28px;height:28px}
 .hm-daily{gap:4px}.hm-daily__h{font-size:12px}.hm-daily__btn{min-height:72px}.hm-daily__lb{font-size:13px;padding:6px 0}.hm-daily__art{bottom:24px}.hm-daily__ic{width:22px;height:22px}.hm-daily__ic>.c-icon,.hm-daily__ic>img{width:16px;height:16px}
 .hm-tools{min-height:35px}.hm-tools .hm-opening,.hm-tools .hm-more{min-height:35px;font-size:11px;padding:0 2px}.hm-tools .c-icon{display:none}
 .sh-nav__ic{width:27px;height:27px;border-radius:8px}.sh-nav__ic .c-icon{width:21px;height:21px}.sh-nav__art{width:23px;height:23px}
}
@media(min-width:900px) and (min-height:500px){
 #v-home.hm{--hm-logo:310px;flex-direction:row;align-items:center;gap:36px;padding:12px 0 20px}.hm-stage{height:100%;flex:1 1 54%;padding-top:10px;max-width:580px}.hm-logo{max-width:540px}.hm-cast{--ch:min(max(0px,100cqh - 305px),300px)}
 .hm-card{flex:0 1 430px;max-width:460px;gap:14px;padding:0 0 20px}.hm-primary{min-height:112px;padding:18px 20px;border-radius:20px}.hm-primary__kicker{font-size:14px}.hm-primary .c-lbl{font-size:23px}.hm-primary__go{width:42px;height:42px}.hm-primary__go .c-icon{width:23px;height:23px}
 .hm-daily{gap:8px}.hm-daily__h{font-size:15px}.hm-daily__btn{min-height:126px;border-radius:16px}.hm-daily__art{bottom:33px}.hm-daily__lb{font-size:16px;padding:9px 0}.hm-daily__ic{width:30px;height:30px;top:7px;left:7px}.hm-daily__ic>.c-icon,.hm-daily__ic>img{width:21px;height:21px}.hm-tools .hm-opening,.hm-tools .hm-more{min-height:44px;font-size:13px}.hm-updated{font-size:11px}
 .hm-bg::after{background:linear-gradient(90deg,#06395300 30%,#06395344 55%,#0c4e6bd9 100%),linear-gradient(0deg,#103e5677,transparent 65%)}
 .sh-nav__btn{gap:5px}.sh-nav__ic{width:36px;height:36px}.sh-nav__ic .c-icon{width:26px;height:26px}.sh-nav__art{width:30px;height:30px}
}
@media(prefers-reduced-motion:reduce){.hm-primary,.hm-daily__btn{transition:none}}

/* Keep supporting controls as readable and tappable as the main actions. */
.sh-bar__logo{height:44px}
.hm-tools,.hm-tools .hm-opening,.hm-tools .hm-more{min-height:44px}
.hm-tools .hm-opening,.hm-tools .hm-more{font-size:12px}
.hm-updated{font-size:12px;line-height:14px}
.hm-card{padding-bottom:18px}
