@view-transition { navigation: auto; }

.masthead nav a[aria-current="page"] { color: var(--link-strong); text-decoration: underline; text-underline-offset: .36em; }
.public-menu-trigger { display: none; }
.menu-box {
  --ticket-ink: #29182e;
  color: var(--ticket-ink); background: #fff7e6; border: 2px solid var(--ticket-ink);
  width: min(43rem, calc(100% - 1.3rem)); padding: .65rem; max-height: min(88dvh, 46rem);
  border-radius: 1.1rem .45rem 1.1rem .45rem; box-shadow: .4rem .45rem #6b3972;
  overscroll-behavior: contain;
}
.menu-box[open] { animation: menu-unfold .26s cubic-bezier(.18,.78,.28,1) both; }
.menu-box::backdrop { background: #24132daf; backdrop-filter: blur(5px); }
.public-menu-box { width: min(32rem, calc(100% - 1.3rem)); }
.menu-banner {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  padding: clamp(.65rem,2vw,1.2rem); border: 2px solid #29182e; border-radius: .65rem .3rem .65rem .3rem;
  color: #fff7e6; background: linear-gradient(120deg,#2b2048,#60365d);
}
.menu-banner h2, .menu-banner h1 { margin: 0; color: inherit; font: 850 clamp(1.55rem,5vw,3rem)/1.02 var(--display); letter-spacing: -.05em; }
.menu-close {
  min-height: 44px; padding: .3rem .65rem; background: #ffdf91; color: #29182e;
  border: 1px solid #29182e; border-radius: .3rem; font: inherit; font-weight: 800; cursor: pointer;
}
.menu-box input[type="search"] {
  width: 100%; margin-top: .65rem; min-height: 44px; padding: .4rem .7rem;
  color: #29182e; background: #fff; border: 1px solid #624368; border-radius: .4rem; font: inherit;
}
.menu-tiles { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .62rem; margin-block: .68rem; }
.tile-lemon { --ticket: #ffdf91; }
.tile-mint { --ticket: #bce8cd; }
.tile-violet { --ticket: #ded0ff; }
.tile-coral { --ticket: #ffc8c8; }
.tile-peach { --ticket: #ffcca7; }
.tile-sky { --ticket: #b9e3f5; }
.menu-tile {
  display: grid; align-content: start; justify-items: start; gap: .22rem; min-width: 0;
  color: #29182e; background: var(--ticket,#fff1cb); padding: .64rem;
  border: 1px solid #583f59; border-radius: .55rem .2rem .55rem .2rem; box-shadow: .16rem .18rem #583f59;
  font: inherit; text-align: start; text-decoration: none; transition: transform .16s ease;
}
:is(a,button).menu-tile:hover { transform: translateY(-.15rem); }
.menu-tile:is(button,a) { cursor: pointer; }
.menu-tile[aria-current="page"] { outline: 2px solid #563167; outline-offset: -4px; }
.menu-tile strong { font-weight: 870; }
.menu-tile small { font-weight: 600; }
.menu-icon { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; background: #382447; color: #fff7e6; border-radius: 50%; font-size: 1.12rem; }
.menu-foot { display: flex; justify-content: space-between; color: #fff7e6; background: #382447; padding: .65rem; border-radius: .4rem; font-weight: 800; }
.help-banner h1 { font-size: clamp(2.4rem,7vw,5.3rem); }
.help-banner p { color: inherit; }
.private-help .menu-tile { padding: clamp(.8rem,3vw,1.55rem); }
.private-help .menu-tile h2 { font-size: clamp(1.25rem,3.5vw,2.4rem); }
.private-help .menu-tile p { color: inherit; }
@keyframes menu-unfold { from { transform: translateY(1.1rem) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.landing-atlas #contenido { view-transition-name: public-leaf; }
::view-transition-old(public-leaf) { animation: public-out .18s ease both; }
::view-transition-new(public-leaf) { animation: menu-unfold .33s cubic-bezier(.16,.8,.32,1) both; }
@keyframes public-out { to { opacity: 0; transform: translateY(-.5rem) scale(.99); } }
.public-page { animation: paper-appear .38s ease both; }
[data-public-page="herramientas"] { --hero-paper: #ffe9a8; --hero-ink: #4e286d; --hero-shadow: #8061ab; --hero-rule: #65358335; }
[data-public-page="vinculo"] { --hero-paper: #d9f0d8; --hero-ink: #19504b; --hero-shadow: #368276; --hero-rule: #22736830; }
[data-public-page="android"] { --hero-paper: #cbe9ff; --hero-ink: #203d83; --hero-shadow: #5a79bf; --hero-rule: #2c50ad35; }
[data-public-page="ayuda"] { --hero-paper: #ffd8ba; --hero-ink: #672c54; --hero-shadow: #ad586f; --hero-rule: #8d355d2b; }
.public-hero {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 1.4rem; margin-block: .7rem 2rem;
  padding: clamp(1rem,3vw,2.5rem); color: var(--print-ink);
  border: 2px solid var(--print-border); border-radius: .5rem;
  background: repeating-linear-gradient(135deg,var(--hero-rule,#ab174b13) 0 1px,transparent 1px 17px),var(--hero-paper,#fff3db);
  box-shadow: .45rem .5rem var(--hero-shadow,var(--print-mat));
}
.public-hero-copy { min-width: 0; }
.public-hero h1 { font-size: clamp(3rem,7.9vw,8rem); line-height: .87; letter-spacing: -.074em; color: var(--hero-ink,#862049); }
.public-hero p { font-size: clamp(1rem,1.45vw,1.2rem); max-width: 39ch; }
.public-hero figure { position: relative; margin: 0; border: .5rem solid #fff6e6; transform: rotate(2deg); box-shadow: .4rem .5rem var(--hero-shadow,#a32a57); }
.public-hero figure::after { content: "✷"; position: absolute; right: -.18em; bottom: -.5em; color: #f4bd3c; text-shadow: .045em .045em #68234c; font-size: clamp(2.5rem,7vw,5.7rem); pointer-events: none; }
.public-hero img { display: block; width: 100%; aspect-ratio: 1.55; object-fit: cover; }
.public-gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(.8rem,2vw,1.4rem); padding-block: 1.1rem 2.15rem; }
.public-tile { min-width: 0; overflow: hidden; border: 2px solid var(--print-border); background: var(--print-hot); color: var(--print-ink); border-radius: .4rem; box-shadow: .22rem .27rem var(--print-mat); transition: transform .22s ease; }
.public-tile:nth-child(3n+2) { background: var(--print-gold); }
.public-tile:nth-child(3n+3) { background: var(--print-cool); }
.public-tile:hover { transform: translateY(-.27rem); }
.public-tile img { width: 100%; aspect-ratio: 1.58; display: block; object-fit: cover; }
.public-tile > div { padding: .8rem .9rem 1.15rem; }
.public-tile h2 { font-size: clamp(1.45rem,3vw,2.5rem); }
.public-tile a { color: var(--print-ink); font-weight: 850; text-underline-offset: .2em; }
:is(.art-stamp,.poster-link > .art-stamp,.android-feature > .art-stamp) {
  --art-ink: #231a3a;
  --art-paper: #ded0ff;
  --art-accent: #fa86aa;
  position: relative; isolation: isolate; display: grid; place-items: center; min-width: 0;
  overflow: hidden; aspect-ratio: 1.85; padding: 0;
  background:
    radial-gradient(circle at 72% 28%,var(--art-accent) 0 20%,transparent 20.5%),
    repeating-linear-gradient(120deg,transparent 0 18px,#fff3 18px 20px),
    var(--art-ink);
}
.art-stamp[data-art="dice"] { --art-ink: #2b2759; --art-paper: #ffdf91; --art-accent: #fc8779; }
.art-stamp[data-art="talk"] { --art-ink: #443268; --art-paper: #ffe3ed; --art-accent: #bca1fa; }
.art-stamp[data-art="plan"] { --art-ink: #142f53; --art-paper: #c5f1ff; --art-accent: #87e2cc; }
.art-stamp[data-art="photo"] { --art-ink: #6e2d53; --art-paper: #fff1be; --art-accent: #eb8bb0; }
.art-stamp[data-art="calendar"] { --art-ink: #214b4b; --art-paper: #d6f1ba; --art-accent: #ffbc69; }
.art-stamp[data-art="music"] { --art-ink: #592e59; --art-paper: #e4d3ff; --art-accent: #e88acc; }
.art-stamp[data-art="heart"] { --art-ink: #512443; --art-paper: #ffe3a1; --art-accent: #ef9f79; }
.art-stamp[data-art="phone"] { --art-ink: #22295e; --art-paper: #abecde; --art-accent: #ffcc86; }
.art-stamp::before {
  content: ""; position: absolute; width: min(62%,9.5rem); height: 68%; z-index: -1;
  border: 2px solid var(--art-ink); border-radius: .75rem .25rem; background:
    radial-gradient(var(--art-ink) .55px,transparent .65px) 3px 2px / 9px 9px,
    var(--art-paper);
  transform: rotate(-12deg) translate(-8%,-2%); box-shadow: .42rem .44rem 0 var(--art-accent), .7rem .75rem 0 var(--art-ink);
  transition: transform .25s cubic-bezier(.18,.75,.28,1);
}
.art-stamp::after {
  content: attr(data-glyph); transform: rotate(8deg) translate(-6%,0); color: var(--art-ink);
  text-shadow: .045em .055em var(--art-accent); font-size: clamp(2.75rem,7vw,5.7rem); line-height: 1;
}
.poster-link:is(:hover,:focus-visible) .art-stamp::before { transform: rotate(-4deg) translate(-5%,-2%); }
.public-tile > .art-stamp { padding: 0; aspect-ratio: 1.75; }
.poster-link > .art-stamp { aspect-ratio: 1.8; }
.poster-grid .poster-link-historia > .art-stamp { aspect-ratio: 2.65; }
.android-feature > .android-stamp { aspect-ratio: 1.47; padding: 0; }
.android-stamp::before { width: 42%; height: 83%; border-radius: 1.15rem; box-shadow: .45rem .45rem 0 var(--art-accent); border: 7px solid var(--art-ink); }
.art-orbit {
  background: radial-gradient(ellipse at 75% 30%,#b05f9e 0 13%,transparent 13.5%),
    repeating-radial-gradient(ellipse at 75% 30%,#fff0 0 28px,#fff4 29px 30px,#fff0 31px 46px),
    linear-gradient(142deg,#301948,#253d71 68%,#637e96);
}
.arena-poster > .art-stamp { position: absolute; inset: 0; z-index: -2; justify-items: end; padding: 0 13%; }
.arena-poster > .art-stamp::before { right: 10%; height: 54%; }
.catalog-art > .art-stamp { position: absolute; inset: 0; z-index: -2; min-height: 100%; justify-items: end; padding-inline-end: 12%; }
.catalog-art > .art-stamp::before { right: 8%; }
.catalog-art > h2 { position: relative; z-index: 1; }
.public-steps h2 { margin: 1rem 0 .85rem; font-size: clamp(2rem,4vw,4rem); }
.android-public summary { cursor: pointer; font-weight: 800; margin-top: .7rem; }
.android-public #release-hash { font-size: .85rem; overflow-wrap: anywhere; }

.help-layout { display: grid; gap: .9rem; margin-block: 2rem 3rem; }
.help-index { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: .4rem; padding: .55rem; border-radius: .5rem; background: var(--print-ink); color: var(--print-light); }
.help-index a { min-height: 40px; display: flex; align-items: center; padding: .25rem .6rem; border: 1px solid #ffffff64; border-radius: .3rem; text-decoration: none; }
.help-card { scroll-margin-top: 7rem; background: var(--panel); border: 1px solid var(--print-border); padding: clamp(1rem,3vw,2rem); border-radius: var(--print-radius); }
.help-card h2 { font-size: clamp(1.65rem,4vw,3.4rem); }
.help-card p, .help-card ul { max-width: 74ch; }
.help-card a { color: var(--link-strong); font-weight: 700; }
.public-footer {
  display: grid; grid-template-columns: 1.15fr 1fr 1fr minmax(11rem,1.2fr); gap: 1rem;
  padding: clamp(1rem,3vw,2rem); margin: 2rem auto; background: var(--print-ink);
  color: var(--print-light); border-radius: .85rem .3rem .85rem .3rem; box-shadow: .4rem .45rem var(--print-mat);
}
.public-footer nav { display: grid; align-content: start; gap: .4rem; }
.public-footer :is(.brand, h2, a) { color: var(--print-light); }
.public-footer h2 { font-size: 1.17rem; letter-spacing: -.025em; }
.public-footer nav a { text-decoration-thickness: 1px; text-underline-offset: .23em; }
.public-footer .brand span { color: var(--print-gold); }
.moon-note { border: 1px dashed var(--print-gold); padding: .72rem; align-self: start; border-radius: .5rem; }
.moon-note summary { cursor: pointer; color: var(--print-gold); font-weight: 800; }
.moon-note p { margin-bottom: 0; }

.studio-layout { gap: clamp(.8rem,2vw,1.35rem); }
.studio-nav {
  display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: clamp(.4rem,2vw,1.3rem);
  padding: .65rem .84rem; border: 2px solid var(--print-border); border-radius: var(--print-radius);
  background: var(--panel); box-shadow: .28rem .33rem var(--print-mat);
}
.studio-pair { min-width: 0; display: flex; align-items: center; gap: .67rem; color: var(--paper); text-decoration: none; }
.studio-pair strong, .studio-pair small { display: block; overflow-wrap: anywhere; }
.studio-pair strong { font: 850 clamp(.95rem,2vw,1.35rem)/1.12 var(--display); }
.studio-pair small { margin-top: .22rem; color: var(--soft); }
.studio-portraits { display: flex; align-items: center; padding-right: .15rem; flex: none; --avatar-size: 2.65rem; }
.studio-portraits canvas + canvas { margin-left: -.68rem; transform: rotate(10deg); }
.studio-shortcuts { display: flex; align-items: center; flex-wrap: wrap; gap: .15rem; }
.studio-shortcuts a { display: grid; place-items: center; min-height: 42px; padding: .3rem .55rem; font-weight: 750; text-decoration: none; border-radius: .35rem; }
.studio-shortcuts a:hover, .studio-shortcuts a[aria-current="page"] { background: var(--print-gold); color: var(--print-ink); }
.studio-menu-trigger { min-height: 46px; display: flex; align-items: center; gap: .38rem; color: var(--print-light); background: var(--print-ink); border: 1px solid var(--print-border); font-weight: 850; padding: .35rem .7rem; border-radius: var(--print-radius); cursor: pointer; }
.studio-menu-trigger span { color: var(--print-gold); font-size: 1.2rem; }
.studio-tool-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.account-enter { view-transition-name: atelier-content; }
.commit-dialog[open] { animation: paper-appear .24s cubic-bezier(.17,.81,.26,1) both; }
.identity-panel { border-color: var(--print-border); }
.identity-heading { display: flex; align-items: center; gap: .7rem; --avatar-size: 4.25rem; }
.avatar-deck, .account-theme-choices { display: grid; border: 0; padding: 0; margin: 0; min-width: 0; }
.avatar-deck { grid-template-columns: repeat(6,minmax(0,1fr)); gap: .45rem; }
.avatar-deck legend, .account-theme-choices legend { margin-block: .3rem; font-weight: 800; }
.avatar-option { display: grid; justify-items: center; gap: .26rem; cursor: pointer; min-width: 0; padding: .5rem .2rem; text-align: center; border-radius: var(--print-radius); background: var(--control); border: 1px solid var(--line); font-size: .84rem; }
.avatar-option:has(:checked) { background: var(--print-gold); color: var(--print-ink); border-color: var(--print-border); }
.avatar-option input, .account-theme-choices input { accent-color: var(--print-mat); width: 1.1rem; height: 1.1rem; }
.account-theme-choices .theme-chip { cursor: pointer; display: grid; align-content: start; border: 2px solid transparent; color: var(--print-ink); }
.account-theme-choices .theme-chip:has(:checked) { border-color: var(--print-border); box-shadow: 0 0 0 2px var(--link-strong); }
.account-theme-choices input { position: absolute; margin: .37rem; }
.account-theme-choices img { width: 100%; }
.identity-details { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
[data-text-size="large"] .workspace { font-size: 1.13rem; }
.welcome-ticket { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1fr); overflow: hidden; border: 2px solid var(--print-border); border-radius: var(--print-radius); color: var(--print-ink); background: var(--print-cool); box-shadow: .32rem .37rem var(--print-mat); animation: paper-appear .38s ease both; }
.welcome-ticket img { min-height: 16rem; width: 100%; height: 100%; object-fit: cover; }
.welcome-ticket > div { padding: clamp(.8rem,3vw,1.75rem); }
.welcome-ticket h2 { font-size: clamp(1.65rem,4vw,3.6rem); }
.welcome-ticket .action-line { color: var(--print-ink); border-color: var(--print-ink); }
.welcome-ticket .action-line:hover { color: var(--print-light); background: var(--print-ink); }
.tour-status { font-weight: 800; }
.game-mode-gate { padding-block: .65rem 1rem; }
.game-mode-gate > h2 { font-size: clamp(2rem,4vw,4rem); margin-bottom: .55rem; }
.game-mode-grid, .dice-station { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: .8rem; }
.game-mode-grid article, .dice-result {
  border: 2px solid var(--print-border); border-radius: var(--print-radius); padding: clamp(.8rem,3vw,1.65rem);
  background: repeating-linear-gradient(0deg,#2a173117 0 1px,transparent 1px 24px),var(--print-gold);
  color: var(--print-ink); box-shadow: .22rem .3rem var(--print-mat);
}
.game-mode-grid article:nth-child(2) { background-color: var(--print-cool); }
.game-mode-grid article > span { display: grid; place-items: center; width: 2.1em; height: 2.1em; color: var(--print-light); background: var(--print-ink); border-radius: 50%; font-size: 1.5rem; transform: rotate(-10deg); }
.game-mode-grid h3 { margin: .6rem 0 .35rem; font-size: clamp(1.4rem,3vw,2.6rem); }
.game-mode-grid p { color: var(--print-ink); margin-top: .35rem; }
.dice-station { grid-template-columns: minmax(0,.72fr) minmax(0,1fr); align-items: start; }
.dice-controls { border-color: var(--print-border); }
.choice-chips { min-width: 0; border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .4rem; }
.choice-chips legend { margin-block: .35rem; font-weight: 850; }
.choice-chips label {
  display: flex; align-items: center; gap: .38rem; padding: .4rem .5rem; min-height: 48px;
  border: 1px solid var(--print-border); color: #29182e; background: #efe5f8; border-radius: .4rem;
  cursor: pointer; font-weight: 710; transition: background .18s ease, transform .18s ease;
}
.choice-chips label:nth-of-type(even) { background: #cae8e4; }
.choice-chips label:has(:checked) { color: #29182e; background: #ffdf91; box-shadow: inset 0 0 0 2px #7d426a; }
.choice-chips input[type="radio"] { flex: none; width: 1rem; height: 1rem; accent-color: #73294f; }
.dice-cube { display: grid; place-items: center; width: 1.64em; height: 1.64em; border: 2px solid var(--print-border); border-radius: .24em; background: var(--print-hot); color: var(--print-ink); font-size: 3.15rem; line-height: 1; transform: rotate(-10deg); box-shadow: .075em .095em var(--print-mat); }
.dice-cube.rolling { animation: roll-die .48s cubic-bezier(.2,.76,.45,1.09) both; }
.dice-result { background-color: var(--print-cool); animation: paper-appear .35s ease both; }
.dice-result h2 { font-size: clamp(1.75rem,4vw,3.8rem); line-height: 1.02; }
.dice-result p { color: var(--print-ink); }
.dice-empty { margin: 0; padding: .45rem; background: var(--print-light); color: var(--print-ink); border-radius: var(--print-radius); box-shadow: .24rem .28rem var(--print-mat); }
.dice-empty img { display: block; width: 100%; aspect-ratio: 1.7; object-fit: cover; }
.dice-empty figcaption { padding: .5rem; font-weight: 650; }
.relationship-setup { background: var(--panel); border: 2px solid var(--print-border); box-shadow: .25rem .25rem var(--print-mat); }
.journal-new { border-block-start: .45rem solid var(--print-cool); }
.journal-new h2, .journal-index h2 { font-size: clamp(1.65rem,4vw,3.2rem); }
.journal-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(.8rem,2vw,1.3rem); }
.journal-entry { --card-paper: #fff1cc; min-width: 0; border: 2px solid #483049; border-radius: .75rem .25rem; background: var(--card-paper); color: #2d1d34; box-shadow: .28rem .3rem #583f59; overflow: hidden; }
.journal-entry:nth-child(3n+2) { --card-paper: #e9dfff; }
.journal-entry:nth-child(3n+3) { --card-paper: #d8f1e2; }
.journal-thumbnail { display: grid; place-items: center; width: 100%; position: relative; overflow: hidden; aspect-ratio: 1.85; color: #fff7e6; border: 0; cursor: pointer; background: repeating-linear-gradient(135deg,#43324f 0 10px,#382447 10px 20px); }
.journal-thumbnail img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.journal-thumbnail span { position: absolute; right: .5rem; bottom: .5rem; display: grid; place-items: center; width: 2.45rem; height: 2.45rem; border-radius: 50%; color: #29182e; background: #ffdf91; }
.journal-card-copy { padding: clamp(.85rem,2vw,1.25rem); }
.journal-card-copy h2 { font-size: clamp(1.55rem,3vw,2.7rem); margin-bottom: .6rem; overflow-wrap: anywhere; }
.journal-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.journal-voices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; margin: .7rem 0; }
.journal-voices section { padding: .62rem; border-left: 3px solid #9d577a; background: #fffaf2; }
.journal-voices section + section { border-color: #4e776c; }
.journal-voices h3 { font-size: 1rem; overflow-wrap: anywhere; }
.journal-voices p { margin-bottom: 0; font-size: .9rem; }
.journal-edit { margin-block: .55rem; }
.journal-edit summary { cursor: pointer; font-weight: 800; padding-block: .4rem; }
.journal-edit textarea { color: #29182e; background: #fffaf2; border: 1px solid #583f59; }
.journal-entry .action-line { color: #382447; background: #fffaf2; border-color: #624368; }
.journal-entry .action-line:hover { color: #fff7e6; background: #382447; }
.journal-print-sheet { display: none; }
@media print {
  @page { size: A4; margin: 16mm; }
  html, body { margin: 0; padding: 0; color: #261e32; background: #fff !important; }
  body > :not(.journal-print-sheet) { display: none !important; }
  .journal-print-sheet { display: block; font: 11pt/1.45 var(--body, sans-serif); overflow-wrap: anywhere; }
  .journal-print-sheet :is(h1,h2,h3,p) { color: #261e32; }
  .journal-print-cover { min-height: 220mm; padding: 18mm 10mm; border-block: 4px solid #563167; display: grid; align-content: center; break-after: page; }
  .journal-print-cover h1 { font-size: 50pt; line-height: 1; max-width: 10ch; }
  .journal-print-page + .journal-print-page { break-before: page; }
  .journal-print-page header { padding-bottom: 4mm; border-bottom: 2px solid #563167; }
  .journal-print-page header h2 { font-size: 27pt; }
  .journal-print-page header p { margin: 0 0 2mm; }
  .journal-print-page > img { display: block; width: 100%; height: 80mm; margin: 5mm 0; object-fit: contain; }
  .journal-print-notes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6mm; }
  .journal-print-notes section { border-top: 1px solid #563167; padding-top: 3mm; }
  .journal-print-notes h3 { font-size: 12pt; }
}
@keyframes roll-die { 0% { transform: rotate(-10deg); } 42% { transform: translateY(-.23em) rotate(75deg) scale(.92); } 100% { transform: rotate(350deg); } }

@keyframes paper-appear { from { opacity: .35; transform: translateY(.75rem) scale(.99); } to { opacity: 1; transform: none; } }
@media (max-width: 870px) {
  .studio-shortcuts { display: none; }
  .studio-nav { grid-template-columns: minmax(0,1fr) auto; }
  .public-footer { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .public-hero h1 { font-size: clamp(2.65rem,6.25vw,5.5rem); }
}
@media (max-width: 670px) {
  .public-hero { grid-template-columns: 1fr; padding: 1rem; }
  .public-hero figure { transform: none; }
  .public-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .welcome-ticket { grid-template-columns: 1fr; }
  .welcome-ticket img { max-height: 13rem; min-height: 0; }
  .avatar-deck { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .studio-tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .journal-grid { grid-template-columns: 1fr; }
  .game-mode-grid, .dice-station { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 760px) {
  .studio-layout .studio-menu-trigger { display: none; }
  .studio-layout .studio-nav { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .landing-atlas .masthead { position: relative; }
  .landing-atlas .masthead > nav { display: none; }
  .public-menu-trigger { display: inline-flex; align-items: center; gap: .28rem; min-height: 44px; color: #fff7e6; background: #382447; border: 1px solid #29182e; font: inherit; font-weight: 830; padding: .38rem .6rem; border-radius: .55rem .25rem; cursor: pointer; }
  .public-menu-trigger span { color: #ffdf91; }
  .menu-box { margin: auto auto max(.6rem,env(safe-area-inset-bottom)); }
  .landing-atlas .masthead > .action { margin-inline-start: 0; padding-inline: .75rem; }
}
@media (max-width: 394px) {
  .public-gallery, .identity-details { grid-template-columns: 1fr; }
  .studio-portraits { --avatar-size: 2.05rem; }
  .public-footer { padding: .8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .public-page, .welcome-ticket, .menu-box, .commit-dialog, .public-tile, .dice-cube, .dice-result { animation: none !important; transition: none !important; }
  .art-stamp::before { transition: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: .01ms !important; }
}
