/* Goemon mobile refresh v1 — responsive visual layer, preserves existing app logic */
:root{
  --bg:#090910;--surface:#12121b;--surface2:#191925;--card:#15151f;
  --text:#fbfaff;--muted:#a3a0b3;--line:rgba(255,255,255,.09);
  --pink:#ff477e;--violet:#8257ff;--cyan:#42d8e7;--gold:#ffc95d;
  --header:62px;--nav:66px;--radius:20px
}
html,body{background:#08080e}
body{font-size:14px;-webkit-tap-highlight-color:transparent}
.goemon-app{
  width:min(100%,760px);
  background:
    radial-gradient(ellipse at 100% 0,rgba(123,87,255,.13),transparent 32%),
    radial-gradient(ellipse at 0 18%,rgba(255,71,126,.075),transparent 26%),
    var(--bg)
}
.app-header{
  height:calc(var(--header) + env(safe-area-inset-top));
  padding:env(safe-area-inset-top) 15px 0;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  background:rgba(9,9,16,.88);
  border-bottom-color:rgba(255,255,255,.075)
}
.brand{gap:10px;min-width:0}
.brand-orb{width:36px;height:36px;border-radius:13px;overflow:hidden}
.brand-orb img{width:100%;height:100%;object-fit:cover}
.brand strong{font-size:12px;letter-spacing:.13em}
.header-actions{gap:7px;align-items:center}
.round-btn,.profile-dot{width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.055);border-color:rgba(255,255,255,.08)}
.round-btn .ui-icon{width:17px;height:17px}
.app-screen{
  min-height:calc(100dvh - var(--header));
  padding:14px 14px calc(var(--nav) + 24px + env(safe-area-inset-bottom));
  overflow:clip
}
.bottom-nav{
  width:min(100%,760px);
  height:calc(var(--nav) + env(safe-area-inset-bottom));
  padding:6px 12px calc(6px + env(safe-area-inset-bottom));
  background:rgba(12,12,20,.94);
  border-top:1px solid rgba(255,255,255,.09);
  box-shadow:0 -12px 36px rgba(0,0,0,.2)
}
.bottom-nav button{gap:4px;font-size:18px;min-width:0}
.bottom-nav .nav-icon{display:grid;place-items:center;width:34px;height:29px;border-radius:12px}
.bottom-nav button.active .nav-icon{color:#fff;background:linear-gradient(135deg,rgba(255,71,126,.2),rgba(130,87,255,.24))}
.bottom-nav .ui-icon{width:19px;height:19px}
.bottom-nav small{font-size:10px;letter-spacing:.01em}
.hero-banner,.banner-slider{border-radius:23px}
.hero-banner{min-height:180px;padding:20px}
.hero-copy{max-width:78%}
.hero-copy .eyebrow{font-size:10px;letter-spacing:.16em}
.hero-copy h1{font-size:clamp(23px,5vw,31px);line-height:1.08;letter-spacing:-.035em}
.hero-copy p{font-size:12px;line-height:1.5;max-width:310px}
.banner-slider{overflow:hidden;position:relative}
.banner-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.banner-track::-webkit-scrollbar{display:none}
.cms-banner{flex:0 0 100%;min-width:100%;height:clamp(150px,42vw,225px);border-radius:23px;overflow:hidden;position:relative;scroll-snap-align:center;background:linear-gradient(135deg,#38203e,#282454 60%,#171729)}
.cms-banner-bg{width:100%;height:100%;object-fit:cover;display:block}
.cms-banner:after{content:"";position:absolute;inset:35% 0 0;background:linear-gradient(0deg,rgba(5,5,12,.25),transparent);pointer-events:none}
.banner-dots{position:absolute;bottom:10px;left:0;right:0;display:flex;justify-content:center;gap:5px}
.banner-dots button{width:6px;height:6px;border-radius:99px;padding:0;border:0;background:rgba(255,255,255,.5)}
.banner-dots button.active{width:18px;background:#fff}
.live-story-wrap{margin:18px 0 20px}
.story-head{display:flex;align-items:center;justify-content:space-between;margin:0 1px 12px}
.story-head strong{font-size:15px;letter-spacing:-.02em}
.story-head button{display:flex;align-items:center;gap:4px;border:0;background:transparent;color:#b5a5ff;font-size:11px;font-weight:800}
.live-stories{display:flex;gap:15px;overflow-x:auto;padding:2px 1px 5px;scrollbar-width:none}
.live-stories::-webkit-scrollbar{display:none}
.live-story{flex:0 0 61px;width:61px;border:0;background:transparent;padding:0;display:flex;flex-direction:column;align-items:center;gap:7px}
.story-ring{width:59px;height:59px;border-radius:50%;padding:3px;background:linear-gradient(135deg,#ff477e,#ffbd5a 45%,#8257ff);display:grid;place-items:center;box-shadow:0 5px 18px rgba(255,71,126,.12)}
.story-avatar{width:100%;height:100%;border:2px solid #0d0c15;border-radius:50%;overflow:hidden}
.story-avatar img{width:100%;height:100%;object-fit:cover}
.live-story small{max-width:62px;font-size:10px;color:#d9d6e4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.home-intro{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:20px 1px 4px}
.home-intro>div{min-width:0;display:grid;gap:4px}
.home-intro .eyebrow{font-size:9px;letter-spacing:.15em;color:#a59bbd}
.home-intro strong{font-size:16px;line-height:1.3;letter-spacing:-.025em}
.support-mini{display:flex;align-items:center;gap:5px;border:1px solid var(--line);background:rgba(255,255,255,.045);border-radius:999px;padding:8px 11px;font-size:10px;white-space:nowrap}
.section-head{margin:22px 1px 12px;align-items:center}
.section-head h2{font-size:18px;letter-spacing:-.035em;margin:3px 0 0}
.section-head .eyebrow{font-size:9px;letter-spacing:.14em}
.section-head button,.text-btn{font-size:11px;padding:6px 0}
.category-row{gap:8px;padding:2px 1px 8px;margin:0 -1px}
.chip{padding:9px 15px;font-size:11px;border-radius:999px;background:rgba(255,255,255,.045);border-color:rgba(255,255,255,.07);color:#b3afc0}
.chip.active{background:linear-gradient(110deg,#ff477e,#8959ff);box-shadow:0 6px 18px rgba(142,73,197,.2);color:white}
.live-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 11px}
.live-card{min-width:0;transition:transform .18s ease}
.live-card:active{transform:scale(.985)}
.live-thumb{aspect-ratio:.76;border-radius:18px;background:#1a1725;border:1px solid rgba(255,255,255,.09);box-shadow:0 8px 24px rgba(0,0,0,.15)}
.live-thumb img{transition:transform .35s ease}
.live-card:hover .live-thumb img{transform:scale(1.025)}
.live-thumb .fallback-art{font-size:76px}
.live-pill{left:9px;top:9px;padding:5px 8px;border-radius:7px;font-size:8px;letter-spacing:.07em}
.viewer-pill{right:8px;top:9px;padding:5px 7px;font-size:9px;border:1px solid rgba(255,255,255,.1)}
.event-corner{font-size:9px;left:9px;bottom:9px;padding:6px 8px}
.live-info{gap:8px;padding:9px 2px 0;align-items:center}
.mini-avatar{width:34px;height:34px;border-radius:50%;font-size:10px;overflow:hidden}
.mini-avatar img{width:100%;height:100%;object-fit:cover}
.live-info strong{font-size:11px;line-height:1.35}
.live-info small{font-size:9px;line-height:1.35;margin-top:3px}
.live-info .verified{vertical-align:middle}
.event-strip{gap:11px;padding-bottom:4px}
.event-card{border-radius:17px;overflow:hidden}
.panel,.event-card-full,.moment-card,.profile-card,.creator-level-card{border-radius:20px}
.panel{padding:15px}
.btn{min-height:43px;border-radius:13px;font-size:12px}
.field>span{font-size:11px}
.field input,.field textarea,.field select,.search-box{font-size:14px;border-radius:13px}
.empty{padding:25px 16px}
.empty strong{font-size:14px}
.empty p{font-size:12px;line-height:1.55}
.toast{bottom:calc(var(--nav) + env(safe-area-inset-bottom) + 12px)}
/* More breathing room on tablets without stretching portrait cards */
@media(min-width:600px){
  .app-screen{padding-inline:20px}
  .live-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
  .live-thumb{aspect-ratio:.78}
  .live-stories{gap:18px}
}
@media(max-width:390px){
  .app-screen{padding-left:11px;padding-right:11px}
  .app-header{padding-left:11px;padding-right:11px}
  .brand strong{font-size:10px}
  .header-actions{gap:5px}
  .round-btn,.profile-dot{width:33px;height:33px}
  .live-grid{gap:13px 9px}
  .live-thumb{border-radius:15px}
  .live-info{gap:6px}
  .live-info strong{font-size:10px}
  .mini-avatar{width:30px;height:30px}
  .home-intro strong{font-size:14px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}
}
