@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600;1,700&display=swap');
:root{--bg:#100d20;--panel:#1b1630;--panel2:#241d3d;--text:#f7f1ff;--muted:#b9aecb;--accent:#c6a5ff;--accent2:#8d65db;--line:#ffffff18;--shadow:0 18px 55px #05030d66}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:90px}body{margin:0;background:radial-gradient(ellipse at 15% 0%,#37235d66,transparent 35%),radial-gradient(ellipse at 95% 30%,#3a225044,transparent 32%),var(--bg);color:var(--text);font-family:'DM Sans',sans-serif;min-height:100vh}body[data-theme="rose"]{--bg:#21121f;--panel:#321d31;--panel2:#472747;--accent:#ffb5d2;--accent2:#d66d9f}body[data-theme="ocean"]{--bg:#0c1b2a;--panel:#142b40;--panel2:#1d3a53;--accent:#9edcff;--accent2:#4b9dc9}body[data-theme="midnight"]{--bg:#080b17;--panel:#13192b;--panel2:#1c2540;--accent:#b4c8ff;--accent2:#738fd9}
button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}.ambient{position:fixed;width:300px;height:300px;border-radius:50%;filter:blur(100px);opacity:.12;pointer-events:none;z-index:-1}.ambient-one{background:#a66aff;top:15%;left:-160px}.ambient-two{background:#ed8ac9;right:-180px;top:55%}
.topbar{height:72px;padding:0 max(22px,calc((100% - 1180px)/2));display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);background:#100d20bb;backdrop-filter:blur(18px);position:sticky;top:0;z-index:10}.brand{display:flex;align-items:center;gap:10px;font-size:13px;letter-spacing:2px}.brand-mark{font-size:30px;color:var(--accent)}.brand small{display:block;font-size:8px;letter-spacing:3px;color:var(--muted);margin-top:3px}.top-actions{display:flex;align-items:center;gap:12px}.currency{background:#ffffff12;border:1px solid var(--line);padding:9px 13px;border-radius:30px;color:#ffe6a1}.icon-btn{background:#ffffff12;border:1px solid var(--line);color:var(--text);width:38px;height:38px;border-radius:50%}
.shell{max-width:1180px;padding:32px 22px 70px;margin:auto}.panel{background:linear-gradient(145deg,var(--panel),color-mix(in srgb,var(--panel),#080612 22%));border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow)}.hero{min-height:340px;padding:42px 48px;display:flex;align-items:center;justify-content:space-between;overflow:hidden;position:relative}.hero-copy{max-width:590px;position:relative;z-index:1}.eyebrow{font-size:10px;letter-spacing:2.2px;font-weight:800;color:var(--accent);margin:0 0 12px}.hero h1{font-size:clamp(36px,5vw,60px);line-height:1.08;margin:0;font-weight:800;letter-spacing:-2px}.hero h1 em{font-family:'Playfair Display',serif;color:var(--accent);font-weight:600}.hero-text{color:var(--muted);line-height:1.7;max-width:490px;margin:18px 0 24px}.hero-buttons{display:flex;gap:10px;flex-wrap:wrap}.primary-btn,.soft-btn,.small-btn,.choice-btn{border:0;border-radius:12px;padding:12px 17px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:12px}.primary-btn{background:linear-gradient(110deg,var(--accent2),var(--accent));color:#1a102b}.soft-btn{background:#ffffff12;border:1px solid var(--line);color:var(--text)}.hero-orbit{width:280px;height:240px;position:relative;flex-shrink:0;margin-right:35px}.planet{position:absolute;inset:67px 75px;width:130px;height:130px;border-radius:50%;display:grid;place-items:center;font-size:62px;background:radial-gradient(circle at 35% 30%,#fff9,#d2a9ff 25%,#7752bb 72%);box-shadow:0 0 70px #bd91ff66}.orbit{position:absolute;border:1px solid #d4b9ff77;border-radius:50%;transform:rotate(-25deg)}.orbit-a{inset:42px 10px}.orbit-b{inset:15px 35px;transform:rotate(48deg)}.float{position:absolute;font-size:27px;animation:float 4s ease-in-out infinite}.f1{top:18px;left:20px}.f2{right:4px;top:100px;animation-delay:1s}.f3{bottom:4px;left:85px;animation-delay:2s}@keyframes float{50%{transform:translateY(-12px) rotate(10deg)}}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin:18px 0 55px}.stat{padding:18px 20px}.stat span{font-size:9px;letter-spacing:2px;color:var(--muted);font-weight:800}.stat strong{display:block;font-size:27px;margin:6px 0 2px}.stat small{color:var(--muted);font-size:11px}.progress{height:5px;background:#ffffff17;border-radius:10px;margin:10px 0 7px;overflow:hidden}.progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--accent2),var(--accent));border-radius:10px}
.section-heading{display:flex;align-items:end;justify-content:space-between;margin:48px 0 17px}.section-heading h2{font-size:27px;margin:0;letter-spacing:-.7px}.section-note{font-size:11px;color:var(--muted)}.world-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.world-card{padding:22px;border-radius:19px;min-height:200px;border:1px solid var(--line);background:linear-gradient(145deg,var(--panel2),var(--panel));transition:.2s}.world-card:hover{transform:translateY(-4px);border-color:var(--accent)}.world-icon{font-size:27px;display:block;margin-bottom:13px}.world-kicker{font-size:9px;letter-spacing:2px;color:var(--accent);font-weight:800}.world-card h3{font-size:19px;margin:7px 0}.world-card p{font-size:12px;color:var(--muted);line-height:1.5;min-height:36px}.world-card b{font-size:11px;color:var(--accent)}
.content-panel{padding:20px}.game-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.game-card,.tool-card{background:#ffffff08;border:1px solid var(--line);border-radius:16px;padding:18px}.game-emoji,.tool-card>span{font-size:27px}.game-card h3,.tool-card h3{margin:8px 0 5px;font-size:16px}.game-card p,.tool-card p{font-size:12px;color:var(--muted);line-height:1.55}.small-btn{background:var(--accent);color:#1b1230;padding:9px 13px;font-size:11px}.tiny-link{border:0;background:none;color:var(--accent);font-size:11px;padding:7px 0}.game-result{min-height:18px!important;color:var(--text)!important;font-weight:700}.inline-form{display:flex;gap:7px}.inline-form input{width:80px}.input,.inline-form input,.diary-form input,.diary-form textarea,.diary-form select,.diary-list-head input,.hangout-form input,.prompt-box textarea,.modal input,.modal select{background:#08061266;border:1px solid var(--line);border-radius:9px;padding:10px;color:var(--text);min-width:0}.memory-board{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin:10px 0}.memory-card{border:1px solid var(--line);background:#ffffff12;border-radius:7px;min-height:36px;color:var(--text);font-size:17px}.memory-card.matched{background:#7e5db955;border-color:var(--accent)}.choice-row{display:flex;gap:6px;flex-wrap:wrap}.choice-btn{background:#ffffff12;border:1px solid var(--line);color:var(--text);font-size:10px;padding:8px}
.comfort-panel{padding:28px;display:flex;align-items:center;gap:28px}.comfort-art{width:110px;height:110px;flex-shrink:0;border-radius:30px;background:#ffffff12;display:grid;place-items:center;font-size:50px}.comfort-panel h3{font-family:'Playfair Display',serif;font-size:26px;margin:0 0 8px}.comfort-panel p:not(.eyebrow){color:var(--muted);font-size:13px}.tool-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.tool-card strong{display:block;font-size:12px;color:var(--accent);margin-top:10px}.tool-card input[type=range]{width:100%;accent-color:var(--accent)}.danger-btn{background:#ff8d9e;color:#32101a}
.diary-layout{display:grid;grid-template-columns: .8fr 1.2fr;gap:14px}.diary-form{padding:22px;display:flex;flex-direction:column;gap:9px}.diary-form label,.modal label{font-size:11px;color:var(--muted);font-weight:700}.diary-form input,.diary-form textarea,.diary-form select{width:100%}.diary-form textarea,.prompt-box textarea{resize:vertical}.full-btn{width:100%;margin-top:8px}.form-note{font-size:10px;color:var(--muted);line-height:1.5}.diary-list-panel{padding:22px;min-width:0}.diary-list-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.diary-list-head h3{margin:0}.diary-list-head input{max-width:190px}.diary-entry{padding:14px 0;border-bottom:1px solid var(--line)}.diary-entry:last-child{border-bottom:0}.entry-meta{font-size:10px;color:var(--muted)}.diary-entry h4{margin:6px 0}.diary-entry p{font-size:12px;line-height:1.6;color:#ded5eb;white-space:pre-wrap;overflow-wrap:anywhere}.entry-actions{display:flex;gap:12px}.entry-actions button{background:none;border:0;color:var(--accent);font-size:10px;padding:4px 0}.empty-state{font-size:12px;color:var(--muted);padding:25px 0}
.hangout-layout{display:grid;grid-template-columns:1.1fr .9fr;gap:14px}.hangout-card{padding:22px}.big-icon{font-size:30px}.hangout-card h3{margin:7px 0}.hangout-card>p{font-size:12px;color:var(--muted);line-height:1.5}.hangout-form{display:flex;gap:7px;flex-wrap:wrap;margin:15px 0}.hangout-form input:first-child{width:120px}.hangout-form input:nth-child(2){flex:1}.hangout-feed{max-height:260px;overflow:auto}.feed-item{border-top:1px solid var(--line);padding:10px 0;font-size:11px}.feed-item b{color:var(--accent)}.feed-item small{display:block;color:var(--muted);margin-top:4px}.prompt-box{border-top:1px solid var(--line);margin-top:17px;padding-top:15px}.prompt-box p{font-size:11px;color:var(--muted)}.prompt-box textarea{width:100%;background:#08061266;border:1px solid var(--line);border-radius:9px;color:var(--text);padding:10px}.kind-item{font-size:11px;padding:9px;background:#ffffff0c;border-radius:8px;margin-top:7px}
.shop-layout{display:grid;grid-template-columns:1.4fr .6fr;gap:14px}.shop-panel,.collection-panel{padding:22px}.shop-heading{display:flex;align-items:center;justify-content:space-between}.shop-heading h3,.collection-panel h3{margin:0}.shop-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:15px}.shop-item{background:#ffffff09;border:1px solid var(--line);border-radius:13px;padding:13px}.shop-item>span{font-size:25px}.shop-item h4{font-size:12px;margin:7px 0 4px}.shop-item p{font-size:10px;color:var(--muted);min-height:28px}.shop-item button{font-size:10px;padding:8px 10px}.shop-item button:disabled{opacity:.55;cursor:default}.collection-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:13px}.collection-pill,.chip{background:#ffffff12;border:1px solid var(--line);border-radius:30px;padding:7px 10px;font-size:10px}.theme-panel{padding:20px}.theme-panel>div{display:flex;justify-content:space-between;align-items:center;gap:20px}.theme-panel h3{margin:0 0 5px}.theme-panel p{font-size:11px;color:var(--muted);margin:0}.theme-options{display:flex;gap:7px;flex-wrap:wrap}.theme-choice{background:#ffffff10;border:1px solid var(--line);color:var(--text);padding:9px 12px;border-radius:10px;font-size:11px}.theme-choice.active{border-color:var(--accent);background:#a77ce833}.achievements-panel{padding:22px;display:grid;grid-template-columns:1fr 1fr;gap:25px}.achievements-panel h3{font-size:14px}.chip-list{display:flex;flex-wrap:wrap;gap:7px}.chip.locked{opacity:.35}.footer{text-align:center;padding:55px 0 15px;color:var(--muted);font-size:11px}.footer>span{letter-spacing:3px;color:var(--accent);font-weight:800}.modal{background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:20px;padding:28px;width:min(430px,calc(100% - 28px));box-shadow:var(--shadow)}.modal::backdrop{background:#05030dbb;backdrop-filter:blur(5px)}.modal h2{margin:0 0 18px}.modal input,.modal select{display:block;width:100%;margin:7px 0 15px}.modal-close{display:flex;justify-content:flex-end}.modal-close button{background:none;border:0;color:var(--text);font-size:18px}.settings-actions{display:grid;gap:9px;margin:20px 0}.file-label{text-align:center;cursor:pointer}.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:#f2e6ff;color:#21152e;padding:12px 18px;border-radius:30px;font-size:12px;font-weight:800;box-shadow:var(--shadow);transition:.25s;z-index:30;max-width:90%;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:850px){.hero{padding:32px}.hero-orbit{transform:scale(.8);margin-right:-20px}.world-grid{grid-template-columns:repeat(2,1fr)}.game-grid,.tool-grid{grid-template-columns:repeat(2,1fr)}.diary-layout,.hangout-layout,.shop-layout{grid-template-columns:1fr}.shop-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:560px){.topbar{height:62px;padding:0 15px}.brand{font-size:11px}.shell{padding:20px 14px 50px}.hero{padding:27px 22px;min-height:0}.hero h1{font-size:39px}.hero-orbit{position:absolute;right:-100px;bottom:-70px;opacity:.35;transform:scale(.75)}.hero-copy{max-width:100%}.hero-text{max-width:85%;font-size:13px}.stats-grid{grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:42px}.stat{padding:14px}.stat strong{font-size:23px}.section-heading{margin:39px 0 14px}.section-heading h2{font-size:23px}.section-note{display:none}.world-grid{gap:9px}.world-card{padding:15px;min-height:190px}.world-card h3{font-size:16px}.world-card p{font-size:11px}.game-grid,.tool-grid{grid-template-columns:1fr}.game-card,.tool-card{padding:16px}.comfort-panel{padding:20px;gap:15px;align-items:flex-start}.comfort-art{width:65px;height:65px;font-size:32px;border-radius:18px}.comfort-panel h3{font-size:21px}.diary-list-head{align-items:flex-start;flex-direction:column}.diary-list-head input{max-width:none;width:100%}.shop-grid{grid-template-columns:repeat(2,1fr)}.theme-panel>div{align-items:flex-start;flex-direction:column}.achievements-panel{grid-template-columns:1fr}.hangout-form input:first-child{width:100%}.hangout-form input:nth-child(2){flex-basis:100%}.top-actions{gap:6px}.currency{padding:8px 10px}}

 /* Tambayan Lounge layout */
.hangout-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:20px;
  align-items:start;
}
.lounge-welcome{
  padding:28px 30px;
  background:
    radial-gradient(circle at 90% 10%,#c6a5ff22,transparent 35%),
    linear-gradient(135deg,var(--panel2),var(--panel));
  border-color:#c6a5ff38;
}
.lounge-welcome .big-icon{font-size:38px}
.lounge-welcome h3{font-size:22px;margin:10px 0 7px}
.lounge-welcome p{max-width:650px}
.lounge-section{
  padding:22px;
  border:1px solid var(--line);
  border-radius:20px;
  background:linear-gradient(145deg,#ffffff08,transparent 75%);
}
.lounge-section > .eyebrow{margin-bottom:7px}
.lounge-section > h3{
  margin:0 0 16px;
  font-size:20px;
  letter-spacing:-.35px;
}
.lounge-section .tool-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:13px;
}
.lounge-section .tool-card{
  min-width:0;
  min-height:180px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}
.lounge-section .tool-card p{flex:1}
.lounge-section .tool-card .small-btn:disabled{
  opacity:.65;
  cursor:not-allowed;
}
.lounge-section > .hangout-card{
  margin-top:12px;
  box-shadow:none;
}
.lounge-section > .hangout-card:first-of-type{margin-top:0}
.lounge-section .prompt-box{margin-top:14px}
.lounge-section .prompt-box button{margin-top:9px}
.lounge-section #kindFeed{margin-top:10px}
.lounge-section #kindFeed:empty{display:none}
#onlineTambayan,#publicCommunity{
  margin-top:18px;
}
@media(max-width:850px){
  .lounge-section{padding:18px}
  .lounge-section .tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:560px){
  .lounge-welcome{padding:22px}
  .lounge-welcome h3{font-size:19px}
  .lounge-section{padding:15px;border-radius:17px}
  .lounge-section > h3{font-size:18px}
  .lounge-section .tool-grid{grid-template-columns:1fr}
  .lounge-section .tool-card{min-height:0}
  .lounge-section > .hangout-card{padding:17px}

 
/* =========================================
   TAMBAYANVERSE 4.2 — HOMEPAGE GLOW-UP
   Visual refresh only. Does not affect saves.
========================================= */

:root {
  --line: #ffffff20;
  --shadow: 0 22px 65px #05030d70;
}

body {
  background:
    radial-gradient(ellipse at 8% 2%, #7044a744, transparent 34%),
    radial-gradient(ellipse at 92% 24%, #e58bc51c, transparent 30%),
    radial-gradient(ellipse at 55% 85%, #6e8bff10, transparent 35%),
    var(--bg);
  background-attachment: fixed;
}

.topbar {
  background: #100d20dd;
  border-bottom-color: #c6a5ff33;
  box-shadow: 0 8px 35px #05030d24;
}

.brand-mark {
  filter: drop-shadow(0 0 12px #c6a5ff88);
}

.shell {
  max-width: 1240px;
  padding-top: 38px;
}

.panel {
  border-color: color-mix(in srgb, var(--accent), transparent 86%);
  box-shadow: 0 18px 55px #05030d40, inset 0 1px #ffffff08;
  backdrop-filter: blur(12px);
}

.hero {
  min-height: 380px;
  padding: clamp(30px, 5vw, 62px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 83% 42%, #8d65db55, transparent 31%),
    linear-gradient(115deg, #30234d, var(--panel) 66%, #17102a);
  border-color: #c6a5ff44;
}

.hero h1 {
  letter-spacing: -2.5px;
}

.hero h1 em {
  text-shadow: 0 0 28px #c6a5ff55;
}

.hero-text {
  font-size: 14px;
  max-width: 510px;
}

.primary-btn {
  background: linear-gradient(115deg, var(--accent), var(--accent2));
  box-shadow: 0 8px 24px #8d65db44;
  transition: transform .2s, filter .2s;
}

.primary-btn:hover,
.small-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.soft-btn {
  transition: background .2s, border-color .2s, transform .2s;
}

.soft-btn:hover {
  background: #ffffff1c;
  border-color: #c6a5ff77;
  transform: translateY(-2px);
}

.hero-orbit .planet {
  box-shadow: 0 0 85px #c6a5ff77, inset -12px -12px 25px #28144555;
}

.stats-grid {
  gap: 14px;
  margin: 20px 0 62px;
}

.stat {
  position: relative;
  overflow: hidden;
  padding: 20px 21px;
  background: linear-gradient(145deg, var(--panel), #28203e);
  transition: transform .2s, border-color .2s;
}

.stat:after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  right: -42px;
  top: -46px;
  border-radius: 50%;
  background: #c6a5ff20;
}

.stat:hover {
  transform: translateY(-3px);
  border-color: #c6a5ff77;
}

.stat strong {
  font-size: 30px;
  letter-spacing: -1px;
}

.section-heading {
  margin: 58px 0 19px;
}

.section-heading h2 {
  font-size: clamp(23px, 3vw, 30px);
  letter-spacing: -1px;
}

.world-grid {
  gap: 15px;
}

.world-card {
  position: relative;
  overflow: hidden;
  min-height: 215px;
  padding: 24px;
  background:
    radial-gradient(circle at 100% 0%, #c6a5ff22, transparent 42%),
    linear-gradient(145deg, var(--panel2), var(--panel));
  border-color: #c6a5ff25;
  box-shadow: 0 12px 30px #05030d25;
  transition: transform .22s, border-color .22s, box-shadow .22s;
}

.world-card:after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -65px;
  bottom: -75px;
  border: 1px solid #c6a5ff33;
  border-radius: 50%;
  box-shadow: 0 0 0 18px #c6a5ff0d, 0 0 0 38px #c6a5ff08;
  pointer-events: none;
}

.world-card:hover {
  transform: translateY(-6px);
  border-color: #c6a5ff88;
  box-shadow: 0 20px 38px #05030d55;
}

.world-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: #ffffff10;
  border: 1px solid var(--line);
  font-size: 28px;
  margin-bottom: 17px;
}

.world-card h3 {
  font-size: 20px;
  letter-spacing: -.45px;
}

.world-card p {
  max-width: 270px;
}

.content-panel {
  padding: 17px;
  border-radius: 24px;
}

.game-grid,
.tool-grid {
  gap: 14px;
}

.game-card,
.tool-card {
  border-radius: 18px;
  padding: 20px;
  background: linear-gradient(145deg, #ffffff0b, #ffffff04);
  transition: transform .2s, border-color .2s, background .2s;
}

.game-card:hover,
.tool-card:hover {
  transform: translateY(-3px);
  border-color: #c6a5ff55;
  background: linear-gradient(145deg, #ffffff10, #ffffff05);
}

.game-emoji,
.tool-card > span {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: #c6a5ff18;
  border: 1px solid #c6a5ff22;
}

.game-card h3,
.tool-card h3 {
  font-size: 16px;
  letter-spacing: -.25px;
}

.small-btn {
  box-shadow: 0 5px 16px #8d65db33;
  transition: transform .2s, filter .2s;
}

.choice-btn {
  transition: background .2s, border-color .2s;
}

.choice-btn:hover {
  background: #c6a5ff22;
  border-color: #c6a5ff77;
}

.comfort-panel {
  border-radius: 25px;
  padding: 34px;
  background:
    radial-gradient(circle at 0% 100%, #c6a5ff22, transparent 42%),
    linear-gradient(120deg, var(--panel2), var(--panel));
}

.comfort-art {
  background: #c6a5ff20;
  border: 1px solid #c6a5ff33;
}

.diary-form,
.diary-list-panel,
.shop-panel,
.collection-panel {
  border-radius: 22px;
}

.diary-form input:focus,
.diary-form textarea:focus,
.diary-form select:focus,
.inline-form input:focus,
.prompt-box textarea:focus,
.modal input:focus,
.modal select:focus {
  outline: 2px solid #c6a5ff88;
  outline-offset: 1px;
}

.hangout-layout {
  gap: 17px;
}

.lounge-welcome {
  border-radius: 25px;
  min-height: 170px;
  background:
    radial-gradient(circle at 88% 15%, #c6a5ff30, transparent 34%),
    linear-gradient(120deg, var(--panel2), var(--panel));
}

.lounge-section {
  border-radius: 23px;
  background: linear-gradient(145deg, #ffffff09, #ffffff03);
  border-color: #c6a5ff22;
}

.lounge-section .tool-card {
  border-radius: 17px;
}

.shop-item {
  border-radius: 16px;
  transition: transform .2s, border-color .2s;
}

.shop-item:hover {
  transform: translateY(-3px);
  border-color: #c6a5ff77;
}

.theme-choice {
  transition: background .2s, border-color .2s, transform .2s;
}

.theme-choice:hover {
  transform: translateY(-2px);
}

.theme-choice.active {
  background: #a77ce833;
  box-shadow: inset 0 0 0 1px #c6a5ff44;
}

.achievements-panel {
  border-radius: 22px;
}

.footer {
  padding-top: 62px;
}

.footer > span {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid #c6a5ff33;
  border-radius: 30px;
  background: #ffffff07;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Mobile polish */
@media(max-width: 850px) {
  .shell {
    padding-top: 25px;
  }

  .hero {
    min-height: 340px;
  }

  .stats-grid {
    margin-bottom: 48px;
  }
}

@media(max-width: 560px) {
  .shell {
    padding-top: 17px;
  }

  .hero {
    border-radius: 23px;
    padding: 25px 21px;
  }

  .hero h1 {
    font-size: 37px;
  }

  .hero-text {
    max-width: 90%;
    line-height: 1.65;
  }

  .hero-buttons {
    align-items: stretch;
  }

  .hero-buttons a,
  .hero-buttons button {
    font-size: 11px;
    padding: 11px 13px;
  }

  .stats-grid {
    gap: 9px;
    margin: 13px 0 44px;
  }

  .stat {
    border-radius: 17px;
    padding: 14px;
  }

  .stat strong {
    font-size: 25px;
  }

  .section-heading {
    margin: 43px 0 14px;
  }

  .world-card {
    min-height: 195px;
    border-radius: 17px;
    padding: 16px;
  }

  .world-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 24px;
    margin-bottom: 14px;
  }

  .world-card h3 {
    font-size: 16px;
  }

  .content-panel {
    padding: 10px;
    border-radius: 19px;
  }

  .game-card,
  .tool-card {
    border-radius: 16px;
    padding: 16px;
  }

  .comfort-panel {
    border-radius: 20px;
    padding: 18px;
  }

  .lounge-welcome {
    border-radius: 20px;
  }

  .lounge-section {
    border-radius: 18px;
  }

  .footer {
    padding-top: 45px;
  }
}

@media(prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
 }
 
/* =====================================
   TAMBAYANVERSE — MAGICAL HERO UPGRADE
   ===================================== */

.hero {
  isolation: isolate;
  background:
    radial-gradient(ellipse at 15% 15%, #bd91ff35, transparent 42%),
    radial-gradient(ellipse at 85% 80%, #ff8bc52b, transparent 38%),
    linear-gradient(125deg, #30234d, #211832 58%, #17102a);
  border-color: #d6b5ff66;
  box-shadow:
    0 20px 65px #09051266,
    0 0 35px #a77bff12,
    inset 0 1px #ffffff16;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .55;
  background-image:
    radial-gradient(circle, #ffffffcc 1px, transparent 1.8px),
    radial-gradient(circle, #d9b8ff99 1px, transparent 2px);
  background-size: 57px 57px, 91px 91px;
  background-position: 8px 12px, 35px 42px;
  mask-image: linear-gradient(110deg, #000, transparent 85%);
  animation: hero-stars 24s linear infinite;
}

.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: 12%;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, #c59aff22, #f28bc511 45%, transparent 70%);
  filter: blur(12px);
  animation: hero-glow 6s ease-in-out infinite alternate;
}

.hero-copy {
  z-index: 2;
}

.hero .eyebrow {
  text-shadow: 0 0 16px #c6a5ff66;
}

.hero h1 {
  text-shadow: 0 5px 30px #09051266;
}

.hero h1 em {
  background: linear-gradient(90deg, #e2caff, #ffb9dc, #c6a5ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 13px #c6a5ff55);
}

.hero-orbit {
  z-index: 1;
  animation: hero-float 6s ease-in-out infinite;
}

.hero-orbit .planet {
  animation: planet-glow 4s ease-in-out infinite alternate;
}

.hero-orbit .orbit-a {
  animation: orbit-spin 22s linear infinite;
}

.hero-orbit .orbit-b {
  animation: orbit-spin-reverse 28s linear infinite;
}

.hero-orbit .float {
  filter: drop-shadow(0 0 9px #d8baff88);
}

.hero .primary-btn {
  box-shadow: 0 8px 25px #bd91ff55, 0 0 18px #bd91ff22;
}

.hero .primary-btn:focus-visible,
.hero .soft-btn:focus-visible {
  outline: 2px solid #f4d7ff;
  outline-offset: 4px;
}

@keyframes hero-stars {
  from { background-position: 8px 12px, 35px 42px; }
  to { background-position: 65px 69px, -56px 133px; }
}

@keyframes hero-glow {
  from { opacity: .55; scale: .9; }
  to { opacity: 1; scale: 1.12; }
}

@keyframes hero-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}

@keyframes planet-glow {
  from { box-shadow: 0 0 65px #bd91ff66, inset -12px -12px 25px #28144555; }
  to { box-shadow: 0 0 100px #d8aaffaa, inset -12px -12px 25px #28144555; }
}

@keyframes orbit-spin {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

@keyframes orbit-spin-reverse {
  from { rotate: 0deg; }
  to { rotate: -360deg; }
}

@media (max-width: 560px) {
  .hero::after {
    right: -12%;
    top: 60%;
    width: 230px;
    height: 230px;
  }

  .hero-orbit {
    opacity: .42;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after,
  .hero-orbit,
  .hero-orbit .planet,
  .hero-orbit .orbit-a,
  .hero-orbit .orbit-b {
    animation: none !important;
  }
 }
 
/* HERO ORBIT VISIBILITY FIX */
.hero-orbit .orbit {
  border: 2px solid #e0c5ffbb;
  box-shadow: 0 0 12px #c6a5ff55;
  transform-origin: center;
}

.hero-orbit .orbit-a {
  animation: orbit-a-visible 22s linear infinite !important;
}

.hero-orbit .orbit-b {
  animation: orbit-b-visible 28s linear infinite !important;
}

@keyframes orbit-a-visible {
  from { transform: rotate(-25deg); }
  to { transform: rotate(335deg); }
}

@keyframes orbit-b-visible {
  from { transform: rotate(48deg); }
  to { transform: rotate(408deg); }
}

@media (max-width: 560px) {
  .hero-orbit {
    right: -25px !important;
    bottom: -30px !important;
    opacity: .85 !important;
    transform: scale(.72) !important;
    transform-origin: center;
    z-index: 1;
  }

  .hero-orbit .planet {
    opacity: 1;
  }

  .hero-orbit .orbit {
    border-color: #ead8ffdd;
  }
}

/* =====================================
   TAMBAYANVERSE — ANIMATED WORLD CARDS
   ===================================== */

.world-card {
  isolation: isolate;
  transition:
    transform .3s ease,
    border-color .3s ease,
    box-shadow .3s ease,
    background .3s ease;
}

.world-card .world-icon {
  position: relative;
  z-index: 1;
  animation: world-icon-float 3.5s ease-in-out infinite;
  transition: transform .3s ease, filter .3s ease;
}

.world-card:nth-child(2) .world-icon {
  animation-delay: .4s;
}

.world-card:nth-child(3) .world-icon {
  animation-delay: .8s;
}

.world-card:nth-child(4) .world-icon {
  animation-delay: 1.2s;
}

.world-card:nth-child(5) .world-icon {
  animation-delay: 1.6s;
}

.world-card:nth-child(6) .world-icon {
  animation-delay: 2s;
}

.world-card:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: #d8b5ffcc;
  box-shadow:
    0 20px 42px #05030d66,
    0 0 24px #bd91ff22;
}

.world-card:hover .world-icon {
  transform: scale(1.12) rotate(-7deg);
  filter: drop-shadow(0 0 12px #d8b5ff88);
}

.world-card:active {
  transform: scale(.985);
}

.world-card:focus-visible {
  outline: 2px solid #e3caff;
  outline-offset: 4px;
}

.world-card:after {
  transition: transform .5s ease, opacity .5s ease;
}

.world-card:hover:after {
  transform: scale(1.35);
  opacity: 1;
}

@keyframes world-icon-float {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .world-card,
  .world-card .world-icon,
  .world-card:after {
    animation: none !important;
    transition: none !important;
  }
 }
 
/* WORLD CARD — STRONGER PURPLE GLOW */

.world-card {
  border: 1px solid #b98aff55 !important;
  box-shadow:
    0 8px 24px #00000030,
    0 0 12px #a66cff22 !important;
}

.world-card .world-icon {
  box-shadow:
    0 0 12px #bd91ff55,
    0 0 25px #bd91ff22;
  border: 1px solid #d4b5ff88;
}

.world-card:hover,
.world-card:active {
  border-color: #d6aaff !important;
  box-shadow:
    0 0 12px #bd91ff99,
    0 0 30px #9b5cff66,
    0 15px 35px #00000055 !important;
}

.world-card:hover .world-icon,
.world-card:active .world-icon {
  box-shadow:
    0 0 18px #d6aaff,
    0 0 35px #a66cffcc;
}

/* =====================================
   TAMBAYANVERSE — MAGICAL STATS DASHBOARD
   ===================================== */

.stat {
  position: relative;
  overflow: hidden;
  border: 1px solid #c6a5ff33;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, #c6a5ff20, transparent 60%),
    linear-gradient(145deg, #211832, #151020);
  box-shadow: 0 8px 22px #00000030;
  transition: transform .25s ease, box-shadow .25s ease;
}

.stat:before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  width: 76%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    #d9b5ff,
    #ffb6dc,
    transparent
  );
  opacity: .85;
}

.stat:nth-child(2):before {
  background: linear-gradient(90deg, transparent, #a9d7ff, #c6a5ff, transparent);
}

.stat:nth-child(3):before {
  background: linear-gradient(90deg, transparent, #9ff0d0, #a9d7ff, transparent);
}

.stat:nth-child(4):before {
  background: linear-gradient(90deg, transparent, #ffd18d, #ffadd5, transparent);
}

.stat strong {
  position: relative;
  z-index: 1;
  text-shadow: 0 0 16px #c6a5ff55;
}

.stat:hover,
.stat:active {
  transform: translateY(-4px);
  box-shadow:
    0 12px 28px #00000044,
    0 0 18px #bd91ff33;
}

.stat .progress {
  height: 7px;
  background: #ffffff18;
  border-radius: 20px;
}

.stat .progress i {
  box-shadow: 0 0 10px #c6a5ff99;
  transition: width .5s ease;
}

@media (max-width: 560px) {
  .stat {
    border-radius: 15px;
    padding: 14px;
  }
 }
 
/* =====================================
   CHAOS ARCADE — GAME CARD GLOW
   ===================================== */

.game-card,
.tool-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #bd91ff44;
  border-radius: 19px;
  background:
    radial-gradient(circle at 100% 0%, #bd91ff18, transparent 55%),
    linear-gradient(145deg, #211832, #151020);
  box-shadow: 0 8px 22px #00000030;
  transition:
    transform .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

.game-card:before,
.tool-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    #d6aaff,
    #ffb6dc,
    transparent
  );
  opacity: .8;
}

.game-card:hover,
.game-card:active,
.tool-card:hover,
.tool-card:active {
  transform: translateY(-5px);
  border-color: #d6aaffbb;
  box-shadow:
    0 12px 28px #00000044,
    0 0 20px #bd91ff44;
}

.game-emoji,
.tool-card>span {
  display: inline-block;
  filter: drop-shadow(0 0 8px #bd91ff66);
  transition: transform .25s ease;
}

.game-card:hover .game-emoji,
.tool-card:hover>span {
  transform: scale(1.15) rotate(-6deg);
}

.game-card h3,
.tool-card h3 {
  position: relative;
  z-index: 1;
}

.small-btn {
  box-shadow: 0 0 12px #bd91ff33;
  transition: transform .2s ease, box-shadow .2s ease;
}

.small-btn:active {
  transform: scale(.96);
  box-shadow: 0 0 18px #bd91ff88;
 }
 
/* =====================================
   COMFORT CORNER — COZY SANCTUARY
   ===================================== */

.comfort-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #d4b5ff55;
  border-radius: 25px;
  background:
    radial-gradient(circle at 10% 20%, #c6a5ff30, transparent 38%),
    radial-gradient(circle at 90% 90%, #ffb6dc20, transparent 40%),
    linear-gradient(135deg, #261b38, #171222);
  box-shadow:
    0 12px 30px #00000035,
    0 0 20px #bd91ff18;
}

.comfort-panel:after {
  content: "✦";
  position: absolute;
  right: 25px;
  top: 15px;
  color: #e2c9ff;
  font-size: 25px;
  opacity: .65;
  animation: comfort-twinkle 3s ease-in-out infinite;
  pointer-events: none;
}

.comfort-art {
  border: 1px solid #e0c5ff66;
  background:
    radial-gradient(circle, #d8b5ff44, #9b72c733);
  box-shadow:
    0 0 20px #bd91ff55,
    inset 0 0 18px #ffffff12;
  animation: comfort-float 4s ease-in-out infinite;
}

.comfort-panel h3 {
  color: #f1e2ff;
  text-shadow: 0 0 18px #bd91ff55;
  line-height: 1.3;
}

.comfort-panel p:not(.eyebrow) {
  line-height: 1.8;
}

.comfort-panel .soft-btn {
  border: 1px solid #d6b5ff66;
  box-shadow: 0 0 14px #bd91ff22;
  transition: transform .2s ease, box-shadow .2s ease;
}

.comfort-panel .soft-btn:active {
  transform: scale(.97);
  box-shadow: 0 0 20px #bd91ff77;
}

@keyframes comfort-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-7px) rotate(2deg); }
}

@keyframes comfort-twinkle {
  0%, 100% { opacity: .3; transform: scale(.8) rotate(0); }
  50% { opacity: 1; transform: scale(1.2) rotate(25deg); }
}

@media (prefers-reduced-motion: reduce) {
  .comfort-art,
  .comfort-panel:after {
    animation: none !important;
  }
}

/* =====================================
   EXPERIMENT LAB — COLORFUL SCIENCE
   ===================================== */

.tool-card {
  border-color: #a9d7ff44;
  background:
    radial-gradient(circle at 100% 0%, #a9d7ff20, transparent 55%),
    linear-gradient(145deg, #1d2038, #151020);
}

.tool-card:nth-child(2) {
  border-color: #ffb6dc55;
  background:
    radial-gradient(circle at 100% 0%, #ffb6dc22, transparent 55%),
    linear-gradient(145deg, #302039, #171020);
}

.tool-card:nth-child(3) {
  border-color: #a8f0d055;
  background:
    radial-gradient(circle at 100% 0%, #a8f0d022, transparent 55%),
    linear-gradient(145deg, #1b302e, #151020);
}

.tool-card input[type="range"] {
  accent-color: #c6a5ff;
  cursor: pointer;
  margin: 13px 0;
}

.tool-card strong {
  color: #e0c5ff;
  text-shadow: 0 0 12px #bd91ff44;
}

.tool-card:hover {
  border-color: #d6b5ffbb;
  box-shadow:
    0 12px 28px #00000044,
    0 0 20px #bd91ff33;
}

.tool-card:focus-within {
  border-color: #d6b5ff;
  box-shadow: 0 0 18px #bd91ff44;
}

.tool-card input,
.tool-card button {
  position: relative;
  z-index: 1;
}

/* =====================================
   MYSTERY LIBRARY — ENCHANTED ARCHIVE
   ===================================== */

#mystery h2 {
  color: #ead5ff;
  text-shadow:
    0 0 12px #bd91ff99,
    0 0 28px #9b5cff55;
}

#mystery + .tool-grid .tool-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #bd91ff66;
  background:
    radial-gradient(circle at 90% 0%, #a66cff30, transparent 55%),
    linear-gradient(145deg, #281b3d, #130f20);
  box-shadow:
    0 8px 22px #00000035,
    0 0 12px #9b5cff18;
  transition:
    transform .3s ease,
    border-color .3s ease,
    box-shadow .3s ease;
}

#mystery + .tool-grid .tool-card:before {
  content: "✦";
  position: absolute;
  right: 15px;
  top: 12px;
  color: #e2c9ff;
  font-size: 18px;
  opacity: .6;
  animation: archive-twinkle 3s ease-in-out infinite;
  pointer-events: none;
}

#mystery + .tool-grid .tool-card > span {
  display: inline-block;
  filter: drop-shadow(0 0 10px #c6a5ff99);
  animation: archive-float 3.5s ease-in-out infinite;
}

#mystery + .tool-grid .tool-card:nth-child(even) > span {
  animation-delay: 1s;
}

#mystery + .tool-grid .tool-card h3 {
  color: #ead5ff;
  text-shadow: 0 0 12px #bd91ff44;
}

#mystery + .tool-grid .tool-card p {
  line-height: 1.7;
}

#mystery + .tool-grid .tool-card .small-btn {
  background: linear-gradient(120deg, #d7b5ff, #f0b9df);
  color: #24152f;
  box-shadow: 0 0 14px #bd91ff44;
  font-weight: 800;
}

#mystery + .tool-grid .tool-card:hover,
#mystery + .tool-grid .tool-card:active {
  transform: translateY(-5px);
  border-color: #e0c5ff;
  box-shadow:
    0 12px 28px #00000055,
    0 0 24px #bd91ff55;
}

#mystery + .tool-grid .tool-card:focus-within {
  border-color: #e0c5ff;
  box-shadow: 0 0 20px #bd91ff66;
}

@keyframes archive-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-6px) rotate(3deg); }
}

@keyframes archive-twinkle {
  0%, 100% { opacity: .25; transform: scale(.8); }
  50% { opacity: .9; transform: scale(1.2); }
}

@media (prefers-reduced-motion: reduce) {
  #mystery + .tool-grid .tool-card:before,
  #mystery + .tool-grid .tool-card > span {
    animation: none !important;
  }
 }
 
/* =====================================
   CONFESSION ROOM — DREAMY JOURNAL
   ===================================== */

#diary + .diary-layout .diary-form,
#diary + .diary-layout .diary-list-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid #e4b9ff55;
  background:
    radial-gradient(circle at 100% 0%, #ffb6dc20, transparent 50%),
    linear-gradient(145deg, #261b35, #171220);
  box-shadow: 0 10px 28px #00000035;
}

#diary + .diary-layout h3 {
  color: #f0dcff;
  text-shadow: 0 0 12px #bd91ff44;
}

#diary + .diary-layout .diary-form input,
#diary + .diary-layout .diary-form textarea,
#diary + .diary-layout .diary-form select,
#diary + .diary-layout .diary-list-head input {
  border: 1px solid #d6aaff55;
  background: #100b1dcc;
  transition: border-color .25s ease, box-shadow .25s ease;
}

#diary + .diary-layout .diary-form input:focus,
#diary + .diary-layout .diary-form textarea:focus,
#diary + .diary-layout .diary-form select:focus,
#diary + .diary-layout .diary-list-head input:focus {
  outline: none;
  border-color: #e0c5ff;
  box-shadow: 0 0 14px #bd91ff55;
}

#diary + .diary-layout .diary-form label {
  color: #e2c9ff;
}

#diary + .diary-layout .diary-entry {
  padding: 16px;
  margin: 10px 0;
  border: 1px solid #d6aaff33;
  border-radius: 14px;
  background: #ffffff08;
  transition: border-color .25s ease, background .25s ease;
}

#diary + .diary-layout .diary-entry:hover {
  border-color: #d6aaff88;
  background: #bd91ff12;
}

#diary + .diary-layout .diary-entry h4 {
  color: #f0dcff;
}

#diary + .diary-layout .entry-meta {
  color: #c6a5e8;
}

#diary + .diary-layout .entry-actions button {
  padding: 7px 10px;
  border-radius: 8px;
  background: #bd91ff15;
  transition: background .2s ease;
}

#diary + .diary-layout .entry-actions button:active {
  background: #bd91ff44;
}

#diary + .diary-layout .full-btn {
  box-shadow: 0 0 16px #bd91ff44;
}

#diary + .diary-layout .form-note {
  color: #c7b5d8;
}

@media (max-width: 560px) {
  #diary + .diary-layout .diary-form,
  #diary + .diary-layout .diary-list-panel {
    border-radius: 18px;
  }

  #diary + .diary-layout .diary-entry {
    padding: 13px;
  }
 }
 
/* =====================================
   TAMBAYAN LOUNGE — COSMIC COMMUNITY
   ===================================== */

.lounge-welcome {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #d6aaff66;
  background:
    radial-gradient(circle at 90% 10%, #bd91ff35, transparent 45%),
    radial-gradient(circle at 10% 100%, #ffb6dc20, transparent 45%),
    linear-gradient(135deg, #291b40, #151020);
  box-shadow:
    0 12px 30px #00000040,
    0 0 20px #bd91ff22;
}

.lounge-welcome:after {
  content: "✦  ✧  ✦";
  position: absolute;
  right: 20px;
  top: 18px;
  color: #e4caff;
  letter-spacing: 12px;
  opacity: .65;
  animation: lounge-sparkle 4s ease-in-out infinite;
  pointer-events: none;
}

.lounge-welcome .big-icon {
  display: inline-block;
  filter: drop-shadow(0 0 12px #d6aaff99);
  animation: lounge-float 4s ease-in-out infinite;
}

.lounge-welcome h3 {
  color: #f0dcff;
  text-shadow: 0 0 16px #bd91ff66;
}

.lounge-section {
  position: relative;
  border: 1px solid #bd91ff33;
  background:
    radial-gradient(circle at 100% 0%, #bd91ff12, transparent 50%),
    #1b1528dd;
  box-shadow: 0 8px 22px #00000025;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.lounge-section > .eyebrow {
  color: #d6b5ff;
  letter-spacing: 2px;
}

.lounge-section > h3 {
  color: #f0dcff;
  text-shadow: 0 0 12px #bd91ff44;
}

.lounge-section .tool-card {
  border-color: #bd91ff55;
  background:
    radial-gradient(circle at 100% 0%, #a66cff20, transparent 55%),
    linear-gradient(145deg, #261b38, #151020);
}

.lounge-section .tool-card:hover,
.lounge-section .tool-card:active {
  border-color: #e0c5ff;
  box-shadow:
    0 0 18px #bd91ff55,
    0 12px 24px #00000044;
  transform: translateY(-4px);
}

.lounge-section .hangout-card {
  border: 1px solid #bd91ff44;
  background:
    radial-gradient(circle at 100% 0%, #bd91ff18, transparent 55%),
    #20182f;
  border-radius: 16px;
}

.lounge-section .prompt-box {
  border: 1px solid #d6aaff44;
  border-radius: 15px;
  background: #bd91ff0c;
  padding: 15px;
}

.lounge-section input,
.lounge-section textarea {
  border-color: #bd91ff55;
}

.lounge-section input:focus,
.lounge-section textarea:focus {
  outline: none;
  border-color: #e0c5ff;
  box-shadow: 0 0 13px #bd91ff55;
}

.lounge-section button {
  transition: transform .2s ease, box-shadow .2s ease;
}

.lounge-section button:active {
  transform: scale(.97);
  box-shadow: 0 0 14px #bd91ff66;
}

#onlineTambayan,
#publicCommunity {
  border: 1px solid #bd91ff44;
  border-radius: 16px;
  box-shadow: 0 0 18px #bd91ff18;
}

@keyframes lounge-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-7px) rotate(3deg); }
}

@keyframes lounge-sparkle {
  0%, 100% { opacity: .25; }
  50% { opacity: .9; }
}

@media (prefers-reduced-motion: reduce) {
  .lounge-welcome:after,
  .lounge-welcome .big-icon {
    animation: none !important;
  }
 }
 
/* =====================================
   STAR SHOP — CELESTIAL BOUTIQUE
   ===================================== */

.shop-panel,
.collection-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid #e7c27a55;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, #ffd98b20, transparent 50%),
    linear-gradient(145deg, #292039, #171220);
  box-shadow: 0 10px 28px #00000035;
}

.shop-heading h3,
.collection-panel h3 {
  color: #ffe5ad;
  text-shadow: 0 0 14px #ffd98b55;
}

.currency {
  border: 1px solid #ffd98b77;
  background: #ffd98b18;
  box-shadow: 0 0 14px #ffd98b22;
}

.currency b {
  color: #ffe5ad;
  text-shadow: 0 0 10px #ffd98b88;
}

.shop-item {
  position: relative;
  overflow: hidden;
  border: 1px solid #ffd98b44;
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 0%, #ffd98b18, transparent 65%),
    #ffffff08;
  transition:
    transform .25s ease,
    border-color .25s ease,
    box-shadow .25s ease;
}

.shop-item>span {
  display: inline-block;
  filter: drop-shadow(0 0 10px #ffd98b88);
  transition: transform .25s ease;
}

.shop-item:hover {
  transform: translateY(-5px);
  border-color: #ffe5ad;
  box-shadow:
    0 0 18px #ffd98b44,
    0 10px 22px #00000044;
}

.shop-item:hover>span {
  transform: scale(1.15) rotate(-7deg);
}

.shop-item h4 {
  color: #ffe5ad;
}

.shop-item button {
  border: 1px solid #ffe0a0;
  box-shadow: 0 0 12px #ffd98b33;
  transition: transform .2s ease, box-shadow .2s ease;
}

.shop-item button:active {
  transform: scale(.96);
  box-shadow: 0 0 18px #ffd98b77;
}

.shop-item button:disabled {
  filter: grayscale(.5);
  box-shadow: none;
}

.collection-pill {
  border: 1px solid #ffd98b55;
  background: #ffd98b14;
  color: #ffe5ad;
  box-shadow: 0 0 10px #ffd98b18;
  transition: transform .2s ease, box-shadow .2s ease;
}

.collection-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 14px #ffd98b55;
}

@media (prefers-reduced-motion: reduce) {
  .shop-item,
  .shop-item>span,
  .collection-pill {
    transition: none !important;
  }
 }
 
/* =====================================
   ACHIEVEMENTS — TROPHY COLLECTION
   ===================================== */

.achievements-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid #c6a5ff55;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, #bd91ff20, transparent 50%),
    linear-gradient(145deg, #261b38, #151020);
  box-shadow: 0 10px 26px #00000035;
}

.achievements-panel h3 {
  color: #ead5ff;
  text-shadow: 0 0 12px #bd91ff55;
}

.achievements-panel .chip-list {
  gap: 9px;
}

.achievements-panel .chip {
  border: 1px solid #d6aaff55;
  background: #bd91ff16;
  color: #ead5ff;
  box-shadow: 0 0 10px #bd91ff18;
  transition: transform .25s ease, box-shadow .25s ease;
}

.achievements-panel .chip:not(.locked):hover {
  transform: translateY(-3px) scale(1.04);
  border-color: #ead5ff;
  box-shadow: 0 0 16px #bd91ff66;
}

.achievements-panel .chip.locked {
  border-style: dashed;
  background: #ffffff05;
  filter: grayscale(.7);
}

.achievements-panel .chip:not(.locked) {
  background:
    linear-gradient(135deg, #bd91ff22, #ffb6dc18);
}

@media (prefers-reduced-motion: reduce) {
  .achievements-panel .chip {
    transition: none !important;
  }
}
 
/* =====================================
   PUBLIC TAMBAYAN — DREAMY SOCIAL FEED
===================================== */

#publicCommunity {
  border: 1px solid #bd91ff55;
  border-radius: 24px;
  padding: 12px;
  background:
    radial-gradient(circle at 8% 0%, #bd91ff16, transparent 38%),
    radial-gradient(circle at 95% 85%, #ffb6dc12, transparent 35%);
  box-shadow: 0 12px 35px #00000030, 0 0 22px #bd91ff18;
}

#publicCommunity .community-panel {
  border: 1px solid #bd91ff44;
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, #bd91ff18, transparent 45%),
    linear-gradient(145deg, #261b38, #171222);
  box-shadow: 0 8px 24px #00000025;
}

#publicCommunity .community-panel h2,
#publicCommunity .community-panel h3 {
  color: #f0dcff;
  text-shadow: 0 0 13px #bd91ff44;
}

#publicCommunity .community-post {
  position: relative;
  overflow: hidden;
  border: 1px solid #bd91ff44;
  border-radius: 18px;
  padding: 17px;
  background:
    radial-gradient(circle at 100% 0%, #bd91ff13, transparent 48%),
    linear-gradient(145deg, #211832, #171222);
  box-shadow: 0 7px 20px #00000025;
  transition: border-color .25s ease, box-shadow .25s ease,
    transform .25s ease;
}

#publicCommunity .community-post:hover {
  border-color: #d6aaff99;
  box-shadow: 0 10px 26px #00000040, 0 0 16px #bd91ff22;
  transform: translateY(-2px);
}

#publicCommunity .community-avatar {
  border: 1px solid #d6aaff77;
  background: radial-gradient(circle, #bd91ff44, #ffffff0c);
  box-shadow: 0 0 13px #bd91ff33;
}

#publicCommunity .community-author b {
  color: #f0dcff;
}

#publicCommunity .community-author small {
  color: #c6a5e8;
}

#publicCommunity .community-post-content {
  color: #f4edff;
  line-height: 1.75;
  padding: 5px 0 9px;
}

#publicCommunity .community-actions {
  padding-top: 10px;
  border-top: 1px solid #ffffff12;
}

#publicCommunity .community-actions button {
  border: 1px solid #bd91ff55;
  background: #bd91ff18;
  color: #ead5ff;
  transition: background .2s ease, transform .2s ease,
    box-shadow .2s ease;
}

#publicCommunity .community-actions button:hover {
  background: #bd91ff35;
  box-shadow: 0 0 12px #bd91ff44;
}

#publicCommunity .community-actions button:active {
  transform: scale(.96);
}

#publicCommunity .community-actions > .community-muted {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

#publicCommunity .community-actions > .community-muted span {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid #bd91ff44;
  border-radius: 30px;
  background: #bd91ff18;
  color: #f0dcff;
  font-size: 11px;
  box-shadow: 0 0 9px #bd91ff18;
}

#publicCommunity .community-reaction-picker {
  border-color: #d6aaff77;
  background: #171022f2;
  box-shadow: 0 8px 25px #00000055, 0 0 16px #bd91ff22;
}

#publicCommunity .community-comment {
  border-top-color: #bd91ff25;
  color: #e8def5;
  line-height: 1.6;
}

#publicCommunity .community-comment b {
  color: #e2c9ff;
}

#publicCommunity .community-comment small {
  color: #ad9cbe;
}

#publicCommunity .community-comment-form {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #ffffff12;
}

#publicCommunity .community-comment-form input {
  flex: 1;
  min-width: 0;
  border-color: #bd91ff44;
  background: #100b1dcc;
}

#publicCommunity .community-comment-form input:focus,
#publicCommunity #communityPostText:focus,
#publicCommunity #communityName:focus {
  outline: none;
  border-color: #d6aaff;
  box-shadow: 0 0 13px #bd91ff44;
}

#publicCommunity .community-comment-form button {
  flex-shrink: 0;
  box-shadow: 0 0 12px #bd91ff33;
}

#publicCommunity #communityComposer {
  padding: 14px;
  margin: 12px 0;
  border: 1px solid #bd91ff44;
  border-radius: 16px;
  background: #bd91ff0c;
}

#publicCommunity #communityPostText {
  border-color: #bd91ff55;
  background: #100b1dcc;
}

#publicCommunity #communityPostButton {
  background: linear-gradient(110deg, #d6b5ff, #f0b9df);
  box-shadow: 0 0 15px #bd91ff44;
}

#publicCommunity .community-member {
  border-bottom-color: #bd91ff25;
}

