/* LinaIme V3.6 – unified premium UI, presentation only.
   Older media, rooms, and storage are not modified. */
:root{--ui-rose:#ff83b8;--ui-pink:#ffadd9;--ui-violet:#b968f6;--ui-border:rgba(255,166,235,.48);--ui-quiet:#ddc8e4;--ui-card:linear-gradient(142deg,rgba(75,34,93,.92),rgba(32,19,53,.96));color-scheme:dark}
html{scroll-padding-top:18px;-webkit-text-size-adjust:100%}
body{overflow-x:hidden;background:radial-gradient(ellipse 75% 34% at 6% 0%,rgba(116,42,116,.39),transparent 78%),radial-gradient(ellipse 75% 45% at 95% 85%,rgba(85,30,105,.23),transparent 75%),#110c1d}
.wrap{max-width:1080px;padding:calc(12px + env(safe-area-inset-top,0px)) clamp(12px,3vw,22px) calc(74px + env(safe-area-inset-bottom,0px));overflow:clip}
header{display:flex;align-items:center;gap:9px;margin-bottom:17px;min-width:0}
header .brand-home-link{flex:0 1 auto;max-width:50%;gap:9px;min-height:47px}
header .brand-home-link .ba-brand-icon{width:43px;height:43px;border-radius:14px;flex-shrink:0;box-shadow:0 0 19px #ef77d378}
header .brand-home-link span{font-size:clamp(17px,4.6vw,25px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
header .topactions{min-width:0;gap:7px;margin-left:auto}
header .topactions button{padding:11px clamp(9px,2.4vw,16px);font-size:clamp(12px,3.3vw,15px);min-height:43px;border-radius:15px}
#home .hero{padding:12px 8px 18px;max-width:700px;margin:auto}
#home .hero h1{font-weight:850;font-size:clamp(25px,5.6vw,37px);letter-spacing:-.035em}
#home .hero p{font-size:clamp(13px,3.2vw,17px);color:#dbc9e4;max-width:540px;line-height:1.55}
#v33-home-ann{max-width:820px;margin:0 auto 20px!important;overflow:hidden;padding:clamp(22px,5vw,32px)!important;border-radius:29px!important;background:radial-gradient(ellipse at 30% 0%,rgba(255,164,216,.27),transparent 63%),linear-gradient(130deg,#693568bd,#2b1c46ed)!important;border:1.5px solid #fa9ed69e!important;box-shadow:0 18px 40px #06020e4b,inset 0 1px #fff2!important}
#v33-home-ann h2{font-size:clamp(20px,4.4vw,28px);line-height:1.22}
#v33-home-ann .annheart{font-size:32px;filter:drop-shadow(0 3px 10px #fc5fa772)}
#v33-home-ann .daycount{font-size:clamp(70px,14vw,112px)!important;line-height:1.12;font-variant-numeric:tabular-nums;letter-spacing:-4px}
#v33-home-ann .daylabel{font-size:clamp(17px,4vw,22px)}
#home .tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;max-width:820px!important;margin:0 auto 25px!important}
#home .tabs button{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;width:100%!important;min-height:61px!important;padding:12px 7px!important;margin:0!important;white-space:normal!important;line-height:1.25!important;overflow-wrap:break-word!important;word-break:normal!important;border-radius:19px!important;border:1px solid #ffb9df70!important;background:linear-gradient(120deg,#f775ac,#ad5bdf)!important;box-shadow:0 9px 22px #11081d50!important;font-size:clamp(12px,3.65vw,16px)!important;font-weight:800}
#home .tabs button:nth-child(even){background:linear-gradient(135deg,#f481b7,#ae61e7)!important}
#home .tabs button.active{box-shadow:0 0 0 2px #ffcee8b5,0 10px 25px #16082064!important;border-color:#fff1ff!important}
#home .tabs button:active,button:active{transform:scale(.98)}
#home .tabs button:focus-visible,button:focus-visible,[role=button]:focus-visible{outline:3px solid #ffdae9!important;outline-offset:3px}
#dashboard,#games,#v23,#v27,#chat,#photos,#afterdark{min-width:0;width:100%}
#dashboard h2,#games>h2,#afterdark h2,#v23 h2,#v27 h2,#chat h2,#photos h2{letter-spacing:-.025em;line-height:1.25}
#dashboard .panel,#dashboard .tile,#v23 .panel,#v27 .panel,#chat .panel,#photos .panel,#afterdark .panel,#games>.panel{background:var(--ui-card);border:1px solid #efb6ed48;box-shadow:0 13px 30px #08040c4c;border-radius:24px;min-width:0;max-width:100%}
#dashboard>.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin:8px 0 18px}
#dashboard>.grid>.tile{display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;min-height:152px;padding:18px 12px;background:linear-gradient(145deg,#61366d,#33204c);border:1px solid #e6a0e66b}
#dashboard>.grid>.tile .face{margin:0 0 5px;font-size:34px}
#dashboard>.grid>.tile h2{font-size:clamp(15px,3.8vw,21px);margin:5px 0 7px}
#dashboard>.grid>.tile p{font-size:clamp(11px,2.5vw,13px);line-height:1.35;max-width:240px;margin:0;color:#dbc8e3}
#dashboard .mile-heading{gap:12px;flex-wrap:wrap}
#dashboard .memories-milestones{overflow:hidden}
#dashboard .memories-milestones button{white-space:normal;max-width:100%}
#games>h2{font-size:clamp(24px,5vw,34px);margin:18px 0 7px}
#games>p.muted{font-size:clamp(13px,3.3vw,16px);line-height:1.48;margin:6px 0 16px}
#v23SoundBtn{min-height:44px;margin:6px 0 12px;padding:10px 15px;font-size:14px;border:1px solid #e7a1e270;border-radius:16px;background:linear-gradient(145deg,#5e376b,#422554)}
#games:not(.playing)>.grid,#afterdark .ad-landing .grid{gap:clamp(10px,2.4vw,16px)!important;align-items:stretch!important}
#games .tile.v36-game-tile,#afterdark .tile.v36-game-tile{border-radius:23px!important;border:1.5px solid #f27cdbac!important;background:radial-gradient(ellipse at 50% 110%,#ad47864d,transparent 63%),linear-gradient(145deg,#51275c,#241632 79%)!important;box-shadow:inset 0 1px #ffffff26,0 12px 24px #05020a62!important;min-width:0!important;min-height:248px!important;height:100%!important;padding:14px 12px 19px!important;display:flex!important;align-items:center!important;flex-direction:column!important;justify-content:flex-start!important}
#games .tile.v36-game-tile .face.v36-game-art,#afterdark .tile.v36-game-tile .face.v36-game-art{height:125px!important;min-height:125px!important;display:grid!important;place-items:center!important;width:100%!important;margin:0 0 12px!important;font-size:clamp(46px,6vw,72px)!important;filter:drop-shadow(0 6px 12px #2a0b3899)}
#games .tile.v36-game-tile .face.v36-game-art img,#afterdark .tile.v36-game-tile .face.v36-game-art img{height:100%!important;width:min(100%,190px)!important;object-fit:contain!important}
#games .tile.v36-game-tile h2,#afterdark .tile.v36-game-tile h2{font-size:clamp(15px,2.3vw,22px)!important;line-height:1.2!important;margin:0 0 10px!important;text-align:center!important;min-height:2.35em!important;display:flex!important;align-items:center!important;justify-content:center!important;word-break:normal!important;overflow-wrap:break-word!important}
#games .tile.v36-game-tile p,#afterdark .tile.v36-game-tile p{font-size:clamp(11px,1.5vw,15px)!important;line-height:1.44!important;min-height:3em!important;text-align:center!important;overflow-wrap:anywhere!important;margin:auto 0 0!important;padding:3px 0 0!important;color:#e7d4ee!important}
#afterdark .ad-landing .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#afterdark .ad-landing{padding:clamp(15px,3.5vw,25px);max-width:100%}
#afterdark .ad-landing .tile{min-width:0}
#v23 .v23catgrid,#v27 .v27-nav{gap:10px}
#v23 .v23catgrid button,#v27 .v27-nav button{min-width:0;min-height:70px;border-radius:18px;font-size:clamp(12px,3vw,15px);padding:12px 10px}
#v23 .v23stats>div{min-width:0;overflow-wrap:anywhere}
#v23 .v23chatlog,#chat .chatlog{background:linear-gradient(140deg,#1b122c8a,#27163088);border:1px solid #e9acd733;border-radius:18px;overflow-x:hidden;scrollbar-color:#9858b1 transparent}
#v23 .bubble,#chat .bubble{max-width:88%;border-radius:17px;padding:12px 13px;overflow-wrap:anywhere}
#v23 .bubble.me,#chat .bubble.me{background:linear-gradient(120deg,#9b4e92b9,#70418bab)}
#v23 .v23choices button,#v23 .v23chat-tools button,#v27 button,#chat button,#photos button{min-height:42px;max-width:100%;overflow-wrap:anywhere}
#v23 #v23ChatInput,#chat #message{min-width:0;flex:1 1 auto}
#v23 .inline,#chat .inline{min-width:0;max-width:100%}
#v23 .v23entrygrid{grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr))}
#v27 .v27-body,#v27Body{max-width:100%;overflow-wrap:anywhere}
#photos .album-toolbar{gap:9px}
#photos .album-toolbar button{flex:1 1 145px;min-width:0;white-space:normal}
#photos .album-gallery{gap:11px}
#photos .album-card{background:linear-gradient(135deg,#3e2856,#25172f);border:1px solid #e9a4dd4e;border-radius:18px}
#photos .album-chip{background:linear-gradient(120deg,#623777,#422a5d);border:1px solid #eab6ed6b}
#games .room,#v23 .v23entry,#afterdark .ad-stage{border-radius:18px;border:1px solid #edb3e854;background:linear-gradient(135deg,#553263a0,#271a3ca0)}
#games .room button,#games #gameArea button,#afterdark .ad-stage button{min-height:42px;max-width:100%;border-radius:14px}
#games #gameArea .matchonly{max-width:100%;overflow-x:clip}
#games #gameArea .matchscore{max-width:100%;gap:7px;overflow-wrap:anywhere}
#games #gameArea .matchscore>div{min-width:0}
#games #gameArea .picks{gap:8px}
input,textarea,select{max-width:100%;min-width:0;box-shadow:inset 0 1px 2px #0003;border:1px solid #ffc3ec53;border-radius:13px;background:#2b1d3b;color:#fff;accent-color:#e678b9}
textarea{font:inherit;padding:13px;resize:vertical}
input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #ff9ed1;outline-offset:1px}
button{touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:transform .15s ease,filter .15s ease}
button:disabled{opacity:.5}
footer{margin-top:28px;padding-bottom:env(safe-area-inset-bottom,0px)}
@media(min-width:730px){#home .tabs{grid-template-columns:repeat(4,minmax(0,1fr))!important}#dashboard>.grid{grid-template-columns:repeat(3,minmax(0,1fr))}#games:not(.playing)>.grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}#games .tile.v36-game-tile,#afterdark .tile.v36-game-tile{min-height:295px!important}#games .tile.v36-game-tile .face.v36-game-art,#afterdark .tile.v36-game-tile .face.v36-game-art{height:165px!important;min-height:165px!important}}
@media(max-width:520px){.wrap{padding-left:12px;padding-right:12px}#games:not(.playing)>.grid,#afterdark .ad-landing .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}#games .tile.v36-game-tile,#afterdark .tile.v36-game-tile{min-height:228px!important;padding:11px 8px 14px!important;border-radius:20px!important}#games .tile.v36-game-tile .face.v36-game-art,#afterdark .tile.v36-game-tile .face.v36-game-art{height:101px!important;min-height:101px!important;font-size:49px!important;margin-bottom:8px!important}#games .tile.v36-game-tile h2,#afterdark .tile.v36-game-tile h2{font-size:clamp(13px,3.55vw,18px)!important;margin-bottom:7px!important}#games .tile.v36-game-tile p,#afterdark .tile.v36-game-tile p{font-size:clamp(10px,2.67vw,12.5px)!important;line-height:1.35!important}#dashboard>.grid>.tile{min-height:130px;padding:13px 8px}#dashboard>.grid>.tile p{font-size:11px}#v23 .v23stats{grid-template-columns:1fr!important}#v23 .v23choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}#v23 .v23choices button{min-width:0;width:100%}#home .tabs button{min-height:60px!important}header .brand-home-link span{font-size:clamp(16px,4.5vw,22px)}}
@media(max-width:365px){header .brand-home-link .ba-brand-icon{height:34px;width:34px}header .topactions button{font-size:11px;padding:9px 7px}#home .tabs button{font-size:12px!important;min-height:56px!important}#games .tile.v36-game-tile,#afterdark .tile.v36-game-tile{min-height:216px!important;padding:9px 6px 12px!important}#games .tile.v36-game-tile .face.v36-game-art,#afterdark .tile.v36-game-tile .face.v36-game-art{height:89px!important;min-height:89px!important}#games .tile.v36-game-tile h2,#afterdark .tile.v36-game-tile h2{font-size:12.5px!important}}
@media(prefers-reduced-motion:reduce){button,.tile{transition:none!important}html{scroll-behavior:auto!important}}
