body.template-suffix-memory{background:#efefef;color:#202036}
body.template-suffix-memory #MainContent{width:100%;max-width:none;margin:0;padding:0;border:0}
.omnee-memory{display:block;max-width:1500px;margin:0 auto;padding:20px 32px 40px;font-family:var(--font-interface-family,Arial,sans-serif);letter-spacing:normal;line-height:1.3;color:#202036}
.omnee-memory *{box-sizing:border-box;letter-spacing:normal}
.omnee-memory__header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}
.omnee-memory__header a{color:inherit;text-decoration:none;font-size:15px}
.omnee-memory__header h1{font:inherit;font-size:24px;font-weight:700;margin:0}
.omnee-memory__layout{width:min(100%,calc(100svh + 160px));margin-inline:auto;display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:40px;align-items:start}
.omnee-memory__board{display:grid;grid-template-columns:repeat(var(--columns,4),minmax(0,1fr));gap:16px;min-width:0}
.omnee-memory__card{container-type:inline-size;position:relative;aspect-ratio:1;min-width:0;padding:5px;border:0;border-radius:18px;background:#fff;box-shadow:0 1px 6px #0008;cursor:pointer;perspective:700px;-webkit-tap-highlight-color:transparent}
.omnee-memory__flip{position:relative;display:block;width:100%;height:100%;transform-style:preserve-3d;transition:transform .28s}
.omnee-memory__card.is-open .omnee-memory__flip,.omnee-memory__card.is-matched .omnee-memory__flip{transform:rotateY(180deg)}
.omnee-memory__face{position:absolute;inset:0;display:grid;place-items:center;border:2px solid #929292;border-radius:13px;overflow:hidden;backface-visibility:hidden;background:linear-gradient(135deg,#e3e3e3,#fdfdfd)}
.omnee-memory__face--photo{transform:rotateY(180deg);background:white}
.omnee-memory__face img{display:block;width:100%;height:100%;object-fit:contain}
.omnee-memory__face--photo img{object-fit:cover}
.omnee-memory__back-word{font-family:var(--font-interface-family);font-size:clamp(10px,22cqw,34px);font-weight:700;color:#fff;text-shadow:1px 1px #aaa,-1px -1px #aaa;letter-spacing:-.04em}
.omnee-memory__card.is-matched{box-shadow:0 0 0 2px #80c5a2,0 1px 6px #0003;cursor:default}
.omnee-memory button:focus-visible,.omnee-memory input:focus-visible,.omnee-memory a:focus-visible{outline:3px solid #080078;outline-offset:4px}
.omnee-memory__sidebar{display:flex;flex-direction:column;gap:26px}
.omnee-memory__stat{background:#ccc;border-radius:9px;padding:15px;font-size:24px}
.omnee-memory__stat strong{font-weight:700}
.omnee-memory__new{border:0;border-radius:6px;background:#5cbb87;color:#fff;font:inherit;font-weight:700;font-size:24px;min-height:58px;padding:12px 20px;cursor:pointer}
.omnee-memory__sidebar>.omnee-memory__new{margin:12px 12px 16px}
.omnee-memory__difficulty{border:0;padding:0;margin:0;text-align:center;display:flex;justify-content:center;gap:16px}
.omnee-memory__difficulty legend{float:none;width:100%;margin-bottom:18px;font-size:24px;font-weight:700}
.omnee-memory__difficulty button{width:58px;height:64px;flex:none;border:0;border-radius:13px;background:#aaa;padding:10px;cursor:pointer}
.omnee-memory__difficulty button[aria-pressed=true]{background:#080078}
.omnee-memory__difficulty button:disabled{opacity:.35;cursor:not-allowed}
.omnee-memory__difficulty span{display:block;height:100%;background:repeating-linear-gradient(to right,transparent 0 calc(25% - 2px),#aaa calc(25% - 2px) 25%),repeating-linear-gradient(to bottom,#fff 0 calc(25% - 2px),transparent calc(25% - 2px) 25%)}
.omnee-memory__difficulty [data-level=medium] span{background-image:repeating-linear-gradient(to right,transparent 0 calc(20% - 2px),#aaa calc(20% - 2px) 20%),repeating-linear-gradient(to bottom,#fff 0 calc(20% - 2px),transparent calc(20% - 2px) 20%)}
.omnee-memory__difficulty [data-level=hard] span{background-image:repeating-linear-gradient(to right,transparent 0 calc(16.666% - 2px),#aaa calc(16.666% - 2px) 16.666%),repeating-linear-gradient(to bottom,#fff 0 calc(16.666% - 2px),transparent calc(16.666% - 2px) 16.666%)}
.omnee-memory__volume{font-size:24px;font-weight:700;text-align:center}
.omnee-memory__volume input{display:block;accent-color:#080078;width:85%;margin:20px auto 0;cursor:pointer}
.omnee-memory__status{font-size:14px;margin:0;min-height:1.3em}
.omnee-memory__win{border:2px solid #99a9bf;border-radius:12px;padding:0;width:min(420px,calc(100% - 32px));background:#f3f7fc;box-shadow:6px 8px 0 #7097c44d;color:#202036;font:inherit}
.omnee-memory__win::backdrop{background:#1e20305c;backdrop-filter:blur(3px)}
.omnee-memory__window-bar{display:flex;justify-content:space-between;align-items:center;background:linear-gradient(#e0f5ff,#9dc9ed);padding:7px 10px;font-size:14px;font-weight:700;border-bottom:1px solid #99a9bf}
.omnee-memory__window-bar button{font:inherit;font-size:22px;line-height:1;width:28px;height:28px;border:1px solid #96aac0;border-radius:4px;background:linear-gradient(#fff,#d2deee);cursor:pointer}
.omnee-memory__win-body{padding:24px;text-align:center}.omnee-memory__win h2{font-family:inherit;font-size:30px;letter-spacing:normal;margin:12px 0}.omnee-memory__win p{margin:12px 0;font-size:16px}.omnee-memory__win output{display:block;padding:12px;background:white;border:1px dashed #99a9bf;font-size:24px;user-select:all;overflow-wrap:anywhere}.omnee-memory__win [data-copy]{margin:12px;padding:8px 16px;font:inherit;background:#d5eaff;border:1px solid #99a9bf;border-radius:20px;cursor:pointer}.omnee-memory__win [hidden]{display:none}
@media(max-width:749px){.omnee-memory{padding:16px 12px 28px}.omnee-memory__header h1{font-size:18px}.omnee-memory__header a{font-size:12px}.omnee-memory__layout{width:100%;display:flex;flex-direction:column;gap:20px}.omnee-memory__board{width:100%;gap:8px}.omnee-memory__card{border-radius:11px;padding:3px}.omnee-memory__face{border-radius:8px;border-width:1px}.omnee-memory__sidebar{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;order:-1}.omnee-memory__stat{font-size:13px;padding:10px 6px}.omnee-memory__stat strong{display:block}.omnee-memory__sidebar>.omnee-memory__new{grid-column:1;margin:0;padding:8px;font-size:16px;min-height:44px}.omnee-memory__difficulty{grid-column:2/4;gap:10px;align-items:center}.omnee-memory__difficulty legend{font-size:14px;margin:0 0 6px}.omnee-memory__difficulty button{width:38px;height:38px;padding:6px;border-radius:8px}.omnee-memory__volume{grid-column:1/4;display:flex;align-items:center;gap:14px;font-size:14px;text-align:left}.omnee-memory__volume input{margin:0;flex:1;width:auto}.omnee-memory__status{grid-column:1/4;min-height:0}.omnee-memory__status:empty{display:none}.omnee-memory__back-word{font-size:clamp(10px,3vw,20px)}}
@media(prefers-reduced-motion:reduce){.omnee-memory__flip{transition:none}}

.omnee-memory__free{display:grid;place-items:center;cursor:default;font-weight:700;color:#81868b;font-size:clamp(10px,2vw,24px);background:linear-gradient(135deg,#e3e3e3,#fff);box-shadow:inset 0 0 0 2px #babec4}