#publicCommunity .community-member:hover {
  color: #f0dcff;
}

@media(max-width:560px) {
  #publicCommunity {
    padding: 7px;
    border-radius: 19px;
  }

  #publicCommunity .community-panel {
    border-radius: 17px;
    padding: 14px;
  }

  #publicCommunity .community-post {
    padding: 13px;
  }

  #publicCommunity .community-comment-form {
    flex-wrap: wrap;
  }

  #publicCommunity .community-comment-form input {
    flex-basis: 100%;
  }
}

@media(prefers-reduced-motion: reduce) {
  #publicCommunity .community-post,
  #publicCommunity .community-actions button {
    transition: none !important;
  }
 }
 
/* =================================
   TAMBAYANVERSE INTERACTIVE MAP
================================= */

.verse-map-panel {
  position: relative;
  overflow: hidden;
  padding: 22px;
  margin-bottom: 30px;
  border: 1px solid rgba(190, 135, 255, 0.25);
  background:
    radial-gradient(ellipse at 50% 45%, rgba(133, 75, 220, 0.2), transparent 55%),
    linear-gradient(145deg, rgba(35, 20, 65, 0.96), rgba(13, 12, 35, 0.98));
  box-shadow: 0 0 35px rgba(135, 75, 220, 0.12);
}

