/* Site layout and widgets. Light and dark theme values. */
/* Shared App palette: playful purple, sunny yellow and cream. */
:root {
  --text-color: 39, 34, 62;
  --background-color: 255, 249, 240;
  color-scheme: light;
  --error-color: #d6372b;
  --warning-color: #d6372b;
  --success-color: #3d8f2b;
  --accent: #6742d2;
  --accent-hover: #5230b5;
  --accent-text: #fff;
  --max-page-width: 1060px;
  --page-padding: 16px;
  --dialog-padding: 1.5rem;
  --horizontal-spacing: 0.6em;
  --vertical-spacing: 0.45em;
  --vertical-spacing-bigger: 0.6em;
  --block-vertical-spacing: 1.6em;
  --rows-per-list: 3;
  --items-per-row: 5;
  --items-min-per-row: 2;
  --items-column-gap: 24px;
  --items-row-gap: 28px;
  --item-size: 200px;
  --item-aspect-ratio-inv: 1;
  --gray-border-color: rgba(39, 34, 62, 0.12);
  --border-radius: 16px;
  --card-radius: 24px;
  --small-shadow: 0 1px 3px rgba(39, 34, 62, 0.18);
  --card-shadow: 0 2px 8px rgba(39, 34, 62, 0.16);
  --control-bg-color: #ece4ff;
  --menu-bg: #fffefa;
  --placeholder-bg: #ece4ff;
  --topbar-from: #fff9f0;
  --topbar-to: #fff9f0;
  --input-bg: #fffefa;
  --input-border: rgba(39, 34, 62, 0.28);
  --link-color: #6742d2;
  --min-info-opacity: 0.65;
}
:root[data-theme="dark"] {
  --text-color: 244, 238, 255;
  --background-color: 32, 26, 47;
  color-scheme: dark;
  --accent: #bca5ff;
  --accent-text: #27223e;
  --accent-hover: #d4c4ff;
  --gray-border-color: rgba(236, 228, 255, 0.12);
  --small-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  --control-bg-color: #3d305b;
  --menu-bg: #2c243e;
  --placeholder-bg: #3d305b;
  --topbar-from: #201a2f;
  --topbar-to: #201a2f;
  --input-bg: #251d36;
  --input-border: rgba(236, 228, 255, 0.28);
  --link-color: #cbb8ff;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --text-color: 244, 238, 255;
    --background-color: 32, 26, 47;
    color-scheme: dark;
    --accent: #bca5ff;
  --accent-text: #27223e;
    --accent-hover: #d4c4ff;
    --gray-border-color: rgba(236, 228, 255, 0.12);
    --small-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    --control-bg-color: #3d305b;
    --menu-bg: #2c243e;
    --placeholder-bg: #3d305b;
    --topbar-from: #201a2f;
    --topbar-to: #201a2f;
    --input-bg: #251d36;
    --input-border: rgba(236, 228, 255, 0.28);
    --link-color: #cbb8ff;
  }
}

html { font-size: 17px; accent-color: var(--accent); }
html, body, button, input, textarea, select { font-size: 1em; font-family: inherit; color: inherit; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "PingFang SC", "Hiragino Sans", Arial, sans-serif;
  color: rgb(var(--text-color));
  line-height: 1.4;
  background: rgb(var(--background-color));
  margin: 0;
  padding: 0;
  --item-width: var(--item-size);
  --item-height: calc(var(--item-size) * var(--item-aspect-ratio-inv));
  --item-min-width: 150px;
  --item-min-height: calc(var(--item-min-width) * var(--item-aspect-ratio-inv));
}
/* Fluid page width and item size (style_light.css; --scrollbar-width and --hundredvh are set by site.js) */
body:not(.ts-embed-page) {
  --max-page-width: 1200px;
  --client-width: calc(100vw - var(--scrollbar-width, 17px));
  --page-width-0: min(var(--client-width), var(--max-page-width));
  --page-width-1: calc(var(--page-width-0) - 2px);
  --item-size-0: max(calc(calc(var(--page-width-1) - 2 * var(--page-padding) - var(--items-column-gap) * var(--items-per-row) + var(--items-column-gap)) / var(--items-per-row)), var(--item-min-width));
  --free-height: calc(var(--hundredvh, 100vh) - var(--vertical-space-around));
  --item-height-0: max(calc(calc(var(--free-height) - var(--items-row-gap) * var(--rows-per-list) + var(--items-row-gap)) / var(--rows-per-list)), var(--item-min-height));
  --item-size: min(var(--item-size-0), calc(var(--item-height-0) / var(--item-aspect-ratio-inv)));
  --page-width: min(100%, var(--max-page-width));
  --item-size: var(--item-size-0);
}
body:not(.ts-noa) { --vertical-space-around: calc(calc(5.22rem + 3.85rem + 2px + 1.4rem) + calc(1.6em + 90px)); }
body.ts-noa { --vertical-space-around: calc(5.22rem + 3.85rem + 2px + 1.4rem); }
body.ts-embed-page { --item-aspect-ratio-inv: 1; --items-column-gap: 8px; --items-row-gap: 8px; --item-size: 146px; }
a { color: var(--link-color); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.5em; font-weight: 700; letter-spacing: -.01em; }
h2, .caption { font-size: 1.2em; }
.caption > h2 { font-size: 1em; font-weight: 700; }
[hidden] { display: none !important; }
.unselectable { user-select: none; -webkit-user-select: none; }

/* Page frame */
#ts-vp-wrap { display: flex; }
#ts-vp-wrap > *:nth-child(1), #ts-vp-wrap > *:nth-child(2) { display: none; }
#ts-vp-wrap > *:nth-child(3) { flex: 1 1 auto; min-width: 0; }
#ts-vp-wrap > *:nth-child(3) > *, #ts-pg-footer {
  max-width: var(--max-page-width);
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--page-padding);
}
body:not(.ts-embed-page) #ts-vp-wrap > *:nth-child(3) > *, body:not(.ts-embed-page) #ts-pg-footer { width: var(--page-width); }
/* The sticky top bar spans the window (its background); .frnt has the page width */
body #ts-vp-wrap > *:nth-child(3) > #topBar { max-width: none; padding: 0; width: auto; margin-left: 0; margin-right: 0; }

