.fg-app-shell{width:min(1500px,100%);margin:0 auto;padding:14px;display:grid;grid-template-columns:230px minmax(0,1fr);gap:16px;align-items:start}.fg-sidebar{position:sticky;top:14px;height:calc(100dvh - 28px);display:flex;flex-direction:column;padding:15px;border:1px solid var(--line-strong);border-radius:24px;background:rgba(255,255,255,.97);box-shadow:var(--shadow);overflow:hidden}.fg-side-brand{display:flex;align-items:center;gap:10px}.fg-side-brand img{width:58px;height:58px;object-fit:contain}.fg-side-brand strong{display:block;font-size:1.18rem}.fg-side-brand small{display:block;margin-top:2px;font-size:.61rem;letter-spacing:.11em;color:#198e9d;font-weight:900}.fg-side-nav{display:grid;gap:7px;margin-top:20px}.fg-side-nav button{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;gap:9px;min-height:47px;padding:7px 10px;border:1px solid var(--line);border-radius:14px;background:#fff;color:#294b5d;text-align:left;font-weight:850}.fg-side-nav button span{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:#eff7f9}.fg-side-nav button span img{width:17px;height:17px}.fg-side-nav button.active{background:linear-gradient(135deg,#199bc8,#20aaa0);color:#fff;border-color:transparent;box-shadow:0 8px 18px rgba(28,151,171,.20)}.fg-side-nav button.active img{filter:brightness(0) invert(1)}.fg-side-player{margin-top:auto;display:grid;gap:7px}.fg-side-account{display:flex;align-items:center;gap:8px;min-height:44px;padding:7px 9px;border:1px solid var(--line);border-radius:13px;background:#fff;color:#27485a;font-weight:850}.fg-side-account img{width:24px;height:24px}.fg-side-mini{display:grid;grid-template-columns:1fr 1fr;gap:6px}.fg-side-mini button{min-height:40px;padding:5px 7px;border:1px solid var(--line);border-radius:11px;background:#f9fbfc;color:#395869;font-weight:800;font-size:.66rem}.fg-mobile-nav{display:none}.fg-content-shell{min-width:0;display:flex;flex-direction:column;gap:11px}.fg-content-top{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;padding:3px 3px 0}.fg-content-top.compact{align-items:center}.fg-top-copy small{font-size:.62rem;letter-spacing:.16em;color:#118d9d;font-weight:900}.fg-top-copy h1{margin:4px 0 6px;font-size:clamp(2rem,3vw,2.7rem);line-height:1}.fg-top-copy p{margin:0;max-width:720px;color:#5f7785;font-size:.87rem;line-height:1.4}.fg-top-actions{display:flex;gap:8px;flex-wrap:wrap}.fg-top-actions button{min-height:42px;padding:0 15px}.fg-page-footer{display:flex;justify-content:space-between;align-items:center;color:#70838d;font-size:.68rem;padding:1px 3px}.fg-page-footer b{color:#16899b}.fg-how-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.fg-how-card{position:relative;min-height:210px;padding:14px;border:1px solid var(--line);border-radius:19px;background:#fff;box-shadow:var(--shadow-soft)}.how-number{position:absolute;left:12px;top:12px;width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#169bc7;color:#fff;font-size:.72rem;font-weight:900}.fg-how-art{height:105px;margin:3px 0 10px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(145deg,#e9f7dd,#cde8ac);overflow:hidden}.fg-how-card h2{margin:0 0 6px;font-size:1rem}.fg-how-card p{margin:0;color:var(--muted);font-size:.78rem;line-height:1.4}.how-mini-line{width:90%;height:86%;display:grid;grid-template-columns:repeat(3,1fr);align-items:center}.how-mini-line>*{width:100%;height:100%}.how-big-piece{position:relative;width:88px;height:88px}.how-big-piece .pipe-piece{width:100%;height:100%}.how-cursor{position:absolute;right:-3px;bottom:-3px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#168da1;font-weight:900;box-shadow:0 5px 14px rgba(18,65,86,.18)}.how-rotate-icon{position:absolute;right:-4px;bottom:-4px;width:30px;height:30px;padding:6px;border-radius:50%;background:#fff;box-shadow:0 5px 14px rgba(18,65,86,.18)}.how-obstacles{display:flex;align-items:center;gap:13px}.how-obstacles img{width:44px;height:44px}.how-stars{font-size:2.3rem;color:#f1b832;letter-spacing:.05em;text-shadow:0 2px 0 #aa7914}.how-source{width:86px;height:86px}.how-source>*{width:100%;height:100%}.fg-guide-tip{display:flex;align-items:center;gap:9px;padding:10px 13px;border:1px solid var(--line);border-radius:15px;background:#fff;box-shadow:var(--shadow-soft);color:#506d7c;font-size:.78rem}.fg-guide-tip img{width:24px;height:24px}.journey-current-card{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:14px;padding:18px;border:1px solid var(--line);border-radius:22px;background:#fff;box-shadow:var(--shadow-soft)}.journey-current-copy small,.journey-history-head small,.journey-progress-card small{font-size:.59rem;letter-spacing:.14em;color:#178c9c;font-weight:900}.journey-current-copy h2{margin:4px 0;font-size:1.75rem}.journey-current-copy span{color:var(--muted);font-size:.78rem}.journey-current-badge{width:68px;height:68px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,#1599cb,#22aa9e);color:#fff}.journey-current-badge span{font-size:1.45rem;font-weight:900}.journey-play{min-width:102px;min-height:42px}.journey-progress-card{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.journey-progress-card>div{padding:10px 11px;border:1px solid var(--line);border-radius:14px;background:#fff}.journey-history{margin-top:3px}.journey-history-head{display:flex;align-items:end;justify-content:space-between;margin-bottom:7px}.journey-history-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:7px}.journey-history-node{min-height:64px;padding:8px;border:1px solid var(--line);border-radius:13px;background:#fff;display:grid;grid-template-columns:1fr auto;grid-template-rows:auto auto;text-align:left}.journey-history-node>span{font-weight:900}.journey-history-node>b{color:#d3a52b}.journey-history-node>small{grid-column:1/-1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted);font-size:.54rem}.journey-empty{padding:16px;border:1px dashed var(--line-strong);border-radius:14px;color:var(--muted)}

/* v0.54 compact effects control */
.fg-haptics-chip{display:none;min-height:28px;padding:0 9px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#4f6d7c;font:inherit;font-weight:800}
.fg-side-mini [data-haptics]{grid-column:1/-1}

/* v0.67 compact sidebar utilities */
.fg-util-btn{display:flex!important;align-items:center;justify-content:center;gap:5px}
.fg-util-btn img{width:15px;height:15px;flex:0 0 auto}
.fg-util-btn span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* v0.68 sidebar audit: compact account, progress strip, icon-first utilities. */
.fg-sidebar{padding:14px}
.fg-side-nav{gap:6px;margin-top:16px}
.fg-side-nav button{min-height:44px}
.fg-side-player{gap:6px;padding-top:10px;border-top:1px solid #e0ebef}
.fg-side-account{position:relative;min-height:48px;padding:6px 9px;background:linear-gradient(145deg,#fbfdfe,#f2f8fa)}
.fg-side-account>span{min-width:0;display:grid;gap:1px;text-align:left}
.fg-side-account>span>b{font-size:.75rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fg-side-account>span>small{font-size:.48rem;color:#6a818c;font-weight:750}
.fg-side-account>i{margin-left:auto;width:8px;height:8px;border-radius:50%;background:#c4d1d6;box-shadow:0 0 0 3px rgba(196,209,214,.2)}
.fg-side-account>i.online{background:#2db879;box-shadow:0 0 0 3px rgba(45,184,121,.16)}
.fg-side-progress{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.fg-side-progress>span{min-width:0;height:38px;padding:4px 5px;border:1px solid var(--line);border-radius:10px;background:#f7fbfc;display:flex;align-items:center;justify-content:center;gap:4px;color:#274b5d}
.fg-side-progress img{width:14px;height:14px;flex:0 0 auto}
.fg-side-progress b{font-size:.61rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fg-side-mini{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.fg-side-mini button{min-width:0;min-height:50px;padding:5px 3px}
.fg-util-btn{flex-direction:column!important;gap:3px!important}
.fg-util-btn img{width:18px!important;height:18px!important}
.fg-util-btn span{font-size:.56rem}
.fg-side-haptics{width:100%;min-height:34px;padding:0 9px;border:1px solid var(--line);border-radius:10px;background:#f9fbfc;color:#496474;display:grid;grid-template-columns:16px 1fr auto;align-items:center;gap:6px;font-size:.57rem;font-weight:800}
.fg-side-haptics img{width:15px;height:15px}
.fg-side-haptics span{text-align:left}.fg-side-haptics b{color:#168b9b;font-size:.56rem}

/* v0.78 Memory Arena shared profile photo */
.fg-account-photo,.fg-player-photo,.mobile-account-avatar img{object-fit:cover;border-radius:50%}
.fg-side-account>.fg-account-photo{width:30px;height:30px;padding:0;background:#eaf6f8;border:1px solid var(--line)}
.fg-player-summary>.fg-player-photo{width:42px;height:42px;padding:0;background:#fff;border:2px solid rgba(255,255,255,.72)}
.mobile-account-avatar{overflow:hidden}.mobile-account-avatar img{width:100%;height:100%;display:block}


/* v0.98 sidebar uses the actual FlowGrid artwork instead of a text lockup */
.fg-side-brand{display:block;padding:0;margin:0;background:transparent;border:0;box-shadow:none}
.fg-side-brand img{display:block;width:min(100%,190px);height:auto;padding:0;margin:0 auto;border:0;border-radius:0;background:transparent;box-shadow:none;filter:drop-shadow(0 6px 12px rgba(5,50,72,.14));object-fit:contain}


/* v0.98 stacked image brand: crest above the image wordmark, no surrounding plate */
.fg-side-brand{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:0;
  margin:0;
  background:transparent;
  border:0;
  box-shadow:none;
}
.fg-side-brand .fg-side-crest{
  display:block;
  width:min(100%,118px);
  height:auto;
  margin:0 auto;
  object-fit:contain;
  filter:drop-shadow(0 5px 10px rgba(5,50,72,.14));
}
.fg-side-brand .fg-side-wordmark{
  display:block;
  width:min(100%,174px);
  height:auto;
  margin:-2px auto 0;
  object-fit:contain;
  filter:drop-shadow(0 4px 8px rgba(5,50,72,.10));
}

/* v0.98 Puzzle Journey history pagination */
.journey-pagination{
  display:grid;
  grid-template-columns:auto auto minmax(110px,1fr) auto auto;
  align-items:center;
  gap:7px;
  margin-top:10px;
}
.journey-page-btn{
  min-height:36px;
  padding:0 11px;
  border:1px solid var(--line);
  border-radius:11px;
  background:#fff;
  color:#315466;
  font-weight:850;
}
.journey-page-btn:not(:disabled):hover{border-color:#1a9fc2;color:#087e95}
.journey-page-status{
  min-height:36px;
  display:grid;
  place-items:center;
  padding:0 10px;
  border-radius:11px;
  background:#eef8fa;
  color:#168b9b;
  font-size:.7rem;
  font-weight:900;
}