.map-sky {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 50%, rgba(139, 82, 225, 0.16), transparent 35%),
    radial-gradient(circle at 15% 20%, rgba(75, 100, 190, 0.13), transparent 30%),
    radial-gradient(circle at 85% 80%, rgba(190, 80, 190, 0.12), transparent 30%);
}

.map-center {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 145px;
  height: 145px;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 50%;
  text-align: center;
  border: 1px solid rgba(220, 180, 255, 0.65);
  background: radial-gradient(circle, #57318c, #21123d 75%);
  box-shadow:
    0 0 20px rgba(177, 112, 255, 0.55),
    0 0 55px rgba(135, 75, 220, 0.3),
    inset 0 0 20px rgba(220, 180, 255, 0.13);
  animation: map-center-glow 4s ease-in-out infinite;
}

.map-center > span {
  font-size: 27px;
}

.map-center strong {
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 1.5px;
}

.map-center small {
  color: #d8baff;
  font-size: 8px;
  letter-spacing: 1px;
}

@keyframes map-center-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(177, 112, 255, 0.45),
                0 0 45px rgba(135, 75, 220, 0.25);
  }
  50% {
    box-shadow: 0 0 30px rgba(205, 155, 255, 0.75),
                0 0 70px rgba(135, 75, 220, 0.4);
  }
}

