.world-entry { position: relative; display: flex; align-items: center; gap: 19px; width: 100%; margin: 20px 0; padding: 19px 26px; border: 1px solid #d6dfd1; border-radius: 24px; text-align: left; color: #3b5144; background: linear-gradient(110deg,#eef2e7,#f7f1e2); cursor: pointer; box-shadow: 0 7px 22px #57654808; transition: transform .2s, box-shadow .2s; }
.world-entry:hover { transform: translateY(-3px); box-shadow: 0 10px 30px #57654812; }
.world-entry-house { display: grid; place-items: center; position: relative; width: 67px; height: 65px; border-radius: 20px; color: #678375; background: #fffaf0; font-size: 58px; line-height: 1; transform: rotate(-7deg); }
.world-entry-house i { position: absolute; right: -5px; top: -6px; color: #c5806b; font-size: 20px; font-style: normal; }
.world-entry-copy { display: grid; gap: 4px; }
.world-entry-copy small { font-size: 8px; letter-spacing: .2em; color: #82937c; }
.world-entry-copy b { font-size: 21px; letter-spacing: .08em; }
.world-entry-copy > span { color: #7b8675; font-size: 11px; }
.world-entry-arrow { margin-left: auto; font-size: 27px; }
#worldView { --world-ink: #405747; --world-muted: #84907e; --world-line: #e1e5d8; }
.world-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.world-heading h2 { font-size: 30px; color: var(--world-ink); letter-spacing: -.04em; margin: 4px 0 7px; }
.world-heading p { color: var(--world-muted); font-size: 11px; margin: 0; }
.world-overline { font-size: 9px; font-weight: 600; letter-spacing: .18em; color: #9b9077; }
.world-home-link { border: 1px solid var(--world-line); background: #fffcf5; color: #71836d; padding: 10px 15px; border-radius: 14px; cursor: pointer; font-size: 11px; white-space: nowrap; }
.world-layout { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 18px; align-items: start; }
.world-stage-card { min-width: 0; background: #f2efe5; border: 1px solid #e3e4d6; border-radius: 28px; overflow: hidden; position: relative; box-shadow: 0 12px 40px #64705108; }
.world-stage-head { display: flex; align-items: start; justify-content: space-between; gap: 10px; position: absolute; top: 19px; left: 20px; right: 20px; z-index: 2; pointer-events: none; }
.world-live { font-size: 10px; padding: 7px 10px; border: 1px solid #e3e6d8; border-radius: 20px; background: #fffcf0d9; color: #778269; }
.world-live::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #8ba27b; }
.world-live[data-status="error"]::before { background: #d79773; }
.world-time { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid #e3dfcdb3; border-radius: 16px; background: #fffcf0e8; color: #6e765f; box-shadow: 0 3px 15px #403e2405; }
.world-time-icon { width: 34px; height: 34px; color: #d9ad55; }
.world-time-icon svg { display: block; width: 100%; height: 100%; }
.world-time time { display: block; font-size: 18px; line-height: 1.15; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .035em; }
.world-time small { display: block; margin-top: 4px; font-size: 8px; letter-spacing: .04em; opacity: .8; }
[data-celestial="sun"] .world-time-moon, [data-celestial="moon"] .world-time-sun { display: none; }
[data-celestial="moon"] .world-time-icon { color: #dcc993; }
.world-stage-card[data-dark="true"] { background: #202b42; border-color: #586076; }
[data-dark="true"] .world-time, [data-dark="true"] .world-live { background: #303d55ed; color: #e9e1c8; border-color: #6f7b934f; }
[data-dark="true"] .world-stage-caption { background: #2c374d; color: #c4cbbf; border-color: #65728752; }
[data-dark="true"] .world-controls button { background: #34415be8; color: #dedbc1; border-color: #75829869; }
.world-canvas { height: 540px; position: relative; touch-action: pan-y; }
.world-canvas canvas { width: 100%; height: 100%; display: block; outline: none; }
.world-loading { position: absolute; inset: 0; display: grid; place-content: center; gap: 12px; text-align: center; color: #7d8d72; padding: 35px; font-size: 12px; }
.world-loading > span { font-size: 36px; }
.world-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.world-person-label { position: absolute; top: 0; left: 0; display: flex; flex-direction: column; align-items: center; width: 160px; margin-left: -80px; transform-origin: center; }
.world-bubble { max-width: 145px; background: #fffef8ed; border: 1px solid #eee5d6; box-shadow: 0 4px 12px #55462e0c; padding: 7px 10px; border-radius: 12px 12px 12px 3px; font-size: 9px; color: #77644f; margin-bottom: 5px; }
.world-person-label b { font-size: 9px; border-radius: 7px; padding: 3px 7px; color: #5f6555; background: #fffdf0c9; }
.world-controls { position: absolute; right: 15px; bottom: 54px; display: flex; gap: 6px; }
.world-controls button { width: 32px; height: 32px; border: 1px solid #dadfce; border-radius: 10px; color: #62745c; background: #fffef3e6; cursor: pointer; font-size: 17px; }
.world-stage-caption { padding: 12px 18px; border-top: 1px solid #e0dfd0; color: #8a907b; background: #f7f6ec; font-size: 10px; display: flex; justify-content: space-between; gap: 5px; }
.world-side { display: grid; gap: 13px; }
.world-person-card { padding: 17px 18px 15px; border: 1px solid var(--world-line); background: #fffef8; border-radius: 20px; }
.world-person-card[data-self="true"] { border-color: #c9d6c1; }
.world-person-head { display: flex; gap: 10px; align-items: center; }
.world-avatar-chip { flex: 0 0 37px; height: 37px; display: grid; place-items: center; border-radius: 13px; background: #e6ebdf; font-size: 17px; }
.world-person-card[data-gender="female"] .world-avatar-chip { background: #f3e3d9; }
.world-person-head b { font-size: 12px; color: #52604e; }
.world-person-head small { display: block; font-size: 9px; color: #8a9383; margin-top: 4px; }
.world-person-status { margin: 12px 0; padding: 7px 9px; background: #f5f5e9; border-radius: 8px; font-size: 10px; color: #8d8b70; }
.world-meter { display: grid; grid-template-columns: 45px 1fr 28px; align-items: center; gap: 8px; margin-top: 9px; font-size: 9px; color: #858b7d; }
.world-meter meter { width: 100%; height: 10px; border: 0; border-radius: 8px; overflow: hidden; background: #efeee4; }
.world-meter meter::-webkit-meter-bar { background: #efeee4; border: none; }
.world-meter meter::-webkit-meter-optimum-value { background: var(--meter-color); border-radius: 8px; }
.world-meter meter::-moz-meter-bar { background: var(--meter-color); }
.world-meter b { font-size: 10px; text-align: right; font-weight: 500; }
.world-coins { display: flex; gap: 9px; padding: 16px 12px; align-items: center; background: #f9f1dd; border: 1px solid #ede0b9; border-radius: 18px; color: #9f8042; }
.world-coins > span { font-size: 22px; }
.world-coins > div { flex: 1; min-width: 0; }
.world-coins b { display: block; font-size: 15px; overflow-wrap: anywhere; }
.world-coins small { display: block; font-size: 9px; margin-top: 4px; }
.world-coins > button { flex-shrink: 0; border: 1px solid #e3d3a8; border-radius: 11px; background: #fffcf3; color: #86703b; padding: 10px 9px; font: inherit; font-size: 11px; cursor: pointer; }
.world-coins > button:hover { background: #fff; border-color: #bda36a; }
.world-coins > button:focus-visible, .world-shop button:focus-visible { outline: 2px solid #748c6d; outline-offset: 3px; }
.world-shop { width: min(580px, calc(100vw - 28px)); max-height: calc(100dvh - 36px); box-sizing: border-box; margin: auto; padding: 28px; border: 1px solid #e0dfcf; border-radius: 26px; color: #405747; background: #fcfaf2; box-shadow: 0 24px 90px #283b3c38; overflow-y: auto; overscroll-behavior: contain; }
.world-shop::backdrop { background: #26393073; backdrop-filter: blur(5px); }
.world-shop-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.world-shop h3 { font-size: 24px; letter-spacing: -.04em; margin: 7px 0 0; }
.world-shop-close { flex-shrink: 0; width: 34px; height: 34px; border: 1px solid #e2e2d4; border-radius: 50%; background: #f6f3e8; color: #7c8773; font-size: 24px; line-height: 1; cursor: pointer; }
.world-shop-intro { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0 22px; }
.world-shop-intro p { font-size: 11px; line-height: 1.9; margin: 0; color: #8a907e; }
.world-shop-wallet { min-width: 66px; border: 1px solid #ecdfb7; border-radius: 13px; padding: 9px 13px; text-align: center; background: #f8f0d9; color: #9a7e42; font-size: 17px; }
.world-shop-wallet small { display: block; font-size: 9px; margin-top: 3px; }
.world-shop-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.world-shop-item { border: 1px solid #e4e4d8; border-radius: 17px; overflow: hidden; background: #fffef8; }
.world-shop-illustration { height: 116px; display: grid; place-items: center; position: relative; background: radial-gradient(ellipse at 50% 85%, #c8c1a72b, transparent 55%), #f0f0e7; background: radial-gradient(ellipse at 50% 85%, #c8c1a72b, transparent 55%), color-mix(in srgb, var(--cloth-tone) 15%, #faf8ef); }
.world-shop-illustration > svg { width: 100px; height: 88px; filter: drop-shadow(0 7px 4px #69684e18); transform: rotate(-4deg); }
.world-shop-item:nth-child(even) .world-shop-illustration > svg { transform: rotate(4deg); }
.world-shop-owned { position: absolute; top: 10px; right: 9px; background: #fffc; color: #668261; font-size: 9px; border-radius: 12px; padding: 4px 8px; }
.world-shop-copy { padding: 13px; }
.world-shop h4 { margin: 0; font-size: 13px; }
.world-shop-copy p { min-height: 32px; margin: 7px 0 12px; font-size: 10px; line-height: 1.6; color: #8c907d; }
.world-shop-purchase { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.world-shop-purchase > b { color: #a28748; font-size: 14px; white-space: nowrap; }
.world-shop-purchase small { font-size: 9px; font-weight: 400; }
.world-shop-purchase button { padding: 8px 9px; border: 0; border-radius: 9px; color: #fffdf2; background: #75896c; font: inherit; font-size: 10px; white-space: nowrap; cursor: pointer; }
.world-shop-purchase button:hover:not(:disabled) { background: #5b7456; }
.world-shop-purchase button:disabled { background: #efeee5; color: #929784; cursor: default; }
.world-shop-item[data-owned="true"] .world-shop-purchase button { background: #eaf0e3; color: #6c8562; }
.world-shop-notice { min-height: 18px; margin: 12px 0; font-size: 11px; line-height: 1.6; color: #688061; }
.world-shop-notice[data-error="true"] { color: #ac6656; }
.world-shop-footer { border-top: 1px solid #e5e4d7; padding-top: 15px; text-align: center; }
.world-shop-footer > small { display: block; font-size: 10px; color: #919580; margin-bottom: 12px; }
.world-shop-footer > div { display: flex; justify-content: center; gap: 10px; }
.world-shop-footer .world-button { font-size: 11px; }
.world-actions { display: grid; grid-template-columns: repeat(7,1fr); gap: 9px; margin: 16px 0; }
.world-actions button { min-width: 0; border: 1px solid var(--world-line); border-radius: 16px; background: #fffdf6; color: #708167; padding: 13px 5px; cursor: pointer; transition: background .2s, transform .2s; }
.world-actions button:hover, .world-actions button[aria-pressed="true"] { background: #e9efdf; border-color: #bdcfb1; transform: translateY(-2px); }
.world-actions button > span { display: block; font-size: 21px; margin-bottom: 7px; }
.world-actions button b { font-size: 11px; font-weight: 500; }
.world-actions button small { display: block; font-size: 8px; color: #929980; margin-top: 5px; }
.world-action-panel { padding: 18px 21px; border: 1px solid var(--world-line); border-radius: 20px; background: #fffef8; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.world-action-panel h3 { color: #566b4f; font-size: 15px; margin: 0 0 6px; }
.world-action-panel p { margin: 0; color: #929780; font-size: 10px; line-height: 1.65; }
.world-panel-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.world-button { border: 1px solid #c5d4ba; color: #fffef4; background: #819474; padding: 10px 16px; font-size: 11px; border-radius: 11px; cursor: pointer; }
.world-button.secondary { color: #7c896f; background: #f3f5e8; border-color: #dbe2cf; }
.world-button:disabled { opacity: .5; cursor: wait; }
.world-help { color: #939784; font-size: 10px; line-height: 1.8; margin: 14px 4px; }
.world-error { position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%); z-index: 3; width: max-content; max-width: calc(100% - 32px); box-sizing: border-box; pointer-events: none; font-size: 11px; line-height: 1.6; text-align: center; overflow-wrap: anywhere; color: #a56950; border: 1px solid #ead1bc; border-radius: 12px; background: #fff3e4f2; padding: 10px 14px; margin: 0; box-shadow: 0 4px 16px #55462e12; }
.world-invite { border: 1px solid #e5c7bd; background: #fff1e9; padding: 16px 19px; border-radius: 18px; margin-bottom: 14px; color: #ac786c; font-size: 12px; }
.world-invite p { margin: 0 0 11px; line-height: 1.7; }
.world-invite small { display: block; margin: 8px 0; font-size: 10px; }
.world-moment { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 17px; background: #e7c8bff2; color: #fff9ee; border-radius: 25px; animation: world-fade-in .6s; text-align: center; }
.world-moment span { font-size: 58px; letter-spacing: 18px; animation: world-heart 1.6s infinite; }
.world-moment b { font-size: 19px; letter-spacing: .08em; }
.world-moment small { font-size: 11px; }
.world-wardrobe { margin-top: 14px; padding: 23px; border: 1px solid #e2d9c8; background: #fffaf0; border-radius: 22px; }
.world-wardrobe h3 { margin: 0 0 6px; color: #7d775b; font-size: 18px; }
.world-wardrobe > p { font-size: 11px; color: #9b9480; line-height: 1.7; }
.world-clothes-group { margin: 16px 0; }
.world-clothes-group > b { font-size: 11px; color: #97947b; }
.world-clothes-options { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-top: 9px; }
.world-clothes-options button { display: grid; justify-items: center; gap: 8px; background: #fffef8; border: 1px solid #e4decf; color: #817d68; padding: 13px 4px; border-radius: 14px; font-size: 10px; cursor: pointer; }
.world-clothes-options button[aria-pressed="true"] { border: 2px solid #9aad8b; background: #eff3e7; padding: 12px 3px; }
.world-clothes-options svg { width: 46px; height: 37px; filter: drop-shadow(1px 3px 1px #64564715); }
.world-clothes-options small { font-size: 8px; color: #8d9a7c; }
.world-wardrobe-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
#profileMeGender { width: 100%; padding: 12px 13px; border: 1px solid #e9ded7; border-radius: 11px; background: #fffdf9; color: #776861; font: inherit; }
@keyframes world-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes world-heart { 50% { transform: scale(1.12); } }
@media (max-width: 1180px) {
  .world-layout { grid-template-columns: minmax(0,1fr); }
  .world-side { grid-template-columns: 1fr 1fr; }
  .world-coins { grid-column: 1 / -1; padding: 11px 18px; }
  .world-coins b, .world-coins small { display: inline; margin-right: 10px; }
}
@media (max-width: 600px) {
  .world-entry { padding: 16px 18px; gap: 15px; }
  .world-entry-house { width: 53px; height: 53px; font-size: 45px; }
  .world-heading { align-items: start; margin-top: 12px; }
  .world-heading h2 { font-size: 25px; }
  .world-heading p { font-size: 10px; }
  .world-home-link { padding: 9px; font-size: 10px; }
  .world-canvas { height: 400px; }
  .world-stage-card { border-radius: 21px; }
  .world-stage-head { top: 13px; left: 13px; right: 13px; }
  .world-time { gap: 6px; padding: 7px 8px; border-radius: 13px; }
  .world-time-icon { width: 28px; height: 28px; }
  .world-time time { font-size: 15px; }
  .world-actions { grid-template-columns: repeat(4,1fr); gap: 8px; }
  .world-actions button { padding: 11px 4px; }
  .world-actions button > span { font-size: 19px; margin-bottom: 4px; }
  .world-person-card { padding: 13px 11px; border-radius: 16px; }
  .world-person-head { gap: 6px; }
  .world-person-head b { font-size: 11px; }
  .world-avatar-chip { flex-basis: 29px; height: 29px; font-size: 15px; }
  .world-meter { grid-template-columns: 35px 1fr 22px; gap: 5px; font-size: 8px; }
  .world-stage-caption { padding: 11px; font-size: 8px; }
  .world-side { gap: 9px; }
  .world-layout { gap: 12px; }
  .world-action-panel { padding: 16px; }
  .world-wardrobe { padding: 18px 13px; }
  .world-bubble { font-size: 8px; max-width: 115px; padding: 5px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .world-moment, .world-moment span, .world-entry, .world-actions button { animation: none; transition: none; }
}
@media (max-width: 520px) {
  .world-shop { padding: 20px 16px; border-radius: 22px; }
  .world-shop h3 { font-size: 21px; }
  .world-shop .world-overline { font-size: 7px; letter-spacing: .12em; }
  .world-shop-items { gap: 10px; }
  .world-shop-illustration { height: 96px; }
  .world-shop-illustration > svg { width: 85px; height: 74px; }
  .world-shop-copy { padding: 10px; }
  .world-shop-purchase small { display: none; }
  .world-shop-purchase button { padding: 8px 7px; }
  .world-shop-copy p { min-height: 48px; }
}
