:root {
  color-scheme: light;
  font: 16px/1.65 system-ui, "Noto Sans JP", sans-serif;
  color: #342316;
  background: #ece1ca;
  --navy: #453023;
  --navy-dark: #281912;
  --blue: #783622;
  --gold: #efc875;
  --ink: #342316;
  --muted: #66503b;
  --line: #d3b990;
  --panel: #fff6e3;
  --tint: #efdfbb;
  --corner: .25rem;
  --wood: url("./images/guild/walnut.webp");
  --paper: url("./images/guild/parchment.webp");
  --heading: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif CJK JP", "Noto Serif JP", serif;
}
* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
a { color: var(--blue); text-underline-offset: .2em; }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #c67436; outline-offset: 3px; }
.shell { width: min(74rem, calc(100% - 3rem)); margin-inline: auto; }

.banner {
  position: relative; isolation: isolate; overflow: hidden;
  color: #fff0d0;
  background: radial-gradient(ellipse at 74% 15%, #6e422663, transparent 62%),
    linear-gradient(92deg, #1e130de6, #21140ea3), var(--wood) center top / 62rem auto #302017;
  border-bottom: 1px solid #21120c;
  box-shadow: inset 0 -4px #91623f, inset 0 -6px #d4a96b38, 0 .35rem .9rem #42261538;
}
.banner-inner { position: relative; isolation: isolate; padding-block: 2.75rem 3.25rem; }
.kicker {
  display: flex; align-items: center; gap: .68rem;
  width: fit-content; color: #edcf9c; letter-spacing: .08em; font-size: .875rem; font-weight: 750;
}
.kicker::before {
  content: ""; display: inline-block; width: .55rem; height: .55rem;
  background: #c89141; transform: rotate(45deg); box-shadow: 0 0 0 2px #2a180e, 0 0 0 3px #966742;
}
h1 {
  margin-top: .62rem; line-height: 1.13; font-family: var(--heading); font-weight: 900;
  letter-spacing: -.035em; text-shadow: 0 3px 4px #1b0d09b0;
}
h1 span { display: block; width: fit-content; }
h1 span:first-child { color: var(--gold); font-size: clamp(2.85rem, 6.5vw, 4.6rem); }
h1 span:last-child { margin-top: .44rem; font-size: clamp(1.4rem, 4.1vw, 2.75rem); }
.guild-crest {
  position: absolute; z-index: -1; pointer-events: none; right: 9%; top: 47%;
  width: clamp(7.8rem, 19vw, 13rem); aspect-ratio: 1;
  color: #d3a660; transform: translateY(-50%);
}
.guild-crest::before, .guild-crest::after {
  position: absolute; content: ""; left: 9%; right: 9%; top: 43%;
  height: .52rem; background: currentColor; opacity: .54;
  clip-path: polygon(0 50%, 10% 0, 87% 0, 87% 25%, 91% 25%, 91% 4%, 94% 4%, 94% 25%, 100% 25%, 100% 75%, 94% 75%, 94% 96%, 91% 96%, 91% 75%, 87% 75%, 87% 100%, 10% 100%);
  transform: rotate(44deg);
}
.guild-crest::after { transform: rotate(136deg); }
.guild-crest span {
  position: absolute; inset: 15% 27% 14%; z-index: 1;
  background: linear-gradient(145deg, #e5bc75, #80532e);
  clip-path: polygon(0 6%, 50% 0, 100% 6%, 94% 62%, 77% 82%, 50% 100%, 23% 82%, 6% 62%);
}
.guild-crest span::before {
  content: ""; position: absolute; inset: 5%;
  clip-path: inherit; background: linear-gradient(135deg, #794628, #382418 67%);
}
.guild-crest span::after {
  content: ""; position: absolute; inset: 21% 22% 31%;
  background: linear-gradient(145deg, #f1d499, #aa743b);
  clip-path: polygon(50% 0, 62% 35%, 100% 50%, 62% 64%, 50% 100%, 37% 65%, 0 50%, 37% 35%);
}

.filters {
  position: relative; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr) minmax(0, 2.1fr); gap: .85rem;
  padding: 1.05rem 1.15rem; margin-block: 1.15rem 1.1rem;
  background: var(--paper) var(--panel); border: 1px solid #b89466;
  border-radius: var(--corner); box-shadow: 0 .25rem .65rem #4226151f, inset 0 0 0 3px #f9eaca;
}
.advanced-filters { min-width: 0; }
.filters .advanced-filters { padding: 0; border: 0; }
.advanced-filters > summary { display: none; }
.filter-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: .28rem; min-width: 0; }
.active-filters span {
  padding: .08rem .35rem; border: 1px solid #be996b; border-radius: .15rem;
  color: #643d24; background: #f2dfb6; font-size: .77rem; font-weight: 700;
}
.filters .skill-filters { grid-column: 1 / -1; min-width: 0; border: 0; padding: 0; }
.skill-filters > summary {
  display: flex; align-items: center; flex-wrap: wrap; gap: .32rem .65rem;
  padding: .46rem .68rem; min-height: 2.65rem; list-style: none;
  color: #643d24; background: #f5e4c1; border: 1px solid #c5a477; border-radius: .2rem;
}
.skill-filters > summary::-webkit-details-marker { display: none; }
.skill-filters > summary::after {
  content: ""; flex: 0 0 .48rem; height: .48rem; margin: -.15rem .12rem 0 auto;
  border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.skill-filters[open] > summary::after { margin-top: .16rem; transform: rotate(225deg); }
.skill-filters .active-filters:empty { display: none; }
.skill-filter-description { margin: .65rem 0 .55rem; color: var(--muted); font-size: .8rem; }
.skill-filter-options {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem;
}
.skill-filter-options select { font-size: .875rem; }
.skill-filter-footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .45rem;
  margin-top: .55rem; color: var(--muted); font-size: .8rem;
}
.skill-filter-footer p { margin: 0; }
.skill-filter-footer button {
  color: #643d24; background: #fff5df; border: 1px solid #c5a477; border-radius: .2rem;
  min-height: 2.15rem; padding-inline: .55rem; font-weight: 700;
}
label { display: grid; gap: .35rem; min-width: 0; font-size: .875rem; font-weight: 750; }
input, select {
  min-width: 0; width: 100%; min-height: 2.75rem; padding: .5rem .65rem;
  color: var(--ink); font-size: 1rem; background: #fff8eb;
  border: 1px solid #b79871; border-radius: var(--corner);
}
input::placeholder { color: #6f5c48; opacity: 1; }
select {
  appearance: none; padding-right: 2rem; background-repeat: no-repeat; background-position: right .6rem center;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23704c34' stroke-width='2'/%3E%3C/svg%3E");
}
.detail-page { width: min(54rem, 100%); margin-inline: auto; }
.shell.detail-page { width: min(54rem, calc(100% - 2rem)); }
.list-return {
  display: inline-block; padding: .38rem .85rem; margin-block: .8rem .65rem;
  color: #ffe3a9; background: #563623; border: 1px solid #3d2417;
  border-radius: .18rem; font-weight: 800; text-decoration: none; box-shadow: 0 2px 3px #3d241733;
}
.list-return:hover { background: #71482e; }
.list-return::before { content: "‹"; margin-right: .48rem; }
.listing {
  min-width: 0; padding: clamp(.55rem, 1.3vw, .95rem);
  background: linear-gradient(125deg, #1d110b39, transparent 45%, #27170e56), var(--wood) center top / 55rem auto #68442a;
  border: clamp(.38rem, 1vw, .7rem) solid #462c1b;
  border-radius: .35rem;
  box-shadow: inset 0 0 0 1px #d29e61a6, inset 0 0 1.35rem #1e100b9c, 0 .35rem .85rem #3e251d40;
}
.list-head {
  display: flex; align-items: center; justify-content: space-between; gap: .7rem;
  min-height: 2.5rem; padding: .36rem .45rem .62rem; color: #fff1ce;
  border-bottom: 1px solid #eac18a7d;
}
.list-head h2 { font: 800 clamp(1.16rem, 2.4vw, 1.43rem)/1.3 var(--heading); text-shadow: 0 2px #3f2417; }
output { color: #ffe1a3; white-space: nowrap; font-weight: 750; font-variant-numeric: tabular-nums; }
#results {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
  gap: clamp(.62rem, 1.35vw, 1rem); padding-block: .72rem .12rem;
}
.entry, .profile-poster {
  position: relative; display: flex; flex-direction: column; min-width: 0; gap: .32rem;
  padding: .72rem .62rem .62rem; text-align: left; text-decoration: none; color: var(--ink);
  background: linear-gradient(135deg, #fffdec70, transparent 42%, #9d6b3224), var(--paper) var(--panel);
  border: 1px solid #d6b27e; border-radius: .14rem .21rem .15rem .21rem;
  box-shadow: 0 .23rem .42rem #1b0c07a6, inset 0 0 0 2px #fff2d15e;
  transition: transform .16s ease, box-shadow .16s ease;
}
.entry::before, .profile-poster::before {
  content: ""; position: absolute; z-index: 1; top: -.17rem; left: calc(50% - .23rem);
  width: .46rem; height: .46rem; border-radius: 50%; border: 1px solid #775027;
  background: radial-gradient(circle at 34% 29%, #fff0b4 1%, #d4a050 42%, #75502a);
  box-shadow: 0 2px 3px #3d241c99;
}
.entry:target { outline: 2px solid #ffda86; outline-offset: 2px; }
.entry:hover, .entry:focus-visible { transform: translateY(-2px); box-shadow: 0 .42rem .7rem #1b0c07a6, inset 0 0 0 2px #fdeab0; }
.notice-top, .notice-name { display: flex; align-items: center; gap: .4rem; }
.notice-top { justify-content: space-between; }
.notice-art, .portrait {
  display: grid; place-items: center; width: 100%; aspect-ratio: 1.34; object-fit: cover;
  object-position: center 43%; border-radius: .12rem; background: #583c28; color: #ffe3a9;
  border: 1px solid #896541;
}
.notice-name { line-height: 1.25; margin-top: .13rem; }
.notice-name strong { min-width: 0; overflow-wrap: anywhere; font-weight: 850; }
small { display: block; color: var(--muted); font-size: .875rem; }
.entry-number { font-size: .74rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.notice-meta { font-size: .75rem; line-height: 1.36; }
.notice-skills { padding: .38rem 0 0; margin: .15rem 0 0; border-top: 1px solid var(--line); }
.notice-skills ul { list-style: none; margin: .15rem 0 0; padding: 0; }
.notice-skills li { margin-bottom: .27rem; overflow-wrap: anywhere; font-size: .78rem; font-weight: 700; }
.notice-skills small { color: #643d24; font-size: .66rem; }
.listing .empty { grid-column: 1 / -1; padding: .7rem; color: var(--ink); background: var(--paper) var(--panel); }
.rarity {
  display: inline-block; min-width: 1.85rem; padding: .03rem .33rem;
  text-align: center; color: #552d18; background: #edc97f; font-weight: 900; font-size: .76rem;
  border: 1px solid #a36f3c; border-radius: .16rem; letter-spacing: .045em;
}
.avatar {
  display: grid; place-items: center; flex-shrink: 0; object-fit: contain;
  width: 1.55rem; height: 1.55rem; color: #fff1cf; background: #563623;
  font-weight: 800; border-radius: .18rem;
}
.avatar[src="./images/giggle-face-icon.webp"] {
  filter: brightness(1.4);
}
.detail {
  --gutter: clamp(1rem, 3vw, 1.9rem); min-width: 0; padding: 0 var(--gutter) var(--gutter);
  background: var(--paper) var(--panel); border: 1px solid #ba9767; border-radius: var(--corner);
  box-shadow: 0 .3rem .8rem #42261529;
}
.profile {
  display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); align-items: center;
  gap: clamp(.75rem, 3vw, 1.7rem); padding: clamp(.75rem, 3vw, 1.55rem) var(--gutter);
  margin: 0 calc(-1 * var(--gutter)) .8rem; border-bottom: .23rem solid #b5834a;
  background: linear-gradient(110deg, #2f1b125c, #25160e92), var(--wood) left top / 55rem auto #463023;
}
.profile-poster { padding: .72rem .6rem .62rem; }
.portrait { object-fit: contain; aspect-ratio: 1.1; }
.profile-poster h2 {
  margin-top: .22rem; font-family: var(--heading); font-size: clamp(1.1rem, 3.65vw, 1.55rem);
  font-weight: 850; overflow-wrap: anywhere;
}
.profile-info {
  min-width: 0; padding: clamp(.62rem, 2vw, .95rem);
  background: var(--paper) var(--panel); border: 1px solid #ceac76;
  border-radius: .18rem; box-shadow: 0 .18rem .42rem #1b0c076e;
}
.profile-tags { display: flex; flex-wrap: wrap; gap: .45rem .62rem; }
.profile-tags > div { display: grid; gap: .12rem; flex: 1 1 5rem; padding: .24rem .36rem; line-height: 1.4; border-bottom: 1px solid #c8a979; }
.profile-tags dt { color: var(--muted); font-size: .75rem; }
.profile-tags dd { display: flex; align-items: center; gap: .3rem; color: var(--ink); font-size: .875rem; font-weight: 750; }
.profile-icon { display: block; object-fit: contain; }
.profile-icon-job, .profile-icon-attribute { border-radius: 50%; }
.profile-icon-training { border-radius: .23rem; }
.bonus-jump {
  display: inline-block; width: fit-content; max-width: 100%; margin-top: .7rem; padding: .4rem .6rem;
  color: var(--navy-dark); background: var(--gold); border: 1px solid #ab7940; border-radius: .15rem;
  font-size: .875rem; font-weight: 850; text-decoration: none; line-height: 1.4;
}
.bonus-jump:hover { background: #ffe0a0; }
.meta { color: var(--muted); font-size: .875rem; }
.detail > .empty { padding-top: var(--gutter); }
.detail section { border-top: 1px solid var(--line); margin-top: 1.45rem; padding-top: 1.05rem; }
h3 {
  display: flex; align-items: center; gap: .68rem; color: var(--navy); font-family: var(--heading);
  font-size: 1.2rem; line-height: 1.45; font-weight: 850; margin-bottom: .62rem;
}
h3::before { content: ""; flex: 0 0 .24rem; height: 1em; background: var(--blue); box-shadow: .18rem 0 var(--gold); transform: skewX(-12deg); }
h4 { font-size: 1.08rem; font-weight: 820; }
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .4rem; margin-block: .7rem; }
.stats div { text-align: center; background: var(--tint); border-bottom: .15rem solid #bd9965; padding: .45rem .15rem; }
.stats dt { font-size: .875rem; }
.stats dd { display: grid; gap: .1rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.stat-rank { color: #304969; font-size: 1.7rem; font-weight: 950; line-height: 1.17; }
.stat-rank[data-rank="G"] { color: #546177; }
.stat-rank[data-rank="F"] { color: #1a57a1; }
.stat-rank[data-rank="E"] { color: #246735; }
.stat-rank[data-rank="D"] { color: #755a13; }
.stat-rank[data-rank="C"] { color: #954805; }
.stat-rank[data-rank="B"] { color: #a22b51; }
.stat-rank[data-rank="A"], .stat-rank[data-rank="S"], .stat-rank[data-rank="SS"] { color: #653a9e; }
.stat-number { font-size: .95rem; line-height: 1.4; }
.row { padding: .7rem 0; }
.row + .row { border-top: 1px solid var(--line); }
.tips, .sources { list-style: none; padding: 0; margin-block: .4rem; }
.sources li { display: flex; justify-content: space-between; gap: .75rem; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.sources span { color: var(--muted); white-space: nowrap; }
.stage-label { width: min(15rem, 100%); margin-bottom: .65rem; }

table { width: 100%; border-collapse: collapse; margin-top: .4rem; }
th, td { padding: .51rem .55rem; text-align: left; border-bottom: 1px solid var(--line); }
thead { background: var(--navy); color: white; }
thead th { font-size: .875rem; }
tbody th { font-weight: 550; }
.skill-levels { margin-block: .7rem; }
.skill-levels tbody th { white-space: nowrap; }
.skill-levels td { vertical-align: top; }
.skill-costs { margin-block: .5rem; padding: .55rem .65rem; background: var(--tint); }
.skill-costs .meta { margin-block: .45rem; }
.skill-costs table { table-layout: fixed; font-size: .875rem; font-variant-numeric: tabular-nums; }
.skill-costs th, .skill-costs td { padding: .35rem .15rem; text-align: center; white-space: nowrap; }
.skill-costs th:first-child { width: 23%; white-space: normal; }
.skill-costs th small { display: block; color: var(--muted); }
.skill-costs td { white-space: normal; overflow-wrap: anywhere; }
details { padding: .45rem 0; border-bottom: 1px solid var(--line); }
summary { font-weight: 700; }
details ul { padding-left: 1.25rem; }
.image-controls { margin-top: .45rem; }
.image-controls summary { color: var(--muted); font-size: .875rem; }
.image-field { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem; margin-top: .5rem; }
.image-field label { max-width: 100%; }
.image-field button { font-size: .875rem; padding: .35rem .6rem; }
.empty { color: var(--muted); }
footer { padding-block: 1.35rem 1.75rem; color: var(--muted); font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#limit-break { scroll-margin-top: 1rem; }
.unlock-table caption { text-align: left; font-weight: 750; margin-bottom: .5rem; }
.unlock-table th:first-child, .unlock-table th:last-child,
.unlock-table td:last-child, .bonus-values-table td { white-space: nowrap; }
.unlock-table th:last-child, .unlock-table td:last-child,
.bonus-values-table th:last-child, .bonus-values-table td { text-align: right; }
.unlock-table tbody th, .unlock-table td:last-child, .bonus-values-table td { font-weight: 800; font-variant-numeric: tabular-nums; }
.unlock-table tbody tr:nth-child(even) { background: #f8edd4; }
.unlock-note { margin-top: .6rem; }
.bonus-total-title { margin-block: 1.35rem .6rem; }
.bonus-change {
  display: inline-block; margin-inline-start: .4rem; color: #684019;
  background: #f7e2b2; border-radius: .15rem; padding-inline: .3rem; font-weight: 750;
}

@media (max-width: 790px) {
  .shell { width: calc(100% - 2rem); }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; padding: .75rem; margin-bottom: .85rem; }
  .advanced-filters { grid-column: 1 / -1; }
  .advanced-filters > summary {
    display: flex; align-items: center; gap: .42rem; padding: .32rem .55rem; min-height: 2.2rem;
    color: #643d24; border: 1px solid #c5a477; border-radius: .2rem; list-style: none;
  }
  .advanced-filters > summary::-webkit-details-marker { display: none; }
  .advanced-filters > summary > span:first-child { flex-shrink: 0; }
  .advanced-filters > summary::after {
    content: ""; flex: 0 0 .48rem; height: .48rem; margin: -.15rem .12rem 0 auto;
    border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg);
  }
  .advanced-filters[open] > summary::after { margin-top: .16rem; transform: rotate(225deg); }
  .filter-options { margin-top: .55rem; gap: .45rem; }
  .skill-filter-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .skill-filters .active-filters { order: 1; flex-basis: 100%; }
  .banner-inner { padding-block: 1.65rem 2.5rem; }
  .guild-crest { right: 5%; }
  #results { grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); }
  .profile { grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); }
}
@media (max-width: 460px) {
  .shell { width: calc(100% - 1.25rem); }
  .banner-inner { padding-inline: .35rem; }
  .guild-crest { right: 0; opacity: .62; }
  #results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry { padding: .68rem .45rem .5rem; }
  .notice-name strong { font-size: .95rem; }
  .notice-meta { font-size: .7rem; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-tags { gap: .25rem; }
  .profile-tags > div { flex-basis: 100%; }
  .profile-tags dd { font-size: .8rem; }
  .profile-tags .profile-icon { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }
  .detail { --gutter: .82rem; }
  .profile { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: .56rem; }
  .profile-poster { padding-inline: .4rem; }
  .profile-info { padding: .35rem; }
  .bonus-jump { padding: .35rem .4rem; font-size: .76rem; }
  .skill-levels th, .skill-levels td { padding-inline: .34rem; }
  .skill-costs table, .skill-costs thead th { font-size: .77rem; }
}

.tip-heading { margin-top: .55rem; }
.tip-entry { padding: 0; }
.tip-entry summary {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 1rem; align-items: center; gap: .65rem;
  padding: .5rem .55rem; list-style: none;
}
.tip-entry summary::-webkit-details-marker { display: none; }
.tip-entry summary::after {
  content: ""; width: .48rem; height: .48rem; margin: -.2rem auto 0;
  border: solid var(--blue); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.tip-entry[open] summary::after { margin-top: .26rem; transform: rotate(225deg); }
.tip-entry summary:hover, .tip-entry[open] summary { background: var(--tint); }
.tip-entry summary small { line-height: 1.3; font-weight: 500; }
.tip-entry summary strong { color: var(--blue); font-variant-numeric: tabular-nums; }
.tip-effect { padding: .55rem .55rem .68rem; }

.detail .deck-rewards {
  border-top: .2rem solid var(--blue);
  padding: .85rem clamp(.6rem, 2vw, .95rem) .65rem; background: #f6e7c9;
}
.detail .relationship-events {
  border-top: .2rem solid #a33867;
  padding: .85rem clamp(.6rem, 2vw, .95rem) .75rem; background: #f7e3d9;
}
.relationship-events details { background: var(--panel); }
.event-timing {
  display: inline-block; margin-inline: .45rem .25rem; padding: .05rem .36rem;
  color: #80304f; background: #f7e0d8; border-radius: .2rem; font-size: .875rem;
}
.relationship-events h5 { color: #80304f; margin: .65rem 0 .1rem; font-size: .92rem; }
.reward-cards { display: grid; gap: .6rem; margin-block: .75rem; }
.reward-card {
  min-width: 0; padding: .7rem clamp(.55rem, 2vw, .85rem); background: var(--panel);
  border: 1px solid var(--line); border-left: .22rem solid var(--blue); border-radius: var(--corner);
}
.reward-label { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.reward-label span { padding: .06rem .38rem; color: var(--navy-dark); background: var(--gold); font-size: .875rem; font-weight: 800; }
.reward-card-job-change { border-left-color: #62508a; }
.reward-card-job-change .reward-label span { color: #382866; background: #e9e0f5; }
.reward-card h4 { margin-block: .25rem .35rem; }
.reward-requirements { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .45rem; }
.reward-requirements div { padding: .2rem .45rem; background: var(--tint); }
.reward-requirements dt { color: var(--muted); font-size: .8rem; }
.reward-requirements dd { display: flex; align-items: center; gap: .35rem; font-weight: 800; }
.reward-requirements .profile-icon { width: 1.4rem; height: 1.4rem; flex-shrink: 0; }
.owned-skill p { color: var(--muted); }
@media (max-width: 460px) {
  .detail .deck-rewards, .detail .relationship-events { margin-inline: -.35rem; }
  .reward-card .skill-levels th, .reward-card .skill-levels td { padding-inline: .25rem; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  .entry { transition: none; }
}

.policy-title { font-size: clamp(1.65rem, 5vw, 3rem); }
.policy h2 { margin-bottom: .45rem; font-size: 1.12rem; }
.policy p + p { margin-top: .7rem; }