.map-orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(190, 145, 255, 0.2);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.orbit-one {
  width: 330px;
  height: 330px;
  animation: map-orbit-spin 35s linear infinite;
}

.orbit-two {
  width: 490px;
  height: 490px;
  border-style: dashed;
  animation: map-orbit-spin 55s linear infinite reverse;
}

@keyframes map-orbit-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.map-star {
  position: absolute;
  color: #e8d2ff;
  text-shadow: 0 0 12px #c18aff;
  animation: map-twinkle 2.5s ease-in-out infinite;
}

.star-one { top: 12%; left: 17%; font-size: 22px; }
.star-two { top: 22%; right: 15%; font-size: 28px; animation-delay: .6s; }
.star-three { bottom: 15%; left: 24%; font-size: 18px; animation-delay: 1.2s; }
.star-four { bottom: 22%; right: 20%; font-size: 25px; animation-delay: 1.8s; }

@keyframes map-twinkle {
  0%, 100% { opacity: .35; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.25); }
}

.map-destinations {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.map-location {
  position: absolute;
  width: 135px;
  min-height: 92px;
  padding: 11px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(215, 180, 255, 0.32);
  border-radius: 17px;
  background: rgba(35, 22, 61, 0.88);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  animation: map-location-float 4s ease-in-out infinite;
}

.map-location:hover,
.map-location:focus-visible {
  transform: translateY(-7px) scale(1.06);
  border-color: #d6aaff;
  box-shadow: 0 0 24px rgba(183, 119, 255, 0.45);
  outline: none;
}

.map-location > span {
  font-size: 25px;
}

.map-location strong {
  font-size: 11px;
  line-height: 1.2;
}

.map-location small {
  color: #c9a9ed;
  font-size: 9px;
}

@keyframes map-location-float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -7px; }
}

