/* Tsuki Izakaya / Moonlit Soft-Goth design system / Alpha 2.0.1
   Designed as a LAST-loaded, additive skin. No world logic or DB dependencies.
   Palette AA-targeted against dark plum surfaces; JS features retain legacy IDs. */
:root {
  --bg: #100a1a; --bg2: #1b1029;
  --surface: #21142d; --surface2: #301c3b;
  --line: #67415f; --lineSoft: #eec6e22a;
  --pink: #f0b0d1; --pink2: #dc91bf; --rose: #ffdfed;
  --gold: #f6d29f; --text: #fff0f7; --muted: #cdb9d2;
  --moon-panel: #21152ced; --moon-panel2: #2b1c38ee;
  --moon-border: #d49abb56; --moon-glow: 0 18px 50px #08030f70;
  --moon-radius: 18px; --moon-radius-lg: 26px;
  --max: 1220px;
}
html {scroll-padding-top: 105px}
body {
  background: radial-gradient(ellipse 75% 45% at 90% 1%,#7e3b6530,transparent 75%),
    radial-gradient(ellipse 70% 40% at -15% 35%,#5e386f29,transparent 75%),
    repeating-linear-gradient(135deg,#f9deec04 0 1px,transparent 1px 88px),#100a1a;
  color:var(--text);
}
::selection {background:#ad598d;color:#fff}
:where(a,button,input,select,textarea,summary):focus-visible {outline:2px solid var(--gold);outline-offset:3px}
:where(a,button,summary){-webkit-tap-highlight-color:transparent}
:where(h1,h2,h3){text-wrap:balance}
:where(p){overflow-wrap:break-word}
.section-kicker,.overline,.eyebrow{color:#f8b6d6}
.ambient-one {background:#7a3d6b31}
.ambient-two {background:#5c428434}
/* Lantern-glass shared shell */
.site-header {
  position:sticky;top:0;z-index:120;
  min-height:82px;
  background:linear-gradient(120deg,#1c1024f7,#180e21f3 62%,#2a1630f5);
  border-bottom:1px solid #c78ea457;
  box-shadow:0 10px 35px #0b07146b;
  backdrop-filter:blur(18px);
}
.site-header:after{content:"";position:absolute;bottom:-1px;left:3%;right:3%;height:1px;background:linear-gradient(90deg,transparent,#f8c5db71 35%,#f8d9aa65 60%,transparent);pointer-events:none}
.header-inner {min-height:82px;height:82px;gap:17px}
.brand {gap:11px;min-width:205px}
.brand-mark {width:44px;height:44px;border-radius:15px;border:1px solid #dba5c278;background:radial-gradient(circle at 30% 30%,#965881 0%,#4e2c53 38%,#291732 100%);color:#ffe5f1;box-shadow:0 0 25px #efb6d637,inset 0 1px #fff4}
.brand-name{font-size:22px;color:#fff5f7}
.brand-name>span{color:#edb2d3}
.brand-name small{color:#e0b6d0;letter-spacing:.19em}
.primary-nav{gap:7px}
.primary-nav>a,.nav-worlds>summary{display:inline-flex;align-items:center;min-height:40px;padding:9px 11px;border-radius:11px;color:#f0d8e7;font-size:11px;font-weight:700;white-space:nowrap}
.primary-nav>a:hover,.nav-worlds>summary:hover,.primary-nav>a.is-current,.nav-worlds[open]>summary{background:#e2a3c21c;color:#ffeaf3}
.primary-nav>a:after{display:none}
.primary-nav>a.is-current{box-shadow:inset 0 -2px #f8c7dc80}
.nav-worlds{position:relative}
.nav-worlds summary{cursor:pointer;list-style:none;user-select:none}
.nav-worlds summary::-webkit-details-marker{display:none}
.nav-worlds summary span{margin-left:8px;color:var(--gold);transition:transform .2s}
.nav-worlds[open] summary span{transform:rotate(180deg)}
.nav-worlds-panel{position:absolute;z-index:200;right:0;top:calc(100% + 14px);width:255px;padding:10px;border:1px solid #b880ae80;background:#251630f9;box-shadow:0 20px 45px #05040ce0;border-radius:15px;display:grid;gap:4px;backdrop-filter:blur(12px)}
.nav-worlds-panel:before{content:"";position:absolute;inset:-12px 0 auto;height:12px}
.nav-worlds-panel a{display:grid;grid-template-columns:30px 1fr;grid-template-rows:auto auto;align-items:center;padding:9px 12px;border-radius:9px;color:#ffe3ed;font-size:12px;font-weight:700}
.nav-worlds-panel a:hover,.nav-worlds-panel a:focus-visible{background:#e3afd21c}
.nav-worlds-panel a>span{grid-row:1/3;font:21px Georgia;color:#f4c69f}
.nav-worlds-panel a>small{grid-column:2;color:#ccb5ce;font-size:10px;font-weight:500}
.account-pill,.owner-nav{border-color:#b17a9e79;background:#37203e;box-shadow:inset 0 1px #ffffff13}
.account-pill{min-height:42px;border-radius:12px}
.owner-nav:hover,.account-pill:hover{background:#573157}
.nav-join{white-space:nowrap}
/* Accessible consistent controls */
.btn{border-radius:12px;min-height:48px;box-shadow:none;transition:transform .18s ease,border-color .18s,background .18s,box-shadow .18s}
.btn-primary{color:#271324;background:linear-gradient(130deg,#ffdfeb,#eab2d2 85%);box-shadow:0 9px 26px #d487b71b}
.btn-primary:hover:not(:disabled){background:linear-gradient(130deg,#fff1f6,#ffd3e6);box-shadow:0 12px 32px #edb1d33d}
.btn-outline{background:#2f1c3aee;border-color:#c48dae89;color:#ffe5f1}
.btn-outline:hover:not(:disabled){border-color:#edb8d5;background:#533052}
button:disabled,.btn:disabled{opacity:.56;cursor:not-allowed}
:where(main) input:not([type=checkbox]):not([type=radio]):not([type=hidden]),:where(main) textarea,:where(main) select{border:1px solid #976a91;background:#1c1229;color:#fff0f8;border-radius:10px;min-height:42px}
:where(main) input:not([type=checkbox]):not([type=radio]):not([type=hidden]):focus,:where(main) textarea:focus,:where(main) select:focus{border-color:#f8c2de;box-shadow:0 0 0 3px #eaaacc22}
/* Moonlit scenic home; actual copy and links stay unchanged */
.home-hero {background:linear-gradient(90deg,#120b19f9 3%,#140b1dd6 43%,#170d20ce 100%),url('/assets/tsuki-moonlit-garden.webp') center/cover no-repeat;border-bottom:1px solid #ce95b333}
.home-hero:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,transparent 83%,#100a1a 100%)}
.hero-grid{position:relative;z-index:1;min-height:655px;padding-top:45px;padding-bottom:65px}
.hero-text h1{font-size:clamp(52px,6.6vw,88px);text-shadow:0 6px 32px #0b0511b8}
.hero-lead{font-size:18px}
.hero-detail{color:#e4cde0;font-size:14px}
.hero-art {min-height:545px;border:1px solid #e1aed389;border-radius:210px 210px 20px 20px;background:#211227aa;box-shadow:0 25px 75px #06020cc7,0 0 35px #f4a7cf24,inset 0 0 25px #d687b329}
.hero-art-bg{filter:brightness(1.12) saturate(1.2)}
.hero-gradient{background:linear-gradient(180deg,#1a0d2070,#1b0d2019 33%,#140b1bc7 100%)}
.hero-brand{width:min(315px,69%);top:24%}
.hero-note{background:#281733dc;border-color:#db9dba83;border-radius:15px;box-shadow:0 10px 30px #1109184d}
.hero-hint{color:#e5bad4}
.ticker{background:linear-gradient(90deg,#301a36,#271633,#381d3c);border-block:1px solid #b377a855}
.ticker-content{color:#ecc3dd}
/* A consistent frame for world entrances */
.world-card{border-radius:20px;min-height:397px;overflow:hidden;background:linear-gradient(155deg,#352044,#1b132a 75%);border:1px solid #a8719d75;box-shadow:0 15px 35px #0d071952}
.world-card:hover{transform:translateY(-5px);border-color:#f4b9d8;box-shadow:0 24px 50px #0a0413b5,0 0 28px #e9a6c11e}
.world-card:focus-visible{outline-offset:5px}
.world-card-top{background:#1a1026cf;padding:17px 20px}
.world-status{border-color:#b47b9c91;background:#57345858;color:#f8d4e6}
.world-art{background:linear-gradient(180deg,#4c284783,#170f25b3),url('/assets/tsuki-moonlit-garden.webp') center 43%/cover}
.world-anime .world-art{background-color:#5b2c55}
.world-games .world-art{background-color:#56396e}
.world-town .world-art{background-color:#2e454e}
.world-sync .world-art{background-color:#5e3a45}
.world-radio .world-art{background-color:#41466a}
.world-create .world-art{background-color:#442a4e}
.world-symbol{filter:drop-shadow(0 5px 16px #100818);color:#ffe3ee}
.world-card-content{background:linear-gradient(145deg,#2c1a39,#20142c)}
.world-enter{color:#ffe1ef}
.world-enter span{color:var(--gold)}
/* Club: lounge surfaces and dependable mascot asset */
.club-feature{background:linear-gradient(90deg,#1b1027eb,#33203ce3),url('/assets/tsuki-moonlit-garden.webp') center/cover}
.club-art-cat{font-size:0}
.club-art-cat img{width:150px;height:160px;object-fit:contain;filter:drop-shadow(0 15px 15px #0c0713a8)}
.jiji-button{display:inline-flex;align-items:center;gap:9px;border-radius:12px}
.jiji-button img{width:30px;height:32px;object-fit:contain}
.club-welcome{border-radius:var(--moon-radius-lg);border-color:#d39bbe72;background:linear-gradient(100deg,#2f1a3eea 0%,#291735e3 55%,#321d3c8a),url('/assets/tsuki-moonlit-garden.webp') 90% 44%/cover;box-shadow:var(--moon-glow)}
.club-welcome-symbol{isolation:isolate}
.glowing-moon{opacity:.75}
.floating-cat{font-size:0;bottom:2px;right:14%}
.floating-cat img{width:120px;height:132px;object-fit:contain;filter:drop-shadow(0 7px 18px #090712d1)}
.member-id-card{border-color:#d5a3c680;border-radius:20px;background:linear-gradient(125deg,#593152,#2d1b3d 57%,#22152e);box-shadow:var(--moon-glow)}
.member-id-avatar,.side-avatar,.member-avatar{overflow:hidden}
.avatar-jiji{display:block;width:85%;height:85%;object-fit:contain;max-width:100%;margin:auto}
.avatar-option .avatar-jiji{width:43px;height:43px}
.side-moon-card,.side-task-card,.admin-box,.admin-stats>div,.settings-panel,.account-panel{border-radius:var(--moon-radius);border-color:#a47a9d78;background:linear-gradient(145deg,#2c1b3a,#21152ef4);box-shadow:0 11px 32px #0b05143a}
.club-door{border-radius:14px;border-color:#b282a17b;background:linear-gradient(130deg,#36213fbf,#22172f)}
.club-door:hover{border-color:#dcb0c9;background:#4a2b51}
.member-chip,.verification-callout,.security-overview{border-radius:12px}
.account-panel{padding:clamp(24px,3vw,38px)}
.account-story .account-decoration{color:#e9b2cf;text-shadow:0 4px 28px #eac3d05c}
.admin-stats>div{background:linear-gradient(140deg,#3c2543,#281a37)}
.admin-table th{color:#f1bdd6}
.admin-table td{color:#ead3e5}
/* Shared inner-page headers and forms */
.interior-hero,.service-hero{position:relative}
.interior-hero:before,.service-hero:before{content:'✦  ❀  ✧';position:absolute;right:1%;top:24px;color:#edbad083;letter-spacing:23px;pointer-events:none}
.account-panel input,.settings-panel input,.settings-panel textarea{background:#1a1124}
:where(.admin-page,.settings-shell,.club-dashboard) .section-kicker{letter-spacing:.21em}
.feature-placeholder,.service-notice{border-radius:var(--moon-radius);border-color:#bb8eab80}
.missing-cat img{width:120px;height:130px;object-fit:contain}
/* Footer feels like a sheltered izakaya */
.site-footer{border-top:1px solid #d69dbd71;background:linear-gradient(180deg,#25162f,#160e21)}
.footer-inner{padding-top:55px;padding-bottom:49px}
.footer-logo span{color:var(--gold)}
.footer-cat{display:flex;align-items:center;gap:7px;font-size:inherit}
.footer-cat img{width:64px;height:64px;object-fit:contain}
.footer-col a:hover{color:#ffe7f3}
.footer-bottom{border-top:1px solid #bd92b04f}
/* Respect independent application internals, especially games, Atelier and player */
@media(max-width:1170px){.primary-nav{gap:0}.primary-nav>a,.nav-worlds>summary{padding-inline:7px}.brand{min-width:172px}.brand-name{font-size:20px}}
@media(max-width:880px){
  .site-header,.header-inner{height:72px;min-height:72px}
  .mobile-toggle{display:flex}
  .primary-nav{display:none;position:absolute;top:72px;left:0;right:0;z-index:150;max-height:calc(100dvh - 75px);overflow-y:auto;padding:17px max(20px,calc((100vw - 1220px)/2));background:#24162ff7;border-bottom:1px solid #b980a667;box-shadow:0 25px 55px #0b0515bd;backdrop-filter:blur(18px);flex-direction:column;gap:3px;align-items:stretch}
  .primary-nav.is-open{display:flex}
  .primary-nav>a,.nav-worlds>summary{width:100%;min-height:46px;padding:10px 15px;border-radius:10px;font-size:13px}
  .nav-worlds-panel{position:static;width:100%;margin-top:3px;box-shadow:none;background:#311f3de7}
  .nav-worlds-panel:before{display:none}
  .hero-grid{gap:25px}
}
@media(max-width:700px){
  .hero-grid{grid-template-columns:1fr;min-height:0;padding-top:60px;padding-bottom:65px}
  .hero-text h1{font-size:clamp(48px,10vw,70px)}
  .hero-art{min-height:410px;max-width:490px;margin-inline:auto}
  .world-grid{gap:15px}
  .club-welcome{background-position:70% center}
}
@media(max-width:600px){
  .site-header,.header-inner{height:69px;min-height:69px}
  .header-inner{gap:8px}
  .brand-mark{width:37px;height:37px;border-radius:12px}
  .brand{min-width:0}.brand-name{font-size:18px}.brand-name small{font-size:6px;letter-spacing:.12em}
  .account-pill{padding:7px 8px}.account-pill>span:nth-child(2){max-width:68px}
  .primary-nav{top:69px}
  .section{padding-block:65px}
  .hero-grid{padding-top:42px}
  .hero-art{min-height:365px;border-radius:145px 145px 16px 16px}
  .hero-brand{width:65%}
  .hero-note{bottom:16px;left:14px;right:14px;padding:12px}
  .world-card{min-height:360px}
  .club-welcome{padding:28px 23px}
  .floating-cat{right:17%}.floating-cat img{width:100px}
  .footer-inner{gap:28px}
  .footer-cat img{width:54px;height:54px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .btn,.world-card,.primary-nav a,.nav-worlds summary{transition:none!important}
}
/* Small layout guards verified in desktop and mobile previews. */
html,body{overflow-x:clip}
.brand-name small{display:block;font-family:var(--sans);font-size:7px;font-weight:700;line-height:1.1;white-space:nowrap}
@media(max-width:600px){.brand-name small{font-size:6px}}
.ambient-one{left:0;width:min(300px,75vw)}
.ambient-two{right:0;width:min(280px,70vw)}
