/* Page gestures only: native text-entry controls and OS accessibility remain. */
html.mobile-input-guard,html.mobile-input-guard body{touch-action:pan-x pan-y}
.mobile-input-guard body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.mobile-input-guard img{-webkit-user-drag:none;user-drag:none}
/* The recovery buttons must stay immediate taps, without native double-tap zoom. */
.mobile-input-guard .record-save-notice,.mobile-input-guard .record-save-notice button{touch-action:manipulation}
.mobile-input-guard input,.mobile-input-guard textarea,.mobile-input-guard [contenteditable]:not([contenteditable="false"]){-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}

.license-page{max-width:880px;margin:auto;padding:32px 24px 48px;font:15px/1.9 'Yu Gothic',sans-serif}
.license-page h1{font-family:'Yu Mincho',serif;font-size:32px;margin:12px 0 20px}.license-page h2{font-size:21px;margin:0 0 12px}.license-page a{color:#305775;text-underline-offset:3px}
.license-page section{background:#fffaf4;border:1px solid #dfd0bf;border-radius:12px;padding:20px 24px;margin:18px 0}.license-page ul{padding-left:24px}.license-page li{margin:8px 0}
.license-back{display:inline-flex;align-items:center;gap:8px;padding:9px 18px;min-height:44px;border:1px solid #cbb99f;border-radius:10px;background:#fffcf6;color:#29445f;font:700 15px/1.4 'Yu Gothic',sans-serif;box-shadow:0 2px 5px #6b4a2210;cursor:pointer}.license-back::before{content:'←';font-size:18px}
.license-document{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.75 monospace;background:#fffaf4;border:1px solid #dfd0bf;border-radius:12px;padding:18px}
html.license-view-open,html.license-view-open body{height:auto!important;min-height:100%;min-width:0;overflow-y:auto;overscroll-behavior:auto}
.license-view-open body>:not(#shogiya-license-view){display:none!important}
#shogiya-license-view{display:block;min-height:100dvh;background:#f4e8d6}
@media(max-width:599px){.license-page{padding:18px 16px max(24px,env(safe-area-inset-bottom));font-size:14px}.license-page h1{font-size:27px}.license-page section{padding:16px}}

/* Standalone handheld app only; keep board taps and vertical panel scrolling. */
html.mobile-pwa-navigation,html.mobile-pwa-navigation body{overscroll-behavior-x:none;touch-action:pan-y}
.mobile-pwa-navigation input,.mobile-pwa-navigation textarea,.mobile-pwa-navigation select{touch-action:manipulation}


/* License UI only: the game layout and controls are unchanged. */
.license-compact{color:#28445c}.license-compact h1{margin:18px 0 8px}.license-compact h2,.license-compact h3{font-family:'Yu Mincho','Hiragino Mincho ProN',serif;line-height:1.5}.license-compact p{margin:0 0 14px}.license-compact p:last-child{margin-bottom:0}.license-compact .license-lead{color:#5e6c74}.license-compact section{padding:26px 28px;margin:24px 0 21px}.license-compact h2{font-size:23px;margin:0 0 20px}.license-software{padding:18px 0;border-top:1px solid #dfd0bf}.license-software:first-of-type{padding-top:0;border-top:0}.license-software h3{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 13px;font-size:18px;margin:0 0 8px}.license-type{font:500 12px/1.5 'Yu Gothic',sans-serif;color:#5b655b;background:#edf0e8;padding:2px 8px;border-radius:5px}.license-links{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:13px}.license-links a{display:inline-flex;align-items:center;min-height:32px}.license-compact .license-runtime{font-size:13px;color:#71695f;margin-top:0;padding-top:16px;border-top:1px solid #dfd0bf}.license-compact .license-scope{font-size:13px;color:#71695f;margin:24px 0}.license-detail-heading{font-size:21px}.license-legal-text{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;margin:0;font:12px/1.85 ui-monospace,Consolas,monospace;color:#28445c}.license-full{margin-top:14px}.license-full summary{cursor:pointer;font-weight:700;min-height:44px;padding:8px 0}.license-full[open] summary{margin-bottom:15px}.license-compact a:focus-visible,.license-compact summary:focus-visible{outline:3px solid #b82d49;outline-offset:4px}
@media(max-width:599px){.license-compact section{padding:21px 19px;margin:20px 0 17px}.license-compact h2{font-size:21px;margin-bottom:17px}.license-software h3{font-size:17px}.license-links{gap:9px 15px}.license-compact .license-scope{font-size:12px}}

.license-page [hidden]{display:none!important}

/* License credits and source status only; game typography/layout is untouched. */
.license-credit{display:grid;grid-template-columns:130px minmax(0,1fr);gap:14px 24px;align-items:center}.license-credit-portrait{width:110px;height:170px;object-fit:contain;grid-row:1/3;justify-self:center}.license-credit-person h3{font:20px/1.6 'Yu Mincho',serif;margin:0 0 12px}.license-credit-person dl{display:flex;gap:12px 20px;flex-wrap:wrap;margin:0}.license-credit-person dt{color:#71695f}.license-credit-person dd{margin:0;font-weight:700}.license-credit .license-credit-thanks{grid-column:2;margin:0}.source-fallback{margin:14px 0;padding:14px 16px;border:1px solid #cbb99f;border-radius:8px;background:#fff6e5;font-size:13px;line-height:1.8}.source-fallback p{margin:0 0 8px}.source-download-warning{color:#74472b}.license-page a[aria-busy="true"]{cursor:progress}.license-page a[aria-disabled="true"]{cursor:wait}
@media(max-width:599px){.license-credit{grid-template-columns:74px minmax(0,1fr);gap:14px}.license-credit-portrait{width:74px;height:120px;grid-row:auto}.license-credit-person h3{font-size:17px;margin-bottom:8px}.license-credit-person dl{gap:4px 10px}.license-credit .license-credit-thanks{grid-column:1/-1}.source-fallback{padding:12px;font-size:13px}}