.map-arcade { top: 7%; left: 8%; animation-delay: 0s; }
.map-comfort { top: 7%; right: 8%; animation-delay: .5s; }
.map-lab { top: 40%; right: 1%; animation-delay: 1s; }
.map-library { bottom: 7%; right: 8%; animation-delay: 1.5s; }
.map-diary { bottom: 7%; left: 8%; animation-delay: 2s; }
.map-lounge { top: 40%; left: 1%; animation-delay: 2.5s; }

.map-caption {
  margin: 15px 0 0;
  text-align: center;
  color: #c9b3e8;
  font-size: 12px;
}

/* Mobile map layout */
@media (max-width: 600px) {
  .verse-map-panel {
    padding: 10px;
  }

  .map-sky {
    min-height: 590px;
  }

  .map-center {
    width: 112px;
    height: 112px;
  }

  .map-center > span {
    font-size: 22px;
  }

  .map-center strong {
    font-size: 11px;
  }

  .map-center small {
    font-size: 7px;
  }

  .orbit-one {
    width: 230px;
    height: 230px;
  }

  .orbit-two {
    width: 330px;
    height: 330px;
  }

  .map-location {
    width: 112px;
    min-height: 83px;
    padding: 8px 5px;
  }

  .map-location > span {
    font-size: 22px;
  }

  .map-location strong {
    font-size: 10px;
  }

  .map-location small {
    font-size: 8px;
  }

  .map-arcade { top: 5%; left: 3%; }
  .map-comfort { top: 5%; right: 3%; }
  .map-lab { top: 40%; right: 0; }
  .map-library { bottom: 5%; right: 3%; }
  .map-diary { bottom: 5%; left: 3%; }
  .map-lounge { top: 40%; left: 0; }
 }
 
/* MAP DESTINATION TAP EFFECT */

.map-location {
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  position: absolute;
  overflow: hidden;
}

.map-location::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: radial-gradient(
    circle,
    rgba(220, 180, 255, 0.35),
    transparent 70%
  );
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.map-location:active {
  transform: scale(0.94);
  border-color: #f0d5ff;
  box-shadow:
    0 0 18px rgba(205, 155, 255, 0.8),
    0 0 35px rgba(135, 75, 220, 0.5);
}

.map-location:active::after {
  opacity: 1;
}

.map-location:focus-visible {
  outline: 2px solid #e5c6ff;
  outline-offset: 4px;
}
 
/* =================================
   AVATAR STUDIO — PROFILE MAKEOVER
================================= */

#profileDialog {
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  box-sizing: border-box;
  width: min(440px, calc(100% - 28px));
  padding: 25px 22px;
  border: 1px solid rgba(200, 155, 255, .4);
  border-radius: 26px;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(165, 100, 255, .2), transparent 45%),
    linear-gradient(145deg, #24143d, #100d20);
  box-shadow:
    0 0 35px rgba(155, 90, 255, .2),
    0 25px 80px rgba(0, 0, 0, .5);
}

#profileDialog::backdrop {
  background: rgba(5, 3, 15, .82);
  backdrop-filter: blur(9px);
}

#profileDialog > .eyebrow {
  color: #d5b2ff;
  letter-spacing: 2px;
  text-align: center;
}

#profileDialog h2 {
  text-align: center;
  font-size: 25px;
  margin: 5px 0 22px;
  background: linear-gradient(90deg, #fff, #d9b7ff, #fff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#profileDialog label {
  display: block;
  margin: 15px 0 7px;
  color: #dfc9ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
}

#profileDialog input,
#profileDialog select,
#profileDialog textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  color: #fff;
  border: 1px solid rgba(195, 150, 255, .3);
  border-radius: 13px;
  background: rgba(255, 255, 255, .07);
  font: inherit;
}

#profileDialog textarea {
  display: block;
  min-height: 82px;
  resize: vertical;
  line-height: 1.55;
  color: #fff;
  background: rgba(255,255,255,.07);
}
#profileDialog select option {
  color: #24143d;
  background: #fff;
}

#profileDialog input:focus,
#profileDialog select:focus,
#profileDialog textarea:focus {
  outline: 2px solid rgba(194, 145, 255, .65);
  border-color: #c99aff;
}

#profileDialog #saveProfile {
  position: sticky;
  bottom: 0;
  z-index: 5;
  padding: 12px;
  background: #24143d;
  box-shadow: 0 -10px 18px rgba(16,13,32,.85);
  cursor: pointer;
  touch-action: manipulation;
}
#profileDialog .full-btn,
#profileDialog button.primary-btn {
  width: 100%;
  margin-top: 20px;
  min-height: 47px;
  border-radius: 14px;
  font-weight: 900;
  box-shadow: 0 0 20px rgba(174, 110, 255, .22);
}

#profileDialog .modal-close {
  margin: -10px -8px 8px;
}

#profileDialog .modal-close button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  transition: background .2s, transform .2s;
}

#profileDialog .modal-close button:hover {
  background: rgba(190, 140, 255, .2);
  transform: rotate(90deg);
}

@media (max-width: 560px) {
  #profileDialog {
    padding: 21px 17px;
  }
}
 /* AVATAR STUDIO — LIVE PREVIEW */

.avatar-preview-wrap {
  text-align: center;
  margin: 22px 0 25px;
  padding: 20px 12px;
  border: 1px solid rgba(195, 150, 255, .2);
  border-radius: 20px;
  background: rgba(160, 100, 255, .07);
}

.avatar-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  margin: 0 auto 12px;
  border-radius: 50%;
  font-size: 55px;
  background:
    radial-gradient(circle, rgba(205, 160, 255, .28), rgba(100, 50, 160, .15));
  border: 2px solid rgba(210, 175, 255, .65);
  box-shadow:
    0 0 18px rgba(180, 115, 255, .4),
    0 0 42px rgba(140, 75, 230, .25),
    inset 0 0 20px rgba(210, 170, 255, .12);
  animation: avatarPreviewFloat 3s ease-in-out infinite;
  transition: transform .2s, box-shadow .2s;
}

.avatar-preview-wrap p {
  margin: 8px 0 3px;
  color: #f0dcff;
  font-weight: 800;
}

.avatar-preview-wrap span {
  color: #bda5d8;
  font-size: 12px;
}

@keyframes avatarPreviewFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .avatar-preview {
    animation: none;
  }
}
 /* AVATAR STUDIO — DARK PURPLE SELECT */

#profileDialog select#profileAvatar {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 52px;
  padding: 12px 44px 12px 15px;
  color: #f5eaff;
  background-color: #302047;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23d9b7ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  border: 1px solid rgba(205, 165, 255, .45);
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(160, 100, 255, .12);
  font-size: 16px;
  font-weight: 700;
}

#profileDialog select#profileAvatar:focus {
  outline: none;
  border-color: #d8b5ff;
  box-shadow: 0 0 0 3px rgba(190, 135, 255, .15),
              0 0 22px rgba(160, 100, 255, .25);
}

#profileDialog select#profileAvatar option,
#profileDialog select#profileAvatar optgroup {
  color: #f5eaff;
  background: #241536;
}
 /* AVATAR STUDIO — PREMIUM CHARACTER DISPLAY */

.avatar-preview-wrap {
  position: relative;
  overflow: hidden;
  margin: 25px 0;
  padding: 26px 14px 22px;
  border: 1px solid rgba(205, 165, 255, .38);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 35%, rgba(175, 105, 255, .24), transparent 48%),
    linear-gradient(145deg, #281740, #171027 75%);
  box-shadow:
    inset 0 0 30px rgba(170, 110, 255, .08),
    0 10px 30px rgba(0, 0, 0, .2);
}

.avatar-preview-wrap::before,
.avatar-preview-wrap::after {
  content: "✦";
  position: absolute;
  color: #e4c5ff;
  font-size: 20px;
  opacity: .75;
  animation: avatarSparkle 3s ease-in-out infinite;
}

.avatar-preview-wrap::before {
  top: 22px;
  left: 22px;
}

.avatar-preview-wrap::after {
  right: 24px;
  bottom: 35px;
  animation-delay: 1.2s;
}

.avatar-preview {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto 16px;
  font-size: 66px;
  border: 2px solid #d8b5ff;
  background:
    radial-gradient(circle at 35% 25%, #694a91, #28183e 75%);
  box-shadow:
    0 0 0 7px rgba(190, 140, 255, .07),
    0 0 25px rgba(190, 130, 255, .55),
    0 0 55px rgba(130, 75, 220, .28),
    inset 0 0 20px rgba(255, 255, 255, .12);
  animation: avatarPreviewFloat 3s ease-in-out infinite;
}

.avatar-preview-wrap p {
  font-size: 15px;
  letter-spacing: .4px;
  color: #f4e5ff;
}

.avatar-preview-wrap span {
  display: inline-block;
  margin-top: 3px;
  color: #c5a9e5;
  font-size: 12px;
}

@keyframes avatarSparkle {
  0%, 100% {
    opacity: .35;
    transform: scale(.8) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.25) rotate(25deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .avatar-preview,
  .avatar-preview-wrap::before,
  .avatar-preview-wrap::after {
    animation: none;
  }
}
 
/* AVATAR STUDIO — CUSTOM AVATAR GALLERY */

.avatar-gallery {
  margin: 18px 0 22px;
  padding: 15px;
  border: 1px solid rgba(195, 150, 255, .22);
  border-radius: 20px;
  background: rgba(145, 90, 210, .07);
}

.avatar-category {
  margin: 16px 0 10px;
  color: #dfc4ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .8px;
}

.avatar-category:first-child {
  margin-top: 0;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.avatar-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  aspect-ratio: 1;
  padding: 5px;
  border: 1px solid rgba(200, 160, 255, .2);
  border-radius: 15px;
  color: white;
  background: linear-gradient(145deg, #392451, #241633);
  font-size: 29px;
  cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}

.avatar-choice:active {
  transform: scale(.91);
}

.avatar-choice.selected {
  border: 2px solid #e1bfff;
  background: linear-gradient(145deg, #68418d, #392451);
  box-shadow:
    0 0 12px rgba(195, 135, 255, .55),
    inset 0 0 12px rgba(220, 180, 255, .12);
  transform: scale(1.04);
}

.avatar-choice:focus-visible {
  outline: 2px solid #e6caff;
  outline-offset: 3px;
}

@media (max-width: 380px) {
  .avatar-grid {
    gap: 7px;
  }

  .avatar-choice {
    font-size: 25px;
    border-radius: 12px;
  }
   }
 
/* HOMEPAGE CLEANUP — BETTER SPACING */

#view-home > .hero {
  margin-bottom: 22px;
}

#view-home > .stats-grid {
  margin: 20px 0 34px;
}

#view-home > .section-heading {
  margin: 36px 0 14px;
}

#view-home .world-grid {
  gap: 12px;
}

#view-home .world-card {
  min-height: 185px;
  padding: 20px;
}

#view-home .world-card p {
  line-height: 1.55;
}

@media (max-width: 560px) {
  #view-home > .hero {
    margin-bottom: 16px;
  }

  #view-home > .stats-grid {
    margin: 16px 0 28px;
  }

  #view-home > .section-heading {
    margin: 30px 0 12px;
  }

  #view-home .world-grid {
    gap: 10px;
  }

  #view-home .world-card {
    min-height: 170px;
    padding: 13px;
  }

  #view-home .world-card p {
    line-height: 1.45;
  }
}
 
/* =====================================
   TAMBAYANVERSE MAP — DESKTOP RESTORE
===================================== */

