/* RA0 Edition: monochrome retro personal homepage. Home-only stylesheet. */
html{background:#f4f4f4!important}
body{background:#eee!important;color:#505050!important;font:12px/1.55 "Yu Gothic","Hiragino Kaku Gothic ProN","Meiryo","Malgun Gothic",sans-serif!important;min-width:0!important;margin:0!important}
#wrapper{position:relative!important;inset:auto!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;width:100%!important;height:auto!important;min-height:100vh!important;max-height:none!important;overflow:visible!important;display:block!important;padding:0!important;margin:0!important}
#container_wr{width:100%!important;max-width:none!important;min-width:0!important;max-height:none!important;overflow:visible!important;display:block!important;margin:0 auto!important;padding:0!important;background:transparent!important}
#footer{display:none!important}
.rm-page,.rm-page *{box-sizing:border-box}
.rm-page{max-width:976px;width:calc(100% - 30px);margin:0 auto;padding:15px 0 45px;font-size:12px;color:#555;line-height:1.6}
.rm-page a{color:#4c4c4c;text-decoration:none}
.rm-page a:hover{text-decoration:underline;color:#222}
.rm-frame{border:1px solid #c8c8c8;border-radius:5px;background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.075);overflow:hidden}
.rm-hero{height:219px;padding:0;background:#fff;display:block;cursor:pointer}
.rm-hero img{width:100%;height:100%;display:block;object-fit:cover;object-position:center 45%}
.rm-ticker{height:39px;display:flex;align-items:center;padding:0 14px;margin:13px 0 15px;white-space:nowrap}
.rm-ticker-window{width:100%;overflow:hidden;min-height:20px}
.rm-ticker-track{display:flex;width:max-content;animation:rm-flow var(--rm-duration,24s) linear infinite;align-items:center}
.rm-ticker-track span{display:inline-block;padding:0 5rem;flex-shrink:0;color:#656565}
.rm-ticker:hover .rm-ticker-track{animation-play-state:paused}
@keyframes rm-flow{0%{transform:translateX(0)}100%{transform:translateX(calc(-1 * var(--rm-unit,300px)))}}
.rm-layout{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:14px;align-items:start}
.rm-main{padding:12px;min-height:438px;display:block;min-width:0;overflow:visible}
.rm-home-content{display:grid;gap:11px}
.rm-home-content[hidden],.rm-board-content[hidden]{display:none!important}
.rm-board-content{min-width:0;width:100%;background:#fff}
#rm-board-frame{display:block;border:0;width:100%;height:680px;min-height:300px;background:transparent;overflow:visible}
.rm-inner{border:1px solid #ddd;border-radius:4px;background:#fff}
.rm-intro{padding:10px 11px;min-height:109px;line-height:1.35;white-space:normal;color:#555}
.rm-empty-intro{color:#9a9a9a}
.rm-art{min-height:278px;display:flex;align-items:center;justify-content:flex-end;overflow:hidden;padding:7px;background:#fff}
.rm-art-empty{background:#fff}
.rm-art img{width:95%;max-height:293px;object-fit:contain;object-position:right center}
.rm-recent{padding:0 2px 2px}
.rm-post-list{display:grid}
.rm-post-row{display:grid;grid-template-columns:43px minmax(0,1fr) auto;gap:10px;align-items:center;border-bottom:1px dotted #d2d2d2;padding:8px 3px;font-size:11px}
.rm-post-row time{color:#999;font-size:10px}
.rm-post-row a{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.rm-post-category{color:#8a8a8a;font-size:10px}
.rm-post-row[hidden]{display:none!important}
.rm-no-posts,.rm-search-empty{padding:11px;color:#999;font-size:11px}
.rm-side{display:grid;gap:12px;align-content:start}
.rm-widget{padding:0}
.rm-heading{height:25px;background:linear-gradient(180deg,#909090 0%,#777 28%,#656565 92%,#606060 100%);color:#fff!important;font-family:Arial,"Meiryo",sans-serif!important;font-size:11px!important;line-height:24px!important;font-weight:bold!important;padding:0 7px!important;margin:0!important;border:0!important;text-shadow:0 1px 1px #222;letter-spacing:0!important}
.rm-widget-content{padding:10px;font-size:11px}
.rm-profile-top{display:grid;grid-template-columns:76px minmax(0,1fr);gap:9px;align-items:start}
.rm-profile-top img,.rm-profile-image-empty{width:76px;height:76px;object-fit:cover;border:1px solid #c9c9c9;padding:3px;background:white}
.rm-profile-info{min-width:0}
.rm-profile-info strong{font-weight:bold;color:#4b4b4b;font-size:11px;overflow-wrap:anywhere}
.rm-profile-info p{margin:3px 0 0;color:#686868;line-height:1.5;overflow-wrap:anywhere}
.rm-profile-more{margin-top:4px;text-align:right}
.rm-profile-more summary{list-style:none;cursor:pointer;display:inline-block;color:#626262;border:0;background:none;font-size:10px;text-decoration:underline;text-decoration-style:dotted}
.rm-profile-more summary::-webkit-details-marker{display:none}
.rm-profile-more summary:hover{color:#333}
.rm-profile-more[open]{text-align:left}
.rm-profile-more[open] summary{display:block;text-align:right}
.rm-more-content{margin-top:9px;border-top:1px dotted #ccc;padding:10px 2px 3px;color:#666;line-height:1.75;white-space:normal;overflow-wrap:anywhere}
.rm-more-content p{margin:0}
.rm-categories{display:grid;padding:5px 9px}
.rm-categories a{display:block;padding:6px 4px;border-bottom:1px solid #e2e2e2;font-size:11px;color:#575757;overflow-wrap:anywhere}
.rm-categories > a:last-child,.rm-categories > .rm-menu-group:last-child,.rm-categories > .rm-menu-label:last-child{border-bottom:0}
.rm-categories .rm-menu-label,.rm-categories .rm-menu-group > summary{display:block;padding:6px 4px;border-bottom:1px solid #e2e2e2;font-size:11px;color:#575757;overflow-wrap:anywhere}
.rm-menu-group summary{cursor:pointer;list-style:none}
.rm-menu-group summary::-webkit-details-marker{display:none}
.rm-menu-group summary::after{content:'+';float:right;color:#999}
.rm-menu-group[open] summary::after{content:'−'}
.rm-menu-sub{padding:1px 0 4px 12px;background:#fafafa}
.rm-menu-sub a{font-size:11px;padding:5px 4px}
.rm-menu-divider{border:0;border-top:1px dotted #ddd;margin:6px 4px}
.rm-categories a:hover{background:#f2f2f2;text-decoration:none}
.rm-no-categories{color:#aaa;padding:4px}
.rm-banner-list{display:grid;gap:7px;justify-items:stretch;padding:9px 10px}
.rm-banner-list img{width:100%;height:auto;aspect-ratio:5/1;object-fit:contain;display:block;border:1px solid #e4e4e4;background:#fff}
.rm-banner-list a{display:block;width:100%}
.rm-banner-list:empty{min-height:50px}
.rm-banner-list a:hover img{outline:1px solid #666}
.rm-search-widget .rm-widget-content{padding:8px}
#rm-filter-form{display:flex;gap:5px}
#rm-filter-input{width:100%;min-width:0;flex:1;border:1px solid #cfcfcf;background:#fff;color:#505050;font-size:11px;padding:5px 7px;height:29px;border-radius:1px}
#rm-filter-form button{border:1px solid #c8c8c8;background:linear-gradient(#fdfdfd,#ececec);color:#555;font-size:16px;line-height:1;width:30px;cursor:pointer;border-radius:2px;padding:0}
.rm-counter-counts{display:flex;justify-content:space-between;gap:9px;align-items:center;color:#777;font:10px Arial,sans-serif}
.rm-counter-counts span{display:flex;gap:6px;align-items:center}
.rm-counter-counts strong{font-weight:normal;color:#333}
.rm-sr{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}
@media(max-width:780px){.rm-page{width:calc(100% - 24px)}.rm-hero{height:180px}.rm-layout{grid-template-columns:minmax(0,1fr) 210px;gap:10px}.rm-profile-top{grid-template-columns:65px minmax(0,1fr)}.rm-profile-top img,.rm-profile-image-empty{width:65px;height:65px}}
@media(max-width:630px){.rm-page{padding-top:10px}.rm-layout{display:flex;flex-direction:column}.rm-main,.rm-side{width:100%}.rm-side{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.rm-side .rm-widget{min-width:0}.rm-side .rm-search-widget{grid-column:auto}.rm-hero{height:165px}.rm-art{min-height:190px}.rm-art-empty{background:#fff}
.rm-art img{max-height:235px}}
@media(max-width:390px){.rm-side{grid-template-columns:1fr}.rm-hero{height:142px}.rm-post-row{grid-template-columns:42px minmax(0,1fr)}.rm-post-category{display:none}}
@media(prefers-reduced-motion:reduce){.rm-ticker-track{animation:none!important}}

/* v3: site shell stays visible while board changes in the central iframe. */

/* v4: banner image fills most of right column; priorities <100 / >=100 */
.rm-banner-list .rm-banner-divider{height:1px;width:100%;border:0;background:#bcbcbc;margin:6px 0}
/* v4: flat wide music bar below the changing board/home content */
.rm-music{min-height:41px;margin-top:12px;padding:6px 11px;display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #cfcfcf;border-radius:3px;background:linear-gradient(#fff,#f6f6f6);color:#666}
.rm-music-name{font:11px Arial,sans-serif;letter-spacing:.7px}
.rm-music-buttons{display:flex;gap:2px;align-items:center;margin-left:auto}
.rm-music-buttons button{width:36px;height:25px;background:transparent;border:0;border-radius:2px;color:#525252;cursor:pointer;font-size:11px;padding:0;letter-spacing:-2px}
.rm-music-buttons button[data-rm-bgm="play"]{font-size:16px;letter-spacing:0}
.rm-music-buttons button:hover:not(:disabled){background:#e8e8e8}
.rm-music-buttons button:disabled{opacity:.35;cursor:default}
.rm-music-status{font-size:10px;color:#999}
.rm-music-status:empty{display:none}
@media(max-width:630px){.rm-music{margin-top:10px}}


/* ━━ v5: fixed-size inner board scroller, independent BGM row ━━ */
.rm-center{display:flex;flex-direction:column;min-width:0;gap:12px}
.rm-main{margin:0;overflow:hidden;min-height:0}
.rm-board-content{height:min(680px,68vh);min-height:390px;overflow:hidden;contain:layout}
#rm-board-frame{display:block;width:100%;height:100%!important;min-height:0!important;max-height:100%!important;border:0;overflow:auto!important}
.rm-music{margin:0;min-width:0;min-height:47px;display:flex;gap:10px;padding:8px 11px;background:linear-gradient(#fff,#f6f6f6)}
.rm-music-name{flex:0 0 auto;color:#666}
.rm-music-title{flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#656565}
.rm-music-buttons{flex:0 0 auto;margin-left:0}
.rm-music-status{display:none}
@media(max-width:630px){.rm-center{width:100%}.rm-board-content{height:min(610px,64vh);min-height:330px}}

/* ━━ layered banner: site background, live month, user foreground art ━━ */
.rm-hero-layered{position:relative;isolation:isolate;overflow:hidden}
.rm-hero-layered .rm-hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;z-index:0}
.rm-hero-layered .rm-hero-fore{position:absolute;left:0;bottom:0;max-width:var(--rm-fore-width,70%);width:var(--rm-fore-width,70%);height:100%;object-fit:contain;object-position:left bottom;z-index:3;pointer-events:none}
.rm-hero-calendar{position:absolute;top:9px;right:17px;z-index:2;width:min(260px,40%);color:var(--rm-cal-color,#fff);text-shadow:0 1px 3px rgba(0,0,0,.35);pointer-events:none;font:11px/1.4 Georgia,'Times New Roman',serif}
.rm-hero-calendar.rm-cal-left{right:auto;left:17px}
.rm-cal-top{display:flex;justify-content:flex-end;gap:10px;align-items:baseline;height:84px;white-space:nowrap}
.rm-cal-month-num{font:76px/.96 Georgia,'Times New Roman',serif}
.rm-cal-month-name{font:italic 16px/1.2 Georgia,serif;text-align:left}
.rm-cal-month-name small{display:block;font:11px Georgia,serif;opacity:.8}
.rm-cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:0;text-align:center;font:11px/1.6 'Courier New',monospace}
.rm-cal-grid b{font-size:8px;border-bottom:1px solid currentColor;margin-bottom:4px;opacity:.9}
.rm-cal-grid span{min-height:16px}
.rm-cal-today{text-decoration:underline;text-underline-offset:2px;font-weight:bold}
@media(max-width:630px){.rm-hero-calendar{width:min(210px,46%);top:6px;right:8px}.rm-cal-top{height:55px}.rm-cal-month-num{font-size:46px}.rm-cal-month-name{font-size:12px}.rm-cal-grid{font-size:9px;line-height:1.4}.rm-cal-grid span{min-height:13px}}

/* ━━ banner: 6 cards visible, overflow inside the panel ━━ */
.rm-banner-list{max-height:calc(6 * 40px + 7 * 7px + 20px);overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#aaa #f7f7f7}
.rm-banner-list img{height:40px;aspect-ratio:auto;object-fit:cover}
.rm-banner-list .rm-banner-divider{flex:none}

/* ━━ true one-sentence ticker ━━ */
.rm-ticker-track{display:block;width:max-content;white-space:nowrap;transform:translateX(var(--rm-ticker-start,900px));animation:rm-single-sentence var(--rm-duration,20s) linear infinite}
.rm-ticker-track span{padding:0 4px;display:block}
@keyframes rm-single-sentence{from{transform:translateX(var(--rm-ticker-start,900px))}to{transform:translateX(var(--rm-ticker-end,-350px))}}

/* ━━ selection blur / selection rectangle / cursor halo / clicks ━━ */
.rm-page ::selection{color:transparent;background:rgba(155,155,155,.42);text-shadow:0 0 7px #555}
.rm-cursor-halo{display:none!important;position:fixed;top:0;left:0;width:16px;height:16px;border:1px solid rgba(88,88,88,.6);border-radius:50%;pointer-events:none;opacity:0;z-index:99997;transform:translate(-50px,-50px);transition:opacity .18s,transform .07s ease-out}
.rm-drag-rect{position:fixed;display:none;border:1px solid rgba(90,90,90,.55);background:rgba(125,125,125,.07);pointer-events:none;z-index:99996;transition:opacity .28s}
.rm-drag-rect.active{display:block}
.rm-click-spark{position:fixed;width:6px;height:6px;border:1px solid rgba(70,70,70,.8);border-radius:50%;pointer-events:none;z-index:99998;transform:translate(-50%,-50%);animation:rm-click-out .45s ease-out forwards}
@keyframes rm-click-out{from{opacity:.95;width:6px;height:6px}to{opacity:0;width:33px;height:33px}}
@media(hover:none),(prefers-reduced-motion:reduce){.rm-cursor-halo,.rm-click-spark,.rm-drag-rect{display:none!important}.rm-ticker-track{animation:none!important;transform:none!important}}

/* v6 – lighter grayscale, dedicated retro music, no cursor ring until click */
.rm-page{color:#595959}
.rm-heading{background:linear-gradient(to bottom,#919191,#777 42%,#666)}
.rm-music{background:#fdfdfd;min-height:42px;padding:7px 12px}
.rm-music-title{padding-left:0}
.rm-cal-top{height:75px}
.rm-cal-month-name{display:none!important}
.rm-hero-calendar{font-family:inherit}
.rm-page img{user-select:none!important;-webkit-user-select:none!important;-webkit-user-drag:none!important;pointer-events:auto}
.rm-background-dragging,.rm-background-dragging *{user-select:none!important;-webkit-user-select:none!important}
.rm-page,.rm-page button,.rm-page input,.rm-page textarea,.rm-page select{font-family:var(--rm-font-family,'Yu Gothic','Meiryo','Malgun Gothic',sans-serif)!important}
.rm-page .rm-heading{font-family:var(--rm-font-family,Arial,sans-serif)!important}

/* v8 – lighter overall grayscale without losing readability. */
html{background:#f7f7f7!important}
body{background:#f4f4f4!important}
.rm-frame{border-color:#d3d3d3;box-shadow:0 2px 4px rgba(0,0,0,.045)}
.rm-heading{background:linear-gradient(180deg,#a5a5a5 0%,#959595 42%,#818181 100%)!important;text-shadow:0 1px 1px rgba(0,0,0,.17)}
.rm-music{background:linear-gradient(#fff,#fafafa);border-color:#d5d5d5}
.rm-menu-sub{background:#fcfcfc}
.rm-categories a:hover{background:#f6f6f6}
/* Hide only the scrollbar track/thumb. Wheel, touch, keyboard and drag-scrolling remain available. */
.rm-banner-list{scrollbar-width:none!important;-ms-overflow-style:none!important;overflow-y:auto!important}
.rm-banner-list::-webkit-scrollbar{width:0!important;height:0!important;display:none!important}
/* Use the selected font across every retro homepage text/control. Do not override icon glyphs. */
.rm-page,.rm-page :is(h1,h2,h3,h4,h5,h6,p,div,span,a,button,input,textarea,select,label,summary,time,strong,small,b,li,td,th,article,section,nav):not(i):not(.fa):not(.fas):not(.far):not(.fab):not([class*="icon-"]):not([class*="fa-"]){font-family:var(--rm-font-family,'Yu Gothic','Meiryo','Malgun Gothic',sans-serif)!important}


/* v9 – 솜사탕처럼 연한 하늘색 개인홈 / soft sky-blue palette */
html{background:#f4faff!important}
body{
  background-color:#f5faff!important;
  background-image:radial-gradient(circle at 14% 18%,rgba(198,229,251,.27) 0,transparent 33%),
     radial-gradient(circle at 88% 75%,rgba(207,234,252,.3) 0,transparent 34%)!important;
  color:#536e82!important;
}
.rm-page{color:#547084}
.rm-page a{color:#4c7a9c}
.rm-page a:hover{color:#2d5b7c}
.rm-frame{
  background:#ffffff; border:1px solid #cddfed; border-radius:7px;
  box-shadow:0 1px 0 rgba(255,255,255,.95),0 2px 9px rgba(130,172,202,.12);
}
.rm-hero{background:linear-gradient(115deg,#e5f4fe,#fafdff 58%,#d9efff)}
.rm-ticker{background:linear-gradient(90deg,#fafdff,#e8f6ff 50%,#fafdff);border-color:#cfe5f5}
.rm-ticker-track span{color:#6289a4}
.rm-heading{
  background:linear-gradient(180deg,#d8efff 0%,#c5e5f8 48%,#add5f0 100%)!important;
  color:#446d8d!important;
  text-shadow:0 1px 0 rgba(255,255,255,.92)!important;
  border-bottom:1px solid #b9d8ed!important;
}
.rm-widget{background:linear-gradient(165deg,#fff 50%,#fcfeff)}
.rm-inner{background:#fff;border:1px solid #d7e7f2;border-radius:5px}
.rm-intro{background:linear-gradient(135deg,#fff,#f7fcff);color:#536f82}
.rm-empty-intro{color:#93a8b8}
.rm-art{background:linear-gradient(155deg,#fff,#fafdff)}
.rm-post-row{border-bottom:1px dotted #d1e1ec}
.rm-post-row time,.rm-post-category{color:#7e9caf}
.rm-categories a,.rm-categories .rm-menu-label,.rm-categories .rm-menu-group>summary{
  color:#57768e;border-color:#e0edf5;
}
.rm-categories a:hover{background:#edf8ff;color:#3e7299}
.rm-menu-sub{background:#f7fcff}
.rm-banner-list img{border:1px solid #dbeaf4;background:#fff}
.rm-banner-list a:hover img{outline:1px solid #a1cce9}
.rm-banner-list .rm-banner-divider{background:#bfdaeb}
.rm-profile-top img,.rm-profile-image-empty{border-color:#ccdfea}
.rm-profile-info strong{color:#466c86}
.rm-profile-info p,.rm-more-content,.rm-profile-more summary{color:#61839a}
.rm-more-content{border-top-color:#d5e6f1}
#rm-filter-input{background:#fbfeff;border-color:#cfdfeb;color:#51738a}
#rm-filter-form button{background:linear-gradient(#fff,#eaf6fe);border-color:#cfdfeb;color:#4b7695}
.rm-counter-counts{color:#66869e}
.rm-counter-counts strong{color:#446b87}
.rm-music{background:linear-gradient(180deg,#fff,#f2faff);border-color:#d1e4f2;color:#527b97}
.rm-music-title{color:#547f9c}
.rm-music-buttons button{color:#527a96}
.rm-music-buttons button:hover:not(:disabled){background:#e9f5fd}
.rm-page ::selection{color:transparent!important;background:rgba(148,200,238,.5)!important;text-shadow:0 0 7px #82b0cd!important}
.rm-drag-rect{border-color:rgba(109,163,207,.6);background:rgba(176,217,246,.12)}
.rm-click-spark{border-color:rgba(93,155,198,.8)}
.rm-page,
.rm-page :is(h1,h2,h3,h4,h5,h6,p,div,span,a,button,input,textarea,select,label,summary,time,strong,small,b,li,td,th,article,section,nav):not(i):not(.fa):not(.fas):not(.far):not(.fab):not([class*="icon-"]):not([class*="fa-"]){
  font-family:var(--rm-font-family,"Yu Gothic","Meiryo","Malgun Gothic",sans-serif)!important;
}
.rm-page .rm-cal-grid,.rm-page .rm-cal-month-num{font-family:Georgia,"Times New Roman",serif!important}

/* PC: no outer page scrolling. Home list, boards and sidebar scroll in their own areas. */
@media (min-width:781px) and (min-height:590px){
 html,body{height:100%!important;min-height:0!important;overflow:hidden!important}
 #wrapper,#container_wr{height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important}
 .rm-page{
   height:100vh;height:100dvh;max-height:100dvh;
   display:grid;grid-template-rows:clamp(105px,20dvh,190px) 34px minmax(0,1fr);
   gap:9px;padding:9px 0;overflow:hidden;
 }
 .rm-hero{height:100%!important;min-height:0}
 .rm-ticker{height:100%!important;min-height:0;margin:0!important}
 .rm-layout{height:100%;min-height:0;overflow:hidden;align-items:stretch}
 .rm-center{display:grid;grid-template-rows:minmax(0,1fr) 41px;min-height:0;height:100%;gap:9px;overflow:hidden}
 .rm-main{height:100%!important;min-height:0!important;overflow:hidden!important;padding:9px}
 .rm-home-content{
    display:grid;grid-template-rows:minmax(50px,.8fr) minmax(75px,1.4fr) minmax(100px,1.6fr);
    gap:8px;height:100%;min-height:0;overflow:hidden;
 }
 .rm-intro{height:100%;min-height:0;overflow-y:auto;overscroll-behavior:contain}
 .rm-art{height:100%;min-height:0!important;max-height:none!important;overflow:hidden;padding:5px}
 .rm-art img{height:100%;max-height:100%;width:100%;object-fit:contain;object-position:right center}
 .rm-recent{min-height:0;height:100%;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c3dff1 transparent}
 .rm-board-content{height:100%!important;min-height:0!important;overflow:hidden}
 #rm-board-frame{height:100%!important;min-height:0!important;max-height:100%!important}
 .rm-side{height:100%;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:none;align-content:start}
 .rm-side::-webkit-scrollbar{width:0;height:0;display:none}
 .rm-music{height:41px;min-height:0;padding:6px 11px}
}
/* On phones and very short screens, natural page scrolling is more usable. */
@media (max-width:780px),(max-height:589px){
 html,body{height:auto!important;min-height:100%!important;overflow-y:auto!important}
 #wrapper,#container_wr{height:auto!important;min-height:100vh!important;max-height:none!important;overflow:visible!important}
 .rm-page{height:auto!important;max-height:none!important;display:block!important;overflow:visible!important}
 .rm-side{overflow:visible}
 .rm-art{min-height:190px}
}

/* ━━ v10: soft sky-blue note and stitched decoration panels ━━
   Inspired by the supplied two-panel reference. Retains existing text/image
   sources, accessibility, controls and the single-screen grid heights. */
.rm-page .rm-intro{
  position:relative;
  border:1px solid #cde4f6;
  border-radius:14px;
  background:linear-gradient(180deg,#deefff 0%,#fafdff 49%,#e5f3ff 100%);
  box-shadow:inset 0 1px 0 #ffffff,0 3px 6px rgba(112,153,185,.13);
  color:#4f6d85;
  padding:13px 17px;
  font-size:12px;
  line-height:1.65;
  overflow-wrap:anywhere;
}
.rm-page .rm-art{
  position:relative;
  isolation:isolate;
  border:1px solid #cfe3f4;
  border-radius:14px;
  background-color:#e6f3ff;
  background-image:
    radial-gradient(ellipse 9px 4px at 13px 12px,rgba(255,255,255,.72) 45%,transparent 49%),
    radial-gradient(ellipse 5px 10px at 19px 23px,rgba(255,255,255,.53) 42%,transparent 47%),
    radial-gradient(ellipse 8px 4px at 33px 13px,rgba(255,255,255,.6) 42%,transparent 48%),
    linear-gradient(155deg,#dcefff 0%,#f4faff 52%,#e4f3ff 100%);
  background-size:54px 41px,54px 41px,54px 41px,auto;
  box-shadow:0 3px 6px rgba(112,153,185,.13);
  padding:18px;
  overflow:hidden;
}
.rm-page .rm-art::before{
  content:"";
  position:absolute;
  inset:12px;
  z-index:0;
  border:2px dashed #cee3f5;
  outline:5px solid rgba(255,255,255,.84);
  outline-offset:0;
  border-radius:8px;
  background:rgba(255,255,255,.9);
  pointer-events:none;
}

.rm-page .rm-art img{
  position:relative;
  z-index:1;
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  padding:14px 6px 8px;
  object-fit:contain;
  object-position:right center;
  pointer-events:auto;
  -webkit-user-drag:none;
  user-select:none;
}
@media (max-width:630px){
  .rm-page .rm-intro{padding:12px 14px;border-radius:12px}
  .rm-page .rm-art{padding:12px;border-radius:12px}
  .rm-page .rm-art::before{inset:9px;outline-width:3px}
}


/* ━━ v11: smaller balanced homepage / fully visible calendar ━━
   Keep the header and both side margins inside one viewport; no clipping
   of the sixth calendar week (notably November 2026). */
.rm-page{max-width:940px;width:calc(100% - 42px)}
.rm-layout{grid-template-columns:minmax(0,1fr) 218px;gap:12px}
.rm-side{gap:10px}
.rm-page .rm-art::after{content:none!important;display:none!important}

/* The calendar's seven rows (weekday labels + up to six weeks) share
   the space left below the month number instead of using fixed row heights. */
.rm-hero-layered{container-type:size}
.rm-hero-calendar,
.rm-hero-calendar.rm-cal-left{
  top:10px;
  bottom:12px;
  height:auto;
  width:min(230px,40%);
  display:grid;
  grid-template-rows:30% minmax(0,1fr);
  align-content:stretch;
  min-height:0;
  line-height:1;
}
.rm-hero-calendar{right:16px}
.rm-hero-calendar.rm-cal-left{left:16px;right:auto}
.rm-cal-top{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  height:100%;
  min-height:0;
  overflow:visible;
  margin:0;
  padding:0 4px 0 0;
}
.rm-cal-month-num{
  font-family:Georgia,'Times New Roman',serif!important;
  font-size:clamp(24px,25cqh,43px);
  line-height:.9;
  font-weight:normal;
}
.rm-cal-grid{
  display:grid;
  grid-template-columns:repeat(7,minmax(0,1fr));
  grid-template-rows:repeat(7,minmax(0,1fr));
  justify-items:center;
  align-items:center;
  width:100%;
  height:100%;
  min-height:0;
  gap:0;
  font-family:Georgia,'Times New Roman',serif!important;
  font-size:clamp(8px,6.3cqh,11px);
  line-height:1;
}
.rm-cal-grid > b,
.rm-cal-grid > span{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:0;
  height:100%;
  padding:0;
  margin:0;
  line-height:1;
  border:0;
}
.rm-cal-grid > b{
  border-bottom:1px solid currentColor;
  font-size:clamp(7px,5.5cqh,9px);
  font-weight:600;
  opacity:.9;
}
.rm-cal-grid .rm-cal-today{text-decoration:underline;text-underline-offset:2px}

@media(min-width:781px) and (min-height:590px){
  .rm-page{
    width:calc(100% - 48px);
    max-width:940px;
    padding:16px 0;
    grid-template-rows:clamp(138px,19dvh,176px) 32px minmax(0,1fr);
    gap:9px;
  }
  .rm-hero{height:100%!important}
  .rm-layout{gap:12px}
}
@media(max-width:780px){
  .rm-page{width:calc(100% - 28px);padding:14px 0 24px}
  .rm-hero{height:170px}
  .rm-layout{grid-template-columns:minmax(0,1fr) 205px;gap:10px}
  .rm-hero-calendar{width:min(212px,43%);right:10px}
  .rm-hero-calendar.rm-cal-left{left:10px}
  .rm-hero-calendar,.rm-hero-calendar.rm-cal-left{top:9px;bottom:11px}
}
@media(max-width:630px){
  .rm-page{width:calc(100% - 24px);padding:12px 0 20px}
  .rm-hero{height:155px}
  .rm-hero-calendar{width:min(205px,47%);right:8px}
  .rm-hero-calendar.rm-cal-left{left:8px}
  .rm-hero-calendar,.rm-hero-calendar.rm-cal-left{top:9px;bottom:11px}
  .rm-page .rm-art{padding:10px}
}
@media(max-width:390px){
  .rm-hero{height:145px}
  .rm-hero-calendar{width:48%;right:6px}
  .rm-hero-calendar.rm-cal-left{left:6px}
  .rm-hero-calendar,.rm-hero-calendar.rm-cal-left{top:7px;bottom:8px}
}

/* ━━ v12: reduce the scale of the ENTIRE homepage, not only the calendar ━━
   On desktop the whole shell is narrower and shorter, with visible breathing
   room above and below. Scrollable content continues to scroll internally. */
.rm-page{max-width:860px}
.rm-layout{grid-template-columns:minmax(0,1fr) 200px;gap:10px}
.rm-side{gap:8px}
.rm-page .rm-art::after{content:none!important;display:none!important} /* no star */
.rm-frame{border-radius:6px}
.rm-heading{height:23px!important;line-height:22px!important;font-size:10.5px!important;padding:0 8px!important}
.rm-widget-content{padding:8px;font-size:10.5px}
.rm-categories{padding:4px 7px}
.rm-categories a,.rm-categories .rm-menu-label,.rm-categories .rm-menu-group > summary{padding:5px 4px;font-size:10.5px}
.rm-banner-list{gap:6px;padding:7px 8px}
.rm-banner-list img{height:36px}
.rm-banner-list{max-height:calc(6 * 36px + 7 * 6px + 16px)}
.rm-profile-top{grid-template-columns:66px minmax(0,1fr);gap:7px}
.rm-profile-top img,.rm-profile-image-empty{width:66px;height:66px}
.rm-main{padding:9px}
.rm-intro{font-size:11.5px!important}
.rm-post-row{padding:6px 3px;gap:7px}
.rm-music{min-height:36px;padding:5px 9px}
.rm-hero-calendar,.rm-hero-calendar.rm-cal-left{top:9px;bottom:10px;width:min(205px,39%)}
.rm-cal-month-num{font-size:clamp(24px,25cqh,39px)}
.rm-cal-grid{font-size:clamp(8px,6cqh,10px)}
.rm-cal-grid>b{font-size:clamp(7px,5.3cqh,9px)}

@media(min-width:781px) and (min-height:590px){
  .rm-page{
    --rm-outside-gap:clamp(18px,3.4dvh,30px);
    width:min(860px,calc(100% - 64px));
    height:calc(100dvh - var(--rm-outside-gap) * 2)!important;
    max-height:calc(100dvh - var(--rm-outside-gap) * 2)!important;
    margin:var(--rm-outside-gap) auto!important;
    padding:0!important;
    display:grid;
    grid-template-rows:clamp(105px,18dvh,148px) 28px minmax(0,1fr);
    gap:8px;
    overflow:hidden!important;
  }
  .rm-hero{height:100%!important;min-height:0}
  .rm-ticker{height:100%!important;min-height:0;margin:0!important;padding:0 11px}
  .rm-layout{min-height:0;height:100%;overflow:hidden}
  .rm-center{grid-template-rows:minmax(0,1fr) 36px;gap:8px;min-height:0}
  .rm-home-content{grid-template-rows:minmax(54px,.85fr) minmax(80px,1.45fr) minmax(95px,1.7fr);gap:7px}
  .rm-page .rm-intro{padding:9px 13px;border-radius:11px}
  .rm-page .rm-art{padding:13px;border-radius:11px}
  .rm-page .rm-art::before{inset:9px;outline-width:3px;border-width:1.5px}
  .rm-page .rm-art img{padding:7px 4px 5px}
  .rm-music{height:36px;min-height:0}
}

/* Narrow screens retain a natural vertical flow, with reduced card dimensions. */
@media(max-width:780px){
  .rm-page{width:calc(100% - 30px);max-width:860px;padding:16px 0 24px}
  .rm-layout{grid-template-columns:minmax(0,1fr) 194px;gap:9px}
  .rm-side{gap:8px}
  .rm-hero{height:155px}
  .rm-hero-calendar{width:min(195px,43%)}
}
@media(max-width:630px){
  .rm-page{width:calc(100% - 24px);padding:14px 0 20px}
  .rm-hero{height:150px}
  .rm-art{min-height:180px}
  .rm-profile-top{grid-template-columns:60px minmax(0,1fr)}
  .rm-profile-top img,.rm-profile-image-empty{width:60px;height:60px}
}

/* v13 – sidebar navigation is not selectable; drag glass clears on release. */
.rm-page .rm-categories,.rm-page .rm-categories *{
  -webkit-user-select:none!important;user-select:none!important;
  -webkit-user-drag:none!important;
}
.rm-page .rm-profile-more summary,.rm-page .rm-heading{
  -webkit-user-select:none;user-select:none;
}
.rm-drag-rect:not(.active){display:none!important;opacity:0!important}
.rm-drag-rect.active{transition:none;}


/* v14 · soft sky-blue "blog waku" accents, in harmony with board skins. */
html,body{background:#f7fbff!important}
.rm-page{color:#526f83}
.rm-frame{
  border:1px solid #c4deec!important;
  box-shadow:0 1px 0 rgba(255,255,255,.96) inset,0 2px 7px rgba(100,146,178,.075)!important;
}
.rm-page .rm-heading{
  background:linear-gradient(180deg,#e5f5ff 0%,#cce8f6 42%,#bedff1 100%)!important;
  color:#547d9a!important;
  text-shadow:0 1px 0 #fff!important;
  border-bottom:1px solid #bcd8e8;
}
.rm-page .rm-widget-content{background:linear-gradient(#fff,#fbfdff)}
.rm-page .rm-categories a,.rm-page .rm-categories .rm-menu-label,.rm-page .rm-categories .rm-menu-group>summary{border-color:#dbeaf2;color:#57748a}
.rm-page .rm-categories a:hover,.rm-page .rm-menu-sub{background:#f0f9ff}
.rm-page .rm-post-row{border-color:#cee5f2}
.rm-page .rm-post-row:hover{background:linear-gradient(90deg,#eef9ff,transparent)}
.rm-page .rm-intro{border-color:#c7e2f2;box-shadow:0 1px 0 #fff inset,0 2px 6px rgba(100,150,188,.12)}
.rm-page .rm-art{border-color:#c9e2f0}
.rm-page .rm-art::before{border-color:#b8dcf1;outline-color:rgba(255,255,255,.94)}
.rm-page .rm-banner-list a:hover img{outline:1px dotted #8ab9d6}
.rm-page .rm-music{background:linear-gradient(#fff,#f2faff);border-color:#c6e1f1}
/* Frame remains invisible until the retro board stylesheet has finished loading.
   Only the inner frame is hidden; the hero/sidebar/BGM never disappear. */
.rm-page #rm-board-frame:not(.rm-board-ready){visibility:hidden!important;opacity:0!important}
.rm-page .rm-board-content{background:linear-gradient(#fff,#fcfeff)}

/* v16: the decorative page drag effect must never steal sticker gestures. */
.rm-page .sticker-container{pointer-events:none!important;}
.rm-page .sticker-container .sticker-item{pointer-events:auto!important;}
.rm-page .sticker-item img{pointer-events:none!important;-webkit-user-drag:none!important;}
body.sticker-edit-mode .sticker-item.editable,
body.sticker-edit-mode .sticker-item.editable .resize-handle,
body.sticker-edit-mode .sticker-item.editable .rotate-handle{
  touch-action:none;
}
