

.gp-bm{ position: absolute; top: -8px; right: 16px; width: 38px; height: 160px; z-index: 2; pointer-events: none;
  display: flex; flex-direction: column; align-items: center;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); }
[data-theme="light"] .gp-bm{ filter: drop-shadow(0 5px 8px rgba(70,50,25,.3)); }
.gp-bm-body{ position: relative; width: 100%; flex: 1 1 auto; min-height: 60px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fbeec4 0%, #d4ae5c 20%, #fff6d8 40%, #b98c3d 56%, #ecd08a 78%, #8f6a2c 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), 50% 100%, 0 calc(100% - 9px)); }
.gp-bm-body::before{ content: ""; position: absolute; inset: 3px 4px 3px;
  background: linear-gradient(225deg, #f6e2a6 0%, #c49a4c 45%, #f7e6b0 70%, #b48a42 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 7px), 50% 100%, 0 calc(100% - 7px)); }
.gp-bm-body::after{ content: ""; position: absolute; inset: 6px 7px 14px; border: 1px dashed rgba(255,243,207,.75); border-bottom: 0; }
.gp-bm-body span{ position: relative; z-index: 1; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap;
  font-family: 'Cormorant SC', 'Cormorant Garamond', Georgia, serif; font-weight: 700; font-size: 15px; letter-spacing: .16em;
  color: #3e2c12; -webkit-text-stroke: .35px #3e2c12; text-transform: uppercase; }
.gp-bm-tassel{ flex: none; width: 20px; height: 28px; margin-top: -1px; }

.gp.gp-is-met .gp-more{ right: 64px; }
.gp-bonus{ color: var(--accent-text); font-weight: 600; }
@media (max-width: 700px){

  .gp.gp-is-met .gp-track{ max-width: calc(100% - 56px); }
  .gp-bm{ right: 14px; width: 36px; }
  .gp.gp-is-met .gp-more{ right: 58px; }
}

.gmc-h{ margin: 2px 0 14px; font-family: var(--font-display); font-weight: 500; font-size: 26px; color: var(--cream); }
.gmc-opts{ display: flex; flex-direction: column; gap: 10px; }
.gmc-opt{ display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px; text-align: left; cursor: pointer;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface-raised); color: var(--text); font: inherit; }
.gmc-opt:hover{ border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.gmc-t{ display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gmc-t b{ font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.1; color: var(--cream); }
.gmc-t > span{ font-size: 13px; line-height: 1.4; color: var(--text-secondary); }
.gmc-thumb{ position: relative; flex: none; width: 58px; height: 72px; border-radius: 6px; box-sizing: border-box; overflow: hidden;
  background: linear-gradient(180deg, #141119, #221C2B); border: 1px solid rgba(241,238,243,.14);
  display: flex; flex-direction: column; align-items: center; padding-top: 10px; gap: 4px; }
.gmc-thumb i{ width: 30px; height: 3px; border-radius: 2px; background: #c6a15b; }
.gmc-thumb b{ width: 38px; height: 4px; border-radius: 2px; background: #f1eef3; opacity: .8; }
.gmc-thumb em{ position: relative; margin-top: 4px; width: 44px; height: 26px; border-radius: 4px; background: #2a2233; border: 1px solid #5a4630; }
.gmc-thumb-goal em s{ position: absolute; right: 3px; top: -2px; width: 6px; height: 22px; background: linear-gradient(180deg, #fbeec4, #c49a4c); clip-path: polygon(0 0, 100% 0, 100% 85%, 50% 100%, 0 85%); }
.gmc-thumb-stats{ align-items: stretch; padding: 9px 7px; }
.gmc-thumb-stats i{ width: 22px; height: 12px; opacity: .8; }
.gmc-thumb-stats b{ width: auto; height: 3px; background: #c6a15b; opacity: 1; }
.gmc-thumb-stats em{ margin-top: 0; width: auto; height: auto; background: none; border: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.gmc-thumb-stats em s{ height: 10px; border-radius: 2px; background: #2a2233; }

.gmo{ position: fixed; inset: 0; z-index: 90; display: none; }
.gmo.open{ display: block; }
.gmo-screen{ position: absolute; inset: 0; overflow: hidden; display: flex; flex-direction: column; align-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 120px) 28px calc(env(safe-area-inset-bottom, 0px) + 40px); box-sizing: border-box;
  background: radial-gradient(120% 70% at 50% 38%, #3a2b44 0%, #1b1420 55%, #0e0a12 100%);
  font-family: var(--font-sans); color: #f1e7d6; animation: gmo-in .35s ease both; }
[data-theme="light"] .gmo-screen{ background: radial-gradient(120% 70% at 50% 38%, #fdf9f0 0%, #f4ecdd 55%, #e9dfcb 100%); color: #1f1a24; }
@keyframes gmo-in{ from{ opacity: 0; } to{ opacity: 1; } }
.gmo-body{ position: relative; width: 100%; max-width: 360px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.gmo-deco{ position: absolute; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 40px); width: 390px; margin-left: -195px; opacity: 0; transition: opacity .6s ease; }
.gmo-deco-stars{ fill: #e2c48a; }
.gmo-deco circle{ fill: none; stroke: #c6a15b; stroke-opacity: .14; }
.gmo-deco circle.far{ stroke-opacity: .07; }
[data-theme="light"] .gmo-deco-stars{ fill: #c6a15b; }
[data-theme="light"] .gmo-deco circle{ stroke: #b08a45; }
.gmo.settled .gmo-deco{ opacity: 1; }
.gmo-close{ position: absolute; right: 10px; top: calc(env(safe-area-inset-top, 0px) + 46px); width: 44px; height: 44px; border: 0; background: none; color: #a99bb0; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 3; }
[data-theme="light"] .gmo-close{ color: #5c5364; }
.gmo-close svg{ width: 18px; height: 18px; }
.gmo-label{ font-family: 'Cormorant SC', 'Cormorant Garamond', Georgia, serif; font-weight: 600; font-size: 15px; letter-spacing: .2em; color: #e2c48a; }
.gmo-num{ margin-top: 30px; font-family: var(--font-display); font-weight: 500; font-size: 148px; line-height: .8; color: #e8cf9a; font-variant-numeric: lining-nums tabular-nums; text-shadow: 0 0 40px rgba(226,196,138,.55); transition: text-shadow 1s ease; }
.gmo-of{ margin-top: 30px; font-size: 15px; color: #c9bba8; }
.gmo-track{ width: 100%; margin-top: 30px; height: 8px; border-radius: 999px; background: rgba(198,161,91,.18); overflow: hidden; }
.gmo-track i{ display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #a8843f, #e2c48a); animation: gmo-fill 1.3s cubic-bezier(.2,.7,.2,1) both; }
@keyframes gmo-fill{ from{ width: 70%; } to{ width: 100%; } }
[data-theme="light"] .gmo-label{ color: #8a6a35; }
[data-theme="light"] .gmo-num{ color: #b08a45; text-shadow: 0 0 30px rgba(198,161,91,.35); }
[data-theme="light"] .gmo-of{ color: #5c5364; }
[data-theme="light"] .gmo-track{ background: rgba(138,106,53,.16); }
[data-theme="light"] .gmo-track i{ background: linear-gradient(90deg, #a8843f, #d9b46d); }
.gmo.settled .gmo-num{ text-shadow: none; }
.gmo-h{ margin: 34px 0 0; font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 40px; line-height: 1; color: #f1e7d6; opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; }
.gmo-p{ margin: 14px 0 0; font-size: 15px; line-height: 1.5; color: #c9bba8; opacity: 0; transition: opacity .5s ease .1s; }
[data-theme="light"] .gmo-h{ color: #1f1a24; }
[data-theme="light"] .gmo-p{ color: #463e4e; }
.gmo-share{ position: relative; z-index: 3; margin-top: auto; width: 100%; max-width: 360px; min-height: 54px; border: 0; border-radius: 14px; cursor: pointer;
  background: linear-gradient(180deg, #e2c48a, #c6a15b 55%, #a8843f); color: #1b1420; font: 700 15px var(--font-sans);
  display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 10px 24px -10px rgba(198,161,91,.6);
  opacity: 0; transform: translateY(10px); transition: opacity .5s ease .2s, transform .5s ease .2s; }
.gmo-share svg{ width: 17px; height: 17px; }
.gmo.settled .gmo-h, .gmo.settled .gmo-p, .gmo.settled .gmo-share{ opacity: 1; transform: none; }
.gmo-share:focus-visible, .gmo-close:focus-visible{ outline: 2px solid #e2c48a; outline-offset: 2px; }

.gmo-confetti{ position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.gmo-body{ z-index: 1; }
.gmo-book, .gmo-open, .gmo-star{ position: absolute; top: var(--y); opacity: 0; transform: rotate(var(--r));
  animation: gmo-rise var(--u) ease-in-out var(--w) both; }
@keyframes gmo-rise{
  0%{ opacity: 0; transform: translateY(9px) rotate(var(--r)); }
  40%{ opacity: 1; }
  60%{ opacity: 1; }
  100%{ opacity: 0; transform: translateY(-9px) rotate(var(--r)); }
}
.gmo-book i{ position: absolute; display: block; }
.gmo-pages{ top: 3px; bottom: 3px; right: -4px; width: 5px; border-radius: 0 2px 2px 0; background: repeating-linear-gradient(90deg, #f6eedd 0 1px, #d8cab0 1px 2px); }
.gmo-cover{ inset: 0; border-radius: 2px 4px 4px 2px; background: linear-gradient(165deg, var(--b1), var(--b2)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 10px 18px -8px rgba(0,0,0,.7); }
.gmo-spine{ left: 0; top: 0; bottom: 0; width: 20%; border-radius: 2px 0 0 2px; background: linear-gradient(90deg, rgba(0,0,0,.4), rgba(255,255,255,.1) 70%, rgba(0,0,0,.2)); }
.gmo-title{ left: 32%; right: 14%; top: 20%; height: 2px; border-radius: 1px; background: #e8cf9a; opacity: .85; box-shadow: 0 5px 0 -0.25px rgba(232,207,154,.6); }
.gmo-open{ width: 64px; }
.gmo-star{ fill: #e2c48a; }
[data-theme="light"] .gmo-star{ fill: #c6a15b; }
@media (prefers-reduced-motion: reduce){
  .gmo-screen, .gmo-track i, .gmo-h, .gmo-p, .gmo-share, .gmo-deco{ animation: none; transition: none; }
}

.gmo.still .gmo-book, .gmo.still .gmo-open, .gmo.still .gmo-star{ animation-name: gmo-twinkle;

  animation-duration: var(--u) !important; animation-delay: var(--w) !important; animation-iteration-count: 1 !important; }
@keyframes gmo-twinkle{ 0%{ opacity: 0; } 40%{ opacity: 1; } 60%{ opacity: 1; } 100%{ opacity: 0; } }

.im-modal .ss-actions{ margin-top: 18px; }
.im-frames{ display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 6px; }
.im-frames .csh-card{ width: 100%; padding: 6px 8px; gap: 6px; min-width: 0; }
.im-frames .accent-name{ font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.yib-host{ max-width: var(--content-max); margin: 24px auto 0; padding: 0 var(--page-gutter); }
.yib-host[hidden]{ display: none !important; }
.yib-bar{ position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; gap: 14px; width: 100%; max-width: var(--card-max); box-sizing: border-box; padding: 16px 14px 16px 18px; cursor: pointer;
  border-radius: 22px; border: 1.5px solid transparent;
  background:
    radial-gradient(130% 100% at 0% 0%, var(--fnr-plum) 0%, transparent 58%) padding-box,
    radial-gradient(100% 90% at 100% 100%, color-mix(in srgb, var(--accent) 30%, transparent) 0%, transparent 62%) padding-box,
    linear-gradient(160deg, var(--fnr-base-a) 0%, var(--fnr-base-b) 100%) padding-box,
    linear-gradient(115deg, #8a6a2e 0%, #f3dc9b 22%, #b8913f 42%, #fff1c4 58%, #a07a34 78%, #e8cf8a 100%) border-box;
  color: var(--cream); text-align: left; font: inherit; }

[data-theme="light"] .yib-bar{
  background:
    radial-gradient(130% 100% at 0% 0%, var(--fnr-plum) 0%, transparent 58%) padding-box,
    radial-gradient(100% 90% at 100% 100%, color-mix(in srgb, var(--accent) 45%, transparent) 0%, transparent 62%) padding-box,
    linear-gradient(160deg, var(--fnr-base-a) 0%, var(--fnr-base-b) 100%) padding-box,
    linear-gradient(115deg, #7a5a1f 0%, #d9b468 22%, #94702c 42%, #e8c983 58%, #7d5c22 78%, #c9a14f 100%) border-box; }
.yib-bar:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }
.yib-bar-t{ position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.yib-bar .fnr-title{ background: linear-gradient(100deg, #b8913f 0%, #f6e3a8 35%, #c9a14f 55%, #fff0c2 72%, #a97f36 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="light"] .yib-bar .fnr-title{ background: linear-gradient(100deg, #6e4f1a 0%, #b48a3c 35%, #7a5a1f 55%, #c9a14f 72%, #5f4416 100%);
  -webkit-background-clip: text; background-clip: text; }
.yib-bar-until{ font-family: var(--font-sans); font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.yib-bar-go{ position: relative; z-index: 1; flex: none; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #fff1c4 0%, #e3c47e 30%, #b8913f 65%, #8a6a2e 100%); color: #3b2a10;
  box-shadow: inset 0 0 0 1.5px rgba(255,241,196,.6), 0 4px 10px -4px rgba(0,0,0,.45); }
[data-theme="light"] .yib-bar-go{ box-shadow: inset 0 0 0 1.5px rgba(255,241,196,.7), 0 4px 10px -5px rgba(110,78,30,.5); }
.yib-bar-go svg{ width: 16px; height: 16px; }

.yib-favrow{ display: flex; align-items: center; gap: 10px; }
.yib-switch{ flex: none; width: 46px; height: 28px; border-radius: 999px; border: 0; padding: 3px; cursor: pointer; background: var(--surface-raised);
  box-shadow: inset 0 0 0 1px var(--line); display: flex; justify-content: flex-start; transition: background .15s ease; }
.yib-switch span{ width: 22px; height: 22px; border-radius: 50%; background: var(--text-muted); transition: transform .15s ease, background .15s ease; }
.yib-switch.on{ background: var(--accent); box-shadow: none; }
.yib-switch.on span{ transform: translateX(18px); background: var(--on-accent, #1b1420); }
.yib-favcount{ font-size: 13px; color: var(--text-secondary); }
.yib-edit{ margin-left: auto; min-height: 38px; padding: 0 12px; border-radius: 10px; cursor: pointer; border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line)); background: none; color: var(--accent-text); font: 600 13px var(--font-sans); }

.yib-ed-head{ display: flex; align-items: center; gap: 4px; }
.yib-ed-head .ss-title{ padding-left: 0; }
.yib-back{ width: 44px; height: 44px; margin-left: -12px; border: 0; background: none; color: var(--text-secondary); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.yib-back svg{ width: 20px; height: 20px; }
.yib-ed-lede{ margin: -6px 0 14px; font-size: 14px; line-height: 1.5; color: var(--text-secondary); }
.yib-ed-k{ display: flex; justify-content: space-between; align-items: baseline; margin: 12px 0 8px; }
.yib-ed-k span{ font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.yib-ed-k b{ font-size: 13px; font-weight: 600; color: var(--accent-text); }
.yib-chosen{ display: flex; gap: 10px; overflow-x: auto; padding: 8px 2px 4px; scrollbar-width: thin; }
.yib-chip{ position: relative; flex: none; width: 46px; height: 68px; border-radius: 4px; background: var(--surface-raised); }
.yib-chip img, .yib-cell img{ width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.yib-chip button{ position: absolute; right: -7px; top: -7px; width: 22px; height: 22px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 2px solid var(--bg-elevated, var(--surface)); background: var(--cream); color: var(--bg-elevated, var(--surface)); display: flex; align-items: center; justify-content: center; }
.yib-chip button svg{ width: 10px; height: 10px; }
.yib-ed-hint{ margin-top: 4px; font-size: 12px; color: var(--text-muted); }
.yib-search{ display: flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 14px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-raised); }
.yib-search svg{ width: 16px; height: 16px; color: var(--text-muted); flex: none; }
.yib-search input{ flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: 15px var(--font-sans); outline: none; }
.yib-sorts{ display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.yib-sort{ padding: 6px 11px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line); background: none; color: var(--text-secondary); font: 12px var(--font-sans); }
.yib-sort.on{ border-color: var(--accent); background: var(--accent-bg); color: var(--cream); }
.yib-grid{ display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 8px; max-height: 34vh; overflow-y: auto; padding: 2px; }
.yib-cell{ position: relative; aspect-ratio: 2 / 3; border-radius: 4px; border: 0; padding: 0; cursor: pointer; background: var(--surface-raised); opacity: .62; }
.yib-cell.on{ opacity: 1; box-shadow: inset 0 0 0 2px var(--accent); }
.yib-cell.on img{ outline: 2px solid var(--accent); outline-offset: -2px; }
.yib-check{ position: absolute; right: 3px; bottom: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--on-accent, #1b1420); display: flex; align-items: center; justify-content: center; }
.yib-check svg{ width: 10px; height: 10px; }
.yib-heart{ position: absolute; left: 3px; top: 3px; display: flex; }
.yib-heart svg{ width: 12px; height: 12px; fill: #e2c48a; filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)); }
.yib-plate{ display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-family: var(--font-display); font-size: 20px; color: var(--text-secondary); }
.yib-none{ grid-column: 1 / -1; padding: 10px 2px; font-size: 13px; color: var(--text-muted); }
.sr-only{ position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.yib-wordsnow{ flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.yw-chosen{ display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 6px; }
.yw-on{ display: inline-flex; align-items: center; gap: 4px; padding: 6px 6px 6px 12px; border-radius: 999px; background: var(--accent-bg); border: 1px solid var(--accent); color: var(--accent-text); font: 600 13px var(--font-sans); }
.yw-on button{ width: 26px; height: 26px; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.yw-on svg{ width: 11px; height: 11px; }
.yw-groups{ max-height: 40vh; overflow-y: auto; padding-right: 2px; }
.yw-list{ display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.yw-chip{ min-height: 34px; padding: 6px 12px; border-radius: 999px; cursor: pointer; border: 1px solid var(--line); background: none; color: var(--text-secondary); font: 13px var(--font-sans); }
.yw-chip.on{ border-color: var(--accent); background: var(--accent-bg); color: var(--accent-text); font-weight: 600; }
.yw-reset{ border: 0; background: none; padding: 4px 0; cursor: pointer; color: var(--accent-text); font: 600 13px var(--font-sans); }

.yw-area{ border-top: 1px solid var(--line); }
.yw-area:last-child{ border-bottom: 1px solid var(--line); }
.yw-area-h{ display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 2px; border: 0; background: none; cursor: pointer; color: var(--text); text-align: left; }
.yw-area-n{ flex: 1; font: 600 15px var(--font-sans); }
.yw-area-c{ font: 12px var(--font-sans); color: var(--text-muted); }
.yw-area-h svg{ width: 16px; height: 16px; color: var(--text-muted); transition: transform .15s ease; }
.yw-area.open .yw-area-h svg{ transform: rotate(180deg); }
.yw-area-b{ display: none; padding: 0 0 12px; }
.yw-area.open .yw-area-b{ display: block; }
.yw-sub{ margin: 6px 0 6px; font: 600 11px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }

@media (max-width: 600px){
.gmc-t > span{font-size:14px}
.im-frames .accent-name{font-size:12.5px}
.yib-bar-until{font-size:13px}
.yib-favcount{font-size:14px}
.yib-ed-k span{font-size:12px}
.yib-ed-k b{font-size:14px}
.yib-ed-hint{font-size:13px}
.yib-none{font-size:14px}
.yib-wordsnow{font-size:13px}
}