@media (min-width: 601px) {
  .verse-map-panel {
    padding: 28px !important;
    border: 1px solid rgba(190, 135, 255, 0.4) !important;
    border-radius: 25px !important;
    background:
      radial-gradient(ellipse at 50% 45%, rgba(133, 75, 220, 0.28), transparent 60%),
      linear-gradient(145deg, #231440, #0d0c23) !important;
    box-shadow:
      0 0 35px rgba(135, 75, 220, 0.2),
      inset 0 0 35px rgba(190, 135, 255, 0.06) !important;
  }

  .map-sky {
    min-height: 650px !important;
    border: 1px solid rgba(190, 145, 255, 0.12);
    background:
      radial-gradient(circle at 50% 50%, rgba(139, 82, 225, 0.25), transparent 38%),
      radial-gradient(circle at 15% 20%, rgba(75, 100, 190, 0.18), transparent 32%),
      radial-gradient(circle at 85% 80%, rgba(190, 80, 190, 0.18), transparent 32%) !important;
  }

  .map-center {
    width: 155px !important;
    height: 155px !important;
    border: 1px solid rgba(220, 180, 255, 0.8) !important;
    background: radial-gradient(circle, #68409c, #21123d 75%) !important;
    box-shadow:
      0 0 25px rgba(177, 112, 255, 0.7),
      0 0 65px rgba(135, 75, 220, 0.4),
      inset 0 0 25px rgba(220, 180, 255, 0.2) !important;
  }

  .orbit-one {
    width: 370px !important;
    height: 370px !important;
  }

  .orbit-two {
    width: 540px !important;
    height: 540px !important;
  }

  .map-location {
    width: 155px !important;
    min-height: 105px !important;
    padding: 14px !important;
    border: 1px solid rgba(215, 180, 255, 0.5) !important;
    border-radius: 20px !important;
    background: linear-gradient(145deg, rgba(65, 39, 100, 0.96), rgba(28, 18, 52, 0.96)) !important;
    box-shadow:
      0 10px 30px rgba(0, 0, 0, 0.35),
      0 0 15px rgba(160, 100, 255, 0.12) !important;
    backdrop-filter: blur(12px);
  }

  .map-location > span {
    font-size: 30px !important;
  }

  .map-location strong {
    font-size: 13px !important;
    color: #fff !important;
  }

  .map-location small {
    font-size: 10px !important;
    color: #d8baff !important;
  }

  .map-location:hover {
    transform: translateY(-8px) scale(1.06);
    border-color: #e0c2ff !important;
    box-shadow: 0 0 30px rgba(183, 119, 255, 0.5) !important;
  }

  .map-caption {
    color: #d8baff !important;
    font-size: 13px !important;
    letter-spacing: 0.3px;
  }
}
 /* AUTH SESSION RESTORATION */
html.auth-checking #authGate {
  display: grid !important;
}

html.auth-checking #authGate .auth-gate-actions,
html.auth-checking #authGate .auth-gate-footer {
  display: none !important;
}

html.auth-checking #authGate .auth-gate-description {
  font-size: 0;
}

html.auth-checking #authGate .auth-gate-description::after {
  content: "Restoring your Tambayan... 💜";
  font-size: 15px;
   }
 /* MANDATORY LOGIN GATE */
html.auth-locked,
html.auth-locked body {
  min-height: 100%;
  overflow: hidden;
}

html.auth-locked body > :not(#authGate):not(dialog) {
  display: none !important;
}

html.auth-locked #authGate {
  display: grid !important;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 15% 15%, rgba(176, 120, 255, .2), transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(255, 120, 190, .15), transparent 40%),
    #100d20;
}

.auth-gate-card {
  width: min(100%, 440px);
  padding: 36px 26px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 26px;
  background: rgba(35, 27, 54, .94);
  box-shadow: 0 20px 70px rgba(0,0,0,.4);
  text-align: center;
  color: #fff;
}

.auth-gate-logo {
  font-size: 42px;
  color: #d8a8ff;
  margin-bottom: 12px;
}

.auth-gate .eyebrow {
  color: #c7a6e8;
  letter-spacing: 2px;
  font-size: 10px;
}

.auth-gate h1 {
  font-size: clamp(30px, 8vw, 42px);
  margin: 12px 0;
}

.auth-gate h1 em {
  color: #d6a7ff;
  font-style: normal;
}

.auth-gate-description {
  color: #d0c5dc;
  line-height: 1.7;
  margin: 16px 0 28px;
}

.auth-gate-actions {
  display: grid;
  gap: 12px;
}

.auth-gate .full-btn {
  width: 100%;
  min-height: 48px;
}

.auth-gate-footer {
  color: #bba4d0;
  font-size: 12px;
  margin-top: 26px;
}
 
 
   
 
 
 
 
 
                    
                              
 
 
 
 
 
 
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  


