.gw { position: fixed; inset: 0; z-index: 2147483200; background: #04060c; opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 0s linear 1.1s; color: #eef1f8; font-family: 'Inter', system-ui, sans-serif; font-weight: 300; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.gw.on { opacity: 1; visibility: visible; transition: opacity 1.1s ease; }
.gw canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.gw canvas:active { cursor: grabbing; }
.gw-head { position: absolute; left: 26px; top: 22px; pointer-events: none; text-shadow: 0 1px 12px rgba(0,0,0,.55); }
.gw-head b { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(26px, 3.4vw, 44px); line-height: 1; letter-spacing: -.01em; }
.gw-head span { display: block; margin-top: 10px; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; opacity: .85; font-variant-numeric: tabular-nums; }
.gw-x, .gw-plant { position: absolute; appearance: none; border: 1px solid rgba(255,255,255,.4); background: rgba(6,10,22,.35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: inherit; font: inherit; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; padding: 12px 18px; border-radius: 999px; cursor: pointer; transition: background .3s, border-color .3s, opacity .3s; }
.gw-x:hover, .gw-plant:hover { background: rgba(255,255,255,.16); border-color: #fff; }
.gw-x { right: 24px; top: 22px; }
.gw-plant { right: 24px; bottom: 24px; }
.gw-plant:disabled { opacity: .55; cursor: default; }
.gw-log { position: absolute; left: 26px; bottom: 22px; max-width: min(430px, 62vw); pointer-events: none; text-shadow: 0 1px 10px rgba(0,0,0,.7); }
.gw-log p { margin: 5px 0 0; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 17px; line-height: 1.25; }
.gw-log i { font-family: 'Inter', sans-serif; font-style: normal; font-size: 9px; letter-spacing: .24em; text-transform: uppercase; opacity: .7; margin-right: 10px; font-variant-numeric: tabular-nums; }
.gw-hint { position: absolute; left: 50%; top: 26px; transform: translateX(-50%); font-size: 9px; letter-spacing: .3em; text-transform: uppercase; opacity: .6; pointer-events: none; white-space: nowrap; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.gw-card { position: absolute; width: 240px; margin-left: -120px; transform: translateY(-100%) translateY(8px); opacity: 0; pointer-events: none; transition: opacity .35s ease, transform .35s ease; background: rgba(8,12,26,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 14px 16px 13px; box-shadow: 0 18px 50px rgba(0,0,0,.4); }
.gw-card.on { opacity: 1; transform: translateY(-100%); }
.gw-card b { display: block; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 400; font-size: 26px; line-height: 1; }
.gw-card b em { font-size: 15px; color: #ffe2a0; }
.gw-card span { display: block; margin: 8px 0 7px; font-size: 9px; letter-spacing: .22em; text-transform: uppercase; opacity: .75; }
.gw-card p { margin: 0; font-size: 12.5px; line-height: 1.45; opacity: .9; }
html.gw-open #sa { overflow: hidden !important; }

.gw-brin { position: fixed; left: 0; bottom: 4px; z-index: 2147483100; width: 140px; height: 210px; padding: 0; margin: 0; border: 0; background: none; cursor: pointer; opacity: 0; transition: opacity 1.4s ease; -webkit-tap-highlight-color: transparent; will-change: transform; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
.gw-brin canvas { width: 140px; height: 210px; display: block; pointer-events: none; }
@media (max-width: 700px) { .gw-brin { width: 104px; height: 156px; } .gw-brin canvas { width: 104px; height: 156px; } .gw-hint { display: none; } .gw-head span { max-width: 58vw; line-height: 1.9; margin-top: 6px; } .gw-head { left: 18px; top: 18px; } .gw-x { right: 16px; top: 16px; } .gw-plant { right: 16px; bottom: 18px; } .gw-log { left: 18px; bottom: 70px; } .gw-log p { font-size: 15px; } .gw-log p:nth-child(n+4) { display: none; } }

.gw-say { position: fixed; left: 50%; top: 22%; z-index: 2147483150; transform: translate(-50%, 10px); width: min(86vw, 640px); text-align: center; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: clamp(22px, 3vw, 34px); line-height: 1.2; color: #f3f0e6; text-shadow: 0 2px 24px rgba(0,0,0,.8); opacity: 0; pointer-events: none; transition: opacity 1.6s ease, transform 1.6s ease; }
.gw-say.on { opacity: 1; transform: translate(-50%, 0); }
.gw-veil { position: fixed; inset: 0; z-index: 2147483050; background: #02030a; opacity: 0; pointer-events: none; transition: opacity 7s ease; }
.gw-veil.on { opacity: .62; transition: opacity .2s; }

.gw-pill { position: fixed; left: 50%; top: 18px; z-index: 2147483100; transform: translateX(-50%); appearance: none; border: 1px solid rgba(255,226,160,.28); background: rgba(10,12,22,.3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #f3ead2; font-family: 'Inter', system-ui, sans-serif; font-weight: 300; font-size: 9px; letter-spacing: .26em; text-transform: uppercase; padding: 8px 14px 8px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 1.6s ease, border-color .3s; }
.gw-pill.on { opacity: .9; pointer-events: auto; }
.gw-pill:hover { border-color: rgba(255,226,160,.8); }
.gw-pill i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ffd27a; box-shadow: 0 0 10px 3px rgba(255,190,90,.7); margin-right: 10px; vertical-align: -1px; animation: gwp 2.6s ease-in-out infinite; }
.gw-pill.out i { background: #555; box-shadow: none; animation: none; }
.gw-pill.else i { opacity: .55; }
html.gw-open .gw-pill, html.gw-open .gw-brin { opacity: 0 !important; pointer-events: none !important; }
@keyframes gwp { 50% { box-shadow: 0 0 16px 6px rgba(255,190,90,.9); } }
@media (max-width: 700px) { .gw-pill { top: 44px; font-size: 8px; } }
.gw-sheet { position: fixed; inset: 0; z-index: 2147483300; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(3,5,10,.8); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s linear .5s; color: #eef1f8; font-family: 'Inter', system-ui, sans-serif; font-weight: 300; }
.gw-sheet.on { opacity: 1; visibility: visible; transition: opacity .5s; }
.gw-sheet > div { max-width: 440px; text-align: center; }
.gw-sheet h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 400; font-size: clamp(30px, 5vw, 46px); line-height: 1.05; margin: 0 0 22px; }
.gw-sheet p { font-size: 14px; line-height: 1.6; opacity: .85; margin: 0 0 14px; }
.gw-sheet b { font-weight: 500; color: #ffe2a0; }
.gw-sheet button { appearance: none; display: block; margin: 22px auto 0; border: 1px solid rgba(255,255,255,.4); background: none; color: inherit; font: inherit; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; padding: 13px 22px; border-radius: 999px; cursor: pointer; }
.gw-sheet .gw-go { border-color: #ffd27a; color: #ffe2a0; }
.gw-sheet .gw-close { border: 0; opacity: .6; margin-top: 10px; }
.gw-sheet small { display: block; margin-top: 12px; font-size: 11px; opacity: .8; word-break: break-all; min-height: 14px; }

/* the way in */
.gw-gate { position: fixed; inset: 0; z-index: 2147483250; display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 90% at 50% 60%, #0b1630 0%, #04060c 70%); opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; color: #eef1f8; }
.gw-gate.on { opacity: 1; visibility: visible; transition: opacity .9s ease; }
.gw-gate > div { width: min(78vw, 420px); text-align: center; transition: transform 1s ease, opacity 1s ease; }
.gw-gate input { width: 100%; appearance: none; -webkit-appearance: none; background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.45); border-radius: 0; outline: 0; color: #fff; text-align: center; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 34px; letter-spacing: .14em; padding: 10px 0 12px; caret-color: #ffd27a; transition: border-color .4s; -webkit-user-select: text; user-select: text; }
.gw-gate input:focus { border-bottom-color: #ffd27a; }
.gw-gate p { margin: 18px 0 0; font-family: 'Inter', system-ui, sans-serif; font-weight: 300; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; opacity: .62; }
.gw-gate.no > div { animation: gwno .45s ease; }
.gw-gate.yes > div { transform: scale(1.5); opacity: 0; }
.gw-gate.yes input { border-bottom-color: #ffd27a; color: #ffe2a0; }
@keyframes gwno { 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.gw-gx { position: absolute; right: 24px; top: 22px; appearance: none; border: 0; background: none; color: inherit; font-family: 'Inter', system-ui, sans-serif; font-weight: 300; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; opacity: .6; cursor: pointer; padding: 12px; }

/* the world inside, in 3d */
.g3 { position: fixed; inset: 0; z-index: 2147483200; background: #04060c; opacity: 0; visibility: hidden; transition: opacity 1.2s ease, visibility 0s linear 1.2s; color: #eef1f8; font-family: 'Inter', system-ui, sans-serif; font-weight: 300; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.g3.on { opacity: 1; visibility: visible; transition: opacity 1.2s ease; }
.g3 canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; touch-action: none; cursor: pointer; }
.g3 .gw-head, .g3 .gw-x, .g3 .gw-hint { z-index: 2; }
.g3::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 170px; z-index: 1; pointer-events: none; background: linear-gradient(rgba(6,12,30,.5), rgba(6,12,30,0)); }
.g3::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; z-index: 1; pointer-events: none; background: linear-gradient(rgba(6,12,30,0), rgba(6,12,30,.4)); }
.g3-dew, .g3-tend, .g3-join, .g3-edit, .g3-make, .g3-card { z-index: 3; }
.g3-dew { position: absolute; left: 26px; bottom: 26px; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; text-shadow: 0 1px 10px rgba(0,0,0,.7); pointer-events: none; }
.g3-dew b { font-weight: 500; color: #bfe6ff; }
.g3-tend, .g3-join, .g3-edit { position: absolute; appearance: none; border: 1px solid rgba(255,255,255,.45); background: rgba(6,10,22,.4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: inherit; font: inherit; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; padding: 13px 20px; border-radius: 999px; cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .5s, transform .5s, background .3s; }
.g3-tend, .g3-join { left: 50%; bottom: 13%; transform: translate(-50%, 10px); border-color: #ffd27a; color: #ffe2a0; font-size: 11px; padding: 16px 26px; box-shadow: 0 0 40px rgba(255,190,90,.25); }
.g3-tend.on, .g3-join.on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.g3-edit { right: 24px; bottom: 24px; }
.g3-edit.on { opacity: .85; pointer-events: auto; }
.g3-make { position: absolute; right: 24px; top: 50%; transform: translate(20px, -50%); width: 330px; max-height: 84vh; overflow: auto; background: rgba(8,12,26,.66); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid rgba(255,255,255,.16); border-radius: 20px; padding: 16px 18px 18px; opacity: 0; pointer-events: none; transition: opacity .6s, transform .6s; box-shadow: 0 24px 70px rgba(0,0,0,.45); }
.g3-make.on { opacity: 1; pointer-events: auto; transform: translate(0, -50%); }
.g3-make button { appearance: none; font: inherit; color: inherit; cursor: pointer; }
.g3-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.g3-tabs button { flex: 1; border: 0; background: rgba(255,255,255,.06); border-radius: 999px; padding: 10px; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; opacity: .7; }
.g3-tabs button.on { background: rgba(255,255,255,.2); opacity: 1; }
.g3-row { margin-top: 12px; }
.g3-row > span { display: block; font-size: 9px; letter-spacing: .26em; text-transform: uppercase; opacity: .6; margin-bottom: 7px; }
.g3-row > div { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.g3-row .sw { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,.18); padding: 0; }
.g3-row .sw.on { border-color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.25); transform: scale(1.1); }
.g3-row .ch { border: 1px solid rgba(255,255,255,.22); background: none; border-radius: 999px; padding: 7px 12px; font-size: 11px; letter-spacing: .06em; }
.g3-row .ch.on { background: #fff; color: #0a1022; border-color: #fff; }
.g3-name button { border: 1px solid rgba(255,255,255,.22); background: none; border-radius: 10px; min-width: 42px; padding: 7px 10px; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-size: 19px; }
.g3-name i { margin-left: auto; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 26px; color: #ffe2a0; }
.g3-go { margin-top: 18px; display: flex; flex-direction: column; gap: 4px; }
.g3-go button { border: 1px solid #ffd27a; color: #ffe2a0; background: rgba(255,210,122,.08); border-radius: 999px; padding: 14px; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; }
.g3-go .q { border: 0; background: none; color: inherit; opacity: .6; padding: 10px; }
@media (max-width: 700px) {
  .g3-make { right: 10px; left: 10px; width: auto; top: auto; bottom: 10px; transform: translateY(20px); max-height: 46vh; padding: 12px 14px 14px; border-radius: 18px; }
  .g3-make.on { transform: none; }
  .g3-row { margin-top: 9px; } .g3-row .sw { width: 28px; height: 28px; }
  .g3-dew { left: 18px; bottom: 20px; } .g3-edit { right: 14px; bottom: 14px; padding: 11px 14px; font-size: 9px; } .g3-tend, .g3-join { bottom: 16%; white-space: nowrap; }
}

.g3-here { position: absolute; left: 26px; bottom: 50px; z-index: 3; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; text-shadow: 0 1px 10px rgba(0,0,0,.7); pointer-events: none; }
.g3-here i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #7dffa0; box-shadow: 0 0 10px 2px rgba(125,255,160,.7); margin-right: 9px; }
.g3-emo { position: absolute; left: 50%; bottom: 22px; z-index: 3; transform: translateX(-50%); display: flex; gap: 8px; opacity: 0; pointer-events: none; transition: opacity .5s; }
.g3-emo.on { opacity: 1; pointer-events: auto; }
.g3-emo button { appearance: none; border: 1px solid rgba(255,255,255,.35); background: rgba(6,10,22,.4); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: inherit; font: inherit; font-size: 9px; letter-spacing: .24em; text-transform: uppercase; padding: 11px 15px; border-radius: 999px; cursor: pointer; }
.g3-emo button:active { background: rgba(255,255,255,.25); }
@media (max-width: 700px) { .g3-here { left: 18px; bottom: 96px; } .g3-dew { bottom: 74px; } .g3-emo { bottom: 62px; } .g3-edit { right: auto; left: 50%; transform: translateX(-50%); bottom: 14px; } }

.g3-stat { position: absolute; right: 24px; top: 78px; z-index: 3; text-align: right; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; text-shadow: 0 1px 10px rgba(0,0,0,.7); pointer-events: none; }
.g3-stat b { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 400; font-size: 26px; letter-spacing: 0; color: #ffe2a0; margin-right: 6px; text-transform: none; }
.g3-stat span { display: block; width: 120px; height: 4px; margin: 8px 0 0 auto; border-radius: 4px; background: rgba(255,255,255,.22); overflow: hidden; }
.g3-stat span i { display: block; height: 100%; background: linear-gradient(90deg, #7dffa0, #d8ff96); border-radius: 4px; transition: width .6s; }
.g3-work { position: absolute; left: 50%; top: 58%; z-index: 3; width: 120px; height: 5px; margin-left: -60px; border-radius: 5px; background: rgba(0,0,0,.35); overflow: hidden; opacity: 0; transition: opacity .3s; pointer-events: none; }
.g3-work i { display: block; height: 100%; width: 0; background: #ffd27a; }
.g3-purse { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; opacity: .85; margin: 4px 2px 10px; }
.g3-purse b { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 400; font-size: 24px; color: #ffe2a0; letter-spacing: 0; margin-right: 6px; }
.g3-items { display: flex; flex-direction: column; gap: 6px; }
.g3-items .it { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); border-radius: 12px; padding: 11px 13px; text-align: left; }
.g3-items .it em { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 19px; }
.g3-items .it span { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: #ffe2a0; white-space: nowrap; }
.g3-items .it.on { border-color: #ffd27a; background: rgba(255,210,122,.1); }
.g3-items .it:disabled { opacity: .4; }
.g3-shop.shake { animation: gwno .45s ease; }
@media (max-width: 700px) { .g3-stat { right: 16px; top: 64px; } .g3-shop { max-height: 58vh; } }
