.ayan-news-rows{display:grid;gap:.4rem}
.ayan-news-row{box-sizing:border-box;display:grid;width:100%;grid-template-columns:auto 1fr;gap:.75rem;align-items:center;padding:.58rem .7rem;text-align:left;color:#163e37;background:#fffdf4;border:1px solid #a8c8b8;border-radius:8px;text-decoration:none;font:inherit;cursor:pointer}
.ayan-news-row:hover,.ayan-news-row:focus-visible{background:#e5f6ec;border-color:#167d71}
.ayan-news-arrow{display:grid;place-items:center;width:2.15rem;height:2.15rem;border-radius:50%;background:#d5efe5;color:#10594e;font-size:1.28rem;font-weight:800}
.ayan-news-row:first-child .ayan-news-arrow{background:#ffdf6c}
.ayan-news-row strong,.ayan-news-row small{display:block;overflow-wrap:anywhere}
.ayan-news-row strong{font-weight:800}.ayan-news-row small{margin-top:.13rem;font-size:.78rem;color:#42675d}
.ayan-pager{display:flex;align-items:center;justify-content:center;gap:1rem;margin:.9rem auto .2rem}
.ayan-pager button,.archive-back{border:1px solid #86afa1;border-radius:6px;background:#fffdf2;color:#16554b;padding:.35rem .72rem;font:inherit;cursor:pointer}
.ayan-pager button:disabled{opacity:.45;cursor:default}
.ayan-body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
.ayan-body a,.detail-article .ayan-body a{color:#145bc2;text-decoration:underline;text-underline-offset:.16em}
.ayan-body a:hover{color:#103d87}
.ayan-body .news-body-image{display:block;width:auto;max-width:100%;height:auto;margin:.5rem auto;object-fit:contain}
.rich-input .news-body-image{cursor:pointer}
.bulletin-entry .bulletin-thumb{aspect-ratio:1;width:auto;max-width:100%;height:100%;justify-self:start}
.news-preview-icon{width:64px;height:64px;object-fit:cover;border-radius:5px}
.profile-card{align-content:start;padding-block:clamp(18px,3vh,32px);overflow-wrap:anywhere}
.profile-text{display:grid;align-content:start;gap:.7rem;line-height:1.55;font-size:clamp(.87rem,3.35cqw,1rem)}
.profile-text p,.profile-text h1,.profile-text h2{margin:0}
.profile-text .profile-chips{display:flex;align-items:start;flex-wrap:wrap;gap:6px}
.profile-chips h1{display:inline-block;max-width:100%;padding:.23em .55em;border:1px solid #a4d5c4;border-radius:6px;background:#e6f4e9;color:#1d4b40;font:inherit;font-weight:500}
.profile-text h2{font-size:1.12em;line-height:1.3;color:#205d50;font-weight:800;border-left:3px solid #3c9b88;padding-left:.5em}
.profile-text strong{font-weight:850}
.profile-text a{color:#176959;text-decoration:underline;text-underline-offset:.18em}
@media(min-width:821px){.stage[data-intro-open] .home-intro{align-self:stretch;min-height:0;grid-template-rows:auto minmax(0,1fr)}.home-intro .profile-card{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}}
@media(max-width:820px){.home-intro .profile-card{min-height:245px}}
.profile-studio{grid-column:1/-1}.profile-columns{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:clamp(12px,2vw,24px);align-items:start;margin-top:1rem}
.profile-columns .actions{margin:12px 0 8px}.profile-columns textarea{min-height:290px;line-height:1.65;resize:vertical}
.profile-columns .profile-card{display:grid;gap:.65rem;min-height:245px;background:linear-gradient(145deg,#fffdf1,#eef7e9);border:1px solid #4e9887;border-radius:10px 19px 14px 14px;padding:22px 16px;box-shadow:0 4px #9cdbcb}
@media(max-width:760px){.profile-columns{grid-template-columns:1fr}}
.bulletin-feature{container-type:size;position:relative;isolation:isolate;display:grid;align-items:end;overflow:hidden;min-width:0;background:#124d43;color:#fffdf3;text-align:left;padding:0}
.bulletin-feature .bulletin-cover{position:absolute;inset:0;z-index:0;display:block;width:100%;height:100%;pointer-events:none}
.bulletin-cover>img,.bulletin-cover>svg{display:block;width:100%;height:100%;object-fit:cover}
.bulletin-feature-title{position:relative;z-index:1;display:flex;align-items:flex-end;justify-content:space-between;gap:8px;width:100%;box-sizing:border-box;padding:clamp(21px,9cqh,38px) clamp(10px,3.4cqw,18px) clamp(9px,3cqw,15px);background:linear-gradient(0deg,#082d29 0%,#0c332fee 48%,#0a302b99 72%,transparent);line-height:1.12}
.bulletin-feature-title strong{min-width:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere;font-size:clamp(1rem,5.7cqw,1.85rem)}
.news-go{flex:none;align-self:flex-end;display:inline-flex;align-items:center;gap:.4em;padding:.43em .72em;border-radius:2em;background:#ffdd69;color:#173e35;font-weight:850;font-size:clamp(.75rem,3.2cqw,.95rem)}
.bulletin-feature:is(:hover,:focus-visible) .news-go{background:#fff0ac}
.feature-crop-example{aspect-ratio:3/2;width:100%;border-radius:7px}
.crop-picker .feature-crop-example{width:110px}
.feature-crop-example .bulletin-feature-title{padding:12px 5px 4px;gap:3px}
.feature-crop-example .bulletin-feature-title strong{font-size:clamp(9px,6cqw,13px)}
.feature-crop-example .news-go{font-size:clamp(8px,5cqw,11px)}
.creative-illustration .ayan-crop{position:absolute;z-index:-1}
.creative-film .ayan-crop{position:absolute;inset:0;width:100%;height:100%}
.game-shelf .catalog-scroll{container-type:size;scrollbar-gutter:auto}
.game-shelf .catalog-grid{
  --slot:min(calc((100cqw - 12px)/3),calc((100cqh - 8px)/2 - 24px));
  grid-template-columns:repeat(3,minmax(0,var(--slot)));justify-content:space-evenly;align-content:start;gap:6px 4px;padding:1px;
}
.game-shelf .catalog-tile{grid-template-rows:auto 23px}
.game-shelf .catalog-name{font-size:clamp(10px,2.55cqw,13px);line-height:23px;padding:0 2px}
@media(max-width:820px),(max-height:700px){
  .game-dialogs{gap:8px}
  .game-shelf{gap:5px;padding:7px 9px}
}

@media(min-width:1051px){
  /* At rest the portrait extends 6px below the frame; keep 1px under the edge at full upward parallax. */
  body:not(.no-motion) .portrait{transform:translate3d(var(--px),max(-5px,var(--py)),0)}
}
#portrait{position:relative;aspect-ratio:1010/985;flex:none}
#portrait img{position:absolute;left:-23.5644%;bottom:0;width:147.1288%;max-width:none;height:100%;object-fit:contain;object-position:center bottom;opacity:0;transition:opacity 100ms linear}
#portrait img.visible{opacity:1}
@keyframes portrait-slide-in{
  from{transform:translateX(clamp(-18px,-1.6vw,-9px))}
  to{transform:translateX(0)}
}
body:not(.no-motion) #portrait:is([data-page="games"],[data-page="creative"],[data-page="chat"],[data-page="contact"]) img.visible{
  animation:portrait-slide-in 100ms ease-out;
}
.no-motion #portrait img{transition:none}
.video-theater{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(1100px,94vw,calc((100dvh - 92px)*16/9));max-width:96vw;height:fit-content;max-height:96dvh;padding:0;border:1px solid #52766e;border-radius:14px;overflow:hidden;color:#f7fff9;background:#102522;box-shadow:0 22px 90px #040e12a8}
.video-theater::backdrop{background:rgb(4 14 18 / .88)}
.video-theater header{display:flex;align-items:center;gap:16px;justify-content:space-between;padding:8px 12px 8px 18px;font-size:clamp(.88rem,2vw,1.1rem);font-weight:750}
.video-theater header a{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit}
.video-theater header a:hover{text-decoration:underline}
.video-theater header button{display:grid;place-items:center;flex:none;width:40px;height:40px;padding:0;border-radius:50%;border:1px solid #76998f;background:#203b36;color:#f6fff9;font:26px/1 sans-serif;cursor:pointer}
.video-theater header button:hover{background:#31594f}
.theater-screen{aspect-ratio:16/9;width:100%;background:#070b0d}
.theater-screen iframe{display:block;width:100%;height:100%;border:0}
html:has(.video-theater[open]){overflow:hidden}
.video-theater:has(.theater-playlist:not([hidden])){width:min(1100px,94vw,calc((100dvh - 176px)*16/9));overflow-y:auto;overscroll-behavior:contain}
.theater-playlist:not([hidden]){display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;padding:9px 12px;background:#142e29;border-top:1px solid #40615a}
.theater-playlist button{color:#f3fbf7;cursor:pointer}
.theater-playlist [data-video-step]{width:40px;height:44px;background:#224139;border:1px solid #597b70;border-radius:8px;font:26px/1 sans-serif}
.theater-playlist [data-video-step]:hover{background:#35564b}
.theater-choices{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(min(190px,80%),1fr);gap:8px;min-width:0;padding:3px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#568174 #142e29}
.theater-choice{display:flex;min-width:0;align-items:center;gap:10px;padding:5px;text-align:left;font:inherit;border:1px solid #43665b;border-radius:7px;background:#1b3932}
.theater-choice:hover{background:#284c42}
.theater-choice[aria-current]{background:#22463e;border-color:#89e2cd;box-shadow:inset 0 -2px #89e2cd}
.theater-thumb{display:grid;place-items:center;flex:none;width:76px;aspect-ratio:16/10;overflow:hidden;border-radius:4px;background:#0c1b19;color:#a7d9cd}
.theater-thumb img,.theater-thumb svg{width:100%;height:100%;min-height:0;display:block}
.theater-caption{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.87rem;font-weight:700}
.theater-playlist button:focus-visible{outline:2px solid #ffe481;outline-offset:1px}
@media(max-width:600px){.theater-playlist:not([hidden]){gap:4px;padding:6px}.theater-playlist [data-video-step]{width:34px}.theater-thumb{width:53px}.theater-choice{gap:6px}}
@media(max-height:450px){.video-theater:has(.theater-playlist:not([hidden])){width:min(94vw,calc((100dvh - 116px)*16/9))}.video-theater header{padding-block:2px}.theater-playlist:not([hidden]){padding-block:3px}.theater-thumb{width:48px}}
.feature-banner{box-sizing:border-box;position:relative;isolation:isolate;display:grid;grid-template:minmax(0,1fr)/minmax(0,1fr);width:100%;min-width:0;min-height:0;align-self:stretch;transform-origin:center;transition:transform .16s ease-out}
.feature-banner::before,.feature-banner::after{content:"";display:block;position:absolute;pointer-events:none}
.feature-print{display:grid;width:100%;aspect-ratio:8/3;place-items:center;min-width:0;min-height:0;background:#f8f5e7}
.feature-print>img,.feature-print>svg{display:block;width:100%;height:100%;min-width:0;min-height:0;object-fit:contain}
.frame-mint{padding:15px 7px 9px;background:linear-gradient(155deg,#edfdf4,#a4deca 65%,#6ebda8);border:2px solid #287063;border-radius:16px;box-shadow:inset 0 2px #fff,0 3px #3b897a}
.frame-mint .feature-print{border:1px solid #397767;border-radius:7px;overflow:hidden}
.frame-mint::before{top:4px;left:15px;width:39px;height:5px;background:#366d60;border-radius:9px;box-shadow:inset 0 1px 2px #103b33}
.frame-mint::after{top:4px;right:15px;width:5px;height:5px;background:#f47d99;border-radius:50%;box-shadow:-9px 0 #ffd75f,-18px 0 #299d83}
.frame-film{padding:18px 5px;background:#13292b;border:1px solid #122024;border-radius:5px;box-shadow:0 3px #609688}
.frame-film::before,.frame-film::after{left:10px;right:10px;height:6px;background:repeating-linear-gradient(90deg,#dce7ce 0 8px,transparent 8px 18px)}
.frame-film::before{top:5px}.frame-film::after{bottom:5px}
.frame-film .feature-print{outline:1px solid #68817c;background:#1e3334}
.frame-ticket{padding:7px 9px 7px 30px;border:1px solid #a57931;border-radius:7px;background:linear-gradient(110deg,#f7cc62,#fff2b9 45%,#efc267);box-shadow:0 3px #b28a49}
.frame-ticket .feature-print{border:1px solid #98723d;background:#fff4c8}
.frame-ticket::before{inset:5px auto 5px 20px;border-left:2px dashed #aa844c}
.frame-ticket::after{top:20%;bottom:20%;left:7px;width:7px;background:repeating-linear-gradient(0deg,#684f35 0 2px,transparent 2px 4px,#684f35 4px 5px,transparent 5px 9px)}
.frame-print{padding:8px 9px;background:#ffe5eb;border:2px solid #533a4f;box-shadow:3px 3px #ef7293,5px 5px #683c58;border-radius:3px}
.frame-print .feature-print{border:1px solid #724a64;background:#ffeff2}
.frame-print::before,.frame-print::after{width:clamp(24px,7%,42px);height:9px;background:repeating-linear-gradient(115deg,#f6bb55 0 5px,#ffdc8b 5px 9px);border:1px solid #795841;transform:rotate(-12deg)}
.frame-print::before{top:0;left:9%}.frame-print::after{right:9%;bottom:0}
.feature-banner:focus-visible{outline:3px solid #126c9c;outline-offset:2px}
@keyframes game-hover-nudge{0%{transform:scale(1)}35%{transform:scale(1.026) rotate(-.75deg)}70%{transform:scale(1.018) rotate(.45deg)}100%{transform:scale(1.015)}}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  body:not(.no-motion) :is(a.feature-banner,.catalog-tile):hover{position:relative;z-index:1;animation:game-hover-nudge .3s ease-out both}
}


.mail-ticket {
  --cut: polygon(0 0, calc(100% - 19px) 0, 100% 19px, 100% calc(100% - 19px), calc(100% - 19px) 100%, 0 100%);
  position: relative;
  padding: 1px;
  background: #5d8c80;
  clip-path: var(--cut);
}

.mail-ticket--art {
  --cut: polygon(0 12px, 12px 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 0 100%);
  background: #a96e7b;
}

.mail-ticket--art .mail-ticket-inner {
  background:
    radial-gradient(circle at 16px 22px, #f6d9df 5px, #d399a6 5.5px, transparent 6.5px),
    radial-gradient(circle at 16px calc(100% - 22px), #f6d9df 5px, #d399a6 5.5px, transparent 6.5px),
    radial-gradient(ellipse at 92% 100%, #f2d5da, transparent 60%),
    linear-gradient(140deg, #fffbf2, #f5eeea);
}

.mail-ticket--art .mail-ticket-inner::before {
  border-color: #ce9fa9;
}

.mail-ticket-inner {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(51px, 24cqw, 129px);
  align-items: center;
  gap: clamp(3px, 2cqw, 10px);
  position: relative;
  padding: clamp(7px, 2.8cqw, 15px) clamp(9px, 3.5cqw, 20px) clamp(7px, 2.8cqw, 15px) clamp(30px, 10.3cqw, 49px);
  background:
    radial-gradient(circle at 16px 22px, #d3e9e1 5px, #a5c5b9 5.5px, transparent 6.5px),
    radial-gradient(circle at 16px calc(100% - 22px), #d3e9e1 5px, #a5c5b9 5.5px, transparent 6.5px),
    radial-gradient(ellipse at 95% 100%, #a1e3d3 0, transparent 55%),
    linear-gradient(145deg, #fffff7, #f5f7e9 74%, #e1f0e5);
  clip-path: var(--cut);
}

.mail-ticket-inner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 25px;
  border-left: 1px dashed #a0b9a9;
}

.mail-ticket h2 {
  font-size: clamp(1.04rem, 6.45cqw, 2.08rem);
}

.mail-ticket p {
  margin-top: 5px;
  color: #315f53;
  font-size: clamp(.74rem, 3.1cqw, .98rem);
  line-height: 1.4;
}


.mail-action {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 36px;
  margin-top: 7px;
  padding: 4px 16px;
  color: #fff;
  background: #18746a;
  font-weight: 900;
  font-size: .94rem;
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}

.mail-action {
  max-width: 100%;
  min-height: 29px;
  padding-inline: clamp(7px, 2.7cqw, 14px);
  font-size: clamp(.67rem, 3.22cqw, .98rem);
  overflow-wrap: anywhere;
}

.mail-copy-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 7px;
  margin-top: 4px;
}

.mail-copy-button {
  min-height: 23px;
  padding: 1px 7px;
  border: 1px solid #83aa9d;
  border-radius: 4px;
  background: #fffdf0;
  color: #2b6558;
  font-size: clamp(.65rem, 2.7cqw, .8rem);
  font-weight: 780;
}

.mail-copy-button:hover { background: #e7f4e7; }
.mail-copy-feedback { color: #315a52; font-size: .7rem; }

.mail-manual-copy {
  width: 100%;
  margin-top: 3px;
  border: 1px solid #83aa9d;
  background: #fffdf0;
  color: #214d44;
  font-size: .72rem;
}


.mail-ticket-inner { isolation:isolate; overflow:hidden; }
.mail-ticket .mail-copy {position:relative;z-index:2;min-width:0;}
.mail-ticket .contact-sticker {
  position:absolute; z-index:1; left:var(--sticker-x); top:var(--sticker-y);
  width:var(--sticker-size); height:auto; max-width:none; max-height:none;
  transform:translate(-50%,-50%); pointer-events:none; user-select:none;
  filter:drop-shadow(0 3px 2px #26443b25);
}

.managed-chat .chat-message {
  flex: none;
  align-self: flex-start;
  max-width: 92%;
  margin: 0;
  padding: 8px 12px;
  color: #183c35;
  background: hsl(var(--sender-hue, 158) 60% 97%);
  border: 1px solid hsl(var(--sender-hue, 158) 27% 84%);
  border-radius: 4px 14px 14px;
  overflow-wrap: anywhere;
}
.managed-chat .chat-message.own {
  align-self: flex-end;
  border-radius: 14px 4px 14px 14px;
}
.managed-chat .chat-message p { margin: 3px 0 0; white-space: pre-wrap; }
.managed-chat .chat-message time { color: #49635c; }
.managed-chat #chat-log { overflow-anchor: none; }