/* CHAOS ARCADE EXPANSION */
.expansion-game { position: relative; overflow: hidden; }
.expansion-game:after { content: "NEW CHALLENGE"; position: absolute; top: 12px; right: -27px; transform: rotate(35deg); padding: 4px 28px; font-size: 8px; letter-spacing: 1px; color: #f3dfff; background: #7650a8; opacity: .85; }
.difference-puzzle { display: grid; gap: 7px; margin: 12px 0; padding: 12px; border-radius: 12px; background: #08061266; text-align: center; }
.difference-row { display: flex; justify-content: space-around; gap: 4px; font-size: 22px; letter-spacing: 2px; }
.difference-row span { min-width: 22px; }
.expansion-game .choice-row { margin: 10px 0; }
.expansion-game .choice-btn { min-width: 42px; min-height: 36px; font-size: 12px; }
.expansion-game .inline-form input { flex: 1; width: 0; }
.attic-photo-image { user-select: none; transition: transform .2s ease, filter .2s ease; }
.attic-photo-image:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.attic-photo-secret { padding: 12px; border: 1px dashed var(--line); border-radius: 12px; background: #ffffff0a; line-height: 1.7; }
.attic-photo-clue-link { display: inline-block; margin: 8px 0 14px; }
@media (max-width:560px) { .difference-row { font-size: 19px; } .expansion-game:after { font-size: 7px; } }


/* Star Shop — Treasure Exchange expansion */
.shop-season-note{font-size:12px;line-height:1.6;color:var(--muted);margin:12px 0}
.shop-filters{display:flex;gap:7px;overflow-x:auto;padding:3px 0 10px;scrollbar-width:thin}
.shop-filter{flex:0 0 auto;border:1px solid var(--line);background:#ffffff0b;color:var(--text);border-radius:30px;padding:8px 12px;font-size:10px;font-weight:800}
.shop-filter.active{background:var(--accent);border-color:var(--accent);color:#21152e}
.shop-item-top{display:flex;align-items:center;justify-content:space-between;gap:6px}
.shop-rarity{font-size:9px;text-transform:uppercase;letter-spacing:1px;font-weight:900;padding:5px 7px;border-radius:20px;background:#ffffff12}
.shop-item-common{border-color:#ffffff25}
.shop-item-rare{border-color:#65b9ed66;background:linear-gradient(145deg,#2375a51c,#ffffff05)}
.shop-item-epic{border-color:#b68bff77;background:linear-gradient(145deg,#8952c52b,#ffffff05)}
.shop-item-legendary{border-color:#e9bd6c99;background:linear-gradient(145deg,#b47b2529,#ffffff05);box-shadow:inset 0 0 18px #e9bd6c0c}
.shop-category{display:block;color:var(--muted);font-size:9px;text-transform:uppercase;letter-spacing:1px;margin:0 0 9px}
.shop-set{padding:12px;border:1px solid var(--line);border-radius:13px;background:#ffffff08;margin-top:9px}
.shop-set.is-complete{border-color:#78d6a477;background:#78d6a40c}
.shop-set-head{display:flex;align-items:center;gap:8px;font-size:11px}
.shop-set-head>span{font-size:20px}
.shop-set-head strong{flex:1}
.shop-set-head b{font-variant-numeric:tabular-nums;color:var(--accent)}
.shop-set p{font-size:10px;color:var(--muted);margin:7px 0}
.shop-set small{display:block;font-size:9px;line-height:1.7;color:var(--muted)}
.shop-set-track{height:5px;background:#ffffff12;border-radius:8px;overflow:hidden;margin:9px 0 6px}
.shop-set-track i{display:block;height:100%;background:var(--accent);border-radius:8px}
.shop-set em{font-style:normal;font-size:9px;font-weight:900;letter-spacing:.7px;color:var(--accent)}
.collection-sets-wrap{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.collection-sets-wrap h3{font-size:15px;margin:0 0 8px}
@media(max-width:560px){.shop-filters{margin-right:-4px}.shop-item{padding:11px}.shop-item h4{font-size:11px}.shop-item p{min-height:48px}.shop-set{padding:10px}}

/* Collectible equipment and player showcase */
.equipped-profile-title{display:inline-block;margin-left:7px;padding:3px 8px;border-radius:20px;background:#b78cff22;color:var(--accent);font-size:10px;vertical-align:middle}
.equipment-studio{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.equipment-studio h3{font-size:16px;margin:0 0 6px}
.equipment-help{font-size:11px;color:var(--muted);line-height:1.5;margin:0 0 12px}
.equipment-options{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.equipment-slot{display:grid;gap:5px;font-size:10px;font-weight:800;color:var(--muted)}
.equipment-slot select{width:100%;min-width:0;border:1px solid var(--line);border-radius:10px;padding:10px;background:var(--panel);color:var(--text);font:inherit}
.equipped-showcase{display:flex;flex-wrap:wrap;gap:7px;margin-top:9px}
.equipped-chip{font-size:10px;padding:7px 10px;border-radius:20px;background:#b78cff18;border:1px solid #b78cff44}
#headerAvatar[data-frame="frame_cloud"],#avatarPreview[data-frame="frame_cloud"]{outline:3px solid #b9e7ff;outline-offset:3px;border-radius:16px}
#headerAvatar[data-frame="frame_galaxy"],#avatarPreview[data-frame="frame_galaxy"]{outline:3px solid #d4a7ff;outline-offset:3px;border-radius:16px;box-shadow:0 0 15px #bd7cff88}
#headerAvatar[data-aura="aura_nebula"],#avatarPreview[data-aura="aura_nebula"]{filter:drop-shadow(0 0 9px #bd83ff)}
#headerAvatar[data-aura="wings_phoenix"],#avatarPreview[data-aura="wings_phoenix"]{filter:drop-shadow(0 0 9px #ff9b54)}
#headerAvatar[data-decoration="avatar_moonhalo"]::after,#avatarPreview[data-decoration="avatar_moonhalo"]::after{content:"🌙";position:absolute;font-size:12px;transform:translate(8px,-13px)}
#headerAvatar[data-decoration="avatar_aurora"]::after,#avatarPreview[data-decoration="avatar_aurora"]::after{content:"🦋";position:absolute;font-size:12px;transform:translate(8px,-13px)}
#headerAvatar[data-decoration="avatar_crown"]::after,#avatarPreview[data-decoration="avatar_crown"]::after{content:"👑";position:absolute;font-size:12px;transform:translate(8px,-13px)}
#headerAvatar,#avatarPreview{position:relative}
@media(max-width:560px){.equipment-options{grid-template-columns:1fr}}


/* VISIBILITY PASS — collection and writing panels */
.collection-panel {
  background:
    radial-gradient(ellipse at 90% 0%, rgba(177,135,255,.16), transparent 48%),
    linear-gradient(145deg, rgba(36,24,61,.98), rgba(19,14,37,.98));
  border: 1px solid rgba(207,174,255,.34);
  box-shadow: 0 14px 36px rgba(5,2,18,.28), inset 0 1px 0 rgba(255,255,255,.07);
}
.collection-panel > .eyebrow,
.collection-sets-wrap > .eyebrow {
  color: #e5caff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow: 0 1px 10px rgba(201,160,255,.28);
}
.collection-panel > h3,
.collection-sets-wrap > h3 {
  color: #fff8ff;
  font-size: 19px;
  font-weight: 800;
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
.collection-list {
  gap: 9px;
  margin-top: 17px;
}
.collection-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(191,151,255,.22), rgba(255,255,255,.09));
  border: 1px solid rgba(220,192,255,.42);
  border-radius: 13px;
  color: #fffaff;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.collection-sets-wrap {
  margin-top: 24px;
  padding-top: 19px;
  border-top: 1px solid rgba(220,192,255,.2);
}
.collection-sets .shop-set {
  background: rgba(8,5,20,.42);
  border: 1px solid rgba(210,181,255,.22);
  border-radius: 14px;
  padding: 13px;
}
.collection-sets .shop-set strong,
.collection-sets .shop-set b {
  color: #fff7ff;
}
.collection-sets .shop-set p,
.collection-sets .shop-set small,
.collection-sets .shop-set em {
  color: #e0d3f2;
  line-height: 1.55;
}
.diary-list-panel {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(177,135,255,.13), transparent 45%),
    linear-gradient(145deg, rgba(34,23,57,.98), rgba(17,13,32,.98));
  border: 1px solid rgba(207,174,255,.32);
  box-shadow: 0 14px 36px rgba(5,2,18,.25), inset 0 1px 0 rgba(255,255,255,.06);
}
.diary-list-head .eyebrow {
  color: #e5caff;
  font-weight: 900;
  letter-spacing: 1.7px;
}
.diary-list-head h3 {
  color: #fffaff;
  font-size: 19px;
  font-weight: 800;
}
.diary-list-head input {
  color: #fffaff;
  background: rgba(7,4,18,.72);
  border-color: rgba(220,192,255,.35);
}
.diary-list-head input::placeholder {
  color: #c2b2d8;
}
.diary-entry {
  margin-top: 10px;
  padding: 15px;
  background: rgba(7,4,18,.34);
  border: 1px solid rgba(220,192,255,.17);
  border-radius: 13px;
}
.diary-entry:last-child {
  border-bottom: 1px solid rgba(220,192,255,.17);
}
.diary-entry .entry-meta {
  color: #cdbce4;
  font-size: 11px;
  font-weight: 650;
}
.diary-entry h4 {
  color: #fffaff;
  font-size: 15px;
  font-weight: 800;
}
.diary-entry p {
  color: #f0e8fa;
  font-size: 13px;
  line-height: 1.75;
}
.diary-entry .entry-actions button {
  color: #e1c4ff;
  font-size: 11px;
  font-weight: 800;
  padding: 7px 4px;
}
.collection-panel .empty-state,
.diary-list-panel .empty-state {
  color: #d9c9ec;
  font-size: 12px;
  line-height: 1.6;
}
@media (max-width: 620px) {
  .collection-panel,
  .diary-list-panel {
    padding: 17px;
  }
  .collection-pill {
    font-size: 11px;
    padding: 9px 10px;
  }
  .diary-list-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .diary-list-head input {
    width: 100%;
    max-width: none;
  }
}


/* Avatar Studio equipment + profile photo polish */
.profile-photo-uploader {
  margin: 17px 0 20px;
  padding: 15px;
  border: 1px solid rgba(210,178,255,.28);
  border-radius: 15px;
  background: rgba(166,119,255,.08);
}
.profile-photo-uploader .eyebrow {
  color: #e5caff;
  font-weight: 900;
  letter-spacing: 1.5px;
}
.profile-photo-pick {
  display: block;
  width: 100%;
  margin-top: 9px;
  padding: 12px 14px;
  border: 1px solid rgba(220,190,255,.4);
  border-radius: 11px;
  background: rgba(181,133,255,.18);
  color: #fff8ff !important;
  text-align: center;
  font-size: 12px !important;
  font-weight: 800 !important;
  cursor: pointer;
}
.profile-photo-remove {
  width: 100%;
  margin-top: 8px;
  font-size: 11px;
}
.profile-photo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
#headerAvatar .profile-photo-image {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}
#avatarPreview .profile-photo-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}
#headerAvatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
}
#avatarPreview {
  overflow: visible;
}
.equipped-profile-title {
  display: inline-block;
  margin: 0 0 0 8px;
  padding: 5px 10px;
  border: 1px solid rgba(222,190,255,.48);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(173,120,255,.28), rgba(255,255,255,.1));
  color: #fff4ff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.3;
  vertical-align: middle;
  box-shadow: 0 0 12px rgba(176,125,255,.18);
}
.equipped-profile-badge {
  display: inline-block;
  margin-left: 5px;
  color: #ffe7a6;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle;
}
.equipment-slot {
  padding: 10px;
  border: 1px solid rgba(207,174,255,.2);
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  color: #e9dcf7;
  font-size: 11px;
}
.equipment-slot select {
  min-height: 42px;
  background: #171027;
  border-color: rgba(220,192,255,.34);
  color: #fffaff;
  font-size: 12px;
}
.equipped-chip {
  color: #fffaff;
  font-size: 11px;
  font-weight: 750;
  padding: 8px 11px;
  background: linear-gradient(135deg, rgba(176,126,255,.24), rgba(255,255,255,.08));
  border-color: rgba(220,192,255,.38);
}
#headerAvatar[data-frame="frame_cloud"],#avatarPreview[data-frame="frame_cloud"] {
  outline: 3px solid #b9e7ff;
  outline-offset: 3px;
  border-radius: 50%;
}
#headerAvatar[data-frame="frame_galaxy"],#avatarPreview[data-frame="frame_galaxy"] {
  outline: 3px solid #d4a7ff;
  outline-offset: 3px;
  border-radius: 50%;
  box-shadow: 0 0 15px #bd7cff88;
}
#headerAvatar[data-decoration="avatar_moonhalo"]::after,
#avatarPreview[data-decoration="avatar_moonhalo"]::after { content:"🌙"; top:-8px; right:-7px; transform:none; }
#headerAvatar[data-decoration="avatar_aurora"]::after,
#avatarPreview[data-decoration="avatar_aurora"]::after { content:"🦋"; top:-8px; right:-7px; transform:none; }
#headerAvatar[data-decoration="avatar_crown"]::after,
#avatarPreview[data-decoration="avatar_crown"]::after { content:"👑"; top:-8px; right:-7px; transform:none; }
#headerAvatar[data-decoration]::after,
#avatarPreview[data-decoration]::after {
  position: absolute;
  font-size: 15px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.45));
  pointer-events: none;
}
@media(max-width:560px) {
  .profile-photo-uploader { padding: 12px; }
  .equipped-profile-title { font-size: 9px; padding: 4px 7px; }
  .equipped-profile-badge { font-size: 10px; }
}


/* Make equipped homepage title readable and intentional */
#equippedProfileTitle.equipped-profile-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  max-width: min(100%, 260px);
  margin: 0 0 2px 9px;
  padding: 7px 13px;
  border: 1px solid rgba(238,211,255,.72);
  border-radius: 999px;
  background: linear-gradient(135deg, #7650ad, #49316f);
  color: #fffaff !important;
  font-family: inherit;
  font-size: 13px !important;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: .15px;
  white-space: normal;
  text-align: center;
  vertical-align: middle;
  box-shadow: 0 3px 13px rgba(8,3,22,.3), 0 0 15px rgba(192,145,255,.25);
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
@media(max-width:560px) {
  #equippedProfileTitle.equipped-profile-title {
    max-width: 170px;
    margin-left: 7px;
    padding: 6px 10px;
    font-size: 12px !important;
    line-height: 1.2;
  }
}

/* Comfort Corner expansion */
.comfort-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px}
.comfort-tool{padding:22px;position:relative;overflow:hidden}
.comfort-tool-icon{font-size:30px;margin-bottom:10px}
.comfort-tool h3{font-family:'Playfair Display',serif;font-size:21px;margin:4px 0 8px}
.comfort-tool>p:not(.eyebrow){color:var(--muted);font-size:13px;line-height:1.7;min-height:42px}
.comfort-progress{font-size:10px;letter-spacing:2px;color:var(--accent);font-weight:800;margin:14px 0}
.grounding-list{padding:13px 15px;margin:14px 0;border-radius:14px;background:#ffffff0c;border:1px solid #ffffff18;font-size:13px;line-height:1.6;min-height:48px}
.comfort-tool .soft-btn{margin-top:8px}
.comfort-tool textarea{width:100%;resize:vertical;min-height:105px;padding:13px;border-radius:13px;border:1px solid #ffffff24;background:#ffffff0b;color:inherit;font:inherit;font-size:13px;outline:none}
.comfort-tool textarea:focus{border-color:var(--accent)}
.comfort-journal-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;color:var(--muted);font-size:11px}
@media(max-width:560px){.comfort-tools{grid-template-columns:1fr}.comfort-tool{padding:19px}.comfort-tool>p:not(.eyebrow){min-height:0}}


/* My Space: make achievements and discoveries comfortable to read */
.achievements-panel{
  align-items:start;
  gap:24px;
}
.achievements-panel>div{
  min-width:0;
}
.achievements-panel h3{
  margin:0 0 12px;
  color:var(--text);
  font-size:16px;
  line-height:1.35;
}
.chip-list{
  display:flex;
  flex-wrap:wrap;
  align-items:stretch;
  gap:9px;
}
.chip-list .chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  max-width:100%;
  min-height:38px;
  padding:8px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:var(--panel2);
  color:var(--text);
  font-size:13px;
  font-weight:600;
  line-height:1.4;
  overflow-wrap:anywhere;
  white-space:normal;
}
.chip-list .chip.locked{
  opacity:1;
  color:var(--muted);
  background:transparent;
  border-style:dashed;
}
@media(max-width:560px){
  .achievements-panel{
    grid-template-columns:1fr;
    gap:22px;
    padding:18px;
  }
  .achievements-panel>div+div{
    padding-top:18px;
    border-top:1px solid var(--line);
  }
  .chip-list{gap:8px}
  .chip-list .chip{
    min-height:40px;
    padding:9px 11px;
    font-size:13px;
  }
}


/* LIGHT ATMOSPHERES — soft palettes with readable contrast */
body[data-theme="cloud"]{
  --bg:#f4f0f8;--panel:#fffdfd;--panel2:#eee7f5;--text:#332b3d;
  --muted:#756b7d;--accent:#8566a8;--accent2:#a58ac2;--line:#55436b24;
  --shadow:0 12px 35px #47365714;
  background:radial-gradient(ellipse at 12% 0%,#e4d7f266,transparent 38%),radial-gradient(ellipse at 95% 35%,#f4ddeb88,transparent 34%),var(--bg);
}
body[data-theme="peach"]{
  --bg:#fff3e9;--panel:#fffaf5;--panel2:#f8e5d8;--text:#49342d;
  --muted:#856e63;--accent:#b96f56;--accent2:#d99578;--line:#79503b26;
  --shadow:0 12px 35px #79503b14;
  background:radial-gradient(ellipse at 12% 0%,#f8d9c766,transparent 38%),radial-gradient(ellipse at 95% 35%,#f6dce088,transparent 34%),var(--bg);
}
body[data-theme="matcha"]{
  --bg:#f0f4e9;--panel:#fbfdf6;--panel2:#e5edd9;--text:#303d30;
  --muted:#6e7b68;--accent:#66845d;--accent2:#91a77d;--line:#435d3c29;
  --shadow:0 12px 35px #34452d14;
  background:radial-gradient(ellipse at 12% 0%,#dce9cc88,transparent 38%),radial-gradient(ellipse at 95% 35%,#e9efd988,transparent 34%),var(--bg);
}
body[data-theme="cloud"] .panel,
body[data-theme="peach"] .panel,
body[data-theme="matcha"] .panel{
  background:var(--panel);border-color:var(--line);box-shadow:var(--shadow);
}
body[data-theme="cloud"] .world-card,
body[data-theme="peach"] .world-card,
body[data-theme="matcha"] .world-card,
body[data-theme="cloud"] .game-card,
body[data-theme="peach"] .game-card,
body[data-theme="matcha"] .game-card,
body[data-theme="cloud"] .tool-card,
body[data-theme="peach"] .tool-card,
body[data-theme="matcha"] .tool-card{
  background:var(--panel2);border-color:var(--line);color:var(--text);
}
body[data-theme="cloud"] .soft-btn,
body[data-theme="peach"] .soft-btn,
body[data-theme="matcha"] .soft-btn,
body[data-theme="cloud"] .theme-choice,
body[data-theme="peach"] .theme-choice,
body[data-theme="matcha"] .theme-choice{
  background:var(--panel2);border-color:var(--line);color:var(--text);
}
body[data-theme="cloud"] .topbar,
body[data-theme="peach"] .topbar,
body[data-theme="matcha"] .topbar{
  background:color-mix(in srgb,var(--panel) 92%,transparent);
  border-color:var(--line);
}
body[data-theme="cloud"] .modal input,
body[data-theme="peach"] .modal input,
body[data-theme="matcha"] .modal input,
body[data-theme="cloud"] .modal select,
body[data-theme="peach"] .modal select,
body[data-theme="matcha"] .modal select,
body[data-theme="cloud"] textarea,
body[data-theme="peach"] textarea,
body[data-theme="matcha"] textarea{
  background:var(--panel);color:var(--text);border-color:var(--line);
}
body[data-theme="cloud"] .primary-btn,
body[data-theme="peach"] .primary-btn,
body[data-theme="matcha"] .primary-btn{
  color:#fff;
}
@media(max-width:700px){
  .theme-panel>div{align-items:flex-start;flex-direction:column}
  .theme-options{width:100%}
  .theme-choice{flex:1 1 auto}
}


/* THEME CONTRAST SYSTEM — shared readable text and controls */
body[data-theme="violet"]{--text:#f7f1ff;--muted:#c8bdd8;--accent:#c6a5ff;--accent2:#8d65db;--line:#ffffff24;color-scheme:dark}
body[data-theme="rose"]{--text:#fff2f8;--muted:#d8b8c8;--accent:#ffc0d9;--accent2:#d66d9f;--line:#ffffff25;color-scheme:dark}
body[data-theme="ocean"]{--text:#eff8ff;--muted:#b5cadb;--accent:#a9e1ff;--accent2:#4b9dc9;--line:#ffffff24;color-scheme:dark}
body[data-theme="midnight"]{--text:#f0f3ff;--muted:#b9c5e0;--accent:#c0d0ff;--accent2:#738fd9;--line:#ffffff24;color-scheme:dark}
body[data-theme="cloud"]{--text:#30283a;--muted:#655a70;--accent:#76549b;--accent2:#9877b7;--line:#57466b30;color-scheme:light}
body[data-theme="peach"]{--text:#402d27;--muted:#70594f;--accent:#a85c43;--accent2:#c77b5d;--line:#704b3a30;color-scheme:light}
body[data-theme="matcha"]{--text:#29382b;--muted:#596b55;--accent:#55764c;--accent2:#78966b;--line:#405b3d30;color-scheme:light}
body[data-theme="cloud"] input,body[data-theme="cloud"] textarea,body[data-theme="cloud"] select,
body[data-theme="peach"] input,body[data-theme="peach"] textarea,body[data-theme="peach"] select,
body[data-theme="matcha"] input,body[data-theme="matcha"] textarea,body[data-theme="matcha"] select{color:var(--text)}
body[data-theme="cloud"] input::placeholder,body[data-theme="cloud"] textarea::placeholder,
body[data-theme="peach"] input::placeholder,body[data-theme="peach"] textarea::placeholder,
body[data-theme="matcha"] input::placeholder,body[data-theme="matcha"] textarea::placeholder{color:var(--muted);opacity:1}


/* DEVICE, ACCESSIBILITY & INPUT POLISH */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 84px;
}
body {
  min-width: 320px;
  overflow-x: clip;
}
button, a, input, textarea, select, summary {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible, a:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent, #c6a5ff);
  outline-offset: 3px;
}
img, video, canvas, svg {
  max-width: 100%;
}
.shell, .app-view, .panel, .section-heading, .section-heading > div {
  min-width: 0;
}
.modal {
  max-height: min(88dvh, 780px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
@media (max-width: 560px) {
  input, textarea, select {
    font-size: 16px;
  }
  .topbar {
    gap: 8px;
    padding-left: 11px;
    padding-right: 11px;
  }
  .brand {
    min-width: 0;
    gap: 7px;
    letter-spacing: 1px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .top-actions {
    flex-shrink: 0;
    gap: 6px;
  }
  .currency {
    padding: 7px 8px;
  }
  .account-chip {
    max-width: 102px;
    min-width: 0;
  }
  .account-chip-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .modal {
    width: min(480px, calc(100% - 20px));
    padding: 20px 16px;
    border-radius: 18px;
  }
  .modal-close button {
    min-width: 40px;
    min-height: 40px;
  }
}
@media (max-width: 360px) {
  .brand small { display: none; }
  .brand { font-size: 10px; }
  .currency { padding: 6px 7px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* Header profile photo: keep the uploaded image centered inside its circle. */
#headerAvatar {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 50%;
}
#headerAvatar .profile-photo-image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 50%;
  margin: 0;
}


/* Align the small uploaded-photo avatar in the top-right header button. */
.profile-avatar-btn {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  padding: 0 !important;
  overflow: hidden;
  line-height: 0;
}
#headerAvatar {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  line-height: 1;
  overflow: hidden;
}
#headerAvatar .profile-photo-image {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  margin: 0;
  border-radius: 50%;
}


/* Correctly spaced profile layout on narrow phones */
@media (max-width: 520px) {
  #home .profile-hero { gap: 18px !important; padding: 18px 16px !important; }
  #home .profile-hero-top { align-items: flex-start !important; gap: 12px !important; }
  #home .profile-hero-avatar-wrap { flex: 0 0 62px !important; width: 62px !important; height: 62px !important; }
  #home .profile-hero-identity { min-width: 0 !important; flex: 1 1 0 !important; }
  #home .profile-hero-identity h1 { font-size: clamp(24px,7vw,30px) !important; }
  #home .profile-hero-bottom { display: grid !important; grid-template-columns: 1fr !important; gap: 16px !important; }
  #home .profile-hero-stats { gap: 28px !important; }
  #home .profile-edit-btn { width: 100% !important; min-height: 48px !important; font-size: 13px !important; }
  #home > .stats-grid { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 8px !important; overflow: visible !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
  #home > .stats-grid .stat { min-width: 0 !important; min-height: 116px !important; padding: 15px 14px !important; border: 1px solid rgba(233,200,141,.22) !important; border-radius: 14px !important; }
}


/* Mobile header controls: give Inbox, account name and avatar room to tap. */
@media (max-width: 560px) {
  .topbar {
    height: auto !important;
    min-height: 104px;
    padding: 9px 12px 10px !important;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    row-gap: 8px;
  }
  .topbar > .brand {
    flex: 1 0 100%;
    min-height: 27px;
  }
  .topbar > .top-actions {
    display: flex;
    width: 100%;
    flex: 1 0 100%;
    justify-content: space-between;
    align-items: center;
    gap: 8px !important;
  }
  .top-actions .star-wallet {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 7px 10px !important;
  }
  .top-actions .bt-dm-top-launcher {
    display: inline-flex;
    flex: 1 1 auto;
    min-width: 76px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 13px;
    touch-action: manipulation;
  }
  .top-actions .account-chip {
    display: inline-flex;
    flex: 1 1 auto;
    max-width: none !important;
    min-width: 88px;
    min-height: 44px !important;
    justify-content: center;
    gap: 6px;
    padding: 7px 9px !important;
    touch-action: manipulation;
  }
  .top-actions .account-chip-icon {
    display: inline-flex !important;
  }
  .top-actions .account-chip-name {
    max-width: 100%;
    font-size: 11px;
  }
  .top-actions .profile-avatar-btn {
    flex: 0 0 44px;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    touch-action: manipulation;
  }
}
@media (max-width: 380px) {
  .topbar { padding-left: 9px !important; padding-right: 9px !important; }
  .top-actions { gap: 5px !important; }
  .top-actions .bt-dm-top-launcher { min-width: 66px; padding-left: 6px; padding-right: 6px; }
  .top-actions .account-chip { min-width: 78px; padding-left: 6px !important; padding-right: 6px !important; }
}


/* Color Reaction Test: make each answer a visibly colored, tappable tile. */
.color-reaction-board{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  width:100%;
  max-width:560px;
  margin:18px auto;
}
.color-reaction-tile{
  appearance:none;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:76px;
  width:100%;
  padding:16px 12px;
  border:3px solid var(--tile-border,#ffffff66)!important;
  border-radius:16px;
  background:var(--tile-color,#777)!important;
  color:#fff!important;
  font-size:clamp(15px,3vw,19px);
  font-weight:900;
  letter-spacing:1.2px;
  text-shadow:0 1px 3px #000b,0 0 8px #0006;
  box-shadow:0 5px 0 #0004,0 10px 22px #0003;
  transition:transform .14s ease,filter .14s ease,box-shadow .14s ease;
  touch-action:manipulation;
}
.color-reaction-tile:active{transform:translateY(3px);box-shadow:0 2px 0 #0004,0 5px 12px #0003;filter:brightness(1.12)}
.color-reaction-tile:hover{filter:brightness(1.08)}
.color-reaction-tile.color-reaction-correct{outline:4px solid #70e6a0;outline-offset:2px}
.color-reaction-tile.color-reaction-wrong{outline:4px solid #ff7373;outline-offset:2px}
@media(max-width:420px){
  .color-reaction-board{gap:9px}
  .color-reaction-tile{min-height:68px;border-radius:13px;padding:13px 8px}
}

/* Illustrated Spot the Difference */
.difference-stats{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:12px 0;color:var(--text-color,#f5efff);font-size:12px;font-weight:700}.difference-heading{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 7px;text-align:center;font-size:10px;letter-spacing:1.5px;color:var(--text-color,#f5efff)}.difference-panels{display:grid;grid-template-columns:1fr 1fr;gap:10px}.difference-image{display:block;width:100%;padding:0;overflow:hidden;border:2px solid #8871a8;border-radius:12px;background:#171322;cursor:crosshair;touch-action:manipulation}.difference-image svg{display:block;width:100%;height:auto;aspect-ratio:16/9}.difference-image:focus-visible{outline:3px solid #70e0bd;outline-offset:3px}.difference-puzzle{padding:10px!important}.difference-result{min-height:38px}@media(max-width:560px){.difference-panels{gap:6px}.difference-image{border-radius:8px}.difference-stats{font-size:11px}}

/* Spot the Difference progressive-stage controls */
.difference-actions{display:flex;justify-content:center;align-items:center;gap:14px;flex-wrap:wrap;margin:8px 0 2px}.difference-actions button{min-height:38px;padding:8px 14px;border:1px solid #8d79ae;border-radius:10px;background:#211a30;color:var(--text-color,#f7f2ff);font-weight:750}.difference-actions button:active{transform:scale(.97)}
@media(max-width:560px){.difference-actions{gap:8px}.difference-actions button{flex:1;min-width:125px}}

/* Spot the Difference: full-width stacked comparison */
.spot-difference-card{grid-column:span 2}.spot-difference-card .difference-heading{grid-template-columns:1fr;gap:7px}.spot-difference-card .difference-panels{grid-template-columns:minmax(0,1fr);gap:14px}.spot-difference-card .difference-image{width:100%;border-radius:14px;border-width:2px}.spot-difference-card .difference-image svg{width:100%;max-height:none;aspect-ratio:16/9}.spot-difference-card .difference-puzzle{padding:14px!important}
@media(max-width:850px){.spot-difference-card{grid-column:1/-1}}
@media(max-width:560px){.spot-difference-card{grid-column:1/-1}.spot-difference-card .difference-panels{gap:12px}.spot-difference-card .difference-image{border-radius:12px}.spot-difference-card .difference-puzzle{padding:9px!important}}

/* COMFORT CORNER — theme-aware contrast for the main reassurance card */
body[data-theme="violet"] .comfort-panel{
  background:linear-gradient(135deg,#211432 0%,#34204d 58%,#241638 100%)!important;
  border:1px solid #b995e966!important;
  box-shadow:0 14px 34px #10071f66,inset 0 1px 0 #ffffff12!important;
  color:#fbf7ff!important;
}
body[data-theme="midnight"] .comfort-panel{
  background:linear-gradient(135deg,#111a32 0%,#1b2948 58%,#131d38 100%)!important;
  border:1px solid #8fa9e866!important;
  box-shadow:0 14px 34px #050a18a6,inset 0 1px 0 #ffffff12!important;
  color:#f5f7ff!important;
}
body[data-theme="ocean"] .comfort-panel{
  background:linear-gradient(135deg,#102b3a 0%,#174456 58%,#123344 100%)!important;
  border:1px solid #83d4e866!important;
  box-shadow:0 14px 34px #061a25a6,inset 0 1px 0 #ffffff12!important;
  color:#f1fbff!important;
}
body[data-theme="rose"] .comfort-panel{
  background:linear-gradient(135deg,#351827 0%,#51243b 58%,#3b1b30 100%)!important;
  border:1px solid #f0a8c766!important;
  box-shadow:0 14px 34px #1b0812a6,inset 0 1px 0 #ffffff12!important;
  color:#fff6fa!important;
}
body[data-theme="violet"] .comfort-panel h3,
body[data-theme="midnight"] .comfort-panel h3,
body[data-theme="ocean"] .comfort-panel h3,
body[data-theme="rose"] .comfort-panel h3{
  color:#fff!important;
  text-shadow:0 2px 12px #0008!important;
}
body[data-theme="violet"] .comfort-panel p:not(.eyebrow),
body[data-theme="midnight"] .comfort-panel p:not(.eyebrow),
body[data-theme="ocean"] .comfort-panel p:not(.eyebrow),
body[data-theme="rose"] .comfort-panel p:not(.eyebrow){
  color:#e8e5f0!important;
  opacity:1!important;
}
body[data-theme="violet"] .comfort-panel .eyebrow{color:#d9baff!important}
body[data-theme="midnight"] .comfort-panel .eyebrow{color:#c3d3ff!important}
body[data-theme="ocean"] .comfort-panel .eyebrow{color:#aeeaff!important}
body[data-theme="rose"] .comfort-panel .eyebrow{color:#ffc2dc!important}
body[data-theme="violet"] .comfort-panel .comfort-art{
  background:radial-gradient(circle,#67458b,#37204f)!important;border-color:#d0aaff88!important;
}
body[data-theme="midnight"] .comfort-panel .comfort-art{
  background:radial-gradient(circle,#405b91,#1b2948)!important;border-color:#a9c2ff88!important;
}
body[data-theme="ocean"] .comfort-panel .comfort-art{
  background:radial-gradient(circle,#287b91,#164456)!important;border-color:#9cecff88!important;
}
body[data-theme="rose"] .comfort-panel .comfort-art{
  background:radial-gradient(circle,#a34d77,#54243d)!important;border-color:#ffc0dc88!important;
}
body[data-theme="violet"] .comfort-panel .soft-btn,
body[data-theme="midnight"] .comfort-panel .soft-btn,
body[data-theme="ocean"] .comfort-panel .soft-btn,
body[data-theme="rose"] .comfort-panel .soft-btn{
  background:#ffffff12!important;
  border:1px solid currentColor!important;
  color:#fff!important;
  box-shadow:0 5px 16px #0003!important;
}
body[data-theme="violet"] .comfort-panel .soft-btn{border-color:#d8baff88!important}
body[data-theme="midnight"] .comfort-panel .soft-btn{border-color:#b9ccff88!important}
body[data-theme="ocean"] .comfort-panel .soft-btn{border-color:#a7eaff88!important}
body[data-theme="rose"] .comfort-panel .soft-btn{border-color:#ffc0dc88!important}

/* COMFORT CORNER — stronger contrast in the light palettes */
body[data-theme="cloud"] .comfort-panel{
  background:linear-gradient(125deg,#e4d9ef 0%,#d8c9e8 58%,#e9dff1 100%)!important;
  border:1px solid #9b80b866!important;
  box-shadow:0 12px 30px #51406420,inset 0 1px 0 #ffffffb0!important;
  color:#30243d!important;
}
body[data-theme="peach"] .comfort-panel{
  background:linear-gradient(125deg,#f2d8c8 0%,#ebc6b2 58%,#f5dfd1 100%)!important;
  border:1px solid #bd806866!important;
  box-shadow:0 12px 30px #70412c20,inset 0 1px 0 #ffffffa8!important;
  color:#43291f!important;
}
body[data-theme="matcha"] .comfort-panel{
  background:linear-gradient(125deg,#dce8d0 0%,#cbdcbd 58%,#e5eddc 100%)!important;
  border:1px solid #829c7466!important;
  box-shadow:0 12px 30px #354c3020,inset 0 1px 0 #ffffffaa!important;
  color:#293a29!important;
}
body[data-theme="cloud"] .comfort-panel h3,
body[data-theme="peach"] .comfort-panel h3,
body[data-theme="matcha"] .comfort-panel h3{
  color:#28202f!important;
  text-shadow:none!important;
}
body[data-theme="cloud"] .comfort-panel p:not(.eyebrow){
  color:#51435e!important;opacity:1!important;
}
body[data-theme="peach"] .comfort-panel p:not(.eyebrow){
  color:#604438!important;opacity:1!important;
}
body[data-theme="matcha"] .comfort-panel p:not(.eyebrow){
  color:#40533d!important;opacity:1!important;
}
body[data-theme="cloud"] .comfort-panel .eyebrow{color:#654584!important}
body[data-theme="peach"] .comfort-panel .eyebrow{color:#995039!important}
body[data-theme="matcha"] .comfort-panel .eyebrow{color:#4e7045!important}
body[data-theme="cloud"] .comfort-panel .comfort-art{
  background:radial-gradient(circle,#c3a9dc,#9e82bd)!important;border-color:#765b9666!important;
}
body[data-theme="peach"] .comfort-panel .comfort-art{
  background:radial-gradient(circle,#e9b49a,#c98568)!important;border-color:#a95f4666!important;
}
body[data-theme="matcha"] .comfort-panel .comfort-art{
  background:radial-gradient(circle,#b7cfa4,#88a477)!important;border-color:#64815c66!important;
}
body[data-theme="cloud"] .comfort-panel .soft-btn,
body[data-theme="peach"] .comfort-panel .soft-btn,
body[data-theme="matcha"] .comfort-panel .soft-btn{
  background:#ffffff9c!important;
  color:#30283a!important;
  box-shadow:0 4px 12px #3c2a4418!important;
}
body[data-theme="cloud"] .comfort-panel .soft-btn{border:1px solid #8c70a888!important}
body[data-theme="peach"] .comfort-panel .soft-btn{border:1px solid #b8786088!important;color:#43291f!important}
body[data-theme="matcha"] .comfort-panel .soft-btn{border:1px solid #77936d88!important;color:#293a29!important}
