/* =====================================================================
   HUB additions: profile chip, game, charts, timeline, community, share
   (loaded after hub.css)
   ===================================================================== */
.hl .v, .polaroid .cap { color: #1d86b8; }
.ticket.next::after { color: #1d86b8; }
.hrow .n { -webkit-text-stroke-color: var(--accent); }
.hero h1 .l2 { background: linear-gradient(100deg, var(--accent) 20%, #bfe6f7 60%, var(--blush)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 40px rgba(135, 206, 235, 0.35)); }
:root[data-theme="paper"] .hero h1 .l2 { background: linear-gradient(100deg, #136a94, #1d86b8 55%, var(--blush)); -webkit-background-clip: text; background-clip: text; }
.tally .big { background: linear-gradient(160deg, #fff, var(--accent) 60%, var(--blush)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 50px rgba(135, 206, 235, 0.3)); }
:root[data-theme="paper"] .tally .big { background: linear-gradient(160deg, #0d1730, #1d86b8 60%, var(--blush)); -webkit-background-clip: text; background-clip: text; }
.mega { background: linear-gradient(180deg, var(--accent), transparent 92%); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 1; }
.up { color: var(--good); } .down { color: var(--bad); }

.me { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px 0 6px; height: 38px; border-radius: 999px; background: rgba(234, 244, 251, 0.1); font-size: 13px; font-weight: 700; transition: background 0.3s; }
.me:hover { background: rgba(234, 244, 251, 0.2); }
.me i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; background: var(--accent); color: var(--on-accent); }

.btn.check { gap: 10px; }
.btn.check .box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--ink); display: grid; place-items: center; transition: all 0.3s var(--ease); }
.btn.check .box svg { width: 14px; height: 14px; opacity: 0; transform: scale(0.4); transition: all 0.3s var(--ease); }
.btn.check.done { border-color: var(--good); }
.btn.check.done .box { background: var(--good); border-color: var(--good); color: #04210f; }
.btn.check.done .box svg { opacity: 1; transform: none; }

.toast-wrap { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; pointer-events: none; }
.toast { padding: 12px 20px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); box-shadow: 0 18px 40px -14px #000; font-weight: 600; font-size: 14px; animation: toast 3.2s var(--ease) forwards; white-space: nowrap; }
.toast b { color: var(--accent); }
@keyframes toast { 0% { opacity: 0; transform: translateY(16px) scale(0.95); } 10%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-8px); } }

/* ----- game ----- */
.play-grid { display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: start; margin-bottom: 70px; }
.card { border: 1px solid var(--line); background: var(--card); border-radius: 30px; padding: 26px; position: relative; overflow: hidden; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.player .top { display: flex; align-items: center; gap: 16px; }
.avatar { width: 76px; height: 76px; border-radius: 50%; position: relative; flex: none; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 30%; border: 3px solid var(--accent); }
.avatar b { position: absolute; right: -6px; bottom: -4px; background: var(--accent); color: var(--on-accent); font-size: 12px; padding: 3px 9px; border-radius: 99px; font-weight: 800; }
.player h3 { font-family: var(--head); font-weight: 800; font-size: 30px; letter-spacing: -0.04em; line-height: 1; text-transform: lowercase; }
.player .sub { color: var(--faint); font-size: 13px; margin-top: 4px; }
.xp { margin-top: 22px; }
.xp .lbl { display: flex; justify-content: space-between; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.xpbar { height: 12px; border-radius: 99px; background: var(--line); overflow: hidden; }
.xpbar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--blush)); transition: width 1s var(--ease); box-shadow: 0 0 20px rgba(135, 206, 235, 0.6); }
.pstats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pstats div { padding: 14px 0 12px 14px; border-right: 1px solid var(--line); }
.pstats div:first-child { padding-left: 0; } .pstats div:last-child { border-right: 0; }
.pstats b { font-family: var(--serif); font-weight: 900; font-variation-settings: "SOFT" 100; font-size: 30px; letter-spacing: -0.04em; display: block; line-height: 1; }
.pstats span { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.bd { aspect-ratio: 1; border-radius: 20px; display: grid; place-items: center; font-size: 26px; background: rgba(135, 206, 235, 0.14); border: 1px solid rgba(135, 206, 235, 0.4); position: relative; cursor: help; transition: transform 0.4s var(--ease); }
.bd:hover { transform: translateY(-3px) rotate(-3deg); }
.bd.lock { filter: grayscale(1); opacity: 0.35; background: var(--card); border-color: var(--line); }
.bd .tipb { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--paper); color: var(--paper-ink); font-size: 12px; font-weight: 600; padding: 7px 11px; border-radius: 10px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 3; }
.bd:hover .tipb { opacity: 1; }
.pfoot { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.mini { font-size: 13px; font-weight: 700; padding: 10px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); transition: all 0.3s var(--ease); }
.mini:hover { border-color: var(--accent); color: var(--accent); }
.mini.solid { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.mini.solid:hover { color: var(--on-accent); transform: translateY(-2px); }
.quests { margin-top: 12px; display: grid; gap: 10px; }
.dq { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 20px; border: 1px solid var(--line); background: var(--card); }
.dq .ck { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; transition: all 0.4s var(--ease); font-size: 14px; }
.dq.done .ck { background: var(--good); border-color: var(--good); color: #04210f; }
.dq .t { flex: 1; font-weight: 600; font-size: 15px; line-height: 1.2; }
.dq .t small { display: block; color: var(--faint); font-weight: 500; font-size: 12px; margin-top: 2px; }
.dq .xpv { font-size: 12px; font-weight: 800; color: var(--accent); letter-spacing: 0.08em; }
.dq.done .xpv { color: var(--good); }
.qh { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin-top: 26px; display: flex; justify-content: space-between; }

.boss { padding: 34px; display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; background: linear-gradient(150deg, rgba(135, 206, 235, 0.14), rgba(255, 159, 194, 0.06)), var(--card); }
.boss .tagb { position: absolute; top: 20px; right: 24px; font-family: var(--script); font-size: 32px; color: var(--blush); transform: rotate(-4deg); }
.bdisc { position: relative; width: clamp(180px, 22vw, 260px); aspect-ratio: 1; }
.bdisc svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.bdisc img { position: absolute; inset: 8%; width: 84%; height: 84%; border-radius: 50%; object-fit: cover; animation: spin 24s linear infinite; box-shadow: 0 20px 50px -14px #000; }
.bdisc.hit { animation: shake 0.4s; }
@keyframes shake { 20% { transform: translate(-7px, 2px) rotate(-1deg); } 40% { transform: translate(6px, -3px) rotate(1deg); } 60% { transform: translate(-4px, 2px); } 80% { transform: translate(3px, -1px); } }
.dmg { position: absolute; left: 50%; top: 40%; font-family: var(--serif); font-weight: 900; font-size: 38px; color: var(--blush); pointer-events: none; animation: dmg 1s var(--ease) forwards; text-shadow: 0 4px 20px #000; z-index: 4; }
@keyframes dmg { from { opacity: 1; transform: translate(-50%, 0) scale(0.7); } to { opacity: 0; transform: translate(calc(-50% + var(--dx, 20px)), -90px) scale(1.5); } }
.boss .lab { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.boss h3 { font-family: var(--head); font-weight: 800; text-transform: lowercase; letter-spacing: -0.045em; font-size: clamp(36px, 5vw, 64px); line-height: 0.92; margin: 8px 0 18px; word-spacing: 0.08em; }
.hp { height: 22px; border-radius: 99px; background: var(--line); overflow: hidden; position: relative; }
.hp i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blush), #ff6b8b); width: 100%; transition: width 1.6s var(--ease); }
.hp::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), rgba(0, 0, 0, 0.35) calc(10% - 2px) 10%); }
.hpl { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin: 8px 0 20px; }
.hpl b { color: var(--ink); }
.bstats { display: flex; gap: 22px; flex-wrap: wrap; margin-bottom: 22px; }
.bstats div b { display: block; font-family: var(--serif); font-weight: 900; font-variation-settings: "SOFT" 100; font-size: 28px; letter-spacing: -0.04em; line-height: 1; }
.bstats div span { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.brow { display: flex; gap: 10px; flex-wrap: wrap; }

.sub-h { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.sub-h h3 { font-family: var(--head); font-weight: 800; font-size: 34px; letter-spacing: -0.04em; text-transform: lowercase; }
.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.q { text-align: left; border-radius: 28px; padding: 22px; border: 1px solid var(--line); background: var(--card); position: relative; display: flex; flex-direction: column; gap: 14px; overflow: hidden; transition: transform 0.5s var(--ease), border-color 0.4s; }
.q:hover { transform: translateY(-6px); border-color: var(--tier, var(--accent)); }
.q::before { content: ""; position: absolute; inset: 0; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--tier, #87ceeb) 26%, transparent), transparent 60%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.q:hover::before { opacity: 1; }
.q .row1 { display: flex; align-items: center; gap: 14px; }
.q .qa { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; box-shadow: 0 10px 22px -8px #000; flex: none; }
.q .tier { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 800; color: var(--tier); }
.q h4 { font-family: var(--head); font-weight: 800; text-transform: lowercase; letter-spacing: -0.03em; word-spacing: 0.08em; font-size: 22px; line-height: 1; margin-top: 4px; }
.q .pbar { position: relative; height: 12px; border-radius: 99px; background: var(--line); }
.q .pbar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--tier), var(--blush)); transition: width 1.5s var(--ease); }
.q .pbar s { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--bg); opacity: 0.8; }
.q .qm { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); align-items: baseline; }
.q .qm b { color: var(--ink); } .q .qm strong { font-family: var(--serif); font-weight: 900; font-size: 26px; letter-spacing: -0.04em; color: var(--ink); }
.q .flag { position: absolute; top: 14px; right: 16px; font-size: 10px; letter-spacing: 0.14em; font-weight: 800; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; background: var(--blush); color: #2a0818; }
.q.cleared .flag { background: var(--good); color: #04210f; }
.t-common { --tier: #9db4c8; } .t-rare { --tier: #87ceeb; } .t-epic { --tier: #a995ff; } .t-legendary { --tier: #ffc66b; }

/* ----- charts ----- */
.views { margin-bottom: 18px; }
.chart-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
.stagec { padding: 18px; }
.stagec svg { width: 100%; height: auto; display: block; overflow: visible; }
.bub { cursor: pointer; transition: opacity 0.3s, transform 0.3s var(--ease); transform-box: fill-box; transform-origin: center; }
.bub:hover { transform: scale(1.15); }
.bub.dim { opacity: 0.25; }
.bub.sel { stroke: #fff; stroke-width: 3; }
.axis text { fill: var(--faint); font-size: 11px; font-family: "Inter"; }
.axis line, .gridl { stroke: var(--line); }
.axl { fill: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.blabel { fill: var(--ink); font-size: 13px; font-weight: 700; pointer-events: none; paint-order: stroke; stroke: var(--bg); stroke-width: 4px; }
.tip { position: fixed; z-index: 110; pointer-events: none; padding: 12px 16px; border-radius: 16px; background: var(--paper); color: var(--paper-ink); font-size: 13px; box-shadow: 0 20px 40px -12px #000; opacity: 0; transform: translateY(6px); transition: opacity 0.15s, transform 0.15s; max-width: 240px; }
.tip.on { opacity: 1; transform: none; }
.tip b { display: block; font-family: var(--head); font-size: 17px; letter-spacing: -0.02em; text-transform: lowercase; margin-bottom: 4px; }
.donut-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.donut { position: relative; max-width: 380px; margin: 0 auto; width: 100%; }
.donut .ctr { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; padding: 20%; }
.donut .ctr b { font-family: var(--serif); font-weight: 900; font-size: clamp(34px, 4vw, 52px); letter-spacing: -0.05em; line-height: 1; }
.donut .ctr span { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.2; }
.dseg { cursor: pointer; transition: opacity 0.3s, transform 0.4s var(--ease); transform-origin: 50% 50%; }
.dseg.dim { opacity: 0.25; } .dseg.on { transform: scale(1.05); }
.dleg { display: grid; gap: 4px; }
.dl { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 600; transition: background 0.25s; }
.dl:hover, .dl.on { background: var(--card); }
.dl i { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.dl span:nth-child(2) { flex: 1; text-transform: lowercase; }
.dl em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.side { display: grid; gap: 14px; }
.detail h3 { font-family: var(--head); font-weight: 800; text-transform: lowercase; letter-spacing: -0.045em; font-size: 38px; line-height: 0.95; word-spacing: 0.06em; margin: 4px 0 16px; }
.detail .k { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.drow { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.drow b { font-variant-numeric: tabular-nums; }
.detail .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cmp { display: grid; gap: 12px; }
.cmp .cr { display: grid; gap: 6px; }
.cmp .cl { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); display: flex; justify-content: space-between; }
.cmp .cb { display: grid; gap: 4px; }
.cmp .cb div { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cmp .cb i { display: block; height: 8px; border-radius: 99px; transition: width 0.8s var(--ease); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chipx { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 99px; font-size: 12px; font-weight: 700; text-transform: lowercase; background: rgba(135, 206, 235, 0.16); border: 1px solid rgba(135, 206, 235, 0.45); }
.chipx button { width: 18px; height: 18px; border-radius: 50%; background: rgba(0, 0, 0, 0.25); line-height: 1; font-size: 11px; }
.hint { color: var(--faint); font-size: 13px; }

/* ----- timeline reel ----- */
.fchips { display: flex; gap: 8px; flex-wrap: wrap; }
.fchip { padding: 9px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 700; transition: all 0.3s var(--ease); }
.fchip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.reelbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.reelnav { display: flex; gap: 8px; }
.reel { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity; padding: 12px 4px 26px; scrollbar-width: none; position: relative; cursor: grab; }
.reel::-webkit-scrollbar { display: none; }
.reel.drag { cursor: grabbing; scroll-snap-type: none; }
.ec { flex: 0 0 min(290px, 78vw); scroll-snap-align: center; text-align: left; border-radius: 26px; padding: 22px; border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 10px; min-height: 230px; transition: transform 0.5s var(--ease), border-color 0.3s, background 0.3s; user-select: none; position: relative; }
.ec:hover { transform: translateY(-5px); }
.ec.sel { border-color: var(--accent); background: linear-gradient(160deg, rgba(135, 206, 235, 0.2), rgba(135, 206, 235, 0.05)); transform: translateY(-5px); }
.ec .when { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 800; }
.ec .big { font-family: var(--serif); font-weight: 900; font-variation-settings: "SOFT" 100; font-size: 46px; letter-spacing: -0.05em; line-height: 1; }
.ec h4 { font-family: var(--head); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; line-height: 1.12; }
.ec p { color: var(--muted); font-size: 13px; margin-top: auto; }
.ec.past { opacity: 0.82; }
.ec.now { flex-basis: 140px; min-height: 0; align-self: stretch; background: transparent; border: 0; border-left: 2px dashed var(--blush); border-radius: 0; cursor: default; justify-content: center; align-items: center; text-align: center; }
.ec.now:hover { transform: none; }
.ec.now b { font-family: var(--script); font-weight: 400; font-size: 44px; color: var(--blush); line-height: 1; }
.ec.now span { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.ec .ndot { position: absolute; top: 18px; right: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(135, 206, 235, 0.2); }
.edetail { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; padding: 34px; margin-top: 8px; }
.edetail h3 { font-family: var(--head); font-weight: 800; text-transform: lowercase; letter-spacing: -0.045em; font-size: clamp(30px, 4vw, 52px); line-height: 0.95; word-spacing: 0.06em; margin: 8px 0 12px; }
.edetail .meta { color: var(--muted); font-size: 16px; }
.edetail .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.cdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cdown div { text-align: center; padding: 18px 6px 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.cdown b { font-family: var(--head); font-weight: 800; font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.06em; line-height: 1; display: block; font-variant-numeric: tabular-nums; }
.cdown span { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.edetail .done-n { font-family: var(--script); font-size: 46px; color: var(--blush); text-align: center; }

/* ----- community ----- */
.cgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.cgrid h3 { font-family: var(--head); font-weight: 800; font-size: 30px; letter-spacing: -0.04em; text-transform: lowercase; line-height: 1; }
.cgrid .desc { color: var(--muted); font-size: 14px; margin: 8px 0 18px; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.dayb { aspect-ratio: 1; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 12px; font-weight: 700; color: var(--faint); transition: all 0.3s var(--ease); display: grid; place-items: center; }
.dayb:hover:not(:disabled) { border-color: var(--accent); color: var(--ink); transform: scale(1.1); }
.dayb.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.dayb.today { box-shadow: 0 0 0 2px var(--blush); }
.dayb:disabled { opacity: 0.3; cursor: default; }
.streak-line { display: flex; justify-content: space-between; margin-top: 16px; font-size: 14px; color: var(--muted); }
.streak-line b { color: var(--ink); font-family: var(--serif); font-weight: 900; font-size: 22px; letter-spacing: -0.03em; }
.poll { display: grid; gap: 10px; }
.opt { position: relative; text-align: left; padding: 15px 18px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); overflow: hidden; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; gap: 10px; transition: border-color 0.3s; text-transform: lowercase; }
.opt i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(135, 206, 235, 0.22); transition: width 1s var(--ease); z-index: 0; }
.opt span { position: relative; z-index: 1; }
.opt:hover { border-color: var(--accent); }
.opt.mine { border-color: var(--accent); }
.opt.mine i { background: rgba(135, 206, 235, 0.38); }
.demo { font-size: 12px; color: var(--faint); margin-top: 14px; }
.wform { display: grid; gap: 10px; }
.wform input, .wform textarea { width: 100%; border-radius: 16px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 15px; padding: 13px 16px; outline: 0; resize: none; }
.wform input:focus, .wform textarea:focus { border-color: var(--accent); }
.emo { display: flex; gap: 6px; }
.emo button { width: 42px; height: 42px; border-radius: 50%; font-size: 20px; border: 1px solid var(--line); background: var(--card); transition: all 0.3s var(--ease); }
.emo button.on, .emo button:hover { border-color: var(--accent); transform: scale(1.12); background: rgba(135, 206, 235, 0.18); }
.wall { grid-column: 1 / -1; display: flex; gap: 16px; overflow-x: auto; padding: 24px 6px 16px; scrollbar-width: none; min-height: 150px; }
.wall::-webkit-scrollbar { display: none; }
.note { flex: 0 0 240px; background: var(--paper); color: var(--paper-ink); border-radius: 6px; padding: 18px 18px 16px; box-shadow: 0 24px 40px -22px #000; position: relative; transform: rotate(var(--r, -1.5deg)); transition: transform 0.4s var(--ease); }
.note:hover { transform: rotate(0) translateY(-6px); }
.note::before { content: ""; position: absolute; top: -10px; left: 50%; width: 70px; height: 20px; transform: translateX(-50%) rotate(-3deg); background: rgba(190, 225, 245, 0.85); }
.note .e { font-size: 28px; }
.note p { font-family: var(--head); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; line-height: 1.2; margin: 8px 0 14px; word-break: break-word; }
.note small { font-family: var(--script); font-size: 24px; color: #1d86b8; }
.wempty { align-self: center; color: var(--faint); font-family: var(--script); font-size: 34px; padding: 0 10px; }

/* ----- share modal ----- */
.sharem .card { width: min(900px, 100%); display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 30px; padding: 30px; align-items: start; max-height: 92vh; overflow: auto; }
.sharem canvas { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 30px 60px -20px #000; display: block; background: #0a1126; }
.sharem h3 { font-family: var(--head); font-weight: 800; text-transform: lowercase; font-size: 34px; letter-spacing: -0.04em; text-align: left; margin: 0 0 6px; }
.sharem .fmt { margin: 16px 0; }
.sharem textarea { width: 100%; min-height: 110px; border-radius: 16px; border: 1px solid var(--line); background: rgba(127, 127, 127, 0.1); color: inherit; font: inherit; font-size: 14px; padding: 14px; resize: vertical; outline: 0; }
.sharem .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

@media (max-width: 1060px) {
  .play-grid, .chart-wrap, .cgrid { grid-template-columns: 1fr; }
  .boss { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .bstats, .brow { justify-content: center; }
  .donut-wrap, .edetail { grid-template-columns: 1fr; }
  .sharem .card { grid-template-columns: 1fr; }
  .sharem canvas { max-width: 300px; margin: 0 auto; }
}
@media (max-width: 560px) {
  .me span { display: none; } .me { padding: 0 6px; }
  .boss { padding: 24px; }
}

@media (max-width: 1060px) { .boss .tagb { position: static; display: block; transform: none; text-align: center; margin-bottom: -8px; } }
:root[data-theme="paper"] .t-rare { --tier: #1d86b8; } :root[data-theme="paper"] .t-common { --tier: #5d7184; } :root[data-theme="paper"] .t-legendary { --tier: #c98a12; } :root[data-theme="paper"] .t-epic { --tier: #6a55e0; }

/* share modal on phones: close button gets its own space; action buttons stay pinned at the bottom while you scroll the card */
@media (max-width: 1060px) {
  .sharem .card { padding-top: 62px; gap: 14px; }
  .sharem .card > div { display: contents; }
  .sharem .card h3 { margin: 4px 0 0; }
  .sharem .fmt { margin: 4px 0; }
  .sharem .acts { position: sticky; bottom: -30px; margin: 0 -30px -30px; padding: 14px 30px 20px; background: linear-gradient(180deg, transparent, var(--bg2) 28%); z-index: 2; }
  .sharem .close { position: sticky; top: -50px; align-self: end; justify-self: end; margin: -48px -8px 0 0; z-index: 3; }
}
@media (max-width: 560px) { .sharem .card { padding: 62px 20px 30px; } .sharem .acts { margin: 0 -20px -30px; padding: 14px 20px 20px; } }
@media (max-width: 1060px) { .sharem .close { background: var(--bg2); box-shadow: 0 4px 14px rgba(0,0,0,.45); border: 1px solid var(--line); } }
