/* Criador de personagens — visual com animações (tema Taverna da Guilda) */
.cr-hero { padding: 2.4rem 0 1.8rem; background: linear-gradient(90deg, rgba(29, 17, 10, .94), rgba(29, 17, 10, .55)), url(../img/guilda.jpg) center 40% / cover; border-bottom: 4px solid var(--gold); text-shadow: 0 2px 6px rgba(0, 0, 0, .6); }
.cr-kicker { font-family: var(--font-display); letter-spacing: .2em; color: var(--gold2); font-size: .9rem; display: block; }
.cr-hero h1 { margin: .2rem 0 .4rem; font-size: clamp(2rem, 5vw, 3.2rem); } .cr-hero h1 em { color: var(--gold2); font-style: normal; }
.cr-hero p { max-width: 60ch; margin: 0; font-size: 1.15rem; }
.cr-app { padding-block: 1.2rem 2rem; }
.muted { color: #cdb98f; font-size: .95rem; } .cr-loading { padding: 2rem; text-align: center; }
.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-top: .6rem; } .row.center { justify-content: center; }
.btn-red { background: linear-gradient(180deg, #d93a3f, #a8202a); color: #fff; border-color: #5b0f14; } .btn-red:hover:not(:disabled) { filter: brightness(1.12); transform: translateY(-2px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: transparent; border: 2px solid var(--gold); color: var(--gold2); } .btn-ghost:hover:not(:disabled) { background: rgba(242, 210, 131, .15); }
.btn-sm { padding: .25rem .7rem; font-size: .95rem; }

/* trilha de etapas */
.cr-trail { display: flex; align-items: center; gap: 0; overflow-x: auto; padding: .6rem .2rem 1rem; scrollbar-width: thin; }
.tr-node { flex: none; display: flex; flex-direction: column; align-items: center; gap: .15rem; background: none; border: 0; color: #bfa77a; cursor: pointer; font: inherit; padding: 0 .3rem; transition: transform .2s; }
.tr-node:disabled { cursor: default; opacity: .5; } .tr-node:not(:disabled):hover { transform: translateY(-3px); }
.tr-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.35rem; background: var(--w1); border: 3px solid var(--w4); transition: .35s; }
.tr-t { font-family: var(--font-display); font-size: .85rem; letter-spacing: .03em; }
.tr-node.done .tr-ic { background: linear-gradient(180deg, #7fb069, #4f8a45); border-color: #2c5a26; color: #fff; }
.tr-node.now .tr-ic { background: radial-gradient(circle, #ffe9a6, #d2a24c); border-color: #fff3c4; color: #3a2410; box-shadow: 0 0 0 4px rgba(242, 210, 131, .3), 0 0 20px rgba(242, 210, 131, .7); animation: pulse 1.8s ease-in-out infinite; }
.tr-node.now .tr-t { color: var(--gold2); }
.tr-link { flex: 1 0 14px; min-width: 14px; height: 4px; background: repeating-linear-gradient(90deg, var(--w4) 0 6px, transparent 6px 11px); border-radius: 3px; margin-bottom: 1.1rem; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }

.cr-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.4rem; align-items: start; }
.cr-stage { min-width: 0; background: linear-gradient(180deg, rgba(243, 223, 174, .97), rgba(230, 201, 138, .97)); color: var(--text-dark); border: 3px solid var(--ink); border-radius: 10px; padding: 1.2rem 1.3rem 1.5rem; box-shadow: var(--shadow), inset 0 0 0 4px rgba(255, 255, 255, .25); min-height: 420px; }
.cr-stage.enter { animation: slideIn .45s ease both; }
@keyframes slideIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.pop { animation: popIn .5s cubic-bezier(.2, 1.2, .4, 1) both; animation-delay: calc(var(--i, 0) * 38ms); }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
.st-head h2 { margin: 0 0 .2rem; font-size: clamp(1.5rem, 3.4vw, 2.1rem); color: var(--ink); } .st-head h2 em { color: var(--vermilion); font-style: normal; } .st-head p { margin: 0 0 1rem; }
.cr-stage h3 { color: var(--ink); margin: .8rem 0 .4rem; } .tipo-h { border-bottom: 2px dashed rgba(58, 36, 16, .35); padding-bottom: .15rem; }
.cr-stage .muted { color: #6b5230; }
.cr-stage .linklike { color: var(--vermilion); }
.cr-stage input, .cr-stage select, .cr-stage textarea { font: inherit; padding: .4rem .6rem; border: 2px solid var(--ink-3); border-radius: 6px; background: #fff8e6; color: var(--text-dark); max-width: 100%; }
.cr-stage textarea { width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; } .cr-stage .chip { color: var(--ink); background: rgba(255, 255, 255, .45); border-color: var(--ink-3); }
.cr-stage .chip.on, .cr-stage .chip:hover { background: var(--vermilion); color: #fff; border-color: #5b0f14; }
.filters { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: .8rem; }
.pill { display: inline-block; background: var(--vermilion); color: #fff; border-radius: 99px; padding: 0 .65rem; font-size: .9rem; font-weight: 700; margin: 0 .25rem .25rem 0; }

/* boas-vindas */
.boas { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; } .boas-card { background: rgba(255, 255, 255, .4); border: 2px solid var(--ink-3); border-radius: 8px; padding: 1rem; }
.steps-ol { margin: 0; padding-left: 1.2rem; columns: 2; }

/* raças */
.grid-r { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: .7rem; }
.card-r { font: inherit; cursor: pointer; text-align: center; background: #fff8e6; border: 3px solid var(--ink-3); border-radius: 10px; padding: .35rem .35rem .5rem; color: var(--text-dark); transition: transform .25s, box-shadow .25s, border-color .25s; }
.card-r:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 10px 18px rgba(0, 0, 0, .35); border-color: var(--vermilion); }
.card-r .ph { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--w2); } .card-r img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; } .card-r:hover img { transform: scale(1.12); }
.card-r b { display: block; font-family: var(--font-display); margin-top: .3rem; line-height: 1.1; } .card-r small { color: #6b5230; font-size: .8rem; }
.card-r.sel { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(210, 162, 76, .5), 0 0 24px rgba(210, 162, 76, .7); background: #fff1c4; animation: selPulse 1.4s ease-in-out infinite; }
@keyframes selPulse { 50% { box-shadow: 0 0 0 7px rgba(210, 162, 76, .3), 0 0 30px rgba(210, 162, 76, .9); } }
.r-det { display: grid; grid-template-columns: 220px 1fr; gap: 1rem; background: rgba(255, 255, 255, .5); border: 2px solid var(--ink-3); border-radius: 10px; padding: .9rem; margin-bottom: 1rem; }
.r-img img { width: 100%; border-radius: 8px; border: 3px solid var(--ink); box-shadow: 0 6px 14px rgba(0, 0, 0, .4); } .r-tx h3 { margin-top: 0; } .r-tx h3 small { font-size: .9rem; color: #6b5230; font-family: var(--font-body); font-weight: 400; }
.dados-chips { display: flex; flex-wrap: wrap; gap: .3rem; margin: .4rem 0; } .dados-chips span { background: var(--slate); color: var(--chalk); border-radius: 6px; padding: .05rem .5rem; font-size: .92rem; } .dados-chips b { color: var(--gold2); }
.r-list, .r-hab { margin: .3rem 0 .6rem; padding-left: 1.1rem; font-size: .98rem; } .r-tx h4 { margin: .5rem 0 .2rem; color: var(--vermilion); }

/* passado */
.dice-zone { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; background: rgba(255, 255, 255, .45); border: 2px dashed var(--ink-3); border-radius: 10px; padding: .8rem; margin-bottom: .8rem; }
.dice-box { display: flex; gap: .4rem; } .dice-box.inline { display: inline-flex; vertical-align: middle; } .dice-res { font-size: 1.1rem; }
.ants { display: grid; gap: .5rem; }
.ant { font: inherit; display: grid; grid-template-columns: 58px 1fr auto; gap: .7rem; align-items: center; text-align: left; cursor: pointer; background: #fff8e6; border: 2px solid var(--ink-3); border-radius: 8px; padding: .45rem .7rem; color: var(--text-dark); transition: .22s; }
.ant:hover { transform: translateX(6px); border-color: var(--vermilion); } .ant.sel { background: #fff1c4; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(210, 162, 76, .5); }
.ant.rolled { animation: flashRow 1.2s ease 2; } @keyframes flashRow { 50% { background: #ffe08a; transform: scale(1.02); } }
.ant-r { font-family: var(--font-sfx); font-size: 1.3rem; text-align: center; background: var(--ink); color: var(--gold2); border-radius: 6px; padding: .15rem 0; letter-spacing: .04em; }
.ant-b b { display: block; font-family: var(--font-display); } .ant-b small { color: #6b5230; }
.ant-s { display: flex; gap: .3rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; } .ant-s i { font-style: normal; background: var(--slate); color: var(--chalk); border-radius: 5px; padding: 0 .4rem; font-size: .85rem; } .ant-s em { font-style: normal; font-weight: 700; color: var(--vermilion); }
.choice { margin: .8rem 0; padding: .7rem .9rem; background: rgba(255, 255, 255, .5); border-left: 6px solid var(--vermilion); border-radius: 6px; }
.resumo-ant { margin-top: .8rem; padding: .6rem .9rem; background: var(--slate); color: var(--chalk); border-radius: 8px; border: 2px solid var(--gold); }

/* dados 3D simples */
.die { width: 38px; height: 38px; display: inline-grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); padding: 5px; background: linear-gradient(145deg, #fffdf4, #e9dcb4); border: 2px solid #3a2410; border-radius: 8px; box-shadow: 0 3px 0 #3a2410, 0 6px 8px rgba(0, 0, 0, .35); }
.die i { width: 7px; height: 7px; border-radius: 50%; background: #3a2410; margin: auto; opacity: 0; }
.die.d1 i:nth-child(5), .die.d2 i:nth-child(1), .die.d2 i:nth-child(9), .die.d3 i:nth-child(1), .die.d3 i:nth-child(5), .die.d3 i:nth-child(9),
.die.d4 i:nth-child(1), .die.d4 i:nth-child(3), .die.d4 i:nth-child(7), .die.d4 i:nth-child(9), .die.d5 i:nth-child(1), .die.d5 i:nth-child(3), .die.d5 i:nth-child(5), .die.d5 i:nth-child(7), .die.d5 i:nth-child(9),
.die.d6 i:nth-child(1), .die.d6 i:nth-child(3), .die.d6 i:nth-child(4), .die.d6 i:nth-child(6), .die.d6 i:nth-child(7), .die.d6 i:nth-child(9) { opacity: 1; }
.die.d1 i:nth-child(5) { background: var(--vermilion); }
.die.rolling { animation: tumble .36s linear infinite; } @keyframes tumble { 0% { transform: rotate(0) translateY(0); } 25% { transform: rotate(90deg) translateY(-14px); } 50% { transform: rotate(180deg) translateY(0); } 75% { transform: rotate(270deg) translateY(-8px); } 100% { transform: rotate(360deg) translateY(0); } }
.die.landed { animation: land .35s ease; } @keyframes land { 0% { transform: translateY(-16px) scale(1.2); } 60% { transform: translateY(0) scale(.92); } 100% { transform: none; } }

/* atributos */
.attr-formula { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem; margin-bottom: .6rem; } .attr-formula div { background: rgba(255, 255, 255, .45); border: 2px solid var(--ink-3); border-radius: 8px; padding: .35rem .6rem; } .attr-formula small { display: block; color: #6b5230; }
.sets { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .8rem; margin-top: .8rem; }
.set { background: #fff8e6; border: 3px solid var(--ink-3); border-radius: 10px; padding: .6rem; cursor: pointer; transition: .25s; } .set.empty { opacity: .55; cursor: default; border-style: dashed; }
.set:not(.empty):hover { transform: translateY(-4px); border-color: var(--vermilion); } .set.sel { border-color: var(--gold); background: #fff1c4; box-shadow: 0 0 0 4px rgba(210, 162, 76, .5), 0 0 22px rgba(210, 162, 76, .6); }
.set-row { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: .3rem; padding: .15rem 0; border-bottom: 1px dotted rgba(58, 36, 16, .25); }
.set .die { width: 24px; height: 24px; padding: 3px; border-radius: 5px; box-shadow: 0 2px 0 #3a2410; } .set .die i { width: 4px; height: 4px; }
.sr-n { font-family: var(--font-sfx); color: var(--vermilion); } .sr-d { display: flex; gap: .2rem; align-items: center; } .sr-d em { font-style: normal; color: #6b5230; font-weight: 700; } .sr-t { font-family: var(--font-display); font-size: 1.15rem; }
.set-sum { text-align: right; margin: .3rem 0; } .set-sum b { font-size: 1.3rem; color: var(--vermilion); }
.rolling-card { animation: shake .3s linear infinite; } @keyframes shake { 25% { transform: translateX(-3px) rotate(-.6deg); } 75% { transform: translateX(3px) rotate(.6deg); } }
.final { margin-top: 1rem; background: var(--slate); color: var(--chalk); border: 3px solid var(--gold); border-radius: 12px; padding: .8rem 1rem 1rem; } .final h3 { color: var(--gold2); margin-top: 0; }
.fin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem; } .fin { display: grid; grid-template-columns: 36px 1fr auto; gap: .1rem .5rem; align-items: center; } .fin img { grid-row: span 2; } .fin b { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold2); } .fin em { font-style: normal; font-size: .85rem; color: #9be15d; grid-column: 2 / 4; } .fin .bar { grid-column: 1 / 4; height: 8px; background: rgba(0, 0, 0, .4); border-radius: 5px; overflow: hidden; } .fin .bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, #2f8f8a, #f2d283); transition: width 1s ease; animation: grow 1s ease; } @keyframes grow { from { width: 0; } }

/* classes */
.xp-gauge { background: var(--slate); color: var(--chalk); border: 3px solid var(--gold); border-radius: 10px; padding: .6rem .9rem; margin-bottom: .6rem; } .xp-top { display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; } .xp-top b { font-family: var(--font-display); font-size: 1.8rem; color: var(--gold2); }
.xp-bar { height: 12px; background: rgba(0, 0, 0, .45); border-radius: 8px; overflow: hidden; margin-top: .3rem; } .xp-bar i { display: block; height: 100%; background: linear-gradient(90deg, #7fb069, #f2d283, #d93a3f); transition: width .7s ease; }
.tip { background: #fff1c4; border: 2px dashed var(--gold); border-radius: 8px; padding: .5rem .8rem; margin: .4rem 0 .8rem; }
.grid-c { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: .7rem; }
.cls { display: grid; grid-template-columns: 76px 1fr; gap: .6rem; background: #fff8e6; border: 3px solid var(--ink-3); border-radius: 10px; padding: .45rem; transition: .25s; } .cls:hover { border-color: var(--vermilion); transform: translateY(-3px); }
.cls.has { border-color: var(--gold); background: #fff1c4; box-shadow: 0 0 0 3px rgba(210, 162, 76, .45); } .cls.blocked { opacity: .55; filter: grayscale(.7); } .cls.flash { animation: flash .8s ease; } @keyframes flash { 40% { box-shadow: 0 0 0 8px rgba(255, 224, 120, .9), 0 0 30px #ffe08a; transform: scale(1.04); } }
.cls .ph { display: block; border-radius: 7px; overflow: hidden; background: var(--w2); aspect-ratio: 1; align-self: start; } .cls img { width: 100%; height: 100%; object-fit: cover; }
.cls-b b { font-family: var(--font-display); } .cls-b small { display: block; color: #6b5230; }
.pips { display: flex; align-items: center; gap: .3rem; margin: .2rem 0; } .pips i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; transition: .3s; } .pips i.on { background: radial-gradient(circle, #ffe9a6, #d2a24c); box-shadow: 0 0 8px #f2d283; transform: scale(1.1); } .lock { font-size: .75rem; color: var(--vermilion); font-weight: 700; margin-left: .3rem; }
.cls-bt { display: flex; align-items: center; gap: .4rem; } .cost { font-size: .82rem; flex: 1; text-align: center; font-weight: 700; white-space: nowrap; } .cls-bt .btn { min-width: 36px; padding-inline: .5rem; } .warn { color: #8b1d1d; font-size: .85rem; margin: .2rem 0; } .info-b { font-size: .85rem; }

/* idiomas */
.langs { display: flex; flex-wrap: wrap; gap: .5rem; } .lang { background: var(--slate); color: var(--chalk); border: 2px solid var(--gold); border-radius: 8px; padding: .3rem .7rem; } .lang small { display: block; color: #bfa77a; }
.slot { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: .5rem 0; } .slot label { flex: 1 1 100%; font-weight: 700; }

/* talentos */
.grid-t { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; }
.tal { position: relative; font: inherit; text-align: left; cursor: pointer; background: #fff8e6; border: 3px solid var(--ink-3); border-radius: 8px; padding: .5rem .7rem; color: var(--text-dark); transition: .22s; display: flex; flex-direction: column; gap: .1rem; }
.tal:hover { transform: translateY(-4px) rotate(-.5deg); border-color: var(--vermilion); } .tal.sel { background: #fff1c4; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(210, 162, 76, .5), 0 0 20px rgba(210, 162, 76, .6); }
.tal b { font-family: var(--font-display); } .tal small { color: #6b5230; } .star { position: absolute; right: .4rem; top: .3rem; animation: twinkle2 1.6s ease-in-out infinite; } @keyframes twinkle2 { 50% { transform: scale(1.3) rotate(15deg); } }

/* loja */
.shop { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 1rem; align-items: start; }
.grid-i { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .55rem; margin-top: .6rem; max-height: 520px; overflow-y: auto; padding: 2px 4px 6px 2px; }
.item { background: #fff8e6; border: 2px solid var(--ink-3); border-radius: 8px; padding: .45rem .55rem; display: flex; flex-direction: column; gap: .1rem; } .item.has { border-color: var(--gold); background: #fff1c4; } .item b { font-family: var(--font-display); line-height: 1.15; } .item small { color: #6b5230; } .item .st { font-size: .85rem; color: #4b2e1a; }
.it-bt { display: flex; align-items: center; gap: .35rem; margin-top: auto; padding-top: .3rem; } .pr { flex: 1; font-weight: 700; color: var(--vermilion); }
.bag { position: sticky; top: 84px; background: var(--slate); color: var(--chalk); border: 3px solid var(--gold); border-radius: 10px; padding: .7rem; } .bag h3 { color: var(--gold2); margin: 0 0 .4rem; }
.coin { display: flex; align-items: baseline; gap: .4rem; border-bottom: 1px dashed rgba(255, 255, 255, .3); padding-bottom: .4rem; margin-bottom: .4rem; } .coin span { font-size: 1.4rem; } .coin b { font-family: var(--font-display); font-size: 1.8rem; color: var(--gold2); }
.bag-i { display: grid; grid-template-columns: 1fr auto auto; gap: .4rem; font-size: .92rem; padding: .15rem 0; animation: popIn .3s both; } .bag-i em { font-style: normal; color: var(--gold2); } .bag .linklike { color: #ff9b9b; }

/* toques finais e revisão */
.fim-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem 1rem; margin-top: .8rem; } .fld { display: flex; flex-direction: column; gap: .15rem; } .fld span { font-weight: 700; } .fld input, .fld textarea { width: 100%; } .fld:nth-child(n+5) { grid-column: 1 / -1; }
.rev { background: rgba(255, 255, 255, .45); border: 3px solid var(--ink); border-radius: 12px; padding: 1rem; } .rev-card { display: flex; gap: 1rem; align-items: center; } .rev-img img { width: 130px; border-radius: 10px; border: 3px solid var(--ink); } .rev-card h3 { margin: 0; font-size: 1.8rem; color: var(--vermilion); }
.rev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .5rem; margin: .8rem 0; } .rev-grid div { background: var(--slate); color: var(--chalk); border-radius: 8px; padding: .35rem .5rem; text-align: center; } .rev-grid span { display: block; font-size: .8rem; color: #bfa77a; } .rev-grid b { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold2); } .rev-grid em { font-style: normal; color: #9be15d; font-size: .85rem; }
.rev-ul { margin: .6rem 0 0; padding-left: 1.1rem; }
.forge { font-size: 1.4rem; padding: .7rem 2rem; animation: pulse 1.6s ease-in-out infinite; }
.forjado { text-align: center; background: linear-gradient(135deg, #2a1648, #6a4fd0); color: #fff; border: 3px solid var(--gold); border-radius: 12px; padding: 1.2rem; margin-top: 1rem; } .forjado h3 { color: var(--gold2); font-size: 1.8rem; margin: 0; }

/* lateral: Lia e pergaminho */
.cr-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 1rem; max-height: calc(100vh - 100px); }
.lia { background: linear-gradient(180deg, #3a1f66, #1b0d38); border: 3px solid var(--gold); border-radius: 14px; padding: .7rem; color: #f2e8ff; box-shadow: var(--shadow); }
.lia-av { position: relative; display: flex; align-items: flex-end; gap: .6rem; }
.lia-av img { width: 112px; height: 112px; object-fit: cover; border-radius: 12px; border: 3px solid var(--gold2); background: var(--w2); transform-origin: 50% 100%; }
.lia.talk .lia-av img { animation: bob .45s ease-in-out infinite; } .lia.think .lia-av img { animation: wob 1s ease-in-out infinite; box-shadow: 0 0 18px #b99cff; } .lia.cheer .lia-av img { animation: cheer .5s ease-in-out 6; }
@keyframes bob { 50% { transform: translateY(-5px) rotate(-1.5deg); } } @keyframes wob { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } } @keyframes cheer { 50% { transform: translateY(-16px) scale(1.06); } }
.lia-name { font-family: var(--font-display); font-size: 1.35rem; color: var(--gold2); text-shadow: 0 2px 0 #000; } .lia.pop-in .lia-bubble { animation: bubble .35s cubic-bezier(.2, 1.4, .4, 1); } @keyframes bubble { from { transform: scale(.85); opacity: .3; } }
.lia-bubble { position: relative; margin-top: .7rem; background: #fff8e6; color: var(--text-dark); border: 3px solid #1b0d38; border-radius: 12px; padding: .6rem .8rem; font-size: 1.02rem; line-height: 1.45; min-height: 4.2em; max-height: 220px; overflow-y: auto; cursor: pointer; }
.lia-bubble::before { content: ""; position: absolute; top: -12px; left: 40px; border: 8px solid transparent; border-bottom-color: #1b0d38; border-top: 0; transform: translateY(-3px); }
.lia-bubble p { margin: 0 0 .4rem; } .lia-bubble p:last-child { margin: 0; } .lia-bubble ul, .lia-bubble ol { margin: 0 0 .4rem; padding-left: 1.1rem; } .lia-bubble h4 { margin: .3rem 0 .1rem; color: var(--vermilion); } .lia-bubble .typing i { background: #6a4fd0; }
.lia-ask { display: flex; gap: .4rem; margin-top: .6rem; } .lia-ask input { flex: 1; min-width: 0; font: inherit; padding: .4rem .6rem; border-radius: 8px; border: 2px solid var(--gold); background: #fff8e6; color: var(--text-dark); }
.lia-quick { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .55rem; } .lia .chip { font-size: .85rem; padding: .15rem .6rem; }
.cr-sheet { background: linear-gradient(180deg, var(--paper), var(--paper-2)); color: var(--text-dark); border: 3px solid var(--ink); border-radius: 8px; padding: .7rem .8rem; box-shadow: var(--shadow); position: relative; overflow: auto; }
.cr-sheet::before { content: ""; position: absolute; top: -9px; left: 50%; width: 16px; height: 16px; background: radial-gradient(circle at 35% 35%, #ff8a8a, #a8202a); border-radius: 50%; border: 2px solid #5b0f14; box-shadow: 0 3px 4px rgba(0, 0, 0, .4); }
.sh-top { display: flex; gap: .6rem; align-items: center; } .sh-pt { width: 62px; height: 62px; border-radius: 8px; overflow: hidden; border: 2px solid var(--ink); background: var(--w2); flex: none; display: grid; place-items: center; } .sh-pt img { width: 100%; height: 100%; object-fit: cover; } .sh-q { font-family: var(--font-sfx); font-size: 1.8rem; color: var(--gold2); }
.sh-nm { font-family: var(--font-display); font-size: 1.15rem; display: block; line-height: 1.1; } .sh-top small { color: #6b5230; } .sh-cl { margin: .5rem 0; min-height: 1.6rem; } .sh-dim { color: #8a7650; font-size: .9rem; }
.sh-attrs { display: grid; gap: .25rem; } .sh-at { display: grid; grid-template-columns: 34px 1fr 28px 26px; gap: .35rem; align-items: center; font-size: .92rem; } .sh-an { font-family: var(--font-display); color: var(--vermilion); } .sh-bar { height: 8px; background: rgba(58, 36, 16, .25); border-radius: 5px; overflow: hidden; } .sh-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2f8f8a, #d2a24c); transition: width .8s ease; } .sh-at em { font-style: normal; color: var(--vermilion); font-size: .85rem; }
.sh-vit { display: flex; flex-wrap: wrap; gap: .3rem .8rem; margin-top: .5rem; font-size: .92rem; } .sh-vit b { font-family: var(--font-display); }

.cr-nav { display: flex; align-items: center; gap: .8rem; justify-content: space-between; margin-top: 1.2rem; padding: .7rem 1rem; background: rgba(0, 0, 0, .3); border-radius: 10px; border: 2px solid var(--w4); } .cr-hint { flex: 1; text-align: center; color: var(--gold2); font-style: italic; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 100; overflow: hidden; } .confetti i { position: absolute; top: -12px; width: 9px; height: 15px; border-radius: 2px; animation: fall 3s linear forwards; } @keyframes fall { to { transform: translate(var(--dx), 105vh) rotate(720deg); } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (min-width: 981px) { .lia-more > summary { display: none; } }
.lia-more > summary { cursor: pointer; margin-top: .5rem; color: var(--gold2); font-weight: 700; list-style: none; text-align: center; padding: .3rem; border: 1px dashed rgba(242, 210, 131, .6); border-radius: 8px; }
@media (max-width: 980px) {
  .lia-av img { width: 64px; height: 64px; } .lia { padding: .55rem; } .lia-bubble { margin-top: .5rem; min-height: 0; max-height: 120px; font-size: .98rem; }
  .cr-layout { grid-template-columns: 1fr; } .cr-side { position: static; max-height: none; order: -1; } .cr-sheet { display: none; }
  .lia-av img { width: 84px; height: 84px; } .lia-bubble { max-height: 170px; }
  .shop { grid-template-columns: 1fr; } .bag { position: static; } .boas { grid-template-columns: 1fr; }
}
@media (max-width: 640px) { .r-det { grid-template-columns: 1fr; } .r-img img { max-width: 200px; } .ant { grid-template-columns: 46px 1fr; } .ant-s { grid-column: 1 / -1; justify-content: flex-start; } .fim-grid { grid-template-columns: 1fr; } .steps-ol { columns: 1; } .cr-stage { padding: .9rem .8rem 1.2rem; } .tr-t { display: none; } .cr-nav { flex-wrap: wrap; } .cr-hint { order: 3; flex-basis: 100%; } }
@media (prefers-reduced-motion: reduce) { .pop, .cr-stage.enter, .tr-node.now .tr-ic, .card-r.sel, .forge, .star, .lia *, .die, .rolling-card, .cls.flash, .ant.rolled { animation: none !important; } }
[hidden] { display: none !important; }
.jasei{grid-column:1/-1;margin-top:.8rem;display:grid;gap:.6rem}.jasei textarea{width:100%;font:inherit;padding:.7rem;border:2px solid var(--ink);border-radius:8px}