/* Top bar */
#topBar { position: sticky; top: 0; z-index: 50; height: 2.6em; }
#topBar .bckgrnd {
  position: absolute; left: 0; top: 0; right: 0; height: 2.6em; z-index: -1;
  box-shadow: 0 1px 0 var(--gray-border-color), 0 2px 6px rgba(39, 34, 62, .08);
  background-image: linear-gradient(to bottom, var(--topbar-from), var(--topbar-to));
}
#topBar .frnt {
  height: 2.6em; white-space: nowrap; display: flex; gap: calc(var(--horizontal-spacing) * .5);
  width: var(--page-width, auto); max-width: var(--max-page-width); margin: 0 auto; padding: 0 var(--page-padding); box-sizing: border-box;
}
#topBar .frnt > * { flex: 0 0 auto; }
#topBar a.ts-pp-logo { width: 2.6em; display: flex; align-items: center; justify-content: center; text-decoration: none; }
#topBar a.ts-pp-logo img { width: 2.21em; height: 2.21em; }
#topBar .ts-mainmenu { display: flex; flex: 0 1 auto; opacity: 1; transition: opacity .2s ease-in; overflow: hidden; padding: 0 5px 0 0; position: relative; min-width: 2.9em; }
.ts-dir-rtl #topBar .ts-mainmenu { padding: 0 0 0 5px; }
#topBar .ts-mainmenu > .menuBar { visibility: hidden; }
#topBar.ts-nicnzdmm .ts-mainmenu > .menuBar { visibility: visible; }
#topBar .ts-imm { display: flex; position: absolute; height: 100%; align-items: center; flex-direction: column; justify-content: center; padding: 0 .6em; visibility: hidden; }
#topBar:not(.ts-nicnzdmm) .ts-imm { visibility: visible; }
#topBar .ts-imm div { width: 1.7em; background: rgb(var(--text-color)); border-radius: .25em; }
#topBar.ts-srch-open .ts-mainmenu { max-width: 2.9em; }
#topBar .ts-srch { align-self: center; flex: 1 100 auto; }
#topBar .ts-srch button { display: none; }
#topBar .ts-srch form { min-width: 8em; max-width: 24em; margin: 0 0 0 auto; }
#topBar.ts-srch-open .ts-srch form { max-width: none; }
#topBar.ts-srch-open .ts-srch button { display: block; }
#topBar .ts-srch .ts-srch-inpt { background-color: rgb(var(--background-color)); width: 100%; box-sizing: border-box; }
.ts-srch form { position: relative; }
.ts-srch button.btn { border-radius: 0 var(--border-radius) var(--border-radius) 0; line-height: 0; font-size: 120%; position: absolute; top: 0; right: 0; height: 100%; width: 2.4em; padding: 0; }
.ts-dir-rtl .ts-srch button.btn { right: auto; left: 0; border-radius: var(--border-radius) 0 0 var(--border-radius); }
.ts-dir-ltr .ts-srch-open .ts-srch-inpt { padding-right: 3em; }
.ts-dir-rtl .ts-srch-open .ts-srch-inpt { padding-left: 3em; }
.content .ts-srch { width: 60%; margin: var(--vertical-spacing) auto; }
.content .ts-srch input { display: block; width: 100%; box-sizing: border-box; }
#ts-rt-menu { display: flex; align-items: center; }
.MainMenu { height: 100%; flex: 0 0 auto; font-weight: 600; gap: .25em; }
.MainMenu li { line-height: 1; }
.MainMenu > li > .ts-mnitm { padding: 0 .9em; height: 1.9em; box-sizing: border-box; border-radius: 999px; align-self: center; }
.MainMenu > li > .ts-mnitm:hover { background-image: none; background-color: var(--control-bg-color); }
.MainMenu li.ts-hi > .ts-mnitm { background-color: var(--accent); color: var(--accent-text); }
.MainMenu li.ts-hi > .ts-mnitm:hover { background-color: var(--accent-hover); }
#topBar .ts-mainmenu { align-items: center; }
/* Theme toggle button (shows the icon of the theme the click switches to) */
.ts-theme-btn { display: flex; align-items: center; justify-content: center; width: 2em; height: 2em; border-radius: 50%; color: inherit; text-decoration: none !important; font-size: 1.05em; margin-right: .3em; }
.ts-theme-btn .fa-sun { display: none; }
:root[data-theme="dark"] .ts-theme-btn .fa-sun { display: inline-block; }
:root[data-theme="dark"] .ts-theme-btn .fa-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] .ts-theme-btn .fa-sun { display: inline-block; }
  :root[data-theme="system"] .ts-theme-btn .fa-moon { display: none; }
}
.UserMenu { gap: var(--horizontal-spacing); }
.UserMenu .ts-mnitm { height: 100%; }
.UserMenu.newUser .signin .ts-mnitm, .UserMenu.newUser .signup .ts-mnitm {
  border: 1px solid var(--gray-border-color); padding: .3em .7em; border-radius: var(--border-radius); height: auto; font-weight: 600;
}
.UserMenu.newUser .signup .ts-mnitm { background-color: var(--accent) !important; font-weight: bold; color: var(--accent-text); border-color: transparent; }
.UserMenu.newUser .signup .ts-mnitm:hover { background-color: var(--accent-hover) !important; }
.UserMenu.newUser .signin .ts-mnitm { background: var(--control-bg-color); }
.ts-user-mnitm { gap: .4em; padding: 0 .4em; }
.ts-avatar { width: 1.8em; height: 1.8em; border-radius: 50%; object-fit: cover; }
.ts-badge { background: var(--error-color); color: #fff; border-radius: 1em; font-size: .75em; padding: 0 .45em; line-height: 1.5em; }

/* Menus */
ul.ts-menu .ts-mnitm { text-decoration: none; color: inherit; }
ul.menuBar { display: flex; list-style: none; padding: 0; margin: 0; }
ul.popupMenu { list-style: none; padding: 0; margin: 0; }
ul.menuBar > li { display: flex; flex: 0 0 auto; align-items: center; position: relative; }
ul.menuBar span.label { white-space: nowrap; }
ul.menuBar .ts-mnitm, ul.popupMenu .ts-mnitm { display: flex; align-items: center; position: relative; white-space: nowrap; cursor: pointer; }
span.ts-mnitm { cursor: default; }
.ts-mnitm > .ts-ico { margin: 0 .4em 0 0; }
.ts-dir-rtl .ts-mnitm > .ts-ico { margin: 0 0 0 .4em; }
ul.menuBar .ts-ico, ul.popupMenu .ts-ico { color: rgba(var(--text-color), .7); }
ul.popupMenu .ts-ico { width: 1.2em; text-align: center; }
ul.popupMenu {
  border: 1px solid var(--gray-border-color); background-color: var(--menu-bg); min-width: 6em; border-radius: var(--border-radius);
  box-shadow: 0 6px 18px rgba(39, 34, 62, .18); position: absolute; z-index: 1000; display: none; top: 100%; left: 0; padding: .3em 0;
}
.ts-dir-rtl ul.popupMenu { left: auto; right: 0; }
ul.popupMenu.ts-open, li.hasSubmenu.ts-open > ul.popupMenu { display: block; }
ul.popupMenu ul.popupMenu { top: -1px; left: 100%; }
.ts-dir-rtl ul.popupMenu ul.popupMenu { left: auto; right: 100%; }
ul.popupMenu li { display: block; margin: 0; position: relative; }
ul.popupMenu .ts-mnitm { padding: 0 1em; line-height: 2.6rem; }
ul.ts-menu:not(.simple.ts-links) li:not(.ts-disabled) .ts-mnitm:hover, ul.ts-menu:not(.simple.ts-links) .ts-pt-opnd, ul.ts-menu:not(.simple.ts-links) li.ts-open > .ts-mnitm,
.ts-cntrl-hover-bg:hover, .ts-cntrl-hover-bg.ts-pt-opnd { background-image: linear-gradient(var(--control-bg-color), var(--control-bg-color)); }
ul.popupMenu li.hasSubmenu > .ts-mnitm { padding-right: 2em; }
ul.popupMenu li.hasSubmenu > .ts-mnitm:after { content: "\f0da"; font-family: "Font Awesome 6 Free"; font-style: normal; font-weight: 900; font-size: 1em; position: absolute; left: auto; right: .6em; }
.ts-dir-rtl ul.popupMenu li.hasSubmenu > .ts-mnitm { padding-right: .8em; padding-left: 2em; }
.ts-dir-rtl ul.popupMenu li.hasSubmenu > .ts-mnitm:after { content: "\f0d9"; right: auto; left: .6em; }
ul.menuBar > li.hasSubmenu > .ts-mnitm:after { content: "\a0\a0\f0d7"; font-family: "Font Awesome 6 Free"; font-style: normal; font-weight: 900; font-size: 1em; line-height: .5em; vertical-align: middle; }
ul.popupMenu li.separator { height: 5px; overflow: hidden; }
ul.popupMenu li.separator > span { display: block; margin: 0 5%; height: 2px; border-bottom: 1px dotted rgba(var(--text-color), .3); }
ul.popupMenu li.ts-disabled .ts-mnitm { opacity: .4; cursor: not-allowed; }
ul.popupMenu li.ts-slctd > .ts-mnitm { font-weight: bold; }
ul.popupMenu.ts-slctitm > li > .ts-mnitm:before { content: ""; width: 1.5em; display: inline-block; }
ul.popupMenu.ts-slctitm > li.ts-slctd > .ts-mnitm:before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-style: normal; font-weight: 900; }
*:not(#ts-pg-footer) > ul.menuBar.simple:not(.ts-links) > li > .ts-mnitm {
  border: 1px solid var(--gray-border-color); padding: .35em .7em; border-radius: var(--border-radius); background-color: var(--control-bg-color); min-height: 2.2em; box-sizing: border-box;
}
*:not(#ts-pg-footer) > ul.menuBar.simple:not(.ts-links) > li > .ts-mnitm:hover { box-shadow: var(--small-shadow); }
*:not(#ts-pg-footer) > ul.menuBar.simple { gap: var(--horizontal-spacing); }
.ts-menu-floating { position: absolute; display: block; }

/* Messages under the top bar (type 0 info, 1 error, 2 warning) */
#ts-pm .ts-msg:first-of-type { margin-top: .8em; }
.ts-msg { display: flex; align-items: center; padding: var(--vertical-spacing) var(--horizontal-spacing); background: var(--control-bg-color); border-radius: var(--border-radius); margin-bottom: 2px; }
.ts-msg.ts-type1 { background: rgba(230, 23, 44, .15); }
.ts-msg.ts-type2 { background: rgba(230, 160, 23, .2); }
.ts-msg.ts-type3 { background: rgba(53, 158, 32, .18); }
.ts-msg > div { flex: 1 1 auto; }
.ts-msg .ts-msg-close { flex: 0 0 auto; cursor: pointer; opacity: .6; padding: 0 .3em; }
/* Utility classes */
.ts-hoveraltop { opacity: var(--min-info-opacity); }
.ts-hoveraltop:active { opacity: 1 !important; }
@media (any-hover: hover) { .ts-hoveraltop:hover { opacity: 1 !important; } }
@media (any-hover: none), not screen { .ts-hoveraltop { opacity: .7; } }
.ts-curhov { cursor: pointer; }
.hilightbg { background-color: rgba(0, 0, 0, .1); }
.minorinf { opacity: var(--min-info-opacity); }
.ts-ico.ts-hoveraltop, .ts-ico-color.ts-hoveraltop { color: rgb(var(--text-color)); }
.bigShadow { box-shadow: 2px 2px 5px rgba(0, 0, 0, .2); }
.ts-flxdspl { display: flex; }
.ts-flx00a { flex: 0 0 auto; }
.ts-flx11a { flex: 1 1 auto; }
.ts-justcnt-cntr { justify-content: center; }
.ts-ico-btn { cursor: pointer; font-size: 125%; width: 1em; text-align: center; vertical-align: middle; padding: 2px; text-shadow: 1px 1px 2px rgba(0, 0, 0, .6); }
.ts-size-medium2 { --item-width: calc(var(--item-size) * 0.6); --item-height: calc(var(--item-width) * var(--item-aspect-ratio-inv)); }
/* Hot messages. The top bar is sticky with z-index 50 */
#ts-hm.ts-phm { position: fixed; top: 0; left: 0; right: 0; max-width: calc(0.7 * var(--page-width, var(--max-page-width))); margin: 0 auto; box-shadow: var(--small-shadow); z-index: 51; border-radius: 0 0 var(--border-radius) var(--border-radius); overflow: hidden; }
#ts-hm .ts-msg { border-radius: 0; margin: 0; color: #000; }
#ts-hm .ts-msg:not(:last-child) { border-bottom: 1px solid rgb(var(--background-color)); }
#ts-hm .ts-msg > div:first-child { flex: 0 0 auto; width: 1.8em; text-align: center; white-space: nowrap; }
#ts-hm .ts-msg > div:first-child:after { content: ""; padding-right: var(--horizontal-spacing); }
#ts-hm .ts-msg > div:last-child { flex: 1 1 auto; }
#ts-hm .ts-type0 { background-color: #ece4ff; }
#ts-hm .ts-type0 > div:first-child { color: #5230b5; }
#ts-hm .ts-type1 { background-color: #f5a2ab; }
#ts-hm .ts-type1 > div:first-child { color: var(--warning-color); }
#ts-hm .ts-type2 { background-color: #f5f5a2; }
#ts-hm .ts-type2 > div:first-child { color: #e6e617; }

/* Navigator (page title row) */
.navigator:not(:empty) { margin-top: .56em; margin-bottom: .56em; display: flex; align-items: center; white-space: nowrap; gap: var(--horizontal-spacing); }
.navigator h1 { margin: 0; padding: 0; flex: 1 1 auto; overflow: hidden; display: flex; align-items: center; font-size: 1.4em; }
.navigator > h1 > * { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
.navigator > h1 .ts-sep { flex: 0 0 auto; opacity: var(--min-info-opacity); padding: 0 .3em; }
.navigator > h1 .ts-cut-desc img { height: 1.4em; width: 1.4em; }

/* Captions and lists */
.caption { margin: var(--block-vertical-spacing) 0 var(--vertical-spacing-bigger) 0; display: flex; align-items: center; gap: var(--horizontal-spacing); }
.caption > h2 { display: inline; margin: 0; flex: 1 1 auto; }
.caption > .ts-caption-sub { display: none; }
.caption > h2 .ts-caption-sub { display: block; font-size: .8rem; font-weight: normal; opacity: var(--min-info-opacity); margin-top: .1em; }
.caption > ul { font-size: 1rem; }
.puzzleList .ts-list { margin-bottom: 1em; }
.ts-list { display: grid; grid-template-columns: repeat(auto-fill, var(--item-width)); grid-auto-rows: max-content; gap: var(--items-row-gap) var(--items-column-gap); }
.ts-list.ts-list-list { grid-template-columns: none; gap: .2em 0; }
.ts-empty { opacity: .6; margin: 1em 0; }

.ts-item { display: grid; justify-items: center; grid-auto-rows: min-content; position: relative; line-height: 1.25; gap: var(--vertical-spacing); }
.ts-item > * { position: relative; max-width: 100%; }
.ts-item > .ts-ic { user-select: none; }
.ts-item .ts-cnt-wrap { display: flex; align-items: center; justify-content: center; position: relative; width: var(--item-width); height: var(--item-height); text-decoration: none; color: inherit; }
.ts-item .ts-cntbrdr-wrap { position: relative; background-color: var(--placeholder-bg); width: 100%; height: 100%; box-shadow: var(--small-shadow); overflow: hidden; border-radius: var(--border-radius); }
.ts-item .ts-cnt { display: block; width: 100%; height: 100%; object-fit: contain; }
.ts-item.ts-Puzzle .ts-cnt { object-fit: cover; }
.ts-item.ts-Puzzle:hover > .ts-ic .ts-cnt { filter: brightness(105%); }
.ts-item.ts-tos .ts-cnt { filter: brightness(50%); }
.ts-item .ts-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto; }
.ts-item > .ts-tc { display: flex; width: 100%; overflow: hidden; }
.ts-item > .ts-tc > * { display: flex; gap: var(--horizontal-spacing); align-items: center; width: 100%; overflow: hidden; }
.ts-item > .ts-ic > a, .ts-item.ts-Puzzle > .ts-tc > a, .ts-item.ts-Album > .ts-tc > a { text-decoration: none; color: inherit; }
.ts-item.ts-Puzzle { --user-item-size: 1.5em; width: var(--item-width); }
.ts-item.ts-Puzzle .ts-cntbrdr-wrap { border-radius: var(--card-radius); box-shadow: var(--card-shadow); transition: transform .15s ease, box-shadow .15s ease; }
.ts-item.ts-Puzzle:hover .ts-cntbrdr-wrap { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(39, 34, 62, .22); }
.ts-item.ts-Puzzle > .ts-tc { width: 100%; gap: .2em; }
.ts-item.ts-Puzzle > .ts-tc > a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "user label cut"; align-items: center; gap: 0 .5em; width: 100%; }
.ts-item.ts-Puzzle > .ts-tc .ts-item.ts-User { grid-area: user; }
.ts-item.ts-Puzzle > .ts-tc .ts-label { grid-area: label; font-weight: 600; font-size: .95em; }
.ts-item.ts-Puzzle > .ts-tc .ts-cut-desc { grid-area: cut; font-size: .9em; opacity: var(--min-info-opacity); }
.ts-item.ts-Puzzle .ts-item.ts-User { --item-width: var(--user-item-size); --item-height: var(--user-item-size); flex: 0 0 auto; }
.ts-item.ts-Puzzle .ts-item.ts-User .ts-cntbrdr-wrap { box-shadow: none; border-radius: 50%; }
.ts-item.ts-User .ts-cntbrdr-wrap { border-radius: 50%; }
.ts-item.ts-User .ts-cnt { object-fit: cover; }
.ts-cut-desc { display: inline-flex; align-items: center; gap: .2em; flex: 0 0 auto; }
.ts-cut-desc img { width: 1.5em; height: 1.5em; }
.ts-item.ts-Puzzle .ts-cut-desc > *:first-child { font-weight: 700; }
.ts-item.ts-Puzzle svg.ts-progress { position: absolute; left: 0; top: 0; width: 100%; height: 100%; filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, .6)); pointer-events: none; }
.ts-item.ts-Puzzle svg.ts-progress path { fill: #fff; fill-opacity: .7; }
.ts-item .ts-exinfo { position: absolute; left: var(--horizontal-spacing); bottom: var(--vertical-spacing); color: #fff; filter: drop-shadow(1px 1px 1.4px rgba(0, 0, 0, .8)); font-size: max(min(calc(var(--item-width) * .2), 2.5rem), 1rem); }
.ts-item .ts-cm-trggr {
  position: absolute; top: 0; right: 0; width: 2rem; height: 2.4rem; display: none; cursor: default; align-items: center; justify-content: center;
  background-color: rgba(255, 249, 240, .6); border-radius: 0 var(--card-radius) 0 var(--border-radius); font-size: 1.5rem; color: #33281e; box-shadow: 2px 2px 5px rgba(0, 0, 0, .2);
}
.ts-dir-rtl .ts-item .ts-cm-trggr { right: auto; left: 0; }
.ts-item .ts-cm-trggr:after { content: "\f0da"; font-family: "Font Awesome 6 Free"; font-style: normal; font-weight: 900; font-size: 1em; position: relative; }
.ts-dir-rtl .ts-item .ts-cm-trggr:after { content: "\f0d9"; }
.ts-item:hover .ts-cm-trggr, .ts-item .ts-cm-trggr.ts-pt-opnd, .ts-touchdev .ts-item .ts-cm-trggr { display: flex; }
.ts-item:hover .ts-cm-trggr, .ts-item .ts-cm-trggr.ts-pt-opnd { background-color: #fbf7f1; }

/* Albums */
.ts-item.ts-Album .ts-cntbrdr-wrap { border-radius: 10px; padding: .8em; box-sizing: border-box; border: 1px solid var(--gray-border-color); overflow: visible; }
.ts-item.ts-Album .ts-cntbrdr-wrap:before, .ts-item.ts-Album .ts-cntbrdr-wrap:after { content: ""; position: absolute; inset: 0; background-color: var(--placeholder-bg); border-radius: 10px; z-index: -1; box-shadow: var(--small-shadow); }
.ts-item.ts-Album .ts-cntbrdr-wrap:before { transform: rotate(-8deg); opacity: .2; }
.ts-item.ts-Album .ts-cntbrdr-wrap:after { transform: rotate(-4deg); opacity: .4; }
.ts-item.ts-Album .ts-cnt { object-fit: contain; }
.ts-item.ts-Album > .ts-tc { opacity: .5; }
.ts-item.ts-Album:hover > .ts-tc { opacity: 1; }

/* Simulated ad unit on the home page */
.ts-home-ad .ts-ad-slot { height: 100%; max-width: 728px; margin: 0 auto; box-sizing: border-box; display: flex; align-items: center; justify-content: center; border: 1px dashed var(--gray-border-color); border-radius: var(--border-radius); font-size: smaller; opacity: .6; }

/* Paginator */
ul.paginator { list-style: none; padding: 0; margin: 1em 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .3em; }
ul.paginator .btn { font-weight: normal; padding: .4em .8em; }
ul.paginator .btn.ts-current { position: relative; cursor: default; }
ul.paginator .btn.ts-current:after { content: ""; position: absolute; inset: 0; border-bottom: 3px solid var(--accent); }

/* Footer */
#ts-pg-footer { clear: both; margin-top: 3em; margin-bottom: 1.5em; padding-top: 1.2em; border-top: 1px solid var(--gray-border-color); font-size: .9em; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--horizontal-spacing); }
#ts-pg-footer ul.menuBar.simple { flex-wrap: wrap; flex: 1 1 auto; opacity: .7; gap: .3em 1.2em; }
#ts-pg-footer ul.menuBar.simple:hover { opacity: 1; }
#ts-pg-footer ul.menuBar.simple a:hover { text-decoration: underline; }
#ts-pg-footer, #ts-pg-footer .ts-links a, .ts-small-a { color: inherit; }
#ts-pg-footer ul.popupMenu { top: auto; bottom: 100%; }
#ts-pg-footer .ts-lang-select { display: flex; align-items: end; flex-direction: column; }
#ts-pg-footer .ts-lang-select select { width: auto; max-width: 9em; }
#ts-pg-footer .ts-lang-select .uilang { display: flex; gap: var(--horizontal-spacing); align-items: center; }
#ts-pg-footer .ts-help-us { visibility: hidden; }
#ts-pg-footer .ts-lang-select:hover .ts-help-us { visibility: visible; }

/* Forms and buttons */
input[type=text], input[type=search], input[type=number], input[type=password], input[type=email], input[type=url], input:not([type]), textarea, select {
  background: var(--input-bg); border: 1px solid var(--input-border); border-radius: var(--border-radius); padding: .45em .6em; box-sizing: border-box; min-height: 2.4em;
}
input:focus-visible, textarea:focus-visible, select:focus-visible, .btn:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { width: 100%; min-height: 6em; resize: vertical; }
input[type=submit], input[type=button], .btn, button.btn, .modal-dialog-buttons button {
  background-color: var(--control-bg-color); border: 1px solid var(--gray-border-color); border-radius: var(--border-radius);
  font-weight: 600; padding: .6em 1em; min-height: 2.6em; white-space: nowrap; text-decoration: none !important; color: inherit; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; display: inline-block; box-sizing: border-box;
}
input[type=submit]:enabled:hover, input[type=button]:enabled:hover, .btn:not(.ts-disabled):hover, .modal-dialog-buttons button:enabled:hover {
  background-image: linear-gradient(rgba(0, 0, 0, .1), rgba(0, 0, 0, .1)); box-shadow: var(--small-shadow);
}
input[type=submit]:disabled, input[type=button]:disabled, button.btn:disabled, .modal-dialog-buttons button:disabled { color: rgba(var(--text-color), .25); cursor: default; }
form input[type=submit]:enabled, form button.btn[type=submit]:enabled, .modal-dialog-buttons button.ts-default:enabled { border-color: rgba(0, 0, 0, .475); }
:root[data-theme="dark"] form input[type=submit]:enabled, :root[data-theme="dark"] .modal-dialog-buttons button.ts-default:enabled { border-color: rgba(255, 255, 255, .5); }
.btn.ts-smaller { padding: .2em .6em; font-weight: normal; }
.btn.ts-primary, input[type=submit].ts-primary { background-color: var(--accent); color: var(--accent-text); border-color: transparent; }
.btn.ts-primary:not(.ts-disabled):hover, input[type=submit].ts-primary:enabled:hover { background-color: var(--accent-hover); background-image: none; }
.btngrp, .modal-dialog-buttons { margin: 1em 0; display: flex; justify-content: center; flex-wrap: wrap; }
.btngrp input, .btngrp button, .btngrp .btn, .modal-dialog-buttons button { margin: calc(var(--vertical-spacing) / 2) calc(var(--horizontal-spacing) / 2); min-width: 6em; }
form label, form .ts-label-like { font-weight: bold; }
.ts-form-table { display: table; border-spacing: var(--horizontal-spacing) var(--vertical-spacing-bigger); margin: 0 calc(-1 * var(--horizontal-spacing)); }
.ts-form-table > .ts-row-group { display: table-row-group; }
.ts-form-table > .ts-row-group > .ts-row { display: table-row; }
.ts-form-table > .ts-row-group > .ts-row > .ts-cell { display: table-cell; vertical-align: middle; }
.ts-form-table > .ts-row-group > .ts-row > .ts-cell:first-child { white-space: nowrap; }
.ts-form-table > .ts-row-group > .ts-row > .ts-cell:first-child label:not(:empty):after,
.ts-form-table > .ts-row-group > .ts-row > .ts-cell:first-child .ts-label-like:not(:empty):after { content: ":"; }
.ts-form-table .btngrp { justify-content: normal; }
.ts-form-table .CheckboxElement label:after { content: none !important; }
.ts-form-table input[type=text], .ts-form-table input[type=email], .ts-form-table input[type=password], .ts-form-table select, .ts-form-table textarea { width: 100%; max-width: 30em; }
.ts-hint { font-size: .85em; opacity: .7; font-weight: normal; }
.ts-error { color: var(--error-color); }
.ts-form-errors { color: var(--error-color); margin: .5em 0; }
.ts-section { margin: var(--block-vertical-spacing) 0; }
.ts-section > h2 { border-bottom: 1px solid var(--gray-border-color); padding-bottom: .3em; }
.ts-shape-choice { display: flex; flex-wrap: wrap; gap: .3em; }
.ts-shape-choice label { display: inline-flex; flex-direction: column; align-items: center; cursor: pointer; font-weight: normal; }
.ts-shape-choice label img { width: 48px; height: 48px; }

/* Dialogs (goog.ui.Dialog look) */
.modal-dialog-bg { position: fixed; inset: 0; background: rgba(40, 28, 16, .45); z-index: 2000; }
.modal-dialog {
  position: fixed; z-index: 2001; left: 0; top: 0;
  background-color: rgb(var(--background-color)); border: 1px solid var(--gray-border-color); box-shadow: 0 12px 32px rgba(0, 0, 0, .25); border-radius: var(--card-radius);
  max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-sizing: border-box; outline: none;
}
.modal-dialog-title { position: relative; padding: var(--dialog-padding) calc(var(--dialog-padding) + 2em) 0 var(--dialog-padding); font-weight: bold; font-size: 1.2em; cursor: default; user-select: none; }
.ts-dir-rtl .modal-dialog-title { padding: var(--dialog-padding) var(--dialog-padding) 0 calc(var(--dialog-padding) + 2em); }
.modal-dialog-title-close { position: absolute; right: var(--dialog-padding); top: var(--dialog-padding); cursor: pointer; opacity: .6; font-size: 1.1em; line-height: 1; }
.ts-dir-rtl .modal-dialog-title-close { right: auto; left: var(--dialog-padding); }
.modal-dialog-title-close:hover { opacity: 1; }
.modal-dialog-content { padding: var(--dialog-padding); overflow: auto; }
.modal-dialog-content p:first-child { margin-top: 0; }
.modal-dialog-buttons { margin: 0; padding: 0 var(--dialog-padding) var(--dialog-padding); }
.modal-dialog .ts-list { display: flex; flex-wrap: wrap; gap: 0; }
.modal-dialog .ts-list > * { width: var(--item-width); margin: calc(var(--items-row-gap) / 2) calc(var(--items-column-gap) / 2); }
.dlgfrm { background-color: rgb(var(--background-color)); border: 1px solid var(--gray-border-color); padding: var(--dialog-padding); box-shadow: 4px 4px 10px rgba(0, 0, 0, .2); }
.ts-tltp { position: absolute; z-index: 3000; }

/* Tabs */
.ts-tabs { display: flex; gap: .2em; border-bottom: 1px solid var(--gray-border-color); margin: 1em 0; flex-wrap: wrap; }
.ts-tabs > a, .ts-tabs > span { padding: .5em .9em; text-decoration: none; color: inherit; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.ts-tabs > a:hover { text-decoration: none; color: var(--accent-hover); }
.ts-tabs > .ts-current { border-bottom-color: var(--accent); font-weight: bold; }
.ts-explore-tabs { margin-top: 0; }
.ts-chips { display: flex; flex-wrap: wrap; gap: .5em 1.2em; margin: 0 0 var(--block-vertical-spacing); }
.ts-chip-group { display: flex; flex-wrap: wrap; gap: .4em; }
.ts-chip { display: inline-flex; align-items: center; min-height: 2.1em; padding: 0 .9em; border-radius: 999px; border: 1px solid var(--gray-border-color); background: var(--control-bg-color); color: inherit; text-decoration: none !important; font-size: .92em; white-space: nowrap; }
.ts-chip:hover { border-color: var(--accent); color: var(--accent-hover); }
.ts-chip.ts-current { background: var(--accent); color: var(--accent-text); border-color: transparent; font-weight: 600; }
/* Bottom tab bar (narrow screens) */
.ts-tabbar { display: none; }

/* Text pages */
.ts-text-page { line-height: 1.5; }
.ts-text-page h2 { margin-top: 1.6em; }
.ts-text-page dt { font-weight: bold; margin-top: 1em; }
.ts-text-page dd { margin: .3em 0 0 0; }
.ts-text-page kbd { border: 1px solid var(--gray-border-color); border-radius: 3px; padding: 0 .3em; background: var(--control-bg-color); font-family: inherit; }

/* Profile totem */
#ts-totem { display: flex; gap: 1em; align-items: flex-start; margin: 1em 0; }
#ts-totem .ts-totem-info { flex: 1 1 auto; min-width: 0; }
#ts-totem .ts-totem-pic { width: 128px; height: 128px; border-radius: 8px; object-fit: cover; background: var(--placeholder-bg); flex: 0 0 auto; }
#ts-totem .ts-stats { display: flex; gap: 1.2em; flex-wrap: wrap; opacity: .8; margin: .4em 0; }
#ts-totem .ts-stats a { color: inherit; }
.btn.follow.following { background-image: linear-gradient(to bottom, #359e20, #147a00); color: #fff; border: 1px solid #060; }

/* Messages page */
.ts-msgs-cont { display: flex; gap: 1em; min-height: 20em; }
.ts-msgs-list { width: 30%; flex: 0 0 auto; border-right: 1px solid var(--gray-border-color); }
.ts-msgs-list a { display: flex; gap: .5em; align-items: center; padding: .5em; text-decoration: none; color: inherit; border-radius: var(--border-radius); }
.ts-msgs-list a.ts-current, .ts-msgs-list a:hover { background: rgba(var(--text-color), .07); }
.ts-msgs-list .ts-unread { font-weight: bold; }
.ts-msgs-tread { flex: 1 1 auto; overflow: hidden; display: flex; flex-direction: column; }
.ts-msgs-items { display: flex; flex-direction: column; gap: .2em; flex: 1 1 auto; overflow: auto; }
.ts-msgs-item { margin: .2em; display: flex; flex-direction: column; }
.ts-msgs-item.ts-user-a { align-self: flex-end; align-items: flex-end; margin-left: 15%; }
.ts-msgs-item.ts-user-b { align-self: flex-start; margin-right: 15%; }
.ts-msgs-item .ts-body-text { padding: .5em .7em; border-radius: 7px; white-space: pre-line; overflow-wrap: break-word; max-width: 100%; box-sizing: border-box; }
.ts-msgs-item.ts-user-b .ts-body-text { background-color: rgba(var(--text-color), .1); }
.ts-msgs-item.ts-user-a .ts-body-text { background-color: #0077a6; color: #fff; }
.ts-msgs-item time { display: block; font-size: .8em; opacity: .6; white-space: nowrap; }

/* Notifications */
.ts-notif-list { list-style: none; padding: 0; margin: 0; }
.ts-notif-list > li { display: flex; gap: .7em; align-items: center; padding: .6em 0; border-bottom: 1px solid var(--gray-border-color); }
.ts-notif-list > li.ts-unread { font-weight: bold; }
.ts-notif-list img { width: 40px; height: 40px; object-fit: cover; border-radius: 4px; }
.ts-notif-list time { font-size: .85em; opacity: .6; font-weight: normal; }

/* Touch devices */
@media (max-width: 640px) {
  .ts-msgs-cont { flex-direction: column; }
  .ts-msgs-list { width: auto; border-right: 0; }
  .content .ts-srch { width: 100%; }
}

/* Home page sections (docs/redesign/DESIGN.md): continue row, puzzle of the day, theme rows */
.ts-home-sec { margin: var(--block-vertical-spacing) 0 0; }
.ts-home-sec[hidden] { display: none !important; }
.ts-day { display: grid; grid-template-columns: minmax(0, 2fr) minmax(16em, 1fr); gap: var(--items-column-gap) calc(var(--items-column-gap) * 2); align-items: center; margin-top: var(--vertical-spacing-bigger); }
.ts-day .ts-day-pic { --item-width: 100%; --item-height: auto; }
.ts-day .ts-day-pic .ts-item.ts-Puzzle { width: 100%; }
.ts-day .ts-day-pic .ts-cnt-wrap { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.ts-day .ts-day-pic .ts-cntbrdr-wrap { border-radius: 14px; }
.ts-day .ts-day-pic .ts-item > .ts-tc { display: none; }
.ts-day-info { display: flex; flex-direction: column; gap: .5em; }
.ts-day-kicker { font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; font-size: .85em; }
.ts-day-info h2 { margin: 0; font-size: 1.6em; line-height: 1.2; overflow-wrap: anywhere; }
.ts-day-meta { display: flex; align-items: center; gap: .6em; flex-wrap: wrap; opacity: .85; }
.ts-day-meta .ts-item.ts-User { --item-width: 1.6em; --item-height: 1.6em; display: flex; align-items: center; gap: .4em; }
.ts-day-meta .ts-item.ts-User .ts-cntbrdr-wrap { box-shadow: none; }
.ts-day-meta a { color: inherit; font-weight: 600; }
.ts-day-info .btn.ts-primary { align-self: flex-start; font-size: 1.05em; padding: .7em 1.4em; margin-top: .4em; }
.ts-day-sub { opacity: var(--min-info-opacity); font-size: .9em; margin: 0; }
.ts-row-list .ts-list { grid-auto-flow: column; grid-auto-columns: var(--item-width); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: 4px; scrollbar-width: thin; }
.ts-row-list .ts-list > .ts-item { scroll-snap-align: start; }

/* Touch devices and narrow screens */
@media (max-width: 760px) {
  html { font-size: 16px; }
  body:not(.ts-embed-page) { padding-bottom: 4.2em; }
  #topBar .ts-mainmenu, #topBar .ts-imm { display: none; }
  .ts-explore-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .ts-explore-tabs::-webkit-scrollbar { display: none; }
  .ts-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; height: 3.6em; padding-bottom: env(safe-area-inset-bottom); background: var(--menu-bg); border-top: 1px solid var(--gray-border-color); box-shadow: 0 -2px 8px rgba(39, 34, 62, .08); }
  .ts-tabbar .ts-tab { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2em; color: inherit; text-decoration: none !important; font-size: .72em; opacity: .75; }
  .ts-tabbar .ts-tab .ts-ico { font-size: 1.5em; }
  .ts-tabbar .ts-tab.ts-current { color: var(--accent); opacity: 1; font-weight: 600; }
  #ts-page.Play ~ .ts-tabbar, #ts-page.Play .ts-tabbar { display: none; }
  #ts-page.Play ~ body, body:has(#ts-page.Play) { padding-bottom: 0; }
  .UserMenu.newUser .signin .ts-mnitm, .UserMenu.newUser .signup .ts-mnitm { padding: .35em .5em; }
  #topBar .UserMenu { gap: .3em; font-size: .92em; }
  #topBar .ts-srch form { min-width: 6.5em; }
  #topBar .frnt { gap: 4px; }
  .ts-day { grid-template-columns: 1fr; gap: var(--vertical-spacing-bigger); }
  .ts-day-info h2 { font-size: 1.3em; }
  .ts-day-info .btn.ts-primary { align-self: stretch; text-align: center; }
  #topBar .ts-imm { padding: 0 .8em; }
}

/* Footer brand line (full site name) */
.ts-footer-brand { text-align: center; font-size: .85em; opacity: .7; padding: .8em 0 .4em; }

/* 0.4 App & Web: expressive hierarchy and generous touch targets. */
:root { --sunny: #ffda67; --sunny-ink: #27223e; --muted: #6b657a; --hero: #6742d2; --hero-text: #fff9f0; --board: #e8e2de; }
:root[data-theme="dark"] { --muted: #c4b9d9; --board: #484052; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] { --muted: #c4b9d9; --board: #484052; } }
body { line-height: 1.5; }
h1, h2, h3 { letter-spacing: -.035em; }
a, button, input, select { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.btn, .ts-chip, .ts-mnitm, .ts-tab { transition: background-color .16s, color .16s, transform .16s; }
.btn:active, button:active { transform: scale(.98); }
#topBar, #topBar .bckgrnd, #topBar .frnt { height: 80px; }
#topBar .bckgrnd { background: rgb(var(--background-color)); box-shadow: 0 1px 0 var(--gray-border-color); }
#topBar .frnt { align-items: center; gap: 14px; }
#topBar a.ts-pp-logo { width: 48px; height: 48px; background: transparent; border-radius: 11px; }
#topBar a.ts-pp-logo img { width: 48px; height: 48px; }
.MainMenu > li > .ts-mnitm { min-height: 46px; padding: 0 18px; }
.MainMenu li.ts-hi > .ts-mnitm { background: var(--control-bg-color); color: var(--accent); }
.MainMenu li.ts-hi > .ts-mnitm:hover { background: var(--control-bg-color); }
.UserMenu.newUser .signup .ts-mnitm { background: var(--sunny) !important; color: var(--sunny-ink); }
.UserMenu.newUser .signup .ts-mnitm:hover { background: #f9ce4c !important; }
.UserMenu.newUser .ts-mnitm { min-height: 44px; }
#topBar .ts-srch-inpt { min-height: 44px; background: var(--menu-bg) !important; }
.ts-theme-btn { min-width: 40px; min-height: 44px; }
.navigator:not(:empty) { margin-top: 28px; margin-bottom: 24px; white-space: normal; }
.navigator h1 { font-size: clamp(1.8rem, 3vw, 2.65rem); line-height: 1.2; }
.content > h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .35em; }
.ts-home-intro { margin: 40px 0 24px; }
.ts-home-intro .ts-eyebrow { color: var(--accent); font-weight: 750; font-size: .8rem; letter-spacing: .1em; }
.ts-home-intro h1 { font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1.08; margin: 14px 0; }
.ts-home-intro p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.ts-home-sec { margin-top: 32px; }
.ts-day { background: var(--hero); color: var(--hero-text); border-radius: 32px; padding: 32px; grid-template-columns: 1fr minmax(240px, .68fr); gap: 44px; }
.ts-day .ts-day-pic { order: 2; width: 100%; max-width: 340px; justify-self: end; }
.ts-day .ts-day-pic .ts-cnt-wrap { aspect-ratio: 1; }
.ts-day .ts-day-pic .ts-cntbrdr-wrap { border-radius: 24px; box-shadow: none; }
.ts-day-info { gap: 18px; }
.ts-day-kicker { color: var(--sunny); letter-spacing: .08em; }
.ts-day-info h2 { font-size: clamp(1.8rem, 3.3vw, 3rem); max-width: 14ch; }
.ts-day-info .btn.ts-primary { background: var(--sunny); color: var(--sunny-ink); min-height: 54px; border-radius: 18px; padding: 14px 24px; }
.ts-day-info .btn.ts-primary:hover { background: #f9ce4c; }
.ts-day-sub { opacity: 1; color: #ece4ff; }
.ts-day-meta .ts-User { display: none !important; }
.ts-day-meta .ts-cut-desc { font-size: 1.1rem; }
.ts-home-ad { border-radius: 20px; background: var(--menu-bg); }
.ts-home-ad .ts-ad-slot { border-radius: 20px; color: var(--muted); }
.caption { margin-top: 36px; margin-bottom: 20px; }
.caption > h2 { font-size: 1.35rem; }
.ts-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--item-width)), 1fr)); }
.ts-item.ts-Puzzle { width: 100%; }
.ts-item.ts-Puzzle > .ts-ic { width: 100%; }
.ts-item.ts-Puzzle .ts-cnt-wrap { width: 100%; height: auto; aspect-ratio: 1; }
.ts-item.ts-Puzzle .ts-cntbrdr-wrap { box-shadow: none; }
.ts-item.ts-Puzzle > .ts-tc > a { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label cut"; align-items: start; }
.ts-item.ts-Puzzle > .ts-tc .ts-item.ts-User { display: none; }
.ts-item.ts-Puzzle > .ts-tc .ts-label { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .94rem; }
.ts-item.ts-Puzzle > .ts-tc .ts-cut-desc { opacity: 1; color: var(--muted); }
.ts-row-list .ts-list { grid-template-columns: none; }
.ts-tabs { border: 0; gap: 8px; padding: 8px; background: var(--menu-bg); border-radius: 22px; }
.ts-tabs > a, .ts-tabs > span { border: 0; border-radius: 15px; padding: 12px 16px; }
.ts-tabs > .ts-current { background: var(--control-bg-color); color: var(--accent); }
.ts-chip { min-height: 44px; border: 0; background: var(--menu-bg); }
input[type=text], input[type=email], input[type=password], input[type=search], select { min-height: 46px; }
.btn, input[type=submit], .modal-dialog-buttons button { min-height: 46px; border-color: transparent; }
.ts-empty { opacity: 1; color: var(--muted); background: var(--menu-bg); border-radius: 24px; padding: 36px; text-align: center; }
.ts-form-table { width: 100%; max-width: 760px; box-sizing: border-box; background: var(--menu-bg); border-radius: 24px; padding: 24px; margin: 24px 0; }
.ts-text-page { max-width: 820px; }
.ts-text-page h2 { color: var(--accent); }
#ts-pg-footer { margin-top: 56px; padding-top: 24px; padding-bottom: 32px; border-top: 1px solid var(--gray-border-color); }
.modal-dialog-bg { background: rgba(39,34,62,.42); }
.modal-dialog { border: 0; border-radius: 28px; }
.ts-msgs-item.ts-user-a .ts-body-text { background: var(--hero); }
.btn.follow.following { background: var(--control-bg-color); color: var(--accent); border: 0; }
@media (max-width: 960px) {
  #topBar .frnt { gap: 8px; }
  .MainMenu > li > .ts-mnitm { padding: 0 10px; }
}
@media (max-width: 760px) {
  body:not(.ts-embed-page) { --items-per-row: 2; --items-column-gap: 16px; --item-min-width: 0px; padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  #topBar, #topBar .bckgrnd, #topBar .frnt { height: 70px; }
  #topBar .frnt { gap: 8px; }
  #topBar a.ts-pp-logo { width: 40px; height: 40px; }
  #topBar a.ts-pp-logo img { width: 40px; height: 40px; }
  #topBar .ts-srch form { min-width: 0; }
  #topBar .ts-srch { min-width: 0; }
  .UserMenu.newUser .signup { display: none; }
  .ts-home-intro { margin-top: 28px; }
  .ts-home-intro h1 { max-width: 12ch; }
  .ts-day { padding: 22px; gap: 16px; grid-template-columns: minmax(0, 1fr) 108px; border-radius: 28px; align-items: start; }
  .ts-day .ts-day-pic { order: 2; width: 108px; margin: 4px 0 0; }
  .ts-day-info h2 { max-width: none; font-size: 1.45rem; }
  .ts-day-kicker { font-size: .7rem; }
  .ts-day-info .btn.ts-primary { padding: 12px 16px; }
  .ts-day-info .btn.ts-primary { width: 100%; }
  .ts-day-info { gap: 12px; }
  .ts-item.ts-Puzzle > .ts-tc > a { grid-template-columns: 1fr; grid-template-areas: "label" "cut"; gap: 6px; }
  .ts-item.ts-Puzzle > .ts-tc .ts-label { font-size: .9rem; }
  .ts-tabbar { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); height: 68px; padding: 8px; border: 0; border-radius: 26px; box-shadow: 0 6px 24px rgba(39,34,62,.12); gap: 4px; }
  .ts-tabbar .ts-tab { border-radius: 20px; opacity: 1; color: var(--muted); }
  .ts-tabbar .ts-tab.ts-current { background: var(--control-bg-color); color: var(--accent); }
  .ts-form-table { padding: 16px; }
  .ts-form-table, .ts-form-table > .ts-row-group, .ts-form-table > .ts-row-group > .ts-row, .ts-form-table > .ts-row-group > .ts-row > .ts-cell { display: block; width: auto; }
  .ts-form-table > .ts-row-group > .ts-row:not(.ts-group) > .ts-cell:first-child { text-align: start; margin: 12px 0 6px; }
  .ts-form-table > .ts-row-group > .ts-row:not(.ts-group) > .ts-cell:nth-child(2) { padding: 0; }
  .modal-dialog { border-radius: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; }
}
