@font-face {
    font-family: "Mabinogi Classic";
    src: url("./fonts/MabinogiClassic.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Nosutaru";
    src: url("./fonts/Nosutaru.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "BMJUA";
    src: url("./fonts/BMJUA.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

:root {
    --g1-primary: var(--primary-color, #e9aaa4);
    --g1-primary-deep: var(--secondary-color, #bd7778);
    --g1-pale: color-mix(in srgb, var(--accent-color, #f2b8b0) 36%, #fff);
    --g1-panel: var(--card-bg-color, #fffdfc);
    --g1-page: var(--container-bg-color, #fff4f0);
    --g1-container-line: var(--container-border-color, #dda5a1);
    --g1-line: var(--card-border-color, #e4b2ac);
    --g1-text: var(--content-font-color, #705b5d);
    --g1-title: var(--title-font-color, #76595b);
    --g1-shadow: 2px 2px 0 color-mix(in srgb, var(--g1-primary-deep) 18%, transparent);
    --g1-bar-text: var(--btn-primary-text, #fff);
    --g1-bar-gradient: linear-gradient(
        color-mix(in srgb, var(--g1-primary) 38%, #fff) 0%,
        color-mix(in srgb, var(--g1-primary) 62%, #fff) 48%,
        color-mix(in srgb, var(--g1-primary) 82%, var(--g1-primary-deep)) 52%,
        color-mix(in srgb, var(--g1-primary) 76%, var(--g1-primary-deep)) 100%
    );
}

html,
body.g1commission-main-body {
    min-width: 0 !important;
    min-height: 100% !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body.g1commission-main-body {
    position: relative;
    isolation: isolate;
    padding: clamp(34px, 4.5vw, 74px) clamp(28px, 6vw, 104px) 82px;
    background-color: var(--bg-color, #fae6e0);
    background-image: var(--bg-image-url);
    background-repeat: var(--bg-repeat, repeat);
    background-position: var(--bg-position, center top);
    background-size: var(--bg-size, auto);
    color: var(--g1-text);
    font-family: "Mabinogi Classic", var(--content-font-family, sans-serif);
    font-size: var(--content-font-size, 14px);
}

body.g1commission-main-body:lang(ja) {
    font-family: "Nosutaru", "Mabinogi Classic", var(--content-font-family, sans-serif);
}

body.g1commission-main-body::before,
body.g1commission-main-body::after {
    display: none;
}

.g1-heart-field {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.g1-heart-field span {
    --heart-left: 8%;
    --heart-size: 22px;
    --heart-duration: 13s;
    --heart-delay: -2s;
    position: absolute;
    left: var(--heart-left);
    bottom: -12vh;
    color: rgba(226, 205, 215, .92);
    font: 400 var(--heart-size)/1 "Nosutaru", serif;
    text-shadow: 0 1px 4px color-mix(in srgb, var(--g1-primary-deep) 28%, transparent), 0 0 10px rgba(255, 255, 255, .65);
    opacity: 0;
    animation: g1-heart-rise var(--heart-duration) var(--heart-delay) linear infinite;
}

.g1-heart-field span::before { content: "♡"; }
.g1-heart-field span:nth-child(2) { --heart-left: 16%; --heart-size: 14px; --heart-duration: 10s; --heart-delay: -7s; }
.g1-heart-field span:nth-child(3) { --heart-left: 24%; --heart-size: 28px; --heart-duration: 16s; --heart-delay: -11s; }
.g1-heart-field span:nth-child(4) { --heart-left: 33%; --heart-size: 18px; --heart-duration: 12s; --heart-delay: -4s; }
.g1-heart-field span:nth-child(5) { --heart-left: 41%; --heart-size: 12px; --heart-duration: 9s; --heart-delay: -8s; }
.g1-heart-field span:nth-child(6) { --heart-left: 49%; --heart-size: 24px; --heart-duration: 15s; --heart-delay: -1s; }
.g1-heart-field span:nth-child(7) { --heart-left: 57%; --heart-size: 16px; --heart-duration: 11s; --heart-delay: -9s; }
.g1-heart-field span:nth-child(8) { --heart-left: 65%; --heart-size: 30px; --heart-duration: 17s; --heart-delay: -13s; }
.g1-heart-field span:nth-child(9) { --heart-left: 73%; --heart-size: 13px; --heart-duration: 10s; --heart-delay: -3s; }
.g1-heart-field span:nth-child(10) { --heart-left: 82%; --heart-size: 21px; --heart-duration: 14s; --heart-delay: -10s; }
.g1-heart-field span:nth-child(11) { --heart-left: 91%; --heart-size: 17px; --heart-duration: 12s; --heart-delay: -5s; }
.g1-heart-field span:nth-child(12) { --heart-left: 4%; --heart-size: 11px; --heart-duration: 9s; --heart-delay: -6s; }
.g1-heart-field span:nth-child(13) { --heart-left: 29%; --heart-size: 20px; --heart-duration: 13s; --heart-delay: -12s; }
.g1-heart-field span:nth-child(14) { --heart-left: 54%; --heart-size: 11px; --heart-duration: 8s; --heart-delay: -2s; }
.g1-heart-field span:nth-child(15) { --heart-left: 77%; --heart-size: 25px; --heart-duration: 16s; --heart-delay: -7s; }
.g1-heart-field span:nth-child(16) { --heart-left: 96%; --heart-size: 13px; --heart-duration: 11s; --heart-delay: -9s; }

@keyframes g1-heart-rise {
    0% { transform: translate3d(0, 0, 0) rotate(-8deg) scale(.72); opacity: 0; }
    12% { opacity: .9; }
    48% { transform: translate3d(22px, -55vh, 0) rotate(8deg) scale(1); }
    86% { opacity: .72; }
    100% { transform: translate3d(-14px, -118vh, 0) rotate(-5deg) scale(1.15); opacity: 0; }
}

.g1commission-shell,
.g1commission-shell * {
    box-sizing: border-box;
}

.g1commission-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 980px;
    min-height: 0;
    margin: 0 auto;
    padding: 7px;
    overflow: hidden;
    border: 1px solid var(--g1-container-line);
    border-radius: 0;
    background: color-mix(in srgb, var(--g1-page) 70%, transparent);
    box-shadow:
        0 0 0 5px color-mix(in srgb, var(--g1-primary) 16%, transparent),
        0 18px 46px color-mix(in srgb, var(--g1-primary-deep) 24%, transparent),
        inset 0 0 0 1px #fff;
}

.g1commission-shell [hidden] {
    display: none !important;
}

.g1commission-shell a {
    color: inherit;
    text-decoration: none;
}

.g1commission-shell button,
.g1commission-shell input {
    font: inherit;
}

.g1commission-shell a,
.g1commission-shell button,
.g1commission-shell input {
    transition: color .22s ease, background-color .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease, opacity .22s ease;
}

.g1commission-utility {
    height: 24px;
    min-height: 24px;
    box-sizing: border-box;

    padding: 3px 8px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    /* 다른 상단바와 동일한 연핑크 */
    background: #FAEFF4;

    /* 옛날 윈도우식 미세한 입체 테두리 */
    border-top: 1px solid #FEF8FA;
    border-left: 1px solid #FEF8FA;
    border-right: 1px solid #FFFDFE;
    border-bottom: 1px solid #EEDAE2;
    border-radius: 0;

    /* 안쪽 하이라이트 */
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.65);

    color: #fff;

    font-family: "Nosutaru", var(--title-font-family, serif);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;

    letter-spacing: .05em;
    text-shadow: none;
}

.g1commission-utility div {
    display: flex;
    gap: 13px;
}

.g1commission-utility a:hover {
    text-decoration: underline;
}

.g1commission-header {
    position: relative;
    min-height: var(--header-height, 96px);
    margin-top: 6px;
    padding: 18px 36px;
    display: flex;
    align-items: center;
    justify-content: var(--hd-menu-justify, flex-start);
    overflow: hidden;
    border: 1px solid var(--g1-line);
    background-color: var(--header-bg-color, #fff8f5);
    background-image:
        linear-gradient(90deg, color-mix(in srgb, var(--header-bg-color, #fff) 95%, white) 0 45%, transparent 76%),
        linear-gradient(var(--header-bg-color, #fff8f5), color-mix(in srgb, var(--g1-primary) 18%, var(--header-bg-color, #fff8f5)));
    color: var(--header-font-color, var(--g1-title));
    font-family: "Nosutaru", "Mabinogi Classic", var(--header-font-family, sans-serif);
}

.g1commission-header::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 44%;
    opacity: .35;
    background-image: linear-gradient(var(--g1-line) 1px, transparent 1px), linear-gradient(90deg, var(--g1-line) 1px, transparent 1px);
    background-size: 24px 24px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .18) 28%, #000 72%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .18) 28%, #000 72%);
    pointer-events: none;
}

.g1commission-logo-image {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    max-width: 62%;
    min-height: 48px;
}

.g1commission-header.has-title-image {
    padding: 0;
}

.g1commission-header.has-title-image::after {
    display: none;
}

.g1commission-header.has-title-image .g1commission-logo-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;
}

.g1commission-header.has-title-image .g1commission-logo-image img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

.g1commission-logo-image img {
    display: block;
    max-width: 100%;
    max-height: calc(var(--header-height, 96px) - 24px);
    object-fit: contain;
}

.g1commission-title {
    position: relative;
    z-index: 1;
}

.g1commission-title h1 {
    margin: 0;
    color: var(--header-font-color, var(--g1-title));
    font-family: var(--title-font-family, serif);
    font-size: clamp(34px, 5vw, 64px);
    font-weight: 500;
    line-height: .92;
    letter-spacing: .04em;
    text-shadow: 1px 1px #fff, 2px 2px color-mix(in srgb, var(--g1-primary) 40%, transparent);
}

.g1commission-title p {
    margin: 9px 0 0;
    color: color-mix(in srgb, var(--header-font-color, #725b5c) 65%, white);
    font-size: var(--header-font-size, 13px);
    letter-spacing: .04em;
}

.g1commission-mobile-menu {
    display: none;
}

.g1commission-marquee {
    height: 27px;
    margin-top: 6px;
    overflow: hidden;
    border: 1px solid var(--g1-line);
    background: #fff;
    color: var(--g1-primary-deep);
    font: 700 10px/25px Arial, sans-serif;
    letter-spacing: .12em;
    white-space: nowrap;
}

.g1commission-marquee > span {
    display: flex;
    width: max-content;
    min-width: 0;
    will-change: transform;
    animation: g1-marquee 24s linear infinite;
}

.g1-marquee-copy {
    flex: 0 0 auto;
    box-sizing: border-box;
    padding-right: clamp(54px, 8vw, 120px);
}

@keyframes g1-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.g1commission-grid {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 208px minmax(0, 1fr) 238px;
    gap: 9px;
    align-items: stretch;
}

.g1commission-left,
.g1commission-right,
.g1commission-content,
.g1-side-stack {
    min-width: 0;
}

.g1commission-left,
.g1commission-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: stretch;
}

@media (min-width: 901px) {
    .g1commission-left,
    .g1commission-right {
        position: sticky;
        top: 8px;
    }

    .g1-home-content {
        height: 100%;
        flex: 1 1 auto;
    }

}

.g1commission-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.g1-home-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.g1-widget,
.g1-panel,
.g1-nav,
.g1-hero {
    overflow: hidden;
    border: 1px solid var(--g1-line);
    border-radius: 0;
    background: var(--g1-panel);
    box-shadow: inset 0 0 0 2px #fff, var(--g1-shadow);
}

.g1-widget-title,
/* ========================================
   WINDOW BAR
======================================== */

.g1-widget-title,
.g1-panel > header,
.g1-window-bar {
    height: 21px;
    min-height: 21px;
    box-sizing: border-box;

    padding: 2px 7px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    /* るりのお部屋와 비슷한 색감 */
    background: linear-gradient(
        to bottom,
        #FAF5F7 0%,
        #FAF5F7 45%,
        #F3EAEE 100%
    );

    border: 0;
    border-bottom: 1px solid #E8DBE2;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7);

    color: #fff;

    font-family: "Nosutaru", var(--title-font-family, serif);

    /* 훨씬 연한 핑크 아웃라인 */
    text-shadow:
        -1px  0   1px rgba(220, 204, 212, 0.9),
         1px  0   1px rgba(220, 204, 212, 0.9),
         0   -1px 1px rgba(220, 204, 212, 0.9),
         0    1px 1px rgba(220, 204, 212, 0.9);
}


/* 왼쪽 제목 */
.g1-panel > header > b,
.g1-window-bar > span:first-child {
    font-weight: 700;
}


/* 오른쪽 작은 문구 */
.g1-panel > header > span,
.g1-window-bar > span:last-child {
    font-size: 8px;
    font-weight: 400;
    opacity: .85;
}
}

.g1-widget-title strong,
.g1-panel > header b,
.g1-window-bar span {
    font-size: 13px;
    letter-spacing: .05em;
}

.g1-widget-title span,
.g1-panel > header span,
.g1-window-bar i {
    font: 400 10px/1 "Nosutaru", sans-serif;
    letter-spacing: .06em;
}

.g1-profile {
    min-height: 110px;
    padding: 10px 12px;
    display: grid;
    align-content: center;
    text-align: center;
}

.g1-profile.has-image {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px;
    text-align: left;
}

.g1-profile-image {
    width: 80px;
    height: 80px;
    margin: 0;
    display: block;
    border: 1px solid var(--g1-line);
    background: #fff;
    object-fit: cover;
    box-shadow: 4px 4px 0 var(--g1-pale);
}

.g1-profile h2 {
    margin: 0;
    color: var(--g1-title);
    font: 600 var(--title-font-size, 20px)/1.1 var(--title-font-family, serif);
}

.g1-profile-copy h2 {
    font-size: 15px;
}

.g1-profile-copy {
    min-width: 0;
    align-self: center;
}

.g1-profile-intro,
.g1-profile-intro .ra0-content,
.g1-about-copy .ra0-content {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.g1-profile-intro {
    margin-top: 7px;
    color: var(--g1-text);
    font-size: 11px;
    line-height: 1.7;
}

.g1-profile-intro img,
.g1-profile-intro video,
.g1-about-copy img,
.g1-about-copy video {
    max-width: 100%;
    height: auto;
}

.g1-profile-intro table,
.g1-about-copy table {
    max-width: 100%;
    display: block;
    overflow-x: auto;
}

.g1-profile-id {
    margin: 4px 0 10px !important;
    color: var(--g1-primary-deep) !important;
    font: 10px/1.2 Arial, sans-serif !important;
}

.g1-profile p:last-child {
    margin: 0;
    color: var(--g1-text);
    font-size: 11px;
    line-height: 1.75;
    text-align: left;
}

/* ===== WHITE / DUSTY PINK FLAT NAVIGATION ===== */
.g1-nav {
    --g1-menu-ink: #c49eaf;
    --g1-menu-hover: #b88ca1;
    --g1-menu-line: #d3b0bf;
    padding: 5px 9px;
    overflow: visible;
    border: 1px solid #f0e5ea;
    background: #fff;
    box-shadow: none;
}

.g1-nav .g1-nav-item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 38px;
    padding: 8px 9px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    text-shadow: none;
    color: var(--g1-menu-ink);
    text-align: left;
    cursor: pointer;
}

.g1-nav > .g1-nav-item + .g1-nav-item,
.g1-nav .g1-nav-group + .g1-nav-item,
.g1-nav .g1-nav-item + .g1-nav-group,
.g1-nav .g1-nav-group + .g1-nav-group {
    margin-top: 0;
}

/* Keep underline exactly as wide as the menu label */
.g1-nav .g1-nav-item > span {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    padding-bottom: 5px;
    font-family: "Yu Mincho", "游明朝", "Hiragino Mincho ProN", "Noto Serif JP", serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: .02em;
    text-rendering: optimizeLegibility;
    transition: color .35s ease, text-shadow .35s ease;
}

/* Soft halo around lettering, not the entire button */
.g1-nav .g1-nav-item:hover,
.g1-nav .g1-nav-item:focus-visible,
.g1-nav .g1-nav-item.is-active,
.g1-nav .g1-sub-toggle[aria-expanded="true"],
.g1-nav .g1-nav-group:hover > .g1-sub-toggle,
.g1-nav .g1-nav-group:focus-within > .g1-sub-toggle {
    background: #fff;
    border: 0;
    box-shadow: none;
    text-shadow: none;
    color: var(--g1-menu-hover);
}

.g1-nav .g1-nav-item:hover > span,
.g1-nav .g1-nav-item:focus-visible > span {
    text-shadow: 0 0 4px rgba(216, 163, 186, .55),
                 0 0 10px rgba(236, 200, 216, .48),
                 0 0 17px rgba(245, 221, 231, .42);
}

/* Underline draws left-to-right */
.g1-nav .g1-nav-item > span::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--g1-menu-line);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .42s ease;
}

/* Optional PNG icon at the end of the underline */
.g1-nav .g1-nav-item > span::before {
    content: "";
    position: absolute;
    left: 100%;
    bottom: -7px;
    width: 15px;
    height: 15px;
    margin-left: 3px;
    background: url('./img/menu_icon.png') center / contain no-repeat;
    opacity: 0;
    transform: translate(-9px, 3px);
    transition: opacity .35s ease, transform .42s ease;
    pointer-events: none;
}

.g1-nav .g1-nav-item:hover > span::after,
.g1-nav .g1-nav-item:focus-visible > span::after {
    transform: scaleX(1);
}
.g1-nav .g1-nav-item:hover > span::before,
.g1-nav .g1-nav-item:focus-visible > span::before {
    opacity: 1;
    transform: translate(0, 0);
}

.g1-nav .g1-nav-item > em,
.g1-nav .g1-nav-item > b {
    margin-left: auto;
    color: #cbb5bf;
    font: 9px/1 Arial, sans-serif;
    letter-spacing: .06em;
    text-shadow: none;
}
.g1-nav .g1-nav-item > b { margin-left: 7px; }

/* Existing expandable submenu functionality preserved */
.g1-nav .g1-submenu {
    max-height: 0;
    margin: 0 5px;
    overflow: hidden;
    border: solid #f0e5ea;
    border-width: 0 1px;
    background: #fff;
    opacity: 0;
    transform: translateY(-5px);
    transform-origin: top;
    transition: max-height .44s cubic-bezier(.22,1,.36,1),
                border-width .34s ease,
                opacity .32s ease,
                transform .44s cubic-bezier(.22,1,.36,1);
}
.g1-nav .g1-nav-group.is-open .g1-submenu,
.g1-nav .g1-nav-group:hover .g1-submenu,
.g1-nav .g1-nav-group:focus-within .g1-submenu {
    max-height: 420px;
    border-bottom-width: 1px;
    opacity: 1;
    transform: translateY(0);
}
.g1-nav .g1-submenu a {
    display: block;
    padding: 8px 10px;
    border-top: 1px solid #f0e5ea;
    background: #fff;
    color: var(--g1-menu-ink);
    font: 400 13px/1.6 "Yu Mincho", "游明朝", "Hiragino Mincho ProN", "Noto Serif JP", serif;
    transition: color .3s ease, text-shadow .3s ease;
}
.g1-nav .g1-submenu a:hover,
.g1-nav .g1-submenu a:focus-visible {
    background: #fff;
    color: var(--g1-menu-hover);
    text-shadow: 0 0 5px rgba(216, 163, 186, .55),
                 0 0 12px rgba(236, 200, 216, .45);
}

@media (prefers-reduced-motion: reduce) {
    .g1-nav .g1-nav-item > span,
    .g1-nav .g1-nav-item > span::before,
    .g1-nav .g1-nav-item > span::after { transition: none; }
}

.g1-favorite {
    min-height: 180px;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.g1-favorite-list,
.g1-banner-list,
.g1-track-list,
.g1-dday-list {
    scrollbar-color: var(--g1-primary) #fff;
    scrollbar-width: thin;
}

.g1-favorite-list {
    min-height: 0;
    overflow-y: auto;
}

.g1-favorite-list a {
    min-height: 38px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    border-bottom: 1px dotted var(--g1-line);
    color: var(--g1-text);
    font-size: 11px;
}

.g1-favorite-list a:hover {
    background: var(--g1-pale);
}

.g1-favorite-list small {
    margin-left: auto;
    color: var(--g1-primary-deep);
    font-size: 8px;
}

.g1-banner {
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.g1-banner-list a {
    width: 200px;
    height: 40px;
    flex: 0 0 40px;
}

.g1-banner-list {
    min-height: 0;
    padding: 6px 3px 10px;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    overflow-y: auto;
}

.g1-banner-list a {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 0;
    border-radius: 4px;
    background: #fff;
    color: var(--g1-primary-deep);
    font-size: 9px;
}

.g1-banner-list a:hover {
    background: var(--g1-pale);
    box-shadow: 0 4px 10px color-mix(in srgb, var(--g1-primary-deep) 24%, transparent), 0 0 0 1px color-mix(in srgb, var(--g1-primary) 64%, #fff);
    filter: brightness(1.05) saturate(1.05);
    transform: translateY(-2px) scale(1.012);
}

.g1-banner-list a b {
    margin-left: auto;
    font: 600 10px/1 var(--title-font-family, serif);
}

.g1-banner-list a img {
    width: 200px;
    height: 40px;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

.g1-banner-board-list {
    width: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.g1-banner-board-list a > span {
    width: 200px;
    height: 40px;
    padding: 6px 9px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--g1-line);
    background: #fff;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.g1-hero {
    position: relative;
    min-height: 460px;
    background: linear-gradient(120deg, #fff 0 54%, color-mix(in srgb, var(--g1-pale) 68%, #fff) 100%);
}

.g1-window-bar {
    position: relative;
    z-index: 3;
}

.g1-hero-image {
    position: absolute;
    inset: 31px 0 0;
    width: 100%;
    height: calc(100% - 31px);
    opacity: .36;
    object-fit: cover;
}

.g1-hero.has-image::after {
    display: none;
}

.g1-loading {
    position: relative;
    z-index: 2;
    right: 13px;
    bottom: 11px;
    width: min(265px, 42%);
    padding: 7px 9px;
    border: 1px solid var(--g1-line);
    background: rgba(255,255,255,.92);
}

.g1-loading > span,
.g1-loading > small {
    display: block;
    color: var(--g1-primary-deep);
    font: 700 8px/1.2 Arial, sans-serif;
    letter-spacing: .12em;
}

.g1-loading > small {
    margin-top: 5px;
    color: color-mix(in srgb, var(--g1-text) 56%, white);
    font-size: 7px;
}

.g1-loading-blocks {
    margin-top: 5px;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 3px;
}

.g1-loading-blocks b {
    height: 9px;
    border: 1px solid var(--g1-line);
    background: #fff;
}

.g1-loading-blocks b.is-on {
    border-color: var(--g1-primary-deep);
    background: var(--g1-primary);
}

.g1-summary-grid {
    min-width: 0;
    height: 160px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.g1-summary-grid > .g1-panel {
    min-width: 0;
    height: 100%;
}

.g1-latest,
.g1-about {
    min-height: 0;
}

.g1-summary-grid .g1-recent-list {
    max-height: 127px;
    overflow-y: auto;
    scrollbar-color: var(--g1-primary) #fff;
    scrollbar-width: thin;
}

.g1-about {
    display: flex;
    flex-direction: column;
}

.g1-about-copy {
    min-height: 0;
    padding: 13px 15px;
    flex: 1 1 auto;
    overflow-y: auto;
    color: var(--g1-text);
    font-size: 11px;
    line-height: 1.8;
    overflow-wrap: anywhere;
    scrollbar-color: var(--g1-primary) #fff;
    scrollbar-width: thin;
}

.g1-about-copy.is-empty {
    background: linear-gradient(135deg, #fff, color-mix(in srgb, var(--g1-pale) 24%, #fff));
}

.g1-recent-list {
    margin: 0;
    padding: 7px 11px;
    list-style: none;
}

.g1-recent-list li {
    min-height: 38px;
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) 42px;
    gap: 8px;
    align-items: center;
    border-bottom: 1px dotted var(--g1-line);
    color: var(--g1-text);
    font-size: 10px;
}

.g1-recent-list li:last-child {
    border-bottom: 0;
}

.g1-recent-board,
.g1-recent-list time {
    color: var(--g1-primary-deep);
    font-size: 9px;
}

.g1-recent-list a {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.g1-recent-list a:hover {
    color: var(--g1-primary-deep);
    text-decoration: underline;
}

.g1-recent-list .g1-recent-empty {
    min-height: 165px;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    color: color-mix(in srgb, var(--g1-text) 58%, white);
}

.g1-content-stage {
    min-width: 0;
    width: 100%;
    align-self: start;
    background: #fff;
}

.g1-content-stage > header {
    position: relative;
    z-index: 2;
}

.g1-content-stage-actions {
    display: flex;
    gap: 5px;
}

.g1-content-stage-actions button {
    min-width: 48px;
    height: 22px;
    padding: 2px 8px;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 2px;
    background: #fff;
    color: var(--g1-primary-deep);
    font: 700 8px/1 Arial, sans-serif;
    text-shadow: none;
}

.g1-content-stage iframe {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: 360px;
    min-height: 360px;
    max-height: 860px;
    display: block;
    border: 0;
    background: #fff;
}

.g1-latest-grid {
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.g1-latest-card {
    min-width: 0;
    border: 1px solid var(--g1-line);
    background: #fff;
}

.g1-latest-thumb {
    height: 112px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--g1-line);
    background: linear-gradient(135deg, #fff, var(--g1-pale));
    color: var(--g1-primary-deep);
    font: 600 17px/1 var(--title-font-family, serif);
}

.g1-latest-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.g1-latest-card:hover img {
    transform: scale(1.04);
}

.g1-latest-copy {
    padding: 7px;
}

.g1-latest-copy b {
    display: block;
    overflow: hidden;
    color: var(--g1-title);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.g1-latest-copy span {
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
    color: color-mix(in srgb, var(--g1-text) 60%, white);
    font-size: 8px;
}

.g1-latest-empty,
.g1-log-empty {
    padding: 28px 10px;
    color: color-mix(in srgb, var(--g1-text) 60%, white);
    text-align: center;
    font-size: 10px;
}

.g1-bottom-grid {
    height: auto;
    min-height: 400px;
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 8px;
}

.g1-oekaki {
    height: 400px;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.g1-oekaki-tools {
    padding: 5px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 1px solid var(--g1-line);
    background: #fff;
}

.g1-oekaki-tools button {
    min-width: 34px;
    height: 28px;
    padding: 3px 7px;
    border: 1px solid var(--form-border-color, var(--g1-line));
    border-radius: var(--btn-secondary-radius, 2px);
    background: #fff;
    color: var(--g1-text);
    font-size: 9px;
}

.g1-oekaki-tools button:hover,
.g1-oekaki-tools button.active {
    border-color: var(--g1-primary-deep);
    background: #fff;
    color: var(--g1-primary-deep);
}

.g1-oekaki-tools .g1-color {
    min-width: 28px;
    width: 28px;
    padding: 4px;
    background: var(--swatch);
    box-shadow: inset 0 0 0 3px #fff;
}

.g1-oekaki-tools .g1-color.active {
    outline: 2px solid var(--g1-primary-deep);
    outline-offset: -2px;
}

.g1-tool-spacer {
    flex: 1;
}

#g1OekakiCanvas {
    width: calc(100% - 10px);
    min-height: 0;
    margin: 5px;
    display: block;
    flex: 1 1 auto;
    border: 1px solid var(--g1-line);
    background: #fff;
    touch-action: none;
}

.g1-oekaki-status {
    min-height: 24px;
    margin: 0 6px 5px;
    display: grid;
    place-items: center;
    color: var(--g1-primary-deep);
    font-size: 9px;
}

.g1-side-stack {
    display: grid;
    grid-auto-rows: max-content;
    align-content: start;
    gap: 6px;
}

.g1-omikuji,
.g1-clicker {
    width: 100%;
    min-height: 0;
    align-self: start;
}

.g1-omikuji-body,
.g1-clicker-body {
    height: auto;
    padding: 7px;
    display: grid;
    grid-template-rows: auto auto;
    gap: 6px;
}

#g1OmikujiButton {
   position: relative;
    width: 100%;
    height: 72px;       /* ← 원하는 뽑기칸 높이 */
    min-height: 0;
    /* aspect-ratio: 1 / 1; ← 삭제 */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
    border: 3px double var(--g1-primary-deep);
    background: #fff;
    color: var(--g1-primary-deep);
    font-family: "Nosutaru", var(--title-font-family, serif);
    box-shadow: 4px 4px 0 var(--g1-pale);
}

#g1OmikujiResult {
    margin: 0;
    font-size: 30px;
    line-height: 1;
    white-space: nowrap;
}

.g1-omikuji-body > p {
    min-height: 28px;
    margin: 0;
    display: grid;
    place-items: center;
    color: var(--g1-text);
    font-size: 10px;
    text-align: center;
}

#g1OmikujiButton:disabled b {
    animation: g1-fortune-wait .44s ease-in-out infinite;
}

#g1OmikujiButton.is-lucky {
    background: linear-gradient(#FAEBF2, var(--g1-primary));
    color: #fff;
    animation: g1-fortune-reveal .48s ease-out;
}

#g1OmikujiButton.is-great {
    background: linear-gradient(135deg, #F1EEDC, #EDE1BA 42%, #FFFAE2 74%, var(--g1-primary));
    color: #B3AF99;
    animation: g1-great-reveal .75s ease-out;
}

.g1-omikuji.is-great {
    animation: g1-great-window 1.05s ease-in-out 2;
}

.g1-fortune-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.g1-fortune-particles u {
    position: absolute;
    width: 7px;
    height: 7px;
    border: 1px solid #D9BD72;
    background: #FCF3C9;
    opacity: 0;
}

.g1-fortune-particles u:nth-child(1) { left: -8px; top: 9px; }
.g1-fortune-particles u:nth-child(2) { left: 12px; top: -9px; }
.g1-fortune-particles u:nth-child(3) { left: 48%; top: -12px; }
.g1-fortune-particles u:nth-child(4) { right: 12px; top: -8px; }
.g1-fortune-particles u:nth-child(5) { right: -8px; top: 18px; }
.g1-fortune-particles u:nth-child(6) { right: -5px; bottom: 9px; }
.g1-fortune-particles u:nth-child(7) { left: 46%; bottom: -11px; }
.g1-fortune-particles u:nth-child(8) { left: -8px; bottom: 12px; }

#g1OmikujiButton.is-great .g1-fortune-particles u {
    animation: g1-fortune-particle .9s ease-out 2;
}

@keyframes g1-fortune-wait { 50% { transform: translateY(-2px); opacity: .5; } }
@keyframes g1-fortune-reveal { 50% { transform: scale(.96); } 75% { transform: scale(1.04); } }
@keyframes g1-great-reveal { 35% { transform: scale(.94) rotate(-1deg); } 68% { transform: scale(1.07) rotate(1deg); } }
@keyframes g1-great-window { 50% { box-shadow: inset 0 0 0 2px #fff, 0 0 15px #efc470; } }
@keyframes g1-fortune-particle { 0% { opacity: 0; transform: scale(.3); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(1.5) rotate(180deg); } }

#g1CharacterClicker {
    position: relative;
    width: 100%;
    min-height: 0;
    aspect-ratio: 1 / 1;
    padding: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--g1-line);
    background: #fff;
    color: var(--g1-primary-deep);
    font: inherit;
    cursor: pointer;
}

#g1CharacterClicker img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: center bottom;
    pointer-events: none;
}

.g1-clicker-empty {
    color: color-mix(in srgb, var(--g1-text) 58%, white);
    font-size: 10px;
    letter-spacing: .08em;
    pointer-events: none;
}

#g1CharacterClicker.is-clicked img {
    animation: g1-character-bounce .42s ease-out;
}

#g1ClickPop {
    position: absolute;
    right: 15px;
    top: 12px;
    color: var(--g1-primary-deep);
    font-weight: 700;
    opacity: 0;
}

#g1ClickPop.is-visible {
    animation: g1-click-pop .45s ease-out;
}

.g1-clicker-status {
    min-height: 28px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--g1-text);
    text-align: center;
    font-size: 10px;
}

.g1-clicker-status b {
    color: var(--g1-primary-deep);
}

@keyframes g1-character-bounce { 35% { transform: translateY(-7px) scale(1.04); } 70% { transform: translateY(1px) scale(.98); } }
@keyframes g1-click-pop { 0% { opacity: 0; transform: translateY(4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-13px); } }

.g1-update-log {
    min-height: 230px;
}

.g1-oekaki-gallery {
    min-height: 280px;
}

.g1-log-list {
    margin: 0;
    padding: 5px 10px;
    list-style: none;
}

.g1-log-list li {
    min-height: 36px;
    display: grid;
    grid-template-columns: 75px 82px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    border-bottom: 1px dotted var(--g1-line);
    color: var(--g1-text);
    font-size: 10px;
}

.g1-log-list li:last-child {
    border-bottom: 0;
}

.g1-log-list time,
.g1-log-list b {
    color: var(--g1-primary-deep);
}

.g1-log-list a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ========================================
   LOGIN
   simple retro web style
======================================== */

.g1-member {
    flex: 0 0 auto;
    padding: 14px 12px 12px;
    background: transparent;
    border: none;
    box-shadow: none;
}

/* 상단 LOGIN 문구 */

.g1-login-heading {
    margin-bottom: 12px;
    padding-bottom: 5px;

    display: flex;
    align-items: baseline;
    justify-content: space-between;

    border-bottom: 1px dotted var(--g1-line);
}

.g1-login-heading strong {
    color: var(--g1-primary-deep);

    font-family: "Nosutaru", Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: .08em;
}

.g1-login-heading span {
    color: color-mix(
        in srgb,
        var(--g1-primary-deep) 55%,
        #fff
    );

    font-size: 8px;
    letter-spacing: .08em;
}


/* 로그인 폼 */

.g1-login-form {
    padding: 0;

    display: flex;
    flex-direction: column;
    gap: 6px;
}


/* ID / PW 한 줄 */

.g1-login-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);

    align-items: center;
    gap: 7px;
}

.g1-login-row > span {
    color: var(--g1-primary-deep);

    font-family: "Nosutaru", Arial, sans-serif;
    font-size: 10px;
    letter-spacing: .04em;
}


/* 입력창 */

.g1-login-row input {
    width: 100%;
    min-width: 0;
    height: 25px;

    padding: 3px 6px;

    border: 1px solid var(--g1-line);
    border-radius: 0;

    background: #fff;

    color: var(--g1-text);

    font-family: Arial, sans-serif;
    font-size: 10px;

    outline: none;

    box-shadow:
        inset 1px 1px 0
        color-mix(in srgb, var(--g1-primary-deep) 10%, transparent);
}

.g1-login-row input:focus {
    border-color: var(--g1-primary-deep);

    background:
        color-mix(in srgb, var(--g1-pale) 16%, #fff);
}


/* LOGIN 버튼 */

.g1-login-button {
    width: 100%;
    height: 27px;

    margin-top: 3px;

    border: 1px solid var(--g1-line);
    border-radius: 0;

    background:
        linear-gradient(
            180deg,
            #fff 0%,
            color-mix(in srgb, var(--g1-primary) 18%, #fff) 100%
        );

    color: var(--g1-primary-deep);

    font-family: "Nosutaru", Arial, sans-serif;
    font-size: 10px;
    letter-spacing: .12em;

    cursor: pointer;

    box-shadow:
        inset 1px 1px 0 #fff,
        inset -1px -1px 0
        color-mix(in srgb, var(--g1-primary-deep) 14%, transparent);
}

.g1-login-button:hover {
    border-color: var(--g1-primary-deep);

    background:
        color-mix(in srgb, var(--g1-primary) 22%, #fff);
}

.g1-login-button:active {
    padding-top: 2px;

    box-shadow:
        inset 1px 1px 2px
        color-mix(in srgb, var(--g1-primary-deep) 20%, transparent);
}


/* JOIN / LOST PASSWORD */

.g1-member-links {
    margin-top: 9px;
    padding: 7px 0 0;

    display: flex;
    justify-content: center;
    gap: 7px;

    border-top: 1px dotted var(--g1-line);

    color:
        color-mix(in srgb, var(--g1-text) 55%, #fff);

    font-family: Arial, sans-serif;
    font-size: 8px;
    letter-spacing: .04em;
}

.g1-member-links a:hover {
    color: var(--g1-primary-deep);
    text-decoration: underline;
}


/* 로그인 후 */

.g1-member-card {
    min-height: 100px;
    padding: 8px;

    display: grid;
    align-content: center;
    gap: 6px;

    text-align: center;
}

.g1-member-card strong {
    color: var(--g1-title);
    font-size: 14px;
}

.g1-member-card small {
    color: var(--g1-primary-deep);
}

.g1-member-card div {
    margin-top: 4px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.g1-member-card a {
    padding: 6px;

    border: 1px solid var(--g1-line);
    border-radius: 0;

    background: #fff;

    color: var(--g1-primary-deep);
    font-size: 9px;
}

.g1-music {
    min-height: 310px;
    display: flex;
    flex-direction: column;
}

.g1-player-display {
    margin: 8px 8px 5px;
    padding: 10px;
    border: 1px solid var(--g1-line);
    background: #fff;
}

.g1-player-display small,
.g1-player-display b {
    display: block;
}

.g1-player-display small {
    color: var(--g1-primary-deep);
    font: 8px/1 Arial, sans-serif;
    letter-spacing: .12em;
}

.g1-player-display b {
    margin: 6px 0 10px;
    overflow: hidden;
    color: var(--g1-title);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.g1-player-display > div {
    height: 4px;
    overflow: hidden;
    border: 1px solid var(--g1-line);
    background: #fff;
}

.g1-player-display i {
    width: 0;
    height: 100%;
    display: block;
    background: var(--g1-primary);
}

.g1-player-controls {
    min-height: 50px;
    padding: 2px 8px;
    display: grid;
    grid-template-columns: 30px 46px 30px;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.g1-player-controls button {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--g1-line);
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 28%, #fff 0 14%, color-mix(in srgb, var(--g1-pale) 66%, #fff) 42%, color-mix(in srgb, var(--g1-primary) 55%, #fff) 100%);
    color: var(--g1-primary-deep);
    font: 700 12px/1 Arial, sans-serif;
    text-shadow: 0 1px #fff;
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, .9),
        inset 0 -2px 2px color-mix(in srgb, var(--g1-primary-deep) 18%, transparent),
        0 2px 0 color-mix(in srgb, var(--g1-primary-deep) 24%, transparent);
}

.g1-player-controls .g1-play {
    width: 46px;
    height: 46px;
    justify-self: center;
    border-color: var(--g1-primary-deep);
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 27%, #fff 0 10%, color-mix(in srgb, var(--g1-pale) 76%, #fff) 38%, color-mix(in srgb, var(--g1-primary) 76%, #fff) 72%, color-mix(in srgb, var(--g1-primary-deep) 62%, var(--g1-primary)) 100%);
    color: var(--g1-primary-deep);
    font-size: 8px;
    letter-spacing: .05em;
    box-shadow:
        inset 0 2px 2px rgba(255, 255, 255, .94),
        inset 0 -3px 3px color-mix(in srgb, var(--g1-primary-deep) 28%, transparent),
        0 2px 0 color-mix(in srgb, var(--g1-primary-deep) 35%, transparent),
        0 0 0 2px color-mix(in srgb, var(--g1-pale) 72%, #fff);
}

.g1-player-controls button:hover {
    border-color: var(--g1-primary-deep);
    filter: saturate(1.08) brightness(1.02);
}

.g1-player-controls button:active {
    transform: translateY(2px);
    box-shadow:
        inset 0 2px 3px color-mix(in srgb, var(--g1-primary-deep) 24%, transparent),
        0 0 0 1px color-mix(in srgb, var(--g1-pale) 58%, #fff);
}

.g1-volume {
    width: calc(100% - 16px);
    margin: 7px 8px;
    accent-color: var(--g1-primary);
}

.g1-track-list {
    min-height: 90px;
    max-height: 150px;
    margin: 0 8px 8px;
    padding: 0;
    overflow-y: auto;
    list-style: none;
    border: 1px solid var(--g1-line);
    background: #fff;
}

.g1-track-list li {
    min-height: 28px;
    border-bottom: 1px dotted var(--g1-line);
}

.g1-track-list li:last-child {
    border-bottom: 0;
}

.g1-track-list button,
.g1-track-list li {
    width: 100%;
    padding: 6px 7px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-width: 0;
    background: #fff;
    color: var(--g1-text);
    text-align: left;
    font-size: 9px;
}

.g1-track-list button:hover,
.g1-track-list button.is-current {
    background: var(--g1-pale);
    color: var(--g1-primary-deep);
}

.g1-track-list span {
    color: var(--g1-primary-deep);
    font: 8px/1 Arial, sans-serif;
}

.g1-track-list b {
    min-width: 0;
    overflow: hidden;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.g1-calendar {
    min-height: 0;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.g1-calendar-head {
    padding: 8px 8px 5px;
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    text-align: center;
}

.g1-calendar-head button {
    border: 0;
    background: transparent;
    color: var(--g1-primary-deep);
    font-size: 8px;
}

.g1-calendar-head b {
    color: var(--g1-title);
    font-size: 12px;
}

.g1-calendar-days,
.g1-calendar-grid {
    margin: 0 8px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.g1-calendar-days span {
    padding: 3px 0;
    color: color-mix(in srgb, var(--g1-text) 62%, white);
    text-align: center;
    font-size: 8px;
}

.g1-calendar-grid button {
    position: relative;
    aspect-ratio: 1;
    border: 0;
    background: #fff;
    color: var(--g1-text);
    font-size: 9px;
}

.g1-calendar-grid button:hover,
.g1-calendar-grid button.is-selected {
    background: var(--g1-pale);
    color: var(--g1-primary-deep);
}

.g1-calendar-grid button.is-today {
    border: 1px solid var(--g1-primary-deep);
}

.g1-calendar-grid button.is-muted {
    opacity: .32;
}

.g1-calendar-grid button.has-event::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--g1-primary-deep);
}

.g1-calendar-form {
    margin: 7px 8px 5px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 38px;
}

.g1-calendar-form span {
    display: grid;
    place-items: center;
    border: 1px solid var(--g1-line);
    border-right: 0;
    background: #fff;
    color: var(--g1-primary-deep);
    font-size: 9px;
}

.g1-calendar-form input {
    height: 29px;
    padding: 4px 6px;
    border-radius: 0;
}

.g1-calendar-form button {
    border-radius: 0;
    font-size: 8px;
}

.g1-schedule-list {
    min-height: 0;
    margin: 0 8px 8px;
    padding: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    list-style: none;
}

.g1-schedule-list li {
    min-height: 25px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 25px;
    gap: 5px;
    align-items: center;
    border-top: 1px dotted var(--g1-line);
    color: var(--g1-text);
    font-size: 8px;
}

.g1-schedule-list span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.g1-schedule-list button,
.g1-dday-list button {
    border: 0;
    background: transparent;
    color: var(--g1-primary-deep);
    font-size: 7px;
}

.g1-dday {
    min-height: 220px;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.g1-dday-form {
    padding: 8px;
    display: grid;
    gap: 5px;
}

.g1-dday-form input,
.g1-dday-form button {
    width: 100%;
    height: 29px;
    padding: 4px 6px;
    font-size: 9px;
}

.g1-dday-list {
    min-height: 0;
    margin: 0 8px;
    padding: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    list-style: none;
}

.g1-dday-list li {
    min-height: 42px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
    align-items: center;
    border-top: 1px dotted var(--g1-line);
}

.g1-dday-list div,
.g1-dday-list div b,
.g1-dday-list div time {
    min-width: 0;
    display: block;
}

.g1-dday-list div b {
    overflow: hidden;
    color: var(--g1-title);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.g1-dday-list div time {
    margin-top: 2px;
    color: color-mix(in srgb, var(--g1-text) 60%, white);
    font-size: 7px;
}

.g1-dday-list strong {
    color: var(--g1-primary-deep);
    font: 700 11px/1 var(--title-font-family, serif);
    white-space: nowrap;
}

#g1DdayEmpty {
    margin: auto 8px;
    padding: 15px 4px;
    color: color-mix(in srgb, var(--g1-text) 60%, white);
    text-align: center;
    font-size: 9px;
}

.g1commission-footer {
    min-height: 34px;
    margin-top: 8px;
    display: grid;
    place-items: center;
    border: 1px solid var(--g1-line);
    background: #fff;
    color: var(--g1-primary-deep);
    font: 9px/1 Arial, sans-serif;
    letter-spacing: .08em;
}

@media (max-width: 1120px) {
    .g1commission-grid {
        grid-template-columns: 208px minmax(0, 1fr) 225px;
    }
    .g1-bottom-grid {
        grid-template-columns: minmax(0, 1fr) 170px;
    }
}

@media (max-width: 900px) {
    body.g1commission-main-body { padding: 18px 12px 38px; }
    .g1commission-grid { grid-template-columns: 1fr 260px; }
    .g1commission-left {
        position: fixed;
        z-index: 50;
        left: 10px;
        top: 42px;
        bottom: 10px;
        width: min(310px, calc(100vw - 30px));
        padding: 6px;
        overflow-y: auto;
        border: 1px solid var(--g1-line);
        background: var(--g1-page);
        box-shadow: 8px 8px 0 color-mix(in srgb, var(--g1-primary-deep) 20%, transparent);
        transform: translateX(calc(-100% - 24px));
        transition: transform .28s ease;
    }
    .g1commission-left.is-open { transform: translateX(0); }
    .g1commission-mobile-menu {
        position: relative;
        z-index: 3;
        margin-right: 16px;
        padding: 7px 10px;
        display: block;
        border: 1px solid var(--g1-primary-deep);
        background: #fff;
        color: var(--g1-primary-deep);
    }
    .g1-banner-list { max-height: 280px; }
    .g1-content-stage iframe { height: 560px; min-height: 420px; max-height: 82vh; }
}

@media (max-width: 680px) {
    body.g1commission-main-body::before { opacity: .3; }
    body.g1commission-main-body::after { opacity: .42; }
    .g1commission-utility > span { max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .g1commission-header { min-height: 80px; padding: 14px; }
    .g1commission-title h1 { font-size: 34px; }
    .g1commission-grid { display: block; }
    .g1commission-right { margin-top: 8px; }
    .g1-summary-grid { height: auto; grid-template-columns: 1fr; }
    .g1-summary-grid > .g1-panel { height: 220px; }
    .g1-latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .g1-bottom-grid { height: auto; min-height: 0; grid-template-columns: 1fr; }
    .g1-oekaki { min-height: 420px; }
    .g1-side-stack { grid-template-columns: 1fr; grid-template-rows: auto; }
    .g1-omikuji, .g1-clicker { width: min(100%, 250px); justify-self: center; }
    .g1-oekaki-gallery { margin-top: 0; }
    .g1commission-right { display: grid; grid-template-columns: 1fr 1fr; }
    .g1-member, .g1-music { min-height: 300px; }
    .g1-calendar { min-height: 300px; }
}

@media (max-width: 460px) {
    .g1commission-shell { padding: 4px; }
    .g1commission-utility { font-size: 8px; }
    .g1commission-utility div { gap: 7px; }
    .g1-loading { width: calc(100% - 22px); }
    .g1-latest-grid, .g1-side-stack, .g1commission-right { grid-template-columns: 1fr; }
    .g1-side-stack { grid-template-rows: auto; }
    .g1-oekaki-tools { gap: 3px; }
    .g1-oekaki-tools button { min-width: 30px; padding: 2px 5px; }
    .g1-log-list li { grid-template-columns: 64px 62px minmax(0, 1fr); gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
    body.g1commission-main-body::before,
    body.g1commission-main-body::after {
        animation: none !important;
    }

    .g1-heart-field span {
        animation: none !important;
        display: none;
    }

    #g1OmikujiButton,
    .g1-omikuji,
    .g1-fortune-particles u,
    #g1CharacterClicker img,
    #g1ClickPop {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }

    .g1commission-marquee > span {
        animation: none !important;
        transform: none !important;
    }

    .g1-submenu {
        transition-duration: .01ms !important;
    }
}

@media (max-width: 900px) {
    .g1commission-left > .g1-profile,
    .g1commission-left > .g1-nav,
    .g1commission-left > .g1-favorite,
    .g1commission-left > .g1-banner {
        flex-shrink: 0;
    }
}
.g1commission-utility,
.g1-widget-title,
.g1-panel > header,
.g1-window-bar {
    color: #fff;
}


/* ========================================
   NOTICE WINDOW - FINAL
======================================== */

.g1-hero .g1-notice-memo {
    position: absolute !important;
    z-index: 20 !important;

    top: 42px !important;
    left: 18px !important;

    width: 185px !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 1px solid var(--g1-line) !important;
    border-radius: 0 !important;

    background: rgba(255, 255, 255, 0.94) !important;

    box-shadow:
        2px 2px 0
        color-mix(in srgb, var(--g1-primary) 12%, transparent) !important;

    overflow: hidden !important;
    box-sizing: border-box !important;
}


/* ===== 상단 타이틀바 ===== */

.g1-hero .g1-notice-title {
    width: 100% !important;
    height: 18px !important;

    margin: 0 !important;
    padding: 0 3px 0 7px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    border: 0 !important;
    border-bottom: 1px solid var(--g1-line) !important;

    background:
        color-mix(
            in srgb,
            var(--g1-primary) 20%,
            #fff
        ) !important;

    box-sizing: border-box !important;

    color: var(--g1-primary-deep) !important;

    font-family: "Nosutaru", Arial, sans-serif !important;
    font-size: 9px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: .06em !important;
}


/* ===== X 버튼 ===== */

.g1-hero .g1-notice-close {
    appearance: none !important;
    -webkit-appearance: none !important;

    width: 14px !important;
    height: 14px !important;

    min-width: 0 !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 1px solid var(--g1-line) !important;
    border-radius: 0 !important;

    background: #fff !important;

    color: var(--g1-primary-deep) !important;

    font-family: Arial, sans-serif !important;
    font-size: 10px !important;
    font-weight: 400 !important;
    line-height: 10px !important;

    box-shadow: none !important;

    cursor: pointer !important;
}

.g1-hero .g1-notice-close:hover {
    background:
        color-mix(
            in srgb,
            var(--g1-primary) 18%,
            #fff
        ) !important;
}


/* ===== 본문 ===== */

.g1-hero .g1-notice-body {
    width: 100% !important;
    height: auto !important;

    margin: 0 !important;
    padding: 9px 10px 10px !important;

    display: block !important;

    border: 0 !important;
    background: #fff !important;

    box-sizing: border-box !important;

    color: var(--g1-text) !important;

    font-size: 9px !important;
    line-height: 1.65 !important;

    text-align: left !important;
}


/* 본문 문장 */

.g1-hero .g1-notice-body p {
    margin: 0 !important;
    padding: 0 !important;

    color: var(--g1-text) !important;

    font-size: 9px !important;
    line-height: 1.7 !important;
}

/* MINI PICTURE */

.g1-mini-picture {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.g1-mini-picture-body {
    position: relative;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
    background: #fff;
}

.g1-mini-picture-body img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    opacity: .36;
}

.g1-summary-grid > .g1-panel > header {
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    box-sizing: border-box !important;
}

/* ========================================
   TOP PAGE 상단바
======================================== */

.g1-hero .g1-window-bar {
    height: 24px;
    min-height: 24px;
    box-sizing: border-box;

    padding: 3px 8px;

    /* るりのお部屋와 같은 계열의 연핑크 */
    background: linear-gradient(
        to bottom,
        #FAF5F7 0%,
        #FAF5F7 45%,
        #F3EAEE 100%
    );

    border: 0;
    border-bottom: 1px solid #E8DBE2;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.7);

    color: #fff;

    /* 연한 아웃라인 */
    text-shadow:
        -1px  0   1px rgba(220, 204, 212, 0.9),
         1px  0   1px rgba(220, 204, 212, 0.9),
         0   -1px 1px rgba(220, 204, 212, 0.9),
         0    1px 1px rgba(220, 204, 212, 0.9);
}


/* TOP PAGE 글자만 더 크고 굵게 */
.g1-hero .g1-window-bar span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    opacity: 1;
}

/* CLICKER 패널 전체를 아래로 3px만 연장 */
.g1-clicker {
    position: relative;
    bottom: -5px;
}


/* ♡ 홈페이지 전체 박스 살짝 넓히기 ♡ */

@media (min-width: 901px) {
    /* 전체 홈페이지 너비 */
    .g1commission-shell {
        max-width: 950px !important;
    }

    /* 왼쪽 / 가운데 / 오른쪽 */
    .g1commission-grid {
        grid-template-columns:
            200px minmax(0, 1fr) 205px !important;
        gap: 9px;
    }
}

/* ==========================================================
   RURI | 4-SIDE OUTER LACE
   Based on style(20261019-220440).css
   Decorations only: no grid/width/zoom/position changes.
   ========================================================== */
.g1commission-shell {
    overflow: visible; /* allow the lace to extend beyond the shell */
}

.g1commission-shell::before,
.g1commission-shell::after {
    content: "";
    position: absolute;
    pointer-events: none;
    box-sizing: border-box;
    z-index: 10;
}

/* top and bottom strips, both outside the shell */
.g1commission-shell::before {
    top: -28px;
    left: 0;
    width: 100%;
    height: calc(100% + 56px);
    background-image: url("./img/lace_top.png"), url("./img/lace_bottom.png");
    background-position: left top, left bottom;
    background-size: auto 30px, auto 30px;
    background-repeat: repeat-x, repeat-x;
}

/* left and right strips, both outside the shell */
.g1commission-shell::after {
    top: 0;
    left: -28px;
    width: calc(100% + 56px);
    height: 100%;
    background-image: url("./img/lace_left.png"), url("./img/lace_right.png");
    background-position: left top, right top;
    background-size: 30px auto, 30px auto;
    background-repeat: repeat-y, repeat-y;
}

/* =======================================================
   Compact homepage layout: omikuji in former heart slot,
   clicker in former calendar slot. Original widgets intact.
   ======================================================= */
@media (min-width: 901px) {
  .g1commission-grid { align-items: start; }
  .g1commission-left, .g1commission-right { align-self: start; position: static; }
  .g1-home-content { height: auto; flex: none; }
  .g1-hero { min-height: 335px; height: 335px; }
  .g1-summary-grid { height: 158px; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .g1commission-left > .g1-banner { flex: none; }
  .g1-banner-list { max-height: 180px; overflow-y: auto; }
  .g1commission-right > .g1-clicker { position: static; bottom: auto; flex: none; }
  .g1commission-right > .g1-clicker #g1CharacterClicker { max-height: 185px; }
}
.g1-summary-grid > .g1-omikuji { height: 100%; min-width: 0; overflow: hidden; }
.g1-summary-grid > .g1-omikuji .g1-omikuji-body { padding: 7px; }
.g1-summary-grid > .g1-omikuji #g1OmikujiButton { height: 72px; }
.g1commission-right > .g1-clicker { width: 100%; position: static; bottom: auto; }
@media (max-width: 680px) {
 .g1-summary-grid > .g1-omikuji { height: auto; min-height: 145px; }
 .g1commission-right { display: flex; flex-direction: column; }
 .g1commission-right > .g1-clicker { width: 100%; }
}

/* Banner images: responsive to the actual sidebar width, no distortion */
.g1-banner-list, .g1-banner-board-list { min-width: 0; width: 100%; }
.g1-banner-list a { width: 100%; max-width: 100%; height: auto; min-height: 0; flex: 0 0 auto; }
.g1-banner-list a img { display: block; width: 100%; max-width: 100%; height: auto; object-fit: contain; }
.g1-banner-board-list a > span { width: 100%; height: auto; min-height: 40px; }

/* FIX: place omikuji alongside recent uploads; fill remaining central height */
@media (min-width: 901px) {
  .g1-home-content { display: flex; flex-direction: column; min-height: 0; height: 610px; }
  .g1-home-content > .g1-hero { flex: 1 1 auto; height: auto; min-height: 0; }
  .g1-home-content > .g1-summary-grid { flex: 0 0 158px; height: 158px; min-height: 0; }
  .g1-summary-grid > .g1-omikuji { align-self: stretch; }
}
@media (min-width: 681px) and (max-width: 900px) {
  .g1-summary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); height: 158px; }
  .g1-summary-grid > .g1-omikuji { height: 100%; }
}
@media (max-width: 680px) {
  .g1-summary-grid { height: auto; grid-template-columns: 1fr; }
  .g1-summary-grid > .g1-omikuji { min-height: 145px; }
}

/* 2026-10-20: taller top page, smaller top margin */
@media (min-width: 901px) {
  body.g1commission-main-body { padding-top: 20px; }
  .g1-home-content { height: 690px; }
}
@media (min-width: 681px) and (max-width: 900px) {
  body.g1commission-main-body { padding-top: 12px; }
  .g1-hero { min-height: 415px; }
}

/* 2026-10-20: extra top breathing room, taller TOP PAGE, wider recent updates */
@media (min-width: 901px) {
  body.g1commission-main-body { padding-top: 34px; }
  .g1-home-content { height: 750px; }
  .g1-summary-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); }
  .g1-summary-grid > .g1-omikuji { width: auto; max-width: none; }
  .g1-summary-grid > .g1-omikuji #g1OmikujiButton { width: 100%; min-width: 0; }
}
@media (min-width: 681px) and (max-width: 900px) {
  body.g1commission-main-body { padding-top: 24px; }
  .g1-summary-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); }
  .g1-summary-grid > .g1-omikuji { width: auto; max-width: none; }
  .g1-summary-grid > .g1-omikuji #g1OmikujiButton { width: 100%; min-width: 0; }
}

/* 2026-10-20: restore Oekaki below summary, reduce TOP PAGE */
@media (min-width: 901px) {
  .g1-home-content { height: auto !important; flex: 0 0 auto !important; }
  .g1-home-content > .g1-hero { height: 460px !important; min-height: 460px !important; flex: 0 0 460px !important; }
  .g1-home-content > .g1-summary-grid { height: 158px; flex: 0 0 158px; }
}
.g1-oekaki-restored { min-width: 0; margin-top: 0; }
.g1-oekaki-restored > .g1-oekaki { width: 100%; height: 340px; min-height: 340px; }
.g1-oekaki-restored #g1OekakiCanvas { width: 100%; min-height: 0; flex: 1 1 auto; }
@media (max-width: 900px) {
  .g1-oekaki-restored > .g1-oekaki { height: 360px; min-height: 360px; }
}

/* Additional editable text/image widget between menu and banner */
.g1-custom-note { flex: 0 0 auto; min-height: 80px; }
.g1-custom-note-content { padding: 10px 12px; min-width: 0; font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; }
.g1-custom-note-content img, .g1-custom-note-content video, .g1-custom-note-content iframe { max-width: 100%; }
.g1-custom-note-content img, .g1-custom-note-content video { height: auto; }
.g1-custom-note-content table { display: block; max-width: 100%; overflow-x: auto; }
.g1-custom-note-content p { margin: 0 0 6px; }
.g1-custom-note-content p:last-child { margin-bottom: 0; }
.g1-custom-note-empty { color: #d8beca; text-align: center; }

/* Menu title bar and title-free editable MEMO */
.g1commission-left > .g1-nav { padding: 0; overflow: visible; }
.g1commission-left > .g1-nav > .g1-nav-title { width: 100%; margin: 0; }
.g1commission-left > .g1-nav > .g1-nav-links { padding: 5px 9px; }
.g1commission-left > .g1-custom-note { padding-top: 0; }
.g1commission-left > .g1-custom-note > .g1-custom-note-content { padding: 10px 12px; }


/* TOP PAGE 캐릭터 */
.g1-floating-character {
    position: absolute;
    left: 20px;
    right: auto;
    bottom: 20px;

    width: 450px;
    max-width: calc(100% - 40px);

    z-index: 1;
    pointer-events: none;

    animation: g1CharacterFloat 4s ease-in-out infinite;
}

.g1-floating-character img {
    display: block;
    width: 100%;
    height: auto;
}

/* 둥둥 떠다니는 모션 */
@keyframes g1CharacterFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* 모바일 */
@media (max-width: 768px) {
    .g1-floating-character {
        left: 12px;
        bottom: 15px;
        width: 210px;
        max-width: calc(100% - 24px);
    }
}

/* TOP PAGE: restore NOW LOADING to bottom-right without changing other widgets */
.g1-hero > .g1-loading {
    position: absolute;
    right: 13px;
    bottom: 11px;
    left: auto;
    top: auto;
    z-index: 8;
    background: rgba(255, 255, 255, .96);
}

/* Keep floating character inset and underneath the loading box */
.g1-hero > .g1-floating-character {
    left: 18px;
    bottom: 24px;
    z-index: 2;
}

@media (max-width: 768px) {
    .g1-hero > .g1-floating-character {
        left: 12px;
        bottom: 18px;
    }
}

/* 캐릭터를 왼쪽 하단에 밀착 */
.g1-hero .g1-floating-character {
    position: absolute;
    left: 0 !important;
    bottom: 0 !important;
    right: auto !important;
    margin: 0 !important;
    width: 450px;
    max-width: none;
    z-index: 1;
    pointer-events: none;
    animation: g1CharacterFloat 4s ease-in-out infinite;
}

.g1-hero .g1-floating-character img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

/* 캐릭터 클릭 허용 */
.g1-floating-character {
    pointer-events: auto !important;
    cursor: pointer;
}

/* 이미지 말풍선 */
.g1-character-bubble {
    position: absolute;

    /* 캐릭터 오른쪽에 배치 */
    left: 65%;
    top: 22%;

    width: 230px;
    aspect-ratio: 445 / 294;

    background: url('./img/message.png') center / contain no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px 25px 25px;
    box-sizing: border-box;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;

    pointer-events: none;
    z-index: 20;
}

.g1-character-bubble.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.g1-character-bubble span {
    color: #a88497;
    font-family: "Nosutaru", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    overflow-wrap: anywhere;
}



/* 말풍선 크기와 위치 */
.g1-hero .g1-character-bubble {
    left: 40%;
    top: -4%;
    width: 170px;
    padding: 22px 20px 18px;
}

/* 말풍선 대사 폰트 */
.g1-hero .g1-character-bubble span {
    font-family: "BMJUA", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    color: #ad8a9c;
    text-align: center;
}

.g1-character-bubble {
    white-space: pre-line;
}
/* ruri_main : floating three-column layout (design v1) */
@media (min-width: 901px) {
 body .g1commission-grid { display:grid !important; grid-template-columns: 175px minmax(0, 510px) 215px !important; justify-content:center; align-items:start; gap:34px !important; }
 body .g1commission-left, body .g1commission-right { position:static !important; min-width:0; }
 body .g1commission-content { height:510px !important; min-height:510px !important; max-height:510px !important; overflow:hidden !important; border:1px solid #ddd7e5; border-radius:5px; background:rgba(255,255,255,.68); box-shadow:0 3px 20px #a89cb01a; }
 body .g1-home-content:not([hidden]) { display:block !important; height:100% !important; min-height:0 !important; overflow-y:auto !important; overflow-x:hidden !important; scrollbar-width:thin; }
 body .g1-home-content > .g1-hero { height:430px !important; min-height:430px !important; flex:none !important; }
 body .g1-content-stage:not([hidden]) { display:flex !important; flex-direction:column; height:100% !important; min-height:0 !important; overflow:hidden !important; }
 body .g1-content-stage iframe { flex:1 1 auto !important; display:block; width:100% !important; height:100% !important; min-height:0 !important; max-height:none !important; border:0; }
 body .g1commission-left > :not(.g1-nav):not(.g1-banner) { display:none !important; }
 body .g1commission-left > .g1-nav { position:static !important; border:0 !important; box-shadow:none !important; background:transparent !important; overflow:visible !important; }
 body .g1-nav-title { display:none !important; }
 body .g1-nav-links { display:flex !important; flex-direction:column !important; align-items:flex-start !important; gap:12px !important; padding:32px 0 0 !important; background:transparent !important; }
 body .g1-nav-item { background:transparent !important; border:0 !important; box-shadow:none !important; padding:4px 8px !important; color:#bc8caa !important; text-shadow:0 0 6px #ffffffd9; }
 body .g1-nav-item em, body .g1-nav-item b { display:none !important; }
 body .g1-nav-item:hover, body .g1-nav-item.is-active { background:transparent !important; filter:drop-shadow(0 0 3px #d8a9d4); text-decoration:underline; text-underline-offset:5px; }
 body .g1-banner { width:215px !important; height:490px !important; min-height:0 !important; position:relative !important; background:rgba(255,255,255,.16) !important; border:1px solid #d8d4dd99 !important; border-radius:5px !important; box-shadow:0 4px 16px #a8a0b01c !important; backdrop-filter:blur(2px); overflow:hidden !important; }
 body .g1-banner .g1-widget-title { cursor:grab; user-select:none; background:rgba(245,243,248,.48) !important; }
 body .g1-banner.is-dragging .g1-widget-title { cursor:grabbing; }
 body .g1-banner-list { height:calc(100% - 30px) !important; max-height:none !important; overflow-y:auto !important; overflow-x:hidden; scrollbar-width:thin; background:transparent !important; }
 body .g1commission-right { display:block !important; }
 body .g1commission-right > :not(.g1-banner) { display:none !important; }
 body .g1-banner.ruri-dragged { position:fixed !important; z-index:10000 !important; margin:0 !important; }
}
@media (max-width:900px) {
 body .g1commission-left > .g1-nav { background:transparent !important; box-shadow:none !important; }
 body .g1commission-content { height: min(70vh, 560px) !important; overflow:hidden !important; }
 body .g1-home-content:not([hidden]) { height:100% !important; overflow-y:auto !important; }
 body .g1-content-stage:not([hidden]) { height:100% !important; display:flex !important; flex-direction:column; overflow:hidden !important; }
 body .g1-content-stage iframe { flex:1 !important; height:100% !important; min-height:0 !important; max-height:none !important; }
}

/* RURI MAIN v2: remove old surrounding frame; notice belongs to fixed center window */
.g1commission-shell { width:100% !important; max-width:none !important; min-height:0 !important; margin:0 !important; padding:0 !important; border:0 !important; border-radius:0 !important; background:transparent !important; box-shadow:none !important; overflow:visible !important; }
.g1commission-shell::before,.g1commission-shell::after { content:none !important; display:none !important; }
.g1commission-utility,.g1commission-header,.g1commission-footer { display:none !important; }
.g1commission-grid { border:0 !important; background:transparent !important; box-shadow:none !important; }
.g1commission-content { display:flex !important; flex-direction:column !important; padding:0 !important; }
.g1commission-content > .g1commission-marquee { flex:0 0 auto; margin:0 !important; width:100% !important; min-height:27px; border:0 !important; border-bottom:1px solid #e9dfe9 !important; background:rgba(255,255,255,.32) !important; }
.g1-home-content { flex:1 1 auto !important; min-height:0 !important; overflow-y:auto !important; overflow-x:hidden !important; }
.g1-home-content > .g1-hero { height:100% !important; min-height:0 !important; }
.g1-home-content .g1-summary-grid,.g1-home-content .g1-oekaki-restored { display:none !important; }
@media(min-width:901px) {
 body .g1commission-grid { grid-template-columns:155px minmax(0,540px) 215px !important; gap:34px !important; max-width:990px; margin:clamp(35px,13vh,130px) auto 0 !important; padding:0 16px !important; }
 body .g1commission-content { height:540px !important; min-height:540px !important; max-height:540px !important; }
 body .g1-home-content > .g1-hero { height:100% !important; min-height:0 !important; }
 body .g1commission-left > .g1-nav { background:transparent !important; border:0 !important; }
}
@media(max-width:900px) {
 body .g1commission-grid { margin:16px auto !important; padding:0 12px !important; }
 body .g1commission-content { height:min(80vw,540px) !important; min-height:360px !important; }
}


/* RURI MAIN v4: visible four-side lace around central window */
.g1commission-content { position:relative !important; overflow:visible !important; isolation:isolate; }
.g1commission-content::before, .g1commission-content::after {
 content:"" !important; display:block !important; position:absolute !important;
 pointer-events:none !important; z-index:8 !important; opacity:1 !important;
}
.g1commission-content::before {
 top:-24px !important; left:-12px !important; width:calc(100% + 24px) !important;
 height:calc(100% + 48px) !important;
 background-image:url('./img/lace_top.png'),url('./img/lace_bottom.png') !important;
 background-position:center top,center bottom !important;
 background-size:100% 26px,100% 26px !important;
 background-repeat:no-repeat,no-repeat !important;
}
.g1commission-content::after {
 top:-12px !important; left:-24px !important; width:calc(100% + 48px) !important;
 height:calc(100% + 24px) !important;
 background-image:url('./img/lace_left.png'),url('./img/lace_right.png') !important;
 background-position:left center,right center !important;
 background-size:26px 100%,26px 100% !important;
 background-repeat:no-repeat,no-repeat !important;
}
/* Single underline only; subtle halo */
.g1-nav .g1-nav-item, .g1-nav .g1-nav-item:hover,
.g1-nav .g1-nav-item:focus-visible,.g1-nav .g1-nav-item.is-active {
 text-decoration:none !important; filter:none !important;
 text-shadow:none !important;
}
.g1-nav .g1-nav-item > span { text-decoration:none !important; text-shadow:none !important; }
.g1-nav .g1-nav-item:hover > span,.g1-nav .g1-nav-item:focus-visible > span,
.g1-nav .g1-nav-item.is-active > span {
 text-shadow:0 0 3px rgba(215,161,187,.24) !important;
}
.g1-nav .g1-nav-item.is-active > span::after { transform:scaleX(1) !important; }
/* Notice is permanently visible at the top of the central window, no border */
.g1commission-content > .g1commission-marquee {
 display:flex !important; align-items:center !important; justify-content:center !important;
 position:relative !important; flex:0 0 28px !important; height:28px !important;
 min-height:28px !important; margin:0 !important; padding:0 10px !important;
 border:0 !important; border-bottom:0 !important; outline:0 !important;
 box-shadow:none !important; border-radius:0 !important;
 background:transparent !important; overflow:hidden !important;
 text-align:center !important;
}
.g1commission-content > .g1commission-marquee > span {
 display:block !important; position:static !important; width:auto !important;
 min-width:0 !important; max-width:100% !important;
 transform:none !important; animation:none !important; will-change:auto !important;
 overflow:hidden !important; white-space:nowrap !important; text-overflow:ellipsis !important;
 line-height:28px !important;
}
.g1commission-content > .g1commission-marquee .g1-marquee-copy { display:none !important; }

/* v5: scrolling announcement stays in the fixed header on every board */
.g1commission-content > .g1commission-marquee { justify-content:flex-start !important; }
.g1commission-content > .g1commission-marquee > span {
 display:flex !important; position:relative !important; flex:0 0 auto !important;
 width:max-content !important; max-width:none !important; min-width:max-content !important;
 overflow:visible !important; text-overflow:clip !important; white-space:nowrap !important;
 transform:translateX(0); animation:ruri-notice-scroll 24s linear infinite !important;
 will-change:transform !important;
}
@keyframes ruri-notice-scroll { from {transform:translateX(540px)} to {transform:translateX(-100%)} }
/* Hover/focus only: no persistent active-menu underline */
.g1-nav .g1-nav-item.is-active:not(:hover):not(:focus-visible) > span::after {transform:scaleX(0) !important;}
.g1-nav .g1-nav-item.is-active:not(:hover):not(:focus-visible) > span::before {opacity:0 !important;}
.g1-nav .g1-nav-item.is-active:not(:hover):not(:focus-visible) > span {text-shadow:none !important;}
@media (prefers-reduced-motion: reduce) {
 .g1commission-content > .g1commission-marquee > span {animation:none !important; transform:none !important;}
}

/* v6: TOP PAGE title bar matches BANNER title bar */
.g1-home-content .g1-hero > .g1-window-bar {
    height:21px !important;
    min-height:21px !important;
    box-sizing:border-box !important;
    padding:2px 7px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    background:rgba(245,243,248,.48) !important;
    border:0 !important;
    border-bottom:1px solid #E8DBE2 !important;
    border-radius:0 !important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.7) !important;
    color:#fff !important;
    font-family:"Nosutaru",var(--title-font-family,serif) !important;
    text-shadow:-1px 0 1px rgba(220,204,212,.9),1px 0 1px rgba(220,204,212,.9),0 -1px 1px rgba(220,204,212,.9),0 1px 1px rgba(220,204,212,.9) !important;
}
.g1-home-content .g1-hero > .g1-window-bar > span:first-child {
    font-size:13px !important;
    font-weight:700 !important;
    letter-spacing:.05em !important;
}

/* ruri_main v7: detached marquee, clean submenus, matching menu glow */
.ruri-center-stack { min-width:0; width:100%; display:flex; flex-direction:column; gap:9px; position:relative; }
.ruri-center-stack > .g1commission-content { width:100%; flex:0 0 auto; box-sizing:border-box; }
.ruri-center-stack > .g1commission-marquee {
 display:block !important; position:relative !important; flex:none !important;
 width:100% !important; height:24px !important; min-height:24px !important;
 box-sizing:border-box !important; margin:0 !important; padding:0 !important;
 border:0 !important; outline:0 !important; border-radius:0 !important;
 background:transparent !important; box-shadow:none !important;
 overflow:hidden !important; white-space:nowrap !important;
}
.ruri-center-stack > .g1commission-marquee > span {
 display:inline-block !important; position:absolute !important; left:0 !important; top:0 !important;
 width:max-content !important; min-width:max-content !important; max-width:none !important;
 white-space:nowrap !important; overflow:visible !important;
 line-height:24px !important; text-overflow:clip !important;
 animation:ruri-v7-ticker 19s linear infinite !important;
 will-change:transform !important;
}
@keyframes ruri-v7-ticker { 0% {transform:translateX(540px);} 100% {transform:translateX(-100%);} }
.g1-nav .g1-submenu, .g1-nav .g1-nav-group.is-open .g1-submenu,
.g1-nav .g1-nav-group:hover .g1-submenu, .g1-nav .g1-nav-group:focus-within .g1-submenu {
 border:0 !important; border-width:0 !important; outline:0 !important;
 background:transparent !important; box-shadow:none !important;
}
.g1-nav .g1-submenu a, .g1-nav .g1-submenu a:hover, .g1-nav .g1-submenu a:focus-visible {
 border:0 !important; outline:0 !important; background:transparent !important;
 box-shadow:none !important; text-decoration:none !important;
}
.g1-nav .g1-nav-item, .g1-nav .g1-nav-item > span { filter:none !important; text-shadow:none !important; }
.g1-nav .g1-nav-item:hover > span, .g1-nav .g1-nav-item:focus-visible > span {
 text-shadow:0 0 5px rgba(216,163,186,.55),0 0 12px rgba(236,200,216,.45) !important;
}
.g1-nav .g1-nav-item.is-active:not(:hover):not(:focus-visible) > span::after { transform:scaleX(0) !important; }
@media (min-width:901px) {
 body .ruri-center-stack > .g1commission-content { height:540px !important; min-height:540px !important; max-height:540px !important; }
}
@media (max-width:900px) {
 .ruri-center-stack > .g1commission-content { height:min(80vw,540px) !important; min-height:360px !important; }
 .ruri-center-stack > .g1commission-marquee > span {animation-name:ruri-v7-ticker-mobile !important;}
 @keyframes ruri-v7-ticker-mobile {from{transform:translateX(100vw)}to{transform:translateX(-100%)}}
}

/* ruri_main v8: wider and higher center, lower floating navigation, full-size lace */
@media (min-width:901px) {
 body .g1commission-grid {
   grid-template-columns:155px minmax(0,580px) 215px !important;
   max-width:1030px !important;
   margin-top:clamp(22px,9vh,88px) !important;
 }
 body .ruri-center-stack > .g1commission-content,
 body .g1commission-content {height:540px !important;min-height:540px !important;max-height:540px !important;}
 body .g1commission-left > .g1-nav {margin-top:48px !important;}
}
/* Lace is attached to the window, not the moving announcement.
   Original lace artwork is 150px/139px thick: don't squash it to 26px. */
.g1commission-content::before, .g1commission-content::after {
 display:block !important;content:"" !important;position:absolute !important;
 pointer-events:none !important;opacity:1 !important;visibility:visible !important;
 z-index:12 !important;filter:none !important;
}
.g1commission-content::before {
 top:-34px !important;bottom:-34px !important;left:-15px !important;right:-15px !important;
 width:auto !important;height:auto !important;
 background-image:url('./img/lace_top.png'),url('./img/lace_bottom.png') !important;
 background-position:center top,center bottom !important;
 background-size:100% 55px,100% 55px !important;
 background-repeat:no-repeat !important;
}
.g1commission-content::after {
 top:-15px !important;bottom:-15px !important;left:-34px !important;right:-34px !important;
 width:auto !important;height:auto !important;
 background-image:url('./img/lace_left.png'),url('./img/lace_right.png') !important;
 background-position:left center,right center !important;
 background-size:55px 100%,55px 100% !important;
 background-repeat:no-repeat !important;
}


/* ruri_main v9 — outer-only lace, lower navigation, unified page headers */
@media (min-width:901px) {
  body .g1commission-left > .g1-nav { margin-top:100px !important; }
}
/* Confine each decorative layer to the area OUTSIDE the center window.
   Previous full-window pseudo-elements painted lace over the content. */
body .g1commission-content { position:relative !important; overflow:visible !important; }
body .g1commission-content::before,
body .g1commission-content::after {
  content:"" !important; position:absolute !important; display:block !important;
  pointer-events:none !important; visibility:visible !important; opacity:1 !important;
  width:auto !important; height:auto !important; z-index:5 !important;
  border:0 !important; padding:0 !important; filter:none !important;
  background-repeat:no-repeat !important;
}
/* Top and bottom: a single continuous vertical strip outside each edge */
body .g1commission-content::before {
  top:-31px !important; bottom:-31px !important; left:0 !important; right:0 !important;
  background-image:url('./img/lace_top.png'),url('./img/lace_bottom.png') !important;
  background-position:center top,center bottom !important;
  background-size:100% 31px,100% 31px !important;
}
/* Left and right: only 31px outside the window; no lace on the content */
body .g1commission-content::after {
  top:0 !important; bottom:0 !important; left:-31px !important; right:-31px !important;
  background-image:url('./img/lace_left.png'),url('./img/lace_right.png') !important;
  background-position:left center,right center !important;
  background-size:31px 100%,31px 100% !important;
}
/* Page viewer header should have exactly the same styling as TOP PAGE/BANNER */
body .g1-content-stage > header {
  height:21px !important; min-height:21px !important; box-sizing:border-box !important;
  padding:2px 7px !important; display:flex !important; align-items:center !important;
  justify-content:space-between !important;
  background:rgba(245,243,248,.48) !important;
  border:0 !important; border-bottom:1px solid #E8DBE2 !important;
  border-radius:0 !important; box-shadow:inset 0 1px 0 rgba(255,255,255,.7) !important;
  color:#fff !important; font-family:"Nosutaru",var(--title-font-family,serif) !important;
  text-shadow:-1px 0 1px rgba(220,204,212,.9),1px 0 1px rgba(220,204,212,.9),0 -1px 1px rgba(220,204,212,.9),0 1px 1px rgba(220,204,212,.9) !important;
}
body .g1-content-stage > header > b {
  font-size:13px !important; font-weight:700 !important; letter-spacing:.05em !important;
}

/* ruri_main v10: smaller outside lace, lower menu, clear notice gap */
@media (min-width:901px) {
  body .g1commission-left > .g1-nav { margin-top:124px !important; }
}
/* Reduce the lace strip thickness from 31px to ~22px (about 30%). */
body .g1commission-content::before {
  top:-22px !important; bottom:-22px !important;
  background-size:100% 22px,100% 22px !important;
}
body .g1commission-content::after {
  left:-22px !important; right:-22px !important;
  background-size:22px 100%,22px 100% !important;
}
/* Lift the notice away from the top lace without changing the main window position. */
.ruri-center-stack { gap:20px !important; }
.ruri-center-stack > .g1commission-marquee { height:24px !important; min-height:24px !important; }


/* ruri_main v11 — repeat lace at native aspect ratio, anchor wing wallpaper left */
body .g1commission-content::before {
  background-size:auto 22px, auto 22px !important;
  background-repeat:repeat-x,repeat-x !important;
  background-position:left top,left bottom !important;
}
body .g1commission-content::after {
  background-size:22px auto,22px auto !important;
  background-repeat:repeat-y,repeat-y !important;
  background-position:left top,right top !important;
}
/* Wallpaper position follows the original configured --bg-position (center top). */

/* ruri_main v12: move the complete three-column layout to the right together */
@media (min-width:901px) {
  body .g1commission-grid {
    position:relative !important;
    left:65px !important;
  }
}
/* Menu hover icon begins at the LEFT edge of the text, not its right edge. */
body .g1-nav .g1-nav-item > span::before {
  left:0 !important;
  right:auto !important;
  margin-left:0 !important;
  transform:translate(-19px,3px) !important;
}
body .g1-nav .g1-nav-item:hover > span::before,
body .g1-nav .g1-nav-item:focus-visible > span::before {
  transform:translate(-19px,0) !important;
}

/* ruri_main v13: image flush to the 21px TOP PAGE title bar */
body .g1-home-content > .g1-hero > .g1-hero-image {
  top:21px !important;
  bottom:0 !important;
  left:0 !important;
  right:0 !important;
  width:100% !important;
  height:calc(100% - 21px) !important;
  margin:0 !important;
  padding:0 !important;
}
/* Match banner title-bar top to the main window's title-bar top.
   The center column begins with a 24px marquee and a 20px gap. */
@media (min-width:901px) {
  body .g1commission-right { margin-top:44px !important; }
  /* Keep dragged banners at their explicit viewport coordinates. */
  body .g1-banner.ruri-dragged { margin-top:0 !important; }
}

/* ruri_main v14 — small member shortcuts beneath floating menu */
body .g1commission-left > .g1-nav .ruri-member-shortcuts {
  display:flex !important; flex-wrap:wrap; justify-content:flex-start;
  gap:7px; margin:16px 0 0 7px; padding:0;
  border:0; background:transparent; box-shadow:none;
}
body .g1commission-left > .g1-nav .ruri-member-shortcuts a {
  display:inline-flex; align-items:center; justify-content:center;
  min-height:23px; padding:3px 10px; border-radius:12px;
  border:1px solid rgba(226,187,207,.68) !important;
  background:rgba(255,250,253,.65) !important;
  box-shadow:0 1px 4px rgba(218,172,194,.10) !important;
  color:#b886a2 !important; font-size:10px; font-weight:400;
  line-height:1.3; letter-spacing:0; text-decoration:none !important;
  text-shadow:none !important; white-space:nowrap;
  transition:background .18s,border-color .18s,transform .18s;
}
body .g1commission-left > .g1-nav .ruri-member-shortcuts a:hover,
body .g1commission-left > .g1-nav .ruri-member-shortcuts a:focus-visible {
  background:rgba(255,234,245,.94) !important;
  border-color:#d9a6c0 !important; transform:translateY(-1px);
}

/* ruri_main v15: square translucent white member buttons */
body .g1commission-left > .g1-nav .ruri-member-shortcuts a {
  border-radius:2px !important;
  border:1px solid #dcd8dc !important;
  background:rgba(255,255,255,.72) !important;
  box-shadow:none !important;
  color:#c58fa9 !important;
  text-shadow:none !important;
}
body .g1commission-left > .g1-nav .ruri-member-shortcuts a:hover,
body .g1commission-left > .g1-nav .ruri-member-shortcuts a:focus-visible {
  background:rgba(255,255,255,.92) !important;
  border-color:#cfc8ce !important;
}

/* ruri_main v16: centered member buttons with a softer pink label */
body .g1commission-left > .g1-nav .ruri-member-shortcuts {
  justify-content:center !important;
  margin:16px auto 0 !important;
  width:100% !important;
  gap:7px !important;
}
body .g1commission-left > .g1-nav .ruri-member-shortcuts a {
  color:#D5A9BD !important;
}

/* v17: center the member buttons beneath the visible menu text,
   rather than beneath the full-width navigation column. */
@media (min-width: 901px) {
  body .g1commission-left > .g1-nav .ruri-member-shortcuts {
    position: relative !important;
    left: -39px !important;
  }
}

/* ruri_main v19: Windows-style translucent hover selection */
body.g1commission-main-body .ruri-corner-image {
  position:fixed; top:20px; left:20px; width:68px;
  z-index:100; display:block; box-sizing:border-box;
}
body.g1commission-main-body .ruri-corner-image img {
  display:block; width:100%; height:auto;
  user-select:none; -webkit-user-drag:none;
}
body.g1commission-main-body .ruri-corner-image::after {
  content:""; position:absolute; inset:0;
  background:rgba(255,255,255,0.25);
  border:1px solid #cfcfcf; box-sizing:border-box;
  opacity:0; pointer-events:none; transition:opacity .15s ease;
}
body.g1commission-main-body .ruri-corner-image:hover::after {opacity:1;}


/* 왼쪽 메뉴 기본 글자색 */
body.g1commission-main-body .g1-nav .g1-nav-item,
body.g1commission-main-body .g1-nav .g1-submenu a {
    color: #999999 !important;
}

/* 마우스를 올렸을 때 */
body.g1commission-main-body .g1-nav .g1-nav-item:hover,
body.g1commission-main-body .g1-nav .g1-nav-item:focus-visible,
body.g1commission-main-body .g1-nav .g1-nav-item.is-active,
body.g1commission-main-body .g1-nav .g1-submenu a:hover {
    color: #888888 !important;
}
/* FC2 counter: align with the member shortcuts on desktop. */
@media (min-width: 901px) {
  body .g1commission-left > .g1-nav .ruri-fc2-counter {
    position: relative !important;
    left: -39px !important;
  }
}

/* ruri_main: configured logo above notice, without shifting the existing TOP PAGE */
body.g1commission-main-body .ruri-center-stack > .ruri-top-logo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 5;
  text-decoration: none;
}
body.g1commission-main-body .ruri-center-stack > .ruri-top-logo img {
  display: block;
  max-width: min(100%, 420px);
  max-height: 90px;
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (max-width: 900px) {
  body.g1commission-main-body .ruri-center-stack > .ruri-top-logo {
    position: relative;
    bottom: auto;
    margin: 0 0 2px;
  }
  body.g1commission-main-body .ruri-center-stack > .ruri-top-logo img {
    max-height: 70px;
    max-width: 100%;
  }
}

/* Wide centered logo: slightly narrower than the TOP PAGE panel. */
body.g1commission-main-body .ruri-center-stack > .ruri-top-logo img {
  width: 94% !important;
  max-width: 94% !important;
  max-height: none !important;
  height: auto !important;
  object-fit: contain !important;
}
@media (max-width: 900px) {
  body.g1commission-main-body .ruri-center-stack > .ruri-top-logo img {
    width: 94% !important;
    max-width: 94% !important;
    max-height: none !important;
  }
}
