.jp-portal { color: #183653; --ink: #183653; --muted: #52667a; }
.portal-header { width: min(1400px, calc(100% - 40px)); margin: 0 auto; min-height: 78px; display: flex; align-items: center; gap: 24px; padding: 12px 26px; border-radius: 0 0 28px 28px; background: rgba(255,255,255,.94); }
.portal-brand { display: flex; flex-shrink: 0; gap: 5px; font-size: clamp(22px,2.4vw,34px); font-weight: 1000; letter-spacing: -1px; text-decoration: none; }
.portal-brand span:nth-child(1) { color: #0875d4; }.portal-brand span:nth-child(2) { color: #009a83; }.portal-brand span:nth-child(3) { color: #ff8a00; }
.portal-nav { display: flex; justify-content: center; flex: 1; gap: 25px; }
.portal-nav a { padding: 12px 0; font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.portal-nav a:hover, .portal-nav [aria-current] { color: #0083ef; }.portal-nav [aria-current] { border-bottom: 3px solid #0083ef; }
.portal-language { font-size: 15px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.portal-search-link { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; font-size: 34px; text-decoration: none; }
.portal-main { width: min(1280px, calc(100% - 48px)); padding: 34px 0 24px; }
.portal-hero { text-align: center; }.portal-tagline { margin: 0; font-size: clamp(20px,2.6vw,34px); font-weight: 900; letter-spacing: .06em; text-shadow: 0 2px 0 #fff,0 0 14px #fff; }
.jp-portal .jp-title { width: min(850px,85%); margin: 0 auto; }
.portal-subtitle { margin: 0 0 26px; font-size: clamp(15px,1.8vw,23px); font-weight: 800; text-shadow: 0 2px 0 #fff,0 0 12px #fff; }
.portal-search { display: flex; align-items: center; gap: 14px; width: min(760px,100%); margin: 0 auto; padding: 7px 8px 7px 24px; border: 2px solid white; border-radius: 999px; background: rgba(255,255,255,.97); box-shadow: 0 6px 18px #82532724; }
.portal-search > span { font-size: 37px; line-height: 1; }.portal-search input { min-width: 0; flex: 1; border: 0; padding: 12px 0; background: transparent; font: inherit; color: var(--ink); outline-offset: 4px; }
.portal-search button { border: 0; border-radius: 999px; padding: 14px 34px; background: #008aff; color: white; font: inherit; font-size: 18px; font-weight: 800; cursor: pointer; }
.portal-categories { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 14px; margin: 34px 0; scroll-margin-top: 20px; }
.portal-categories button { min-width: 0; padding: 4px; border: 0; border-radius: 24px; background: rgba(255,255,255,.96); color: var(--ink); box-shadow: 0 7px 14px #835a2824; font: inherit; font-weight: 900; cursor: pointer; transition: transform .18s,box-shadow .18s; }
.portal-categories button:hover { transform: translateY(-5px); }.portal-categories [aria-pressed="true"] { box-shadow: 0 0 0 3px #008aff,0 7px 14px #835a2824; }
.portal-categories button:disabled { color: #777; background: #e6e6e6; box-shadow: none; cursor: not-allowed; opacity: .72; }
.portal-categories button:disabled:hover { transform: none; }
.portal-categories button:disabled .category-art { color: #666; background: #c9c9c9; filter: grayscale(1); text-shadow: none; }
.category-art { display: flex; align-items: center; justify-content: center; height: clamp(100px,10vw,145px); border-radius: 20px 20px 15px 15px; font-size: clamp(44px,5vw,68px); text-shadow: 0 5px 3px #00000017; }
.portal-categories button > span:last-child { display: block; padding: 15px 2px; font-size: clamp(12px,1.25vw,17px); white-space: nowrap; }
.brain { background: linear-gradient(135deg,#ffdfd7,#ffb8ba); }.board { background: linear-gradient(135deg,#caf2dc,#8fdfbc); font-size: 32px; letter-spacing: -14px; padding-right: 14px; }.music { background: linear-gradient(135deg,#e8daff,#c9b2ff); color: #8d38eb; font-size: 84px; }.puzzle { background: linear-gradient(135deg,#fff0b8,#ffd66f); }.tools { background: linear-gradient(135deg,#c1f3ff,#71dbf4); }.fortune { background: linear-gradient(135deg,#ffdde5,#ffadc5); }.learning { background: linear-gradient(135deg,#c6f4e6,#8ee0c2); color: #008eff; font-weight: 1000; font-size: 42px; }
.portal-shortcuts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; margin-bottom: 38px; }
.portal-shortcuts a { display: flex; align-items: center; gap: 18px; padding: 21px 24px; border: 1px solid white; border-radius: 26px; background: rgba(255,250,244,.94); text-decoration: none; box-shadow: 0 6px 15px #835a2814; }
.portal-shortcuts a > span { font-size: 43px; }.portal-shortcuts strong { display: block; font-size: clamp(17px,1.7vw,23px); }.portal-shortcuts small { display: block; margin-top: 4px; font-size: 13px; }.portal-shortcuts b { margin-left: auto; color: #6a8190; font-size: 30px; }
.portal-apps { padding: 28px; border: 1px solid #fff; border-radius: 26px; background: rgba(255,255,255,.94); scroll-margin-top: 20px; }.apps-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }.apps-heading h2 { margin: 0; font-size: 25px; }.apps-heading button { padding: 9px 14px; border: 1px solid #bcdce8; border-radius: 999px; background: white; color: #006abc; font: inherit; cursor: pointer; }
#appNotice { margin: 10px 0 22px; color: var(--muted); }.portal-app-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.portal-app-grid article { position: relative; overflow: hidden; border: 1px solid #e2e9ec; border-radius: 18px; background: #fff; }.portal-app-grid article[hidden] { display: none; }.portal-app-grid article > a { display: block; height: 100%; padding-bottom: 18px; text-decoration: none; }.portal-app-grid img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; }.portal-app-grid h3 { margin: 18px 18px 8px; }.portal-app-grid p { margin: 0 18px 18px; font-size: 14px; line-height: 1.7; color: var(--muted); }.portal-app-grid a > span { margin: 0 18px; color: #007acd; font-weight: 800; }
.favorite-button { position: absolute; right: 10px; top: 10px; width: 42px; height: 42px; border: 1px solid #fff; border-radius: 50%; background: #fffffff0; color: #a23856; font-size: 25px; cursor: pointer; }.favorite-button[aria-pressed="true"] { color: #e64368; }
.portal-footer { width: fit-content; margin: 24px auto 0; padding: 10px 20px; border-radius: 999px; background: #ffffffe6; font-size: 13px; }.jp-portal a:focus-visible,.jp-portal button:focus-visible { outline: 3px solid #007de0; outline-offset: 4px; }
@media (max-width:1120px) { .portal-header { flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; }.portal-nav { order: 4; flex-basis: 100%; gap: 24px; }.portal-language { margin-left: auto; }.portal-shortcuts a { padding: 18px 14px; gap: 10px; } }
@media (max-width:760px) { .portal-header { width: calc(100% - 20px); padding: 12px 16px 0; }.portal-nav { justify-content: flex-start; overflow-x: auto; gap: 20px; }.portal-nav a { font-size: 12px; }.portal-main { width: calc(100% - 28px); padding-top: 28px; }.jp-portal .jp-title { width: 100%; margin: 10px auto; }.portal-tagline { font-size: 20px; letter-spacing: 0; }.portal-search { gap: 8px; padding-left: 14px; }.portal-search input { font-size: 13px; }.portal-search button { padding: 12px 18px; font-size: 15px; }.portal-categories { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin: 26px 0; }.category-art { height: 95px; font-size: 44px; }.board { font-size: 24px; }.music { font-size: 65px; }.learning { font-size: 28px; }.portal-categories button { border-radius: 18px; }.portal-categories button > span:last-child { white-space: normal; font-size: 12px; padding: 10px 0; }.portal-shortcuts { grid-template-columns: 1fr; gap: 10px; margin-bottom: 26px; }.portal-shortcuts a { padding: 14px 20px; }.portal-shortcuts strong { font-size: 19px; }.portal-apps { padding: 20px 16px; }.portal-app-grid { grid-template-columns: 1fr; }.apps-heading h2 { font-size: 21px; } }
@media (prefers-reduced-motion:reduce) { .portal-categories button { transition: none; } }
